MCDwarf: Remove unused parameter
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
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 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
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 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_CXX11
687 ENABLE_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_WERROR
691 ENABLE_EXPENSIVE_CHECKS
692 EXPENSIVE_CHECKS
693 DEBUG_RUNTIME
694 DEBUG_SYMBOLS
695 JIT
696 TARGET_HAS_JIT
697 ENABLE_DOCS
698 ENABLE_DOXYGEN
699 ENABLE_THREADS
700 ENABLE_PTHREADS
701 LLVM_ENABLE_ZLIB
702 ENABLE_PIC
703 ENABLE_SHARED
704 ENABLE_EMBED_STDCXX
705 ENABLE_TIMESTAMPS
706 TARGETS_TO_BUILD
707 LLVM_ENUM_TARGETS
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
711 OPTIMIZE_OPTION
712 EXTRA_OPTIONS
713 EXTRA_LD_OPTIONS
714 BINUTILS_INCDIR
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 POD2HTML
748 POD2MAN
749 PDFROFF
750 RUNTEST
751 TCLSH
752 ZIP
753 OCAMLC
754 OCAMLOPT
755 OCAMLDEP
756 OCAMLDOC
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 NO_VARIADIC_MACROS
760 NO_MISSING_FIELD_INITIALIZERS
761 COVERED_SWITCH_DEFAULT
762 USE_UDIS86
763 USE_OPROFILE
764 HAVE_PTHREAD
765 HAVE_LIBZ
766 HUGE_VAL_SANITY
767 MMAP_FILE
768 SHLIBEXT
769 LLVM_PREFIX
770 LLVM_BINDIR
771 LLVM_DATADIR
772 LLVM_DOCSDIR
773 LLVM_ETCDIR
774 LLVM_INCLUDEDIR
775 LLVM_INFODIR
776 LLVM_MANDIR
777 LLVM_CONFIGTIME
778 BINDINGS_TO_BUILD
779 ALL_BINDINGS
780 OCAML_LIBDIR
781 ENABLE_VISIBILITY_INLINES_HIDDEN
782 RPATH
783 RDYNAMIC
784 LIBOBJS
785 LTLIBOBJS'
786 ac_subst_files=''
787       ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 CPPFLAGS
794 CXX
795 CXXFLAGS
796 CCC
797 CPP'
798 ac_subdirs_all='tools/polly'
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
819
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
845
846 ac_prev=
847 ac_dashdash=
848 for ac_option
849 do
850   # If the previous option needs an argument, assign it.
851   if test -n "$ac_prev"; then
852     eval $ac_prev=\$ac_option
853     ac_prev=
854     continue
855   fi
856
857   case $ac_option in
858   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859   *)    ac_optarg=yes ;;
860   esac
861
862   # Accept the important Cygnus configure options, so we can diagnose typos.
863
864   case $ac_dashdash$ac_option in
865   --)
866     ac_dashdash=yes ;;
867
868   -bindir | --bindir | --bindi | --bind | --bin | --bi)
869     ac_prev=bindir ;;
870   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871     bindir=$ac_optarg ;;
872
873   -build | --build | --buil | --bui | --bu)
874     ac_prev=build_alias ;;
875   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876     build_alias=$ac_optarg ;;
877
878   -cache-file | --cache-file | --cache-fil | --cache-fi \
879   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880     ac_prev=cache_file ;;
881   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883     cache_file=$ac_optarg ;;
884
885   --config-cache | -C)
886     cache_file=config.cache ;;
887
888   -datadir | --datadir | --datadi | --datad)
889     ac_prev=datadir ;;
890   -datadir=* | --datadir=* | --datadi=* | --datad=*)
891     datadir=$ac_optarg ;;
892
893   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894   | --dataroo | --dataro | --datar)
895     ac_prev=datarootdir ;;
896   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898     datarootdir=$ac_optarg ;;
899
900   -disable-* | --disable-*)
901     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902     # Reject names that are not valid shell variable names.
903     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
904       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905    { (exit 1); exit 1; }; }
906     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
907     eval enable_$ac_feature=no ;;
908
909   -docdir | --docdir | --docdi | --doc | --do)
910     ac_prev=docdir ;;
911   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912     docdir=$ac_optarg ;;
913
914   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915     ac_prev=dvidir ;;
916   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917     dvidir=$ac_optarg ;;
918
919   -enable-* | --enable-*)
920     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924    { (exit 1); exit 1; }; }
925     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926     eval enable_$ac_feature=\$ac_optarg ;;
927
928   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930   | --exec | --exe | --ex)
931     ac_prev=exec_prefix ;;
932   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934   | --exec=* | --exe=* | --ex=*)
935     exec_prefix=$ac_optarg ;;
936
937   -gas | --gas | --ga | --g)
938     # Obsolete; use --with-gas.
939     with_gas=yes ;;
940
941   -help | --help | --hel | --he | -h)
942     ac_init_help=long ;;
943   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944     ac_init_help=recursive ;;
945   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946     ac_init_help=short ;;
947
948   -host | --host | --hos | --ho)
949     ac_prev=host_alias ;;
950   -host=* | --host=* | --hos=* | --ho=*)
951     host_alias=$ac_optarg ;;
952
953   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954     ac_prev=htmldir ;;
955   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956   | --ht=*)
957     htmldir=$ac_optarg ;;
958
959   -includedir | --includedir | --includedi | --included | --include \
960   | --includ | --inclu | --incl | --inc)
961     ac_prev=includedir ;;
962   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963   | --includ=* | --inclu=* | --incl=* | --inc=*)
964     includedir=$ac_optarg ;;
965
966   -infodir | --infodir | --infodi | --infod | --info | --inf)
967     ac_prev=infodir ;;
968   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969     infodir=$ac_optarg ;;
970
971   -libdir | --libdir | --libdi | --libd)
972     ac_prev=libdir ;;
973   -libdir=* | --libdir=* | --libdi=* | --libd=*)
974     libdir=$ac_optarg ;;
975
976   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977   | --libexe | --libex | --libe)
978     ac_prev=libexecdir ;;
979   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980   | --libexe=* | --libex=* | --libe=*)
981     libexecdir=$ac_optarg ;;
982
983   -localedir | --localedir | --localedi | --localed | --locale)
984     ac_prev=localedir ;;
985   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986     localedir=$ac_optarg ;;
987
988   -localstatedir | --localstatedir | --localstatedi | --localstated \
989   | --localstate | --localstat | --localsta | --localst | --locals)
990     ac_prev=localstatedir ;;
991   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993     localstatedir=$ac_optarg ;;
994
995   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996     ac_prev=mandir ;;
997   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998     mandir=$ac_optarg ;;
999
1000   -nfp | --nfp | --nf)
1001     # Obsolete; use --without-fp.
1002     with_fp=no ;;
1003
1004   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005   | --no-cr | --no-c | -n)
1006     no_create=yes ;;
1007
1008   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010     no_recursion=yes ;;
1011
1012   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014   | --oldin | --oldi | --old | --ol | --o)
1015     ac_prev=oldincludedir ;;
1016   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019     oldincludedir=$ac_optarg ;;
1020
1021   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022     ac_prev=prefix ;;
1023   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024     prefix=$ac_optarg ;;
1025
1026   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027   | --program-pre | --program-pr | --program-p)
1028     ac_prev=program_prefix ;;
1029   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031     program_prefix=$ac_optarg ;;
1032
1033   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034   | --program-suf | --program-su | --program-s)
1035     ac_prev=program_suffix ;;
1036   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038     program_suffix=$ac_optarg ;;
1039
1040   -program-transform-name | --program-transform-name \
1041   | --program-transform-nam | --program-transform-na \
1042   | --program-transform-n | --program-transform- \
1043   | --program-transform | --program-transfor \
1044   | --program-transfo | --program-transf \
1045   | --program-trans | --program-tran \
1046   | --progr-tra | --program-tr | --program-t)
1047     ac_prev=program_transform_name ;;
1048   -program-transform-name=* | --program-transform-name=* \
1049   | --program-transform-nam=* | --program-transform-na=* \
1050   | --program-transform-n=* | --program-transform-=* \
1051   | --program-transform=* | --program-transfor=* \
1052   | --program-transfo=* | --program-transf=* \
1053   | --program-trans=* | --program-tran=* \
1054   | --progr-tra=* | --program-tr=* | --program-t=*)
1055     program_transform_name=$ac_optarg ;;
1056
1057   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058     ac_prev=pdfdir ;;
1059   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060     pdfdir=$ac_optarg ;;
1061
1062   -psdir | --psdir | --psdi | --psd | --ps)
1063     ac_prev=psdir ;;
1064   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065     psdir=$ac_optarg ;;
1066
1067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068   | -silent | --silent | --silen | --sile | --sil)
1069     silent=yes ;;
1070
1071   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072     ac_prev=sbindir ;;
1073   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074   | --sbi=* | --sb=*)
1075     sbindir=$ac_optarg ;;
1076
1077   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079   | --sharedst | --shareds | --shared | --share | --shar \
1080   | --sha | --sh)
1081     ac_prev=sharedstatedir ;;
1082   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085   | --sha=* | --sh=*)
1086     sharedstatedir=$ac_optarg ;;
1087
1088   -site | --site | --sit)
1089     ac_prev=site ;;
1090   -site=* | --site=* | --sit=*)
1091     site=$ac_optarg ;;
1092
1093   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094     ac_prev=srcdir ;;
1095   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096     srcdir=$ac_optarg ;;
1097
1098   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099   | --syscon | --sysco | --sysc | --sys | --sy)
1100     ac_prev=sysconfdir ;;
1101   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103     sysconfdir=$ac_optarg ;;
1104
1105   -target | --target | --targe | --targ | --tar | --ta | --t)
1106     ac_prev=target_alias ;;
1107   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108     target_alias=$ac_optarg ;;
1109
1110   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111     verbose=yes ;;
1112
1113   -version | --version | --versio | --versi | --vers | -V)
1114     ac_init_version=: ;;
1115
1116   -with-* | --with-*)
1117     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1120       { echo "$as_me: error: invalid package name: $ac_package" >&2
1121    { (exit 1); exit 1; }; }
1122     ac_package=`echo $ac_package| sed 's/-/_/g'`
1123     eval with_$ac_package=\$ac_optarg ;;
1124
1125   -without-* | --without-*)
1126     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127     # Reject names that are not valid shell variable names.
1128     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1129       { echo "$as_me: error: invalid package name: $ac_package" >&2
1130    { (exit 1); exit 1; }; }
1131     ac_package=`echo $ac_package | sed 's/-/_/g'`
1132     eval with_$ac_package=no ;;
1133
1134   --x)
1135     # Obsolete; use --with-x.
1136     with_x=yes ;;
1137
1138   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139   | --x-incl | --x-inc | --x-in | --x-i)
1140     ac_prev=x_includes ;;
1141   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143     x_includes=$ac_optarg ;;
1144
1145   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147     ac_prev=x_libraries ;;
1148   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150     x_libraries=$ac_optarg ;;
1151
1152   -*) { echo "$as_me: error: unrecognized option: $ac_option
1153 Try \`$0 --help' for more information." >&2
1154    { (exit 1); exit 1; }; }
1155     ;;
1156
1157   *=*)
1158     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1161       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1162    { (exit 1); exit 1; }; }
1163     eval $ac_envvar=\$ac_optarg
1164     export $ac_envvar ;;
1165
1166   *)
1167     # FIXME: should be removed in autoconf 3.0.
1168     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1170       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1171     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172     ;;
1173
1174   esac
1175 done
1176
1177 if test -n "$ac_prev"; then
1178   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1179   { echo "$as_me: error: missing argument to $ac_option" >&2
1180    { (exit 1); exit 1; }; }
1181 fi
1182
1183 # Be sure to have absolute directory names.
1184 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185                 datadir sysconfdir sharedstatedir localstatedir includedir \
1186                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187                 libdir localedir mandir
1188 do
1189   eval ac_val=\$$ac_var
1190   case $ac_val in
1191     [\\/$]* | ?:[\\/]* )  continue;;
1192     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193   esac
1194   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1195    { (exit 1); exit 1; }; }
1196 done
1197
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1201 build=$build_alias
1202 host=$host_alias
1203 target=$target_alias
1204
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207   if test "x$build_alias" = x; then
1208     cross_compiling=maybe
1209     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1210     If a cross compiler is detected then cross compile mode will be used." >&2
1211   elif test "x$build_alias" != "x$host_alias"; then
1212     cross_compiling=yes
1213   fi
1214 fi
1215
1216 ac_tool_prefix=
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219 test "$silent" = yes && exec 6>/dev/null
1220
1221
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225   { echo "$as_me: error: Working directory cannot be determined" >&2
1226    { (exit 1); exit 1; }; }
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228   { echo "$as_me: error: pwd does not report name of working directory" >&2
1229    { (exit 1); exit 1; }; }
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234   ac_srcdir_defaulted=yes
1235   # Try the directory containing this script, then the parent directory.
1236   ac_confdir=`$as_dirname -- "$0" ||
1237 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238          X"$0" : 'X\(//\)[^/]' \| \
1239          X"$0" : 'X\(//\)$' \| \
1240          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1241 echo X"$0" |
1242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)[^/].*/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)$/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\).*/{
1255             s//\1/
1256             q
1257           }
1258           s/.*/./; q'`
1259   srcdir=$ac_confdir
1260   if test ! -r "$srcdir/$ac_unique_file"; then
1261     srcdir=..
1262   fi
1263 else
1264   ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1269    { (exit 1); exit 1; }; }
1270 fi
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1274    { (exit 1); exit 1; }; }
1275         pwd)`
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278   srcdir=.
1279 fi
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1283 case $srcdir in
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285 esac
1286 for ac_var in $ac_precious_vars; do
1287   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_env_${ac_var}_value=\$${ac_var}
1289   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 done
1292
1293 #
1294 # Report the --help message.
1295 #
1296 if test "$ac_init_help" = "long"; then
1297   # Omit some internal or obsolete options to make the list less imposing.
1298   # This message is too long to be a string in the A/UX 3.1 sh.
1299   cat <<_ACEOF
1300 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1301
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE.  See below for descriptions of some of the useful variables.
1306
1307 Defaults for the options are specified in brackets.
1308
1309 Configuration:
1310   -h, --help              display this help and exit
1311       --help=short        display options specific to this package
1312       --help=recursive    display the short help of all the included packages
1313   -V, --version           display version information and exit
1314   -q, --quiet, --silent   do not print \`checking...' messages
1315       --cache-file=FILE   cache test results in FILE [disabled]
1316   -C, --config-cache      alias for \`--cache-file=config.cache'
1317   -n, --no-create         do not create output files
1318       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1319
1320 Installation directories:
1321   --prefix=PREFIX         install architecture-independent files in PREFIX
1322                           [$ac_default_prefix]
1323   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1324                           [PREFIX]
1325
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1330
1331 For better control, use the options below.
1332
1333 Fine tuning of the installation directories:
1334   --bindir=DIR           user executables [EPREFIX/bin]
1335   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1336   --libexecdir=DIR       program executables [EPREFIX/libexec]
1337   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1338   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1339   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1340   --libdir=DIR           object code libraries [EPREFIX/lib]
1341   --includedir=DIR       C header files [PREFIX/include]
1342   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1343   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1344   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1345   --infodir=DIR          info documentation [DATAROOTDIR/info]
1346   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1347   --mandir=DIR           man documentation [DATAROOTDIR/man]
1348   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1349   --htmldir=DIR          html documentation [DOCDIR]
1350   --dvidir=DIR           dvi documentation [DOCDIR]
1351   --pdfdir=DIR           pdf documentation [DOCDIR]
1352   --psdir=DIR            ps documentation [DOCDIR]
1353 _ACEOF
1354
1355   cat <<\_ACEOF
1356
1357 System types:
1358   --build=BUILD     configure for building on BUILD [guessed]
1359   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1360   --target=TARGET   configure for building compilers for TARGET [HOST]
1361 _ACEOF
1362 fi
1363
1364 if test -n "$ac_init_help"; then
1365   case $ac_init_help in
1366      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1367    esac
1368   cat <<\_ACEOF
1369
1370 Optional Features:
1371   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1372   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1373   --enable-polly          Use polly if available (default is YES)
1374   --enable-libcpp         Use libc++ if available (default is NO)
1375   --enable-cxx11          Use c++11 if available (default is NO)
1376   --enable-optimized      Compile with optimizations enabled (default is NO)
1377   --enable-profiling      Compile with profiling enabled (default is NO)
1378   --enable-assertions     Compile with assertion checks enabled (default is
1379                           YES)
1380   --enable-werror         Compile with -Werror enabled (default is NO)
1381   --enable-expensive-checks
1382                           Compile with expensive debug checks enabled (default
1383                           is NO)
1384   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1385                           NO)
1386   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1387                           optimization is on and YES if it's off)
1388   --enable-jit            Enable Just In Time Compiling (default is YES)
1389   --enable-docs           Build documents (default is YES)
1390   --enable-doxygen        Build doxygen documentation (default is NO)
1391   --enable-threads        Use threads if available (default is YES)
1392   --enable-pthreads       Use pthreads if available (default is YES)
1393   --enable-zlib           Use zlib for compression/decompression if available
1394                           (default is YES)
1395   --enable-pic            Build LLVM with Position Independent Code (default
1396                           is YES)
1397   --enable-shared         Build a shared library and link tools against it
1398                           (default is NO)
1399   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1400                           Win32 DLL (default is YES)
1401   --enable-timestamps     Enable embedding timestamp information in build
1402                           (default is YES)
1403   --enable-targets        Build specific host targets: all or
1404                           target1,target2,... Valid targets are: host, x86,
1405                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1406                           xcore, msp430, nvptx, systemz, r600, and cpp
1407                           (default=all)
1408   --enable-bindings       Build specific language bindings:
1409                           all,auto,none,{binding-name} (default=auto)
1410   --enable-terminfo       Query the terminfo database if available (default is
1411                           YES)
1412   --enable-libffi         Check for the presence of libffi (default is NO)
1413
1414 Optional Packages:
1415   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1416   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1417   --with-llvmsrc          Location of LLVM Source Code
1418   --with-llvmobj          Location of LLVM Object Code
1419   --with-optimize-option  Select the compiler options to use for optimized
1420                           builds
1421   --with-extra-options    Specify additional options to compile LLVM with
1422   --with-extra-ld-options Specify additional options to link LLVM with
1423   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1424                           is stdlib)
1425   --with-clang-resource-dir
1426                           Relative directory from the Clang binary for
1427                           resource files
1428   --with-c-include-dirs   Colon separated list of directories clang will
1429                           search for headers
1430   --with-gcc-toolchain    Directory where gcc is installed.
1431   --with-binutils-include Specify path to binutils/include/ containing
1432                           plugin-api.h file for gold plugin.
1433   --with-bug-report-url   Specify the URL where bug reports should be
1434                           submitted (default=http://llvm.org/bugs/)
1435   --with-tclinclude       directory where tcl headers are
1436   --with-udis86=<path>    Use udis86 external x86 disassembler library
1437   --with-oprofile=<prefix>
1438                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1439
1440 Some influential environment variables:
1441   CC          C compiler command
1442   CFLAGS      C compiler flags
1443   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1444               nonstandard directory <lib dir>
1445   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1446               you have headers in a nonstandard directory <include dir>
1447   CXX         C++ compiler command
1448   CXXFLAGS    C++ compiler flags
1449   CPP         C preprocessor
1450
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1453
1454 Report bugs to <bugs@yourdomain>.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460   # If there are subdirs, report their specific --help.
1461   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462     test -d "$ac_dir" || continue
1463     ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1469   # A ".." for each directory in $ac_dir_suffix.
1470   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1471   case $ac_top_builddir_sub in
1472   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474   esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482   .)  # We are building in place.
1483     ac_srcdir=.
1484     ac_top_srcdir=$ac_top_builddir_sub
1485     ac_abs_top_srcdir=$ac_pwd ;;
1486   [\\/]* | ?:[\\/]* )  # Absolute name.
1487     ac_srcdir=$srcdir$ac_dir_suffix;
1488     ac_top_srcdir=$srcdir
1489     ac_abs_top_srcdir=$srcdir ;;
1490   *) # Relative name.
1491     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492     ac_top_srcdir=$ac_top_build_prefix$srcdir
1493     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497     cd "$ac_dir" || { ac_status=$?; continue; }
1498     # Check for guested configure.
1499     if test -f "$ac_srcdir/configure.gnu"; then
1500       echo &&
1501       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502     elif test -f "$ac_srcdir/configure"; then
1503       echo &&
1504       $SHELL "$ac_srcdir/configure" --help=recursive
1505     else
1506       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507     fi || ac_status=$?
1508     cd "$ac_pwd" || { ac_status=$?; break; }
1509   done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514   cat <<\_ACEOF
1515 [SAMPLE] configure [x.xx]
1516 generated by GNU Autoconf 2.60
1517
1518 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1519 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523   exit
1524 fi
1525 cat >config.log <<_ACEOF
1526 This file contains any messages produced by compilers while
1527 running configure, to aid debugging if configure makes a mistake.
1528
1529 It was created by [SAMPLE] $as_me [x.xx], which was
1530 generated by GNU Autoconf 2.60.  Invocation command line was
1531
1532   $ $0 $@
1533
1534 _ACEOF
1535 exec 5>>config.log
1536 {
1537 cat <<_ASUNAME
1538 ## --------- ##
1539 ## Platform. ##
1540 ## --------- ##
1541
1542 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1543 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1544 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1545 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1546 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1547
1548 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1549 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1550
1551 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1552 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1553 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1554 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1555 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1556 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1557 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1558
1559 _ASUNAME
1560
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562 for as_dir in $PATH
1563 do
1564   IFS=$as_save_IFS
1565   test -z "$as_dir" && as_dir=.
1566   echo "PATH: $as_dir"
1567 done
1568 IFS=$as_save_IFS
1569
1570 } >&5
1571
1572 cat >&5 <<_ACEOF
1573
1574
1575 ## ----------- ##
1576 ## Core tests. ##
1577 ## ----------- ##
1578
1579 _ACEOF
1580
1581
1582 # Keep a trace of the command line.
1583 # Strip out --no-create and --no-recursion so they do not pile up.
1584 # Strip out --silent because we don't want to record it for future runs.
1585 # Also quote any args containing shell meta-characters.
1586 # Make two passes to allow for proper duplicate-argument suppression.
1587 ac_configure_args=
1588 ac_configure_args0=
1589 ac_configure_args1=
1590 ac_must_keep_next=false
1591 for ac_pass in 1 2
1592 do
1593   for ac_arg
1594   do
1595     case $ac_arg in
1596     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1597     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1598     | -silent | --silent | --silen | --sile | --sil)
1599       continue ;;
1600     *\'*)
1601       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1602     esac
1603     case $ac_pass in
1604     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1605     2)
1606       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1607       if test $ac_must_keep_next = true; then
1608         ac_must_keep_next=false # Got value, back to normal.
1609       else
1610         case $ac_arg in
1611           *=* | --config-cache | -C | -disable-* | --disable-* \
1612           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1613           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1614           | -with-* | --with-* | -without-* | --without-* | --x)
1615             case "$ac_configure_args0 " in
1616               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1617             esac
1618             ;;
1619           -* ) ac_must_keep_next=true ;;
1620         esac
1621       fi
1622       ac_configure_args="$ac_configure_args '$ac_arg'"
1623       ;;
1624     esac
1625   done
1626 done
1627 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1628 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1629
1630 # When interrupted or exit'd, cleanup temporary files, and complete
1631 # config.log.  We remove comments because anyway the quotes in there
1632 # would cause problems or look ugly.
1633 # WARNING: Use '\'' to represent an apostrophe within the trap.
1634 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1635 trap 'exit_status=$?
1636   # Save into config.log some information that might help in debugging.
1637   {
1638     echo
1639
1640     cat <<\_ASBOX
1641 ## ---------------- ##
1642 ## Cache variables. ##
1643 ## ---------------- ##
1644 _ASBOX
1645     echo
1646     # The following way of writing the cache mishandles newlines in values,
1647 (
1648   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1649     eval ac_val=\$$ac_var
1650     case $ac_val in #(
1651     *${as_nl}*)
1652       case $ac_var in #(
1653       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1654 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1655       esac
1656       case $ac_var in #(
1657       _ | IFS | as_nl) ;; #(
1658       *) $as_unset $ac_var ;;
1659       esac ;;
1660     esac
1661   done
1662   (set) 2>&1 |
1663     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1664     *${as_nl}ac_space=\ *)
1665       sed -n \
1666         "s/'\''/'\''\\\\'\'''\''/g;
1667           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1668       ;; #(
1669     *)
1670       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1671       ;;
1672     esac |
1673     sort
1674 )
1675     echo
1676
1677     cat <<\_ASBOX
1678 ## ----------------- ##
1679 ## Output variables. ##
1680 ## ----------------- ##
1681 _ASBOX
1682     echo
1683     for ac_var in $ac_subst_vars
1684     do
1685       eval ac_val=\$$ac_var
1686       case $ac_val in
1687       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688       esac
1689       echo "$ac_var='\''$ac_val'\''"
1690     done | sort
1691     echo
1692
1693     if test -n "$ac_subst_files"; then
1694       cat <<\_ASBOX
1695 ## ------------------- ##
1696 ## File substitutions. ##
1697 ## ------------------- ##
1698 _ASBOX
1699       echo
1700       for ac_var in $ac_subst_files
1701       do
1702         eval ac_val=\$$ac_var
1703         case $ac_val in
1704         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1705         esac
1706         echo "$ac_var='\''$ac_val'\''"
1707       done | sort
1708       echo
1709     fi
1710
1711     if test -s confdefs.h; then
1712       cat <<\_ASBOX
1713 ## ----------- ##
1714 ## confdefs.h. ##
1715 ## ----------- ##
1716 _ASBOX
1717       echo
1718       cat confdefs.h
1719       echo
1720     fi
1721     test "$ac_signal" != 0 &&
1722       echo "$as_me: caught signal $ac_signal"
1723     echo "$as_me: exit $exit_status"
1724   } >&5
1725   rm -f core *.core core.conftest.* &&
1726     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1727     exit $exit_status
1728 ' 0
1729 for ac_signal in 1 2 13 15; do
1730   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1731 done
1732 ac_signal=0
1733
1734 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1735 rm -f -r conftest* confdefs.h
1736
1737 # Predefined preprocessor variables.
1738
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_NAME "$PACKAGE_NAME"
1741 _ACEOF
1742
1743
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1746 _ACEOF
1747
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1751 _ACEOF
1752
1753
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_STRING "$PACKAGE_STRING"
1756 _ACEOF
1757
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1761 _ACEOF
1762
1763
1764 # Let the site file select an alternate cache file if it wants to.
1765 # Prefer explicitly selected file to automatically selected ones.
1766 if test -n "$CONFIG_SITE"; then
1767   set x "$CONFIG_SITE"
1768 elif test "x$prefix" != xNONE; then
1769   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1770 else
1771   set x "$ac_default_prefix/share/config.site" \
1772         "$ac_default_prefix/etc/config.site"
1773 fi
1774 shift
1775 for ac_site_file
1776 do
1777   if test -r "$ac_site_file"; then
1778     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1779 echo "$as_me: loading site script $ac_site_file" >&6;}
1780     sed 's/^/| /' "$ac_site_file" >&5
1781     . "$ac_site_file"
1782   fi
1783 done
1784
1785 if test -r "$cache_file"; then
1786   # Some versions of bash will fail to source /dev/null (special
1787   # files actually), so we avoid doing that.
1788   if test -f "$cache_file"; then
1789     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1790 echo "$as_me: loading cache $cache_file" >&6;}
1791     case $cache_file in
1792       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1793       *)                      . "./$cache_file";;
1794     esac
1795   fi
1796 else
1797   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1798 echo "$as_me: creating cache $cache_file" >&6;}
1799   >$cache_file
1800 fi
1801
1802 # Check that the precious variables saved in the cache have kept the same
1803 # value.
1804 ac_cache_corrupted=false
1805 for ac_var in $ac_precious_vars; do
1806   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1807   eval ac_new_set=\$ac_env_${ac_var}_set
1808   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1809   eval ac_new_val=\$ac_env_${ac_var}_value
1810   case $ac_old_set,$ac_new_set in
1811     set,)
1812       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1813 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1814       ac_cache_corrupted=: ;;
1815     ,set)
1816       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1817 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1818       ac_cache_corrupted=: ;;
1819     ,);;
1820     *)
1821       if test "x$ac_old_val" != "x$ac_new_val"; then
1822         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1823 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1824         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1825 echo "$as_me:   former value:  $ac_old_val" >&2;}
1826         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1827 echo "$as_me:   current value: $ac_new_val" >&2;}
1828         ac_cache_corrupted=:
1829       fi;;
1830   esac
1831   # Pass precious variables to config.status.
1832   if test "$ac_new_set" = set; then
1833     case $ac_new_val in
1834     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1835     *) ac_arg=$ac_var=$ac_new_val ;;
1836     esac
1837     case " $ac_configure_args " in
1838       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1839       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1840     esac
1841   fi
1842 done
1843 if $ac_cache_corrupted; then
1844   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1848    { (exit 1); exit 1; }; }
1849 fi
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875 ac_ext=c
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880
1881
1882
1883 LLVM_SRC_ROOT="../.."
1884 LLVM_OBJ_ROOT="../.."
1885
1886 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1887 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1888
1889
1890 # Check whether --with-llvmsrc was given.
1891 if test "${with_llvmsrc+set}" = set; then
1892   withval=$with_llvmsrc; llvm_src="$withval"
1893 else
1894   llvm_src="$LLVM_ABS_SRC_ROOT"
1895 fi
1896
1897   LLVM_SRC=$llvm_src
1898
1899
1900 # Check whether --with-llvmobj was given.
1901 if test "${with_llvmobj+set}" = set; then
1902   withval=$with_llvmobj; llvm_obj="$withval"
1903 else
1904   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1905 fi
1906
1907   LLVM_OBJ=$llvm_obj
1908
1909   ac_config_commands="$ac_config_commands setup"
1910
1911
1912
1913 { echo "$as_me:$LINENO: checking llvm-config" >&5
1914 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1915 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1916 if ! test -f "$llvm_config_path" ; then
1917    llvm_config_path="no"
1918 fi
1919 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1920 echo "${ECHO_T}$llvm_config_path" >&6; }
1921
1922 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1923 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1924 if test "$llvm_config_path" != no ; then
1925   llvm_package_version=`$llvm_config_path --version`
1926 else
1927   llvm_package_version="unknown";
1928 fi
1929 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1930 echo "${ECHO_T}$llvm_package_version" >&6; }
1931 LLVM_VERSION=$llvm_package_version
1932
1933
1934
1935
1936 ac_aux_dir=
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938   if test -f "$ac_dir/install-sh"; then
1939     ac_aux_dir=$ac_dir
1940     ac_install_sh="$ac_aux_dir/install-sh -c"
1941     break
1942   elif test -f "$ac_dir/install.sh"; then
1943     ac_aux_dir=$ac_dir
1944     ac_install_sh="$ac_aux_dir/install.sh -c"
1945     break
1946   elif test -f "$ac_dir/shtool"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/shtool install -c"
1949     break
1950   fi
1951 done
1952 if test -z "$ac_aux_dir"; then
1953   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1965
1966
1967
1968
1969 ac_ext=c
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975   for ac_prog in clang llvm-gcc gcc
1976   do
1977     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   if test -n "$CC"; then
1985   ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990   IFS=$as_save_IFS
1991   test -z "$as_dir" && as_dir=.
1992   for ac_exec_ext in '' $ac_executable_extensions; do
1993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1994     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996     break 2
1997   fi
1998 done
1999 done
2000 IFS=$as_save_IFS
2001
2002 fi
2003 fi
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006   { echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6; }
2008 else
2009   { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2011 fi
2012
2013
2014     test -n "$CC" && break
2015   done
2016 fi
2017 if test -z "$CC"; then
2018   ac_ct_CC=$CC
2019   for ac_prog in clang llvm-gcc gcc
2020 do
2021   # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   if test -n "$ac_ct_CC"; then
2029   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034   IFS=$as_save_IFS
2035   test -z "$as_dir" && as_dir=.
2036   for ac_exec_ext in '' $ac_executable_extensions; do
2037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2038     ac_cv_prog_ac_ct_CC="$ac_prog"
2039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040     break 2
2041   fi
2042 done
2043 done
2044 IFS=$as_save_IFS
2045
2046 fi
2047 fi
2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049 if test -n "$ac_ct_CC"; then
2050   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051 echo "${ECHO_T}$ac_ct_CC" >&6; }
2052 else
2053   { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2055 fi
2056
2057
2058   test -n "$ac_ct_CC" && break
2059 done
2060
2061   if test "x$ac_ct_CC" = x; then
2062     CC=""
2063   else
2064     case $cross_compiling:$ac_tool_warned in
2065 yes:)
2066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet.  If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&5
2069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet.  If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2072 ac_tool_warned=yes ;;
2073 esac
2074     CC=$ac_ct_CC
2075   fi
2076 fi
2077
2078
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&2;}
2083    { (exit 1); exit 1; }; }
2084
2085 # Provide some information about the compiler.
2086 echo "$as_me:$LINENO: checking for C compiler version" >&5
2087 ac_compiler=`set X $ac_compile; echo $2`
2088 { (ac_try="$ac_compiler --version >&5"
2089 case "(($ac_try" in
2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091   *) ac_try_echo=$ac_try;;
2092 esac
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094   (eval "$ac_compiler --version >&5") 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }
2098 { (ac_try="$ac_compiler -v >&5"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104   (eval "$ac_compiler -v >&5") 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }
2108 { (ac_try="$ac_compiler -V >&5"
2109 case "(($ac_try" in
2110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111   *) ac_try_echo=$ac_try;;
2112 esac
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114   (eval "$ac_compiler -V >&5") 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }
2118
2119 cat >conftest.$ac_ext <<_ACEOF
2120 /* confdefs.h.  */
2121 _ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h.  */
2125
2126 int
2127 main ()
2128 {
2129
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 ac_clean_files_save=$ac_clean_files
2135 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2136 # Try to create an executable without -o first, disregard a.out.
2137 # It will help us diagnose broken compilers, and finding out an intuition
2138 # of exeext.
2139 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2142 #
2143 # List of possible output files, starting from the most likely.
2144 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145 # only as a last resort.  b.out is created by i960 compilers.
2146 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2147 #
2148 # The IRIX 6 linker writes into existing files which may not be
2149 # executable, retaining their permissions.  Remove them first so a
2150 # subsequent execution test works.
2151 ac_rmfiles=
2152 for ac_file in $ac_files
2153 do
2154   case $ac_file in
2155     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2156     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2157   esac
2158 done
2159 rm -f $ac_rmfiles
2160
2161 if { (ac_try="$ac_link_default"
2162 case "(($ac_try" in
2163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164   *) ac_try_echo=$ac_try;;
2165 esac
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167   (eval "$ac_link_default") 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }; then
2171   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2174 # so that the user can short-circuit this test for compilers unknown to
2175 # Autoconf.
2176 for ac_file in $ac_files
2177 do
2178   test -f "$ac_file" || continue
2179   case $ac_file in
2180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2181         ;;
2182     [ab].out )
2183         # We found the default executable, but exeext='' is most
2184         # certainly right.
2185         break;;
2186     *.* )
2187         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2188         then :; else
2189            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190         fi
2191         # We set ac_cv_exeext here because the later test for it is not
2192         # safe: cross compilers may not add the suffix if given an `-o'
2193         # argument, so we may need to know it at that point already.
2194         # Even if this section looks crufty: it has the advantage of
2195         # actually working.
2196         break;;
2197     * )
2198         break;;
2199   esac
2200 done
2201 test "$ac_cv_exeext" = no && ac_cv_exeext=
2202
2203 else
2204   echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2206
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211    { (exit 77); exit 77; }; }
2212 fi
2213
2214 ac_exeext=$ac_cv_exeext
2215 { echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6; }
2217
2218 # Check that the compiler produces executables we can run.  If not, either
2219 # the compiler is broken, or we cross compile.
2220 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225   if { ac_try='./$ac_file'
2226   { (case "(($ac_try" in
2227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228   *) ac_try_echo=$ac_try;;
2229 esac
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231   (eval "$ac_try") 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235     cross_compiling=no
2236   else
2237     if test "$cross_compiling" = maybe; then
2238         cross_compiling=yes
2239     else
2240         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246    { (exit 1); exit 1; }; }
2247     fi
2248   fi
2249 fi
2250 { echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6; }
2252
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check that the compiler produces executables we can run.  If not, either
2256 # the compiler is broken, or we cross compile.
2257 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6; }
2261
2262 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264 if { (ac_try="$ac_link"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270   (eval "$ac_link") 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; then
2274   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2276 # work properly (i.e., refer to `conftest.exe'), while it won't with
2277 # `rm'.
2278 for ac_file in conftest.exe conftest conftest.*; do
2279   test -f "$ac_file" || continue
2280   case $ac_file in
2281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283           break;;
2284     * ) break;;
2285   esac
2286 done
2287 else
2288   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293 fi
2294
2295 rm -f conftest$ac_cv_exeext
2296 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2298
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2301 ac_exeext=$EXEEXT
2302 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304 if test "${ac_cv_objext+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   cat >conftest.$ac_ext <<_ACEOF
2308 /* confdefs.h.  */
2309 _ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h.  */
2313
2314 int
2315 main ()
2316 {
2317
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 rm -f conftest.o conftest.obj
2323 if { (ac_try="$ac_compile"
2324 case "(($ac_try" in
2325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326   *) ac_try_echo=$ac_try;;
2327 esac
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329   (eval "$ac_compile") 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; then
2333   for ac_file in conftest.o conftest.obj conftest.*; do
2334   test -f "$ac_file" || continue;
2335   case $ac_file in
2336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2337     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338        break;;
2339   esac
2340 done
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349    { (exit 1); exit 1; }; }
2350 fi
2351
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353 fi
2354 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6; }
2356 OBJEXT=$ac_cv_objext
2357 ac_objext=$OBJEXT
2358 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369
2370 int
2371 main ()
2372 {
2373 #ifndef __GNUC__
2374        choke me
2375 #endif
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.$ac_objext
2382 if { (ac_try="$ac_compile"
2383 case "(($ac_try" in
2384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385   *) ac_try_echo=$ac_try;;
2386 esac
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388   (eval "$ac_compile") 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396   { (case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401   (eval "$ac_try") 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; } &&
2405          { ac_try='test -s conftest.$ac_objext'
2406   { (case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_try") 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   ac_compiler_gnu=yes
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420         ac_compiler_gnu=no
2421 fi
2422
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2425
2426 fi
2427 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429 GCC=`test $ac_compiler_gnu = yes && echo yes`
2430 ac_test_CFLAGS=${CFLAGS+set}
2431 ac_save_CFLAGS=$CFLAGS
2432 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   ac_save_c_werror_flag=$ac_c_werror_flag
2438    ac_c_werror_flag=yes
2439    ac_cv_prog_cc_g=no
2440    CFLAGS="-g"
2441    cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h.  */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h.  */
2447
2448 int
2449 main ()
2450 {
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2458 case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463   (eval "$ac_compile") 2>conftest.er1
2464   ac_status=$?
2465   grep -v '^ *+' conftest.er1 >conftest.err
2466   rm -f conftest.er1
2467   cat conftest.err >&5
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); } &&
2470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471   { (case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_try") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486   (eval "$ac_try") 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   ac_cv_prog_cc_g=yes
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495         CFLAGS=""
2496       cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h.  */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h.  */
2502
2503 int
2504 main ()
2505 {
2506
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 rm -f conftest.$ac_objext
2512 if { (ac_try="$ac_compile"
2513 case "(($ac_try" in
2514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515   *) ac_try_echo=$ac_try;;
2516 esac
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518   (eval "$ac_compile") 2>conftest.er1
2519   ac_status=$?
2520   grep -v '^ *+' conftest.er1 >conftest.err
2521   rm -f conftest.er1
2522   cat conftest.err >&5
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); } &&
2525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526   { (case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_try") 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; } &&
2535          { ac_try='test -s conftest.$ac_objext'
2536   { (case "(($ac_try" in
2537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538   *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541   (eval "$ac_try") 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; }; then
2545   :
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550         ac_c_werror_flag=$ac_save_c_werror_flag
2551          CFLAGS="-g"
2552          cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (ac_try="$ac_compile"
2569 case "(($ac_try" in
2570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571   *) ac_try_echo=$ac_try;;
2572 esac
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574   (eval "$ac_compile") 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; } &&
2591          { ac_try='test -s conftest.$ac_objext'
2592   { (case "(($ac_try" in
2593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594   *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597   (eval "$ac_try") 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; }; then
2601   ac_cv_prog_cc_g=yes
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606
2607 fi
2608
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 fi
2614
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616    ac_c_werror_flag=$ac_save_c_werror_flag
2617 fi
2618 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2620 if test "$ac_test_CFLAGS" = set; then
2621   CFLAGS=$ac_save_CFLAGS
2622 elif test $ac_cv_prog_cc_g = yes; then
2623   if test "$GCC" = yes; then
2624     CFLAGS="-g -O2"
2625   else
2626     CFLAGS="-g"
2627   fi
2628 else
2629   if test "$GCC" = yes; then
2630     CFLAGS="-O2"
2631   else
2632     CFLAGS=
2633   fi
2634 fi
2635 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_cc_c89+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   ac_cv_prog_cc_c89=no
2641 ac_save_CC=$CC
2642 cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648 #include <stdarg.h>
2649 #include <stdio.h>
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2653 struct buf { int x; };
2654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655 static char *e (p, i)
2656      char **p;
2657      int i;
2658 {
2659   return p[i];
2660 }
2661 static char *f (char * (*g) (char **, int), char **p, ...)
2662 {
2663   char *s;
2664   va_list v;
2665   va_start (v,p);
2666   s = g (p, va_arg (v,int));
2667   va_end (v);
2668   return s;
2669 }
2670
2671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2672    function prototypes and stuff, but not '\xHH' hex character constants.
2673    These don't provoke an error unfortunately, instead are silently treated
2674    as 'x'.  The following induces an error, until -std is added to get
2675    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2676    array size at least.  It's necessary to write '\x00'==0 to get something
2677    that's true only with -std.  */
2678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2679
2680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681    inside strings and character constants.  */
2682 #define FOO(x) 'x'
2683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2684
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689 int argc;
2690 char **argv;
2691 int
2692 main ()
2693 {
2694 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2701 do
2702   CC="$ac_save_CC $ac_arg"
2703   rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_compile") 2>conftest.er1
2711   ac_status=$?
2712   grep -v '^ *+' conftest.er1 >conftest.err
2713   rm -f conftest.er1
2714   cat conftest.err >&5
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); } &&
2717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733   (eval "$ac_try") 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; }; then
2737   ac_cv_prog_cc_c89=$ac_arg
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742
2743 fi
2744
2745 rm -f core conftest.err conftest.$ac_objext
2746   test "x$ac_cv_prog_cc_c89" != "xno" && break
2747 done
2748 rm -f conftest.$ac_ext
2749 CC=$ac_save_CC
2750
2751 fi
2752 # AC_CACHE_VAL
2753 case "x$ac_cv_prog_cc_c89" in
2754   x)
2755     { echo "$as_me:$LINENO: result: none needed" >&5
2756 echo "${ECHO_T}none needed" >&6; } ;;
2757   xno)
2758     { echo "$as_me:$LINENO: result: unsupported" >&5
2759 echo "${ECHO_T}unsupported" >&6; } ;;
2760   *)
2761     CC="$CC $ac_cv_prog_cc_c89"
2762     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2764 esac
2765
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772
2773 ac_ext=cpp
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778 if test -z "$CXX"; then
2779   if test -n "$CCC"; then
2780     CXX=$CCC
2781   else
2782     if test -n "$ac_tool_prefix"; then
2783   for ac_prog in clang++ llvm-g++ g++
2784   do
2785     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CXX+set}" = set; then
2790   echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792   if test -n "$CXX"; then
2793   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798   IFS=$as_save_IFS
2799   test -z "$as_dir" && as_dir=.
2800   for ac_exec_ext in '' $ac_executable_extensions; do
2801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804     break 2
2805   fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 CXX=$ac_cv_prog_CXX
2813 if test -n "$CXX"; then
2814   { echo "$as_me:$LINENO: result: $CXX" >&5
2815 echo "${ECHO_T}$CXX" >&6; }
2816 else
2817   { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2819 fi
2820
2821
2822     test -n "$CXX" && break
2823   done
2824 fi
2825 if test -z "$CXX"; then
2826   ac_ct_CXX=$CXX
2827   for ac_prog in clang++ llvm-g++ g++
2828 do
2829   # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   if test -n "$ac_ct_CXX"; then
2837   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844   for ac_exec_ext in '' $ac_executable_extensions; do
2845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846     ac_cv_prog_ac_ct_CXX="$ac_prog"
2847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848     break 2
2849   fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857 if test -n "$ac_ct_CXX"; then
2858   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2860 else
2861   { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2863 fi
2864
2865
2866   test -n "$ac_ct_CXX" && break
2867 done
2868
2869   if test "x$ac_ct_CXX" = x; then
2870     CXX="g++"
2871   else
2872     case $cross_compiling:$ac_tool_warned in
2873 yes:)
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet.  If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&5
2877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet.  If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880 ac_tool_warned=yes ;;
2881 esac
2882     CXX=$ac_ct_CXX
2883   fi
2884 fi
2885
2886   fi
2887 fi
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (ac_try="$ac_compiler --version >&5"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compiler --version >&5") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901 { (ac_try="$ac_compiler -v >&5"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compiler -v >&5") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911 { (ac_try="$ac_compiler -V >&5"
2912 case "(($ac_try" in
2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914   *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917   (eval "$ac_compiler -V >&5") 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }
2921
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933
2934 int
2935 main ()
2936 {
2937 #ifndef __GNUC__
2938        choke me
2939 #endif
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952   (eval "$ac_compile") 2>conftest.er1
2953   ac_status=$?
2954   grep -v '^ *+' conftest.er1 >conftest.err
2955   rm -f conftest.er1
2956   cat conftest.err >&5
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); } &&
2959          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960   { (case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_try") 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; } &&
2969          { ac_try='test -s conftest.$ac_objext'
2970   { (case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975   (eval "$ac_try") 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }; }; then
2979   ac_compiler_gnu=yes
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984         ac_compiler_gnu=no
2985 fi
2986
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2989
2990 fi
2991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993 GXX=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CXXFLAGS=${CXXFLAGS+set}
2995 ac_save_CXXFLAGS=$CXXFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cxx_g+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002    ac_cxx_werror_flag=yes
3003    ac_cv_prog_cxx_g=no
3004    CXXFLAGS="-g"
3005    cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } &&
3034          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_try") 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; }; then
3054   ac_cv_prog_cxx_g=yes
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059         CXXFLAGS=""
3060       cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066
3067 int
3068 main ()
3069 {
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_compile") 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } &&
3089          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090   { (case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; } &&
3099          { ac_try='test -s conftest.$ac_objext'
3100   { (case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_try") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; }; then
3109   :
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3115          CXXFLAGS="-g"
3116          cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_compile") 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } &&
3145          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; } &&
3155          { ac_try='test -s conftest.$ac_objext'
3156   { (case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_try") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; }; then
3165   ac_cv_prog_cxx_g=yes
3166 else
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170
3171 fi
3172
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 fi
3175
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 fi
3178
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181 fi
3182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184 if test "$ac_test_CXXFLAGS" = set; then
3185   CXXFLAGS=$ac_save_CXXFLAGS
3186 elif test $ac_cv_prog_cxx_g = yes; then
3187   if test "$GXX" = yes; then
3188     CXXFLAGS="-g -O2"
3189   else
3190     CXXFLAGS="-g"
3191   fi
3192 else
3193   if test "$GXX" = yes; then
3194     CXXFLAGS="-O2"
3195   else
3196     CXXFLAGS=
3197   fi
3198 fi
3199 ac_ext=c
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3212 # On Suns, sometimes $CPP names a directory.
3213 if test -n "$CPP" && test -d "$CPP"; then
3214   CPP=
3215 fi
3216 if test -z "$CPP"; then
3217   if test "${ac_cv_prog_CPP+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220       # Double quotes because CPP needs to be expanded
3221     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3222     do
3223       ac_preproc_ok=false
3224 for ac_c_preproc_warn_flag in '' yes
3225 do
3226   # Use a header file that comes with gcc, so configuring glibc
3227   # with a fresh cross-compiler works.
3228   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229   # <limits.h> exists even on freestanding compilers.
3230   # On the NeXT, cc -E runs the code through the compiler's parser,
3231   # not just through cpp. "Syntax error" is here to catch this case.
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 #ifdef __STDC__
3239 # include <limits.h>
3240 #else
3241 # include <assert.h>
3242 #endif
3243                      Syntax error
3244 _ACEOF
3245 if { (ac_try="$ac_cpp conftest.$ac_ext"
3246 case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3252   ac_status=$?
3253   grep -v '^ *+' conftest.er1 >conftest.err
3254   rm -f conftest.er1
3255   cat conftest.err >&5
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); } >/dev/null; then
3258   if test -s conftest.err; then
3259     ac_cpp_err=$ac_c_preproc_warn_flag
3260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261   else
3262     ac_cpp_err=
3263   fi
3264 else
3265   ac_cpp_err=yes
3266 fi
3267 if test -z "$ac_cpp_err"; then
3268   :
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273   # Broken: fails on valid input.
3274 continue
3275 fi
3276
3277 rm -f conftest.err conftest.$ac_ext
3278
3279   # OK, works on sane cases.  Now check whether nonexistent headers
3280   # can be detected and how.
3281   cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <ac_nonexistent.h>
3288 _ACEOF
3289 if { (ac_try="$ac_cpp conftest.$ac_ext"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } >/dev/null; then
3302   if test -s conftest.err; then
3303     ac_cpp_err=$ac_c_preproc_warn_flag
3304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305   else
3306     ac_cpp_err=
3307   fi
3308 else
3309   ac_cpp_err=yes
3310 fi
3311 if test -z "$ac_cpp_err"; then
3312   # Broken: success on invalid input.
3313 continue
3314 else
3315   echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318   # Passes both tests.
3319 ac_preproc_ok=:
3320 break
3321 fi
3322
3323 rm -f conftest.err conftest.$ac_ext
3324
3325 done
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3329   break
3330 fi
3331
3332     done
3333     ac_cv_prog_CPP=$CPP
3334
3335 fi
3336   CPP=$ac_cv_prog_CPP
3337 else
3338   ac_cv_prog_CPP=$CPP
3339 fi
3340 { echo "$as_me:$LINENO: result: $CPP" >&5
3341 echo "${ECHO_T}$CPP" >&6; }
3342 ac_preproc_ok=false
3343 for ac_c_preproc_warn_flag in '' yes
3344 do
3345   # Use a header file that comes with gcc, so configuring glibc
3346   # with a fresh cross-compiler works.
3347   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348   # <limits.h> exists even on freestanding compilers.
3349   # On the NeXT, cc -E runs the code through the compiler's parser,
3350   # not just through cpp. "Syntax error" is here to catch this case.
3351   cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h.  */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h.  */
3357 #ifdef __STDC__
3358 # include <limits.h>
3359 #else
3360 # include <assert.h>
3361 #endif
3362                      Syntax error
3363 _ACEOF
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } >/dev/null; then
3377   if test -s conftest.err; then
3378     ac_cpp_err=$ac_c_preproc_warn_flag
3379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380   else
3381     ac_cpp_err=
3382   fi
3383 else
3384   ac_cpp_err=yes
3385 fi
3386 if test -z "$ac_cpp_err"; then
3387   :
3388 else
3389   echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392   # Broken: fails on valid input.
3393 continue
3394 fi
3395
3396 rm -f conftest.err conftest.$ac_ext
3397
3398   # OK, works on sane cases.  Now check whether nonexistent headers
3399   # can be detected and how.
3400   cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h.  */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h.  */
3406 #include <ac_nonexistent.h>
3407 _ACEOF
3408 if { (ac_try="$ac_cpp conftest.$ac_ext"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } >/dev/null; then
3421   if test -s conftest.err; then
3422     ac_cpp_err=$ac_c_preproc_warn_flag
3423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424   else
3425     ac_cpp_err=
3426   fi
3427 else
3428   ac_cpp_err=yes
3429 fi
3430 if test -z "$ac_cpp_err"; then
3431   # Broken: success on invalid input.
3432 continue
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437   # Passes both tests.
3438 ac_preproc_ok=:
3439 break
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3448   :
3449 else
3450   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464
3465
3466 # Check whether --enable-polly was given.
3467 if test "${enable_polly+set}" = set; then
3468   enableval=$enable_polly;
3469 else
3470   enableval=default
3471 fi
3472
3473 case "$enableval" in
3474   yes) ENABLE_POLLY=1
3475  ;;
3476   no)  ENABLE_POLLY=0
3477  ;;
3478   default) ENABLE_POLLY=1
3479  ;;
3480   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3481 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3482    { (exit 1); exit 1; }; } ;;
3483 esac
3484
3485
3486 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3487   LLVM_HAS_POLLY=1
3488
3489   subdirs="$subdirs tools/polly"
3490
3491 fi
3492
3493
3494 # Make sure we can run config.sub.
3495 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3496   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3497 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3498    { (exit 1); exit 1; }; }
3499
3500 { echo "$as_me:$LINENO: checking build system type" >&5
3501 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3502 if test "${ac_cv_build+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   ac_build_alias=$build_alias
3506 test "x$ac_build_alias" = x &&
3507   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3508 test "x$ac_build_alias" = x &&
3509   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3510 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3511    { (exit 1); exit 1; }; }
3512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3513   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3514 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3515    { (exit 1); exit 1; }; }
3516
3517 fi
3518 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3519 echo "${ECHO_T}$ac_cv_build" >&6; }
3520 case $ac_cv_build in
3521 *-*-*) ;;
3522 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3523 echo "$as_me: error: invalid value of canonical build" >&2;}
3524    { (exit 1); exit 1; }; };;
3525 esac
3526 build=$ac_cv_build
3527 ac_save_IFS=$IFS; IFS='-'
3528 set x $ac_cv_build
3529 shift
3530 build_cpu=$1
3531 build_vendor=$2
3532 shift; shift
3533 # Remember, the first character of IFS is used to create $*,
3534 # except with old shells:
3535 build_os=$*
3536 IFS=$ac_save_IFS
3537 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3538
3539
3540 { echo "$as_me:$LINENO: checking host system type" >&5
3541 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_host+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   if test "x$host_alias" = x; then
3546   ac_cv_host=$ac_cv_build
3547 else
3548   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3549     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3550 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3551    { (exit 1); exit 1; }; }
3552 fi
3553
3554 fi
3555 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3556 echo "${ECHO_T}$ac_cv_host" >&6; }
3557 case $ac_cv_host in
3558 *-*-*) ;;
3559 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3560 echo "$as_me: error: invalid value of canonical host" >&2;}
3561    { (exit 1); exit 1; }; };;
3562 esac
3563 host=$ac_cv_host
3564 ac_save_IFS=$IFS; IFS='-'
3565 set x $ac_cv_host
3566 shift
3567 host_cpu=$1
3568 host_vendor=$2
3569 shift; shift
3570 # Remember, the first character of IFS is used to create $*,
3571 # except with old shells:
3572 host_os=$*
3573 IFS=$ac_save_IFS
3574 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3575
3576
3577 { echo "$as_me:$LINENO: checking target system type" >&5
3578 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3579 if test "${ac_cv_target+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   if test "x$target_alias" = x; then
3583   ac_cv_target=$ac_cv_host
3584 else
3585   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3586     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3587 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3588    { (exit 1); exit 1; }; }
3589 fi
3590
3591 fi
3592 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3593 echo "${ECHO_T}$ac_cv_target" >&6; }
3594 case $ac_cv_target in
3595 *-*-*) ;;
3596 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3597 echo "$as_me: error: invalid value of canonical target" >&2;}
3598    { (exit 1); exit 1; }; };;
3599 esac
3600 target=$ac_cv_target
3601 ac_save_IFS=$IFS; IFS='-'
3602 set x $ac_cv_target
3603 shift
3604 target_cpu=$1
3605 target_vendor=$2
3606 shift; shift
3607 # Remember, the first character of IFS is used to create $*,
3608 # except with old shells:
3609 target_os=$*
3610 IFS=$ac_save_IFS
3611 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3612
3613
3614 # The aliases save the names the user supplied, while $host etc.
3615 # will get canonicalized.
3616 test -n "$target_alias" &&
3617   test "$program_prefix$program_suffix$program_transform_name" = \
3618     NONENONEs,x,x, &&
3619   program_prefix=${target_alias}-
3620
3621 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3622 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3623 if test "${llvm_cv_os_type+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   case $host in
3627   *-*-aix*)
3628     llvm_cv_link_all_option="-Wl,--whole-archive"
3629     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3630     llvm_cv_os_type="AIX"
3631     llvm_cv_platform_type="Unix" ;;
3632   *-*-irix*)
3633     llvm_cv_link_all_option="-Wl,--whole-archive"
3634     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635     llvm_cv_os_type="IRIX"
3636     llvm_cv_platform_type="Unix" ;;
3637   *-*-cygwin*)
3638     llvm_cv_link_all_option="-Wl,--whole-archive"
3639     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640     llvm_cv_os_type="Cygwin"
3641     llvm_cv_platform_type="Unix" ;;
3642   *-*-darwin*)
3643     llvm_cv_link_all_option="-Wl,-all_load"
3644     llvm_cv_no_link_all_option="-Wl,-noall_load"
3645     llvm_cv_os_type="Darwin"
3646     llvm_cv_platform_type="Unix" ;;
3647   *-*-minix*)
3648     llvm_cv_link_all_option="-Wl,-all_load"
3649     llvm_cv_no_link_all_option="-Wl,-noall_load"
3650     llvm_cv_os_type="Minix"
3651     llvm_cv_platform_type="Unix" ;;
3652   *-*-freebsd* | *-*-kfreebsd-gnu)
3653     llvm_cv_link_all_option="-Wl,--whole-archive"
3654     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3655     llvm_cv_os_type="FreeBSD"
3656     llvm_cv_platform_type="Unix" ;;
3657   *-*-openbsd*)
3658     llvm_cv_link_all_option="-Wl,--whole-archive"
3659     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660     llvm_cv_os_type="OpenBSD"
3661     llvm_cv_platform_type="Unix" ;;
3662   *-*-netbsd*)
3663     llvm_cv_link_all_option="-Wl,--whole-archive"
3664     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665     llvm_cv_os_type="NetBSD"
3666     llvm_cv_platform_type="Unix" ;;
3667   *-*-dragonfly*)
3668     llvm_cv_link_all_option="-Wl,--whole-archive"
3669     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670     llvm_cv_os_type="DragonFly"
3671     llvm_cv_platform_type="Unix" ;;
3672   *-*-hpux*)
3673     llvm_cv_link_all_option="-Wl,--whole-archive"
3674     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675     llvm_cv_os_type="HP-UX"
3676     llvm_cv_platform_type="Unix" ;;
3677   *-*-interix*)
3678     llvm_cv_link_all_option="-Wl,--whole-archive"
3679     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680     llvm_cv_os_type="Interix"
3681     llvm_cv_platform_type="Unix" ;;
3682   *-*-linux*)
3683     llvm_cv_link_all_option="-Wl,--whole-archive"
3684     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685     llvm_cv_os_type="Linux"
3686     llvm_cv_platform_type="Unix" ;;
3687   *-*-gnu*)
3688     llvm_cv_link_all_option="-Wl,--whole-archive"
3689     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690     llvm_cv_os_type="GNU"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-solaris*)
3693     llvm_cv_link_all_option="-Wl,-z,allextract"
3694     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3695     llvm_cv_os_type="SunOS"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-auroraux*)
3698     llvm_cv_link_all_option="-Wl,-z,allextract"
3699     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3700     llvm_cv_os_type="AuroraUX"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-win32*)
3703     llvm_cv_link_all_option="-Wl,--whole-archive"
3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705     llvm_cv_os_type="Win32"
3706     llvm_cv_platform_type="Win32" ;;
3707   *-*-mingw*)
3708     llvm_cv_link_all_option="-Wl,--whole-archive"
3709     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710     llvm_cv_os_type="MingW"
3711     llvm_cv_platform_type="Win32" ;;
3712   *-*-haiku*)
3713     llvm_cv_link_all_option="-Wl,--whole-archive"
3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715     llvm_cv_os_type="Haiku"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-unknown-eabi*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="Freestanding"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-unknown-elf*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="Freestanding"
3726     llvm_cv_platform_type="Unix" ;;
3727   *)
3728     llvm_cv_link_all_option=""
3729     llvm_cv_no_link_all_option=""
3730     llvm_cv_os_type="Unknown"
3731     llvm_cv_platform_type="Unknown" ;;
3732 esac
3733 fi
3734 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3735 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3736
3737 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3738 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3739 if test "${llvm_cv_target_os_type+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   case $target in
3743   *-*-aix*)
3744     llvm_cv_target_os_type="AIX" ;;
3745   *-*-irix*)
3746     llvm_cv_target_os_type="IRIX" ;;
3747   *-*-cygwin*)
3748     llvm_cv_target_os_type="Cygwin" ;;
3749   *-*-darwin*)
3750     llvm_cv_target_os_type="Darwin" ;;
3751   *-*-minix*)
3752     llvm_cv_target_os_type="Minix" ;;
3753   *-*-freebsd* | *-*-kfreebsd-gnu)
3754     llvm_cv_target_os_type="FreeBSD" ;;
3755   *-*-openbsd*)
3756     llvm_cv_target_os_type="OpenBSD" ;;
3757   *-*-netbsd*)
3758     llvm_cv_target_os_type="NetBSD" ;;
3759   *-*-dragonfly*)
3760     llvm_cv_target_os_type="DragonFly" ;;
3761   *-*-hpux*)
3762     llvm_cv_target_os_type="HP-UX" ;;
3763   *-*-interix*)
3764     llvm_cv_target_os_type="Interix" ;;
3765   *-*-linux*)
3766     llvm_cv_target_os_type="Linux" ;;
3767   *-*-gnu*)
3768     llvm_cv_target_os_type="GNU" ;;
3769   *-*-solaris*)
3770     llvm_cv_target_os_type="SunOS" ;;
3771   *-*-auroraux*)
3772     llvm_cv_target_os_type="AuroraUX" ;;
3773   *-*-win32*)
3774     llvm_cv_target_os_type="Win32" ;;
3775   *-*-mingw*)
3776     llvm_cv_target_os_type="MingW" ;;
3777   *-*-haiku*)
3778     llvm_cv_target_os_type="Haiku" ;;
3779   *-*-rtems*)
3780     llvm_cv_target_os_type="RTEMS" ;;
3781   *-*-nacl*)
3782     llvm_cv_target_os_type="NativeClient" ;;
3783   *-unknown-eabi*)
3784     llvm_cv_target_os_type="Freestanding" ;;
3785   *)
3786     llvm_cv_target_os_type="Unknown" ;;
3787 esac
3788 fi
3789 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3790 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3791
3792 if test "$llvm_cv_os_type" = "Unknown" ; then
3793   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3794 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3795    { (exit 1); exit 1; }; }
3796 fi
3797
3798 OS=$llvm_cv_os_type
3799
3800 HOST_OS=$llvm_cv_os_type
3801
3802 TARGET_OS=$llvm_cv_target_os_type
3803
3804
3805 LINKALL=$llvm_cv_link_all_option
3806
3807 NOLINKALL=$llvm_cv_no_link_all_option
3808
3809
3810 case $llvm_cv_platform_type in
3811   Unix)
3812
3813 cat >>confdefs.h <<\_ACEOF
3814 #define LLVM_ON_UNIX 1
3815 _ACEOF
3816
3817     LLVM_ON_UNIX=1
3818
3819     LLVM_ON_WIN32=0
3820
3821     ;;
3822   Win32)
3823
3824 cat >>confdefs.h <<\_ACEOF
3825 #define LLVM_ON_WIN32 1
3826 _ACEOF
3827
3828     LLVM_ON_UNIX=0
3829
3830     LLVM_ON_WIN32=1
3831
3832     ;;
3833 esac
3834
3835 { echo "$as_me:$LINENO: checking target architecture" >&5
3836 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3837 if test "${llvm_cv_target_arch+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   case $target in
3841   i?86-*)                 llvm_cv_target_arch="x86" ;;
3842   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3843   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3844   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3845   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3846   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
3847   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
3848   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
3849   xcore-*)                llvm_cv_target_arch="XCore" ;;
3850   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3851   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3852   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3853   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3854   *)                      llvm_cv_target_arch="Unknown" ;;
3855 esac
3856 fi
3857 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3858 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3859
3860 if test "$llvm_cv_target_arch" = "Unknown" ; then
3861   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3862 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3863 fi
3864
3865 # Determine the LLVM native architecture for the target
3866 case "$llvm_cv_target_arch" in
3867     x86)     LLVM_NATIVE_ARCH="X86" ;;
3868     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3869     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3870 esac
3871
3872 ARCH=$llvm_cv_target_arch
3873
3874
3875
3876
3877 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3878 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   # Extract the first word of "grep ggrep" to use in msg output
3883 if test -z "$GREP"; then
3884 set dummy grep ggrep; ac_prog_name=$2
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   ac_path_GREP_found=false
3889 # Loop through the user's path and test for each of PROGNAME-LIST
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892 do
3893   IFS=$as_save_IFS
3894   test -z "$as_dir" && as_dir=.
3895   for ac_prog in grep ggrep; do
3896   for ac_exec_ext in '' $ac_executable_extensions; do
3897     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3898     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3899     # Check for GNU ac_path_GREP and select it if it is found.
3900   # Check for GNU $ac_path_GREP
3901 case `"$ac_path_GREP" --version 2>&1` in
3902 *GNU*)
3903   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3904 *)
3905   ac_count=0
3906   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3907   while :
3908   do
3909     cat "conftest.in" "conftest.in" >"conftest.tmp"
3910     mv "conftest.tmp" "conftest.in"
3911     cp "conftest.in" "conftest.nl"
3912     echo 'GREP' >> "conftest.nl"
3913     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915     ac_count=`expr $ac_count + 1`
3916     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3917       # Best one so far, save it but keep looking for a better one
3918       ac_cv_path_GREP="$ac_path_GREP"
3919       ac_path_GREP_max=$ac_count
3920     fi
3921     # 10*(2^10) chars as input seems more than enough
3922     test $ac_count -gt 10 && break
3923   done
3924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925 esac
3926
3927
3928     $ac_path_GREP_found && break 3
3929   done
3930 done
3931
3932 done
3933 IFS=$as_save_IFS
3934
3935
3936 fi
3937
3938 GREP="$ac_cv_path_GREP"
3939 if test -z "$GREP"; then
3940   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942    { (exit 1); exit 1; }; }
3943 fi
3944
3945 else
3946   ac_cv_path_GREP=$GREP
3947 fi
3948
3949
3950 fi
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3953  GREP="$ac_cv_path_GREP"
3954
3955
3956 { echo "$as_me:$LINENO: checking for egrep" >&5
3957 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3958 if test "${ac_cv_path_EGREP+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3962    then ac_cv_path_EGREP="$GREP -E"
3963    else
3964      # Extract the first word of "egrep" to use in msg output
3965 if test -z "$EGREP"; then
3966 set dummy egrep; ac_prog_name=$2
3967 if test "${ac_cv_path_EGREP+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   ac_path_EGREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977   for ac_prog in egrep; do
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3980     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3981     # Check for GNU ac_path_EGREP and select it if it is found.
3982   # Check for GNU $ac_path_EGREP
3983 case `"$ac_path_EGREP" --version 2>&1` in
3984 *GNU*)
3985   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3986 *)
3987   ac_count=0
3988   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989   while :
3990   do
3991     cat "conftest.in" "conftest.in" >"conftest.tmp"
3992     mv "conftest.tmp" "conftest.in"
3993     cp "conftest.in" "conftest.nl"
3994     echo 'EGREP' >> "conftest.nl"
3995     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997     ac_count=`expr $ac_count + 1`
3998     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3999       # Best one so far, save it but keep looking for a better one
4000       ac_cv_path_EGREP="$ac_path_EGREP"
4001       ac_path_EGREP_max=$ac_count
4002     fi
4003     # 10*(2^10) chars as input seems more than enough
4004     test $ac_count -gt 10 && break
4005   done
4006   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 esac
4008
4009
4010     $ac_path_EGREP_found && break 3
4011   done
4012 done
4013
4014 done
4015 IFS=$as_save_IFS
4016
4017
4018 fi
4019
4020 EGREP="$ac_cv_path_EGREP"
4021 if test -z "$EGREP"; then
4022   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024    { (exit 1); exit 1; }; }
4025 fi
4026
4027 else
4028   ac_cv_path_EGREP=$EGREP
4029 fi
4030
4031
4032    fi
4033 fi
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4036  EGREP="$ac_cv_path_EGREP"
4037
4038
4039 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4040 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4041 if test "${ac_cv_header_stdc+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h.  */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h.  */
4050 #include <stdlib.h>
4051 #include <stdarg.h>
4052 #include <string.h>
4053 #include <float.h>
4054
4055 int
4056 main ()
4057 {
4058
4059   ;
4060   return 0;
4061 }
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4065 case "(($ac_try" in
4066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067   *) ac_try_echo=$ac_try;;
4068 esac
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070   (eval "$ac_compile") 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } &&
4077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078   { (case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083   (eval "$ac_try") 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; } &&
4087          { ac_try='test -s conftest.$ac_objext'
4088   { (case "(($ac_try" in
4089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090   *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093   (eval "$ac_try") 2>&5
4094   ac_status=$?
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); }; }; then
4097   ac_cv_header_stdc=yes
4098 else
4099   echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4101
4102         ac_cv_header_stdc=no
4103 fi
4104
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106
4107 if test $ac_cv_header_stdc = yes; then
4108   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4109   cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h.  */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h.  */
4115 #include <string.h>
4116
4117 _ACEOF
4118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4119   $EGREP "memchr" >/dev/null 2>&1; then
4120   :
4121 else
4122   ac_cv_header_stdc=no
4123 fi
4124 rm -f conftest*
4125
4126 fi
4127
4128 if test $ac_cv_header_stdc = yes; then
4129   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4130   cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 #include <stdlib.h>
4137
4138 _ACEOF
4139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140   $EGREP "free" >/dev/null 2>&1; then
4141   :
4142 else
4143   ac_cv_header_stdc=no
4144 fi
4145 rm -f conftest*
4146
4147 fi
4148
4149 if test $ac_cv_header_stdc = yes; then
4150   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4151   if test "$cross_compiling" = yes; then
4152   :
4153 else
4154   cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h.  */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h.  */
4160 #include <ctype.h>
4161 #include <stdlib.h>
4162 #if ((' ' & 0x0FF) == 0x020)
4163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4165 #else
4166 # define ISLOWER(c) \
4167                    (('a' <= (c) && (c) <= 'i') \
4168                      || ('j' <= (c) && (c) <= 'r') \
4169                      || ('s' <= (c) && (c) <= 'z'))
4170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4171 #endif
4172
4173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4174 int
4175 main ()
4176 {
4177   int i;
4178   for (i = 0; i < 256; i++)
4179     if (XOR (islower (i), ISLOWER (i))
4180         || toupper (i) != TOUPPER (i))
4181       return 2;
4182   return 0;
4183 }
4184 _ACEOF
4185 rm -f conftest$ac_exeext
4186 if { (ac_try="$ac_link"
4187 case "(($ac_try" in
4188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189   *) ac_try_echo=$ac_try;;
4190 esac
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192   (eval "$ac_link") 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4196   { (case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201   (eval "$ac_try") 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; }; then
4205   :
4206 else
4207   echo "$as_me: program exited with status $ac_status" >&5
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211 ( exit $ac_status )
4212 ac_cv_header_stdc=no
4213 fi
4214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215 fi
4216
4217
4218 fi
4219 fi
4220 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4221 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4222 if test $ac_cv_header_stdc = yes; then
4223
4224 cat >>confdefs.h <<\_ACEOF
4225 #define STDC_HEADERS 1
4226 _ACEOF
4227
4228 fi
4229
4230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4241                   inttypes.h stdint.h unistd.h
4242 do
4243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 $ac_includes_default
4256
4257 #include <$ac_header>
4258 _ACEOF
4259 rm -f conftest.$ac_objext
4260 if { (ac_try="$ac_compile"
4261 case "(($ac_try" in
4262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263   *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266   (eval "$ac_compile") 2>conftest.er1
4267   ac_status=$?
4268   grep -v '^ *+' conftest.er1 >conftest.err
4269   rm -f conftest.er1
4270   cat conftest.err >&5
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); } &&
4273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4274   { (case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279   (eval "$ac_try") 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; } &&
4283          { ac_try='test -s conftest.$ac_objext'
4284   { (case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289   (eval "$ac_try") 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; }; then
4293   eval "$as_ac_Header=yes"
4294 else
4295   echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298         eval "$as_ac_Header=no"
4299 fi
4300
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 fi
4303 ac_res=`eval echo '${'$as_ac_Header'}'`
4304                { echo "$as_me:$LINENO: result: $ac_res" >&5
4305 echo "${ECHO_T}$ac_res" >&6; }
4306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4307   cat >>confdefs.h <<_ACEOF
4308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4309 _ACEOF
4310
4311 fi
4312
4313 done
4314
4315
4316 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4317 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4318 if test "${ac_cv_c_bigendian+set}" = set; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   # See if sys/param.h defines the BYTE_ORDER macro.
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h.  */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h.  */
4328 #include <sys/types.h>
4329 #include <sys/param.h>
4330
4331 int
4332 main ()
4333 {
4334 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4335  bogus endian macros
4336 #endif
4337
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 rm -f conftest.$ac_objext
4343 if { (ac_try="$ac_compile"
4344 case "(($ac_try" in
4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346   *) ac_try_echo=$ac_try;;
4347 esac
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349   (eval "$ac_compile") 2>conftest.er1
4350   ac_status=$?
4351   grep -v '^ *+' conftest.er1 >conftest.err
4352   rm -f conftest.er1
4353   cat conftest.err >&5
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); } &&
4356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4357   { (case "(($ac_try" in
4358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359   *) ac_try_echo=$ac_try;;
4360 esac
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362   (eval "$ac_try") 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; } &&
4366          { ac_try='test -s conftest.$ac_objext'
4367   { (case "(($ac_try" in
4368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369   *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372   (eval "$ac_try") 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }; }; then
4376   # It does; now see whether it defined to BIG_ENDIAN or not.
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383 #include <sys/types.h>
4384 #include <sys/param.h>
4385
4386 int
4387 main ()
4388 {
4389 #if BYTE_ORDER != BIG_ENDIAN
4390  not big endian
4391 #endif
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (ac_try="$ac_compile"
4399 case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404   (eval "$ac_compile") 2>conftest.er1
4405   ac_status=$?
4406   grep -v '^ *+' conftest.er1 >conftest.err
4407   rm -f conftest.er1
4408   cat conftest.err >&5
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } &&
4411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412   { (case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417   (eval "$ac_try") 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; } &&
4421          { ac_try='test -s conftest.$ac_objext'
4422   { (case "(($ac_try" in
4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424   *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427   (eval "$ac_try") 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431   ac_cv_c_bigendian=yes
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436         ac_cv_c_bigendian=no
4437 fi
4438
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 else
4441   echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4443
4444         # It does not; compile a test program.
4445 if test "$cross_compiling" = yes; then
4446   # try to guess the endianness by grepping values into an object file
4447   ac_cv_c_bigendian=unknown
4448   cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4455 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4456 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4457 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4458 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4459 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4460 int
4461 main ()
4462 {
4463  _ascii (); _ebcdic ();
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4470 case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_compile") 2>conftest.er1
4476   ac_status=$?
4477   grep -v '^ *+' conftest.er1 >conftest.err
4478   rm -f conftest.er1
4479   cat conftest.err >&5
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } &&
4482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483   { (case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_try") 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; } &&
4492          { ac_try='test -s conftest.$ac_objext'
4493   { (case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498   (eval "$ac_try") 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; }; then
4502   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4503   ac_cv_c_bigendian=yes
4504 fi
4505 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4506   if test "$ac_cv_c_bigendian" = unknown; then
4507     ac_cv_c_bigendian=no
4508   else
4509     # finding both strings is unlikely to happen, but who knows?
4510     ac_cv_c_bigendian=unknown
4511   fi
4512 fi
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517
4518 fi
4519
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 else
4522   cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 $ac_includes_default
4529 int
4530 main ()
4531 {
4532
4533   /* Are we little or big endian?  From Harbison&Steele.  */
4534   union
4535   {
4536     long int l;
4537     char c[sizeof (long int)];
4538   } u;
4539   u.l = 1;
4540   return u.c[sizeof (long int) - 1] == 1;
4541
4542   ;
4543   return 0;
4544 }
4545 _ACEOF
4546 rm -f conftest$ac_exeext
4547 if { (ac_try="$ac_link"
4548 case "(($ac_try" in
4549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550   *) ac_try_echo=$ac_try;;
4551 esac
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553   (eval "$ac_link") 2>&5
4554   ac_status=$?
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4557   { (case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562   (eval "$ac_try") 2>&5
4563   ac_status=$?
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); }; }; then
4566   ac_cv_c_bigendian=no
4567 else
4568   echo "$as_me: program exited with status $ac_status" >&5
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 ( exit $ac_status )
4573 ac_cv_c_bigendian=yes
4574 fi
4575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4576 fi
4577
4578
4579 fi
4580
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582 fi
4583 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4584 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4585 case $ac_cv_c_bigendian in
4586   yes)
4587     ENDIAN=big
4588  ;;
4589   no)
4590     ENDIAN=little
4591  ;;
4592   *)
4593     { { echo "$as_me:$LINENO: error: unknown endianness
4594 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4595 echo "$as_me: error: unknown endianness
4596 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4597    { (exit 1); exit 1; }; } ;;
4598 esac
4599
4600
4601 if test "$cross_compiling" = yes; then
4602   LLVM_CROSS_COMPILING=1
4603
4604
4605 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4606 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4607 if test "${ac_cv_build_exeext+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4611   ac_cv_build_exeext=.exe
4612 else
4613   ac_build_prefix=${build_alias}-
4614
4615   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4616 set dummy ${ac_build_prefix}gcc; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   if test -n "$BUILD_CC"; then
4623   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630   for ac_exec_ext in '' $ac_executable_extensions; do
4631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4632     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634     break 2
4635   fi
4636 done
4637 done
4638 IFS=$as_save_IFS
4639
4640 fi
4641 fi
4642 BUILD_CC=$ac_cv_prog_BUILD_CC
4643 if test -n "$BUILD_CC"; then
4644   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4645 echo "${ECHO_T}$BUILD_CC" >&6; }
4646 else
4647   { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4649 fi
4650
4651
4652   if test -z "$BUILD_CC"; then
4653      # Extract the first word of "gcc", so it can be a program name with args.
4654 set dummy gcc; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   if test -n "$BUILD_CC"; then
4661   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668   for ac_exec_ext in '' $ac_executable_extensions; do
4669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4670     ac_cv_prog_BUILD_CC="gcc"
4671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 fi
4679 fi
4680 BUILD_CC=$ac_cv_prog_BUILD_CC
4681 if test -n "$BUILD_CC"; then
4682   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4683 echo "${ECHO_T}$BUILD_CC" >&6; }
4684 else
4685   { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4687 fi
4688
4689
4690      if test -z "$BUILD_CC"; then
4691        # Extract the first word of "cc", so it can be a program name with args.
4692 set dummy cc; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   if test -n "$BUILD_CC"; then
4699   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4700 else
4701   ac_prog_rejected=no
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705   IFS=$as_save_IFS
4706   test -z "$as_dir" && as_dir=.
4707   for ac_exec_ext in '' $ac_executable_extensions; do
4708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4709     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4710        ac_prog_rejected=yes
4711        continue
4712      fi
4713     ac_cv_prog_BUILD_CC="cc"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 if test $ac_prog_rejected = yes; then
4722   # We found a bogon in the path, so make sure we never use it.
4723   set dummy $ac_cv_prog_BUILD_CC
4724   shift
4725   if test $# != 0; then
4726     # We chose a different compiler from the bogus one.
4727     # However, it has the same basename, so the bogon will be chosen
4728     # first if we set BUILD_CC to just the basename; use the full file name.
4729     shift
4730     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4731   fi
4732 fi
4733 fi
4734 fi
4735 BUILD_CC=$ac_cv_prog_BUILD_CC
4736 if test -n "$BUILD_CC"; then
4737   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4738 echo "${ECHO_T}$BUILD_CC" >&6; }
4739 else
4740   { echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6; }
4742 fi
4743
4744
4745      fi
4746   fi
4747   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4748 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4749    { (exit 1); exit 1; }; }
4750   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4751   rm -f conftest*
4752   echo 'int main () { return 0; }' > conftest.$ac_ext
4753   ac_cv_build_exeext=
4754   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4755   (eval $ac_build_link) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; then
4759     for file in conftest.*; do
4760       case $file in
4761       *.c | *.o | *.obj | *.dSYM) ;;
4762       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4763       esac
4764     done
4765   else
4766     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4767 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4768    { (exit 1); exit 1; }; }
4769   fi
4770   rm -f conftest*
4771   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4772 fi
4773 fi
4774
4775 BUILD_EXEEXT=""
4776 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4777 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4778 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4779 ac_build_exeext=$BUILD_EXEEXT
4780
4781   ac_build_prefix=${build_alias}-
4782   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4783 set dummy ${ac_build_prefix}g++; ac_word=$2
4784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4786 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   if test -n "$BUILD_CXX"; then
4790   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797   for ac_exec_ext in '' $ac_executable_extensions; do
4798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4799     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804 done
4805 IFS=$as_save_IFS
4806
4807 fi
4808 fi
4809 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4810 if test -n "$BUILD_CXX"; then
4811   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4812 echo "${ECHO_T}$BUILD_CXX" >&6; }
4813 else
4814   { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4816 fi
4817
4818
4819   if test -z "$BUILD_CXX"; then
4820      # Extract the first word of "g++", so it can be a program name with args.
4821 set dummy g++; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   if test -n "$BUILD_CXX"; then
4828   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835   for ac_exec_ext in '' $ac_executable_extensions; do
4836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4837     ac_cv_prog_BUILD_CXX="g++"
4838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4848 if test -n "$BUILD_CXX"; then
4849   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4850 echo "${ECHO_T}$BUILD_CXX" >&6; }
4851 else
4852   { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4854 fi
4855
4856
4857      if test -z "$BUILD_CXX"; then
4858        # Extract the first word of "c++", so it can be a program name with args.
4859 set dummy c++; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   if test -n "$BUILD_CXX"; then
4866   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4867 else
4868   ac_prog_rejected=no
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874   for ac_exec_ext in '' $ac_executable_extensions; do
4875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4876     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4877        ac_prog_rejected=yes
4878        continue
4879      fi
4880     ac_cv_prog_BUILD_CXX="c++"
4881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 if test $ac_prog_rejected = yes; then
4889   # We found a bogon in the path, so make sure we never use it.
4890   set dummy $ac_cv_prog_BUILD_CXX
4891   shift
4892   if test $# != 0; then
4893     # We chose a different compiler from the bogus one.
4894     # However, it has the same basename, so the bogon will be chosen
4895     # first if we set BUILD_CXX to just the basename; use the full file name.
4896     shift
4897     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4898   fi
4899 fi
4900 fi
4901 fi
4902 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4903 if test -n "$BUILD_CXX"; then
4904   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4905 echo "${ECHO_T}$BUILD_CXX" >&6; }
4906 else
4907   { echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6; }
4909 fi
4910
4911
4912      fi
4913   fi
4914 else
4915   LLVM_CROSS_COMPILING=0
4916
4917 fi
4918
4919 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4920   cvsbuild="yes"
4921   optimize="no"
4922   CVSBUILD=CVSBUILD=1
4923
4924 else
4925   cvsbuild="no"
4926   optimize="yes"
4927 fi
4928
4929
4930 # Check whether --enable-libcpp was given.
4931 if test "${enable_libcpp+set}" = set; then
4932   enableval=$enable_libcpp;
4933 else
4934   enableval=default
4935 fi
4936
4937 case "$enableval" in
4938   yes) ENABLE_LIBCPP=1
4939  ;;
4940   no)  ENABLE_LIBCPP=0
4941  ;;
4942   default) ENABLE_LIBCPP=0
4943 ;;
4944   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4945 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4946    { (exit 1); exit 1; }; } ;;
4947 esac
4948
4949 # Check whether --enable-cxx11 was given.
4950 if test "${enable_cxx11+set}" = set; then
4951   enableval=$enable_cxx11;
4952 else
4953   enableval=default
4954 fi
4955
4956 case "$enableval" in
4957   yes) ENABLE_CXX11=1
4958  ;;
4959   no)  ENABLE_CXX11=0
4960  ;;
4961   default) ENABLE_CXX11=0
4962 ;;
4963   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4965    { (exit 1); exit 1; }; } ;;
4966 esac
4967
4968 # Check whether --enable-optimized was given.
4969 if test "${enable_optimized+set}" = set; then
4970   enableval=$enable_optimized;
4971 else
4972   enableval=$optimize
4973 fi
4974
4975 if test ${enableval} = "no" ; then
4976   ENABLE_OPTIMIZED=
4977
4978 else
4979   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4980
4981 fi
4982
4983 # Check whether --enable-profiling was given.
4984 if test "${enable_profiling+set}" = set; then
4985   enableval=$enable_profiling;
4986 else
4987   enableval="no"
4988 fi
4989
4990 if test ${enableval} = "no" ; then
4991   ENABLE_PROFILING=
4992
4993 else
4994   ENABLE_PROFILING=ENABLE_PROFILING=1
4995
4996 fi
4997
4998 # Check whether --enable-assertions was given.
4999 if test "${enable_assertions+set}" = set; then
5000   enableval=$enable_assertions;
5001 else
5002   enableval="yes"
5003 fi
5004
5005 if test ${enableval} = "yes" ; then
5006   DISABLE_ASSERTIONS=
5007
5008 else
5009   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5010
5011 fi
5012
5013 # Check whether --enable-werror was given.
5014 if test "${enable_werror+set}" = set; then
5015   enableval=$enable_werror;
5016 else
5017   enableval="no"
5018 fi
5019
5020 case "$enableval" in
5021   yes) ENABLE_WERROR=1
5022  ;;
5023   no)  ENABLE_WERROR=0
5024  ;;
5025   default) ENABLE_WERROR=0
5026 ;;
5027   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5028 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5029    { (exit 1); exit 1; }; } ;;
5030 esac
5031
5032 # Check whether --enable-expensive-checks was given.
5033 if test "${enable_expensive_checks+set}" = set; then
5034   enableval=$enable_expensive_checks;
5035 else
5036   enableval="no"
5037 fi
5038
5039 if test ${enableval} = "yes" ; then
5040   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5041
5042   EXPENSIVE_CHECKS=yes
5043
5044 else
5045   ENABLE_EXPENSIVE_CHECKS=
5046
5047   EXPENSIVE_CHECKS=no
5048
5049 fi
5050
5051 # Check whether --enable-debug-runtime was given.
5052 if test "${enable_debug_runtime+set}" = set; then
5053   enableval=$enable_debug_runtime;
5054 else
5055   enableval=no
5056 fi
5057
5058 if test ${enableval} = "no" ; then
5059   DEBUG_RUNTIME=
5060
5061 else
5062   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5063
5064 fi
5065
5066 # Check whether --enable-debug-symbols was given.
5067 if test "${enable_debug_symbols+set}" = set; then
5068   enableval=$enable_debug_symbols;
5069 else
5070   enableval=no
5071 fi
5072
5073 if test ${enableval} = "no" ; then
5074   DEBUG_SYMBOLS=
5075
5076 else
5077   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5078
5079 fi
5080
5081 # Check whether --enable-jit was given.
5082 if test "${enable_jit+set}" = set; then
5083   enableval=$enable_jit;
5084 else
5085   enableval=default
5086 fi
5087
5088 if test ${enableval} = "no"
5089 then
5090   JIT=
5091
5092 else
5093   case "$llvm_cv_target_arch" in
5094     x86)         TARGET_HAS_JIT=1
5095  ;;
5096     Sparc)       TARGET_HAS_JIT=0
5097  ;;
5098     PowerPC)     TARGET_HAS_JIT=1
5099  ;;
5100     x86_64)      TARGET_HAS_JIT=1
5101  ;;
5102     ARM)         TARGET_HAS_JIT=1
5103  ;;
5104     AArch64)     TARGET_HAS_JIT=0
5105  ;;
5106     Mips)        TARGET_HAS_JIT=1
5107  ;;
5108     XCore)       TARGET_HAS_JIT=0
5109  ;;
5110     MSP430)      TARGET_HAS_JIT=0
5111  ;;
5112     Hexagon)     TARGET_HAS_JIT=0
5113  ;;
5114     NVPTX)       TARGET_HAS_JIT=0
5115  ;;
5116     SystemZ)     TARGET_HAS_JIT=1
5117  ;;
5118     *)           TARGET_HAS_JIT=0
5119  ;;
5120   esac
5121 fi
5122
5123 # Check whether --enable-docs was given.
5124 if test "${enable_docs+set}" = set; then
5125   enableval=$enable_docs;
5126 else
5127   enableval=default
5128 fi
5129
5130 case "$enableval" in
5131   yes) ENABLE_DOCS=1
5132  ;;
5133   no)  ENABLE_DOCS=0
5134  ;;
5135   default) ENABLE_DOCS=1
5136  ;;
5137   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5138 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5139    { (exit 1); exit 1; }; } ;;
5140 esac
5141
5142 # Check whether --enable-doxygen was given.
5143 if test "${enable_doxygen+set}" = set; then
5144   enableval=$enable_doxygen;
5145 else
5146   enableval=default
5147 fi
5148
5149 case "$enableval" in
5150   yes) ENABLE_DOXYGEN=1
5151  ;;
5152   no)  ENABLE_DOXYGEN=0
5153  ;;
5154   default) ENABLE_DOXYGEN=0
5155  ;;
5156   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5157 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5158    { (exit 1); exit 1; }; } ;;
5159 esac
5160
5161 # Check whether --enable-threads was given.
5162 if test "${enable_threads+set}" = set; then
5163   enableval=$enable_threads;
5164 else
5165   enableval=default
5166 fi
5167
5168 case "$enableval" in
5169   yes) ENABLE_THREADS=1
5170  ;;
5171   no)  ENABLE_THREADS=0
5172  ;;
5173   default) ENABLE_THREADS=1
5174  ;;
5175   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5176 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5177    { (exit 1); exit 1; }; } ;;
5178 esac
5179
5180 cat >>confdefs.h <<_ACEOF
5181 #define ENABLE_THREADS $ENABLE_THREADS
5182 _ACEOF
5183
5184
5185 # Check whether --enable-pthreads was given.
5186 if test "${enable_pthreads+set}" = set; then
5187   enableval=$enable_pthreads;
5188 else
5189   enableval=default
5190 fi
5191
5192 case "$enableval" in
5193   yes) ENABLE_PTHREADS=1
5194  ;;
5195   no)  ENABLE_PTHREADS=0
5196  ;;
5197   default) ENABLE_PTHREADS=1
5198  ;;
5199   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5200 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5201    { (exit 1); exit 1; }; } ;;
5202 esac
5203
5204 # Check whether --enable-zlib was given.
5205 if test "${enable_zlib+set}" = set; then
5206   enableval=$enable_zlib;
5207 else
5208   enableval=default
5209 fi
5210
5211 case "$enableval" in
5212   yes) LLVM_ENABLE_ZLIB=1
5213  ;;
5214   no)  LLVM_ENABLE_ZLIB=0
5215  ;;
5216   default) LLVM_ENABLE_ZLIB=1
5217  ;;
5218   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5220    { (exit 1); exit 1; }; } ;;
5221 esac
5222
5223 cat >>confdefs.h <<_ACEOF
5224 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5225 _ACEOF
5226
5227
5228 # Check whether --enable-pic was given.
5229 if test "${enable_pic+set}" = set; then
5230   enableval=$enable_pic;
5231 else
5232   enableval=default
5233 fi
5234
5235 case "$enableval" in
5236   yes) ENABLE_PIC=1
5237  ;;
5238   no)  ENABLE_PIC=0
5239  ;;
5240   default) ENABLE_PIC=1
5241  ;;
5242   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5243 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5244    { (exit 1); exit 1; }; } ;;
5245 esac
5246
5247 cat >>confdefs.h <<_ACEOF
5248 #define ENABLE_PIC $ENABLE_PIC
5249 _ACEOF
5250
5251
5252 # Check whether --enable-shared was given.
5253 if test "${enable_shared+set}" = set; then
5254   enableval=$enable_shared;
5255 else
5256   enableval=default
5257 fi
5258
5259 case "$enableval" in
5260   yes) ENABLE_SHARED=1
5261  ;;
5262   no)  ENABLE_SHARED=0
5263  ;;
5264   default) ENABLE_SHARED=0
5265  ;;
5266   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5267 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5268    { (exit 1); exit 1; }; } ;;
5269 esac
5270
5271 # Check whether --enable-embed-stdcxx was given.
5272 if test "${enable_embed_stdcxx+set}" = set; then
5273   enableval=$enable_embed_stdcxx;
5274 else
5275   enableval=default
5276 fi
5277
5278 case "$enableval" in
5279   yes) ENABLE_EMBED_STDCXX=1
5280  ;;
5281   no)  ENABLE_EMBED_STDCXX=0
5282  ;;
5283   default) ENABLE_EMBED_STDCXX=1
5284  ;;
5285   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5286 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5287    { (exit 1); exit 1; }; } ;;
5288 esac
5289
5290 # Check whether --enable-timestamps was given.
5291 if test "${enable_timestamps+set}" = set; then
5292   enableval=$enable_timestamps;
5293 else
5294   enableval=default
5295 fi
5296
5297 case "$enableval" in
5298   yes) ENABLE_TIMESTAMPS=1
5299  ;;
5300   no)  ENABLE_TIMESTAMPS=0
5301  ;;
5302   default) ENABLE_TIMESTAMPS=1
5303  ;;
5304   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5305 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5306    { (exit 1); exit 1; }; } ;;
5307 esac
5308
5309 cat >>confdefs.h <<_ACEOF
5310 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5311 _ACEOF
5312
5313
5314 TARGETS_TO_BUILD=""
5315 # Check whether --enable-targets was given.
5316 if test "${enable_targets+set}" = set; then
5317   enableval=$enable_targets;
5318 else
5319   enableval=all
5320 fi
5321
5322 if test "$enableval" = host-only ; then
5323   enableval=host
5324 fi
5325 case "$enableval" in
5326   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5327   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5328       case "$a_target" in
5329         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5331         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5332         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5333         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5334         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5335         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5340         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5341         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5342         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5343         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5344         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5345         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5346         host) case "$llvm_cv_target_arch" in
5347             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5348             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5350             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5351             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5352             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5353             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5354             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5355             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5356             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5357             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5358             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5359             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5360 echo "$as_me: error: Can not set target to build" >&2;}
5361    { (exit 1); exit 1; }; } ;;
5362           esac ;;
5363         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5364 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5365    { (exit 1); exit 1; }; } ;;
5366       esac
5367   done
5368   ;;
5369 esac
5370 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5371
5372
5373 # Determine whether we are building LLVM support for the native architecture.
5374 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5375 for a_target in $TARGETS_TO_BUILD; do
5376   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5377
5378 cat >>confdefs.h <<_ACEOF
5379 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5380 _ACEOF
5381
5382     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5383     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5384     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5385     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5386     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5387       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5388     fi
5389     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5390       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5391     fi
5392
5393 cat >>confdefs.h <<_ACEOF
5394 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5395 _ACEOF
5396
5397
5398 cat >>confdefs.h <<_ACEOF
5399 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5400 _ACEOF
5401
5402
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5405 _ACEOF
5406
5407
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5410 _ACEOF
5411
5412     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5413
5414 cat >>confdefs.h <<_ACEOF
5415 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5416 _ACEOF
5417
5418     fi
5419     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5423 _ACEOF
5424
5425     fi
5426   fi
5427 done
5428
5429 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5430 # target feature def files.
5431 LLVM_ENUM_TARGETS=""
5432 LLVM_ENUM_ASM_PRINTERS=""
5433 LLVM_ENUM_ASM_PARSERS=""
5434 LLVM_ENUM_DISASSEMBLERS=""
5435 for target_to_build in $TARGETS_TO_BUILD; do
5436   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5437   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5438     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5439   fi
5440   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5441     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5442   fi
5443   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5444     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5445   fi
5446 done
5447
5448
5449
5450
5451
5452
5453 # Check whether --with-optimize-option was given.
5454 if test "${with_optimize_option+set}" = set; then
5455   withval=$with_optimize_option;
5456 else
5457   withval=default
5458 fi
5459
5460 { echo "$as_me:$LINENO: checking optimization flags" >&5
5461 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5462 case "$withval" in
5463   default)
5464     case "$llvm_cv_os_type" in
5465     FreeBSD) optimize_option=-O2 ;;
5466     MingW) optimize_option=-O2 ;;
5467     *)     optimize_option=-O3 ;;
5468     esac ;;
5469   *) optimize_option="$withval" ;;
5470 esac
5471 OPTIMIZE_OPTION=$optimize_option
5472
5473 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5474 echo "${ECHO_T}$optimize_option" >&6; }
5475
5476
5477 # Check whether --with-extra-options was given.
5478 if test "${with_extra_options+set}" = set; then
5479   withval=$with_extra_options;
5480 else
5481   withval=default
5482 fi
5483
5484 case "$withval" in
5485   default) EXTRA_OPTIONS= ;;
5486   *) EXTRA_OPTIONS=$withval ;;
5487 esac
5488 EXTRA_OPTIONS=$EXTRA_OPTIONS
5489
5490
5491
5492 # Check whether --with-extra-ld-options was given.
5493 if test "${with_extra_ld_options+set}" = set; then
5494   withval=$with_extra_ld_options;
5495 else
5496   withval=default
5497 fi
5498
5499 case "$withval" in
5500   default) EXTRA_LD_OPTIONS= ;;
5501   *) EXTRA_LD_OPTIONS=$withval ;;
5502 esac
5503 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5504
5505
5506 # Check whether --enable-bindings was given.
5507 if test "${enable_bindings+set}" = set; then
5508   enableval=$enable_bindings;
5509 else
5510   enableval=default
5511 fi
5512
5513 BINDINGS_TO_BUILD=""
5514 case "$enableval" in
5515   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5516   all ) BINDINGS_TO_BUILD="ocaml" ;;
5517   none | no) BINDINGS_TO_BUILD="" ;;
5518   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5519       case "$a_binding" in
5520         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5521         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5522 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5523    { (exit 1); exit 1; }; } ;;
5524       esac
5525   done
5526   ;;
5527 esac
5528
5529
5530 # Check whether --with-ocaml-libdir was given.
5531 if test "${with_ocaml_libdir+set}" = set; then
5532   withval=$with_ocaml_libdir;
5533 else
5534   withval=auto
5535 fi
5536
5537 case "$withval" in
5538   auto) with_ocaml_libdir="$withval" ;;
5539   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5540   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5541 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5542    { (exit 1); exit 1; }; } ;;
5543 esac
5544
5545
5546 # Check whether --with-clang-resource-dir was given.
5547 if test "${with_clang_resource_dir+set}" = set; then
5548   withval=$with_clang_resource_dir;
5549 else
5550   withval=""
5551 fi
5552
5553
5554 cat >>confdefs.h <<_ACEOF
5555 #define CLANG_RESOURCE_DIR "$withval"
5556 _ACEOF
5557
5558
5559
5560 # Check whether --with-c-include-dirs was given.
5561 if test "${with_c_include_dirs+set}" = set; then
5562   withval=$with_c_include_dirs;
5563 else
5564   withval=""
5565 fi
5566
5567
5568 cat >>confdefs.h <<_ACEOF
5569 #define C_INCLUDE_DIRS "$withval"
5570 _ACEOF
5571
5572
5573 # Clang normally uses the system c++ headers and libraries. With this option,
5574 # clang will use the ones provided by a gcc installation instead. This option should
5575 # be passed the same value that was used with --prefix when configuring gcc.
5576
5577 # Check whether --with-gcc-toolchain was given.
5578 if test "${with_gcc_toolchain+set}" = set; then
5579   withval=$with_gcc_toolchain;
5580 else
5581   withval=""
5582 fi
5583
5584
5585 cat >>confdefs.h <<_ACEOF
5586 #define GCC_INSTALL_PREFIX "$withval"
5587 _ACEOF
5588
5589
5590
5591 # Check whether --with-binutils-include was given.
5592 if test "${with_binutils_include+set}" = set; then
5593   withval=$with_binutils_include;
5594 else
5595   withval=default
5596 fi
5597
5598 case "$withval" in
5599   default) WITH_BINUTILS_INCDIR=default ;;
5600   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5601   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5602 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5603    { (exit 1); exit 1; }; } ;;
5604 esac
5605 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5606   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5607
5608   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5609      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5610      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5611 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5612    { (exit 1); exit 1; }; };
5613   fi
5614 fi
5615
5616
5617 # Check whether --with-bug-report-url was given.
5618 if test "${with_bug_report_url+set}" = set; then
5619   withval=$with_bug_report_url;
5620 else
5621   withval="http://llvm.org/bugs/"
5622 fi
5623
5624
5625 cat >>confdefs.h <<_ACEOF
5626 #define BUG_REPORT_URL "$withval"
5627 _ACEOF
5628
5629
5630 # Check whether --enable-terminfo was given.
5631 if test "${enable_terminfo+set}" = set; then
5632   enableval=$enable_terminfo; case "$enableval" in
5633     yes) llvm_cv_enable_terminfo="yes" ;;
5634     no)  llvm_cv_enable_terminfo="no"  ;;
5635     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5636 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5637    { (exit 1); exit 1; }; } ;;
5638   esac
5639 else
5640   llvm_cv_enable_terminfo="yes"
5641 fi
5642
5643
5644 # Check whether --enable-libffi was given.
5645 if test "${enable_libffi+set}" = set; then
5646   enableval=$enable_libffi; case "$enableval" in
5647     yes) llvm_cv_enable_libffi="yes" ;;
5648     no)  llvm_cv_enable_libffi="no"  ;;
5649     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5650 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5651    { (exit 1); exit 1; }; } ;;
5652   esac
5653 else
5654   llvm_cv_enable_libffi=no
5655 fi
5656
5657
5658
5659 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5660 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5661 if test "${lt_cv_path_NM+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   if test -n "$NM"; then
5665   # Let the user override the test.
5666   lt_cv_path_NM="$NM"
5667 else
5668   lt_nm_to_check="${ac_tool_prefix}nm"
5669   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5670     lt_nm_to_check="$lt_nm_to_check nm"
5671   fi
5672   for lt_tmp_nm in $lt_nm_to_check; do
5673     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5674     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5675       IFS="$lt_save_ifs"
5676       test -z "$ac_dir" && ac_dir=.
5677       tmp_nm="$ac_dir/$lt_tmp_nm"
5678       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5679         # Check to see if the nm accepts a BSD-compat flag.
5680         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5681         #   nm: unknown option "B" ignored
5682         # Tru64's nm complains that /dev/null is an invalid object file
5683         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5684         */dev/null* | *'Invalid file or object type'*)
5685           lt_cv_path_NM="$tmp_nm -B"
5686           break
5687           ;;
5688         *)
5689           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5690           */dev/null*)
5691             lt_cv_path_NM="$tmp_nm -p"
5692             break
5693             ;;
5694           *)
5695             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696             continue # so that we can try to find one that supports BSD flags
5697             ;;
5698           esac
5699           ;;
5700         esac
5701       fi
5702     done
5703     IFS="$lt_save_ifs"
5704   done
5705   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5706 fi
5707 fi
5708 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5709 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5710 NM="$lt_cv_path_NM"
5711
5712
5713
5714 { echo "$as_me:$LINENO: checking for GNU make" >&5
5715 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5716 if test "${llvm_cv_gnu_make_command+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   llvm_cv_gnu_make_command=''
5720  for a in "$MAKE" make gmake gnumake ; do
5721   if test -z "$a" ; then continue ; fi ;
5722   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5723   then
5724    llvm_cv_gnu_make_command=$a ;
5725    break;
5726   fi
5727  done
5728 fi
5729 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5730 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5731  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5732    ifGNUmake='' ;
5733  else
5734    ifGNUmake='#' ;
5735    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5736 echo "${ECHO_T}\"Not found\"" >&6; };
5737  fi
5738
5739
5740 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5741 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5742 LN_S=$as_ln_s
5743 if test "$LN_S" = "ln -s"; then
5744   { echo "$as_me:$LINENO: result: yes" >&5
5745 echo "${ECHO_T}yes" >&6; }
5746 else
5747   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5748 echo "${ECHO_T}no, using $LN_S" >&6; }
5749 fi
5750
5751 # Extract the first word of "cmp", so it can be a program name with args.
5752 set dummy cmp; ac_word=$2
5753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755 if test "${ac_cv_path_CMP+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   case $CMP in
5759   [\\/]* | ?:[\\/]*)
5760   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5761   ;;
5762   *)
5763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768   for ac_exec_ext in '' $ac_executable_extensions; do
5769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5779   ;;
5780 esac
5781 fi
5782 CMP=$ac_cv_path_CMP
5783 if test -n "$CMP"; then
5784   { echo "$as_me:$LINENO: result: $CMP" >&5
5785 echo "${ECHO_T}$CMP" >&6; }
5786 else
5787   { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5789 fi
5790
5791
5792 # Extract the first word of "cp", so it can be a program name with args.
5793 set dummy cp; ac_word=$2
5794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796 if test "${ac_cv_path_CP+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   case $CP in
5800   [\\/]* | ?:[\\/]*)
5801   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5802   ;;
5803   *)
5804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5820   ;;
5821 esac
5822 fi
5823 CP=$ac_cv_path_CP
5824 if test -n "$CP"; then
5825   { echo "$as_me:$LINENO: result: $CP" >&5
5826 echo "${ECHO_T}$CP" >&6; }
5827 else
5828   { echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6; }
5830 fi
5831
5832
5833 # Extract the first word of "date", so it can be a program name with args.
5834 set dummy date; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_path_DATE+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   case $DATE in
5841   [\\/]* | ?:[\\/]*)
5842   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5843   ;;
5844   *)
5845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850   for ac_exec_ext in '' $ac_executable_extensions; do
5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857 done
5858 IFS=$as_save_IFS
5859
5860   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5861   ;;
5862 esac
5863 fi
5864 DATE=$ac_cv_path_DATE
5865 if test -n "$DATE"; then
5866   { echo "$as_me:$LINENO: result: $DATE" >&5
5867 echo "${ECHO_T}$DATE" >&6; }
5868 else
5869   { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5871 fi
5872
5873
5874 # Extract the first word of "find", so it can be a program name with args.
5875 set dummy find; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_path_FIND+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   case $FIND in
5882   [\\/]* | ?:[\\/]*)
5883   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5884   ;;
5885   *)
5886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH
5888 do
5889   IFS=$as_save_IFS
5890   test -z "$as_dir" && as_dir=.
5891   for ac_exec_ext in '' $ac_executable_extensions; do
5892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895     break 2
5896   fi
5897 done
5898 done
5899 IFS=$as_save_IFS
5900
5901   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5902   ;;
5903 esac
5904 fi
5905 FIND=$ac_cv_path_FIND
5906 if test -n "$FIND"; then
5907   { echo "$as_me:$LINENO: result: $FIND" >&5
5908 echo "${ECHO_T}$FIND" >&6; }
5909 else
5910   { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5912 fi
5913
5914
5915 # Extract the first word of "grep", so it can be a program name with args.
5916 set dummy grep; ac_word=$2
5917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_GREP+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   case $GREP in
5923   [\\/]* | ?:[\\/]*)
5924   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5925   ;;
5926   *)
5927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930   IFS=$as_save_IFS
5931   test -z "$as_dir" && as_dir=.
5932   for ac_exec_ext in '' $ac_executable_extensions; do
5933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936     break 2
5937   fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5943   ;;
5944 esac
5945 fi
5946 GREP=$ac_cv_path_GREP
5947 if test -n "$GREP"; then
5948   { echo "$as_me:$LINENO: result: $GREP" >&5
5949 echo "${ECHO_T}$GREP" >&6; }
5950 else
5951   { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5953 fi
5954
5955
5956 # Extract the first word of "mkdir", so it can be a program name with args.
5957 set dummy mkdir; ac_word=$2
5958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960 if test "${ac_cv_path_MKDIR+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   case $MKDIR in
5964   [\\/]* | ?:[\\/]*)
5965   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5966   ;;
5967   *)
5968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5984   ;;
5985 esac
5986 fi
5987 MKDIR=$ac_cv_path_MKDIR
5988 if test -n "$MKDIR"; then
5989   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5990 echo "${ECHO_T}$MKDIR" >&6; }
5991 else
5992   { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5994 fi
5995
5996
5997 # Extract the first word of "mv", so it can be a program name with args.
5998 set dummy mv; ac_word=$2
5999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001 if test "${ac_cv_path_MV+set}" = set; then
6002   echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004   case $MV in
6005   [\\/]* | ?:[\\/]*)
6006   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6007   ;;
6008   *)
6009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6016     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6025   ;;
6026 esac
6027 fi
6028 MV=$ac_cv_path_MV
6029 if test -n "$MV"; then
6030   { echo "$as_me:$LINENO: result: $MV" >&5
6031 echo "${ECHO_T}$MV" >&6; }
6032 else
6033   { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6035 fi
6036
6037
6038 if test -n "$ac_tool_prefix"; then
6039   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_RANLIB+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   if test -n "$RANLIB"; then
6047   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054   for ac_exec_ext in '' $ac_executable_extensions; do
6055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6056     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058     break 2
6059   fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 RANLIB=$ac_cv_prog_RANLIB
6067 if test -n "$RANLIB"; then
6068   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6069 echo "${ECHO_T}$RANLIB" >&6; }
6070 else
6071   { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6073 fi
6074
6075
6076 fi
6077 if test -z "$ac_cv_prog_RANLIB"; then
6078   ac_ct_RANLIB=$RANLIB
6079   # Extract the first word of "ranlib", so it can be a program name with args.
6080 set dummy ranlib; ac_word=$2
6081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086   if test -n "$ac_ct_RANLIB"; then
6087   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094   for ac_exec_ext in '' $ac_executable_extensions; do
6095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096     ac_cv_prog_ac_ct_RANLIB="ranlib"
6097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098     break 2
6099   fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6107 if test -n "$ac_ct_RANLIB"; then
6108   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6109 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6110 else
6111   { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6113 fi
6114
6115   if test "x$ac_ct_RANLIB" = x; then
6116     RANLIB=":"
6117   else
6118     case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet.  If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&5
6123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet.  If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126 ac_tool_warned=yes ;;
6127 esac
6128     RANLIB=$ac_ct_RANLIB
6129   fi
6130 else
6131   RANLIB="$ac_cv_prog_RANLIB"
6132 fi
6133
6134 if test -n "$ac_tool_prefix"; then
6135   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}ar; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_prog_AR+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   if test -n "$AR"; then
6143   ac_cv_prog_AR="$AR" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150   for ac_exec_ext in '' $ac_executable_extensions; do
6151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6152     ac_cv_prog_AR="${ac_tool_prefix}ar"
6153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 AR=$ac_cv_prog_AR
6163 if test -n "$AR"; then
6164   { echo "$as_me:$LINENO: result: $AR" >&5
6165 echo "${ECHO_T}$AR" >&6; }
6166 else
6167   { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6169 fi
6170
6171
6172 fi
6173 if test -z "$ac_cv_prog_AR"; then
6174   ac_ct_AR=$AR
6175   # Extract the first word of "ar", so it can be a program name with args.
6176 set dummy ar; ac_word=$2
6177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6179 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   if test -n "$ac_ct_AR"; then
6183   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190   for ac_exec_ext in '' $ac_executable_extensions; do
6191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192     ac_cv_prog_ac_ct_AR="ar"
6193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197 done
6198 IFS=$as_save_IFS
6199
6200 fi
6201 fi
6202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6203 if test -n "$ac_ct_AR"; then
6204   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6205 echo "${ECHO_T}$ac_ct_AR" >&6; }
6206 else
6207   { echo "$as_me:$LINENO: result: no" >&5
6208 echo "${ECHO_T}no" >&6; }
6209 fi
6210
6211   if test "x$ac_ct_AR" = x; then
6212     AR="false"
6213   else
6214     case $cross_compiling:$ac_tool_warned in
6215 yes:)
6216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet.  If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&5
6219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet.  If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222 ac_tool_warned=yes ;;
6223 esac
6224     AR=$ac_ct_AR
6225   fi
6226 else
6227   AR="$ac_cv_prog_AR"
6228 fi
6229
6230 # Extract the first word of "rm", so it can be a program name with args.
6231 set dummy rm; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_RM+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   case $RM in
6238   [\\/]* | ?:[\\/]*)
6239   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6240   ;;
6241   *)
6242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6258   ;;
6259 esac
6260 fi
6261 RM=$ac_cv_path_RM
6262 if test -n "$RM"; then
6263   { echo "$as_me:$LINENO: result: $RM" >&5
6264 echo "${ECHO_T}$RM" >&6; }
6265 else
6266   { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6268 fi
6269
6270
6271 # Extract the first word of "sed", so it can be a program name with args.
6272 set dummy sed; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_SED+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   case $SED in
6279   [\\/]* | ?:[\\/]*)
6280   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6281   ;;
6282   *)
6283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288   for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297
6298   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6299   ;;
6300 esac
6301 fi
6302 SED=$ac_cv_path_SED
6303 if test -n "$SED"; then
6304   { echo "$as_me:$LINENO: result: $SED" >&5
6305 echo "${ECHO_T}$SED" >&6; }
6306 else
6307   { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6309 fi
6310
6311
6312 # Extract the first word of "tar", so it can be a program name with args.
6313 set dummy tar; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_TAR+set}" = set; then
6317   echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319   case $TAR in
6320   [\\/]* | ?:[\\/]*)
6321   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6322   ;;
6323   *)
6324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327   IFS=$as_save_IFS
6328   test -z "$as_dir" && as_dir=.
6329   for ac_exec_ext in '' $ac_executable_extensions; do
6330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333     break 2
6334   fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6340   ;;
6341 esac
6342 fi
6343 TAR=$ac_cv_path_TAR
6344 if test -n "$TAR"; then
6345   { echo "$as_me:$LINENO: result: $TAR" >&5
6346 echo "${ECHO_T}$TAR" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6350 fi
6351
6352
6353 # Extract the first word of "pwd", so it can be a program name with args.
6354 set dummy pwd; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_BINPWD+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   case $BINPWD in
6361   [\\/]* | ?:[\\/]*)
6362   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6363   ;;
6364   *)
6365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368   IFS=$as_save_IFS
6369   test -z "$as_dir" && as_dir=.
6370   for ac_exec_ext in '' $ac_executable_extensions; do
6371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374     break 2
6375   fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6381   ;;
6382 esac
6383 fi
6384 BINPWD=$ac_cv_path_BINPWD
6385 if test -n "$BINPWD"; then
6386   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6387 echo "${ECHO_T}$BINPWD" >&6; }
6388 else
6389   { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6391 fi
6392
6393
6394
6395 # Extract the first word of "Graphviz", so it can be a program name with args.
6396 set dummy Graphviz; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   case $GRAPHVIZ in
6403   [\\/]* | ?:[\\/]*)
6404   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6405   ;;
6406   *)
6407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412   for ac_exec_ext in '' $ac_executable_extensions; do
6413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6414     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6423   ;;
6424 esac
6425 fi
6426 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6427 if test -n "$GRAPHVIZ"; then
6428   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6429 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6430 else
6431   { echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6; }
6433 fi
6434
6435
6436 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6437
6438 cat >>confdefs.h <<\_ACEOF
6439 #define HAVE_GRAPHVIZ 1
6440 _ACEOF
6441
6442     if test "$llvm_cv_os_type" = "MingW" ; then
6443     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6444   fi
6445
6446 cat >>confdefs.h <<_ACEOF
6447 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6448 _ACEOF
6449
6450 fi
6451 # Extract the first word of "dot", so it can be a program name with args.
6452 set dummy dot; ac_word=$2
6453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6455 if test "${ac_cv_path_DOT+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   case $DOT in
6459   [\\/]* | ?:[\\/]*)
6460   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6461   ;;
6462   *)
6463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468   for ac_exec_ext in '' $ac_executable_extensions; do
6469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475 done
6476 IFS=$as_save_IFS
6477
6478   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6479   ;;
6480 esac
6481 fi
6482 DOT=$ac_cv_path_DOT
6483 if test -n "$DOT"; then
6484   { echo "$as_me:$LINENO: result: $DOT" >&5
6485 echo "${ECHO_T}$DOT" >&6; }
6486 else
6487   { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6489 fi
6490
6491
6492 if test "$DOT" != "echo dot" ; then
6493
6494 cat >>confdefs.h <<\_ACEOF
6495 #define HAVE_DOT 1
6496 _ACEOF
6497
6498     if test "$llvm_cv_os_type" = "MingW" ; then
6499     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6500   fi
6501
6502 cat >>confdefs.h <<_ACEOF
6503 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6504 _ACEOF
6505
6506 fi
6507 # Extract the first word of "fdp", so it can be a program name with args.
6508 set dummy fdp; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_path_FDP+set}" = set; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   case $FDP in
6515   [\\/]* | ?:[\\/]*)
6516   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6517   ;;
6518   *)
6519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522   IFS=$as_save_IFS
6523   test -z "$as_dir" && as_dir=.
6524   for ac_exec_ext in '' $ac_executable_extensions; do
6525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528     break 2
6529   fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6535   ;;
6536 esac
6537 fi
6538 FDP=$ac_cv_path_FDP
6539 if test -n "$FDP"; then
6540   { echo "$as_me:$LINENO: result: $FDP" >&5
6541 echo "${ECHO_T}$FDP" >&6; }
6542 else
6543   { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6545 fi
6546
6547
6548 if test "$FDP" != "echo fdp" ; then
6549
6550 cat >>confdefs.h <<\_ACEOF
6551 #define HAVE_FDP 1
6552 _ACEOF
6553
6554     if test "$llvm_cv_os_type" = "MingW" ; then
6555     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6556   fi
6557
6558 cat >>confdefs.h <<_ACEOF
6559 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6560 _ACEOF
6561
6562 fi
6563 # Extract the first word of "neato", so it can be a program name with args.
6564 set dummy neato; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_NEATO+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   case $NEATO in
6571   [\\/]* | ?:[\\/]*)
6572   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6573   ;;
6574   *)
6575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580   for ac_exec_ext in '' $ac_executable_extensions; do
6581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6591   ;;
6592 esac
6593 fi
6594 NEATO=$ac_cv_path_NEATO
6595 if test -n "$NEATO"; then
6596   { echo "$as_me:$LINENO: result: $NEATO" >&5
6597 echo "${ECHO_T}$NEATO" >&6; }
6598 else
6599   { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6601 fi
6602
6603
6604 if test "$NEATO" != "echo neato" ; then
6605
6606 cat >>confdefs.h <<\_ACEOF
6607 #define HAVE_NEATO 1
6608 _ACEOF
6609
6610     if test "$llvm_cv_os_type" = "MingW" ; then
6611     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6612   fi
6613
6614 cat >>confdefs.h <<_ACEOF
6615 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6616 _ACEOF
6617
6618 fi
6619 # Extract the first word of "twopi", so it can be a program name with args.
6620 set dummy twopi; ac_word=$2
6621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623 if test "${ac_cv_path_TWOPI+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   case $TWOPI in
6627   [\\/]* | ?:[\\/]*)
6628   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6629   ;;
6630   *)
6631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_exec_ext in '' $ac_executable_extensions; do
6637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6638     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6647   ;;
6648 esac
6649 fi
6650 TWOPI=$ac_cv_path_TWOPI
6651 if test -n "$TWOPI"; then
6652   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6653 echo "${ECHO_T}$TWOPI" >&6; }
6654 else
6655   { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6657 fi
6658
6659
6660 if test "$TWOPI" != "echo twopi" ; then
6661
6662 cat >>confdefs.h <<\_ACEOF
6663 #define HAVE_TWOPI 1
6664 _ACEOF
6665
6666     if test "$llvm_cv_os_type" = "MingW" ; then
6667     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6668   fi
6669
6670 cat >>confdefs.h <<_ACEOF
6671 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6672 _ACEOF
6673
6674 fi
6675 # Extract the first word of "circo", so it can be a program name with args.
6676 set dummy circo; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_path_CIRCO+set}" = set; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   case $CIRCO in
6683   [\\/]* | ?:[\\/]*)
6684   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6685   ;;
6686   *)
6687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692   for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6703   ;;
6704 esac
6705 fi
6706 CIRCO=$ac_cv_path_CIRCO
6707 if test -n "$CIRCO"; then
6708   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6709 echo "${ECHO_T}$CIRCO" >&6; }
6710 else
6711   { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713 fi
6714
6715
6716 if test "$CIRCO" != "echo circo" ; then
6717
6718 cat >>confdefs.h <<\_ACEOF
6719 #define HAVE_CIRCO 1
6720 _ACEOF
6721
6722     if test "$llvm_cv_os_type" = "MingW" ; then
6723     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6724   fi
6725
6726 cat >>confdefs.h <<_ACEOF
6727 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6728 _ACEOF
6729
6730 fi
6731 for ac_prog in gv gsview32
6732 do
6733   # Extract the first word of "$ac_prog", so it can be a program name with args.
6734 set dummy $ac_prog; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_GV+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   case $GV in
6741   [\\/]* | ?:[\\/]*)
6742   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6743   ;;
6744   *)
6745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760   ;;
6761 esac
6762 fi
6763 GV=$ac_cv_path_GV
6764 if test -n "$GV"; then
6765   { echo "$as_me:$LINENO: result: $GV" >&5
6766 echo "${ECHO_T}$GV" >&6; }
6767 else
6768   { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6770 fi
6771
6772
6773   test -n "$GV" && break
6774 done
6775 test -n "$GV" || GV="echo gv"
6776
6777 if test "$GV" != "echo gv" ; then
6778
6779 cat >>confdefs.h <<\_ACEOF
6780 #define HAVE_GV 1
6781 _ACEOF
6782
6783     if test "$llvm_cv_os_type" = "MingW" ; then
6784     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6785   fi
6786
6787 cat >>confdefs.h <<_ACEOF
6788 #define LLVM_PATH_GV "$GV${EXEEXT}"
6789 _ACEOF
6790
6791 fi
6792 # Extract the first word of "dotty", so it can be a program name with args.
6793 set dummy dotty; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_DOTTY+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   case $DOTTY in
6800   [\\/]* | ?:[\\/]*)
6801   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6802   ;;
6803   *)
6804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809   for ac_exec_ext in '' $ac_executable_extensions; do
6810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6820   ;;
6821 esac
6822 fi
6823 DOTTY=$ac_cv_path_DOTTY
6824 if test -n "$DOTTY"; then
6825   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6826 echo "${ECHO_T}$DOTTY" >&6; }
6827 else
6828   { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6830 fi
6831
6832
6833 if test "$DOTTY" != "echo dotty" ; then
6834
6835 cat >>confdefs.h <<\_ACEOF
6836 #define HAVE_DOTTY 1
6837 _ACEOF
6838
6839     if test "$llvm_cv_os_type" = "MingW" ; then
6840     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6841   fi
6842
6843 cat >>confdefs.h <<_ACEOF
6844 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6845 _ACEOF
6846
6847 fi
6848 # Extract the first word of "xdot.py", so it can be a program name with args.
6849 set dummy xdot.py; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855   case $XDOT_PY in
6856   [\\/]* | ?:[\\/]*)
6857   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6858   ;;
6859   *)
6860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865   for ac_exec_ext in '' $ac_executable_extensions; do
6866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6876   ;;
6877 esac
6878 fi
6879 XDOT_PY=$ac_cv_path_XDOT_PY
6880 if test -n "$XDOT_PY"; then
6881   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6882 echo "${ECHO_T}$XDOT_PY" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888
6889 if test "$XDOT_PY" != "echo xdot.py" ; then
6890
6891 cat >>confdefs.h <<\_ACEOF
6892 #define HAVE_XDOT_PY 1
6893 _ACEOF
6894
6895     if test "$llvm_cv_os_type" = "MingW" ; then
6896     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6897   fi
6898
6899 cat >>confdefs.h <<_ACEOF
6900 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6901 _ACEOF
6902
6903 fi
6904
6905 # Find a good install program.  We prefer a C program (faster),
6906 # so one script is as good as another.  But avoid the broken or
6907 # incompatible versions:
6908 # SysV /etc/install, /usr/sbin/install
6909 # SunOS /usr/etc/install
6910 # IRIX /sbin/install
6911 # AIX /bin/install
6912 # AmigaOS /C/install, which installs bootblocks on floppy discs
6913 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6914 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6915 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6916 # OS/2's system install, which has a completely different semantic
6917 # ./install, which can be erroneously created by make from ./install.sh.
6918 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6919 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6920 if test -z "$INSTALL"; then
6921 if test "${ac_cv_path_install+set}" = set; then
6922   echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927   IFS=$as_save_IFS
6928   test -z "$as_dir" && as_dir=.
6929   # Account for people who put trailing slashes in PATH elements.
6930 case $as_dir/ in
6931   ./ | .// | /cC/* | \
6932   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6933   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6934   /usr/ucb/* ) ;;
6935   *)
6936     # OSF1 and SCO ODT 3.0 have their own names for install.
6937     # Don't use installbsd from OSF since it installs stuff as root
6938     # by default.
6939     for ac_prog in ginstall scoinst install; do
6940       for ac_exec_ext in '' $ac_executable_extensions; do
6941         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6942           if test $ac_prog = install &&
6943             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6944             # AIX install.  It has an incompatible calling convention.
6945             :
6946           elif test $ac_prog = install &&
6947             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6948             # program-specific install script used by HP pwplus--don't use.
6949             :
6950           else
6951             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6952             break 3
6953           fi
6954         fi
6955       done
6956     done
6957     ;;
6958 esac
6959 done
6960 IFS=$as_save_IFS
6961
6962
6963 fi
6964   if test "${ac_cv_path_install+set}" = set; then
6965     INSTALL=$ac_cv_path_install
6966   else
6967     # As a last resort, use the slow shell script.  Don't cache a
6968     # value for INSTALL within a source directory, because that will
6969     # break other packages using the cache if that directory is
6970     # removed, or if the value is a relative name.
6971     INSTALL=$ac_install_sh
6972   fi
6973 fi
6974 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6975 echo "${ECHO_T}$INSTALL" >&6; }
6976
6977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6978 # It thinks the first close brace ends the variable substitution.
6979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6980
6981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6982
6983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6984
6985 case "$INSTALL" in
6986  [\\/$]* | ?:[\\/]* ) ;;
6987  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6988 esac
6989
6990 # Extract the first word of "bzip2", so it can be a program name with args.
6991 set dummy bzip2; ac_word=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_path_BZIP2+set}" = set; then
6995   echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997   case $BZIP2 in
6998   [\\/]* | ?:[\\/]*)
6999   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7000   ;;
7001   *)
7002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005   IFS=$as_save_IFS
7006   test -z "$as_dir" && as_dir=.
7007   for ac_exec_ext in '' $ac_executable_extensions; do
7008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011     break 2
7012   fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017   ;;
7018 esac
7019 fi
7020 BZIP2=$ac_cv_path_BZIP2
7021 if test -n "$BZIP2"; then
7022   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7023 echo "${ECHO_T}$BZIP2" >&6; }
7024 else
7025   { echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6; }
7027 fi
7028
7029
7030 # Extract the first word of "cat", so it can be a program name with args.
7031 set dummy cat; ac_word=$2
7032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034 if test "${ac_cv_path_CAT+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   case $CAT in
7038   [\\/]* | ?:[\\/]*)
7039   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7040   ;;
7041   *)
7042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045   IFS=$as_save_IFS
7046   test -z "$as_dir" && as_dir=.
7047   for ac_exec_ext in '' $ac_executable_extensions; do
7048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051     break 2
7052   fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057   ;;
7058 esac
7059 fi
7060 CAT=$ac_cv_path_CAT
7061 if test -n "$CAT"; then
7062   { echo "$as_me:$LINENO: result: $CAT" >&5
7063 echo "${ECHO_T}$CAT" >&6; }
7064 else
7065   { echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6; }
7067 fi
7068
7069
7070 # Extract the first word of "doxygen", so it can be a program name with args.
7071 set dummy doxygen; ac_word=$2
7072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7074 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7075   echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077   case $DOXYGEN in
7078   [\\/]* | ?:[\\/]*)
7079   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7080   ;;
7081   *)
7082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085   IFS=$as_save_IFS
7086   test -z "$as_dir" && as_dir=.
7087   for ac_exec_ext in '' $ac_executable_extensions; do
7088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7089     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091     break 2
7092   fi
7093 done
7094 done
7095 IFS=$as_save_IFS
7096
7097   ;;
7098 esac
7099 fi
7100 DOXYGEN=$ac_cv_path_DOXYGEN
7101 if test -n "$DOXYGEN"; then
7102   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7103 echo "${ECHO_T}$DOXYGEN" >&6; }
7104 else
7105   { echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6; }
7107 fi
7108
7109
7110 # Extract the first word of "groff", so it can be a program name with args.
7111 set dummy groff; ac_word=$2
7112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7114 if test "${ac_cv_path_GROFF+set}" = set; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   case $GROFF in
7118   [\\/]* | ?:[\\/]*)
7119   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7120   ;;
7121   *)
7122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127   for ac_exec_ext in '' $ac_executable_extensions; do
7128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7129     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134 done
7135 IFS=$as_save_IFS
7136
7137   ;;
7138 esac
7139 fi
7140 GROFF=$ac_cv_path_GROFF
7141 if test -n "$GROFF"; then
7142   { echo "$as_me:$LINENO: result: $GROFF" >&5
7143 echo "${ECHO_T}$GROFF" >&6; }
7144 else
7145   { echo "$as_me:$LINENO: result: no" >&5
7146 echo "${ECHO_T}no" >&6; }
7147 fi
7148
7149
7150 # Extract the first word of "gzip", so it can be a program name with args.
7151 set dummy gzip; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7155   echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157   case $GZIPBIN in
7158   [\\/]* | ?:[\\/]*)
7159   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7160   ;;
7161   *)
7162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165   IFS=$as_save_IFS
7166   test -z "$as_dir" && as_dir=.
7167   for ac_exec_ext in '' $ac_executable_extensions; do
7168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7169     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171     break 2
7172   fi
7173 done
7174 done
7175 IFS=$as_save_IFS
7176
7177   ;;
7178 esac
7179 fi
7180 GZIPBIN=$ac_cv_path_GZIPBIN
7181 if test -n "$GZIPBIN"; then
7182   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7183 echo "${ECHO_T}$GZIPBIN" >&6; }
7184 else
7185   { echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6; }
7187 fi
7188
7189
7190 # Extract the first word of "pod2html", so it can be a program name with args.
7191 set dummy pod2html; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_path_POD2HTML+set}" = set; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   case $POD2HTML in
7198   [\\/]* | ?:[\\/]*)
7199   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7200   ;;
7201   *)
7202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207   for ac_exec_ext in '' $ac_executable_extensions; do
7208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7209     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217   ;;
7218 esac
7219 fi
7220 POD2HTML=$ac_cv_path_POD2HTML
7221 if test -n "$POD2HTML"; then
7222   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7223 echo "${ECHO_T}$POD2HTML" >&6; }
7224 else
7225   { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7227 fi
7228
7229
7230 # Extract the first word of "pod2man", so it can be a program name with args.
7231 set dummy pod2man; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_path_POD2MAN+set}" = set; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   case $POD2MAN in
7238   [\\/]* | ?:[\\/]*)
7239   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7240   ;;
7241   *)
7242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245   IFS=$as_save_IFS
7246   test -z "$as_dir" && as_dir=.
7247   for ac_exec_ext in '' $ac_executable_extensions; do
7248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7249     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251     break 2
7252   fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257   ;;
7258 esac
7259 fi
7260 POD2MAN=$ac_cv_path_POD2MAN
7261 if test -n "$POD2MAN"; then
7262   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7263 echo "${ECHO_T}$POD2MAN" >&6; }
7264 else
7265   { echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6; }
7267 fi
7268
7269
7270 # Extract the first word of "pdfroff", so it can be a program name with args.
7271 set dummy pdfroff; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_path_PDFROFF+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277   case $PDFROFF in
7278   [\\/]* | ?:[\\/]*)
7279   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7280   ;;
7281   *)
7282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287   for ac_exec_ext in '' $ac_executable_extensions; do
7288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7289     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294 done
7295 IFS=$as_save_IFS
7296
7297   ;;
7298 esac
7299 fi
7300 PDFROFF=$ac_cv_path_PDFROFF
7301 if test -n "$PDFROFF"; then
7302   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7303 echo "${ECHO_T}$PDFROFF" >&6; }
7304 else
7305   { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7307 fi
7308
7309
7310 # Extract the first word of "runtest", so it can be a program name with args.
7311 set dummy runtest; ac_word=$2
7312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314 if test "${ac_cv_path_RUNTEST+set}" = set; then
7315   echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317   case $RUNTEST in
7318   [\\/]* | ?:[\\/]*)
7319   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7320   ;;
7321   *)
7322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325   IFS=$as_save_IFS
7326   test -z "$as_dir" && as_dir=.
7327   for ac_exec_ext in '' $ac_executable_extensions; do
7328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7329     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331     break 2
7332   fi
7333 done
7334 done
7335 IFS=$as_save_IFS
7336
7337   ;;
7338 esac
7339 fi
7340 RUNTEST=$ac_cv_path_RUNTEST
7341 if test -n "$RUNTEST"; then
7342   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7343 echo "${ECHO_T}$RUNTEST" >&6; }
7344 else
7345   { echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6; }
7347 fi
7348
7349
7350
7351 no_itcl=true
7352 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7353 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7354
7355 # Check whether --with-tclinclude was given.
7356 if test "${with_tclinclude+set}" = set; then
7357   withval=$with_tclinclude; with_tclinclude=${withval}
7358 else
7359   with_tclinclude=''
7360 fi
7361
7362 if test "${ac_cv_path_tclsh+set}" = set; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365
7366 if test x"${with_tclinclude}" != x ; then
7367   if test -f ${with_tclinclude}/tclsh ; then
7368     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7369   elif test -f ${with_tclinclude}/src/tclsh ; then
7370     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7371   else
7372     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7373 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7374    { (exit 1); exit 1; }; }
7375   fi
7376 fi
7377 fi
7378
7379
7380 if test x"${ac_cv_path_tclsh}" = x ; then
7381   { echo "$as_me:$LINENO: result: none" >&5
7382 echo "${ECHO_T}none" >&6; }
7383   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
7384 do
7385   # Extract the first word of "$ac_prog", so it can be a program name with args.
7386 set dummy $ac_prog; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_TCLSH+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   case $TCLSH in
7393   [\\/]* | ?:[\\/]*)
7394   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7395   ;;
7396   *)
7397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402   for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412   ;;
7413 esac
7414 fi
7415 TCLSH=$ac_cv_path_TCLSH
7416 if test -n "$TCLSH"; then
7417   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7418 echo "${ECHO_T}$TCLSH" >&6; }
7419 else
7420   { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7422 fi
7423
7424
7425   test -n "$TCLSH" && break
7426 done
7427
7428   if test x"${TCLSH}" = x ; then
7429     ac_cv_path_tclsh='';
7430   else
7431     ac_cv_path_tclsh="${TCLSH}";
7432   fi
7433 else
7434   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7435 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7436   TCLSH="${ac_cv_path_tclsh}"
7437
7438 fi
7439
7440 # Extract the first word of "zip", so it can be a program name with args.
7441 set dummy zip; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_ZIP+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   case $ZIP in
7448   [\\/]* | ?:[\\/]*)
7449   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7450   ;;
7451   *)
7452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457   for ac_exec_ext in '' $ac_executable_extensions; do
7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467   ;;
7468 esac
7469 fi
7470 ZIP=$ac_cv_path_ZIP
7471 if test -n "$ZIP"; then
7472   { echo "$as_me:$LINENO: result: $ZIP" >&5
7473 echo "${ECHO_T}$ZIP" >&6; }
7474 else
7475   { echo "$as_me:$LINENO: result: no" >&5
7476 echo "${ECHO_T}no" >&6; }
7477 fi
7478
7479
7480 for ac_prog in ocamlc
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_OCAMLC+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   case $OCAMLC in
7490   [\\/]* | ?:[\\/]*)
7491   ac_cv_path_OCAMLC="$OCAMLC" # 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_OCAMLC="$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 OCAMLC=$ac_cv_path_OCAMLC
7513 if test -n "$OCAMLC"; then
7514   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7515 echo "${ECHO_T}$OCAMLC" >&6; }
7516 else
7517   { echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6; }
7519 fi
7520
7521
7522   test -n "$OCAMLC" && break
7523 done
7524
7525 for ac_prog in ocamlopt
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_OCAMLOPT+set}" = set; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534   case $OCAMLOPT in
7535   [\\/]* | ?:[\\/]*)
7536   ac_cv_path_OCAMLOPT="$OCAMLOPT" # 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_OCAMLOPT="$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 OCAMLOPT=$ac_cv_path_OCAMLOPT
7558 if test -n "$OCAMLOPT"; then
7559   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7560 echo "${ECHO_T}$OCAMLOPT" >&6; }
7561 else
7562   { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7564 fi
7565
7566
7567   test -n "$OCAMLOPT" && break
7568 done
7569
7570 for ac_prog in ocamldep
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_OCAMLDEP+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   case $OCAMLDEP in
7580   [\\/]* | ?:[\\/]*)
7581   ac_cv_path_OCAMLDEP="$OCAMLDEP" # 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_OCAMLDEP="$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 OCAMLDEP=$ac_cv_path_OCAMLDEP
7603 if test -n "$OCAMLDEP"; then
7604   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7605 echo "${ECHO_T}$OCAMLDEP" >&6; }
7606 else
7607   { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7609 fi
7610
7611
7612   test -n "$OCAMLDEP" && break
7613 done
7614
7615 for ac_prog in ocamldoc
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_OCAMLDOC+set}" = set; then
7622   echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624   case $OCAMLDOC in
7625   [\\/]* | ?:[\\/]*)
7626   ac_cv_path_OCAMLDOC="$OCAMLDOC" # 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_OCAMLDOC="$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 OCAMLDOC=$ac_cv_path_OCAMLDOC
7648 if test -n "$OCAMLDOC"; then
7649   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7650 echo "${ECHO_T}$OCAMLDOC" >&6; }
7651 else
7652   { echo "$as_me:$LINENO: result: no" >&5
7653 echo "${ECHO_T}no" >&6; }
7654 fi
7655
7656
7657   test -n "$OCAMLDOC" && break
7658 done
7659
7660 for ac_prog in gas as
7661 do
7662   # Extract the first word of "$ac_prog", so it can be a program name with args.
7663 set dummy $ac_prog; ac_word=$2
7664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666 if test "${ac_cv_path_GAS+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   case $GAS in
7670   [\\/]* | ?:[\\/]*)
7671   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7672   ;;
7673   *)
7674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677   IFS=$as_save_IFS
7678   test -z "$as_dir" && as_dir=.
7679   for ac_exec_ext in '' $ac_executable_extensions; do
7680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7681     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683     break 2
7684   fi
7685 done
7686 done
7687 IFS=$as_save_IFS
7688
7689   ;;
7690 esac
7691 fi
7692 GAS=$ac_cv_path_GAS
7693 if test -n "$GAS"; then
7694   { echo "$as_me:$LINENO: result: $GAS" >&5
7695 echo "${ECHO_T}$GAS" >&6; }
7696 else
7697   { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7699 fi
7700
7701
7702   test -n "$GAS" && break
7703 done
7704
7705
7706 { echo "$as_me:$LINENO: checking for linker version" >&5
7707 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7708 if test "${llvm_cv_link_version+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711
7712    version_string="$(ld -v 2>&1 | head -1)"
7713
7714    # Check for ld64.
7715    if (echo "$version_string" | grep -q "ld64"); then
7716      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7717    else
7718      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7719    fi
7720
7721 fi
7722 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7723 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7724
7725 cat >>confdefs.h <<_ACEOF
7726 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7727 _ACEOF
7728
7729
7730
7731 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7732 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7733 if test "${llvm_cv_link_use_r+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736    ac_ext=c
7737 ac_cpp='$CPP $CPPFLAGS'
7738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7741
7742   oldcflags="$CFLAGS"
7743   CFLAGS="$CFLAGS -Wl,-R."
7744   cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h.  */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h.  */
7750
7751 int
7752 main ()
7753 {
7754
7755   ;
7756   return 0;
7757 }
7758 _ACEOF
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (ac_try="$ac_link"
7761 case "(($ac_try" in
7762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763   *) ac_try_echo=$ac_try;;
7764 esac
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766   (eval "$ac_link") 2>conftest.er1
7767   ac_status=$?
7768   grep -v '^ *+' conftest.er1 >conftest.err
7769   rm -f conftest.er1
7770   cat conftest.err >&5
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); } &&
7773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7774   { (case "(($ac_try" in
7775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776   *) ac_try_echo=$ac_try;;
7777 esac
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779   (eval "$ac_try") 2>&5
7780   ac_status=$?
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); }; } &&
7783          { ac_try='test -s conftest$ac_exeext'
7784   { (case "(($ac_try" in
7785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786   *) ac_try_echo=$ac_try;;
7787 esac
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789   (eval "$ac_try") 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; }; then
7793   llvm_cv_link_use_r=yes
7794 else
7795   echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7797
7798         llvm_cv_link_use_r=no
7799 fi
7800
7801 rm -f core conftest.err conftest.$ac_objext \
7802       conftest$ac_exeext conftest.$ac_ext
7803   CFLAGS="$oldcflags"
7804   ac_ext=c
7805 ac_cpp='$CPP $CPPFLAGS'
7806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809
7810
7811 fi
7812 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7813 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7814 if test "$llvm_cv_link_use_r" = yes ; then
7815
7816 cat >>confdefs.h <<\_ACEOF
7817 #define HAVE_LINK_R 1
7818 _ACEOF
7819
7820   fi
7821
7822
7823 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7824 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7825 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7826   echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828    ac_ext=c
7829 ac_cpp='$CPP $CPPFLAGS'
7830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
7834   oldcflags="$CFLAGS"
7835   CFLAGS="$CFLAGS -rdynamic"
7836   cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842
7843 int
7844 main ()
7845 {
7846
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7853 case "(($ac_try" in
7854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855   *) ac_try_echo=$ac_try;;
7856 esac
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858   (eval "$ac_link") 2>conftest.er1
7859   ac_status=$?
7860   grep -v '^ *+' conftest.er1 >conftest.err
7861   rm -f conftest.er1
7862   cat conftest.err >&5
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } &&
7865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866   { (case "(($ac_try" in
7867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868   *) ac_try_echo=$ac_try;;
7869 esac
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871   (eval "$ac_try") 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; } &&
7875          { ac_try='test -s conftest$ac_exeext'
7876   { (case "(($ac_try" in
7877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878   *) ac_try_echo=$ac_try;;
7879 esac
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881   (eval "$ac_try") 2>&5
7882   ac_status=$?
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); }; }; then
7885   llvm_cv_link_use_export_dynamic=yes
7886 else
7887   echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890         llvm_cv_link_use_export_dynamic=no
7891 fi
7892
7893 rm -f core conftest.err conftest.$ac_objext \
7894       conftest$ac_exeext conftest.$ac_ext
7895   CFLAGS="$oldcflags"
7896   ac_ext=c
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901
7902
7903 fi
7904 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7905 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7906 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7907
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_LINK_EXPORT_DYNAMIC 1
7910 _ACEOF
7911
7912   fi
7913
7914
7915 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7916 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7917 if test "${llvm_cv_link_use_version_script+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920    ac_ext=c
7921 ac_cpp='$CPP $CPPFLAGS'
7922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7925
7926   oldcflags="$CFLAGS"
7927
7928   # The following code is from the autoconf manual,
7929   # "11.13: Limitations of Usual Tools".
7930   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7931   # Use mktemp if possible; otherwise fall back on mkdir,
7932   # with $RANDOM to make collisions less likely.
7933   : ${TMPDIR=/tmp}
7934   {
7935     tmp=`
7936       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7937     ` &&
7938     test -n "$tmp" && test -d "$tmp"
7939   } || {
7940     tmp=$TMPDIR/foo$$-$RANDOM
7941     (umask 077 && mkdir "$tmp")
7942   } || exit $?
7943
7944   echo "{" > "$tmp/export.map"
7945   echo "  global: main;" >> "$tmp/export.map"
7946   echo "  local: *;" >> "$tmp/export.map"
7947   echo "};" >> "$tmp/export.map"
7948
7949   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7950   cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h.  */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h.  */
7956
7957 int
7958 main ()
7959 {
7960
7961   ;
7962   return 0;
7963 }
7964 _ACEOF
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 if { (ac_try="$ac_link"
7967 case "(($ac_try" in
7968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969   *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972   (eval "$ac_link") 2>conftest.er1
7973   ac_status=$?
7974   grep -v '^ *+' conftest.er1 >conftest.err
7975   rm -f conftest.er1
7976   cat conftest.err >&5
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } &&
7979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7980   { (case "(($ac_try" in
7981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982   *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985   (eval "$ac_try") 2>&5
7986   ac_status=$?
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); }; } &&
7989          { ac_try='test -s conftest$ac_exeext'
7990   { (case "(($ac_try" in
7991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992   *) ac_try_echo=$ac_try;;
7993 esac
7994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995   (eval "$ac_try") 2>&5
7996   ac_status=$?
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); }; }; then
7999   llvm_cv_link_use_version_script=yes
8000 else
8001   echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004         llvm_cv_link_use_version_script=no
8005 fi
8006
8007 rm -f core conftest.err conftest.$ac_objext \
8008       conftest$ac_exeext conftest.$ac_ext
8009   rm "$tmp/export.map"
8010   rmdir "$tmp"
8011   CFLAGS="$oldcflags"
8012   ac_ext=c
8013 ac_cpp='$CPP $CPPFLAGS'
8014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8017
8018
8019 fi
8020 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8021 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8022 if test "$llvm_cv_link_use_version_script" = yes ; then
8023   HAVE_LINK_VERSION_SCRIPT=1
8024
8025   fi
8026
8027
8028 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8029 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8030
8031 ICC=no
8032 IXX=no
8033 case $CC in
8034   icc*|icpc*)
8035     ICC=yes
8036     IXX=yes
8037     ;;
8038    *)
8039     ;;
8040 esac
8041
8042 if test "$GCC" != "yes" && test "$ICC" != "yes"
8043 then
8044   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8045 echo "$as_me: error: gcc|icc required but not found" >&2;}
8046    { (exit 1); exit 1; }; }
8047 fi
8048
8049 if test "$GXX" != "yes" && test "$IXX" != "yes"
8050 then
8051   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8052 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8053    { (exit 1); exit 1; }; }
8054 fi
8055
8056 if test "$GCC" = "yes"
8057 then
8058   cat >conftest.$ac_ext <<_ACEOF
8059 #if !defined(__GNUC__) || __GNUC__ < 3
8060 #error Unsupported GCC version
8061 #endif
8062
8063 _ACEOF
8064 rm -f conftest.$ac_objext
8065 if { (ac_try="$ac_compile"
8066 case "(($ac_try" in
8067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068   *) ac_try_echo=$ac_try;;
8069 esac
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071   (eval "$ac_compile") 2>conftest.er1
8072   ac_status=$?
8073   grep -v '^ *+' conftest.er1 >conftest.err
8074   rm -f conftest.er1
8075   cat conftest.err >&5
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } &&
8078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8079   { (case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084   (eval "$ac_try") 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); }; } &&
8088          { ac_try='test -s conftest.$ac_objext'
8089   { (case "(($ac_try" in
8090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091   *) ac_try_echo=$ac_try;;
8092 esac
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094   (eval "$ac_try") 2>&5
8095   ac_status=$?
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); }; }; then
8098   :
8099 else
8100   echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8104 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8105    { (exit 1); exit 1; }; }
8106 fi
8107
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 fi
8110
8111 if test -z "$llvm_cv_gnu_make_command"
8112 then
8113   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8114 echo "$as_me: error: GNU Make required but not found" >&2;}
8115    { (exit 1); exit 1; }; }
8116 fi
8117
8118 { echo "$as_me:$LINENO: result: ok" >&5
8119 echo "${ECHO_T}ok" >&6; }
8120
8121 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8122 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8123 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8124
8125 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8126
8127 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8128
8129 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
8130 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
8131
8132
8133
8134 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8135 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8136 if test "${ac_cv_lib_m_sin+set}" = set; then
8137   echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139   ac_check_lib_save_LIBS=$LIBS
8140 LIBS="-lm  $LIBS"
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h.  */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h.  */
8147
8148 /* Override any GCC internal prototype to avoid an error.
8149    Use char because int might match the return type of a GCC
8150    builtin and then its argument prototype would still apply.  */
8151 #ifdef __cplusplus
8152 extern "C"
8153 #endif
8154 char sin ();
8155 int
8156 main ()
8157 {
8158 return sin ();
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (ac_try="$ac_link"
8165 case "(($ac_try" in
8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167   *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170   (eval "$ac_link") 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8178   { (case "(($ac_try" in
8179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180   *) ac_try_echo=$ac_try;;
8181 esac
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183   (eval "$ac_try") 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; } &&
8187          { ac_try='test -s conftest$ac_exeext'
8188   { (case "(($ac_try" in
8189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190   *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193   (eval "$ac_try") 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; }; then
8197   ac_cv_lib_m_sin=yes
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202         ac_cv_lib_m_sin=no
8203 fi
8204
8205 rm -f core conftest.err conftest.$ac_objext \
8206       conftest$ac_exeext conftest.$ac_ext
8207 LIBS=$ac_check_lib_save_LIBS
8208 fi
8209 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8210 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8211 if test $ac_cv_lib_m_sin = yes; then
8212   cat >>confdefs.h <<_ACEOF
8213 #define HAVE_LIBM 1
8214 _ACEOF
8215
8216   LIBS="-lm $LIBS"
8217
8218 fi
8219
8220 if test "$llvm_cv_os_type" = "MingW" ; then
8221
8222 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8223 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8224 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8225   echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227   ac_check_lib_save_LIBS=$LIBS
8228 LIBS="-limagehlp  $LIBS"
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h.  */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h.  */
8235
8236
8237 int
8238 main ()
8239 {
8240 return main ();
8241   ;
8242   return 0;
8243 }
8244 _ACEOF
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8253   ac_status=$?
8254   grep -v '^ *+' conftest.er1 >conftest.err
8255   rm -f conftest.er1
8256   cat conftest.err >&5
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } &&
8259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8260   { (case "(($ac_try" in
8261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262   *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265   (eval "$ac_try") 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; } &&
8269          { ac_try='test -s conftest$ac_exeext'
8270   { (case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_try") 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; }; then
8279   ac_cv_lib_imagehlp_main=yes
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284         ac_cv_lib_imagehlp_main=no
8285 fi
8286
8287 rm -f core conftest.err conftest.$ac_objext \
8288       conftest$ac_exeext conftest.$ac_ext
8289 LIBS=$ac_check_lib_save_LIBS
8290 fi
8291 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8292 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8293 if test $ac_cv_lib_imagehlp_main = yes; then
8294   cat >>confdefs.h <<_ACEOF
8295 #define HAVE_LIBIMAGEHLP 1
8296 _ACEOF
8297
8298   LIBS="-limagehlp $LIBS"
8299
8300 fi
8301
8302
8303 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8304 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8305 if test "${ac_cv_lib_psapi_main+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   ac_check_lib_save_LIBS=$LIBS
8309 LIBS="-lpsapi  $LIBS"
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316
8317
8318 int
8319 main ()
8320 {
8321 return main ();
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 rm -f conftest.$ac_objext conftest$ac_exeext
8327 if { (ac_try="$ac_link"
8328 case "(($ac_try" in
8329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330   *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333   (eval "$ac_link") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } &&
8340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8341   { (case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_try") 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; } &&
8350          { ac_try='test -s conftest$ac_exeext'
8351   { (case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_try") 2>&5
8357   ac_status=$?
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); }; }; then
8360   ac_cv_lib_psapi_main=yes
8361 else
8362   echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365         ac_cv_lib_psapi_main=no
8366 fi
8367
8368 rm -f core conftest.err conftest.$ac_objext \
8369       conftest$ac_exeext conftest.$ac_ext
8370 LIBS=$ac_check_lib_save_LIBS
8371 fi
8372 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8373 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8374 if test $ac_cv_lib_psapi_main = yes; then
8375   cat >>confdefs.h <<_ACEOF
8376 #define HAVE_LIBPSAPI 1
8377 _ACEOF
8378
8379   LIBS="-lpsapi $LIBS"
8380
8381 fi
8382
8383
8384 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8385 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8386 if test "${ac_cv_lib_shell32_main+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   ac_check_lib_save_LIBS=$LIBS
8390 LIBS="-lshell32  $LIBS"
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397
8398
8399 int
8400 main ()
8401 {
8402 return main ();
8403   ;
8404   return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (ac_try="$ac_link"
8409 case "(($ac_try" in
8410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411   *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414   (eval "$ac_link") 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8422   { (case "(($ac_try" in
8423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424   *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427   (eval "$ac_try") 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); }; } &&
8431          { ac_try='test -s conftest$ac_exeext'
8432   { (case "(($ac_try" in
8433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434   *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437   (eval "$ac_try") 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; }; then
8441   ac_cv_lib_shell32_main=yes
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446         ac_cv_lib_shell32_main=no
8447 fi
8448
8449 rm -f core conftest.err conftest.$ac_objext \
8450       conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8452 fi
8453 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8454 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8455 if test $ac_cv_lib_shell32_main = yes; then
8456   cat >>confdefs.h <<_ACEOF
8457 #define HAVE_LIBSHELL32 1
8458 _ACEOF
8459
8460   LIBS="-lshell32 $LIBS"
8461
8462 fi
8463
8464 fi
8465
8466 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8467 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8468 if test "${ac_cv_search_dlopen+set}" = set; then
8469   echo $ECHO_N "(cached) $ECHO_C" >&6
8470 else
8471   ac_func_search_save_LIBS=$LIBS
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478
8479 /* Override any GCC internal prototype to avoid an error.
8480    Use char because int might match the return type of a GCC
8481    builtin and then its argument prototype would still apply.  */
8482 #ifdef __cplusplus
8483 extern "C"
8484 #endif
8485 char dlopen ();
8486 int
8487 main ()
8488 {
8489 return dlopen ();
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 for ac_lib in '' dl; do
8495   if test -z "$ac_lib"; then
8496     ac_res="none required"
8497   else
8498     ac_res=-l$ac_lib
8499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8500   fi
8501   rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (ac_try="$ac_link"
8503 case "(($ac_try" in
8504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505   *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508   (eval "$ac_link") 2>conftest.er1
8509   ac_status=$?
8510   grep -v '^ *+' conftest.er1 >conftest.err
8511   rm -f conftest.er1
8512   cat conftest.err >&5
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); } &&
8515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8516   { (case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521   (eval "$ac_try") 2>&5
8522   ac_status=$?
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); }; } &&
8525          { ac_try='test -s conftest$ac_exeext'
8526   { (case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531   (eval "$ac_try") 2>&5
8532   ac_status=$?
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); }; }; then
8535   ac_cv_search_dlopen=$ac_res
8536 else
8537   echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540
8541 fi
8542
8543 rm -f core conftest.err conftest.$ac_objext \
8544       conftest$ac_exeext
8545   if test "${ac_cv_search_dlopen+set}" = set; then
8546   break
8547 fi
8548 done
8549 if test "${ac_cv_search_dlopen+set}" = set; then
8550   :
8551 else
8552   ac_cv_search_dlopen=no
8553 fi
8554 rm conftest.$ac_ext
8555 LIBS=$ac_func_search_save_LIBS
8556 fi
8557 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8558 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8559 ac_res=$ac_cv_search_dlopen
8560 if test "$ac_res" != no; then
8561   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8562
8563 cat >>confdefs.h <<\_ACEOF
8564 #define HAVE_DLOPEN 1
8565 _ACEOF
8566
8567 else
8568   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8569 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8570 fi
8571
8572
8573 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8574 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8575 if test "${ac_cv_search_clock_gettime+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   ac_func_search_save_LIBS=$LIBS
8579 cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585
8586 /* Override any GCC internal prototype to avoid an error.
8587    Use char because int might match the return type of a GCC
8588    builtin and then its argument prototype would still apply.  */
8589 #ifdef __cplusplus
8590 extern "C"
8591 #endif
8592 char clock_gettime ();
8593 int
8594 main ()
8595 {
8596 return clock_gettime ();
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 for ac_lib in '' rt; do
8602   if test -z "$ac_lib"; then
8603     ac_res="none required"
8604   else
8605     ac_res=-l$ac_lib
8606     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8607   fi
8608   rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (ac_try="$ac_link"
8610 case "(($ac_try" in
8611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612   *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615   (eval "$ac_link") 2>conftest.er1
8616   ac_status=$?
8617   grep -v '^ *+' conftest.er1 >conftest.err
8618   rm -f conftest.er1
8619   cat conftest.err >&5
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); } &&
8622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8623   { (case "(($ac_try" in
8624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625   *) ac_try_echo=$ac_try;;
8626 esac
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628   (eval "$ac_try") 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }; } &&
8632          { ac_try='test -s conftest$ac_exeext'
8633   { (case "(($ac_try" in
8634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635   *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638   (eval "$ac_try") 2>&5
8639   ac_status=$?
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); }; }; then
8642   ac_cv_search_clock_gettime=$ac_res
8643 else
8644   echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647
8648 fi
8649
8650 rm -f core conftest.err conftest.$ac_objext \
8651       conftest$ac_exeext
8652   if test "${ac_cv_search_clock_gettime+set}" = set; then
8653   break
8654 fi
8655 done
8656 if test "${ac_cv_search_clock_gettime+set}" = set; then
8657   :
8658 else
8659   ac_cv_search_clock_gettime=no
8660 fi
8661 rm conftest.$ac_ext
8662 LIBS=$ac_func_search_save_LIBS
8663 fi
8664 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8665 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8666 ac_res=$ac_cv_search_clock_gettime
8667 if test "$ac_res" != no; then
8668   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8669
8670 fi
8671
8672
8673 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8674     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8675 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8676 if test "${ac_cv_search_setupterm+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   ac_func_search_save_LIBS=$LIBS
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h.  */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h.  */
8686
8687 /* Override any GCC internal prototype to avoid an error.
8688    Use char because int might match the return type of a GCC
8689    builtin and then its argument prototype would still apply.  */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 char setupterm ();
8694 int
8695 main ()
8696 {
8697 return setupterm ();
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 for ac_lib in '' tinfo curses ncurses ncursesw; do
8703   if test -z "$ac_lib"; then
8704     ac_res="none required"
8705   else
8706     ac_res=-l$ac_lib
8707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8708   fi
8709   rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (ac_try="$ac_link"
8711 case "(($ac_try" in
8712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713   *) ac_try_echo=$ac_try;;
8714 esac
8715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716   (eval "$ac_link") 2>conftest.er1
8717   ac_status=$?
8718   grep -v '^ *+' conftest.er1 >conftest.err
8719   rm -f conftest.er1
8720   cat conftest.err >&5
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } &&
8723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8724   { (case "(($ac_try" in
8725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726   *) ac_try_echo=$ac_try;;
8727 esac
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729   (eval "$ac_try") 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; } &&
8733          { ac_try='test -s conftest$ac_exeext'
8734   { (case "(($ac_try" in
8735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736   *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739   (eval "$ac_try") 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; }; then
8743   ac_cv_search_setupterm=$ac_res
8744 else
8745   echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8747
8748
8749 fi
8750
8751 rm -f core conftest.err conftest.$ac_objext \
8752       conftest$ac_exeext
8753   if test "${ac_cv_search_setupterm+set}" = set; then
8754   break
8755 fi
8756 done
8757 if test "${ac_cv_search_setupterm+set}" = set; then
8758   :
8759 else
8760   ac_cv_search_setupterm=no
8761 fi
8762 rm conftest.$ac_ext
8763 LIBS=$ac_func_search_save_LIBS
8764 fi
8765 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8766 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8767 ac_res=$ac_cv_search_setupterm
8768 if test "$ac_res" != no; then
8769   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8770
8771 cat >>confdefs.h <<\_ACEOF
8772 #define HAVE_TERMINFO 1
8773 _ACEOF
8774
8775 fi
8776
8777 fi
8778
8779 if test "$llvm_cv_enable_libffi" = "yes" ; then
8780   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
8781 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
8782 if test "${ac_cv_search_ffi_call+set}" = set; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   ac_func_search_save_LIBS=$LIBS
8786 cat >conftest.$ac_ext <<_ACEOF
8787 /* confdefs.h.  */
8788 _ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h.  */
8792
8793 /* Override any GCC internal prototype to avoid an error.
8794    Use char because int might match the return type of a GCC
8795    builtin and then its argument prototype would still apply.  */
8796 #ifdef __cplusplus
8797 extern "C"
8798 #endif
8799 char ffi_call ();
8800 int
8801 main ()
8802 {
8803 return ffi_call ();
8804   ;
8805   return 0;
8806 }
8807 _ACEOF
8808 for ac_lib in '' ffi; do
8809   if test -z "$ac_lib"; then
8810     ac_res="none required"
8811   else
8812     ac_res=-l$ac_lib
8813     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8814   fi
8815   rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8817 case "(($ac_try" in
8818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819   *) ac_try_echo=$ac_try;;
8820 esac
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822   (eval "$ac_link") 2>conftest.er1
8823   ac_status=$?
8824   grep -v '^ *+' conftest.er1 >conftest.err
8825   rm -f conftest.er1
8826   cat conftest.err >&5
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); } &&
8829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830   { (case "(($ac_try" in
8831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832   *) ac_try_echo=$ac_try;;
8833 esac
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835   (eval "$ac_try") 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; } &&
8839          { ac_try='test -s conftest$ac_exeext'
8840   { (case "(($ac_try" in
8841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842   *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845   (eval "$ac_try") 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; }; then
8849   ac_cv_search_ffi_call=$ac_res
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854
8855 fi
8856
8857 rm -f core conftest.err conftest.$ac_objext \
8858       conftest$ac_exeext
8859   if test "${ac_cv_search_ffi_call+set}" = set; then
8860   break
8861 fi
8862 done
8863 if test "${ac_cv_search_ffi_call+set}" = set; then
8864   :
8865 else
8866   ac_cv_search_ffi_call=no
8867 fi
8868 rm conftest.$ac_ext
8869 LIBS=$ac_func_search_save_LIBS
8870 fi
8871 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
8872 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
8873 ac_res=$ac_cv_search_ffi_call
8874 if test "$ac_res" != no; then
8875   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8876
8877 cat >>confdefs.h <<\_ACEOF
8878 #define HAVE_FFI_CALL 1
8879 _ACEOF
8880
8881 else
8882   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
8883 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
8884    { (exit 1); exit 1; }; }
8885 fi
8886
8887 fi
8888
8889 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
8890 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
8891 if test "${ac_cv_search_mallinfo+set}" = set; then
8892   echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894   ac_func_search_save_LIBS=$LIBS
8895 cat >conftest.$ac_ext <<_ACEOF
8896 /* confdefs.h.  */
8897 _ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h.  */
8901
8902 /* Override any GCC internal prototype to avoid an error.
8903    Use char because int might match the return type of a GCC
8904    builtin and then its argument prototype would still apply.  */
8905 #ifdef __cplusplus
8906 extern "C"
8907 #endif
8908 char mallinfo ();
8909 int
8910 main ()
8911 {
8912 return mallinfo ();
8913   ;
8914   return 0;
8915 }
8916 _ACEOF
8917 for ac_lib in '' malloc; do
8918   if test -z "$ac_lib"; then
8919     ac_res="none required"
8920   else
8921     ac_res=-l$ac_lib
8922     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8923   fi
8924   rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (ac_try="$ac_link"
8926 case "(($ac_try" in
8927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928   *) ac_try_echo=$ac_try;;
8929 esac
8930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8931   (eval "$ac_link") 2>conftest.er1
8932   ac_status=$?
8933   grep -v '^ *+' conftest.er1 >conftest.err
8934   rm -f conftest.er1
8935   cat conftest.err >&5
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); } &&
8938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8939   { (case "(($ac_try" in
8940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941   *) ac_try_echo=$ac_try;;
8942 esac
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944   (eval "$ac_try") 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; } &&
8948          { ac_try='test -s conftest$ac_exeext'
8949   { (case "(($ac_try" in
8950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951   *) ac_try_echo=$ac_try;;
8952 esac
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954   (eval "$ac_try") 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; }; then
8958   ac_cv_search_mallinfo=$ac_res
8959 else
8960   echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963
8964 fi
8965
8966 rm -f core conftest.err conftest.$ac_objext \
8967       conftest$ac_exeext
8968   if test "${ac_cv_search_mallinfo+set}" = set; then
8969   break
8970 fi
8971 done
8972 if test "${ac_cv_search_mallinfo+set}" = set; then
8973   :
8974 else
8975   ac_cv_search_mallinfo=no
8976 fi
8977 rm conftest.$ac_ext
8978 LIBS=$ac_func_search_save_LIBS
8979 fi
8980 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
8981 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
8982 ac_res=$ac_cv_search_mallinfo
8983 if test "$ac_res" != no; then
8984   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985
8986 cat >>confdefs.h <<\_ACEOF
8987 #define HAVE_MALLINFO 1
8988 _ACEOF
8989
8990 fi
8991
8992
8993 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
8994
8995 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
8996 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
8997 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
8998   echo $ECHO_N "(cached) $ECHO_C" >&6
8999 else
9000   ac_check_lib_save_LIBS=$LIBS
9001 LIBS="-lpthread  $LIBS"
9002 cat >conftest.$ac_ext <<_ACEOF
9003 /* confdefs.h.  */
9004 _ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h.  */
9008
9009 /* Override any GCC internal prototype to avoid an error.
9010    Use char because int might match the return type of a GCC
9011    builtin and then its argument prototype would still apply.  */
9012 #ifdef __cplusplus
9013 extern "C"
9014 #endif
9015 char pthread_mutex_init ();
9016 int
9017 main ()
9018 {
9019 return pthread_mutex_init ();
9020   ;
9021   return 0;
9022 }
9023 _ACEOF
9024 rm -f conftest.$ac_objext conftest$ac_exeext
9025 if { (ac_try="$ac_link"
9026 case "(($ac_try" in
9027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028   *) ac_try_echo=$ac_try;;
9029 esac
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031   (eval "$ac_link") 2>conftest.er1
9032   ac_status=$?
9033   grep -v '^ *+' conftest.er1 >conftest.err
9034   rm -f conftest.er1
9035   cat conftest.err >&5
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   (exit $ac_status); } &&
9038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9039   { (case "(($ac_try" in
9040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041   *) ac_try_echo=$ac_try;;
9042 esac
9043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9044   (eval "$ac_try") 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; } &&
9048          { ac_try='test -s conftest$ac_exeext'
9049   { (case "(($ac_try" in
9050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051   *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054   (eval "$ac_try") 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   ac_cv_lib_pthread_pthread_mutex_init=yes
9059 else
9060   echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063         ac_cv_lib_pthread_pthread_mutex_init=no
9064 fi
9065
9066 rm -f core conftest.err conftest.$ac_objext \
9067       conftest$ac_exeext conftest.$ac_ext
9068 LIBS=$ac_check_lib_save_LIBS
9069 fi
9070 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9071 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9072 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9073   cat >>confdefs.h <<_ACEOF
9074 #define HAVE_LIBPTHREAD 1
9075 _ACEOF
9076
9077   LIBS="-lpthread $LIBS"
9078
9079 fi
9080
9081   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9082 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9083 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086   ac_func_search_save_LIBS=$LIBS
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h.  */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h.  */
9093
9094 /* Override any GCC internal prototype to avoid an error.
9095    Use char because int might match the return type of a GCC
9096    builtin and then its argument prototype would still apply.  */
9097 #ifdef __cplusplus
9098 extern "C"
9099 #endif
9100 char pthread_mutex_lock ();
9101 int
9102 main ()
9103 {
9104 return pthread_mutex_lock ();
9105   ;
9106   return 0;
9107 }
9108 _ACEOF
9109 for ac_lib in '' pthread; do
9110   if test -z "$ac_lib"; then
9111     ac_res="none required"
9112   else
9113     ac_res=-l$ac_lib
9114     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9115   fi
9116   rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (ac_try="$ac_link"
9118 case "(($ac_try" in
9119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120   *) ac_try_echo=$ac_try;;
9121 esac
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123   (eval "$ac_link") 2>conftest.er1
9124   ac_status=$?
9125   grep -v '^ *+' conftest.er1 >conftest.err
9126   rm -f conftest.er1
9127   cat conftest.err >&5
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } &&
9130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9131   { (case "(($ac_try" in
9132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133   *) ac_try_echo=$ac_try;;
9134 esac
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136   (eval "$ac_try") 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; } &&
9140          { ac_try='test -s conftest$ac_exeext'
9141   { (case "(($ac_try" in
9142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143   *) ac_try_echo=$ac_try;;
9144 esac
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146   (eval "$ac_try") 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; }; then
9150   ac_cv_search_pthread_mutex_lock=$ac_res
9151 else
9152   echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9154
9155
9156 fi
9157
9158 rm -f core conftest.err conftest.$ac_objext \
9159       conftest$ac_exeext
9160   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9161   break
9162 fi
9163 done
9164 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9165   :
9166 else
9167   ac_cv_search_pthread_mutex_lock=no
9168 fi
9169 rm conftest.$ac_ext
9170 LIBS=$ac_func_search_save_LIBS
9171 fi
9172 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9173 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9174 ac_res=$ac_cv_search_pthread_mutex_lock
9175 if test "$ac_res" != no; then
9176   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9177
9178 cat >>confdefs.h <<\_ACEOF
9179 #define HAVE_PTHREAD_MUTEX_LOCK 1
9180 _ACEOF
9181
9182 fi
9183
9184   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9185 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9186 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9187   echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189   ac_func_search_save_LIBS=$LIBS
9190 cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h.  */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h.  */
9196
9197 /* Override any GCC internal prototype to avoid an error.
9198    Use char because int might match the return type of a GCC
9199    builtin and then its argument prototype would still apply.  */
9200 #ifdef __cplusplus
9201 extern "C"
9202 #endif
9203 char pthread_rwlock_init ();
9204 int
9205 main ()
9206 {
9207 return pthread_rwlock_init ();
9208   ;
9209   return 0;
9210 }
9211 _ACEOF
9212 for ac_lib in '' pthread; do
9213   if test -z "$ac_lib"; then
9214     ac_res="none required"
9215   else
9216     ac_res=-l$ac_lib
9217     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9218   fi
9219   rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (ac_try="$ac_link"
9221 case "(($ac_try" in
9222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223   *) ac_try_echo=$ac_try;;
9224 esac
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226   (eval "$ac_link") 2>conftest.er1
9227   ac_status=$?
9228   grep -v '^ *+' conftest.er1 >conftest.err
9229   rm -f conftest.er1
9230   cat conftest.err >&5
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); } &&
9233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9234   { (case "(($ac_try" in
9235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236   *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239   (eval "$ac_try") 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); }; } &&
9243          { ac_try='test -s conftest$ac_exeext'
9244   { (case "(($ac_try" in
9245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9246   *) ac_try_echo=$ac_try;;
9247 esac
9248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9249   (eval "$ac_try") 2>&5
9250   ac_status=$?
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); }; }; then
9253   ac_cv_search_pthread_rwlock_init=$ac_res
9254 else
9255   echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9257
9258
9259 fi
9260
9261 rm -f core conftest.err conftest.$ac_objext \
9262       conftest$ac_exeext
9263   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9264   break
9265 fi
9266 done
9267 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9268   :
9269 else
9270   ac_cv_search_pthread_rwlock_init=no
9271 fi
9272 rm conftest.$ac_ext
9273 LIBS=$ac_func_search_save_LIBS
9274 fi
9275 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9276 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9277 ac_res=$ac_cv_search_pthread_rwlock_init
9278 if test "$ac_res" != no; then
9279   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9280
9281 cat >>confdefs.h <<\_ACEOF
9282 #define HAVE_PTHREAD_RWLOCK_INIT 1
9283 _ACEOF
9284
9285 fi
9286
9287   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9288 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9289 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9290   echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292   ac_func_search_save_LIBS=$LIBS
9293 cat >conftest.$ac_ext <<_ACEOF
9294 /* confdefs.h.  */
9295 _ACEOF
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h.  */
9299
9300 /* Override any GCC internal prototype to avoid an error.
9301    Use char because int might match the return type of a GCC
9302    builtin and then its argument prototype would still apply.  */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 char pthread_getspecific ();
9307 int
9308 main ()
9309 {
9310 return pthread_getspecific ();
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 for ac_lib in '' pthread; do
9316   if test -z "$ac_lib"; then
9317     ac_res="none required"
9318   else
9319     ac_res=-l$ac_lib
9320     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9321   fi
9322   rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (ac_try="$ac_link"
9324 case "(($ac_try" in
9325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9326   *) ac_try_echo=$ac_try;;
9327 esac
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329   (eval "$ac_link") 2>conftest.er1
9330   ac_status=$?
9331   grep -v '^ *+' conftest.er1 >conftest.err
9332   rm -f conftest.er1
9333   cat conftest.err >&5
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } &&
9336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9337   { (case "(($ac_try" in
9338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339   *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342   (eval "$ac_try") 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); }; } &&
9346          { ac_try='test -s conftest$ac_exeext'
9347   { (case "(($ac_try" in
9348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349   *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352   (eval "$ac_try") 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); }; }; then
9356   ac_cv_search_pthread_getspecific=$ac_res
9357 else
9358   echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361
9362 fi
9363
9364 rm -f core conftest.err conftest.$ac_objext \
9365       conftest$ac_exeext
9366   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9367   break
9368 fi
9369 done
9370 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9371   :
9372 else
9373   ac_cv_search_pthread_getspecific=no
9374 fi
9375 rm conftest.$ac_ext
9376 LIBS=$ac_func_search_save_LIBS
9377 fi
9378 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9379 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9380 ac_res=$ac_cv_search_pthread_getspecific
9381 if test "$ac_res" != no; then
9382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9383
9384 cat >>confdefs.h <<\_ACEOF
9385 #define HAVE_PTHREAD_GETSPECIFIC 1
9386 _ACEOF
9387
9388 fi
9389
9390 fi
9391
9392 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9393
9394 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9395 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9396 if test "${ac_cv_lib_z_compress2+set}" = set; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399   ac_check_lib_save_LIBS=$LIBS
9400 LIBS="-lz  $LIBS"
9401 cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h.  */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h.  */
9407
9408 /* Override any GCC internal prototype to avoid an error.
9409    Use char because int might match the return type of a GCC
9410    builtin and then its argument prototype would still apply.  */
9411 #ifdef __cplusplus
9412 extern "C"
9413 #endif
9414 char compress2 ();
9415 int
9416 main ()
9417 {
9418 return compress2 ();
9419   ;
9420   return 0;
9421 }
9422 _ACEOF
9423 rm -f conftest.$ac_objext conftest$ac_exeext
9424 if { (ac_try="$ac_link"
9425 case "(($ac_try" in
9426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9427   *) ac_try_echo=$ac_try;;
9428 esac
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430   (eval "$ac_link") 2>conftest.er1
9431   ac_status=$?
9432   grep -v '^ *+' conftest.er1 >conftest.err
9433   rm -f conftest.er1
9434   cat conftest.err >&5
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); } &&
9437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9438   { (case "(($ac_try" in
9439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440   *) ac_try_echo=$ac_try;;
9441 esac
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443   (eval "$ac_try") 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); }; } &&
9447          { ac_try='test -s conftest$ac_exeext'
9448   { (case "(($ac_try" in
9449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450   *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453   (eval "$ac_try") 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); }; }; then
9457   ac_cv_lib_z_compress2=yes
9458 else
9459   echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9461
9462         ac_cv_lib_z_compress2=no
9463 fi
9464
9465 rm -f core conftest.err conftest.$ac_objext \
9466       conftest$ac_exeext conftest.$ac_ext
9467 LIBS=$ac_check_lib_save_LIBS
9468 fi
9469 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9470 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9471 if test $ac_cv_lib_z_compress2 = yes; then
9472   cat >>confdefs.h <<_ACEOF
9473 #define HAVE_LIBZ 1
9474 _ACEOF
9475
9476   LIBS="-lz $LIBS"
9477
9478 fi
9479
9480 fi
9481
9482
9483 # Check whether --with-udis86 was given.
9484 if test "${with_udis86+set}" = set; then
9485   withval=$with_udis86;
9486       USE_UDIS86=1
9487
9488       case "$withval" in
9489         /usr/lib|yes) ;;
9490         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
9491       esac
9492
9493 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
9494 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
9495 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
9496   echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498   ac_check_lib_save_LIBS=$LIBS
9499 LIBS="-ludis86  $LIBS"
9500 cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h.  */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h.  */
9506
9507 /* Override any GCC internal prototype to avoid an error.
9508    Use char because int might match the return type of a GCC
9509    builtin and then its argument prototype would still apply.  */
9510 #ifdef __cplusplus
9511 extern "C"
9512 #endif
9513 char ud_init ();
9514 int
9515 main ()
9516 {
9517 return ud_init ();
9518   ;
9519   return 0;
9520 }
9521 _ACEOF
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (ac_try="$ac_link"
9524 case "(($ac_try" in
9525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526   *) ac_try_echo=$ac_try;;
9527 esac
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529   (eval "$ac_link") 2>conftest.er1
9530   ac_status=$?
9531   grep -v '^ *+' conftest.er1 >conftest.err
9532   rm -f conftest.er1
9533   cat conftest.err >&5
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); } &&
9536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9537   { (case "(($ac_try" in
9538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539   *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542   (eval "$ac_try") 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }; } &&
9546          { ac_try='test -s conftest$ac_exeext'
9547   { (case "(($ac_try" in
9548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549   *) ac_try_echo=$ac_try;;
9550 esac
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552   (eval "$ac_try") 2>&5
9553   ac_status=$?
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); }; }; then
9556   ac_cv_lib_udis86_ud_init=yes
9557 else
9558   echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561         ac_cv_lib_udis86_ud_init=no
9562 fi
9563
9564 rm -f core conftest.err conftest.$ac_objext \
9565       conftest$ac_exeext conftest.$ac_ext
9566 LIBS=$ac_check_lib_save_LIBS
9567 fi
9568 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
9569 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
9570 if test $ac_cv_lib_udis86_ud_init = yes; then
9571   cat >>confdefs.h <<_ACEOF
9572 #define HAVE_LIBUDIS86 1
9573 _ACEOF
9574
9575   LIBS="-ludis86 $LIBS"
9576
9577 else
9578
9579         echo "Error! You need to have libudis86 around."
9580         exit -1
9581
9582 fi
9583
9584
9585 else
9586   USE_UDIS86=0
9587
9588 fi
9589
9590
9591 cat >>confdefs.h <<_ACEOF
9592 #define USE_UDIS86 $USE_UDIS86
9593 _ACEOF
9594
9595
9596
9597 # Check whether --with-oprofile was given.
9598 if test "${with_oprofile+set}" = set; then
9599   withval=$with_oprofile;
9600       USE_OPROFILE=1
9601
9602       case "$withval" in
9603         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9604         no) llvm_cv_oppath=
9605             USE_OPROFILE=0
9606  ;;
9607         *) llvm_cv_oppath="${withval}/lib/oprofile"
9608            CPPFLAGS="-I${withval}/include";;
9609       esac
9610       if test -n "$llvm_cv_oppath" ; then
9611         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9612                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9613 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9614 if test "${ac_cv_search_bfd_init+set}" = set; then
9615   echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617   ac_func_search_save_LIBS=$LIBS
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h.  */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h.  */
9624
9625 /* Override any GCC internal prototype to avoid an error.
9626    Use char because int might match the return type of a GCC
9627    builtin and then its argument prototype would still apply.  */
9628 #ifdef __cplusplus
9629 extern "C"
9630 #endif
9631 char bfd_init ();
9632 int
9633 main ()
9634 {
9635 return bfd_init ();
9636   ;
9637   return 0;
9638 }
9639 _ACEOF
9640 for ac_lib in '' bfd; do
9641   if test -z "$ac_lib"; then
9642     ac_res="none required"
9643   else
9644     ac_res=-l$ac_lib
9645     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9646   fi
9647   rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9649 case "(($ac_try" in
9650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651   *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654   (eval "$ac_link") 2>conftest.er1
9655   ac_status=$?
9656   grep -v '^ *+' conftest.er1 >conftest.err
9657   rm -f conftest.er1
9658   cat conftest.err >&5
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } &&
9661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9662   { (case "(($ac_try" in
9663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664   *) ac_try_echo=$ac_try;;
9665 esac
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667   (eval "$ac_try") 2>&5
9668   ac_status=$?
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); }; } &&
9671          { ac_try='test -s conftest$ac_exeext'
9672   { (case "(($ac_try" in
9673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674   *) ac_try_echo=$ac_try;;
9675 esac
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677   (eval "$ac_try") 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); }; }; then
9681   ac_cv_search_bfd_init=$ac_res
9682 else
9683   echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686
9687 fi
9688
9689 rm -f core conftest.err conftest.$ac_objext \
9690       conftest$ac_exeext
9691   if test "${ac_cv_search_bfd_init+set}" = set; then
9692   break
9693 fi
9694 done
9695 if test "${ac_cv_search_bfd_init+set}" = set; then
9696   :
9697 else
9698   ac_cv_search_bfd_init=no
9699 fi
9700 rm conftest.$ac_ext
9701 LIBS=$ac_func_search_save_LIBS
9702 fi
9703 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9704 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9705 ac_res=$ac_cv_search_bfd_init
9706 if test "$ac_res" != no; then
9707   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9708
9709 fi
9710
9711         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9712 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9713 if test "${ac_cv_search_op_open_agent+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   ac_func_search_save_LIBS=$LIBS
9717 cat >conftest.$ac_ext <<_ACEOF
9718 /* confdefs.h.  */
9719 _ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h.  */
9723
9724 /* Override any GCC internal prototype to avoid an error.
9725    Use char because int might match the return type of a GCC
9726    builtin and then its argument prototype would still apply.  */
9727 #ifdef __cplusplus
9728 extern "C"
9729 #endif
9730 char op_open_agent ();
9731 int
9732 main ()
9733 {
9734 return op_open_agent ();
9735   ;
9736   return 0;
9737 }
9738 _ACEOF
9739 for ac_lib in '' opagent; do
9740   if test -z "$ac_lib"; then
9741     ac_res="none required"
9742   else
9743     ac_res=-l$ac_lib
9744     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9745   fi
9746   rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9748 case "(($ac_try" in
9749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750   *) ac_try_echo=$ac_try;;
9751 esac
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753   (eval "$ac_link") 2>conftest.er1
9754   ac_status=$?
9755   grep -v '^ *+' conftest.er1 >conftest.err
9756   rm -f conftest.er1
9757   cat conftest.err >&5
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); } &&
9760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761   { (case "(($ac_try" in
9762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763   *) ac_try_echo=$ac_try;;
9764 esac
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766   (eval "$ac_try") 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (case "(($ac_try" in
9772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773   *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776   (eval "$ac_try") 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; }; then
9780   ac_cv_search_op_open_agent=$ac_res
9781 else
9782   echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9784
9785
9786 fi
9787
9788 rm -f core conftest.err conftest.$ac_objext \
9789       conftest$ac_exeext
9790   if test "${ac_cv_search_op_open_agent+set}" = set; then
9791   break
9792 fi
9793 done
9794 if test "${ac_cv_search_op_open_agent+set}" = set; then
9795   :
9796 else
9797   ac_cv_search_op_open_agent=no
9798 fi
9799 rm conftest.$ac_ext
9800 LIBS=$ac_func_search_save_LIBS
9801 fi
9802 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9803 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9804 ac_res=$ac_cv_search_op_open_agent
9805 if test "$ac_res" != no; then
9806   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9807
9808 else
9809
9810           echo "Error! You need to have libopagent around."
9811           exit -1
9812
9813 fi
9814
9815         if test "${ac_cv_header_opagent_h+set}" = set; then
9816   { echo "$as_me:$LINENO: checking for opagent.h" >&5
9817 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9818 if test "${ac_cv_header_opagent_h+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 fi
9821 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9822 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9823 else
9824   # Is the header compilable?
9825 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9826 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9827 cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833 $ac_includes_default
9834 #include <opagent.h>
9835 _ACEOF
9836 rm -f conftest.$ac_objext
9837 if { (ac_try="$ac_compile"
9838 case "(($ac_try" in
9839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840   *) ac_try_echo=$ac_try;;
9841 esac
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843   (eval "$ac_compile") 2>conftest.er1
9844   ac_status=$?
9845   grep -v '^ *+' conftest.er1 >conftest.err
9846   rm -f conftest.er1
9847   cat conftest.err >&5
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); } &&
9850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9860          { ac_try='test -s conftest.$ac_objext'
9861   { (case "(($ac_try" in
9862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863   *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866   (eval "$ac_try") 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_header_compiler=yes
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875         ac_header_compiler=no
9876 fi
9877
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9880 echo "${ECHO_T}$ac_header_compiler" >&6; }
9881
9882 # Is the header present?
9883 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
9884 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h.  */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h.  */
9891 #include <opagent.h>
9892 _ACEOF
9893 if { (ac_try="$ac_cpp conftest.$ac_ext"
9894 case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9900   ac_status=$?
9901   grep -v '^ *+' conftest.er1 >conftest.err
9902   rm -f conftest.er1
9903   cat conftest.err >&5
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } >/dev/null; then
9906   if test -s conftest.err; then
9907     ac_cpp_err=$ac_c_preproc_warn_flag
9908     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9909   else
9910     ac_cpp_err=
9911   fi
9912 else
9913   ac_cpp_err=yes
9914 fi
9915 if test -z "$ac_cpp_err"; then
9916   ac_header_preproc=yes
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9920
9921   ac_header_preproc=no
9922 fi
9923
9924 rm -f conftest.err conftest.$ac_ext
9925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9926 echo "${ECHO_T}$ac_header_preproc" >&6; }
9927
9928 # So?  What about this header?
9929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9930   yes:no: )
9931     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
9932 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9933     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
9934 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
9935     ac_header_preproc=yes
9936     ;;
9937   no:yes:* )
9938     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
9939 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
9940     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
9941 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
9942     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
9943 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
9944     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
9945 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9946     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
9947 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
9948     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
9949 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
9950     ( cat <<\_ASBOX
9951 ## ------------------------------ ##
9952 ## Report this to bugs@yourdomain ##
9953 ## ------------------------------ ##
9954 _ASBOX
9955      ) | sed "s/^/$as_me: WARNING:     /" >&2
9956     ;;
9957 esac
9958 { echo "$as_me:$LINENO: checking for opagent.h" >&5
9959 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9960 if test "${ac_cv_header_opagent_h+set}" = set; then
9961   echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963   ac_cv_header_opagent_h=$ac_header_preproc
9964 fi
9965 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9966 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9967
9968 fi
9969 if test $ac_cv_header_opagent_h = yes; then
9970   :
9971 else
9972
9973           echo "Error! You need to have opagent.h around."
9974           exit -1
9975
9976 fi
9977
9978
9979       fi
9980
9981 else
9982
9983       USE_OPROFILE=0
9984
9985
9986 fi
9987
9988
9989 cat >>confdefs.h <<_ACEOF
9990 #define USE_OPROFILE $USE_OPROFILE
9991 _ACEOF
9992
9993
9994
9995
9996
9997
9998
9999
10000 ac_header_dirent=no
10001 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10002   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10003 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10004 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h.  */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h.  */
10014 #include <sys/types.h>
10015 #include <$ac_hdr>
10016
10017 int
10018 main ()
10019 {
10020 if ((DIR *) 0)
10021 return 0;
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext
10027 if { (ac_try="$ac_compile"
10028 case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_compile") 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } &&
10040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10041   { (case "(($ac_try" in
10042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043   *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046   (eval "$ac_try") 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; } &&
10050          { ac_try='test -s conftest.$ac_objext'
10051   { (case "(($ac_try" in
10052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053   *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056   (eval "$ac_try") 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; }; then
10060   eval "$as_ac_Header=yes"
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065         eval "$as_ac_Header=no"
10066 fi
10067
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 fi
10070 ac_res=`eval echo '${'$as_ac_Header'}'`
10071                { echo "$as_me:$LINENO: result: $ac_res" >&5
10072 echo "${ECHO_T}$ac_res" >&6; }
10073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10074   cat >>confdefs.h <<_ACEOF
10075 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10076 _ACEOF
10077
10078 ac_header_dirent=$ac_hdr; break
10079 fi
10080
10081 done
10082 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10083 if test $ac_header_dirent = dirent.h; then
10084   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10085 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10086 if test "${ac_cv_search_opendir+set}" = set; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089   ac_func_search_save_LIBS=$LIBS
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h.  */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h.  */
10096
10097 /* Override any GCC internal prototype to avoid an error.
10098    Use char because int might match the return type of a GCC
10099    builtin and then its argument prototype would still apply.  */
10100 #ifdef __cplusplus
10101 extern "C"
10102 #endif
10103 char opendir ();
10104 int
10105 main ()
10106 {
10107 return opendir ();
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 for ac_lib in '' dir; do
10113   if test -z "$ac_lib"; then
10114     ac_res="none required"
10115   else
10116     ac_res=-l$ac_lib
10117     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10118   fi
10119   rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_link") 2>conftest.er1
10127   ac_status=$?
10128   grep -v '^ *+' conftest.er1 >conftest.err
10129   rm -f conftest.er1
10130   cat conftest.err >&5
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } &&
10133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134   { (case "(($ac_try" in
10135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136   *) ac_try_echo=$ac_try;;
10137 esac
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139   (eval "$ac_try") 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); }; } &&
10143          { ac_try='test -s conftest$ac_exeext'
10144   { (case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_try") 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; }; then
10153   ac_cv_search_opendir=$ac_res
10154 else
10155   echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158
10159 fi
10160
10161 rm -f core conftest.err conftest.$ac_objext \
10162       conftest$ac_exeext
10163   if test "${ac_cv_search_opendir+set}" = set; then
10164   break
10165 fi
10166 done
10167 if test "${ac_cv_search_opendir+set}" = set; then
10168   :
10169 else
10170   ac_cv_search_opendir=no
10171 fi
10172 rm conftest.$ac_ext
10173 LIBS=$ac_func_search_save_LIBS
10174 fi
10175 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10176 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10177 ac_res=$ac_cv_search_opendir
10178 if test "$ac_res" != no; then
10179   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10180
10181 fi
10182
10183 else
10184   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10185 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10186 if test "${ac_cv_search_opendir+set}" = set; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   ac_func_search_save_LIBS=$LIBS
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h.  */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h.  */
10196
10197 /* Override any GCC internal prototype to avoid an error.
10198    Use char because int might match the return type of a GCC
10199    builtin and then its argument prototype would still apply.  */
10200 #ifdef __cplusplus
10201 extern "C"
10202 #endif
10203 char opendir ();
10204 int
10205 main ()
10206 {
10207 return opendir ();
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 for ac_lib in '' x; do
10213   if test -z "$ac_lib"; then
10214     ac_res="none required"
10215   else
10216     ac_res=-l$ac_lib
10217     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10218   fi
10219   rm -f conftest.$ac_objext conftest$ac_exeext
10220 if { (ac_try="$ac_link"
10221 case "(($ac_try" in
10222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223   *) ac_try_echo=$ac_try;;
10224 esac
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226   (eval "$ac_link") 2>conftest.er1
10227   ac_status=$?
10228   grep -v '^ *+' conftest.er1 >conftest.err
10229   rm -f conftest.er1
10230   cat conftest.err >&5
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); } &&
10233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10234   { (case "(($ac_try" in
10235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236   *) ac_try_echo=$ac_try;;
10237 esac
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239   (eval "$ac_try") 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; } &&
10243          { ac_try='test -s conftest$ac_exeext'
10244   { (case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_try") 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; }; then
10253   ac_cv_search_opendir=$ac_res
10254 else
10255   echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258
10259 fi
10260
10261 rm -f core conftest.err conftest.$ac_objext \
10262       conftest$ac_exeext
10263   if test "${ac_cv_search_opendir+set}" = set; then
10264   break
10265 fi
10266 done
10267 if test "${ac_cv_search_opendir+set}" = set; then
10268   :
10269 else
10270   ac_cv_search_opendir=no
10271 fi
10272 rm conftest.$ac_ext
10273 LIBS=$ac_func_search_save_LIBS
10274 fi
10275 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10276 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10277 ac_res=$ac_cv_search_opendir
10278 if test "$ac_res" != no; then
10279   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10280
10281 fi
10282
10283 fi
10284
10285 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10286 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10287 if test "${ac_cv_header_mmap_anon+set}" = set; then
10288   echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290    ac_ext=c
10291 ac_cpp='$CPP $CPPFLAGS'
10292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10295
10296   cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h.  */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h.  */
10302 #include <sys/mman.h>
10303 #include <unistd.h>
10304 #include <fcntl.h>
10305 int
10306 main ()
10307 {
10308 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (ac_try="$ac_compile"
10315 case "(($ac_try" in
10316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317   *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320   (eval "$ac_compile") 2>conftest.er1
10321   ac_status=$?
10322   grep -v '^ *+' conftest.er1 >conftest.err
10323   rm -f conftest.er1
10324   cat conftest.err >&5
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } &&
10327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10328   { (case "(($ac_try" in
10329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330   *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333   (eval "$ac_try") 2>&5
10334   ac_status=$?
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); }; } &&
10337          { ac_try='test -s conftest.$ac_objext'
10338   { (case "(($ac_try" in
10339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340   *) ac_try_echo=$ac_try;;
10341 esac
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343   (eval "$ac_try") 2>&5
10344   ac_status=$?
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); }; }; then
10347   ac_cv_header_mmap_anon=yes
10348 else
10349   echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10351
10352         ac_cv_header_mmap_anon=no
10353 fi
10354
10355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356   ac_ext=c
10357 ac_cpp='$CPP $CPPFLAGS'
10358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10361
10362
10363 fi
10364 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10365 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10366 if test "$ac_cv_header_mmap_anon" = yes; then
10367
10368 cat >>confdefs.h <<\_ACEOF
10369 #define HAVE_MMAP_ANONYMOUS 1
10370 _ACEOF
10371
10372 fi
10373
10374 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10375 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10376 if test "${ac_cv_header_stat_broken+set}" = set; then
10377   echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379   cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385 #include <sys/types.h>
10386 #include <sys/stat.h>
10387
10388 #if defined S_ISBLK && defined S_IFDIR
10389 # if S_ISBLK (S_IFDIR)
10390 You lose.
10391 # endif
10392 #endif
10393
10394 #if defined S_ISBLK && defined S_IFCHR
10395 # if S_ISBLK (S_IFCHR)
10396 You lose.
10397 # endif
10398 #endif
10399
10400 #if defined S_ISLNK && defined S_IFREG
10401 # if S_ISLNK (S_IFREG)
10402 You lose.
10403 # endif
10404 #endif
10405
10406 #if defined S_ISSOCK && defined S_IFREG
10407 # if S_ISSOCK (S_IFREG)
10408 You lose.
10409 # endif
10410 #endif
10411
10412 _ACEOF
10413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10414   $EGREP "You lose" >/dev/null 2>&1; then
10415   ac_cv_header_stat_broken=yes
10416 else
10417   ac_cv_header_stat_broken=no
10418 fi
10419 rm -f conftest*
10420
10421 fi
10422 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10423 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10424 if test $ac_cv_header_stat_broken = yes; then
10425
10426 cat >>confdefs.h <<\_ACEOF
10427 #define STAT_MACROS_BROKEN 1
10428 _ACEOF
10429
10430 fi
10431
10432 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10433 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10434 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10435   echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437   cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h.  */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h.  */
10443 #include <sys/types.h>
10444 #include <sys/wait.h>
10445 #ifndef WEXITSTATUS
10446 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10447 #endif
10448 #ifndef WIFEXITED
10449 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10450 #endif
10451
10452 int
10453 main ()
10454 {
10455   int s;
10456   wait (&s);
10457   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext
10463 if { (ac_try="$ac_compile"
10464 case "(($ac_try" in
10465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466   *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469   (eval "$ac_compile") 2>conftest.er1
10470   ac_status=$?
10471   grep -v '^ *+' conftest.er1 >conftest.err
10472   rm -f conftest.er1
10473   cat conftest.err >&5
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); } &&
10476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10477   { (case "(($ac_try" in
10478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479   *) ac_try_echo=$ac_try;;
10480 esac
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482   (eval "$ac_try") 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; } &&
10486          { ac_try='test -s conftest.$ac_objext'
10487   { (case "(($ac_try" in
10488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489   *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492   (eval "$ac_try") 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); }; }; then
10496   ac_cv_header_sys_wait_h=yes
10497 else
10498   echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10500
10501         ac_cv_header_sys_wait_h=no
10502 fi
10503
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 fi
10506 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10507 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10508 if test $ac_cv_header_sys_wait_h = yes; then
10509
10510 cat >>confdefs.h <<\_ACEOF
10511 #define HAVE_SYS_WAIT_H 1
10512 _ACEOF
10513
10514 fi
10515
10516 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10517 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10518 if test "${ac_cv_header_time+set}" = set; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521   cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h.  */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h.  */
10527 #include <sys/types.h>
10528 #include <sys/time.h>
10529 #include <time.h>
10530
10531 int
10532 main ()
10533 {
10534 if ((struct tm *) 0)
10535 return 0;
10536   ;
10537   return 0;
10538 }
10539 _ACEOF
10540 rm -f conftest.$ac_objext
10541 if { (ac_try="$ac_compile"
10542 case "(($ac_try" in
10543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544   *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547   (eval "$ac_compile") 2>conftest.er1
10548   ac_status=$?
10549   grep -v '^ *+' conftest.er1 >conftest.err
10550   rm -f conftest.er1
10551   cat conftest.err >&5
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); } &&
10554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10555   { (case "(($ac_try" in
10556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557   *) ac_try_echo=$ac_try;;
10558 esac
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560   (eval "$ac_try") 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); }; } &&
10564          { ac_try='test -s conftest.$ac_objext'
10565   { (case "(($ac_try" in
10566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567   *) ac_try_echo=$ac_try;;
10568 esac
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570   (eval "$ac_try") 2>&5
10571   ac_status=$?
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); }; }; then
10574   ac_cv_header_time=yes
10575 else
10576   echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10578
10579         ac_cv_header_time=no
10580 fi
10581
10582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10583 fi
10584 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10585 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10586 if test $ac_cv_header_time = yes; then
10587
10588 cat >>confdefs.h <<\_ACEOF
10589 #define TIME_WITH_SYS_TIME 1
10590 _ACEOF
10591
10592 fi
10593
10594
10595
10596
10597
10598
10599
10600
10601 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
10602 do
10603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10605   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 fi
10610 ac_res=`eval echo '${'$as_ac_Header'}'`
10611                { echo "$as_me:$LINENO: result: $ac_res" >&5
10612 echo "${ECHO_T}$ac_res" >&6; }
10613 else
10614   # Is the header compilable?
10615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10616 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10624 #include <$ac_header>
10625 _ACEOF
10626 rm -f conftest.$ac_objext
10627 if { (ac_try="$ac_compile"
10628 case "(($ac_try" in
10629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630   *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633   (eval "$ac_compile") 2>conftest.er1
10634   ac_status=$?
10635   grep -v '^ *+' conftest.er1 >conftest.err
10636   rm -f conftest.er1
10637   cat conftest.err >&5
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); } &&
10640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10641   { (case "(($ac_try" in
10642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643   *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646   (eval "$ac_try") 2>&5
10647   ac_status=$?
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   (exit $ac_status); }; } &&
10650          { ac_try='test -s conftest.$ac_objext'
10651   { (case "(($ac_try" in
10652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653   *) ac_try_echo=$ac_try;;
10654 esac
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656   (eval "$ac_try") 2>&5
10657   ac_status=$?
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); }; }; then
10660   ac_header_compiler=yes
10661 else
10662   echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10664
10665         ac_header_compiler=no
10666 fi
10667
10668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10670 echo "${ECHO_T}$ac_header_compiler" >&6; }
10671
10672 # Is the header present?
10673 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10675 cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681 #include <$ac_header>
10682 _ACEOF
10683 if { (ac_try="$ac_cpp conftest.$ac_ext"
10684 case "(($ac_try" in
10685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686   *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10690   ac_status=$?
10691   grep -v '^ *+' conftest.er1 >conftest.err
10692   rm -f conftest.er1
10693   cat conftest.err >&5
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); } >/dev/null; then
10696   if test -s conftest.err; then
10697     ac_cpp_err=$ac_c_preproc_warn_flag
10698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10699   else
10700     ac_cpp_err=
10701   fi
10702 else
10703   ac_cpp_err=yes
10704 fi
10705 if test -z "$ac_cpp_err"; then
10706   ac_header_preproc=yes
10707 else
10708   echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711   ac_header_preproc=no
10712 fi
10713
10714 rm -f conftest.err conftest.$ac_ext
10715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10716 echo "${ECHO_T}$ac_header_preproc" >&6; }
10717
10718 # So?  What about this header?
10719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10720   yes:no: )
10721     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10725     ac_header_preproc=yes
10726     ;;
10727   no:yes:* )
10728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10730     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10731 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10732     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10734     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10735 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10738     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10740     ( cat <<\_ASBOX
10741 ## ------------------------------ ##
10742 ## Report this to bugs@yourdomain ##
10743 ## ------------------------------ ##
10744 _ASBOX
10745      ) | sed "s/^/$as_me: WARNING:     /" >&2
10746     ;;
10747 esac
10748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   eval "$as_ac_Header=\$ac_header_preproc"
10754 fi
10755 ac_res=`eval echo '${'$as_ac_Header'}'`
10756                { echo "$as_me:$LINENO: result: $ac_res" >&5
10757 echo "${ECHO_T}$ac_res" >&6; }
10758
10759 fi
10760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10761   cat >>confdefs.h <<_ACEOF
10762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10763 _ACEOF
10764
10765 fi
10766
10767 done
10768
10769
10770
10771
10772
10773
10774
10775 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
10776 do
10777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10779   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 fi
10784 ac_res=`eval echo '${'$as_ac_Header'}'`
10785                { echo "$as_me:$LINENO: result: $ac_res" >&5
10786 echo "${ECHO_T}$ac_res" >&6; }
10787 else
10788   # Is the header compilable?
10789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h.  */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h.  */
10797 $ac_includes_default
10798 #include <$ac_header>
10799 _ACEOF
10800 rm -f conftest.$ac_objext
10801 if { (ac_try="$ac_compile"
10802 case "(($ac_try" in
10803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804   *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807   (eval "$ac_compile") 2>conftest.er1
10808   ac_status=$?
10809   grep -v '^ *+' conftest.er1 >conftest.err
10810   rm -f conftest.er1
10811   cat conftest.err >&5
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } &&
10814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10815   { (case "(($ac_try" in
10816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817   *) ac_try_echo=$ac_try;;
10818 esac
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820   (eval "$ac_try") 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); }; } &&
10824          { ac_try='test -s conftest.$ac_objext'
10825   { (case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830   (eval "$ac_try") 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); }; }; then
10834   ac_header_compiler=yes
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839         ac_header_compiler=no
10840 fi
10841
10842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10844 echo "${ECHO_T}$ac_header_compiler" >&6; }
10845
10846 # Is the header present?
10847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h.  */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h.  */
10855 #include <$ac_header>
10856 _ACEOF
10857 if { (ac_try="$ac_cpp conftest.$ac_ext"
10858 case "(($ac_try" in
10859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860   *) ac_try_echo=$ac_try;;
10861 esac
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10864   ac_status=$?
10865   grep -v '^ *+' conftest.er1 >conftest.err
10866   rm -f conftest.er1
10867   cat conftest.err >&5
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); } >/dev/null; then
10870   if test -s conftest.err; then
10871     ac_cpp_err=$ac_c_preproc_warn_flag
10872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10873   else
10874     ac_cpp_err=
10875   fi
10876 else
10877   ac_cpp_err=yes
10878 fi
10879 if test -z "$ac_cpp_err"; then
10880   ac_header_preproc=yes
10881 else
10882   echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10884
10885   ac_header_preproc=no
10886 fi
10887
10888 rm -f conftest.err conftest.$ac_ext
10889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10890 echo "${ECHO_T}$ac_header_preproc" >&6; }
10891
10892 # So?  What about this header?
10893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10894   yes:no: )
10895     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10899     ac_header_preproc=yes
10900     ;;
10901   no:yes:* )
10902     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10904     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10905 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10906     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10908     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10909 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10912     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10914     ( cat <<\_ASBOX
10915 ## ------------------------------ ##
10916 ## Report this to bugs@yourdomain ##
10917 ## ------------------------------ ##
10918 _ASBOX
10919      ) | sed "s/^/$as_me: WARNING:     /" >&2
10920     ;;
10921 esac
10922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925   echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927   eval "$as_ac_Header=\$ac_header_preproc"
10928 fi
10929 ac_res=`eval echo '${'$as_ac_Header'}'`
10930                { echo "$as_me:$LINENO: result: $ac_res" >&5
10931 echo "${ECHO_T}$ac_res" >&6; }
10932
10933 fi
10934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10935   cat >>confdefs.h <<_ACEOF
10936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10937 _ACEOF
10938
10939 fi
10940
10941 done
10942
10943
10944
10945 for ac_header in utime.h windows.h
10946 do
10947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10949   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10952   echo $ECHO_N "(cached) $ECHO_C" >&6
10953 fi
10954 ac_res=`eval echo '${'$as_ac_Header'}'`
10955                { echo "$as_me:$LINENO: result: $ac_res" >&5
10956 echo "${ECHO_T}$ac_res" >&6; }
10957 else
10958   # Is the header compilable?
10959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10961 cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h.  */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h.  */
10967 $ac_includes_default
10968 #include <$ac_header>
10969 _ACEOF
10970 rm -f conftest.$ac_objext
10971 if { (ac_try="$ac_compile"
10972 case "(($ac_try" in
10973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974   *) ac_try_echo=$ac_try;;
10975 esac
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977   (eval "$ac_compile") 2>conftest.er1
10978   ac_status=$?
10979   grep -v '^ *+' conftest.er1 >conftest.err
10980   rm -f conftest.er1
10981   cat conftest.err >&5
10982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983   (exit $ac_status); } &&
10984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10985   { (case "(($ac_try" in
10986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987   *) ac_try_echo=$ac_try;;
10988 esac
10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990   (eval "$ac_try") 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; } &&
10994          { ac_try='test -s conftest.$ac_objext'
10995   { (case "(($ac_try" in
10996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997   *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000   (eval "$ac_try") 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; }; then
11004   ac_header_compiler=yes
11005 else
11006   echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11008
11009         ac_header_compiler=no
11010 fi
11011
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11014 echo "${ECHO_T}$ac_header_compiler" >&6; }
11015
11016 # Is the header present?
11017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h.  */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h.  */
11025 #include <$ac_header>
11026 _ACEOF
11027 if { (ac_try="$ac_cpp conftest.$ac_ext"
11028 case "(($ac_try" in
11029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030   *) ac_try_echo=$ac_try;;
11031 esac
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11034   ac_status=$?
11035   grep -v '^ *+' conftest.er1 >conftest.err
11036   rm -f conftest.er1
11037   cat conftest.err >&5
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } >/dev/null; then
11040   if test -s conftest.err; then
11041     ac_cpp_err=$ac_c_preproc_warn_flag
11042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11043   else
11044     ac_cpp_err=
11045   fi
11046 else
11047   ac_cpp_err=yes
11048 fi
11049 if test -z "$ac_cpp_err"; then
11050   ac_header_preproc=yes
11051 else
11052   echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055   ac_header_preproc=no
11056 fi
11057
11058 rm -f conftest.err conftest.$ac_ext
11059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11060 echo "${ECHO_T}$ac_header_preproc" >&6; }
11061
11062 # So?  What about this header?
11063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11064   yes:no: )
11065     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11069     ac_header_preproc=yes
11070     ;;
11071   no:yes:* )
11072     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11074     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11075 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11076     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11078     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11079 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11082     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11084     ( cat <<\_ASBOX
11085 ## ------------------------------ ##
11086 ## Report this to bugs@yourdomain ##
11087 ## ------------------------------ ##
11088 _ASBOX
11089      ) | sed "s/^/$as_me: WARNING:     /" >&2
11090     ;;
11091 esac
11092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095   echo $ECHO_N "(cached) $ECHO_C" >&6
11096 else
11097   eval "$as_ac_Header=\$ac_header_preproc"
11098 fi
11099 ac_res=`eval echo '${'$as_ac_Header'}'`
11100                { echo "$as_me:$LINENO: result: $ac_res" >&5
11101 echo "${ECHO_T}$ac_res" >&6; }
11102
11103 fi
11104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11105   cat >>confdefs.h <<_ACEOF
11106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11107 _ACEOF
11108
11109 fi
11110
11111 done
11112
11113
11114
11115
11116
11117
11118 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11119 do
11120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11122   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 fi
11127 ac_res=`eval echo '${'$as_ac_Header'}'`
11128                { echo "$as_me:$LINENO: result: $ac_res" >&5
11129 echo "${ECHO_T}$ac_res" >&6; }
11130 else
11131   # Is the header compilable?
11132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11134 cat >conftest.$ac_ext <<_ACEOF
11135 /* confdefs.h.  */
11136 _ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h.  */
11140 $ac_includes_default
11141 #include <$ac_header>
11142 _ACEOF
11143 rm -f conftest.$ac_objext
11144 if { (ac_try="$ac_compile"
11145 case "(($ac_try" in
11146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147   *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150   (eval "$ac_compile") 2>conftest.er1
11151   ac_status=$?
11152   grep -v '^ *+' conftest.er1 >conftest.err
11153   rm -f conftest.er1
11154   cat conftest.err >&5
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); } &&
11157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11158   { (case "(($ac_try" in
11159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160   *) ac_try_echo=$ac_try;;
11161 esac
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163   (eval "$ac_try") 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest.$ac_objext'
11168   { (case "(($ac_try" in
11169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170   *) ac_try_echo=$ac_try;;
11171 esac
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173   (eval "$ac_try") 2>&5
11174   ac_status=$?
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); }; }; then
11177   ac_header_compiler=yes
11178 else
11179   echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182         ac_header_compiler=no
11183 fi
11184
11185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11186 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11187 echo "${ECHO_T}$ac_header_compiler" >&6; }
11188
11189 # Is the header present?
11190 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11192 cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h.  */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h.  */
11198 #include <$ac_header>
11199 _ACEOF
11200 if { (ac_try="$ac_cpp conftest.$ac_ext"
11201 case "(($ac_try" in
11202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203   *) ac_try_echo=$ac_try;;
11204 esac
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11207   ac_status=$?
11208   grep -v '^ *+' conftest.er1 >conftest.err
11209   rm -f conftest.er1
11210   cat conftest.err >&5
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } >/dev/null; then
11213   if test -s conftest.err; then
11214     ac_cpp_err=$ac_c_preproc_warn_flag
11215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11216   else
11217     ac_cpp_err=
11218   fi
11219 else
11220   ac_cpp_err=yes
11221 fi
11222 if test -z "$ac_cpp_err"; then
11223   ac_header_preproc=yes
11224 else
11225   echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11227
11228   ac_header_preproc=no
11229 fi
11230
11231 rm -f conftest.err conftest.$ac_ext
11232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11233 echo "${ECHO_T}$ac_header_preproc" >&6; }
11234
11235 # So?  What about this header?
11236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11237   yes:no: )
11238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11242     ac_header_preproc=yes
11243     ;;
11244   no:yes:* )
11245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11257     ( cat <<\_ASBOX
11258 ## ------------------------------ ##
11259 ## Report this to bugs@yourdomain ##
11260 ## ------------------------------ ##
11261 _ASBOX
11262      ) | sed "s/^/$as_me: WARNING:     /" >&2
11263     ;;
11264 esac
11265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   eval "$as_ac_Header=\$ac_header_preproc"
11271 fi
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273                { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11275
11276 fi
11277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11278   cat >>confdefs.h <<_ACEOF
11279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11280 _ACEOF
11281
11282 fi
11283
11284 done
11285
11286
11287
11288
11289
11290 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
11291 do
11292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11294   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 fi
11299 ac_res=`eval echo '${'$as_ac_Header'}'`
11300                { echo "$as_me:$LINENO: result: $ac_res" >&5
11301 echo "${ECHO_T}$ac_res" >&6; }
11302 else
11303   # Is the header compilable?
11304 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312 $ac_includes_default
11313 #include <$ac_header>
11314 _ACEOF
11315 rm -f conftest.$ac_objext
11316 if { (ac_try="$ac_compile"
11317 case "(($ac_try" in
11318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319   *) ac_try_echo=$ac_try;;
11320 esac
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322   (eval "$ac_compile") 2>conftest.er1
11323   ac_status=$?
11324   grep -v '^ *+' conftest.er1 >conftest.err
11325   rm -f conftest.er1
11326   cat conftest.err >&5
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); } &&
11329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11330   { (case "(($ac_try" in
11331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332   *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335   (eval "$ac_try") 2>&5
11336   ac_status=$?
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); }; } &&
11339          { ac_try='test -s conftest.$ac_objext'
11340   { (case "(($ac_try" in
11341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342   *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345   (eval "$ac_try") 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; }; then
11349   ac_header_compiler=yes
11350 else
11351   echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354         ac_header_compiler=no
11355 fi
11356
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11359 echo "${ECHO_T}$ac_header_compiler" >&6; }
11360
11361 # Is the header present?
11362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370 #include <$ac_header>
11371 _ACEOF
11372 if { (ac_try="$ac_cpp conftest.$ac_ext"
11373 case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11379   ac_status=$?
11380   grep -v '^ *+' conftest.er1 >conftest.err
11381   rm -f conftest.er1
11382   cat conftest.err >&5
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } >/dev/null; then
11385   if test -s conftest.err; then
11386     ac_cpp_err=$ac_c_preproc_warn_flag
11387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11388   else
11389     ac_cpp_err=
11390   fi
11391 else
11392   ac_cpp_err=yes
11393 fi
11394 if test -z "$ac_cpp_err"; then
11395   ac_header_preproc=yes
11396 else
11397   echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11399
11400   ac_header_preproc=no
11401 fi
11402
11403 rm -f conftest.err conftest.$ac_ext
11404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11405 echo "${ECHO_T}$ac_header_preproc" >&6; }
11406
11407 # So?  What about this header?
11408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11409   yes:no: )
11410     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11414     ac_header_preproc=yes
11415     ;;
11416   no:yes:* )
11417     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11419     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11420 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11421     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11424 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11429     ( cat <<\_ASBOX
11430 ## ------------------------------ ##
11431 ## Report this to bugs@yourdomain ##
11432 ## ------------------------------ ##
11433 _ASBOX
11434      ) | sed "s/^/$as_me: WARNING:     /" >&2
11435     ;;
11436 esac
11437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440   echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442   eval "$as_ac_Header=\$ac_header_preproc"
11443 fi
11444 ac_res=`eval echo '${'$as_ac_Header'}'`
11445                { echo "$as_me:$LINENO: result: $ac_res" >&5
11446 echo "${ECHO_T}$ac_res" >&6; }
11447
11448 fi
11449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11450   cat >>confdefs.h <<_ACEOF
11451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11452 _ACEOF
11453
11454 fi
11455
11456 done
11457
11458
11459 for ac_header in valgrind/valgrind.h
11460 do
11461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11463   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466   echo $ECHO_N "(cached) $ECHO_C" >&6
11467 fi
11468 ac_res=`eval echo '${'$as_ac_Header'}'`
11469                { echo "$as_me:$LINENO: result: $ac_res" >&5
11470 echo "${ECHO_T}$ac_res" >&6; }
11471 else
11472   # Is the header compilable?
11473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11475 cat >conftest.$ac_ext <<_ACEOF
11476 /* confdefs.h.  */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h.  */
11481 $ac_includes_default
11482 #include <$ac_header>
11483 _ACEOF
11484 rm -f conftest.$ac_objext
11485 if { (ac_try="$ac_compile"
11486 case "(($ac_try" in
11487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488   *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491   (eval "$ac_compile") 2>conftest.er1
11492   ac_status=$?
11493   grep -v '^ *+' conftest.er1 >conftest.err
11494   rm -f conftest.er1
11495   cat conftest.err >&5
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } &&
11498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499   { (case "(($ac_try" in
11500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501   *) ac_try_echo=$ac_try;;
11502 esac
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504   (eval "$ac_try") 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); }; } &&
11508          { ac_try='test -s conftest.$ac_objext'
11509   { (case "(($ac_try" in
11510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511   *) ac_try_echo=$ac_try;;
11512 esac
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514   (eval "$ac_try") 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; }; then
11518   ac_header_compiler=yes
11519 else
11520   echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523         ac_header_compiler=no
11524 fi
11525
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11528 echo "${ECHO_T}$ac_header_compiler" >&6; }
11529
11530 # Is the header present?
11531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539 #include <$ac_header>
11540 _ACEOF
11541 if { (ac_try="$ac_cpp conftest.$ac_ext"
11542 case "(($ac_try" in
11543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544   *) ac_try_echo=$ac_try;;
11545 esac
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11548   ac_status=$?
11549   grep -v '^ *+' conftest.er1 >conftest.err
11550   rm -f conftest.er1
11551   cat conftest.err >&5
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); } >/dev/null; then
11554   if test -s conftest.err; then
11555     ac_cpp_err=$ac_c_preproc_warn_flag
11556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11557   else
11558     ac_cpp_err=
11559   fi
11560 else
11561   ac_cpp_err=yes
11562 fi
11563 if test -z "$ac_cpp_err"; then
11564   ac_header_preproc=yes
11565 else
11566   echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569   ac_header_preproc=no
11570 fi
11571
11572 rm -f conftest.err conftest.$ac_ext
11573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11574 echo "${ECHO_T}$ac_header_preproc" >&6; }
11575
11576 # So?  What about this header?
11577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11578   yes:no: )
11579     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11583     ac_header_preproc=yes
11584     ;;
11585   no:yes:* )
11586     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11588     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11589 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11590     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11592     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11593 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11596     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11598     ( cat <<\_ASBOX
11599 ## ------------------------------ ##
11600 ## Report this to bugs@yourdomain ##
11601 ## ------------------------------ ##
11602 _ASBOX
11603      ) | sed "s/^/$as_me: WARNING:     /" >&2
11604     ;;
11605 esac
11606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11609   echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611   eval "$as_ac_Header=\$ac_header_preproc"
11612 fi
11613 ac_res=`eval echo '${'$as_ac_Header'}'`
11614                { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11616
11617 fi
11618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11619   cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11621 _ACEOF
11622
11623 fi
11624
11625 done
11626
11627
11628 for ac_header in fenv.h
11629 do
11630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635   echo $ECHO_N "(cached) $ECHO_C" >&6
11636 fi
11637 ac_res=`eval echo '${'$as_ac_Header'}'`
11638                { echo "$as_me:$LINENO: result: $ac_res" >&5
11639 echo "${ECHO_T}$ac_res" >&6; }
11640 else
11641   # Is the header compilable?
11642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11644 cat >conftest.$ac_ext <<_ACEOF
11645 /* confdefs.h.  */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h.  */
11650 $ac_includes_default
11651 #include <$ac_header>
11652 _ACEOF
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_compile") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } &&
11667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668   { (case "(($ac_try" in
11669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670   *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673   (eval "$ac_try") 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; } &&
11677          { ac_try='test -s conftest.$ac_objext'
11678   { (case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_try") 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; }; then
11687   ac_header_compiler=yes
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692         ac_header_compiler=no
11693 fi
11694
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11697 echo "${ECHO_T}$ac_header_compiler" >&6; }
11698
11699 # Is the header present?
11700 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h.  */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h.  */
11708 #include <$ac_header>
11709 _ACEOF
11710 if { (ac_try="$ac_cpp conftest.$ac_ext"
11711 case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11717   ac_status=$?
11718   grep -v '^ *+' conftest.er1 >conftest.err
11719   rm -f conftest.er1
11720   cat conftest.err >&5
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } >/dev/null; then
11723   if test -s conftest.err; then
11724     ac_cpp_err=$ac_c_preproc_warn_flag
11725     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11726   else
11727     ac_cpp_err=
11728   fi
11729 else
11730   ac_cpp_err=yes
11731 fi
11732 if test -z "$ac_cpp_err"; then
11733   ac_header_preproc=yes
11734 else
11735   echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11737
11738   ac_header_preproc=no
11739 fi
11740
11741 rm -f conftest.err conftest.$ac_ext
11742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6; }
11744
11745 # So?  What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747   yes:no: )
11748     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752     ac_header_preproc=yes
11753     ;;
11754   no:yes:* )
11755     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11759     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11762 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11767     ( cat <<\_ASBOX
11768 ## ------------------------------ ##
11769 ## Report this to bugs@yourdomain ##
11770 ## ------------------------------ ##
11771 _ASBOX
11772      ) | sed "s/^/$as_me: WARNING:     /" >&2
11773     ;;
11774 esac
11775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778   echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780   eval "$as_ac_Header=\$ac_header_preproc"
11781 fi
11782 ac_res=`eval echo '${'$as_ac_Header'}'`
11783                { echo "$as_me:$LINENO: result: $ac_res" >&5
11784 echo "${ECHO_T}$ac_res" >&6; }
11785
11786 fi
11787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11788   cat >>confdefs.h <<_ACEOF
11789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11790 _ACEOF
11791
11792 fi
11793
11794 done
11795
11796 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
11797
11798 for ac_header in pthread.h
11799 do
11800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11802   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 fi
11807 ac_res=`eval echo '${'$as_ac_Header'}'`
11808                { echo "$as_me:$LINENO: result: $ac_res" >&5
11809 echo "${ECHO_T}$ac_res" >&6; }
11810 else
11811   # Is the header compilable?
11812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h.  */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h.  */
11820 $ac_includes_default
11821 #include <$ac_header>
11822 _ACEOF
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_compile") 2>conftest.er1
11831   ac_status=$?
11832   grep -v '^ *+' conftest.er1 >conftest.err
11833   rm -f conftest.er1
11834   cat conftest.err >&5
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } &&
11837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11838   { (case "(($ac_try" in
11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840   *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843   (eval "$ac_try") 2>&5
11844   ac_status=$?
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); }; } &&
11847          { ac_try='test -s conftest.$ac_objext'
11848   { (case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853   (eval "$ac_try") 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; }; then
11857   ac_header_compiler=yes
11858 else
11859   echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862         ac_header_compiler=no
11863 fi
11864
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11868
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 #include <$ac_header>
11879 _ACEOF
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } >/dev/null; then
11893   if test -s conftest.err; then
11894     ac_cpp_err=$ac_c_preproc_warn_flag
11895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11896   else
11897     ac_cpp_err=
11898   fi
11899 else
11900   ac_cpp_err=yes
11901 fi
11902 if test -z "$ac_cpp_err"; then
11903   ac_header_preproc=yes
11904 else
11905   echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11907
11908   ac_header_preproc=no
11909 fi
11910
11911 rm -f conftest.err conftest.$ac_ext
11912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913 echo "${ECHO_T}$ac_header_preproc" >&6; }
11914
11915 # So?  What about this header?
11916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11917   yes:no: )
11918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922     ac_header_preproc=yes
11923     ;;
11924   no:yes:* )
11925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11937     ( cat <<\_ASBOX
11938 ## ------------------------------ ##
11939 ## Report this to bugs@yourdomain ##
11940 ## ------------------------------ ##
11941 _ASBOX
11942      ) | sed "s/^/$as_me: WARNING:     /" >&2
11943     ;;
11944 esac
11945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950   eval "$as_ac_Header=\$ac_header_preproc"
11951 fi
11952 ac_res=`eval echo '${'$as_ac_Header'}'`
11953                { echo "$as_me:$LINENO: result: $ac_res" >&5
11954 echo "${ECHO_T}$ac_res" >&6; }
11955
11956 fi
11957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11958   cat >>confdefs.h <<_ACEOF
11959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11960 _ACEOF
11961  HAVE_PTHREAD=1
11962
11963 else
11964   HAVE_PTHREAD=0
11965
11966 fi
11967
11968 done
11969
11970 else
11971   HAVE_PTHREAD=0
11972
11973 fi
11974 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
11975
11976 for ac_header in zlib.h
11977 do
11978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11983   echo $ECHO_N "(cached) $ECHO_C" >&6
11984 fi
11985 ac_res=`eval echo '${'$as_ac_Header'}'`
11986                { echo "$as_me:$LINENO: result: $ac_res" >&5
11987 echo "${ECHO_T}$ac_res" >&6; }
11988 else
11989   # Is the header compilable?
11990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h.  */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h.  */
11998 $ac_includes_default
11999 #include <$ac_header>
12000 _ACEOF
12001 rm -f conftest.$ac_objext
12002 if { (ac_try="$ac_compile"
12003 case "(($ac_try" in
12004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005   *) ac_try_echo=$ac_try;;
12006 esac
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008   (eval "$ac_compile") 2>conftest.er1
12009   ac_status=$?
12010   grep -v '^ *+' conftest.er1 >conftest.err
12011   rm -f conftest.er1
12012   cat conftest.err >&5
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); } &&
12015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12016   { (case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021   (eval "$ac_try") 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; } &&
12025          { ac_try='test -s conftest.$ac_objext'
12026   { (case "(($ac_try" in
12027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028   *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031   (eval "$ac_try") 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; }; then
12035   ac_header_compiler=yes
12036 else
12037   echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040         ac_header_compiler=no
12041 fi
12042
12043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12045 echo "${ECHO_T}$ac_header_compiler" >&6; }
12046
12047 # Is the header present?
12048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056 #include <$ac_header>
12057 _ACEOF
12058 if { (ac_try="$ac_cpp conftest.$ac_ext"
12059 case "(($ac_try" in
12060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061   *) ac_try_echo=$ac_try;;
12062 esac
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12065   ac_status=$?
12066   grep -v '^ *+' conftest.er1 >conftest.err
12067   rm -f conftest.er1
12068   cat conftest.err >&5
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); } >/dev/null; then
12071   if test -s conftest.err; then
12072     ac_cpp_err=$ac_c_preproc_warn_flag
12073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12074   else
12075     ac_cpp_err=
12076   fi
12077 else
12078   ac_cpp_err=yes
12079 fi
12080 if test -z "$ac_cpp_err"; then
12081   ac_header_preproc=yes
12082 else
12083   echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12085
12086   ac_header_preproc=no
12087 fi
12088
12089 rm -f conftest.err conftest.$ac_ext
12090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12091 echo "${ECHO_T}$ac_header_preproc" >&6; }
12092
12093 # So?  What about this header?
12094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12095   yes:no: )
12096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12100     ac_header_preproc=yes
12101     ;;
12102   no:yes:* )
12103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12115     ( cat <<\_ASBOX
12116 ## ------------------------------ ##
12117 ## Report this to bugs@yourdomain ##
12118 ## ------------------------------ ##
12119 _ASBOX
12120      ) | sed "s/^/$as_me: WARNING:     /" >&2
12121     ;;
12122 esac
12123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12126   echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128   eval "$as_ac_Header=\$ac_header_preproc"
12129 fi
12130 ac_res=`eval echo '${'$as_ac_Header'}'`
12131                { echo "$as_me:$LINENO: result: $ac_res" >&5
12132 echo "${ECHO_T}$ac_res" >&6; }
12133
12134 fi
12135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12136   cat >>confdefs.h <<_ACEOF
12137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12138 _ACEOF
12139  HAVE_LIBZ=1
12140
12141 else
12142   HAVE_LIBZ=0
12143
12144 fi
12145
12146 done
12147
12148 else
12149   HAVE_LIBZ=0
12150
12151 fi
12152
12153 if test "$llvm_cv_enable_libffi" = "yes" ; then
12154
12155
12156 for ac_header in ffi.h ffi/ffi.h
12157 do
12158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 fi
12165 ac_res=`eval echo '${'$as_ac_Header'}'`
12166                { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12168 else
12169   # Is the header compilable?
12170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h.  */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h.  */
12178 $ac_includes_default
12179 #include <$ac_header>
12180 _ACEOF
12181 rm -f conftest.$ac_objext
12182 if { (ac_try="$ac_compile"
12183 case "(($ac_try" in
12184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185   *) ac_try_echo=$ac_try;;
12186 esac
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188   (eval "$ac_compile") 2>conftest.er1
12189   ac_status=$?
12190   grep -v '^ *+' conftest.er1 >conftest.err
12191   rm -f conftest.er1
12192   cat conftest.err >&5
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); } &&
12195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12196   { (case "(($ac_try" in
12197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198   *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201   (eval "$ac_try") 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; } &&
12205          { ac_try='test -s conftest.$ac_objext'
12206   { (case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211   (eval "$ac_try") 2>&5
12212   ac_status=$?
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); }; }; then
12215   ac_header_compiler=yes
12216 else
12217   echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12219
12220         ac_header_compiler=no
12221 fi
12222
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12225 echo "${ECHO_T}$ac_header_compiler" >&6; }
12226
12227 # Is the header present?
12228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236 #include <$ac_header>
12237 _ACEOF
12238 if { (ac_try="$ac_cpp conftest.$ac_ext"
12239 case "(($ac_try" in
12240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241   *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } >/dev/null; then
12251   if test -s conftest.err; then
12252     ac_cpp_err=$ac_c_preproc_warn_flag
12253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12254   else
12255     ac_cpp_err=
12256   fi
12257 else
12258   ac_cpp_err=yes
12259 fi
12260 if test -z "$ac_cpp_err"; then
12261   ac_header_preproc=yes
12262 else
12263   echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266   ac_header_preproc=no
12267 fi
12268
12269 rm -f conftest.err conftest.$ac_ext
12270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271 echo "${ECHO_T}$ac_header_preproc" >&6; }
12272
12273 # So?  What about this header?
12274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12275   yes:no: )
12276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12280     ac_header_preproc=yes
12281     ;;
12282   no:yes:* )
12283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12295     ( cat <<\_ASBOX
12296 ## ------------------------------ ##
12297 ## Report this to bugs@yourdomain ##
12298 ## ------------------------------ ##
12299 _ASBOX
12300      ) | sed "s/^/$as_me: WARNING:     /" >&2
12301     ;;
12302 esac
12303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12306   echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308   eval "$as_ac_Header=\$ac_header_preproc"
12309 fi
12310 ac_res=`eval echo '${'$as_ac_Header'}'`
12311                { echo "$as_me:$LINENO: result: $ac_res" >&5
12312 echo "${ECHO_T}$ac_res" >&6; }
12313
12314 fi
12315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12316   cat >>confdefs.h <<_ACEOF
12317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12318 _ACEOF
12319
12320 fi
12321
12322 done
12323
12324 fi
12325
12326
12327 for ac_header in CrashReporterClient.h
12328 do
12329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12331   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334   echo $ECHO_N "(cached) $ECHO_C" >&6
12335 fi
12336 ac_res=`eval echo '${'$as_ac_Header'}'`
12337                { echo "$as_me:$LINENO: result: $ac_res" >&5
12338 echo "${ECHO_T}$ac_res" >&6; }
12339 else
12340   # Is the header compilable?
12341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349 $ac_includes_default
12350 #include <$ac_header>
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356   *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359   (eval "$ac_compile") 2>conftest.er1
12360   ac_status=$?
12361   grep -v '^ *+' conftest.er1 >conftest.err
12362   rm -f conftest.er1
12363   cat conftest.err >&5
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } &&
12366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367   { (case "(($ac_try" in
12368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369   *) ac_try_echo=$ac_try;;
12370 esac
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372   (eval "$ac_try") 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; } &&
12376          { ac_try='test -s conftest.$ac_objext'
12377   { (case "(($ac_try" in
12378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379   *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382   (eval "$ac_try") 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); }; }; then
12386   ac_header_compiler=yes
12387 else
12388   echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12390
12391         ac_header_compiler=no
12392 fi
12393
12394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396 echo "${ECHO_T}$ac_header_compiler" >&6; }
12397
12398 # Is the header present?
12399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h.  */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h.  */
12407 #include <$ac_header>
12408 _ACEOF
12409 if { (ac_try="$ac_cpp conftest.$ac_ext"
12410 case "(($ac_try" in
12411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412   *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } >/dev/null; then
12422   if test -s conftest.err; then
12423     ac_cpp_err=$ac_c_preproc_warn_flag
12424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12425   else
12426     ac_cpp_err=
12427   fi
12428 else
12429   ac_cpp_err=yes
12430 fi
12431 if test -z "$ac_cpp_err"; then
12432   ac_header_preproc=yes
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437   ac_header_preproc=no
12438 fi
12439
12440 rm -f conftest.err conftest.$ac_ext
12441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442 echo "${ECHO_T}$ac_header_preproc" >&6; }
12443
12444 # So?  What about this header?
12445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446   yes:no: )
12447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451     ac_header_preproc=yes
12452     ;;
12453   no:yes:* )
12454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12457 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12458     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12461 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466     ( cat <<\_ASBOX
12467 ## ------------------------------ ##
12468 ## Report this to bugs@yourdomain ##
12469 ## ------------------------------ ##
12470 _ASBOX
12471      ) | sed "s/^/$as_me: WARNING:     /" >&2
12472     ;;
12473 esac
12474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477   echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479   eval "$as_ac_Header=\$ac_header_preproc"
12480 fi
12481 ac_res=`eval echo '${'$as_ac_Header'}'`
12482                { echo "$as_me:$LINENO: result: $ac_res" >&5
12483 echo "${ECHO_T}$ac_res" >&6; }
12484
12485 fi
12486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487   cat >>confdefs.h <<_ACEOF
12488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489 _ACEOF
12490
12491 fi
12492
12493 done
12494
12495
12496 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
12497 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
12498 cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h.  */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h.  */
12504 extern const char *__crashreporter_info__;
12505       int main() {
12506         __crashreporter_info__ = "test";
12507         return 0;
12508       }
12509
12510 _ACEOF
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512 if { (ac_try="$ac_link"
12513 case "(($ac_try" in
12514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515   *) ac_try_echo=$ac_try;;
12516 esac
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518   (eval "$ac_link") 2>conftest.er1
12519   ac_status=$?
12520   grep -v '^ *+' conftest.er1 >conftest.err
12521   rm -f conftest.er1
12522   cat conftest.err >&5
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); } &&
12525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12526   { (case "(($ac_try" in
12527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528   *) ac_try_echo=$ac_try;;
12529 esac
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531   (eval "$ac_try") 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; } &&
12535          { ac_try='test -s conftest$ac_exeext'
12536   { (case "(($ac_try" in
12537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538   *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541   (eval "$ac_try") 2>&5
12542   ac_status=$?
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); }; }; then
12545   { echo "$as_me:$LINENO: result: yes" >&5
12546 echo "${ECHO_T}yes" >&6; }
12547
12548 cat >>confdefs.h <<\_ACEOF
12549 #define HAVE_CRASHREPORTER_INFO 1
12550 _ACEOF
12551
12552 else
12553   echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556         { echo "$as_me:$LINENO: result: no" >&5
12557 echo "${ECHO_T}no" >&6; }
12558
12559 cat >>confdefs.h <<\_ACEOF
12560 #define HAVE_CRASHREPORTER_INFO 0
12561 _ACEOF
12562
12563 fi
12564
12565 rm -f core conftest.err conftest.$ac_objext \
12566       conftest$ac_exeext conftest.$ac_ext
12567
12568
12569
12570
12571   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
12572 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
12573 if test "${ac_cv_huge_val_sanity+set}" = set; then
12574   echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576
12577     ac_ext=cpp
12578 ac_cpp='$CXXCPP $CPPFLAGS'
12579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12582
12583     ac_save_CXXFLAGS=$CXXFLAGS
12584     CXXFLAGS="$CXXFLAGS -pedantic"
12585     if test "$cross_compiling" = yes; then
12586   ac_cv_huge_val_sanity=yes
12587 else
12588   cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h.  */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h.  */
12594 #include <math.h>
12595 int
12596 main ()
12597 {
12598 double x = HUGE_VAL; return x != x;
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607   *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610   (eval "$ac_link") 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12614   { (case "(($ac_try" in
12615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616   *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619   (eval "$ac_try") 2>&5
12620   ac_status=$?
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); }; }; then
12623   ac_cv_huge_val_sanity=yes
12624 else
12625   echo "$as_me: program exited with status $ac_status" >&5
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629 ( exit $ac_status )
12630 ac_cv_huge_val_sanity=no
12631 fi
12632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12633 fi
12634
12635
12636     CXXFLAGS=$ac_save_CXXFLAGS
12637     ac_ext=c
12638 ac_cpp='$CPP $CPPFLAGS'
12639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12642
12643
12644 fi
12645 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
12646 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
12647   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
12648
12649
12650 { echo "$as_me:$LINENO: checking for pid_t" >&5
12651 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
12652 if test "${ac_cv_type_pid_t+set}" = set; then
12653   echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655   cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h.  */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h.  */
12661 $ac_includes_default
12662 typedef pid_t ac__type_new_;
12663 int
12664 main ()
12665 {
12666 if ((ac__type_new_ *) 0)
12667   return 0;
12668 if (sizeof (ac__type_new_))
12669   return 0;
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 rm -f conftest.$ac_objext
12675 if { (ac_try="$ac_compile"
12676 case "(($ac_try" in
12677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678   *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681   (eval "$ac_compile") 2>conftest.er1
12682   ac_status=$?
12683   grep -v '^ *+' conftest.er1 >conftest.err
12684   rm -f conftest.er1
12685   cat conftest.err >&5
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); } &&
12688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12689   { (case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694   (eval "$ac_try") 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; } &&
12698          { ac_try='test -s conftest.$ac_objext'
12699   { (case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_try") 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; }; then
12708   ac_cv_type_pid_t=yes
12709 else
12710   echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12712
12713         ac_cv_type_pid_t=no
12714 fi
12715
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 fi
12718 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12719 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
12720 if test $ac_cv_type_pid_t = yes; then
12721   :
12722 else
12723
12724 cat >>confdefs.h <<_ACEOF
12725 #define pid_t int
12726 _ACEOF
12727
12728 fi
12729
12730 { echo "$as_me:$LINENO: checking for size_t" >&5
12731 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
12732 if test "${ac_cv_type_size_t+set}" = set; then
12733   echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735   cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h.  */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h.  */
12741 $ac_includes_default
12742 typedef size_t ac__type_new_;
12743 int
12744 main ()
12745 {
12746 if ((ac__type_new_ *) 0)
12747   return 0;
12748 if (sizeof (ac__type_new_))
12749   return 0;
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext
12755 if { (ac_try="$ac_compile"
12756 case "(($ac_try" in
12757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758   *) ac_try_echo=$ac_try;;
12759 esac
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761   (eval "$ac_compile") 2>conftest.er1
12762   ac_status=$?
12763   grep -v '^ *+' conftest.er1 >conftest.err
12764   rm -f conftest.er1
12765   cat conftest.err >&5
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); } &&
12768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12769   { (case "(($ac_try" in
12770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771   *) ac_try_echo=$ac_try;;
12772 esac
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774   (eval "$ac_try") 2>&5
12775   ac_status=$?
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); }; } &&
12778          { ac_try='test -s conftest.$ac_objext'
12779   { (case "(($ac_try" in
12780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781   *) ac_try_echo=$ac_try;;
12782 esac
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784   (eval "$ac_try") 2>&5
12785   ac_status=$?
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); }; }; then
12788   ac_cv_type_size_t=yes
12789 else
12790   echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12792
12793         ac_cv_type_size_t=no
12794 fi
12795
12796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12797 fi
12798 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12799 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
12800 if test $ac_cv_type_size_t = yes; then
12801   :
12802 else
12803
12804 cat >>confdefs.h <<_ACEOF
12805 #define size_t unsigned int
12806 _ACEOF
12807
12808 fi
12809
12810
12811 cat >>confdefs.h <<_ACEOF
12812 #define RETSIGTYPE void
12813 _ACEOF
12814
12815 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12816 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12817 if test "${ac_cv_struct_tm+set}" = set; then
12818   echo $ECHO_N "(cached) $ECHO_C" >&6
12819 else
12820   cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826 #include <sys/types.h>
12827 #include <time.h>
12828
12829 int
12830 main ()
12831 {
12832 struct tm *tp; tp->tm_sec;
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 rm -f conftest.$ac_objext
12838 if { (ac_try="$ac_compile"
12839 case "(($ac_try" in
12840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841   *) ac_try_echo=$ac_try;;
12842 esac
12843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12844   (eval "$ac_compile") 2>conftest.er1
12845   ac_status=$?
12846   grep -v '^ *+' conftest.er1 >conftest.err
12847   rm -f conftest.er1
12848   cat conftest.err >&5
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); } &&
12851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12852   { (case "(($ac_try" in
12853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854   *) ac_try_echo=$ac_try;;
12855 esac
12856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857   (eval "$ac_try") 2>&5
12858   ac_status=$?
12859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860   (exit $ac_status); }; } &&
12861          { ac_try='test -s conftest.$ac_objext'
12862   { (case "(($ac_try" in
12863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864   *) ac_try_echo=$ac_try;;
12865 esac
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867   (eval "$ac_try") 2>&5
12868   ac_status=$?
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); }; }; then
12871   ac_cv_struct_tm=time.h
12872 else
12873   echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876         ac_cv_struct_tm=sys/time.h
12877 fi
12878
12879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880 fi
12881 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12882 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12883 if test $ac_cv_struct_tm = sys/time.h; then
12884
12885 cat >>confdefs.h <<\_ACEOF
12886 #define TM_IN_SYS_TIME 1
12887 _ACEOF
12888
12889 fi
12890
12891 { echo "$as_me:$LINENO: checking for int64_t" >&5
12892 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
12893 if test "${ac_cv_type_int64_t+set}" = set; then
12894   echo $ECHO_N "(cached) $ECHO_C" >&6
12895 else
12896   cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902 $ac_includes_default
12903 typedef int64_t ac__type_new_;
12904 int
12905 main ()
12906 {
12907 if ((ac__type_new_ *) 0)
12908   return 0;
12909 if (sizeof (ac__type_new_))
12910   return 0;
12911   ;
12912   return 0;
12913 }
12914 _ACEOF
12915 rm -f conftest.$ac_objext
12916 if { (ac_try="$ac_compile"
12917 case "(($ac_try" in
12918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919   *) ac_try_echo=$ac_try;;
12920 esac
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922   (eval "$ac_compile") 2>conftest.er1
12923   ac_status=$?
12924   grep -v '^ *+' conftest.er1 >conftest.err
12925   rm -f conftest.er1
12926   cat conftest.err >&5
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); } &&
12929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12930   { (case "(($ac_try" in
12931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932   *) ac_try_echo=$ac_try;;
12933 esac
12934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12935   (eval "$ac_try") 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); }; } &&
12939          { ac_try='test -s conftest.$ac_objext'
12940   { (case "(($ac_try" in
12941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942   *) ac_try_echo=$ac_try;;
12943 esac
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945   (eval "$ac_try") 2>&5
12946   ac_status=$?
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); }; }; then
12949   ac_cv_type_int64_t=yes
12950 else
12951   echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12953
12954         ac_cv_type_int64_t=no
12955 fi
12956
12957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12958 fi
12959 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
12960 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
12961 if test $ac_cv_type_int64_t = yes; then
12962
12963 cat >>confdefs.h <<_ACEOF
12964 #define HAVE_INT64_T 1
12965 _ACEOF
12966
12967
12968 else
12969   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
12970 echo "$as_me: error: Type int64_t required but not found" >&2;}
12971    { (exit 1); exit 1; }; }
12972 fi
12973
12974 { echo "$as_me:$LINENO: checking for uint64_t" >&5
12975 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
12976 if test "${ac_cv_type_uint64_t+set}" = set; then
12977   echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979   cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985 $ac_includes_default
12986 typedef uint64_t ac__type_new_;
12987 int
12988 main ()
12989 {
12990 if ((ac__type_new_ *) 0)
12991   return 0;
12992 if (sizeof (ac__type_new_))
12993   return 0;
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext
12999 if { (ac_try="$ac_compile"
13000 case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005   (eval "$ac_compile") 2>conftest.er1
13006   ac_status=$?
13007   grep -v '^ *+' conftest.er1 >conftest.err
13008   rm -f conftest.er1
13009   cat conftest.err >&5
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); } &&
13012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13013   { (case "(($ac_try" in
13014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015   *) ac_try_echo=$ac_try;;
13016 esac
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018   (eval "$ac_try") 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); }; } &&
13022          { ac_try='test -s conftest.$ac_objext'
13023   { (case "(($ac_try" in
13024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025   *) ac_try_echo=$ac_try;;
13026 esac
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028   (eval "$ac_try") 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); }; }; then
13032   ac_cv_type_uint64_t=yes
13033 else
13034   echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13036
13037         ac_cv_type_uint64_t=no
13038 fi
13039
13040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041 fi
13042 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13043 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13044 if test $ac_cv_type_uint64_t = yes; then
13045
13046 cat >>confdefs.h <<_ACEOF
13047 #define HAVE_UINT64_T 1
13048 _ACEOF
13049
13050
13051 else
13052   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13053 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13054 if test "${ac_cv_type_u_int64_t+set}" = set; then
13055   echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057   cat >conftest.$ac_ext <<_ACEOF
13058 /* confdefs.h.  */
13059 _ACEOF
13060 cat confdefs.h >>conftest.$ac_ext
13061 cat >>conftest.$ac_ext <<_ACEOF
13062 /* end confdefs.h.  */
13063 $ac_includes_default
13064 typedef u_int64_t ac__type_new_;
13065 int
13066 main ()
13067 {
13068 if ((ac__type_new_ *) 0)
13069   return 0;
13070 if (sizeof (ac__type_new_))
13071   return 0;
13072   ;
13073   return 0;
13074 }
13075 _ACEOF
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083   (eval "$ac_compile") 2>conftest.er1
13084   ac_status=$?
13085   grep -v '^ *+' conftest.er1 >conftest.err
13086   rm -f conftest.er1
13087   cat conftest.err >&5
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); } &&
13090          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13091   { (case "(($ac_try" in
13092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093   *) ac_try_echo=$ac_try;;
13094 esac
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096   (eval "$ac_try") 2>&5
13097   ac_status=$?
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); }; } &&
13100          { ac_try='test -s conftest.$ac_objext'
13101   { (case "(($ac_try" in
13102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103   *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106   (eval "$ac_try") 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }; then
13110   ac_cv_type_u_int64_t=yes
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115         ac_cv_type_u_int64_t=no
13116 fi
13117
13118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13119 fi
13120 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13121 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13122 if test $ac_cv_type_u_int64_t = yes; then
13123
13124 cat >>confdefs.h <<_ACEOF
13125 #define HAVE_U_INT64_T 1
13126 _ACEOF
13127
13128
13129 else
13130   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13131 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13132    { (exit 1); exit 1; }; }
13133 fi
13134
13135 fi
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
13147 do
13148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13152   echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154   cat >conftest.$ac_ext <<_ACEOF
13155 /* confdefs.h.  */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h.  */
13160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13162 #define $ac_func innocuous_$ac_func
13163
13164 /* System header to define __stub macros and hopefully few prototypes,
13165     which can conflict with char $ac_func (); below.
13166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13167     <limits.h> exists even on freestanding compilers.  */
13168
13169 #ifdef __STDC__
13170 # include <limits.h>
13171 #else
13172 # include <assert.h>
13173 #endif
13174
13175 #undef $ac_func
13176
13177 /* Override any GCC internal prototype to avoid an error.
13178    Use char because int might match the return type of a GCC
13179    builtin and then its argument prototype would still apply.  */
13180 #ifdef __cplusplus
13181 extern "C"
13182 #endif
13183 char $ac_func ();
13184 /* The GNU C library defines this for functions which it implements
13185     to always fail with ENOSYS.  Some functions are actually named
13186     something starting with __ and the normal name is an alias.  */
13187 #if defined __stub_$ac_func || defined __stub___$ac_func
13188 choke me
13189 #endif
13190
13191 int
13192 main ()
13193 {
13194 return $ac_func ();
13195   ;
13196   return 0;
13197 }
13198 _ACEOF
13199 rm -f conftest.$ac_objext conftest$ac_exeext
13200 if { (ac_try="$ac_link"
13201 case "(($ac_try" in
13202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203   *) ac_try_echo=$ac_try;;
13204 esac
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206   (eval "$ac_link") 2>conftest.er1
13207   ac_status=$?
13208   grep -v '^ *+' conftest.er1 >conftest.err
13209   rm -f conftest.er1
13210   cat conftest.err >&5
13211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212   (exit $ac_status); } &&
13213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13214   { (case "(($ac_try" in
13215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216   *) ac_try_echo=$ac_try;;
13217 esac
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219   (eval "$ac_try") 2>&5
13220   ac_status=$?
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); }; } &&
13223          { ac_try='test -s conftest$ac_exeext'
13224   { (case "(($ac_try" in
13225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226   *) ac_try_echo=$ac_try;;
13227 esac
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229   (eval "$ac_try") 2>&5
13230   ac_status=$?
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); }; }; then
13233   eval "$as_ac_var=yes"
13234 else
13235   echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238         eval "$as_ac_var=no"
13239 fi
13240
13241 rm -f core conftest.err conftest.$ac_objext \
13242       conftest$ac_exeext conftest.$ac_ext
13243 fi
13244 ac_res=`eval echo '${'$as_ac_var'}'`
13245                { echo "$as_me:$LINENO: result: $ac_res" >&5
13246 echo "${ECHO_T}$ac_res" >&6; }
13247 if test `eval echo '${'$as_ac_var'}'` = yes; then
13248   cat >>confdefs.h <<_ACEOF
13249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13250 _ACEOF
13251
13252 fi
13253 done
13254
13255
13256
13257
13258
13259 for ac_func in powf fmodf strtof round
13260 do
13261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13265   echo $ECHO_N "(cached) $ECHO_C" >&6
13266 else
13267   cat >conftest.$ac_ext <<_ACEOF
13268 /* confdefs.h.  */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h.  */
13273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13275 #define $ac_func innocuous_$ac_func
13276
13277 /* System header to define __stub macros and hopefully few prototypes,
13278     which can conflict with char $ac_func (); below.
13279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13280     <limits.h> exists even on freestanding compilers.  */
13281
13282 #ifdef __STDC__
13283 # include <limits.h>
13284 #else
13285 # include <assert.h>
13286 #endif
13287
13288 #undef $ac_func
13289
13290 /* Override any GCC internal prototype to avoid an error.
13291    Use char because int might match the return type of a GCC
13292    builtin and then its argument prototype would still apply.  */
13293 #ifdef __cplusplus
13294 extern "C"
13295 #endif
13296 char $ac_func ();
13297 /* The GNU C library defines this for functions which it implements
13298     to always fail with ENOSYS.  Some functions are actually named
13299     something starting with __ and the normal name is an alias.  */
13300 #if defined __stub_$ac_func || defined __stub___$ac_func
13301 choke me
13302 #endif
13303
13304 int
13305 main ()
13306 {
13307 return $ac_func ();
13308   ;
13309   return 0;
13310 }
13311 _ACEOF
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_link") 2>conftest.er1
13320   ac_status=$?
13321   grep -v '^ *+' conftest.er1 >conftest.err
13322   rm -f conftest.er1
13323   cat conftest.err >&5
13324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325   (exit $ac_status); } &&
13326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327   { (case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332   (eval "$ac_try") 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; } &&
13336          { ac_try='test -s conftest$ac_exeext'
13337   { (case "(($ac_try" in
13338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339   *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342   (eval "$ac_try") 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; }; then
13346   eval "$as_ac_var=yes"
13347 else
13348   echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13350
13351         eval "$as_ac_var=no"
13352 fi
13353
13354 rm -f core conftest.err conftest.$ac_objext \
13355       conftest$ac_exeext conftest.$ac_ext
13356 fi
13357 ac_res=`eval echo '${'$as_ac_var'}'`
13358                { echo "$as_me:$LINENO: result: $ac_res" >&5
13359 echo "${ECHO_T}$ac_res" >&6; }
13360 if test `eval echo '${'$as_ac_var'}'` = yes; then
13361   cat >>confdefs.h <<_ACEOF
13362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13363 _ACEOF
13364
13365 fi
13366 done
13367
13368
13369
13370
13371
13372
13373 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
13374 do
13375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13379   echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381   cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h.  */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h.  */
13387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13389 #define $ac_func innocuous_$ac_func
13390
13391 /* System header to define __stub macros and hopefully few prototypes,
13392     which can conflict with char $ac_func (); below.
13393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13394     <limits.h> exists even on freestanding compilers.  */
13395
13396 #ifdef __STDC__
13397 # include <limits.h>
13398 #else
13399 # include <assert.h>
13400 #endif
13401
13402 #undef $ac_func
13403
13404 /* Override any GCC internal prototype to avoid an error.
13405    Use char because int might match the return type of a GCC
13406    builtin and then its argument prototype would still apply.  */
13407 #ifdef __cplusplus
13408 extern "C"
13409 #endif
13410 char $ac_func ();
13411 /* The GNU C library defines this for functions which it implements
13412     to always fail with ENOSYS.  Some functions are actually named
13413     something starting with __ and the normal name is an alias.  */
13414 #if defined __stub_$ac_func || defined __stub___$ac_func
13415 choke me
13416 #endif
13417
13418 int
13419 main ()
13420 {
13421 return $ac_func ();
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (ac_try="$ac_link"
13428 case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_link") 2>conftest.er1
13434   ac_status=$?
13435   grep -v '^ *+' conftest.er1 >conftest.err
13436   rm -f conftest.er1
13437   cat conftest.err >&5
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } &&
13440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13441   { (case "(($ac_try" in
13442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443   *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446   (eval "$ac_try") 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; } &&
13450          { ac_try='test -s conftest$ac_exeext'
13451   { (case "(($ac_try" in
13452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453   *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456   (eval "$ac_try") 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; }; then
13460   eval "$as_ac_var=yes"
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465         eval "$as_ac_var=no"
13466 fi
13467
13468 rm -f core conftest.err conftest.$ac_objext \
13469       conftest$ac_exeext conftest.$ac_ext
13470 fi
13471 ac_res=`eval echo '${'$as_ac_var'}'`
13472                { echo "$as_me:$LINENO: result: $ac_res" >&5
13473 echo "${ECHO_T}$ac_res" >&6; }
13474 if test `eval echo '${'$as_ac_var'}'` = yes; then
13475   cat >>confdefs.h <<_ACEOF
13476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13477 _ACEOF
13478
13479 fi
13480 done
13481
13482
13483
13484
13485 for ac_func in isatty mkdtemp mkstemp
13486 do
13487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13491   echo $ECHO_N "(cached) $ECHO_C" >&6
13492 else
13493   cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h.  */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h.  */
13499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13501 #define $ac_func innocuous_$ac_func
13502
13503 /* System header to define __stub macros and hopefully few prototypes,
13504     which can conflict with char $ac_func (); below.
13505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13506     <limits.h> exists even on freestanding compilers.  */
13507
13508 #ifdef __STDC__
13509 # include <limits.h>
13510 #else
13511 # include <assert.h>
13512 #endif
13513
13514 #undef $ac_func
13515
13516 /* Override any GCC internal prototype to avoid an error.
13517    Use char because int might match the return type of a GCC
13518    builtin and then its argument prototype would still apply.  */
13519 #ifdef __cplusplus
13520 extern "C"
13521 #endif
13522 char $ac_func ();
13523 /* The GNU C library defines this for functions which it implements
13524     to always fail with ENOSYS.  Some functions are actually named
13525     something starting with __ and the normal name is an alias.  */
13526 #if defined __stub_$ac_func || defined __stub___$ac_func
13527 choke me
13528 #endif
13529
13530 int
13531 main ()
13532 {
13533 return $ac_func ();
13534   ;
13535   return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (ac_try="$ac_link"
13540 case "(($ac_try" in
13541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542   *) ac_try_echo=$ac_try;;
13543 esac
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545   (eval "$ac_link") 2>conftest.er1
13546   ac_status=$?
13547   grep -v '^ *+' conftest.er1 >conftest.err
13548   rm -f conftest.er1
13549   cat conftest.err >&5
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); } &&
13552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13553   { (case "(($ac_try" in
13554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555   *) ac_try_echo=$ac_try;;
13556 esac
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558   (eval "$ac_try") 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; } &&
13562          { ac_try='test -s conftest$ac_exeext'
13563   { (case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568   (eval "$ac_try") 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); }; }; then
13572   eval "$as_ac_var=yes"
13573 else
13574   echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13576
13577         eval "$as_ac_var=no"
13578 fi
13579
13580 rm -f core conftest.err conftest.$ac_objext \
13581       conftest$ac_exeext conftest.$ac_ext
13582 fi
13583 ac_res=`eval echo '${'$as_ac_var'}'`
13584                { echo "$as_me:$LINENO: result: $ac_res" >&5
13585 echo "${ECHO_T}$ac_res" >&6; }
13586 if test `eval echo '${'$as_ac_var'}'` = yes; then
13587   cat >>confdefs.h <<_ACEOF
13588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13589 _ACEOF
13590
13591 fi
13592 done
13593
13594
13595
13596
13597
13598
13599
13600 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
13601 do
13602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13606   echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608   cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h.  */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h.  */
13614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13616 #define $ac_func innocuous_$ac_func
13617
13618 /* System header to define __stub macros and hopefully few prototypes,
13619     which can conflict with char $ac_func (); below.
13620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13621     <limits.h> exists even on freestanding compilers.  */
13622
13623 #ifdef __STDC__
13624 # include <limits.h>
13625 #else
13626 # include <assert.h>
13627 #endif
13628
13629 #undef $ac_func
13630
13631 /* Override any GCC internal prototype to avoid an error.
13632    Use char because int might match the return type of a GCC
13633    builtin and then its argument prototype would still apply.  */
13634 #ifdef __cplusplus
13635 extern "C"
13636 #endif
13637 char $ac_func ();
13638 /* The GNU C library defines this for functions which it implements
13639     to always fail with ENOSYS.  Some functions are actually named
13640     something starting with __ and the normal name is an alias.  */
13641 #if defined __stub_$ac_func || defined __stub___$ac_func
13642 choke me
13643 #endif
13644
13645 int
13646 main ()
13647 {
13648 return $ac_func ();
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 rm -f conftest.$ac_objext conftest$ac_exeext
13654 if { (ac_try="$ac_link"
13655 case "(($ac_try" in
13656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657   *) ac_try_echo=$ac_try;;
13658 esac
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660   (eval "$ac_link") 2>conftest.er1
13661   ac_status=$?
13662   grep -v '^ *+' conftest.er1 >conftest.err
13663   rm -f conftest.er1
13664   cat conftest.err >&5
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); } &&
13667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13668   { (case "(($ac_try" in
13669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670   *) ac_try_echo=$ac_try;;
13671 esac
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673   (eval "$ac_try") 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; } &&
13677          { ac_try='test -s conftest$ac_exeext'
13678   { (case "(($ac_try" in
13679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680   *) ac_try_echo=$ac_try;;
13681 esac
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683   (eval "$ac_try") 2>&5
13684   ac_status=$?
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); }; }; then
13687   eval "$as_ac_var=yes"
13688 else
13689   echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13691
13692         eval "$as_ac_var=no"
13693 fi
13694
13695 rm -f core conftest.err conftest.$ac_objext \
13696       conftest$ac_exeext conftest.$ac_ext
13697 fi
13698 ac_res=`eval echo '${'$as_ac_var'}'`
13699                { echo "$as_me:$LINENO: result: $ac_res" >&5
13700 echo "${ECHO_T}$ac_res" >&6; }
13701 if test `eval echo '${'$as_ac_var'}'` = yes; then
13702   cat >>confdefs.h <<_ACEOF
13703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13704 _ACEOF
13705
13706 fi
13707 done
13708
13709
13710
13711
13712 for ac_func in strerror strerror_r setenv
13713 do
13714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13718   echo $ECHO_N "(cached) $ECHO_C" >&6
13719 else
13720   cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h.  */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h.  */
13726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13728 #define $ac_func innocuous_$ac_func
13729
13730 /* System header to define __stub macros and hopefully few prototypes,
13731     which can conflict with char $ac_func (); below.
13732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13733     <limits.h> exists even on freestanding compilers.  */
13734
13735 #ifdef __STDC__
13736 # include <limits.h>
13737 #else
13738 # include <assert.h>
13739 #endif
13740
13741 #undef $ac_func
13742
13743 /* Override any GCC internal prototype to avoid an error.
13744    Use char because int might match the return type of a GCC
13745    builtin and then its argument prototype would still apply.  */
13746 #ifdef __cplusplus
13747 extern "C"
13748 #endif
13749 char $ac_func ();
13750 /* The GNU C library defines this for functions which it implements
13751     to always fail with ENOSYS.  Some functions are actually named
13752     something starting with __ and the normal name is an alias.  */
13753 #if defined __stub_$ac_func || defined __stub___$ac_func
13754 choke me
13755 #endif
13756
13757 int
13758 main ()
13759 {
13760 return $ac_func ();
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (ac_try="$ac_link"
13767 case "(($ac_try" in
13768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769   *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772   (eval "$ac_link") 2>conftest.er1
13773   ac_status=$?
13774   grep -v '^ *+' conftest.er1 >conftest.err
13775   rm -f conftest.er1
13776   cat conftest.err >&5
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); } &&
13779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780   { (case "(($ac_try" in
13781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782   *) ac_try_echo=$ac_try;;
13783 esac
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785   (eval "$ac_try") 2>&5
13786   ac_status=$?
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); }; } &&
13789          { ac_try='test -s conftest$ac_exeext'
13790   { (case "(($ac_try" in
13791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792   *) ac_try_echo=$ac_try;;
13793 esac
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795   (eval "$ac_try") 2>&5
13796   ac_status=$?
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); }; }; then
13799   eval "$as_ac_var=yes"
13800 else
13801   echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13803
13804         eval "$as_ac_var=no"
13805 fi
13806
13807 rm -f core conftest.err conftest.$ac_objext \
13808       conftest$ac_exeext conftest.$ac_ext
13809 fi
13810 ac_res=`eval echo '${'$as_ac_var'}'`
13811                { echo "$as_me:$LINENO: result: $ac_res" >&5
13812 echo "${ECHO_T}$ac_res" >&6; }
13813 if test `eval echo '${'$as_ac_var'}'` = yes; then
13814   cat >>confdefs.h <<_ACEOF
13815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13816 _ACEOF
13817
13818 fi
13819 done
13820
13821
13822
13823
13824
13825 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
13826 do
13827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13831   echo $ECHO_N "(cached) $ECHO_C" >&6
13832 else
13833   cat >conftest.$ac_ext <<_ACEOF
13834 /* confdefs.h.  */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h.  */
13839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13841 #define $ac_func innocuous_$ac_func
13842
13843 /* System header to define __stub macros and hopefully few prototypes,
13844     which can conflict with char $ac_func (); below.
13845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13846     <limits.h> exists even on freestanding compilers.  */
13847
13848 #ifdef __STDC__
13849 # include <limits.h>
13850 #else
13851 # include <assert.h>
13852 #endif
13853
13854 #undef $ac_func
13855
13856 /* Override any GCC internal prototype to avoid an error.
13857    Use char because int might match the return type of a GCC
13858    builtin and then its argument prototype would still apply.  */
13859 #ifdef __cplusplus
13860 extern "C"
13861 #endif
13862 char $ac_func ();
13863 /* The GNU C library defines this for functions which it implements
13864     to always fail with ENOSYS.  Some functions are actually named
13865     something starting with __ and the normal name is an alias.  */
13866 #if defined __stub_$ac_func || defined __stub___$ac_func
13867 choke me
13868 #endif
13869
13870 int
13871 main ()
13872 {
13873 return $ac_func ();
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (ac_try="$ac_link"
13880 case "(($ac_try" in
13881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882   *) ac_try_echo=$ac_try;;
13883 esac
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885   (eval "$ac_link") 2>conftest.er1
13886   ac_status=$?
13887   grep -v '^ *+' conftest.er1 >conftest.err
13888   rm -f conftest.er1
13889   cat conftest.err >&5
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } &&
13892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13893   { (case "(($ac_try" in
13894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895   *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898   (eval "$ac_try") 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; } &&
13902          { ac_try='test -s conftest$ac_exeext'
13903   { (case "(($ac_try" in
13904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905   *) ac_try_echo=$ac_try;;
13906 esac
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908   (eval "$ac_try") 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }; }; then
13912   eval "$as_ac_var=yes"
13913 else
13914   echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13916
13917         eval "$as_ac_var=no"
13918 fi
13919
13920 rm -f core conftest.err conftest.$ac_objext \
13921       conftest$ac_exeext conftest.$ac_ext
13922 fi
13923 ac_res=`eval echo '${'$as_ac_var'}'`
13924                { echo "$as_me:$LINENO: result: $ac_res" >&5
13925 echo "${ECHO_T}$ac_res" >&6; }
13926 if test `eval echo '${'$as_ac_var'}'` = yes; then
13927   cat >>confdefs.h <<_ACEOF
13928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13929 _ACEOF
13930
13931 fi
13932 done
13933
13934
13935
13936
13937
13938
13939 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
13940 do
13941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13945   echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947   cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h.  */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h.  */
13953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13955 #define $ac_func innocuous_$ac_func
13956
13957 /* System header to define __stub macros and hopefully few prototypes,
13958     which can conflict with char $ac_func (); below.
13959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13960     <limits.h> exists even on freestanding compilers.  */
13961
13962 #ifdef __STDC__
13963 # include <limits.h>
13964 #else
13965 # include <assert.h>
13966 #endif
13967
13968 #undef $ac_func
13969
13970 /* Override any GCC internal prototype to avoid an error.
13971    Use char because int might match the return type of a GCC
13972    builtin and then its argument prototype would still apply.  */
13973 #ifdef __cplusplus
13974 extern "C"
13975 #endif
13976 char $ac_func ();
13977 /* The GNU C library defines this for functions which it implements
13978     to always fail with ENOSYS.  Some functions are actually named
13979     something starting with __ and the normal name is an alias.  */
13980 #if defined __stub_$ac_func || defined __stub___$ac_func
13981 choke me
13982 #endif
13983
13984 int
13985 main ()
13986 {
13987 return $ac_func ();
13988   ;
13989   return 0;
13990 }
13991 _ACEOF
13992 rm -f conftest.$ac_objext conftest$ac_exeext
13993 if { (ac_try="$ac_link"
13994 case "(($ac_try" in
13995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996   *) ac_try_echo=$ac_try;;
13997 esac
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999   (eval "$ac_link") 2>conftest.er1
14000   ac_status=$?
14001   grep -v '^ *+' conftest.er1 >conftest.err
14002   rm -f conftest.er1
14003   cat conftest.err >&5
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); } &&
14006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14007   { (case "(($ac_try" in
14008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009   *) ac_try_echo=$ac_try;;
14010 esac
14011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012   (eval "$ac_try") 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); }; } &&
14016          { ac_try='test -s conftest$ac_exeext'
14017   { (case "(($ac_try" in
14018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019   *) ac_try_echo=$ac_try;;
14020 esac
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022   (eval "$ac_try") 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); }; }; then
14026   eval "$as_ac_var=yes"
14027 else
14028   echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14030
14031         eval "$as_ac_var=no"
14032 fi
14033
14034 rm -f core conftest.err conftest.$ac_objext \
14035       conftest$ac_exeext conftest.$ac_ext
14036 fi
14037 ac_res=`eval echo '${'$as_ac_var'}'`
14038                { echo "$as_me:$LINENO: result: $ac_res" >&5
14039 echo "${ECHO_T}$ac_res" >&6; }
14040 if test `eval echo '${'$as_ac_var'}'` = yes; then
14041   cat >>confdefs.h <<_ACEOF
14042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14043 _ACEOF
14044
14045 fi
14046 done
14047
14048 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14049 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14050 if test "${llvm_cv_c_printf_a+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   ac_ext=c
14054 ac_cpp='$CPP $CPPFLAGS'
14055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14058
14059  if test "$cross_compiling" = yes; then
14060   llvmac_cv_c_printf_a=no
14061 else
14062   cat >conftest.$ac_ext <<_ACEOF
14063
14064   /* confdefs.h.  */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h.  */
14069
14070 #include <stdio.h>
14071 #include <stdlib.h>
14072
14073 int
14074 main ()
14075 {
14076
14077 volatile double A, B;
14078 char Buffer[100];
14079 A = 1;
14080 A /= 10.0;
14081 sprintf(Buffer, "%a", A);
14082 B = atof(Buffer);
14083 if (A != B)
14084   return (1);
14085 if (A != 0x1.999999999999ap-4)
14086   return (1);
14087 return (0);
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest$ac_exeext
14093 if { (ac_try="$ac_link"
14094 case "(($ac_try" in
14095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096   *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099   (eval "$ac_link") 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14103   { (case "(($ac_try" in
14104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105   *) ac_try_echo=$ac_try;;
14106 esac
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108   (eval "$ac_try") 2>&5
14109   ac_status=$?
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); }; }; then
14112   llvm_cv_c_printf_a=yes
14113 else
14114   echo "$as_me: program exited with status $ac_status" >&5
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14117
14118 ( exit $ac_status )
14119 llvmac_cv_c_printf_a=no
14120 fi
14121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14122 fi
14123
14124
14125  ac_ext=c
14126 ac_cpp='$CPP $CPPFLAGS'
14127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14130
14131 fi
14132 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14133 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14134  if test "$llvm_cv_c_printf_a" = "yes"; then
14135
14136 cat >>confdefs.h <<\_ACEOF
14137 #define HAVE_PRINTF_A 1
14138 _ACEOF
14139
14140  fi
14141
14142
14143 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14144 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14145 if test "${ac_cv_func_rand48+set}" = set; then
14146   echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14148   ac_ext=cpp
14149 ac_cpp='$CXXCPP $CPPFLAGS'
14150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14153
14154    cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h.  */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h.  */
14160 #include <stdlib.h>
14161 int
14162 main ()
14163 {
14164 srand48(0);lrand48();drand48();
14165   ;
14166   return 0;
14167 }
14168 _ACEOF
14169 rm -f conftest.$ac_objext
14170 if { (ac_try="$ac_compile"
14171 case "(($ac_try" in
14172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173   *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176   (eval "$ac_compile") 2>conftest.er1
14177   ac_status=$?
14178   grep -v '^ *+' conftest.er1 >conftest.err
14179   rm -f conftest.er1
14180   cat conftest.err >&5
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } &&
14183          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14184   { (case "(($ac_try" in
14185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186   *) ac_try_echo=$ac_try;;
14187 esac
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189   (eval "$ac_try") 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); }; } &&
14193          { ac_try='test -s conftest.$ac_objext'
14194   { (case "(($ac_try" in
14195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196   *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199   (eval "$ac_try") 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203   ac_cv_func_rand48=yes
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208         ac_cv_func_rand48=no
14209 fi
14210
14211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14212   ac_ext=c
14213 ac_cpp='$CPP $CPPFLAGS'
14214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14217
14218 fi
14219 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
14220 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
14221
14222 if test "$ac_cv_func_rand48" = "yes" ; then
14223
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_RAND48 1
14226 _ACEOF
14227
14228 fi
14229
14230
14231 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
14232 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
14233 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
14234   echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236   cat >conftest.$ac_ext <<_ACEOF
14237 /* confdefs.h.  */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h.  */
14242 $ac_includes_default
14243 int
14244 main ()
14245 {
14246 #ifndef strerror_s
14247   char *p = (char *) strerror_s;
14248   return !p;
14249 #endif
14250
14251   ;
14252   return 0;
14253 }
14254 _ACEOF
14255 rm -f conftest.$ac_objext
14256 if { (ac_try="$ac_compile"
14257 case "(($ac_try" in
14258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259   *) ac_try_echo=$ac_try;;
14260 esac
14261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14262   (eval "$ac_compile") 2>conftest.er1
14263   ac_status=$?
14264   grep -v '^ *+' conftest.er1 >conftest.err
14265   rm -f conftest.er1
14266   cat conftest.err >&5
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); } &&
14269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14270   { (case "(($ac_try" in
14271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272   *) ac_try_echo=$ac_try;;
14273 esac
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275   (eval "$ac_try") 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; } &&
14279          { ac_try='test -s conftest.$ac_objext'
14280   { (case "(($ac_try" in
14281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282   *) ac_try_echo=$ac_try;;
14283 esac
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285   (eval "$ac_try") 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }; then
14289   ac_cv_have_decl_strerror_s=yes
14290 else
14291   echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294         ac_cv_have_decl_strerror_s=no
14295 fi
14296
14297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298 fi
14299 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
14300 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
14301 if test $ac_cv_have_decl_strerror_s = yes; then
14302
14303 cat >>confdefs.h <<_ACEOF
14304 #define HAVE_DECL_STRERROR_S 1
14305 _ACEOF
14306
14307
14308 else
14309   cat >>confdefs.h <<_ACEOF
14310 #define HAVE_DECL_STRERROR_S 0
14311 _ACEOF
14312
14313
14314 fi
14315
14316
14317
14318 if test "$llvm_cv_os_type" = "MingW" ; then
14319   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
14320 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
14321 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
14322   echo $ECHO_N "(cached) $ECHO_C" >&6
14323 else
14324   ac_check_lib_save_LIBS=$LIBS
14325 LIBS="-lgcc  $LIBS"
14326 cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h.  */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h.  */
14332
14333 /* Override any GCC internal prototype to avoid an error.
14334    Use char because int might match the return type of a GCC
14335    builtin and then its argument prototype would still apply.  */
14336 #ifdef __cplusplus
14337 extern "C"
14338 #endif
14339 char _alloca ();
14340 int
14341 main ()
14342 {
14343 return _alloca ();
14344   ;
14345   return 0;
14346 }
14347 _ACEOF
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (ac_try="$ac_link"
14350 case "(($ac_try" in
14351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352   *) ac_try_echo=$ac_try;;
14353 esac
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355   (eval "$ac_link") 2>conftest.er1
14356   ac_status=$?
14357   grep -v '^ *+' conftest.er1 >conftest.err
14358   rm -f conftest.er1
14359   cat conftest.err >&5
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); } &&
14362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14363   { (case "(($ac_try" in
14364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365   *) ac_try_echo=$ac_try;;
14366 esac
14367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368   (eval "$ac_try") 2>&5
14369   ac_status=$?
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); }; } &&
14372          { ac_try='test -s conftest$ac_exeext'
14373   { (case "(($ac_try" in
14374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375   *) ac_try_echo=$ac_try;;
14376 esac
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378   (eval "$ac_try") 2>&5
14379   ac_status=$?
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); }; }; then
14382   ac_cv_lib_gcc__alloca=yes
14383 else
14384   echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14386
14387         ac_cv_lib_gcc__alloca=no
14388 fi
14389
14390 rm -f core conftest.err conftest.$ac_objext \
14391       conftest$ac_exeext conftest.$ac_ext
14392 LIBS=$ac_check_lib_save_LIBS
14393 fi
14394 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
14395 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
14396 if test $ac_cv_lib_gcc__alloca = yes; then
14397
14398 cat >>confdefs.h <<\_ACEOF
14399 #define HAVE__ALLOCA 1
14400 _ACEOF
14401
14402 fi
14403
14404   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
14405 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
14406 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
14407   echo $ECHO_N "(cached) $ECHO_C" >&6
14408 else
14409   ac_check_lib_save_LIBS=$LIBS
14410 LIBS="-lgcc  $LIBS"
14411 cat >conftest.$ac_ext <<_ACEOF
14412 /* confdefs.h.  */
14413 _ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h.  */
14417
14418 /* Override any GCC internal prototype to avoid an error.
14419    Use char because int might match the return type of a GCC
14420    builtin and then its argument prototype would still apply.  */
14421 #ifdef __cplusplus
14422 extern "C"
14423 #endif
14424 char __alloca ();
14425 int
14426 main ()
14427 {
14428 return __alloca ();
14429   ;
14430   return 0;
14431 }
14432 _ACEOF
14433 rm -f conftest.$ac_objext conftest$ac_exeext
14434 if { (ac_try="$ac_link"
14435 case "(($ac_try" in
14436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437   *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440   (eval "$ac_link") 2>conftest.er1
14441   ac_status=$?
14442   grep -v '^ *+' conftest.er1 >conftest.err
14443   rm -f conftest.er1
14444   cat conftest.err >&5
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } &&
14447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14448   { (case "(($ac_try" in
14449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450   *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453   (eval "$ac_try") 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); }; } &&
14457          { ac_try='test -s conftest$ac_exeext'
14458   { (case "(($ac_try" in
14459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460   *) ac_try_echo=$ac_try;;
14461 esac
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463   (eval "$ac_try") 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); }; }; then
14467   ac_cv_lib_gcc___alloca=yes
14468 else
14469   echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472         ac_cv_lib_gcc___alloca=no
14473 fi
14474
14475 rm -f core conftest.err conftest.$ac_objext \
14476       conftest$ac_exeext conftest.$ac_ext
14477 LIBS=$ac_check_lib_save_LIBS
14478 fi
14479 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
14480 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
14481 if test $ac_cv_lib_gcc___alloca = yes; then
14482
14483 cat >>confdefs.h <<\_ACEOF
14484 #define HAVE___ALLOCA 1
14485 _ACEOF
14486
14487 fi
14488
14489   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
14490 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
14491 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494   ac_check_lib_save_LIBS=$LIBS
14495 LIBS="-lgcc  $LIBS"
14496 cat >conftest.$ac_ext <<_ACEOF
14497 /* confdefs.h.  */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h.  */
14502
14503 /* Override any GCC internal prototype to avoid an error.
14504    Use char because int might match the return type of a GCC
14505    builtin and then its argument prototype would still apply.  */
14506 #ifdef __cplusplus
14507 extern "C"
14508 #endif
14509 char __chkstk ();
14510 int
14511 main ()
14512 {
14513 return __chkstk ();
14514   ;
14515   return 0;
14516 }
14517 _ACEOF
14518 rm -f conftest.$ac_objext conftest$ac_exeext
14519 if { (ac_try="$ac_link"
14520 case "(($ac_try" in
14521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522   *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525   (eval "$ac_link") 2>conftest.er1
14526   ac_status=$?
14527   grep -v '^ *+' conftest.er1 >conftest.err
14528   rm -f conftest.er1
14529   cat conftest.err >&5
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14533   { (case "(($ac_try" in
14534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535   *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538   (eval "$ac_try") 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); }; } &&
14542          { ac_try='test -s conftest$ac_exeext'
14543   { (case "(($ac_try" in
14544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545   *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548   (eval "$ac_try") 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; }; then
14552   ac_cv_lib_gcc___chkstk=yes
14553 else
14554   echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14556
14557         ac_cv_lib_gcc___chkstk=no
14558 fi
14559
14560 rm -f core conftest.err conftest.$ac_objext \
14561       conftest$ac_exeext conftest.$ac_ext
14562 LIBS=$ac_check_lib_save_LIBS
14563 fi
14564 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
14565 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
14566 if test $ac_cv_lib_gcc___chkstk = yes; then
14567
14568 cat >>confdefs.h <<\_ACEOF
14569 #define HAVE___CHKSTK 1
14570 _ACEOF
14571
14572 fi
14573
14574   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
14575 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
14576 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579   ac_check_lib_save_LIBS=$LIBS
14580 LIBS="-lgcc  $LIBS"
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h.  */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h.  */
14587
14588 /* Override any GCC internal prototype to avoid an error.
14589    Use char because int might match the return type of a GCC
14590    builtin and then its argument prototype would still apply.  */
14591 #ifdef __cplusplus
14592 extern "C"
14593 #endif
14594 char ___chkstk ();
14595 int
14596 main ()
14597 {
14598 return ___chkstk ();
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (ac_try="$ac_link"
14605 case "(($ac_try" in
14606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607   *) ac_try_echo=$ac_try;;
14608 esac
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610   (eval "$ac_link") 2>conftest.er1
14611   ac_status=$?
14612   grep -v '^ *+' conftest.er1 >conftest.err
14613   rm -f conftest.er1
14614   cat conftest.err >&5
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } &&
14617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14618   { (case "(($ac_try" in
14619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620   *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623   (eval "$ac_try") 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); }; } &&
14627          { ac_try='test -s conftest$ac_exeext'
14628   { (case "(($ac_try" in
14629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630   *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633   (eval "$ac_try") 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; }; then
14637   ac_cv_lib_gcc____chkstk=yes
14638 else
14639   echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642         ac_cv_lib_gcc____chkstk=no
14643 fi
14644
14645 rm -f core conftest.err conftest.$ac_objext \
14646       conftest$ac_exeext conftest.$ac_ext
14647 LIBS=$ac_check_lib_save_LIBS
14648 fi
14649 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
14650 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
14651 if test $ac_cv_lib_gcc____chkstk = yes; then
14652
14653 cat >>confdefs.h <<\_ACEOF
14654 #define HAVE____CHKSTK 1
14655 _ACEOF
14656
14657 fi
14658
14659
14660   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
14661 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
14662 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
14663   echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665   ac_check_lib_save_LIBS=$LIBS
14666 LIBS="-lgcc  $LIBS"
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h.  */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h.  */
14673
14674 /* Override any GCC internal prototype to avoid an error.
14675    Use char because int might match the return type of a GCC
14676    builtin and then its argument prototype would still apply.  */
14677 #ifdef __cplusplus
14678 extern "C"
14679 #endif
14680 char __ashldi3 ();
14681 int
14682 main ()
14683 {
14684 return __ashldi3 ();
14685   ;
14686   return 0;
14687 }
14688 _ACEOF
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (ac_try="$ac_link"
14691 case "(($ac_try" in
14692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693   *) ac_try_echo=$ac_try;;
14694 esac
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696   (eval "$ac_link") 2>conftest.er1
14697   ac_status=$?
14698   grep -v '^ *+' conftest.er1 >conftest.err
14699   rm -f conftest.er1
14700   cat conftest.err >&5
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); } &&
14703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14704   { (case "(($ac_try" in
14705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706   *) ac_try_echo=$ac_try;;
14707 esac
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709   (eval "$ac_try") 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); }; } &&
14713          { ac_try='test -s conftest$ac_exeext'
14714   { (case "(($ac_try" in
14715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716   *) ac_try_echo=$ac_try;;
14717 esac
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719   (eval "$ac_try") 2>&5
14720   ac_status=$?
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); }; }; then
14723   ac_cv_lib_gcc___ashldi3=yes
14724 else
14725   echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728         ac_cv_lib_gcc___ashldi3=no
14729 fi
14730
14731 rm -f core conftest.err conftest.$ac_objext \
14732       conftest$ac_exeext conftest.$ac_ext
14733 LIBS=$ac_check_lib_save_LIBS
14734 fi
14735 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
14736 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
14737 if test $ac_cv_lib_gcc___ashldi3 = yes; then
14738
14739 cat >>confdefs.h <<\_ACEOF
14740 #define HAVE___ASHLDI3 1
14741 _ACEOF
14742
14743 fi
14744
14745   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
14746 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
14747 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
14748   echo $ECHO_N "(cached) $ECHO_C" >&6
14749 else
14750   ac_check_lib_save_LIBS=$LIBS
14751 LIBS="-lgcc  $LIBS"
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h.  */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h.  */
14758
14759 /* Override any GCC internal prototype to avoid an error.
14760    Use char because int might match the return type of a GCC
14761    builtin and then its argument prototype would still apply.  */
14762 #ifdef __cplusplus
14763 extern "C"
14764 #endif
14765 char __ashrdi3 ();
14766 int
14767 main ()
14768 {
14769 return __ashrdi3 ();
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (ac_try="$ac_link"
14776 case "(($ac_try" in
14777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778   *) ac_try_echo=$ac_try;;
14779 esac
14780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781   (eval "$ac_link") 2>conftest.er1
14782   ac_status=$?
14783   grep -v '^ *+' conftest.er1 >conftest.err
14784   rm -f conftest.er1
14785   cat conftest.err >&5
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); } &&
14788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14789   { (case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_try") 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; } &&
14798          { ac_try='test -s conftest$ac_exeext'
14799   { (case "(($ac_try" in
14800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801   *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804   (eval "$ac_try") 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); }; }; then
14808   ac_cv_lib_gcc___ashrdi3=yes
14809 else
14810   echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.$ac_ext >&5
14812
14813         ac_cv_lib_gcc___ashrdi3=no
14814 fi
14815
14816 rm -f core conftest.err conftest.$ac_objext \
14817       conftest$ac_exeext conftest.$ac_ext
14818 LIBS=$ac_check_lib_save_LIBS
14819 fi
14820 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
14821 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
14822 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
14823
14824 cat >>confdefs.h <<\_ACEOF
14825 #define HAVE___ASHRDI3 1
14826 _ACEOF
14827
14828 fi
14829
14830   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
14831 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
14832 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
14833   echo $ECHO_N "(cached) $ECHO_C" >&6
14834 else
14835   ac_check_lib_save_LIBS=$LIBS
14836 LIBS="-lgcc  $LIBS"
14837 cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843
14844 /* Override any GCC internal prototype to avoid an error.
14845    Use char because int might match the return type of a GCC
14846    builtin and then its argument prototype would still apply.  */
14847 #ifdef __cplusplus
14848 extern "C"
14849 #endif
14850 char __divdi3 ();
14851 int
14852 main ()
14853 {
14854 return __divdi3 ();
14855   ;
14856   return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (ac_try="$ac_link"
14861 case "(($ac_try" in
14862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863   *) ac_try_echo=$ac_try;;
14864 esac
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866   (eval "$ac_link") 2>conftest.er1
14867   ac_status=$?
14868   grep -v '^ *+' conftest.er1 >conftest.err
14869   rm -f conftest.er1
14870   cat conftest.err >&5
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); } &&
14873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14874   { (case "(($ac_try" in
14875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876   *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879   (eval "$ac_try") 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); }; } &&
14883          { ac_try='test -s conftest$ac_exeext'
14884   { (case "(($ac_try" in
14885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886   *) ac_try_echo=$ac_try;;
14887 esac
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889   (eval "$ac_try") 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; }; then
14893   ac_cv_lib_gcc___divdi3=yes
14894 else
14895   echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14897
14898         ac_cv_lib_gcc___divdi3=no
14899 fi
14900
14901 rm -f core conftest.err conftest.$ac_objext \
14902       conftest$ac_exeext conftest.$ac_ext
14903 LIBS=$ac_check_lib_save_LIBS
14904 fi
14905 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
14906 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
14907 if test $ac_cv_lib_gcc___divdi3 = yes; then
14908
14909 cat >>confdefs.h <<\_ACEOF
14910 #define HAVE___DIVDI3 1
14911 _ACEOF
14912
14913 fi
14914
14915   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
14916 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
14917 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
14918   echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920   ac_check_lib_save_LIBS=$LIBS
14921 LIBS="-lgcc  $LIBS"
14922 cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h.  */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h.  */
14928
14929 /* Override any GCC internal prototype to avoid an error.
14930    Use char because int might match the return type of a GCC
14931    builtin and then its argument prototype would still apply.  */
14932 #ifdef __cplusplus
14933 extern "C"
14934 #endif
14935 char __fixdfdi ();
14936 int
14937 main ()
14938 {
14939 return __fixdfdi ();
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (ac_try="$ac_link"
14946 case "(($ac_try" in
14947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948   *) ac_try_echo=$ac_try;;
14949 esac
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951   (eval "$ac_link") 2>conftest.er1
14952   ac_status=$?
14953   grep -v '^ *+' conftest.er1 >conftest.err
14954   rm -f conftest.er1
14955   cat conftest.err >&5
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } &&
14958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14959   { (case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964   (eval "$ac_try") 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; } &&
14968          { ac_try='test -s conftest$ac_exeext'
14969   { (case "(($ac_try" in
14970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971   *) ac_try_echo=$ac_try;;
14972 esac
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974   (eval "$ac_try") 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); }; }; then
14978   ac_cv_lib_gcc___fixdfdi=yes
14979 else
14980   echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14982
14983         ac_cv_lib_gcc___fixdfdi=no
14984 fi
14985
14986 rm -f core conftest.err conftest.$ac_objext \
14987       conftest$ac_exeext conftest.$ac_ext
14988 LIBS=$ac_check_lib_save_LIBS
14989 fi
14990 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
14991 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
14992 if test $ac_cv_lib_gcc___fixdfdi = yes; then
14993
14994 cat >>confdefs.h <<\_ACEOF
14995 #define HAVE___FIXDFDI 1
14996 _ACEOF
14997
14998 fi
14999
15000   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
15001 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
15002 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   ac_check_lib_save_LIBS=$LIBS
15006 LIBS="-lgcc  $LIBS"
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h.  */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h.  */
15013
15014 /* Override any GCC internal prototype to avoid an error.
15015    Use char because int might match the return type of a GCC
15016    builtin and then its argument prototype would still apply.  */
15017 #ifdef __cplusplus
15018 extern "C"
15019 #endif
15020 char __fixsfdi ();
15021 int
15022 main ()
15023 {
15024 return __fixsfdi ();
15025   ;
15026   return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (ac_try="$ac_link"
15031 case "(($ac_try" in
15032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033   *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036   (eval "$ac_link") 2>conftest.er1
15037   ac_status=$?
15038   grep -v '^ *+' conftest.er1 >conftest.err
15039   rm -f conftest.er1
15040   cat conftest.err >&5
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); } &&
15043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15044   { (case "(($ac_try" in
15045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046   *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049   (eval "$ac_try") 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; } &&
15053          { ac_try='test -s conftest$ac_exeext'
15054   { (case "(($ac_try" in
15055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056   *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059   (eval "$ac_try") 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   ac_cv_lib_gcc___fixsfdi=yes
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068         ac_cv_lib_gcc___fixsfdi=no
15069 fi
15070
15071 rm -f core conftest.err conftest.$ac_objext \
15072       conftest$ac_exeext conftest.$ac_ext
15073 LIBS=$ac_check_lib_save_LIBS
15074 fi
15075 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
15076 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
15077 if test $ac_cv_lib_gcc___fixsfdi = yes; then
15078
15079 cat >>confdefs.h <<\_ACEOF
15080 #define HAVE___FIXSFDI 1
15081 _ACEOF
15082
15083 fi
15084
15085   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
15086 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
15087 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090   ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-lgcc  $LIBS"
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h.  */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h.  */
15098
15099 /* Override any GCC internal prototype to avoid an error.
15100    Use char because int might match the return type of a GCC
15101    builtin and then its argument prototype would still apply.  */
15102 #ifdef __cplusplus
15103 extern "C"
15104 #endif
15105 char __floatdidf ();
15106 int
15107 main ()
15108 {
15109 return __floatdidf ();
15110   ;
15111   return 0;
15112 }
15113 _ACEOF
15114 rm -f conftest.$ac_objext conftest$ac_exeext
15115 if { (ac_try="$ac_link"
15116 case "(($ac_try" in
15117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118   *) ac_try_echo=$ac_try;;
15119 esac
15120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15121   (eval "$ac_link") 2>conftest.er1
15122   ac_status=$?
15123   grep -v '^ *+' conftest.er1 >conftest.err
15124   rm -f conftest.er1
15125   cat conftest.err >&5
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); } &&
15128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15129   { (case "(($ac_try" in
15130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131   *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134   (eval "$ac_try") 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); }; } &&
15138          { ac_try='test -s conftest$ac_exeext'
15139   { (case "(($ac_try" in
15140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141   *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144   (eval "$ac_try") 2>&5
15145   ac_status=$?
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); }; }; then
15148   ac_cv_lib_gcc___floatdidf=yes
15149 else
15150   echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15152
15153         ac_cv_lib_gcc___floatdidf=no
15154 fi
15155
15156 rm -f core conftest.err conftest.$ac_objext \
15157       conftest$ac_exeext conftest.$ac_ext
15158 LIBS=$ac_check_lib_save_LIBS
15159 fi
15160 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
15161 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
15162 if test $ac_cv_lib_gcc___floatdidf = yes; then
15163
15164 cat >>confdefs.h <<\_ACEOF
15165 #define HAVE___FLOATDIDF 1
15166 _ACEOF
15167
15168 fi
15169
15170   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
15171 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
15172 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   ac_check_lib_save_LIBS=$LIBS
15176 LIBS="-lgcc  $LIBS"
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183
15184 /* Override any GCC internal prototype to avoid an error.
15185    Use char because int might match the return type of a GCC
15186    builtin and then its argument prototype would still apply.  */
15187 #ifdef __cplusplus
15188 extern "C"
15189 #endif
15190 char __lshrdi3 ();
15191 int
15192 main ()
15193 {
15194 return __lshrdi3 ();
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_link") 2>conftest.er1
15207   ac_status=$?
15208   grep -v '^ *+' conftest.er1 >conftest.err
15209   rm -f conftest.er1
15210   cat conftest.err >&5
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); } &&
15213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15214   { (case "(($ac_try" in
15215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216   *) ac_try_echo=$ac_try;;
15217 esac
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219   (eval "$ac_try") 2>&5
15220   ac_status=$?
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); }; } &&
15223          { ac_try='test -s conftest$ac_exeext'
15224   { (case "(($ac_try" in
15225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226   *) ac_try_echo=$ac_try;;
15227 esac
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229   (eval "$ac_try") 2>&5
15230   ac_status=$?
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); }; }; then
15233   ac_cv_lib_gcc___lshrdi3=yes
15234 else
15235   echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238         ac_cv_lib_gcc___lshrdi3=no
15239 fi
15240
15241 rm -f core conftest.err conftest.$ac_objext \
15242       conftest$ac_exeext conftest.$ac_ext
15243 LIBS=$ac_check_lib_save_LIBS
15244 fi
15245 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
15246 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
15247 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
15248
15249 cat >>confdefs.h <<\_ACEOF
15250 #define HAVE___LSHRDI3 1
15251 _ACEOF
15252
15253 fi
15254
15255   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
15256 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
15257 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
15258   echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260   ac_check_lib_save_LIBS=$LIBS
15261 LIBS="-lgcc  $LIBS"
15262 cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h.  */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h.  */
15268
15269 /* Override any GCC internal prototype to avoid an error.
15270    Use char because int might match the return type of a GCC
15271    builtin and then its argument prototype would still apply.  */
15272 #ifdef __cplusplus
15273 extern "C"
15274 #endif
15275 char __moddi3 ();
15276 int
15277 main ()
15278 {
15279 return __moddi3 ();
15280   ;
15281   return 0;
15282 }
15283 _ACEOF
15284 rm -f conftest.$ac_objext conftest$ac_exeext
15285 if { (ac_try="$ac_link"
15286 case "(($ac_try" in
15287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15288   *) ac_try_echo=$ac_try;;
15289 esac
15290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15291   (eval "$ac_link") 2>conftest.er1
15292   ac_status=$?
15293   grep -v '^ *+' conftest.er1 >conftest.err
15294   rm -f conftest.er1
15295   cat conftest.err >&5
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); } &&
15298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15299   { (case "(($ac_try" in
15300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301   *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304   (eval "$ac_try") 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }; } &&
15308          { ac_try='test -s conftest$ac_exeext'
15309   { (case "(($ac_try" in
15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311   *) ac_try_echo=$ac_try;;
15312 esac
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314   (eval "$ac_try") 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); }; }; then
15318   ac_cv_lib_gcc___moddi3=yes
15319 else
15320   echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323         ac_cv_lib_gcc___moddi3=no
15324 fi
15325
15326 rm -f core conftest.err conftest.$ac_objext \
15327       conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15329 fi
15330 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
15331 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
15332 if test $ac_cv_lib_gcc___moddi3 = yes; then
15333
15334 cat >>confdefs.h <<\_ACEOF
15335 #define HAVE___MODDI3 1
15336 _ACEOF
15337
15338 fi
15339
15340   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
15341 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
15342 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
15343   echo $ECHO_N "(cached) $ECHO_C" >&6
15344 else
15345   ac_check_lib_save_LIBS=$LIBS
15346 LIBS="-lgcc  $LIBS"
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h.  */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h.  */
15353
15354 /* Override any GCC internal prototype to avoid an error.
15355    Use char because int might match the return type of a GCC
15356    builtin and then its argument prototype would still apply.  */
15357 #ifdef __cplusplus
15358 extern "C"
15359 #endif
15360 char __udivdi3 ();
15361 int
15362 main ()
15363 {
15364 return __udivdi3 ();
15365   ;
15366   return 0;
15367 }
15368 _ACEOF
15369 rm -f conftest.$ac_objext conftest$ac_exeext
15370 if { (ac_try="$ac_link"
15371 case "(($ac_try" in
15372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373   *) ac_try_echo=$ac_try;;
15374 esac
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376   (eval "$ac_link") 2>conftest.er1
15377   ac_status=$?
15378   grep -v '^ *+' conftest.er1 >conftest.err
15379   rm -f conftest.er1
15380   cat conftest.err >&5
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); } &&
15383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15384   { (case "(($ac_try" in
15385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386   *) ac_try_echo=$ac_try;;
15387 esac
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389   (eval "$ac_try") 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); }; } &&
15393          { ac_try='test -s conftest$ac_exeext'
15394   { (case "(($ac_try" in
15395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396   *) ac_try_echo=$ac_try;;
15397 esac
15398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399   (eval "$ac_try") 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; }; then
15403   ac_cv_lib_gcc___udivdi3=yes
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408         ac_cv_lib_gcc___udivdi3=no
15409 fi
15410
15411 rm -f core conftest.err conftest.$ac_objext \
15412       conftest$ac_exeext conftest.$ac_ext
15413 LIBS=$ac_check_lib_save_LIBS
15414 fi
15415 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
15416 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
15417 if test $ac_cv_lib_gcc___udivdi3 = yes; then
15418
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE___UDIVDI3 1
15421 _ACEOF
15422
15423 fi
15424
15425   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
15426 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
15427 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
15428   echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430   ac_check_lib_save_LIBS=$LIBS
15431 LIBS="-lgcc  $LIBS"
15432 cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h.  */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h.  */
15438
15439 /* Override any GCC internal prototype to avoid an error.
15440    Use char because int might match the return type of a GCC
15441    builtin and then its argument prototype would still apply.  */
15442 #ifdef __cplusplus
15443 extern "C"
15444 #endif
15445 char __umoddi3 ();
15446 int
15447 main ()
15448 {
15449 return __umoddi3 ();
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (ac_try="$ac_link"
15456 case "(($ac_try" in
15457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458   *) ac_try_echo=$ac_try;;
15459 esac
15460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15461   (eval "$ac_link") 2>conftest.er1
15462   ac_status=$?
15463   grep -v '^ *+' conftest.er1 >conftest.err
15464   rm -f conftest.er1
15465   cat conftest.err >&5
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); } &&
15468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15469   { (case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_try") 2>&5
15475   ac_status=$?
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); }; } &&
15478          { ac_try='test -s conftest$ac_exeext'
15479   { (case "(($ac_try" in
15480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481   *) ac_try_echo=$ac_try;;
15482 esac
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484   (eval "$ac_try") 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; }; then
15488   ac_cv_lib_gcc___umoddi3=yes
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493         ac_cv_lib_gcc___umoddi3=no
15494 fi
15495
15496 rm -f core conftest.err conftest.$ac_objext \
15497       conftest$ac_exeext conftest.$ac_ext
15498 LIBS=$ac_check_lib_save_LIBS
15499 fi
15500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
15501 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
15502 if test $ac_cv_lib_gcc___umoddi3 = yes; then
15503
15504 cat >>confdefs.h <<\_ACEOF
15505 #define HAVE___UMODDI3 1
15506 _ACEOF
15507
15508 fi
15509
15510
15511   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
15512 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
15513 if test "${ac_cv_lib_gcc___main+set}" = set; then
15514   echo $ECHO_N "(cached) $ECHO_C" >&6
15515 else
15516   ac_check_lib_save_LIBS=$LIBS
15517 LIBS="-lgcc  $LIBS"
15518 cat >conftest.$ac_ext <<_ACEOF
15519 /* confdefs.h.  */
15520 _ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h.  */
15524
15525 /* Override any GCC internal prototype to avoid an error.
15526    Use char because int might match the return type of a GCC
15527    builtin and then its argument prototype would still apply.  */
15528 #ifdef __cplusplus
15529 extern "C"
15530 #endif
15531 char __main ();
15532 int
15533 main ()
15534 {
15535 return __main ();
15536   ;
15537   return 0;
15538 }
15539 _ACEOF
15540 rm -f conftest.$ac_objext conftest$ac_exeext
15541 if { (ac_try="$ac_link"
15542 case "(($ac_try" in
15543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544   *) ac_try_echo=$ac_try;;
15545 esac
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547   (eval "$ac_link") 2>conftest.er1
15548   ac_status=$?
15549   grep -v '^ *+' conftest.er1 >conftest.err
15550   rm -f conftest.er1
15551   cat conftest.err >&5
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } &&
15554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15555   { (case "(($ac_try" in
15556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557   *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560   (eval "$ac_try") 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); }; } &&
15564          { ac_try='test -s conftest$ac_exeext'
15565   { (case "(($ac_try" in
15566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567   *) ac_try_echo=$ac_try;;
15568 esac
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570   (eval "$ac_try") 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   ac_cv_lib_gcc___main=yes
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579         ac_cv_lib_gcc___main=no
15580 fi
15581
15582 rm -f core conftest.err conftest.$ac_objext \
15583       conftest$ac_exeext conftest.$ac_ext
15584 LIBS=$ac_check_lib_save_LIBS
15585 fi
15586 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
15587 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
15588 if test $ac_cv_lib_gcc___main = yes; then
15589
15590 cat >>confdefs.h <<\_ACEOF
15591 #define HAVE___MAIN 1
15592 _ACEOF
15593
15594 fi
15595
15596   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
15597 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
15598 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
15599   echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601   ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-lgcc  $LIBS"
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h.  */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h.  */
15609
15610 /* Override any GCC internal prototype to avoid an error.
15611    Use char because int might match the return type of a GCC
15612    builtin and then its argument prototype would still apply.  */
15613 #ifdef __cplusplus
15614 extern "C"
15615 #endif
15616 char __cmpdi2 ();
15617 int
15618 main ()
15619 {
15620 return __cmpdi2 ();
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (ac_try="$ac_link"
15627 case "(($ac_try" in
15628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629   *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632   (eval "$ac_link") 2>conftest.er1
15633   ac_status=$?
15634   grep -v '^ *+' conftest.er1 >conftest.err
15635   rm -f conftest.er1
15636   cat conftest.err >&5
15637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); } &&
15639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640   { (case "(($ac_try" in
15641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642   *) ac_try_echo=$ac_try;;
15643 esac
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645   (eval "$ac_try") 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; } &&
15649          { ac_try='test -s conftest$ac_exeext'
15650   { (case "(($ac_try" in
15651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652   *) ac_try_echo=$ac_try;;
15653 esac
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655   (eval "$ac_try") 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; }; then
15659   ac_cv_lib_gcc___cmpdi2=yes
15660 else
15661   echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664         ac_cv_lib_gcc___cmpdi2=no
15665 fi
15666
15667 rm -f core conftest.err conftest.$ac_objext \
15668       conftest$ac_exeext conftest.$ac_ext
15669 LIBS=$ac_check_lib_save_LIBS
15670 fi
15671 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
15672 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
15673 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
15674
15675 cat >>confdefs.h <<\_ACEOF
15676 #define HAVE___CMPDI2 1
15677 _ACEOF
15678
15679 fi
15680
15681 fi
15682
15683 if test "$llvm_cv_os_type" = "MingW" ; then
15684   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
15685 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
15686   cat >conftest.$ac_ext <<_ACEOF
15687 #include <windows.h>
15688 #include <imagehlp.h>
15689 extern void foo(PENUMLOADED_MODULES_CALLBACK);
15690 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
15691 _ACEOF
15692 rm -f conftest.$ac_objext
15693 if { (ac_try="$ac_compile"
15694 case "(($ac_try" in
15695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696   *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699   (eval "$ac_compile") 2>conftest.er1
15700   ac_status=$?
15701   grep -v '^ *+' conftest.er1 >conftest.err
15702   rm -f conftest.er1
15703   cat conftest.err >&5
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); } &&
15706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15707   { (case "(($ac_try" in
15708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709   *) ac_try_echo=$ac_try;;
15710 esac
15711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712   (eval "$ac_try") 2>&5
15713   ac_status=$?
15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715   (exit $ac_status); }; } &&
15716          { ac_try='test -s conftest.$ac_objext'
15717   { (case "(($ac_try" in
15718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719   *) ac_try_echo=$ac_try;;
15720 esac
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722   (eval "$ac_try") 2>&5
15723   ac_status=$?
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); }; }; then
15726
15727   { echo "$as_me:$LINENO: result: yes" >&5
15728 echo "${ECHO_T}yes" >&6; }
15729   llvm_cv_win32_elmcb_pcstr="PCSTR"
15730
15731 else
15732   echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15734
15735
15736   { echo "$as_me:$LINENO: result: no" >&5
15737 echo "${ECHO_T}no" >&6; }
15738   llvm_cv_win32_elmcb_pcstr="PSTR"
15739
15740 fi
15741
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743
15744 cat >>confdefs.h <<_ACEOF
15745 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
15746 _ACEOF
15747
15748 fi
15749
15750
15751 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
15752 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
15753 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
15754   echo $ECHO_N "(cached) $ECHO_C" >&6
15755 else
15756   ac_ext=cpp
15757 ac_cpp='$CXXCPP $CPPFLAGS'
15758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15761
15762    cat >conftest.$ac_ext <<_ACEOF
15763 /* confdefs.h.  */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h.  */
15768 #include <math.h>
15769 int
15770 main ()
15771 {
15772 float f; isnan(f);
15773   ;
15774   return 0;
15775 }
15776 _ACEOF
15777 rm -f conftest.$ac_objext
15778 if { (ac_try="$ac_compile"
15779 case "(($ac_try" in
15780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781   *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784   (eval "$ac_compile") 2>conftest.er1
15785   ac_status=$?
15786   grep -v '^ *+' conftest.er1 >conftest.err
15787   rm -f conftest.er1
15788   cat conftest.err >&5
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); } &&
15791          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15792   { (case "(($ac_try" in
15793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794   *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797   (eval "$ac_try") 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; } &&
15801          { ac_try='test -s conftest.$ac_objext'
15802   { (case "(($ac_try" in
15803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804   *) ac_try_echo=$ac_try;;
15805 esac
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807   (eval "$ac_try") 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); }; }; then
15811   ac_cv_func_isnan_in_math_h=yes
15812 else
15813   echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816         ac_cv_func_isnan_in_math_h=no
15817 fi
15818
15819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15820   ac_ext=c
15821 ac_cpp='$CPP $CPPFLAGS'
15822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15825
15826 fi
15827 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
15828 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
15829
15830
15831 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
15832
15833 cat >>confdefs.h <<\_ACEOF
15834 #define HAVE_ISNAN_IN_MATH_H 1
15835 _ACEOF
15836
15837 fi
15838
15839 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
15840 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
15841 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
15842   echo $ECHO_N "(cached) $ECHO_C" >&6
15843 else
15844   ac_ext=cpp
15845 ac_cpp='$CXXCPP $CPPFLAGS'
15846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15849
15850    cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h.  */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h.  */
15856 #include <cmath>
15857 int
15858 main ()
15859 {
15860 float f; isnan(f);
15861   ;
15862   return 0;
15863 }
15864 _ACEOF
15865 rm -f conftest.$ac_objext
15866 if { (ac_try="$ac_compile"
15867 case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872   (eval "$ac_compile") 2>conftest.er1
15873   ac_status=$?
15874   grep -v '^ *+' conftest.er1 >conftest.err
15875   rm -f conftest.er1
15876   cat conftest.err >&5
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); } &&
15879          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15880   { (case "(($ac_try" in
15881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882   *) ac_try_echo=$ac_try;;
15883 esac
15884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885   (eval "$ac_try") 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); }; } &&
15889          { ac_try='test -s conftest.$ac_objext'
15890   { (case "(($ac_try" in
15891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892   *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895   (eval "$ac_try") 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899   ac_cv_func_isnan_in_cmath=yes
15900 else
15901   echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904         ac_cv_func_isnan_in_cmath=no
15905 fi
15906
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908   ac_ext=c
15909 ac_cpp='$CPP $CPPFLAGS'
15910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15913
15914 fi
15915 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
15916 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
15917
15918 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
15919
15920 cat >>confdefs.h <<\_ACEOF
15921 #define HAVE_ISNAN_IN_CMATH 1
15922 _ACEOF
15923
15924 fi
15925
15926 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
15927 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
15928 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
15929   echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931   ac_ext=cpp
15932 ac_cpp='$CXXCPP $CPPFLAGS'
15933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15936
15937    cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h.  */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h.  */
15943 #include <cmath>
15944 int
15945 main ()
15946 {
15947 float f; std::isnan(f);
15948   ;
15949   return 0;
15950 }
15951 _ACEOF
15952 rm -f conftest.$ac_objext
15953 if { (ac_try="$ac_compile"
15954 case "(($ac_try" in
15955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956   *) ac_try_echo=$ac_try;;
15957 esac
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959   (eval "$ac_compile") 2>conftest.er1
15960   ac_status=$?
15961   grep -v '^ *+' conftest.er1 >conftest.err
15962   rm -f conftest.er1
15963   cat conftest.err >&5
15964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965   (exit $ac_status); } &&
15966          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15967   { (case "(($ac_try" in
15968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15969   *) ac_try_echo=$ac_try;;
15970 esac
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972   (eval "$ac_try") 2>&5
15973   ac_status=$?
15974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975   (exit $ac_status); }; } &&
15976          { ac_try='test -s conftest.$ac_objext'
15977   { (case "(($ac_try" in
15978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979   *) ac_try_echo=$ac_try;;
15980 esac
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982   (eval "$ac_try") 2>&5
15983   ac_status=$?
15984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); }; }; then
15986   ac_cv_func_std_isnan_in_cmath=yes
15987 else
15988   echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15990
15991         ac_cv_func_std_isnan_in_cmath=no
15992 fi
15993
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995   ac_ext=c
15996 ac_cpp='$CPP $CPPFLAGS'
15997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16000
16001 fi
16002 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
16003 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
16004
16005 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
16006
16007 cat >>confdefs.h <<\_ACEOF
16008 #define HAVE_STD_ISNAN_IN_CMATH 1
16009 _ACEOF
16010
16011 fi
16012
16013
16014 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
16015 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
16016 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
16017   echo $ECHO_N "(cached) $ECHO_C" >&6
16018 else
16019   ac_ext=cpp
16020 ac_cpp='$CXXCPP $CPPFLAGS'
16021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16024
16025    cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h.  */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h.  */
16031 #include <math.h>
16032 int
16033 main ()
16034 {
16035 float f; isinf(f);
16036   ;
16037   return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext
16041 if { (ac_try="$ac_compile"
16042 case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_compile") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } &&
16054          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16055   { (case "(($ac_try" in
16056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057   *) ac_try_echo=$ac_try;;
16058 esac
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060   (eval "$ac_try") 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; } &&
16064          { ac_try='test -s conftest.$ac_objext'
16065   { (case "(($ac_try" in
16066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067   *) ac_try_echo=$ac_try;;
16068 esac
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070   (eval "$ac_try") 2>&5
16071   ac_status=$?
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); }; }; then
16074   ac_cv_func_isinf_in_math_h=yes
16075 else
16076   echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16078
16079         ac_cv_func_isinf_in_math_h=no
16080 fi
16081
16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083   ac_ext=c
16084 ac_cpp='$CPP $CPPFLAGS'
16085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16088
16089 fi
16090 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
16091 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
16092
16093 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
16094
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE_ISINF_IN_MATH_H 1
16097 _ACEOF
16098
16099 fi
16100
16101 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
16102 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
16103 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
16104   echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106   ac_ext=cpp
16107 ac_cpp='$CXXCPP $CPPFLAGS'
16108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16111
16112    cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h.  */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h.  */
16118 #include <cmath>
16119 int
16120 main ()
16121 {
16122 float f; isinf(f);
16123   ;
16124   return 0;
16125 }
16126 _ACEOF
16127 rm -f conftest.$ac_objext
16128 if { (ac_try="$ac_compile"
16129 case "(($ac_try" in
16130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131   *) ac_try_echo=$ac_try;;
16132 esac
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134   (eval "$ac_compile") 2>conftest.er1
16135   ac_status=$?
16136   grep -v '^ *+' conftest.er1 >conftest.err
16137   rm -f conftest.er1
16138   cat conftest.err >&5
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); } &&
16141          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16142   { (case "(($ac_try" in
16143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144   *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147   (eval "$ac_try") 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }; } &&
16151          { ac_try='test -s conftest.$ac_objext'
16152   { (case "(($ac_try" in
16153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154   *) ac_try_echo=$ac_try;;
16155 esac
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157   (eval "$ac_try") 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; }; then
16161   ac_cv_func_isinf_in_cmath=yes
16162 else
16163   echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16165
16166         ac_cv_func_isinf_in_cmath=no
16167 fi
16168
16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16170   ac_ext=c
16171 ac_cpp='$CPP $CPPFLAGS'
16172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16175
16176 fi
16177 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
16178 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
16179
16180 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
16181
16182 cat >>confdefs.h <<\_ACEOF
16183 #define HAVE_ISINF_IN_CMATH 1
16184 _ACEOF
16185
16186 fi
16187
16188 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
16189 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
16190 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193   ac_ext=cpp
16194 ac_cpp='$CXXCPP $CPPFLAGS'
16195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16198
16199    cat >conftest.$ac_ext <<_ACEOF
16200 /* confdefs.h.  */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h.  */
16205 #include <cmath>
16206 int
16207 main ()
16208 {
16209 float f; std::isinf(f);
16210   ;
16211   return 0;
16212 }
16213 _ACEOF
16214 rm -f conftest.$ac_objext
16215 if { (ac_try="$ac_compile"
16216 case "(($ac_try" in
16217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218   *) ac_try_echo=$ac_try;;
16219 esac
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221   (eval "$ac_compile") 2>conftest.er1
16222   ac_status=$?
16223   grep -v '^ *+' conftest.er1 >conftest.err
16224   rm -f conftest.er1
16225   cat conftest.err >&5
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); } &&
16228          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16229   { (case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_try") 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; } &&
16238          { ac_try='test -s conftest.$ac_objext'
16239   { (case "(($ac_try" in
16240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241   *) ac_try_echo=$ac_try;;
16242 esac
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244   (eval "$ac_try") 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); }; }; then
16248   ac_cv_func_std_isinf_in_cmath=yes
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253         ac_cv_func_std_isinf_in_cmath=no
16254 fi
16255
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257   ac_ext=c
16258 ac_cpp='$CPP $CPPFLAGS'
16259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16262
16263 fi
16264 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
16265 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
16266
16267 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
16268
16269 cat >>confdefs.h <<\_ACEOF
16270 #define HAVE_STD_ISINF_IN_CMATH 1
16271 _ACEOF
16272
16273 fi
16274
16275 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
16276 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
16277 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
16278   echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16280   ac_ext=cpp
16281 ac_cpp='$CXXCPP $CPPFLAGS'
16282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16285
16286    cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h.  */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h.  */
16292 #include <ieeefp.h>
16293 int
16294 main ()
16295 {
16296 float f; finite(f);
16297   ;
16298   return 0;
16299 }
16300 _ACEOF
16301 rm -f conftest.$ac_objext
16302 if { (ac_try="$ac_compile"
16303 case "(($ac_try" in
16304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305   *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308   (eval "$ac_compile") 2>conftest.er1
16309   ac_status=$?
16310   grep -v '^ *+' conftest.er1 >conftest.err
16311   rm -f conftest.er1
16312   cat conftest.err >&5
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); } &&
16315          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16316   { (case "(($ac_try" in
16317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318   *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321   (eval "$ac_try") 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; } &&
16325          { ac_try='test -s conftest.$ac_objext'
16326   { (case "(($ac_try" in
16327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328   *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331   (eval "$ac_try") 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; }; then
16335   ac_cv_func_finite_in_ieeefp_h=yes
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340         ac_cv_func_finite_in_ieeefp_h=no
16341 fi
16342
16343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16344   ac_ext=c
16345 ac_cpp='$CPP $CPPFLAGS'
16346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16349
16350 fi
16351 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
16352 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
16353
16354 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
16355
16356 cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_FINITE_IN_IEEEFP_H 1
16358 _ACEOF
16359
16360 fi
16361
16362
16363
16364 if test "$llvm_cv_platform_type" = "Unix" ; then
16365
16366
16367 for ac_header in stdlib.h unistd.h
16368 do
16369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16371   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 fi
16376 ac_res=`eval echo '${'$as_ac_Header'}'`
16377                { echo "$as_me:$LINENO: result: $ac_res" >&5
16378 echo "${ECHO_T}$ac_res" >&6; }
16379 else
16380   # Is the header compilable?
16381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h.  */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h.  */
16389 $ac_includes_default
16390 #include <$ac_header>
16391 _ACEOF
16392 rm -f conftest.$ac_objext
16393 if { (ac_try="$ac_compile"
16394 case "(($ac_try" in
16395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396   *) ac_try_echo=$ac_try;;
16397 esac
16398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399   (eval "$ac_compile") 2>conftest.er1
16400   ac_status=$?
16401   grep -v '^ *+' conftest.er1 >conftest.err
16402   rm -f conftest.er1
16403   cat conftest.err >&5
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); } &&
16406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16407   { (case "(($ac_try" in
16408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409   *) ac_try_echo=$ac_try;;
16410 esac
16411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412   (eval "$ac_try") 2>&5
16413   ac_status=$?
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); }; } &&
16416          { ac_try='test -s conftest.$ac_objext'
16417   { (case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_try") 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); }; }; then
16426   ac_header_compiler=yes
16427 else
16428   echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16430
16431         ac_header_compiler=no
16432 fi
16433
16434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16436 echo "${ECHO_T}$ac_header_compiler" >&6; }
16437
16438 # Is the header present?
16439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16441 cat >conftest.$ac_ext <<_ACEOF
16442 /* confdefs.h.  */
16443 _ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h.  */
16447 #include <$ac_header>
16448 _ACEOF
16449 if { (ac_try="$ac_cpp conftest.$ac_ext"
16450 case "(($ac_try" in
16451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452   *) ac_try_echo=$ac_try;;
16453 esac
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16456   ac_status=$?
16457   grep -v '^ *+' conftest.er1 >conftest.err
16458   rm -f conftest.er1
16459   cat conftest.err >&5
16460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461   (exit $ac_status); } >/dev/null; then
16462   if test -s conftest.err; then
16463     ac_cpp_err=$ac_c_preproc_warn_flag
16464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16465   else
16466     ac_cpp_err=
16467   fi
16468 else
16469   ac_cpp_err=yes
16470 fi
16471 if test -z "$ac_cpp_err"; then
16472   ac_header_preproc=yes
16473 else
16474   echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16476
16477   ac_header_preproc=no
16478 fi
16479
16480 rm -f conftest.err conftest.$ac_ext
16481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16482 echo "${ECHO_T}$ac_header_preproc" >&6; }
16483
16484 # So?  What about this header?
16485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16486   yes:no: )
16487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16491     ac_header_preproc=yes
16492     ;;
16493   no:yes:* )
16494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16506     ( cat <<\_ASBOX
16507 ## ------------------------------ ##
16508 ## Report this to bugs@yourdomain ##
16509 ## ------------------------------ ##
16510 _ASBOX
16511      ) | sed "s/^/$as_me: WARNING:     /" >&2
16512     ;;
16513 esac
16514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16517   echo $ECHO_N "(cached) $ECHO_C" >&6
16518 else
16519   eval "$as_ac_Header=\$ac_header_preproc"
16520 fi
16521 ac_res=`eval echo '${'$as_ac_Header'}'`
16522                { echo "$as_me:$LINENO: result: $ac_res" >&5
16523 echo "${ECHO_T}$ac_res" >&6; }
16524
16525 fi
16526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16527   cat >>confdefs.h <<_ACEOF
16528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16529 _ACEOF
16530
16531 fi
16532
16533 done
16534
16535
16536 for ac_func in getpagesize
16537 do
16538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16542   echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544   cat >conftest.$ac_ext <<_ACEOF
16545 /* confdefs.h.  */
16546 _ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h.  */
16550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16552 #define $ac_func innocuous_$ac_func
16553
16554 /* System header to define __stub macros and hopefully few prototypes,
16555     which can conflict with char $ac_func (); below.
16556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16557     <limits.h> exists even on freestanding compilers.  */
16558
16559 #ifdef __STDC__
16560 # include <limits.h>
16561 #else
16562 # include <assert.h>
16563 #endif
16564
16565 #undef $ac_func
16566
16567 /* Override any GCC internal prototype to avoid an error.
16568    Use char because int might match the return type of a GCC
16569    builtin and then its argument prototype would still apply.  */
16570 #ifdef __cplusplus
16571 extern "C"
16572 #endif
16573 char $ac_func ();
16574 /* The GNU C library defines this for functions which it implements
16575     to always fail with ENOSYS.  Some functions are actually named
16576     something starting with __ and the normal name is an alias.  */
16577 #if defined __stub_$ac_func || defined __stub___$ac_func
16578 choke me
16579 #endif
16580
16581 int
16582 main ()
16583 {
16584 return $ac_func ();
16585   ;
16586   return 0;
16587 }
16588 _ACEOF
16589 rm -f conftest.$ac_objext conftest$ac_exeext
16590 if { (ac_try="$ac_link"
16591 case "(($ac_try" in
16592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593   *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596   (eval "$ac_link") 2>conftest.er1
16597   ac_status=$?
16598   grep -v '^ *+' conftest.er1 >conftest.err
16599   rm -f conftest.er1
16600   cat conftest.err >&5
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); } &&
16603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16604   { (case "(($ac_try" in
16605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606   *) ac_try_echo=$ac_try;;
16607 esac
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609   (eval "$ac_try") 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; } &&
16613          { ac_try='test -s conftest$ac_exeext'
16614   { (case "(($ac_try" in
16615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616   *) ac_try_echo=$ac_try;;
16617 esac
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619   (eval "$ac_try") 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); }; }; then
16623   eval "$as_ac_var=yes"
16624 else
16625   echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16627
16628         eval "$as_ac_var=no"
16629 fi
16630
16631 rm -f core conftest.err conftest.$ac_objext \
16632       conftest$ac_exeext conftest.$ac_ext
16633 fi
16634 ac_res=`eval echo '${'$as_ac_var'}'`
16635                { echo "$as_me:$LINENO: result: $ac_res" >&5
16636 echo "${ECHO_T}$ac_res" >&6; }
16637 if test `eval echo '${'$as_ac_var'}'` = yes; then
16638   cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16640 _ACEOF
16641
16642 fi
16643 done
16644
16645 { echo "$as_me:$LINENO: checking for working mmap" >&5
16646 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
16647 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16648   echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650   if test "$cross_compiling" = yes; then
16651   ac_cv_func_mmap_fixed_mapped=no
16652 else
16653   cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h.  */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h.  */
16659 $ac_includes_default
16660 /* malloc might have been renamed as rpl_malloc. */
16661 #undef malloc
16662
16663 /* Thanks to Mike Haertel and Jim Avera for this test.
16664    Here is a matrix of mmap possibilities:
16665         mmap private not fixed
16666         mmap private fixed at somewhere currently unmapped
16667         mmap private fixed at somewhere already mapped
16668         mmap shared not fixed
16669         mmap shared fixed at somewhere currently unmapped
16670         mmap shared fixed at somewhere already mapped
16671    For private mappings, we should verify that changes cannot be read()
16672    back from the file, nor mmap's back from the file at a different
16673    address.  (There have been systems where private was not correctly
16674    implemented like the infamous i386 svr4.0, and systems where the
16675    VM page cache was not coherent with the file system buffer cache
16676    like early versions of FreeBSD and possibly contemporary NetBSD.)
16677    For shared mappings, we should conversely verify that changes get
16678    propagated back to all the places they're supposed to be.
16679
16680    Grep wants private fixed already mapped.
16681    The main things grep needs to know about mmap are:
16682    * does it exist and is it safe to write into the mmap'd area
16683    * how to use it (BSD variants)  */
16684
16685 #include <fcntl.h>
16686 #include <sys/mman.h>
16687
16688 #if !STDC_HEADERS && !HAVE_STDLIB_H
16689 char *malloc ();
16690 #endif
16691
16692 /* This mess was copied from the GNU getpagesize.h.  */
16693 #if !HAVE_GETPAGESIZE
16694 /* Assume that all systems that can run configure have sys/param.h.  */
16695 # if !HAVE_SYS_PARAM_H
16696 #  define HAVE_SYS_PARAM_H 1
16697 # endif
16698
16699 # ifdef _SC_PAGESIZE
16700 #  define getpagesize() sysconf(_SC_PAGESIZE)
16701 # else /* no _SC_PAGESIZE */
16702 #  if HAVE_SYS_PARAM_H
16703 #   include <sys/param.h>
16704 #   ifdef EXEC_PAGESIZE
16705 #    define getpagesize() EXEC_PAGESIZE
16706 #   else /* no EXEC_PAGESIZE */
16707 #    ifdef NBPG
16708 #     define getpagesize() NBPG * CLSIZE
16709 #     ifndef CLSIZE
16710 #      define CLSIZE 1
16711 #     endif /* no CLSIZE */
16712 #    else /* no NBPG */
16713 #     ifdef NBPC
16714 #      define getpagesize() NBPC
16715 #     else /* no NBPC */
16716 #      ifdef PAGESIZE
16717 #       define getpagesize() PAGESIZE
16718 #      endif /* PAGESIZE */
16719 #     endif /* no NBPC */
16720 #    endif /* no NBPG */
16721 #   endif /* no EXEC_PAGESIZE */
16722 #  else /* no HAVE_SYS_PARAM_H */
16723 #   define getpagesize() 8192   /* punt totally */
16724 #  endif /* no HAVE_SYS_PARAM_H */
16725 # endif /* no _SC_PAGESIZE */
16726
16727 #endif /* no HAVE_GETPAGESIZE */
16728
16729 int
16730 main ()
16731 {
16732   char *data, *data2, *data3;
16733   int i, pagesize;
16734   int fd;
16735
16736   pagesize = getpagesize ();
16737
16738   /* First, make a file with some known garbage in it. */
16739   data = (char *) malloc (pagesize);
16740   if (!data)
16741     return 1;
16742   for (i = 0; i < pagesize; ++i)
16743     *(data + i) = rand ();
16744   umask (0);
16745   fd = creat ("conftest.mmap", 0600);
16746   if (fd < 0)
16747     return 1;
16748   if (write (fd, data, pagesize) != pagesize)
16749     return 1;
16750   close (fd);
16751
16752   /* Next, try to mmap the file at a fixed address which already has
16753      something else allocated at it.  If we can, also make sure that
16754      we see the same garbage.  */
16755   fd = open ("conftest.mmap", O_RDWR);
16756   if (fd < 0)
16757     return 1;
16758   data2 = (char *) malloc (2 * pagesize);
16759   if (!data2)
16760     return 1;
16761   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16762   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16763                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16764     return 1;
16765   for (i = 0; i < pagesize; ++i)
16766     if (*(data + i) != *(data2 + i))
16767       return 1;
16768
16769   /* Finally, make sure that changes to the mapped area do not
16770      percolate back to the file as seen by read().  (This is a bug on
16771      some variants of i386 svr4.0.)  */
16772   for (i = 0; i < pagesize; ++i)
16773     *(data2 + i) = *(data2 + i) + 1;
16774   data3 = (char *) malloc (pagesize);
16775   if (!data3)
16776     return 1;
16777   if (read (fd, data3, pagesize) != pagesize)
16778     return 1;
16779   for (i = 0; i < pagesize; ++i)
16780     if (*(data + i) != *(data3 + i))
16781       return 1;
16782   close (fd);
16783   return 0;
16784 }
16785 _ACEOF
16786 rm -f conftest$ac_exeext
16787 if { (ac_try="$ac_link"
16788 case "(($ac_try" in
16789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790   *) ac_try_echo=$ac_try;;
16791 esac
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793   (eval "$ac_link") 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16797   { (case "(($ac_try" in
16798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799   *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802   (eval "$ac_try") 2>&5
16803   ac_status=$?
16804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805   (exit $ac_status); }; }; then
16806   ac_cv_func_mmap_fixed_mapped=yes
16807 else
16808   echo "$as_me: program exited with status $ac_status" >&5
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16811
16812 ( exit $ac_status )
16813 ac_cv_func_mmap_fixed_mapped=no
16814 fi
16815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16816 fi
16817
16818
16819 fi
16820 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16821 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
16822 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16823
16824 cat >>confdefs.h <<\_ACEOF
16825 #define HAVE_MMAP 1
16826 _ACEOF
16827
16828 fi
16829 rm -f conftest.mmap
16830
16831   { echo "$as_me:$LINENO: checking for mmap of files" >&5
16832 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
16833 if test "${ac_cv_func_mmap_file+set}" = set; then
16834   echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836    ac_ext=c
16837 ac_cpp='$CPP $CPPFLAGS'
16838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16841
16842   if test "$cross_compiling" = yes; then
16843   ac_cv_func_mmap_file=no
16844 else
16845   cat >conftest.$ac_ext <<_ACEOF
16846
16847     /* confdefs.h.  */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h.  */
16852
16853 #include <sys/types.h>
16854 #include <sys/mman.h>
16855 #include <fcntl.h>
16856
16857 int
16858 main ()
16859 {
16860
16861   int fd;
16862   fd = creat ("foo",0777);
16863   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
16864   unlink ("foo");
16865   return (fd != (int) MAP_FAILED);
16866   ;
16867   return 0;
16868 }
16869 _ACEOF
16870 rm -f conftest$ac_exeext
16871 if { (ac_try="$ac_link"
16872 case "(($ac_try" in
16873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874   *) ac_try_echo=$ac_try;;
16875 esac
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877   (eval "$ac_link") 2>&5
16878   ac_status=$?
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16881   { (case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_try") 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; }; then
16890   ac_cv_func_mmap_file=yes
16891 else
16892   echo "$as_me: program exited with status $ac_status" >&5
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16895
16896 ( exit $ac_status )
16897 ac_cv_func_mmap_file=no
16898 fi
16899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16900 fi
16901
16902
16903   ac_ext=c
16904 ac_cpp='$CPP $CPPFLAGS'
16905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16908
16909
16910 fi
16911 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
16912 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
16913 if test "$ac_cv_func_mmap_file" = yes; then
16914
16915 cat >>confdefs.h <<\_ACEOF
16916 #define HAVE_MMAP_FILE
16917 _ACEOF
16918
16919    MMAP_FILE=yes
16920
16921 fi
16922
16923   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
16924 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
16925 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
16926   echo $ECHO_N "(cached) $ECHO_C" >&6
16927 else
16928   if test "$llvm_cv_os_type" = "Interix" ; then
16929    ac_cv_need_dev_zero_for_mmap=yes
16930  else
16931    ac_cv_need_dev_zero_for_mmap=no
16932  fi
16933
16934 fi
16935 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
16936 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
16937 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
16938
16939 cat >>confdefs.h <<\_ACEOF
16940 #define NEED_DEV_ZERO_FOR_MMAP 1
16941 _ACEOF
16942
16943 fi
16944
16945   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
16946   then
16947     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
16948 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
16949   fi
16950   if test "$ac_cv_func_mmap_file" = "no"
16951   then
16952     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
16953 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
16954   fi
16955 fi
16956
16957 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
16958 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
16959 ac_ext=cpp
16960 ac_cpp='$CXXCPP $CPPFLAGS'
16961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16964
16965 cat >conftest.$ac_ext <<_ACEOF
16966 /* confdefs.h.  */
16967 _ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h.  */
16971 int main() {
16972         volatile unsigned long val = 1;
16973         __sync_synchronize();
16974         __sync_val_compare_and_swap(&val, 1, 0);
16975         __sync_add_and_fetch(&val, 1);
16976         __sync_sub_and_fetch(&val, 1);
16977         return 0;
16978       }
16979
16980 _ACEOF
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985   *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988   (eval "$ac_link") 2>conftest.er1
16989   ac_status=$?
16990   grep -v '^ *+' conftest.er1 >conftest.err
16991   rm -f conftest.er1
16992   cat conftest.err >&5
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } &&
16995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996   { (case "(($ac_try" in
16997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998   *) ac_try_echo=$ac_try;;
16999 esac
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001   (eval "$ac_try") 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; } &&
17005          { ac_try='test -s conftest$ac_exeext'
17006   { (case "(($ac_try" in
17007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008   *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011   (eval "$ac_try") 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; }; then
17015   ac_ext=c
17016 ac_cpp='$CPP $CPPFLAGS'
17017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17020
17021   { echo "$as_me:$LINENO: result: yes" >&5
17022 echo "${ECHO_T}yes" >&6; }
17023
17024 cat >>confdefs.h <<\_ACEOF
17025 #define LLVM_HAS_ATOMICS 1
17026 _ACEOF
17027
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032         { echo "$as_me:$LINENO: result: no" >&5
17033 echo "${ECHO_T}no" >&6; }
17034
17035 cat >>confdefs.h <<\_ACEOF
17036 #define LLVM_HAS_ATOMICS 0
17037 _ACEOF
17038
17039   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17040 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17041 fi
17042
17043 rm -f core conftest.err conftest.$ac_objext \
17044       conftest$ac_exeext conftest.$ac_ext
17045
17046
17047 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17048   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17049 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17050 if test "${llvm_cv_linux_mixed+set}" = set; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053    ac_ext=c
17054 ac_cpp='$CPP $CPPFLAGS'
17055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17058
17059   cat >conftest.$ac_ext <<_ACEOF
17060 /* confdefs.h.  */
17061 _ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h.  */
17065 #ifndef __x86_64__
17066        error: Not x86-64 even if uname says so!
17067       #endif
17068
17069 int
17070 main ()
17071 {
17072
17073   ;
17074   return 0;
17075 }
17076 _ACEOF
17077 rm -f conftest.$ac_objext
17078 if { (ac_try="$ac_compile"
17079 case "(($ac_try" in
17080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081   *) ac_try_echo=$ac_try;;
17082 esac
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084   (eval "$ac_compile") 2>conftest.er1
17085   ac_status=$?
17086   grep -v '^ *+' conftest.er1 >conftest.err
17087   rm -f conftest.er1
17088   cat conftest.err >&5
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); } &&
17091          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17101          { ac_try='test -s conftest.$ac_objext'
17102   { (case "(($ac_try" in
17103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104   *) ac_try_echo=$ac_try;;
17105 esac
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107   (eval "$ac_try") 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; }; then
17111   llvm_cv_linux_mixed=no
17112 else
17113   echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17115
17116         llvm_cv_linux_mixed=yes
17117 fi
17118
17119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17120   ac_ext=c
17121 ac_cpp='$CPP $CPPFLAGS'
17122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17125
17126
17127 fi
17128 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17129 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17130
17131   if test "$llvm_cv_linux_mixed" = "yes"; then
17132     llvm_cv_target_arch="x86"
17133     ARCH="x86"
17134   fi
17135 fi
17136
17137
17138 for ac_func in __dso_handle
17139 do
17140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144   echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146   cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h.  */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h.  */
17152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17154 #define $ac_func innocuous_$ac_func
17155
17156 /* System header to define __stub macros and hopefully few prototypes,
17157     which can conflict with char $ac_func (); below.
17158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159     <limits.h> exists even on freestanding compilers.  */
17160
17161 #ifdef __STDC__
17162 # include <limits.h>
17163 #else
17164 # include <assert.h>
17165 #endif
17166
17167 #undef $ac_func
17168
17169 /* Override any GCC internal prototype to avoid an error.
17170    Use char because int might match the return type of a GCC
17171    builtin and then its argument prototype would still apply.  */
17172 #ifdef __cplusplus
17173 extern "C"
17174 #endif
17175 char $ac_func ();
17176 /* The GNU C library defines this for functions which it implements
17177     to always fail with ENOSYS.  Some functions are actually named
17178     something starting with __ and the normal name is an alias.  */
17179 #if defined __stub_$ac_func || defined __stub___$ac_func
17180 choke me
17181 #endif
17182
17183 int
17184 main ()
17185 {
17186 return $ac_func ();
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195   *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198   (eval "$ac_link") 2>conftest.er1
17199   ac_status=$?
17200   grep -v '^ *+' conftest.er1 >conftest.err
17201   rm -f conftest.er1
17202   cat conftest.err >&5
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); } &&
17205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17215          { ac_try='test -s conftest$ac_exeext'
17216   { (case "(($ac_try" in
17217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218   *) ac_try_echo=$ac_try;;
17219 esac
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221   (eval "$ac_try") 2>&5
17222   ac_status=$?
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); }; }; then
17225   eval "$as_ac_var=yes"
17226 else
17227   echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230         eval "$as_ac_var=no"
17231 fi
17232
17233 rm -f core conftest.err conftest.$ac_objext \
17234       conftest$ac_exeext conftest.$ac_ext
17235 fi
17236 ac_res=`eval echo '${'$as_ac_var'}'`
17237                { echo "$as_me:$LINENO: result: $ac_res" >&5
17238 echo "${ECHO_T}$ac_res" >&6; }
17239 if test `eval echo '${'$as_ac_var'}'` = yes; then
17240   cat >>confdefs.h <<_ACEOF
17241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17242 _ACEOF
17243
17244 fi
17245 done
17246
17247
17248 SHLIBEXT=$libltdl_cv_shlibext
17249
17250
17251 # Translate the various configuration directories and other basic
17252 # information into substitutions that will end up in Makefile.config.in
17253 # that these configured values can be used by the makefiles
17254 if test "${prefix}" = "NONE" ; then
17255   prefix="/usr/local"
17256 fi
17257 eval LLVM_PREFIX="${prefix}";
17258 eval LLVM_BINDIR="${prefix}/bin";
17259 eval LLVM_DATADIR="${prefix}/share/llvm";
17260 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17261 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17262 eval LLVM_INCLUDEDIR="${prefix}/include";
17263 eval LLVM_INFODIR="${prefix}/info";
17264 eval LLVM_MANDIR="${prefix}/man";
17265 LLVM_CONFIGTIME=`date`
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276 # Place the various directores into the config.h file as #defines so that we
17277 # can know about the installation paths within LLVM.
17278
17279 cat >>confdefs.h <<_ACEOF
17280 #define LLVM_PREFIX "$LLVM_PREFIX"
17281 _ACEOF
17282
17283
17284 cat >>confdefs.h <<_ACEOF
17285 #define LLVM_BINDIR "$LLVM_BINDIR"
17286 _ACEOF
17287
17288
17289 cat >>confdefs.h <<_ACEOF
17290 #define LLVM_DATADIR "$LLVM_DATADIR"
17291 _ACEOF
17292
17293
17294 cat >>confdefs.h <<_ACEOF
17295 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17296 _ACEOF
17297
17298
17299 cat >>confdefs.h <<_ACEOF
17300 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17301 _ACEOF
17302
17303
17304 cat >>confdefs.h <<_ACEOF
17305 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17306 _ACEOF
17307
17308
17309 cat >>confdefs.h <<_ACEOF
17310 #define LLVM_INFODIR "$LLVM_INFODIR"
17311 _ACEOF
17312
17313
17314 cat >>confdefs.h <<_ACEOF
17315 #define LLVM_MANDIR "$LLVM_MANDIR"
17316 _ACEOF
17317
17318
17319 cat >>confdefs.h <<_ACEOF
17320 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17321 _ACEOF
17322
17323
17324 cat >>confdefs.h <<_ACEOF
17325 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17326 _ACEOF
17327
17328
17329 # Determine which bindings to build.
17330 if test "$BINDINGS_TO_BUILD" = auto ; then
17331   BINDINGS_TO_BUILD=""
17332   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
17333     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17334   fi
17335 fi
17336 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17337
17338
17339 # This isn't really configurey, but it avoids having to repeat the list in
17340 # other files.
17341 ALL_BINDINGS=ocaml
17342
17343
17344 # Do any work necessary to ensure that bindings have what they need.
17345 binding_prereqs_failed=0
17346 for a_binding in $BINDINGS_TO_BUILD ; do
17347   case "$a_binding" in
17348   ocaml)
17349     if test "x$OCAMLC" = x ; then
17350       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
17351 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
17352       binding_prereqs_failed=1
17353     fi
17354     if test "x$OCAMLDEP" = x ; then
17355       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
17356 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
17357       binding_prereqs_failed=1
17358     fi
17359     if test "x$OCAMLOPT" = x ; then
17360       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
17361 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
17362           fi
17363     if test "x$with_ocaml_libdir" != xauto ; then
17364       OCAML_LIBDIR=$with_ocaml_libdir
17365
17366     else
17367       ocaml_stdlib="`"$OCAMLC" -where`"
17368       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17369       then
17370         # ocaml stdlib is beneath our prefix; use stdlib
17371         OCAML_LIBDIR=$ocaml_stdlib
17372
17373       else
17374         # ocaml stdlib is outside our prefix; use libdir/ocaml
17375         OCAML_LIBDIR=${prefix}/lib/ocaml
17376
17377       fi
17378     fi
17379     ;;
17380   esac
17381 done
17382 if test "$binding_prereqs_failed" = 1 ; then
17383   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17384 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17385    { (exit 1); exit 1; }; }
17386 fi
17387
17388 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17389 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17390 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17391   echo $ECHO_N "(cached) $ECHO_C" >&6
17392 else
17393    ac_ext=cpp
17394 ac_cpp='$CXXCPP $CPPFLAGS'
17395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17398
17399   oldcxxflags="$CXXFLAGS"
17400   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17401   cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h.  */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h.  */
17407 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17408 int
17409 main ()
17410 {
17411 X<int>().f();
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext
17417 if { (ac_try="$ac_compile"
17418 case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_compile") 2>conftest.er1
17424   ac_status=$?
17425   grep -v '^ *+' conftest.er1 >conftest.err
17426   rm -f conftest.er1
17427   cat conftest.err >&5
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); } &&
17430          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17431   { (case "(($ac_try" in
17432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433   *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436   (eval "$ac_try") 2>&5
17437   ac_status=$?
17438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439   (exit $ac_status); }; } &&
17440          { ac_try='test -s conftest.$ac_objext'
17441   { (case "(($ac_try" in
17442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443   *) ac_try_echo=$ac_try;;
17444 esac
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446   (eval "$ac_try") 2>&5
17447   ac_status=$?
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); }; }; then
17450   llvm_cv_cxx_visibility_inlines_hidden=yes
17451 else
17452   echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17454
17455         llvm_cv_cxx_visibility_inlines_hidden=no
17456 fi
17457
17458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17459   CXXFLAGS="$oldcxxflags"
17460   ac_ext=c
17461 ac_cpp='$CPP $CPPFLAGS'
17462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17465
17466
17467 fi
17468 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17469 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17470 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17471   ENABLE_VISIBILITY_INLINES_HIDDEN=1
17472
17473 else
17474   ENABLE_VISIBILITY_INLINES_HIDDEN=0
17475
17476 fi
17477
17478
17479 if test "$llvm_cv_link_use_r" = "yes" ; then
17480   RPATH="-Wl,-R"
17481 else
17482   RPATH="-Wl,-rpath"
17483 fi
17484
17485
17486 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
17487   RDYNAMIC="-rdynamic"
17488 else
17489   RDYNAMIC=""
17490 fi
17491
17492
17493
17494
17495 ac_config_files="$ac_config_files Makefile.common"
17496
17497 ac_config_files="$ac_config_files Makefile.llvm.config"
17498
17499
17500 ac_config_commands="$ac_config_commands Makefile"
17501
17502
17503 ac_config_commands="$ac_config_commands lib/Makefile"
17504
17505
17506 ac_config_commands="$ac_config_commands lib/sample/Makefile"
17507
17508
17509 ac_config_commands="$ac_config_commands tools/Makefile"
17510
17511
17512 ac_config_commands="$ac_config_commands tools/sample/Makefile"
17513
17514
17515
17516 cat >confcache <<\_ACEOF
17517 # This file is a shell script that caches the results of configure
17518 # tests run on this system so they can be shared between configure
17519 # scripts and configure runs, see configure's option --config-cache.
17520 # It is not useful on other systems.  If it contains results you don't
17521 # want to keep, you may remove or edit it.
17522 #
17523 # config.status only pays attention to the cache file if you give it
17524 # the --recheck option to rerun configure.
17525 #
17526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17528 # following values.
17529
17530 _ACEOF
17531
17532 # The following way of writing the cache mishandles newlines in values,
17533 # but we know of no workaround that is simple, portable, and efficient.
17534 # So, we kill variables containing newlines.
17535 # Ultrix sh set writes to stderr and can't be redirected directly,
17536 # and sets the high bit in the cache file unless we assign to the vars.
17537 (
17538   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17539     eval ac_val=\$$ac_var
17540     case $ac_val in #(
17541     *${as_nl}*)
17542       case $ac_var in #(
17543       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17544 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17545       esac
17546       case $ac_var in #(
17547       _ | IFS | as_nl) ;; #(
17548       *) $as_unset $ac_var ;;
17549       esac ;;
17550     esac
17551   done
17552
17553   (set) 2>&1 |
17554     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17555     *${as_nl}ac_space=\ *)
17556       # `set' does not quote correctly, so add quotes (double-quote
17557       # substitution turns \\\\ into \\, and sed turns \\ into \).
17558       sed -n \
17559         "s/'/'\\\\''/g;
17560           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17561       ;; #(
17562     *)
17563       # `set' quotes correctly as required by POSIX, so do not add quotes.
17564       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17565       ;;
17566     esac |
17567     sort
17568 ) |
17569   sed '
17570      /^ac_cv_env_/b end
17571      t clear
17572      :clear
17573      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17574      t end
17575      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17576      :end' >>confcache
17577 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17578   if test -w "$cache_file"; then
17579     test "x$cache_file" != "x/dev/null" &&
17580       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17581 echo "$as_me: updating cache $cache_file" >&6;}
17582     cat confcache >$cache_file
17583   else
17584     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17585 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17586   fi
17587 fi
17588 rm -f confcache
17589
17590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17591 # Let make expand exec_prefix.
17592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17593
17594 # Transform confdefs.h into DEFS.
17595 # Protect against shell expansion while executing Makefile rules.
17596 # Protect against Makefile macro expansion.
17597 #
17598 # If the first sed substitution is executed (which looks for macros that
17599 # take arguments), then branch to the quote section.  Otherwise,
17600 # look for a macro that doesn't take arguments.
17601 ac_script='
17602 t clear
17603 :clear
17604 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
17605 t quote
17606 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
17607 t quote
17608 b any
17609 :quote
17610 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17611 s/\[/\\&/g
17612 s/\]/\\&/g
17613 s/\$/$$/g
17614 H
17615 :any
17616 ${
17617         g
17618         s/^\n//
17619         s/\n/ /g
17620         p
17621 }
17622 '
17623 DEFS=`sed -n "$ac_script" confdefs.h`
17624
17625
17626 ac_libobjs=
17627 ac_ltlibobjs=
17628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17629   # 1. Remove the extension, and $U if already installed.
17630   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17631   ac_i=`echo "$ac_i" | sed "$ac_script"`
17632   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17633   #    will be set to the directory where LIBOBJS objects are built.
17634   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17635   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17636 done
17637 LIBOBJS=$ac_libobjs
17638
17639 LTLIBOBJS=$ac_ltlibobjs
17640
17641
17642
17643 : ${CONFIG_STATUS=./config.status}
17644 ac_clean_files_save=$ac_clean_files
17645 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17646 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17647 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17648 cat >$CONFIG_STATUS <<_ACEOF
17649 #! $SHELL
17650 # Generated by $as_me.
17651 # Run this file to recreate the current configuration.
17652 # Compiler output produced by configure, useful for debugging
17653 # configure, is in config.log if it exists.
17654
17655 debug=false
17656 ac_cs_recheck=false
17657 ac_cs_silent=false
17658 SHELL=\${CONFIG_SHELL-$SHELL}
17659 _ACEOF
17660
17661 cat >>$CONFIG_STATUS <<\_ACEOF
17662 ## --------------------- ##
17663 ## M4sh Initialization.  ##
17664 ## --------------------- ##
17665
17666 # Be Bourne compatible
17667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17668   emulate sh
17669   NULLCMD=:
17670   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17671   # is contrary to our usage.  Disable this feature.
17672   alias -g '${1+"$@"}'='"$@"'
17673   setopt NO_GLOB_SUBST
17674 else
17675   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
17676 fi
17677 BIN_SH=xpg4; export BIN_SH # for Tru64
17678 DUALCASE=1; export DUALCASE # for MKS sh
17679
17680
17681 # PATH needs CR
17682 # Avoid depending upon Character Ranges.
17683 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17684 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17685 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17686 as_cr_digits='0123456789'
17687 as_cr_alnum=$as_cr_Letters$as_cr_digits
17688
17689 # The user is always right.
17690 if test "${PATH_SEPARATOR+set}" != set; then
17691   echo "#! /bin/sh" >conf$$.sh
17692   echo  "exit 0"   >>conf$$.sh
17693   chmod +x conf$$.sh
17694   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17695     PATH_SEPARATOR=';'
17696   else
17697     PATH_SEPARATOR=:
17698   fi
17699   rm -f conf$$.sh
17700 fi
17701
17702 # Support unset when possible.
17703 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17704   as_unset=unset
17705 else
17706   as_unset=false
17707 fi
17708
17709
17710 # IFS
17711 # We need space, tab and new line, in precisely that order.  Quoting is
17712 # there to prevent editors from complaining about space-tab.
17713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17714 # splitting by setting IFS to empty value.)
17715 as_nl='
17716 '
17717 IFS=" ""        $as_nl"
17718
17719 # Find who we are.  Look in the path if we contain no directory separator.
17720 case $0 in
17721   *[\\/]* ) as_myself=$0 ;;
17722   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17723 for as_dir in $PATH
17724 do
17725   IFS=$as_save_IFS
17726   test -z "$as_dir" && as_dir=.
17727   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17728 done
17729 IFS=$as_save_IFS
17730
17731      ;;
17732 esac
17733 # We did not find ourselves, most probably we were run as `sh COMMAND'
17734 # in which case we are not to be found in the path.
17735 if test "x$as_myself" = x; then
17736   as_myself=$0
17737 fi
17738 if test ! -f "$as_myself"; then
17739   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17740   { (exit 1); exit 1; }
17741 fi
17742
17743 # Work around bugs in pre-3.0 UWIN ksh.
17744 for as_var in ENV MAIL MAILPATH
17745 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17746 done
17747 PS1='$ '
17748 PS2='> '
17749 PS4='+ '
17750
17751 # NLS nuisances.
17752 for as_var in \
17753   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17754   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17755   LC_TELEPHONE LC_TIME
17756 do
17757   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17758     eval $as_var=C; export $as_var
17759   else
17760     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17761   fi
17762 done
17763
17764 # Required to use basename.
17765 if expr a : '\(a\)' >/dev/null 2>&1 &&
17766    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17767   as_expr=expr
17768 else
17769   as_expr=false
17770 fi
17771
17772 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17773   as_basename=basename
17774 else
17775   as_basename=false
17776 fi
17777
17778
17779 # Name of the executable.
17780 as_me=`$as_basename -- "$0" ||
17781 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17782          X"$0" : 'X\(//\)$' \| \
17783          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17784 echo X/"$0" |
17785     sed '/^.*\/\([^/][^/]*\)\/*$/{
17786             s//\1/
17787             q
17788           }
17789           /^X\/\(\/\/\)$/{
17790             s//\1/
17791             q
17792           }
17793           /^X\/\(\/\).*/{
17794             s//\1/
17795             q
17796           }
17797           s/.*/./; q'`
17798
17799 # CDPATH.
17800 $as_unset CDPATH
17801
17802
17803
17804   as_lineno_1=$LINENO
17805   as_lineno_2=$LINENO
17806   test "x$as_lineno_1" != "x$as_lineno_2" &&
17807   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17808
17809   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17810   # uniformly replaced by the line number.  The first 'sed' inserts a
17811   # line-number line after each line using $LINENO; the second 'sed'
17812   # does the real work.  The second script uses 'N' to pair each
17813   # line-number line with the line containing $LINENO, and appends
17814   # trailing '-' during substitution so that $LINENO is not a special
17815   # case at line end.
17816   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17817   # scripts with optimization help from Paolo Bonzini.  Blame Lee
17818   # E. McMahon (1931-1989) for sed's syntax.  :-)
17819   sed -n '
17820     p
17821     /[$]LINENO/=
17822   ' <$as_myself |
17823     sed '
17824       s/[$]LINENO.*/&-/
17825       t lineno
17826       b
17827       :lineno
17828       N
17829       :loop
17830       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17831       t loop
17832       s/-\n.*//
17833     ' >$as_me.lineno &&
17834   chmod +x "$as_me.lineno" ||
17835     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17836    { (exit 1); exit 1; }; }
17837
17838   # Don't try to exec as it changes $[0], causing all sort of problems
17839   # (the dirname of $[0] is not the place where we might find the
17840   # original and so on.  Autoconf is especially sensitive to this).
17841   . "./$as_me.lineno"
17842   # Exit status is that of the last command.
17843   exit
17844 }
17845
17846
17847 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17848   as_dirname=dirname
17849 else
17850   as_dirname=false
17851 fi
17852
17853 ECHO_C= ECHO_N= ECHO_T=
17854 case `echo -n x` in
17855 -n*)
17856   case `echo 'x\c'` in
17857   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17858   *)   ECHO_C='\c';;
17859   esac;;
17860 *)
17861   ECHO_N='-n';;
17862 esac
17863
17864 if expr a : '\(a\)' >/dev/null 2>&1 &&
17865    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17866   as_expr=expr
17867 else
17868   as_expr=false
17869 fi
17870
17871 rm -f conf$$ conf$$.exe conf$$.file
17872 if test -d conf$$.dir; then
17873   rm -f conf$$.dir/conf$$.file
17874 else
17875   rm -f conf$$.dir
17876   mkdir conf$$.dir
17877 fi
17878 echo >conf$$.file
17879 if ln -s conf$$.file conf$$ 2>/dev/null; then
17880   as_ln_s='ln -s'
17881   # ... but there are two gotchas:
17882   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17883   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17884   # In both cases, we have to default to `cp -p'.
17885   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17886     as_ln_s='cp -p'
17887 elif ln conf$$.file conf$$ 2>/dev/null; then
17888   as_ln_s=ln
17889 else
17890   as_ln_s='cp -p'
17891 fi
17892 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17893 rmdir conf$$.dir 2>/dev/null
17894
17895 if mkdir -p . 2>/dev/null; then
17896   as_mkdir_p=:
17897 else
17898   test -d ./-p && rmdir ./-p
17899   as_mkdir_p=false
17900 fi
17901
17902 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
17903 # systems may use methods other than mode bits to determine executability.
17904 cat >conf$$.file <<_ASEOF
17905 #! /bin/sh
17906 exit 0
17907 _ASEOF
17908 chmod +x conf$$.file
17909 if test -x conf$$.file >/dev/null 2>&1; then
17910   as_executable_p="test -x"
17911 else
17912   as_executable_p=:
17913 fi
17914 rm -f conf$$.file
17915
17916 # Sed expression to map a string onto a valid CPP name.
17917 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17918
17919 # Sed expression to map a string onto a valid variable name.
17920 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17921
17922
17923 exec 6>&1
17924
17925 # Save the log message, to keep $[0] and so on meaningful, and to
17926 # report actual input values of CONFIG_FILES etc. instead of their
17927 # values after options handling.
17928 ac_log="
17929 This file was extended by [SAMPLE] $as_me [x.xx], which was
17930 generated by GNU Autoconf 2.60.  Invocation command line was
17931
17932   CONFIG_FILES    = $CONFIG_FILES
17933   CONFIG_HEADERS  = $CONFIG_HEADERS
17934   CONFIG_LINKS    = $CONFIG_LINKS
17935   CONFIG_COMMANDS = $CONFIG_COMMANDS
17936   $ $0 $@
17937
17938 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17939 "
17940
17941 _ACEOF
17942
17943 cat >>$CONFIG_STATUS <<_ACEOF
17944 # Files that config.status was made for.
17945 config_files="$ac_config_files"
17946 config_commands="$ac_config_commands"
17947
17948 _ACEOF
17949
17950 cat >>$CONFIG_STATUS <<\_ACEOF
17951 ac_cs_usage="\
17952 \`$as_me' instantiates files from templates according to the
17953 current configuration.
17954
17955 Usage: $0 [OPTIONS] [FILE]...
17956
17957   -h, --help       print this help, then exit
17958   -V, --version    print version number, then exit
17959   -q, --quiet      do not print progress messages
17960   -d, --debug      don't remove temporary files
17961       --recheck    update $as_me by reconfiguring in the same conditions
17962   --file=FILE[:TEMPLATE]
17963                    instantiate the configuration file FILE
17964
17965 Configuration files:
17966 $config_files
17967
17968 Configuration commands:
17969 $config_commands
17970
17971 Report bugs to <bug-autoconf@gnu.org>."
17972
17973 _ACEOF
17974 cat >>$CONFIG_STATUS <<_ACEOF
17975 ac_cs_version="\\
17976 [SAMPLE] config.status [x.xx]
17977 configured by $0, generated by GNU Autoconf 2.60,
17978   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17979
17980 Copyright (C) 2006 Free Software Foundation, Inc.
17981 This config.status script is free software; the Free Software Foundation
17982 gives unlimited permission to copy, distribute and modify it."
17983
17984 ac_pwd='$ac_pwd'
17985 srcdir='$srcdir'
17986 INSTALL='$INSTALL'
17987 _ACEOF
17988
17989 cat >>$CONFIG_STATUS <<\_ACEOF
17990 # If no file are specified by the user, then we need to provide default
17991 # value.  By we need to know if files were specified by the user.
17992 ac_need_defaults=:
17993 while test $# != 0
17994 do
17995   case $1 in
17996   --*=*)
17997     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17998     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17999     ac_shift=:
18000     ;;
18001   *)
18002     ac_option=$1
18003     ac_optarg=$2
18004     ac_shift=shift
18005     ;;
18006   esac
18007
18008   case $ac_option in
18009   # Handling of the options.
18010   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18011     ac_cs_recheck=: ;;
18012   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18013     echo "$ac_cs_version"; exit ;;
18014   --debug | --debu | --deb | --de | --d | -d )
18015     debug=: ;;
18016   --file | --fil | --fi | --f )
18017     $ac_shift
18018     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18019     ac_need_defaults=false;;
18020   --he | --h |  --help | --hel | -h )
18021     echo "$ac_cs_usage"; exit ;;
18022   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18023   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18024     ac_cs_silent=: ;;
18025
18026   # This is an error.
18027   -*) { echo "$as_me: error: unrecognized option: $1
18028 Try \`$0 --help' for more information." >&2
18029    { (exit 1); exit 1; }; } ;;
18030
18031   *) ac_config_targets="$ac_config_targets $1"
18032      ac_need_defaults=false ;;
18033
18034   esac
18035   shift
18036 done
18037
18038 ac_configure_extra_args=
18039
18040 if $ac_cs_silent; then
18041   exec 6>/dev/null
18042   ac_configure_extra_args="$ac_configure_extra_args --silent"
18043 fi
18044
18045 _ACEOF
18046 cat >>$CONFIG_STATUS <<_ACEOF
18047 if \$ac_cs_recheck; then
18048   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18049   CONFIG_SHELL=$SHELL
18050   export CONFIG_SHELL
18051   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18052 fi
18053
18054 _ACEOF
18055 cat >>$CONFIG_STATUS <<\_ACEOF
18056 exec 5>>config.log
18057 {
18058   echo
18059   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18060 ## Running $as_me. ##
18061 _ASBOX
18062   echo "$ac_log"
18063 } >&5
18064
18065 _ACEOF
18066 cat >>$CONFIG_STATUS <<_ACEOF
18067 #
18068 # INIT-COMMANDS
18069 #
18070 llvm_src="${LLVM_SRC}"
18071
18072 _ACEOF
18073
18074 cat >>$CONFIG_STATUS <<\_ACEOF
18075
18076 # Handling of arguments.
18077 for ac_config_target in $ac_config_targets
18078 do
18079   case $ac_config_target in
18080     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18081     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
18082     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
18083     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18084     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18085     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
18086     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18087     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
18088
18089   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18090 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18091    { (exit 1); exit 1; }; };;
18092   esac
18093 done
18094
18095
18096 # If the user did not use the arguments to specify the items to instantiate,
18097 # then the envvar interface is used.  Set only those that are not.
18098 # We use the long form for the default assignment because of an extremely
18099 # bizarre bug on SunOS 4.1.3.
18100 if $ac_need_defaults; then
18101   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18102   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18103 fi
18104
18105 # Have a temporary directory for convenience.  Make it in the build tree
18106 # simply because there is no reason against having it here, and in addition,
18107 # creating and moving files from /tmp can sometimes cause problems.
18108 # Hook for its removal unless debugging.
18109 # Note that there is a small window in which the directory will not be cleaned:
18110 # after its creation but before its name has been assigned to `$tmp'.
18111 $debug ||
18112 {
18113   tmp=
18114   trap 'exit_status=$?
18115   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18116 ' 0
18117   trap '{ (exit 1); exit 1; }' 1 2 13 15
18118 }
18119 # Create a (secure) tmp directory for tmp files.
18120
18121 {
18122   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18123   test -n "$tmp" && test -d "$tmp"
18124 }  ||
18125 {
18126   tmp=./conf$$-$RANDOM
18127   (umask 077 && mkdir "$tmp")
18128 } ||
18129 {
18130    echo "$me: cannot create a temporary directory in ." >&2
18131    { (exit 1); exit 1; }
18132 }
18133
18134 #
18135 # Set up the sed scripts for CONFIG_FILES section.
18136 #
18137
18138 # No need to generate the scripts if there are no CONFIG_FILES.
18139 # This happens for instance when ./config.status config.h
18140 if test -n "$CONFIG_FILES"; then
18141
18142 _ACEOF
18143
18144
18145
18146 ac_delim='%!_!# '
18147 for ac_last_try in false false false false false :; do
18148   cat >conf$$subs.sed <<_ACEOF
18149 SHELL!$SHELL$ac_delim
18150 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18151 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18152 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18153 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18154 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18155 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18156 exec_prefix!$exec_prefix$ac_delim
18157 prefix!$prefix$ac_delim
18158 program_transform_name!$program_transform_name$ac_delim
18159 bindir!$bindir$ac_delim
18160 sbindir!$sbindir$ac_delim
18161 libexecdir!$libexecdir$ac_delim
18162 datarootdir!$datarootdir$ac_delim
18163 datadir!$datadir$ac_delim
18164 sysconfdir!$sysconfdir$ac_delim
18165 sharedstatedir!$sharedstatedir$ac_delim
18166 localstatedir!$localstatedir$ac_delim
18167 includedir!$includedir$ac_delim
18168 oldincludedir!$oldincludedir$ac_delim
18169 docdir!$docdir$ac_delim
18170 infodir!$infodir$ac_delim
18171 htmldir!$htmldir$ac_delim
18172 dvidir!$dvidir$ac_delim
18173 pdfdir!$pdfdir$ac_delim
18174 psdir!$psdir$ac_delim
18175 libdir!$libdir$ac_delim
18176 localedir!$localedir$ac_delim
18177 mandir!$mandir$ac_delim
18178 DEFS!$DEFS$ac_delim
18179 ECHO_C!$ECHO_C$ac_delim
18180 ECHO_N!$ECHO_N$ac_delim
18181 ECHO_T!$ECHO_T$ac_delim
18182 LIBS!$LIBS$ac_delim
18183 build_alias!$build_alias$ac_delim
18184 host_alias!$host_alias$ac_delim
18185 target_alias!$target_alias$ac_delim
18186 LLVM_SRC!$LLVM_SRC$ac_delim
18187 LLVM_OBJ!$LLVM_OBJ$ac_delim
18188 LLVM_VERSION!$LLVM_VERSION$ac_delim
18189 CC!$CC$ac_delim
18190 CFLAGS!$CFLAGS$ac_delim
18191 LDFLAGS!$LDFLAGS$ac_delim
18192 CPPFLAGS!$CPPFLAGS$ac_delim
18193 ac_ct_CC!$ac_ct_CC$ac_delim
18194 EXEEXT!$EXEEXT$ac_delim
18195 OBJEXT!$OBJEXT$ac_delim
18196 CXX!$CXX$ac_delim
18197 CXXFLAGS!$CXXFLAGS$ac_delim
18198 ac_ct_CXX!$ac_ct_CXX$ac_delim
18199 CPP!$CPP$ac_delim
18200 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18201 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18202 subdirs!$subdirs$ac_delim
18203 build!$build$ac_delim
18204 build_cpu!$build_cpu$ac_delim
18205 build_vendor!$build_vendor$ac_delim
18206 build_os!$build_os$ac_delim
18207 host!$host$ac_delim
18208 host_cpu!$host_cpu$ac_delim
18209 host_vendor!$host_vendor$ac_delim
18210 host_os!$host_os$ac_delim
18211 target!$target$ac_delim
18212 target_cpu!$target_cpu$ac_delim
18213 target_vendor!$target_vendor$ac_delim
18214 target_os!$target_os$ac_delim
18215 OS!$OS$ac_delim
18216 HOST_OS!$HOST_OS$ac_delim
18217 TARGET_OS!$TARGET_OS$ac_delim
18218 LINKALL!$LINKALL$ac_delim
18219 NOLINKALL!$NOLINKALL$ac_delim
18220 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18221 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18222 ARCH!$ARCH$ac_delim
18223 ENDIAN!$ENDIAN$ac_delim
18224 GREP!$GREP$ac_delim
18225 EGREP!$EGREP$ac_delim
18226 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18227 BUILD_CC!$BUILD_CC$ac_delim
18228 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18229 BUILD_CXX!$BUILD_CXX$ac_delim
18230 CVSBUILD!$CVSBUILD$ac_delim
18231 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18232 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
18233 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18234 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18235 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18236 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18237 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18238 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18239 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18240 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18241 JIT!$JIT$ac_delim
18242 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18243 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18244 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18245 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
18246 _ACEOF
18247
18248   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18249     break
18250   elif $ac_last_try; then
18251     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18252 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18253    { (exit 1); exit 1; }; }
18254   else
18255     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18256   fi
18257 done
18258
18259 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18260 if test -n "$ac_eof"; then
18261   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18262   ac_eof=`expr $ac_eof + 1`
18263 fi
18264
18265 cat >>$CONFIG_STATUS <<_ACEOF
18266 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18268 _ACEOF
18269 sed '
18270 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18271 s/^/s,@/; s/!/@,|#_!!_#|/
18272 :n
18273 t n
18274 s/'"$ac_delim"'$/,g/; t
18275 s/$/\\/; p
18276 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18277 ' >>$CONFIG_STATUS <conf$$subs.sed
18278 rm -f conf$$subs.sed
18279 cat >>$CONFIG_STATUS <<_ACEOF
18280 CEOF$ac_eof
18281 _ACEOF
18282
18283
18284 ac_delim='%!_!# '
18285 for ac_last_try in false false false false false :; do
18286   cat >conf$$subs.sed <<_ACEOF
18287 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18288 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18289 ENABLE_PIC!$ENABLE_PIC$ac_delim
18290 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18291 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18292 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18293 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18294 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18295 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18296 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18297 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18298 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18299 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18300 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18301 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18302 NM!$NM$ac_delim
18303 ifGNUmake!$ifGNUmake$ac_delim
18304 LN_S!$LN_S$ac_delim
18305 CMP!$CMP$ac_delim
18306 CP!$CP$ac_delim
18307 DATE!$DATE$ac_delim
18308 FIND!$FIND$ac_delim
18309 MKDIR!$MKDIR$ac_delim
18310 MV!$MV$ac_delim
18311 RANLIB!$RANLIB$ac_delim
18312 AR!$AR$ac_delim
18313 RM!$RM$ac_delim
18314 SED!$SED$ac_delim
18315 TAR!$TAR$ac_delim
18316 BINPWD!$BINPWD$ac_delim
18317 GRAPHVIZ!$GRAPHVIZ$ac_delim
18318 DOT!$DOT$ac_delim
18319 FDP!$FDP$ac_delim
18320 NEATO!$NEATO$ac_delim
18321 TWOPI!$TWOPI$ac_delim
18322 CIRCO!$CIRCO$ac_delim
18323 GV!$GV$ac_delim
18324 DOTTY!$DOTTY$ac_delim
18325 XDOT_PY!$XDOT_PY$ac_delim
18326 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18327 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18328 INSTALL_DATA!$INSTALL_DATA$ac_delim
18329 BZIP2!$BZIP2$ac_delim
18330 CAT!$CAT$ac_delim
18331 DOXYGEN!$DOXYGEN$ac_delim
18332 GROFF!$GROFF$ac_delim
18333 GZIPBIN!$GZIPBIN$ac_delim
18334 POD2HTML!$POD2HTML$ac_delim
18335 POD2MAN!$POD2MAN$ac_delim
18336 PDFROFF!$PDFROFF$ac_delim
18337 RUNTEST!$RUNTEST$ac_delim
18338 TCLSH!$TCLSH$ac_delim
18339 ZIP!$ZIP$ac_delim
18340 OCAMLC!$OCAMLC$ac_delim
18341 OCAMLOPT!$OCAMLOPT$ac_delim
18342 OCAMLDEP!$OCAMLDEP$ac_delim
18343 OCAMLDOC!$OCAMLDOC$ac_delim
18344 GAS!$GAS$ac_delim
18345 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18346 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18347 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18348 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18349 USE_UDIS86!$USE_UDIS86$ac_delim
18350 USE_OPROFILE!$USE_OPROFILE$ac_delim
18351 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18352 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18353 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18354 MMAP_FILE!$MMAP_FILE$ac_delim
18355 SHLIBEXT!$SHLIBEXT$ac_delim
18356 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18357 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18358 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
18359 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
18360 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
18361 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
18362 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
18363 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
18364 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
18365 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
18366 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
18367 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
18368 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
18369 RPATH!$RPATH$ac_delim
18370 RDYNAMIC!$RDYNAMIC$ac_delim
18371 LIBOBJS!$LIBOBJS$ac_delim
18372 LTLIBOBJS!$LTLIBOBJS$ac_delim
18373 _ACEOF
18374
18375   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
18376     break
18377   elif $ac_last_try; then
18378     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18380    { (exit 1); exit 1; }; }
18381   else
18382     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18383   fi
18384 done
18385
18386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18387 if test -n "$ac_eof"; then
18388   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18389   ac_eof=`expr $ac_eof + 1`
18390 fi
18391
18392 cat >>$CONFIG_STATUS <<_ACEOF
18393 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18395 _ACEOF
18396 sed '
18397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18398 s/^/s,@/; s/!/@,|#_!!_#|/
18399 :n
18400 t n
18401 s/'"$ac_delim"'$/,g/; t
18402 s/$/\\/; p
18403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18404 ' >>$CONFIG_STATUS <conf$$subs.sed
18405 rm -f conf$$subs.sed
18406 cat >>$CONFIG_STATUS <<_ACEOF
18407 :end
18408 s/|#_!!_#|//g
18409 CEOF$ac_eof
18410 _ACEOF
18411
18412
18413 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18414 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18415 # trailing colons and then remove the whole line if VPATH becomes empty
18416 # (actually we leave an empty line to preserve line numbers).
18417 if test "x$srcdir" = x.; then
18418   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18419 s/:*\$(srcdir):*/:/
18420 s/:*\${srcdir}:*/:/
18421 s/:*@srcdir@:*/:/
18422 s/^\([^=]*=[     ]*\):*/\1/
18423 s/:*$//
18424 s/^[^=]*=[       ]*$//
18425 }'
18426 fi
18427
18428 cat >>$CONFIG_STATUS <<\_ACEOF
18429 fi # test -n "$CONFIG_FILES"
18430
18431
18432 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
18433 do
18434   case $ac_tag in
18435   :[FHLC]) ac_mode=$ac_tag; continue;;
18436   esac
18437   case $ac_mode$ac_tag in
18438   :[FHL]*:*);;
18439   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18440 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18441    { (exit 1); exit 1; }; };;
18442   :[FH]-) ac_tag=-:-;;
18443   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18444   esac
18445   ac_save_IFS=$IFS
18446   IFS=:
18447   set x $ac_tag
18448   IFS=$ac_save_IFS
18449   shift
18450   ac_file=$1
18451   shift
18452
18453   case $ac_mode in
18454   :L) ac_source=$1;;
18455   :[FH])
18456     ac_file_inputs=
18457     for ac_f
18458     do
18459       case $ac_f in
18460       -) ac_f="$tmp/stdin";;
18461       *) # Look for the file first in the build tree, then in the source tree
18462          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18463          # because $ac_f cannot contain `:'.
18464          test -f "$ac_f" ||
18465            case $ac_f in
18466            [\\/$]*) false;;
18467            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18468            esac ||
18469            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18470 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18471    { (exit 1); exit 1; }; };;
18472       esac
18473       ac_file_inputs="$ac_file_inputs $ac_f"
18474     done
18475
18476     # Let's still pretend it is `configure' which instantiates (i.e., don't
18477     # use $as_me), people would be surprised to read:
18478     #    /* config.h.  Generated by config.status.  */
18479     configure_input="Generated from "`IFS=:
18480           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18481     if test x"$ac_file" != x-; then
18482       configure_input="$ac_file.  $configure_input"
18483       { echo "$as_me:$LINENO: creating $ac_file" >&5
18484 echo "$as_me: creating $ac_file" >&6;}
18485     fi
18486
18487     case $ac_tag in
18488     *:-:* | *:-) cat >"$tmp/stdin";;
18489     esac
18490     ;;
18491   esac
18492
18493   ac_dir=`$as_dirname -- "$ac_file" ||
18494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18495          X"$ac_file" : 'X\(//\)[^/]' \| \
18496          X"$ac_file" : 'X\(//\)$' \| \
18497          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18498 echo X"$ac_file" |
18499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18500             s//\1/
18501             q
18502           }
18503           /^X\(\/\/\)[^/].*/{
18504             s//\1/
18505             q
18506           }
18507           /^X\(\/\/\)$/{
18508             s//\1/
18509             q
18510           }
18511           /^X\(\/\).*/{
18512             s//\1/
18513             q
18514           }
18515           s/.*/./; q'`
18516   { as_dir="$ac_dir"
18517   case $as_dir in #(
18518   -*) as_dir=./$as_dir;;
18519   esac
18520   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18521     as_dirs=
18522     while :; do
18523       case $as_dir in #(
18524       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18525       *) as_qdir=$as_dir;;
18526       esac
18527       as_dirs="'$as_qdir' $as_dirs"
18528       as_dir=`$as_dirname -- "$as_dir" ||
18529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18530          X"$as_dir" : 'X\(//\)[^/]' \| \
18531          X"$as_dir" : 'X\(//\)$' \| \
18532          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18533 echo X"$as_dir" |
18534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18535             s//\1/
18536             q
18537           }
18538           /^X\(\/\/\)[^/].*/{
18539             s//\1/
18540             q
18541           }
18542           /^X\(\/\/\)$/{
18543             s//\1/
18544             q
18545           }
18546           /^X\(\/\).*/{
18547             s//\1/
18548             q
18549           }
18550           s/.*/./; q'`
18551       test -d "$as_dir" && break
18552     done
18553     test -z "$as_dirs" || eval "mkdir $as_dirs"
18554   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18555 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18556    { (exit 1); exit 1; }; }; }
18557   ac_builddir=.
18558
18559 case "$ac_dir" in
18560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18561 *)
18562   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18563   # A ".." for each directory in $ac_dir_suffix.
18564   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18565   case $ac_top_builddir_sub in
18566   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18567   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18568   esac ;;
18569 esac
18570 ac_abs_top_builddir=$ac_pwd
18571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18572 # for backward compatibility:
18573 ac_top_builddir=$ac_top_build_prefix
18574
18575 case $srcdir in
18576   .)  # We are building in place.
18577     ac_srcdir=.
18578     ac_top_srcdir=$ac_top_builddir_sub
18579     ac_abs_top_srcdir=$ac_pwd ;;
18580   [\\/]* | ?:[\\/]* )  # Absolute name.
18581     ac_srcdir=$srcdir$ac_dir_suffix;
18582     ac_top_srcdir=$srcdir
18583     ac_abs_top_srcdir=$srcdir ;;
18584   *) # Relative name.
18585     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18586     ac_top_srcdir=$ac_top_build_prefix$srcdir
18587     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18588 esac
18589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18590
18591
18592   case $ac_mode in
18593   :F)
18594   #
18595   # CONFIG_FILE
18596   #
18597
18598   case $INSTALL in
18599   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18600   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18601   esac
18602 _ACEOF
18603
18604 cat >>$CONFIG_STATUS <<\_ACEOF
18605 # If the template does not know about datarootdir, expand it.
18606 # FIXME: This hack should be removed a few years after 2.60.
18607 ac_datarootdir_hack=; ac_datarootdir_seen=
18608
18609 case `sed -n '/datarootdir/ {
18610   p
18611   q
18612 }
18613 /@datadir@/p
18614 /@docdir@/p
18615 /@infodir@/p
18616 /@localedir@/p
18617 /@mandir@/p
18618 ' $ac_file_inputs` in
18619 *datarootdir*) ac_datarootdir_seen=yes;;
18620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18621   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18622 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18623 _ACEOF
18624 cat >>$CONFIG_STATUS <<_ACEOF
18625   ac_datarootdir_hack='
18626   s&@datadir@&$datadir&g
18627   s&@docdir@&$docdir&g
18628   s&@infodir@&$infodir&g
18629   s&@localedir@&$localedir&g
18630   s&@mandir@&$mandir&g
18631     s&\\\${datarootdir}&$datarootdir&g' ;;
18632 esac
18633 _ACEOF
18634
18635 # Neutralize VPATH when `$srcdir' = `.'.
18636 # Shell code in configure.ac might set extrasub.
18637 # FIXME: do we really want to maintain this feature?
18638 cat >>$CONFIG_STATUS <<_ACEOF
18639   sed "$ac_vpsub
18640 $extrasub
18641 _ACEOF
18642 cat >>$CONFIG_STATUS <<\_ACEOF
18643 :t
18644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18645 s&@configure_input@&$configure_input&;t t
18646 s&@top_builddir@&$ac_top_builddir_sub&;t t
18647 s&@srcdir@&$ac_srcdir&;t t
18648 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18649 s&@top_srcdir@&$ac_top_srcdir&;t t
18650 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18651 s&@builddir@&$ac_builddir&;t t
18652 s&@abs_builddir@&$ac_abs_builddir&;t t
18653 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18654 s&@INSTALL@&$ac_INSTALL&;t t
18655 $ac_datarootdir_hack
18656 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
18657
18658 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18659   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18660   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18661   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18662 which seems to be undefined.  Please make sure it is defined." >&5
18663 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18664 which seems to be undefined.  Please make sure it is defined." >&2;}
18665
18666   rm -f "$tmp/stdin"
18667   case $ac_file in
18668   -) cat "$tmp/out"; rm -f "$tmp/out";;
18669   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18670   esac
18671  ;;
18672
18673
18674   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18675 echo "$as_me: executing $ac_file commands" >&6;}
18676  ;;
18677   esac
18678
18679
18680   case $ac_file$ac_mode in
18681     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
18682    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
18683     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
18684    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
18685     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
18686    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
18687     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
18688    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
18689     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
18690    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
18691
18692   esac
18693 done # for ac_tag
18694
18695
18696 { (exit 0); exit 0; }
18697 _ACEOF
18698 chmod +x $CONFIG_STATUS
18699 ac_clean_files=$ac_clean_files_save
18700
18701
18702 # configure is writing to config.log, and then calls config.status.
18703 # config.status does its own redirection, appending to config.log.
18704 # Unfortunately, on DOS this fails, as config.log is still kept open
18705 # by configure, so config.status won't be able to write to it; its
18706 # output is simply discarded.  So we exec the FD to /dev/null,
18707 # effectively closing config.log, so it can be properly (re)opened and
18708 # appended to by config.status.  When coming back to configure, we
18709 # need to make the FD available again.
18710 if test "$no_create" != yes; then
18711   ac_cs_success=:
18712   ac_config_status_args=
18713   test "$silent" = yes &&
18714     ac_config_status_args="$ac_config_status_args --quiet"
18715   exec 5>/dev/null
18716   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18717   exec 5>>config.log
18718   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18719   # would make configure fail if this is the last instruction.
18720   $ac_cs_success || { (exit 1); exit 1; }
18721 fi
18722
18723 #
18724 # CONFIG_SUBDIRS section.
18725 #
18726 if test "$no_recursion" != yes; then
18727
18728   # Remove --cache-file and --srcdir arguments so they do not pile up.
18729   ac_sub_configure_args=
18730   ac_prev=
18731   eval "set x $ac_configure_args"
18732   shift
18733   for ac_arg
18734   do
18735     if test -n "$ac_prev"; then
18736       ac_prev=
18737       continue
18738     fi
18739     case $ac_arg in
18740     -cache-file | --cache-file | --cache-fil | --cache-fi \
18741     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18742       ac_prev=cache_file ;;
18743     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18744     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18745     | --c=*)
18746       ;;
18747     --config-cache | -C)
18748       ;;
18749     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18750       ac_prev=srcdir ;;
18751     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18752       ;;
18753     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18754       ac_prev=prefix ;;
18755     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18756       ;;
18757     *)
18758       case $ac_arg in
18759       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18760       esac
18761       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
18762     esac
18763   done
18764
18765   # Always prepend --prefix to ensure using the same prefix
18766   # in subdir configurations.
18767   ac_arg="--prefix=$prefix"
18768   case $ac_arg in
18769   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18770   esac
18771   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
18772
18773   ac_popdir=`pwd`
18774   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18775
18776     # Do not complain, so a configure script can configure whichever
18777     # parts of a large source tree are present.
18778     test -d "$srcdir/$ac_dir" || continue
18779
18780     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18781     echo "$as_me:$LINENO: $ac_msg" >&5
18782     echo "$ac_msg" >&6
18783     { as_dir="$ac_dir"
18784   case $as_dir in #(
18785   -*) as_dir=./$as_dir;;
18786   esac
18787   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18788     as_dirs=
18789     while :; do
18790       case $as_dir in #(
18791       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18792       *) as_qdir=$as_dir;;
18793       esac
18794       as_dirs="'$as_qdir' $as_dirs"
18795       as_dir=`$as_dirname -- "$as_dir" ||
18796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18797          X"$as_dir" : 'X\(//\)[^/]' \| \
18798          X"$as_dir" : 'X\(//\)$' \| \
18799          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18800 echo X"$as_dir" |
18801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18802             s//\1/
18803             q
18804           }
18805           /^X\(\/\/\)[^/].*/{
18806             s//\1/
18807             q
18808           }
18809           /^X\(\/\/\)$/{
18810             s//\1/
18811             q
18812           }
18813           /^X\(\/\).*/{
18814             s//\1/
18815             q
18816           }
18817           s/.*/./; q'`
18818       test -d "$as_dir" && break
18819     done
18820     test -z "$as_dirs" || eval "mkdir $as_dirs"
18821   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18822 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18823    { (exit 1); exit 1; }; }; }
18824     ac_builddir=.
18825
18826 case "$ac_dir" in
18827 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18828 *)
18829   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18830   # A ".." for each directory in $ac_dir_suffix.
18831   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18832   case $ac_top_builddir_sub in
18833   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18834   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18835   esac ;;
18836 esac
18837 ac_abs_top_builddir=$ac_pwd
18838 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18839 # for backward compatibility:
18840 ac_top_builddir=$ac_top_build_prefix
18841
18842 case $srcdir in
18843   .)  # We are building in place.
18844     ac_srcdir=.
18845     ac_top_srcdir=$ac_top_builddir_sub
18846     ac_abs_top_srcdir=$ac_pwd ;;
18847   [\\/]* | ?:[\\/]* )  # Absolute name.
18848     ac_srcdir=$srcdir$ac_dir_suffix;
18849     ac_top_srcdir=$srcdir
18850     ac_abs_top_srcdir=$srcdir ;;
18851   *) # Relative name.
18852     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18853     ac_top_srcdir=$ac_top_build_prefix$srcdir
18854     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18855 esac
18856 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18857
18858
18859     cd "$ac_dir"
18860
18861     # Check for guested configure; otherwise get Cygnus style configure.
18862     if test -f "$ac_srcdir/configure.gnu"; then
18863       ac_sub_configure=$ac_srcdir/configure.gnu
18864     elif test -f "$ac_srcdir/configure"; then
18865       ac_sub_configure=$ac_srcdir/configure
18866     elif test -f "$ac_srcdir/configure.in"; then
18867       # This should be Cygnus configure.
18868       ac_sub_configure=$ac_aux_dir/configure
18869     else
18870       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18871 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18872       ac_sub_configure=
18873     fi
18874
18875     # The recursion is here.
18876     if test -n "$ac_sub_configure"; then
18877       # Make the cache file name correct relative to the subdirectory.
18878       case $cache_file in
18879       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18880       *) # Relative name.
18881         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18882       esac
18883
18884       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18885 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18886       # The eval makes quoting arguments work.
18887       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18888            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18889         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18890 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18891    { (exit 1); exit 1; }; }
18892     fi
18893
18894     cd "$ac_popdir"
18895   done
18896 fi
18897