misched interface: rename Begin/End to RegionBegin/RegionEnd since they are not private.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 ENABLE_CBE_PRINTF_A
709 OPTIMIZE_OPTION
710 EXTRA_OPTIONS
711 EXTRA_LD_OPTIONS
712 CLANG_SRC_ROOT
713 BINUTILS_INCDIR
714 INTERNAL_PREFIX
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 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 INSTALL_LTDL_TRUE
760 INSTALL_LTDL_FALSE
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
763 LIBADD_DL
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HUGE_VAL_SANITY
771 MMAP_FILE
772 SHLIBEXT
773 SHLIBPATH_VAR
774 LLVM_PREFIX
775 LLVM_BINDIR
776 LLVM_LIBDIR
777 LLVM_DATADIR
778 LLVM_DOCSDIR
779 LLVM_ETCDIR
780 LLVM_INCLUDEDIR
781 LLVM_INFODIR
782 LLVM_MANDIR
783 LLVM_CONFIGTIME
784 BINDINGS_TO_BUILD
785 ALL_BINDINGS
786 OCAML_LIBDIR
787 ENABLE_VISIBILITY_INLINES_HIDDEN
788 RPATH
789 RDYNAMIC
790 LIBOBJS
791 LTLIBOBJS'
792 ac_subst_files=''
793       ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 CPPFLAGS
800 CXX
801 CXXFLAGS
802 CCC
803 CPP'
804 ac_subdirs_all='projects/llvm-gcc
805 projects/test-suite
806 projects/llvm-test
807 projects/poolalloc
808 projects/llvm-poolalloc
809 projects/sample
810 projects/privbracket
811 projects/llvm-stacker
812 projects/llvm-reopt
813 projects/llvm-java
814 projects/llvm-tv
815 projects/safecode
816 projects/llvm-kernel
817 tools/polly'
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *)    ac_optarg=yes ;;
879   esac
880
881   # Accept the important Cygnus configure options, so we can diagnose typos.
882
883   case $ac_dashdash$ac_option in
884   --)
885     ac_dashdash=yes ;;
886
887   -bindir | --bindir | --bindi | --bind | --bin | --bi)
888     ac_prev=bindir ;;
889   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890     bindir=$ac_optarg ;;
891
892   -build | --build | --buil | --bui | --bu)
893     ac_prev=build_alias ;;
894   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895     build_alias=$ac_optarg ;;
896
897   -cache-file | --cache-file | --cache-fil | --cache-fi \
898   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899     ac_prev=cache_file ;;
900   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902     cache_file=$ac_optarg ;;
903
904   --config-cache | -C)
905     cache_file=config.cache ;;
906
907   -datadir | --datadir | --datadi | --datad)
908     ac_prev=datadir ;;
909   -datadir=* | --datadir=* | --datadi=* | --datad=*)
910     datadir=$ac_optarg ;;
911
912   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913   | --dataroo | --dataro | --datar)
914     ac_prev=datarootdir ;;
915   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917     datarootdir=$ac_optarg ;;
918
919   -disable-* | --disable-*)
920     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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=no ;;
927
928   -docdir | --docdir | --docdi | --doc | --do)
929     ac_prev=docdir ;;
930   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931     docdir=$ac_optarg ;;
932
933   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934     ac_prev=dvidir ;;
935   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936     dvidir=$ac_optarg ;;
937
938   -enable-* | --enable-*)
939     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943    { (exit 1); exit 1; }; }
944     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945     eval enable_$ac_feature=\$ac_optarg ;;
946
947   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949   | --exec | --exe | --ex)
950     ac_prev=exec_prefix ;;
951   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953   | --exec=* | --exe=* | --ex=*)
954     exec_prefix=$ac_optarg ;;
955
956   -gas | --gas | --ga | --g)
957     # Obsolete; use --with-gas.
958     with_gas=yes ;;
959
960   -help | --help | --hel | --he | -h)
961     ac_init_help=long ;;
962   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963     ac_init_help=recursive ;;
964   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965     ac_init_help=short ;;
966
967   -host | --host | --hos | --ho)
968     ac_prev=host_alias ;;
969   -host=* | --host=* | --hos=* | --ho=*)
970     host_alias=$ac_optarg ;;
971
972   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973     ac_prev=htmldir ;;
974   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975   | --ht=*)
976     htmldir=$ac_optarg ;;
977
978   -includedir | --includedir | --includedi | --included | --include \
979   | --includ | --inclu | --incl | --inc)
980     ac_prev=includedir ;;
981   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982   | --includ=* | --inclu=* | --incl=* | --inc=*)
983     includedir=$ac_optarg ;;
984
985   -infodir | --infodir | --infodi | --infod | --info | --inf)
986     ac_prev=infodir ;;
987   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988     infodir=$ac_optarg ;;
989
990   -libdir | --libdir | --libdi | --libd)
991     ac_prev=libdir ;;
992   -libdir=* | --libdir=* | --libdi=* | --libd=*)
993     libdir=$ac_optarg ;;
994
995   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996   | --libexe | --libex | --libe)
997     ac_prev=libexecdir ;;
998   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999   | --libexe=* | --libex=* | --libe=*)
1000     libexecdir=$ac_optarg ;;
1001
1002   -localedir | --localedir | --localedi | --localed | --locale)
1003     ac_prev=localedir ;;
1004   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005     localedir=$ac_optarg ;;
1006
1007   -localstatedir | --localstatedir | --localstatedi | --localstated \
1008   | --localstate | --localstat | --localsta | --localst | --locals)
1009     ac_prev=localstatedir ;;
1010   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012     localstatedir=$ac_optarg ;;
1013
1014   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015     ac_prev=mandir ;;
1016   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017     mandir=$ac_optarg ;;
1018
1019   -nfp | --nfp | --nf)
1020     # Obsolete; use --without-fp.
1021     with_fp=no ;;
1022
1023   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024   | --no-cr | --no-c | -n)
1025     no_create=yes ;;
1026
1027   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029     no_recursion=yes ;;
1030
1031   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033   | --oldin | --oldi | --old | --ol | --o)
1034     ac_prev=oldincludedir ;;
1035   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038     oldincludedir=$ac_optarg ;;
1039
1040   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041     ac_prev=prefix ;;
1042   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043     prefix=$ac_optarg ;;
1044
1045   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046   | --program-pre | --program-pr | --program-p)
1047     ac_prev=program_prefix ;;
1048   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050     program_prefix=$ac_optarg ;;
1051
1052   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053   | --program-suf | --program-su | --program-s)
1054     ac_prev=program_suffix ;;
1055   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057     program_suffix=$ac_optarg ;;
1058
1059   -program-transform-name | --program-transform-name \
1060   | --program-transform-nam | --program-transform-na \
1061   | --program-transform-n | --program-transform- \
1062   | --program-transform | --program-transfor \
1063   | --program-transfo | --program-transf \
1064   | --program-trans | --program-tran \
1065   | --progr-tra | --program-tr | --program-t)
1066     ac_prev=program_transform_name ;;
1067   -program-transform-name=* | --program-transform-name=* \
1068   | --program-transform-nam=* | --program-transform-na=* \
1069   | --program-transform-n=* | --program-transform-=* \
1070   | --program-transform=* | --program-transfor=* \
1071   | --program-transfo=* | --program-transf=* \
1072   | --program-trans=* | --program-tran=* \
1073   | --progr-tra=* | --program-tr=* | --program-t=*)
1074     program_transform_name=$ac_optarg ;;
1075
1076   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077     ac_prev=pdfdir ;;
1078   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079     pdfdir=$ac_optarg ;;
1080
1081   -psdir | --psdir | --psdi | --psd | --ps)
1082     ac_prev=psdir ;;
1083   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084     psdir=$ac_optarg ;;
1085
1086   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087   | -silent | --silent | --silen | --sile | --sil)
1088     silent=yes ;;
1089
1090   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091     ac_prev=sbindir ;;
1092   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093   | --sbi=* | --sb=*)
1094     sbindir=$ac_optarg ;;
1095
1096   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098   | --sharedst | --shareds | --shared | --share | --shar \
1099   | --sha | --sh)
1100     ac_prev=sharedstatedir ;;
1101   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104   | --sha=* | --sh=*)
1105     sharedstatedir=$ac_optarg ;;
1106
1107   -site | --site | --sit)
1108     ac_prev=site ;;
1109   -site=* | --site=* | --sit=*)
1110     site=$ac_optarg ;;
1111
1112   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113     ac_prev=srcdir ;;
1114   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115     srcdir=$ac_optarg ;;
1116
1117   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118   | --syscon | --sysco | --sysc | --sys | --sy)
1119     ac_prev=sysconfdir ;;
1120   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122     sysconfdir=$ac_optarg ;;
1123
1124   -target | --target | --targe | --targ | --tar | --ta | --t)
1125     ac_prev=target_alias ;;
1126   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127     target_alias=$ac_optarg ;;
1128
1129   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130     verbose=yes ;;
1131
1132   -version | --version | --versio | --versi | --vers | -V)
1133     ac_init_version=: ;;
1134
1135   -with-* | --with-*)
1136     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139       { echo "$as_me: error: invalid package name: $ac_package" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_package=`echo $ac_package| sed 's/-/_/g'`
1142     eval with_$ac_package=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148       { echo "$as_me: error: invalid package name: $ac_package" >&2
1149    { (exit 1); exit 1; }; }
1150     ac_package=`echo $ac_package | sed 's/-/_/g'`
1151     eval with_$ac_package=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173    { (exit 1); exit 1; }; }
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181    { (exit 1); exit 1; }; }
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   { echo "$as_me: error: missing argument to $ac_option" >&2
1199    { (exit 1); exit 1; }; }
1200 fi
1201
1202 # Be sure to have absolute directory names.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   case $ac_val in
1210     [\\/$]* | ?:[\\/]* )  continue;;
1211     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212   esac
1213   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214    { (exit 1); exit 1; }; }
1215 done
1216
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1223
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226   if test "x$build_alias" = x; then
1227     cross_compiling=maybe
1228     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229     If a cross compiler is detected then cross compile mode will be used." >&2
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   { echo "$as_me: error: Working directory cannot be determined" >&2
1245    { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   { echo "$as_me: error: pwd does not report name of working directory" >&2
1248    { (exit 1); exit 1; }; }
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$0" : 'X\(//\)[^/]' \| \
1258          X"$0" : 'X\(//\)$' \| \
1259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 echo X"$0" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288    { (exit 1); exit 1; }; }
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293    { (exit 1); exit 1; }; }
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR           user executables [EPREFIX/bin]
1354   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR       program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR           object code libraries [EPREFIX/lib]
1360   --includedir=DIR       C header files [PREFIX/include]
1361   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR          info documentation [DATAROOTDIR/info]
1365   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR           man documentation [DATAROOTDIR/man]
1367   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1368   --htmldir=DIR          html documentation [DOCDIR]
1369   --dvidir=DIR           dvi documentation [DOCDIR]
1370   --pdfdir=DIR           pdf documentation [DOCDIR]
1371   --psdir=DIR            ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379   --target=TARGET   configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1386    esac
1387   cat <<\_ACEOF
1388
1389 Optional Features:
1390   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392   --enable-polly          Use polly if available (default is YES)
1393   --enable-libcpp         Use libc++ if available (default is NO)
1394   --enable-optimized      Compile with optimizations enabled (default is NO)
1395   --enable-profiling      Compile with profiling enabled (default is NO)
1396   --enable-assertions     Compile with assertion checks enabled (default is
1397                           YES)
1398   --enable-expensive-checks
1399                           Compile with expensive debug checks enabled (default
1400                           is NO)
1401   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1402                           NO)
1403   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1404                           optimization is on and YES if it's off)
1405   --enable-jit            Enable Just In Time Compiling (default is YES)
1406   --enable-docs           Build documents (default is YES)
1407   --enable-doxygen        Build doxygen documentation (default is NO)
1408   --enable-threads        Use threads if available (default is YES)
1409   --enable-pthreads       Use pthreads if available (default is YES)
1410   --enable-pic            Build LLVM with Position Independent Code (default
1411                           is YES)
1412   --enable-shared         Build a shared library and link tools against it
1413                           (default is NO)
1414   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1415                           Win32 DLL (default is NO)
1416   --enable-timestamps     Enable embedding timestamp information in build
1417                           (default is YES)
1418   --enable-targets        Build specific host targets: all or
1419                           target1,target2,... Valid targets are: host, x86,
1420                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1421                           xcore, msp430, ptx, cbe, and cpp (default=all)
1422   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1423                           %a (default is YES)
1424   --enable-bindings       Build specific language bindings:
1425                           all,auto,none,{binding-name} (default=auto)
1426   --enable-libffi         Check for the presence of libffi (default is NO)
1427   --enable-ltdl-install   install libltdl
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432   --with-optimize-option  Select the compiler options to use for optimized
1433                           builds
1434   --with-extra-options    Specify additional options to compile LLVM with
1435   --with-extra-ld-options Specify additional options to link LLVM with
1436   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1437                           is stdlib)
1438   --with-clang-srcdir     Directory to the out-of-tree Clang source
1439   --with-clang-resource-dir
1440                           Relative directory from the Clang binary for
1441                           resource files
1442   --with-c-include-dirs   Colon separated list of directories clang will
1443                           search for headers
1444   --with-gcc-toolchain    Directory where gcc is installed.
1445   --with-binutils-include Specify path to binutils/include/ containing
1446                           plugin-api.h file for gold plugin.
1447   --with-bug-report-url   Specify the URL where bug reports should be
1448                           submitted (default=http://llvm.org/bugs/)
1449   --with-internal-prefix  Installation directory for internal files
1450   --with-tclinclude       directory where tcl headers are
1451   --with-udis86=<path>    Use udis86 external x86 disassembler library
1452   --with-oprofile=<prefix>
1453                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1454
1455 Some influential environment variables:
1456   CC          C compiler command
1457   CFLAGS      C compiler flags
1458   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1459               nonstandard directory <lib dir>
1460   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461               you have headers in a nonstandard directory <include dir>
1462   CXX         C++ compiler command
1463   CXXFLAGS    C++ compiler flags
1464   CPP         C preprocessor
1465
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1468
1469 Report bugs to <http://llvm.org/bugs/>.
1470 _ACEOF
1471 ac_status=$?
1472 fi
1473
1474 if test "$ac_init_help" = "recursive"; then
1475   # If there are subdirs, report their specific --help.
1476   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477     test -d "$ac_dir" || continue
1478     ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1484   # A ".." for each directory in $ac_dir_suffix.
1485   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1486   case $ac_top_builddir_sub in
1487   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489   esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497   .)  # We are building in place.
1498     ac_srcdir=.
1499     ac_top_srcdir=$ac_top_builddir_sub
1500     ac_abs_top_srcdir=$ac_pwd ;;
1501   [\\/]* | ?:[\\/]* )  # Absolute name.
1502     ac_srcdir=$srcdir$ac_dir_suffix;
1503     ac_top_srcdir=$srcdir
1504     ac_abs_top_srcdir=$srcdir ;;
1505   *) # Relative name.
1506     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507     ac_top_srcdir=$ac_top_build_prefix$srcdir
1508     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512     cd "$ac_dir" || { ac_status=$?; continue; }
1513     # Check for guested configure.
1514     if test -f "$ac_srcdir/configure.gnu"; then
1515       echo &&
1516       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517     elif test -f "$ac_srcdir/configure"; then
1518       echo &&
1519       $SHELL "$ac_srcdir/configure" --help=recursive
1520     else
1521       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522     fi || ac_status=$?
1523     cd "$ac_pwd" || { ac_status=$?; break; }
1524   done
1525 fi
1526
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529   cat <<\_ACEOF
1530 LLVM configure 3.1svn
1531 generated by GNU Autoconf 2.60
1532
1533 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1534 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537
1538 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1539 _ACEOF
1540   exit
1541 fi
1542 cat >config.log <<_ACEOF
1543 This file contains any messages produced by compilers while
1544 running configure, to aid debugging if configure makes a mistake.
1545
1546 It was created by LLVM $as_me 3.1svn, which was
1547 generated by GNU Autoconf 2.60.  Invocation command line was
1548
1549   $ $0 $@
1550
1551 _ACEOF
1552 exec 5>>config.log
1553 {
1554 cat <<_ASUNAME
1555 ## --------- ##
1556 ## Platform. ##
1557 ## --------- ##
1558
1559 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1560 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1561 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1562 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1563 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1564
1565 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1566 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1567
1568 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1569 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1570 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1571 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1572 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1573 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1574 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1575
1576 _ASUNAME
1577
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1580 do
1581   IFS=$as_save_IFS
1582   test -z "$as_dir" && as_dir=.
1583   echo "PATH: $as_dir"
1584 done
1585 IFS=$as_save_IFS
1586
1587 } >&5
1588
1589 cat >&5 <<_ACEOF
1590
1591
1592 ## ----------- ##
1593 ## Core tests. ##
1594 ## ----------- ##
1595
1596 _ACEOF
1597
1598
1599 # Keep a trace of the command line.
1600 # Strip out --no-create and --no-recursion so they do not pile up.
1601 # Strip out --silent because we don't want to record it for future runs.
1602 # Also quote any args containing shell meta-characters.
1603 # Make two passes to allow for proper duplicate-argument suppression.
1604 ac_configure_args=
1605 ac_configure_args0=
1606 ac_configure_args1=
1607 ac_must_keep_next=false
1608 for ac_pass in 1 2
1609 do
1610   for ac_arg
1611   do
1612     case $ac_arg in
1613     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1614     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615     | -silent | --silent | --silen | --sile | --sil)
1616       continue ;;
1617     *\'*)
1618       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1619     esac
1620     case $ac_pass in
1621     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1622     2)
1623       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1624       if test $ac_must_keep_next = true; then
1625         ac_must_keep_next=false # Got value, back to normal.
1626       else
1627         case $ac_arg in
1628           *=* | --config-cache | -C | -disable-* | --disable-* \
1629           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1630           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1631           | -with-* | --with-* | -without-* | --without-* | --x)
1632             case "$ac_configure_args0 " in
1633               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1634             esac
1635             ;;
1636           -* ) ac_must_keep_next=true ;;
1637         esac
1638       fi
1639       ac_configure_args="$ac_configure_args '$ac_arg'"
1640       ;;
1641     esac
1642   done
1643 done
1644 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1645 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1646
1647 # When interrupted or exit'd, cleanup temporary files, and complete
1648 # config.log.  We remove comments because anyway the quotes in there
1649 # would cause problems or look ugly.
1650 # WARNING: Use '\'' to represent an apostrophe within the trap.
1651 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1652 trap 'exit_status=$?
1653   # Save into config.log some information that might help in debugging.
1654   {
1655     echo
1656
1657     cat <<\_ASBOX
1658 ## ---------------- ##
1659 ## Cache variables. ##
1660 ## ---------------- ##
1661 _ASBOX
1662     echo
1663     # The following way of writing the cache mishandles newlines in values,
1664 (
1665   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1666     eval ac_val=\$$ac_var
1667     case $ac_val in #(
1668     *${as_nl}*)
1669       case $ac_var in #(
1670       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1671 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1672       esac
1673       case $ac_var in #(
1674       _ | IFS | as_nl) ;; #(
1675       *) $as_unset $ac_var ;;
1676       esac ;;
1677     esac
1678   done
1679   (set) 2>&1 |
1680     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1681     *${as_nl}ac_space=\ *)
1682       sed -n \
1683         "s/'\''/'\''\\\\'\'''\''/g;
1684           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1685       ;; #(
1686     *)
1687       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1688       ;;
1689     esac |
1690     sort
1691 )
1692     echo
1693
1694     cat <<\_ASBOX
1695 ## ----------------- ##
1696 ## Output variables. ##
1697 ## ----------------- ##
1698 _ASBOX
1699     echo
1700     for ac_var in $ac_subst_vars
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
1710     if test -n "$ac_subst_files"; then
1711       cat <<\_ASBOX
1712 ## ------------------- ##
1713 ## File substitutions. ##
1714 ## ------------------- ##
1715 _ASBOX
1716       echo
1717       for ac_var in $ac_subst_files
1718       do
1719         eval ac_val=\$$ac_var
1720         case $ac_val in
1721         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722         esac
1723         echo "$ac_var='\''$ac_val'\''"
1724       done | sort
1725       echo
1726     fi
1727
1728     if test -s confdefs.h; then
1729       cat <<\_ASBOX
1730 ## ----------- ##
1731 ## confdefs.h. ##
1732 ## ----------- ##
1733 _ASBOX
1734       echo
1735       cat confdefs.h
1736       echo
1737     fi
1738     test "$ac_signal" != 0 &&
1739       echo "$as_me: caught signal $ac_signal"
1740     echo "$as_me: exit $exit_status"
1741   } >&5
1742   rm -f core *.core core.conftest.* &&
1743     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1744     exit $exit_status
1745 ' 0
1746 for ac_signal in 1 2 13 15; do
1747   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1748 done
1749 ac_signal=0
1750
1751 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1752 rm -f -r conftest* confdefs.h
1753
1754 # Predefined preprocessor variables.
1755
1756 cat >>confdefs.h <<_ACEOF
1757 #define PACKAGE_NAME "$PACKAGE_NAME"
1758 _ACEOF
1759
1760
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1763 _ACEOF
1764
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1768 _ACEOF
1769
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_STRING "$PACKAGE_STRING"
1773 _ACEOF
1774
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1778 _ACEOF
1779
1780
1781 # Let the site file select an alternate cache file if it wants to.
1782 # Prefer explicitly selected file to automatically selected ones.
1783 if test -n "$CONFIG_SITE"; then
1784   set x "$CONFIG_SITE"
1785 elif test "x$prefix" != xNONE; then
1786   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1787 else
1788   set x "$ac_default_prefix/share/config.site" \
1789         "$ac_default_prefix/etc/config.site"
1790 fi
1791 shift
1792 for ac_site_file
1793 do
1794   if test -r "$ac_site_file"; then
1795     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1796 echo "$as_me: loading site script $ac_site_file" >&6;}
1797     sed 's/^/| /' "$ac_site_file" >&5
1798     . "$ac_site_file"
1799   fi
1800 done
1801
1802 if test -r "$cache_file"; then
1803   # Some versions of bash will fail to source /dev/null (special
1804   # files actually), so we avoid doing that.
1805   if test -f "$cache_file"; then
1806     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1807 echo "$as_me: loading cache $cache_file" >&6;}
1808     case $cache_file in
1809       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1810       *)                      . "./$cache_file";;
1811     esac
1812   fi
1813 else
1814   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1815 echo "$as_me: creating cache $cache_file" >&6;}
1816   >$cache_file
1817 fi
1818
1819 # Check that the precious variables saved in the cache have kept the same
1820 # value.
1821 ac_cache_corrupted=false
1822 for ac_var in $ac_precious_vars; do
1823   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1824   eval ac_new_set=\$ac_env_${ac_var}_set
1825   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1826   eval ac_new_val=\$ac_env_${ac_var}_value
1827   case $ac_old_set,$ac_new_set in
1828     set,)
1829       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1830 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1831       ac_cache_corrupted=: ;;
1832     ,set)
1833       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1835       ac_cache_corrupted=: ;;
1836     ,);;
1837     *)
1838       if test "x$ac_old_val" != "x$ac_new_val"; then
1839         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1840 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1841         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1842 echo "$as_me:   former value:  $ac_old_val" >&2;}
1843         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1844 echo "$as_me:   current value: $ac_new_val" >&2;}
1845         ac_cache_corrupted=:
1846       fi;;
1847   esac
1848   # Pass precious variables to config.status.
1849   if test "$ac_new_set" = set; then
1850     case $ac_new_val in
1851     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1852     *) ac_arg=$ac_var=$ac_new_val ;;
1853     esac
1854     case " $ac_configure_args " in
1855       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1856       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1857     esac
1858   fi
1859 done
1860 if $ac_cache_corrupted; then
1861   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1862 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1863   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1864 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1865    { (exit 1); exit 1; }; }
1866 fi
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892 ac_ext=c
1893 ac_cpp='$CPP $CPPFLAGS'
1894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897
1898
1899
1900 cat >>confdefs.h <<\_ACEOF
1901 #define LLVM_VERSION_MAJOR 3
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<\_ACEOF
1906 #define LLVM_VERSION_MINOR 1
1907 _ACEOF
1908
1909
1910 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1911
1912
1913
1914
1915
1916
1917
1918 ac_aux_dir=
1919 for ac_dir in autoconf "$srcdir"/autoconf; do
1920   if test -f "$ac_dir/install-sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install-sh -c"
1923     break
1924   elif test -f "$ac_dir/install.sh"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/install.sh -c"
1927     break
1928   elif test -f "$ac_dir/shtool"; then
1929     ac_aux_dir=$ac_dir
1930     ac_install_sh="$ac_aux_dir/shtool install -c"
1931     break
1932   fi
1933 done
1934 if test -z "$ac_aux_dir"; then
1935   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1936 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1937    { (exit 1); exit 1; }; }
1938 fi
1939
1940 # These three variables are undocumented and unsupported,
1941 # and are intended to be withdrawn in a future Autoconf release.
1942 # They can cause serious problems if a builder's source tree is in a directory
1943 # whose full name contains unusual characters.
1944 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1945 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1946 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1947
1948
1949
1950 if test ${srcdir} != "." ; then
1951   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1952     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1953 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1954    { (exit 1); exit 1; }; }
1955   fi
1956 fi
1957
1958 ac_ext=c
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963 if test -n "$ac_tool_prefix"; then
1964   for ac_prog in clang llvm-gcc gcc
1965   do
1966     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1967 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   if test -n "$CC"; then
1974   ac_cv_prog_CC="$CC" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979   IFS=$as_save_IFS
1980   test -z "$as_dir" && as_dir=.
1981   for ac_exec_ext in '' $ac_executable_extensions; do
1982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1983     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985     break 2
1986   fi
1987 done
1988 done
1989 IFS=$as_save_IFS
1990
1991 fi
1992 fi
1993 CC=$ac_cv_prog_CC
1994 if test -n "$CC"; then
1995   { echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6; }
1997 else
1998   { echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6; }
2000 fi
2001
2002
2003     test -n "$CC" && break
2004   done
2005 fi
2006 if test -z "$CC"; then
2007   ac_ct_CC=$CC
2008   for ac_prog in clang llvm-gcc gcc
2009 do
2010   # Extract the first word of "$ac_prog", so it can be a program name with args.
2011 set dummy $ac_prog; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015   echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017   if test -n "$ac_ct_CC"; then
2018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025   for ac_exec_ext in '' $ac_executable_extensions; do
2026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2027     ac_cv_prog_ac_ct_CC="$ac_prog"
2028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029     break 2
2030   fi
2031 done
2032 done
2033 IFS=$as_save_IFS
2034
2035 fi
2036 fi
2037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038 if test -n "$ac_ct_CC"; then
2039   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6; }
2041 else
2042   { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2044 fi
2045
2046
2047   test -n "$ac_ct_CC" && break
2048 done
2049
2050   if test "x$ac_ct_CC" = x; then
2051     CC=""
2052   else
2053     case $cross_compiling:$ac_tool_warned in
2054 yes:)
2055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2056 whose name does not start with the host triplet.  If you think this
2057 configuration is useful to you, please write to autoconf@gnu.org." >&5
2058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2059 whose name does not start with the host triplet.  If you think this
2060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2061 ac_tool_warned=yes ;;
2062 esac
2063     CC=$ac_ct_CC
2064   fi
2065 fi
2066
2067
2068 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2069 See \`config.log' for more details." >&5
2070 echo "$as_me: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&2;}
2072    { (exit 1); exit 1; }; }
2073
2074 # Provide some information about the compiler.
2075 echo "$as_me:$LINENO: checking for C compiler version" >&5
2076 ac_compiler=`set X $ac_compile; echo $2`
2077 { (ac_try="$ac_compiler --version >&5"
2078 case "(($ac_try" in
2079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080   *) ac_try_echo=$ac_try;;
2081 esac
2082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2083   (eval "$ac_compiler --version >&5") 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }
2087 { (ac_try="$ac_compiler -v >&5"
2088 case "(($ac_try" in
2089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090   *) ac_try_echo=$ac_try;;
2091 esac
2092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2093   (eval "$ac_compiler -v >&5") 2>&5
2094   ac_status=$?
2095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096   (exit $ac_status); }
2097 { (ac_try="$ac_compiler -V >&5"
2098 case "(($ac_try" in
2099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100   *) ac_try_echo=$ac_try;;
2101 esac
2102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2103   (eval "$ac_compiler -V >&5") 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }
2107
2108 cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h.  */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h.  */
2114
2115 int
2116 main ()
2117 {
2118
2119   ;
2120   return 0;
2121 }
2122 _ACEOF
2123 ac_clean_files_save=$ac_clean_files
2124 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2125 # Try to create an executable without -o first, disregard a.out.
2126 # It will help us diagnose broken compilers, and finding out an intuition
2127 # of exeext.
2128 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2129 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2130 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2131 #
2132 # List of possible output files, starting from the most likely.
2133 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2134 # only as a last resort.  b.out is created by i960 compilers.
2135 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2136 #
2137 # The IRIX 6 linker writes into existing files which may not be
2138 # executable, retaining their permissions.  Remove them first so a
2139 # subsequent execution test works.
2140 ac_rmfiles=
2141 for ac_file in $ac_files
2142 do
2143   case $ac_file in
2144     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2145     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2146   esac
2147 done
2148 rm -f $ac_rmfiles
2149
2150 if { (ac_try="$ac_link_default"
2151 case "(($ac_try" in
2152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153   *) ac_try_echo=$ac_try;;
2154 esac
2155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2156   (eval "$ac_link_default") 2>&5
2157   ac_status=$?
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); }; then
2160   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2161 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2162 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2163 # so that the user can short-circuit this test for compilers unknown to
2164 # Autoconf.
2165 for ac_file in $ac_files
2166 do
2167   test -f "$ac_file" || continue
2168   case $ac_file in
2169     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2170         ;;
2171     [ab].out )
2172         # We found the default executable, but exeext='' is most
2173         # certainly right.
2174         break;;
2175     *.* )
2176         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2177         then :; else
2178            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2179         fi
2180         # We set ac_cv_exeext here because the later test for it is not
2181         # safe: cross compilers may not add the suffix if given an `-o'
2182         # argument, so we may need to know it at that point already.
2183         # Even if this section looks crufty: it has the advantage of
2184         # actually working.
2185         break;;
2186     * )
2187         break;;
2188   esac
2189 done
2190 test "$ac_cv_exeext" = no && ac_cv_exeext=
2191
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: C compiler cannot create executables
2199 See \`config.log' for more details." >&2;}
2200    { (exit 77); exit 77; }; }
2201 fi
2202
2203 ac_exeext=$ac_cv_exeext
2204 { echo "$as_me:$LINENO: result: $ac_file" >&5
2205 echo "${ECHO_T}$ac_file" >&6; }
2206
2207 # Check that the compiler produces executables we can run.  If not, either
2208 # the compiler is broken, or we cross compile.
2209 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2210 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2211 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2212 # If not cross compiling, check that we can run a simple program.
2213 if test "$cross_compiling" != yes; then
2214   if { ac_try='./$ac_file'
2215   { (case "(($ac_try" in
2216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217   *) ac_try_echo=$ac_try;;
2218 esac
2219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2220   (eval "$ac_try") 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }; }; then
2224     cross_compiling=no
2225   else
2226     if test "$cross_compiling" = maybe; then
2227         cross_compiling=yes
2228     else
2229         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&2;}
2235    { (exit 1); exit 1; }; }
2236     fi
2237   fi
2238 fi
2239 { echo "$as_me:$LINENO: result: yes" >&5
2240 echo "${ECHO_T}yes" >&6; }
2241
2242 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2243 ac_clean_files=$ac_clean_files_save
2244 # Check that the compiler produces executables we can run.  If not, either
2245 # the compiler is broken, or we cross compile.
2246 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2247 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2248 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2249 echo "${ECHO_T}$cross_compiling" >&6; }
2250
2251 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2252 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2253 if { (ac_try="$ac_link"
2254 case "(($ac_try" in
2255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256   *) ac_try_echo=$ac_try;;
2257 esac
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259   (eval "$ac_link") 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; then
2263   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2264 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2265 # work properly (i.e., refer to `conftest.exe'), while it won't with
2266 # `rm'.
2267 for ac_file in conftest.exe conftest conftest.*; do
2268   test -f "$ac_file" || continue
2269   case $ac_file in
2270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2271     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272           break;;
2273     * ) break;;
2274   esac
2275 done
2276 else
2277   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&2;}
2281    { (exit 1); exit 1; }; }
2282 fi
2283
2284 rm -f conftest$ac_cv_exeext
2285 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2286 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2287
2288 rm -f conftest.$ac_ext
2289 EXEEXT=$ac_cv_exeext
2290 ac_exeext=$EXEEXT
2291 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2292 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2293 if test "${ac_cv_objext+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302
2303 int
2304 main ()
2305 {
2306
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 rm -f conftest.o conftest.obj
2312 if { (ac_try="$ac_compile"
2313 case "(($ac_try" in
2314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315   *) ac_try_echo=$ac_try;;
2316 esac
2317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2318   (eval "$ac_compile") 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; then
2322   for ac_file in conftest.o conftest.obj conftest.*; do
2323   test -f "$ac_file" || continue;
2324   case $ac_file in
2325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2326     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327        break;;
2328   esac
2329 done
2330 else
2331   echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337 See \`config.log' for more details." >&2;}
2338    { (exit 1); exit 1; }; }
2339 fi
2340
2341 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342 fi
2343 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344 echo "${ECHO_T}$ac_cv_objext" >&6; }
2345 OBJEXT=$ac_cv_objext
2346 ac_objext=$OBJEXT
2347 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2349 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   cat >conftest.$ac_ext <<_ACEOF
2353 /* confdefs.h.  */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h.  */
2358
2359 int
2360 main ()
2361 {
2362 #ifndef __GNUC__
2363        choke me
2364 #endif
2365
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (ac_try="$ac_compile"
2372 case "(($ac_try" in
2373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374   *) ac_try_echo=$ac_try;;
2375 esac
2376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2377   (eval "$ac_compile") 2>conftest.er1
2378   ac_status=$?
2379   grep -v '^ *+' conftest.er1 >conftest.err
2380   rm -f conftest.er1
2381   cat conftest.err >&5
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); } &&
2384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2385   { (case "(($ac_try" in
2386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387   *) ac_try_echo=$ac_try;;
2388 esac
2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390   (eval "$ac_try") 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }; } &&
2394          { ac_try='test -s conftest.$ac_objext'
2395   { (case "(($ac_try" in
2396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397   *) ac_try_echo=$ac_try;;
2398 esac
2399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400   (eval "$ac_try") 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; }; then
2404   ac_compiler_gnu=yes
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409         ac_compiler_gnu=no
2410 fi
2411
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2414
2415 fi
2416 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2418 GCC=`test $ac_compiler_gnu = yes && echo yes`
2419 ac_test_CFLAGS=${CFLAGS+set}
2420 ac_save_CFLAGS=$CFLAGS
2421 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2422 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_cc_g+set}" = set; then
2424   echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426   ac_save_c_werror_flag=$ac_c_werror_flag
2427    ac_c_werror_flag=yes
2428    ac_cv_prog_cc_g=no
2429    CFLAGS="-g"
2430    cat >conftest.$ac_ext <<_ACEOF
2431 /* confdefs.h.  */
2432 _ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h.  */
2436
2437 int
2438 main ()
2439 {
2440
2441   ;
2442   return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (ac_try="$ac_compile"
2447 case "(($ac_try" in
2448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449   *) ac_try_echo=$ac_try;;
2450 esac
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452   (eval "$ac_compile") 2>conftest.er1
2453   ac_status=$?
2454   grep -v '^ *+' conftest.er1 >conftest.err
2455   rm -f conftest.er1
2456   cat conftest.err >&5
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); } &&
2459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2460   { (case "(($ac_try" in
2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462   *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465   (eval "$ac_try") 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; } &&
2469          { ac_try='test -s conftest.$ac_objext'
2470   { (case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475   (eval "$ac_try") 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; }; then
2479   ac_cv_prog_cc_g=yes
2480 else
2481   echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2483
2484         CFLAGS=""
2485       cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h.  */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h.  */
2491
2492 int
2493 main ()
2494 {
2495
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (ac_try="$ac_compile"
2502 case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507   (eval "$ac_compile") 2>conftest.er1
2508   ac_status=$?
2509   grep -v '^ *+' conftest.er1 >conftest.err
2510   rm -f conftest.er1
2511   cat conftest.err >&5
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); } &&
2514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2515   { (case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520   (eval "$ac_try") 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; } &&
2524          { ac_try='test -s conftest.$ac_objext'
2525   { (case "(($ac_try" in
2526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527   *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530   (eval "$ac_try") 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; }; then
2534   :
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539         ac_c_werror_flag=$ac_save_c_werror_flag
2540          CFLAGS="-g"
2541          cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h.  */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h.  */
2547
2548 int
2549 main ()
2550 {
2551
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (ac_try="$ac_compile"
2558 case "(($ac_try" in
2559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560   *) ac_try_echo=$ac_try;;
2561 esac
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563   (eval "$ac_compile") 2>conftest.er1
2564   ac_status=$?
2565   grep -v '^ *+' conftest.er1 >conftest.err
2566   rm -f conftest.er1
2567   cat conftest.err >&5
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); } &&
2570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2571   { (case "(($ac_try" in
2572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573   *) ac_try_echo=$ac_try;;
2574 esac
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576   (eval "$ac_try") 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); }; } &&
2580          { ac_try='test -s conftest.$ac_objext'
2581   { (case "(($ac_try" in
2582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583   *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586   (eval "$ac_try") 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590   ac_cv_prog_cc_g=yes
2591 else
2592   echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595
2596 fi
2597
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 fi
2600
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 fi
2603
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605    ac_c_werror_flag=$ac_save_c_werror_flag
2606 fi
2607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2608 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2609 if test "$ac_test_CFLAGS" = set; then
2610   CFLAGS=$ac_save_CFLAGS
2611 elif test $ac_cv_prog_cc_g = yes; then
2612   if test "$GCC" = yes; then
2613     CFLAGS="-g -O2"
2614   else
2615     CFLAGS="-g"
2616   fi
2617 else
2618   if test "$GCC" = yes; then
2619     CFLAGS="-O2"
2620   else
2621     CFLAGS=
2622   fi
2623 fi
2624 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2625 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2626 if test "${ac_cv_prog_cc_c89+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   ac_cv_prog_cc_c89=no
2630 ac_save_CC=$CC
2631 cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h.  */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h.  */
2637 #include <stdarg.h>
2638 #include <stdio.h>
2639 #include <sys/types.h>
2640 #include <sys/stat.h>
2641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2642 struct buf { int x; };
2643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2644 static char *e (p, i)
2645      char **p;
2646      int i;
2647 {
2648   return p[i];
2649 }
2650 static char *f (char * (*g) (char **, int), char **p, ...)
2651 {
2652   char *s;
2653   va_list v;
2654   va_start (v,p);
2655   s = g (p, va_arg (v,int));
2656   va_end (v);
2657   return s;
2658 }
2659
2660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2661    function prototypes and stuff, but not '\xHH' hex character constants.
2662    These don't provoke an error unfortunately, instead are silently treated
2663    as 'x'.  The following induces an error, until -std is added to get
2664    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2665    array size at least.  It's necessary to write '\x00'==0 to get something
2666    that's true only with -std.  */
2667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2668
2669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2670    inside strings and character constants.  */
2671 #define FOO(x) 'x'
2672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2673
2674 int test (int i, double x);
2675 struct s1 {int (*f) (int a);};
2676 struct s2 {int (*f) (double a);};
2677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2678 int argc;
2679 char **argv;
2680 int
2681 main ()
2682 {
2683 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2689         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2690 do
2691   CC="$ac_save_CC $ac_arg"
2692   rm -f conftest.$ac_objext
2693 if { (ac_try="$ac_compile"
2694 case "(($ac_try" in
2695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696   *) ac_try_echo=$ac_try;;
2697 esac
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699   (eval "$ac_compile") 2>conftest.er1
2700   ac_status=$?
2701   grep -v '^ *+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } &&
2706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2707   { (case "(($ac_try" in
2708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709   *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712   (eval "$ac_try") 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (case "(($ac_try" in
2718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719   *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722   (eval "$ac_try") 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }; }; then
2726   ac_cv_prog_cc_c89=$ac_arg
2727 else
2728   echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730
2731
2732 fi
2733
2734 rm -f core conftest.err conftest.$ac_objext
2735   test "x$ac_cv_prog_cc_c89" != "xno" && break
2736 done
2737 rm -f conftest.$ac_ext
2738 CC=$ac_save_CC
2739
2740 fi
2741 # AC_CACHE_VAL
2742 case "x$ac_cv_prog_cc_c89" in
2743   x)
2744     { echo "$as_me:$LINENO: result: none needed" >&5
2745 echo "${ECHO_T}none needed" >&6; } ;;
2746   xno)
2747     { echo "$as_me:$LINENO: result: unsupported" >&5
2748 echo "${ECHO_T}unsupported" >&6; } ;;
2749   *)
2750     CC="$CC $ac_cv_prog_cc_c89"
2751     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2752 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2753 esac
2754
2755
2756 ac_ext=c
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762 ac_ext=cpp
2763 ac_cpp='$CXXCPP $CPPFLAGS'
2764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2767 if test -z "$CXX"; then
2768   if test -n "$CCC"; then
2769     CXX=$CCC
2770   else
2771     if test -n "$ac_tool_prefix"; then
2772   for ac_prog in clang++ llvm-g++ g++
2773   do
2774     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2778 if test "${ac_cv_prog_CXX+set}" = set; then
2779   echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781   if test -n "$CXX"; then
2782   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787   IFS=$as_save_IFS
2788   test -z "$as_dir" && as_dir=.
2789   for ac_exec_ext in '' $ac_executable_extensions; do
2790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2791     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793     break 2
2794   fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 fi
2800 fi
2801 CXX=$ac_cv_prog_CXX
2802 if test -n "$CXX"; then
2803   { echo "$as_me:$LINENO: result: $CXX" >&5
2804 echo "${ECHO_T}$CXX" >&6; }
2805 else
2806   { echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6; }
2808 fi
2809
2810
2811     test -n "$CXX" && break
2812   done
2813 fi
2814 if test -z "$CXX"; then
2815   ac_ct_CXX=$CXX
2816   for ac_prog in clang++ llvm-g++ g++
2817 do
2818   # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2822 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2823   echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825   if test -n "$ac_ct_CXX"; then
2826   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833   for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_ac_ct_CXX="$ac_prog"
2836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2846 if test -n "$ac_ct_CXX"; then
2847   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2848 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2849 else
2850   { echo "$as_me:$LINENO: result: no" >&5
2851 echo "${ECHO_T}no" >&6; }
2852 fi
2853
2854
2855   test -n "$ac_ct_CXX" && break
2856 done
2857
2858   if test "x$ac_ct_CXX" = x; then
2859     CXX="g++"
2860   else
2861     case $cross_compiling:$ac_tool_warned in
2862 yes:)
2863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2864 whose name does not start with the host triplet.  If you think this
2865 configuration is useful to you, please write to autoconf@gnu.org." >&5
2866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2867 whose name does not start with the host triplet.  If you think this
2868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2869 ac_tool_warned=yes ;;
2870 esac
2871     CXX=$ac_ct_CXX
2872   fi
2873 fi
2874
2875   fi
2876 fi
2877 # Provide some information about the compiler.
2878 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2879 ac_compiler=`set X $ac_compile; echo $2`
2880 { (ac_try="$ac_compiler --version >&5"
2881 case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886   (eval "$ac_compiler --version >&5") 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }
2890 { (ac_try="$ac_compiler -v >&5"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896   (eval "$ac_compiler -v >&5") 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }
2900 { (ac_try="$ac_compiler -V >&5"
2901 case "(($ac_try" in
2902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903   *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906   (eval "$ac_compiler -V >&5") 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }
2910
2911 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2912 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2913 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2914   echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916   cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h.  */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h.  */
2922
2923 int
2924 main ()
2925 {
2926 #ifndef __GNUC__
2927        choke me
2928 #endif
2929
2930   ;
2931   return 0;
2932 }
2933 _ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (ac_try="$ac_compile"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compile") 2>conftest.er1
2942   ac_status=$?
2943   grep -v '^ *+' conftest.er1 >conftest.err
2944   rm -f conftest.er1
2945   cat conftest.err >&5
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } &&
2948          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2949   { (case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954   (eval "$ac_try") 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); }; } &&
2958          { ac_try='test -s conftest.$ac_objext'
2959   { (case "(($ac_try" in
2960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961   *) ac_try_echo=$ac_try;;
2962 esac
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964   (eval "$ac_try") 2>&5
2965   ac_status=$?
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }; }; then
2968   ac_compiler_gnu=yes
2969 else
2970   echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2972
2973         ac_compiler_gnu=no
2974 fi
2975
2976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2978
2979 fi
2980 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2981 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2982 GXX=`test $ac_compiler_gnu = yes && echo yes`
2983 ac_test_CXXFLAGS=${CXXFLAGS+set}
2984 ac_save_CXXFLAGS=$CXXFLAGS
2985 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2986 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_cxx_g+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2991    ac_cxx_werror_flag=yes
2992    ac_cv_prog_cxx_g=no
2993    CXXFLAGS="-g"
2994    cat >conftest.$ac_ext <<_ACEOF
2995 /* confdefs.h.  */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h.  */
3000
3001 int
3002 main ()
3003 {
3004
3005   ;
3006   return 0;
3007 }
3008 _ACEOF
3009 rm -f conftest.$ac_objext
3010 if { (ac_try="$ac_compile"
3011 case "(($ac_try" in
3012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013   *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016   (eval "$ac_compile") 2>conftest.er1
3017   ac_status=$?
3018   grep -v '^ *+' conftest.er1 >conftest.err
3019   rm -f conftest.er1
3020   cat conftest.err >&5
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); } &&
3023          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3024   { (case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_try") 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; } &&
3033          { ac_try='test -s conftest.$ac_objext'
3034   { (case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039   (eval "$ac_try") 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; }; then
3043   ac_cv_prog_cxx_g=yes
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048         CXXFLAGS=""
3049       cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055
3056 int
3057 main ()
3058 {
3059
3060   ;
3061   return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compile") 2>conftest.er1
3072   ac_status=$?
3073   grep -v '^ *+' conftest.er1 >conftest.err
3074   rm -f conftest.er1
3075   cat conftest.err >&5
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } &&
3078          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3079   { (case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_try") 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; } &&
3088          { ac_try='test -s conftest.$ac_objext'
3089   { (case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_try") 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }; }; then
3098   :
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3104          CXXFLAGS="-g"
3105          cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h.  */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h.  */
3111
3112 int
3113 main ()
3114 {
3115
3116   ;
3117   return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3122 case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127   (eval "$ac_compile") 2>conftest.er1
3128   ac_status=$?
3129   grep -v '^ *+' conftest.er1 >conftest.err
3130   rm -f conftest.er1
3131   cat conftest.err >&5
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); } &&
3134          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3135   { (case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_try") 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; } &&
3144          { ac_try='test -s conftest.$ac_objext'
3145   { (case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_try") 2>&5
3151   ac_status=$?
3152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153   (exit $ac_status); }; }; then
3154   ac_cv_prog_cxx_g=yes
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159
3160 fi
3161
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 fi
3164
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 fi
3167
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3170 fi
3171 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3172 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3173 if test "$ac_test_CXXFLAGS" = set; then
3174   CXXFLAGS=$ac_save_CXXFLAGS
3175 elif test $ac_cv_prog_cxx_g = yes; then
3176   if test "$GXX" = yes; then
3177     CXXFLAGS="-g -O2"
3178   else
3179     CXXFLAGS="-g"
3180   fi
3181 else
3182   if test "$GXX" = yes; then
3183     CXXFLAGS="-O2"
3184   else
3185     CXXFLAGS=
3186   fi
3187 fi
3188 ac_ext=c
3189 ac_cpp='$CPP $CPPFLAGS'
3190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193
3194 ac_ext=c
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3200 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3201 # On Suns, sometimes $CPP names a directory.
3202 if test -n "$CPP" && test -d "$CPP"; then
3203   CPP=
3204 fi
3205 if test -z "$CPP"; then
3206   if test "${ac_cv_prog_CPP+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209       # Double quotes because CPP needs to be expanded
3210     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3211     do
3212       ac_preproc_ok=false
3213 for ac_c_preproc_warn_flag in '' yes
3214 do
3215   # Use a header file that comes with gcc, so configuring glibc
3216   # with a fresh cross-compiler works.
3217   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3218   # <limits.h> exists even on freestanding compilers.
3219   # On the NeXT, cc -E runs the code through the compiler's parser,
3220   # not just through cpp. "Syntax error" is here to catch this case.
3221   cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227 #ifdef __STDC__
3228 # include <limits.h>
3229 #else
3230 # include <assert.h>
3231 #endif
3232                      Syntax error
3233 _ACEOF
3234 if { (ac_try="$ac_cpp conftest.$ac_ext"
3235 case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } >/dev/null; then
3247   if test -s conftest.err; then
3248     ac_cpp_err=$ac_c_preproc_warn_flag
3249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250   else
3251     ac_cpp_err=
3252   fi
3253 else
3254   ac_cpp_err=yes
3255 fi
3256 if test -z "$ac_cpp_err"; then
3257   :
3258 else
3259   echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262   # Broken: fails on valid input.
3263 continue
3264 fi
3265
3266 rm -f conftest.err conftest.$ac_ext
3267
3268   # OK, works on sane cases.  Now check whether nonexistent headers
3269   # can be detected and how.
3270   cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276 #include <ac_nonexistent.h>
3277 _ACEOF
3278 if { (ac_try="$ac_cpp conftest.$ac_ext"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3285   ac_status=$?
3286   grep -v '^ *+' conftest.er1 >conftest.err
3287   rm -f conftest.er1
3288   cat conftest.err >&5
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); } >/dev/null; then
3291   if test -s conftest.err; then
3292     ac_cpp_err=$ac_c_preproc_warn_flag
3293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3294   else
3295     ac_cpp_err=
3296   fi
3297 else
3298   ac_cpp_err=yes
3299 fi
3300 if test -z "$ac_cpp_err"; then
3301   # Broken: success on invalid input.
3302 continue
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307   # Passes both tests.
3308 ac_preproc_ok=:
3309 break
3310 fi
3311
3312 rm -f conftest.err conftest.$ac_ext
3313
3314 done
3315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316 rm -f conftest.err conftest.$ac_ext
3317 if $ac_preproc_ok; then
3318   break
3319 fi
3320
3321     done
3322     ac_cv_prog_CPP=$CPP
3323
3324 fi
3325   CPP=$ac_cv_prog_CPP
3326 else
3327   ac_cv_prog_CPP=$CPP
3328 fi
3329 { echo "$as_me:$LINENO: result: $CPP" >&5
3330 echo "${ECHO_T}$CPP" >&6; }
3331 ac_preproc_ok=false
3332 for ac_c_preproc_warn_flag in '' yes
3333 do
3334   # Use a header file that comes with gcc, so configuring glibc
3335   # with a fresh cross-compiler works.
3336   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337   # <limits.h> exists even on freestanding compilers.
3338   # On the NeXT, cc -E runs the code through the compiler's parser,
3339   # not just through cpp. "Syntax error" is here to catch this case.
3340   cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346 #ifdef __STDC__
3347 # include <limits.h>
3348 #else
3349 # include <assert.h>
3350 #endif
3351                      Syntax error
3352 _ACEOF
3353 if { (ac_try="$ac_cpp conftest.$ac_ext"
3354 case "(($ac_try" in
3355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356   *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } >/dev/null; then
3366   if test -s conftest.err; then
3367     ac_cpp_err=$ac_c_preproc_warn_flag
3368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3369   else
3370     ac_cpp_err=
3371   fi
3372 else
3373   ac_cpp_err=yes
3374 fi
3375 if test -z "$ac_cpp_err"; then
3376   :
3377 else
3378   echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381   # Broken: fails on valid input.
3382 continue
3383 fi
3384
3385 rm -f conftest.err conftest.$ac_ext
3386
3387   # OK, works on sane cases.  Now check whether nonexistent headers
3388   # can be detected and how.
3389   cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h.  */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h.  */
3395 #include <ac_nonexistent.h>
3396 _ACEOF
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } >/dev/null; then
3410   if test -s conftest.err; then
3411     ac_cpp_err=$ac_c_preproc_warn_flag
3412     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413   else
3414     ac_cpp_err=
3415   fi
3416 else
3417   ac_cpp_err=yes
3418 fi
3419 if test -z "$ac_cpp_err"; then
3420   # Broken: success on invalid input.
3421 continue
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426   # Passes both tests.
3427 ac_preproc_ok=:
3428 break
3429 fi
3430
3431 rm -f conftest.err conftest.$ac_ext
3432
3433 done
3434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3435 rm -f conftest.err conftest.$ac_ext
3436 if $ac_preproc_ok; then
3437   :
3438 else
3439   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3440 See \`config.log' for more details." >&5
3441 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3442 See \`config.log' for more details." >&2;}
3443    { (exit 1); exit 1; }; }
3444 fi
3445
3446 ac_ext=c
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451
3452
3453
3454
3455 if test -d ${srcdir}/projects/llvm-gcc ; then
3456   subdirs="$subdirs projects/llvm-gcc"
3457
3458 fi
3459
3460 if test -d ${srcdir}/projects/test-suite ; then
3461   subdirs="$subdirs projects/test-suite"
3462
3463 fi
3464
3465 if test -d ${srcdir}/projects/llvm-test ; then
3466   subdirs="$subdirs projects/llvm-test"
3467
3468 fi
3469
3470 if test -d ${srcdir}/projects/poolalloc ; then
3471   subdirs="$subdirs projects/poolalloc"
3472
3473 fi
3474
3475 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3476   subdirs="$subdirs projects/llvm-poolalloc"
3477
3478 fi
3479
3480 for i in `ls ${srcdir}/projects`
3481 do
3482   if test -d ${srcdir}/projects/${i} ; then
3483     case ${i} in
3484       sample)       subdirs="$subdirs projects/sample"
3485     ;;
3486       privbracket)  subdirs="$subdirs projects/privbracket"
3487  ;;
3488       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3489  ;;
3490       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3491 ;;
3492       llvm-java)    subdirs="$subdirs projects/llvm-java"
3493  ;;
3494       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3495    ;;
3496       safecode)     subdirs="$subdirs projects/safecode"
3497  ;;
3498       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3499  ;;
3500       compiler-rt)       ;;
3501       llvm-gcc)       ;;
3502       test-suite)     ;;
3503       llvm-test)      ;;
3504       poolalloc)      ;;
3505       llvm-poolalloc) ;;
3506       *)
3507         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3508 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3509         ;;
3510     esac
3511   fi
3512 done
3513
3514 # Check whether --enable-polly was given.
3515 if test "${enable_polly+set}" = set; then
3516   enableval=$enable_polly;
3517 else
3518   enableval=default
3519 fi
3520
3521 case "$enableval" in
3522   yes) ENABLE_POLLY=1
3523  ;;
3524   no)  ENABLE_POLLY=0
3525  ;;
3526   default) ENABLE_POLLY=1
3527  ;;
3528   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3529 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3530    { (exit 1); exit 1; }; } ;;
3531 esac
3532
3533
3534 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3535   LLVM_HAS_POLLY=1
3536
3537   subdirs="$subdirs tools/polly"
3538
3539 fi
3540
3541
3542 # Make sure we can run config.sub.
3543 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3544   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3545 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3546    { (exit 1); exit 1; }; }
3547
3548 { echo "$as_me:$LINENO: checking build system type" >&5
3549 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3550 if test "${ac_cv_build+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   ac_build_alias=$build_alias
3554 test "x$ac_build_alias" = x &&
3555   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3556 test "x$ac_build_alias" = x &&
3557   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3558 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3559    { (exit 1); exit 1; }; }
3560 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3561   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3562 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3563    { (exit 1); exit 1; }; }
3564
3565 fi
3566 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3567 echo "${ECHO_T}$ac_cv_build" >&6; }
3568 case $ac_cv_build in
3569 *-*-*) ;;
3570 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3571 echo "$as_me: error: invalid value of canonical build" >&2;}
3572    { (exit 1); exit 1; }; };;
3573 esac
3574 build=$ac_cv_build
3575 ac_save_IFS=$IFS; IFS='-'
3576 set x $ac_cv_build
3577 shift
3578 build_cpu=$1
3579 build_vendor=$2
3580 shift; shift
3581 # Remember, the first character of IFS is used to create $*,
3582 # except with old shells:
3583 build_os=$*
3584 IFS=$ac_save_IFS
3585 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3586
3587
3588 { echo "$as_me:$LINENO: checking host system type" >&5
3589 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3590 if test "${ac_cv_host+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   if test "x$host_alias" = x; then
3594   ac_cv_host=$ac_cv_build
3595 else
3596   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3597     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3598 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3599    { (exit 1); exit 1; }; }
3600 fi
3601
3602 fi
3603 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3604 echo "${ECHO_T}$ac_cv_host" >&6; }
3605 case $ac_cv_host in
3606 *-*-*) ;;
3607 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3608 echo "$as_me: error: invalid value of canonical host" >&2;}
3609    { (exit 1); exit 1; }; };;
3610 esac
3611 host=$ac_cv_host
3612 ac_save_IFS=$IFS; IFS='-'
3613 set x $ac_cv_host
3614 shift
3615 host_cpu=$1
3616 host_vendor=$2
3617 shift; shift
3618 # Remember, the first character of IFS is used to create $*,
3619 # except with old shells:
3620 host_os=$*
3621 IFS=$ac_save_IFS
3622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3623
3624
3625 { echo "$as_me:$LINENO: checking target system type" >&5
3626 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3627 if test "${ac_cv_target+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   if test "x$target_alias" = x; then
3631   ac_cv_target=$ac_cv_host
3632 else
3633   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3634     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3635 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3636    { (exit 1); exit 1; }; }
3637 fi
3638
3639 fi
3640 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3641 echo "${ECHO_T}$ac_cv_target" >&6; }
3642 case $ac_cv_target in
3643 *-*-*) ;;
3644 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3645 echo "$as_me: error: invalid value of canonical target" >&2;}
3646    { (exit 1); exit 1; }; };;
3647 esac
3648 target=$ac_cv_target
3649 ac_save_IFS=$IFS; IFS='-'
3650 set x $ac_cv_target
3651 shift
3652 target_cpu=$1
3653 target_vendor=$2
3654 shift; shift
3655 # Remember, the first character of IFS is used to create $*,
3656 # except with old shells:
3657 target_os=$*
3658 IFS=$ac_save_IFS
3659 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3660
3661
3662 # The aliases save the names the user supplied, while $host etc.
3663 # will get canonicalized.
3664 test -n "$target_alias" &&
3665   test "$program_prefix$program_suffix$program_transform_name" = \
3666     NONENONEs,x,x, &&
3667   program_prefix=${target_alias}-
3668
3669 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3670 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3671 if test "${llvm_cv_os_type+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   case $host in
3675   *-*-aix*)
3676     llvm_cv_link_all_option="-Wl,--whole-archive"
3677     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678     llvm_cv_os_type="AIX"
3679     llvm_cv_platform_type="Unix" ;;
3680   *-*-irix*)
3681     llvm_cv_link_all_option="-Wl,--whole-archive"
3682     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683     llvm_cv_os_type="IRIX"
3684     llvm_cv_platform_type="Unix" ;;
3685   *-*-cygwin*)
3686     llvm_cv_link_all_option="-Wl,--whole-archive"
3687     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688     llvm_cv_os_type="Cygwin"
3689     llvm_cv_platform_type="Unix" ;;
3690   *-*-darwin*)
3691     llvm_cv_link_all_option="-Wl,-all_load"
3692     llvm_cv_no_link_all_option="-Wl,-noall_load"
3693     llvm_cv_os_type="Darwin"
3694     llvm_cv_platform_type="Unix" ;;
3695   *-*-minix*)
3696     llvm_cv_link_all_option="-Wl,-all_load"
3697     llvm_cv_no_link_all_option="-Wl,-noall_load"
3698     llvm_cv_os_type="Minix"
3699     llvm_cv_platform_type="Unix" ;;
3700   *-*-freebsd* | *-*-kfreebsd-gnu)
3701     llvm_cv_link_all_option="-Wl,--whole-archive"
3702     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703     llvm_cv_os_type="FreeBSD"
3704     llvm_cv_platform_type="Unix" ;;
3705   *-*-openbsd*)
3706     llvm_cv_link_all_option="-Wl,--whole-archive"
3707     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708     llvm_cv_os_type="OpenBSD"
3709     llvm_cv_platform_type="Unix" ;;
3710   *-*-netbsd*)
3711     llvm_cv_link_all_option="-Wl,--whole-archive"
3712     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713     llvm_cv_os_type="NetBSD"
3714     llvm_cv_platform_type="Unix" ;;
3715   *-*-dragonfly*)
3716     llvm_cv_link_all_option="-Wl,--whole-archive"
3717     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718     llvm_cv_os_type="DragonFly"
3719     llvm_cv_platform_type="Unix" ;;
3720   *-*-hpux*)
3721     llvm_cv_link_all_option="-Wl,--whole-archive"
3722     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723     llvm_cv_os_type="HP-UX"
3724     llvm_cv_platform_type="Unix" ;;
3725   *-*-interix*)
3726     llvm_cv_link_all_option="-Wl,--whole-archive"
3727     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728     llvm_cv_os_type="Interix"
3729     llvm_cv_platform_type="Unix" ;;
3730   *-*-linux*)
3731     llvm_cv_link_all_option="-Wl,--whole-archive"
3732     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733     llvm_cv_os_type="Linux"
3734     llvm_cv_platform_type="Unix" ;;
3735   *-*-gnu*)
3736     llvm_cv_link_all_option="-Wl,--whole-archive"
3737     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3738     llvm_cv_os_type="GNU"
3739     llvm_cv_platform_type="Unix" ;;
3740   *-*-solaris*)
3741     llvm_cv_link_all_option="-Wl,-z,allextract"
3742     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3743     llvm_cv_os_type="SunOS"
3744     llvm_cv_platform_type="Unix" ;;
3745   *-*-auroraux*)
3746     llvm_cv_link_all_option="-Wl,-z,allextract"
3747     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3748     llvm_cv_os_type="AuroraUX"
3749     llvm_cv_platform_type="Unix" ;;
3750   *-*-win32*)
3751     llvm_cv_link_all_option="-Wl,--whole-archive"
3752     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753     llvm_cv_os_type="Win32"
3754     llvm_cv_platform_type="Win32" ;;
3755   *-*-mingw*)
3756     llvm_cv_link_all_option="-Wl,--whole-archive"
3757     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758     llvm_cv_os_type="MingW"
3759     llvm_cv_platform_type="Win32" ;;
3760   *-*-haiku*)
3761     llvm_cv_link_all_option="-Wl,--whole-archive"
3762     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763     llvm_cv_os_type="Haiku"
3764     llvm_cv_platform_type="Unix" ;;
3765   *-unknown-eabi*)
3766     llvm_cv_link_all_option="-Wl,--whole-archive"
3767     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768     llvm_cv_os_type="Freestanding"
3769     llvm_cv_platform_type="Unix" ;;
3770   *-unknown-elf*)
3771     llvm_cv_link_all_option="-Wl,--whole-archive"
3772     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3773     llvm_cv_os_type="Freestanding"
3774     llvm_cv_platform_type="Unix" ;;
3775   *)
3776     llvm_cv_link_all_option=""
3777     llvm_cv_no_link_all_option=""
3778     llvm_cv_os_type="Unknown"
3779     llvm_cv_platform_type="Unknown" ;;
3780 esac
3781 fi
3782 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3783 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3784
3785 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3786 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3787 if test "${llvm_cv_target_os_type+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   case $target in
3791   *-*-aix*)
3792     llvm_cv_target_os_type="AIX" ;;
3793   *-*-irix*)
3794     llvm_cv_target_os_type="IRIX" ;;
3795   *-*-cygwin*)
3796     llvm_cv_target_os_type="Cygwin" ;;
3797   *-*-darwin*)
3798     llvm_cv_target_os_type="Darwin" ;;
3799   *-*-minix*)
3800     llvm_cv_target_os_type="Minix" ;;
3801   *-*-freebsd*)
3802     llvm_cv_target_os_type="FreeBSD" ;;
3803   *-*-openbsd*)
3804     llvm_cv_target_os_type="OpenBSD" ;;
3805   *-*-netbsd*)
3806     llvm_cv_target_os_type="NetBSD" ;;
3807   *-*-dragonfly*)
3808     llvm_cv_target_os_type="DragonFly" ;;
3809   *-*-hpux*)
3810     llvm_cv_target_os_type="HP-UX" ;;
3811   *-*-interix*)
3812     llvm_cv_target_os_type="Interix" ;;
3813   *-*-linux*)
3814     llvm_cv_target_os_type="Linux" ;;
3815   *-*-solaris*)
3816     llvm_cv_target_os_type="SunOS" ;;
3817   *-*-auroraux*)
3818     llvm_cv_target_os_type="AuroraUX" ;;
3819   *-*-win32*)
3820     llvm_cv_target_os_type="Win32" ;;
3821   *-*-mingw*)
3822     llvm_cv_target_os_type="MingW" ;;
3823   *-*-haiku*)
3824     llvm_cv_target_os_type="Haiku" ;;
3825   *-*-rtems*)
3826     llvm_cv_target_os_type="RTEMS" ;;
3827   *-*-nacl*)
3828     llvm_cv_target_os_type="NativeClient" ;;
3829   *-unknown-eabi*)
3830     llvm_cv_target_os_type="Freestanding" ;;
3831   *)
3832     llvm_cv_target_os_type="Unknown" ;;
3833 esac
3834 fi
3835 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3836 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3837
3838 if test "$llvm_cv_os_type" = "Unknown" ; then
3839   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3840 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3841    { (exit 1); exit 1; }; }
3842 fi
3843
3844 OS=$llvm_cv_os_type
3845
3846 HOST_OS=$llvm_cv_os_type
3847
3848 TARGET_OS=$llvm_cv_target_os_type
3849
3850
3851 LINKALL=$llvm_cv_link_all_option
3852
3853 NOLINKALL=$llvm_cv_no_link_all_option
3854
3855
3856 case $llvm_cv_platform_type in
3857   Unix)
3858
3859 cat >>confdefs.h <<\_ACEOF
3860 #define LLVM_ON_UNIX 1
3861 _ACEOF
3862
3863     LLVM_ON_UNIX=1
3864
3865     LLVM_ON_WIN32=0
3866
3867     ;;
3868   Win32)
3869
3870 cat >>confdefs.h <<\_ACEOF
3871 #define LLVM_ON_WIN32 1
3872 _ACEOF
3873
3874     LLVM_ON_UNIX=0
3875
3876     LLVM_ON_WIN32=1
3877
3878     ;;
3879 esac
3880
3881 { echo "$as_me:$LINENO: checking target architecture" >&5
3882 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3883 if test "${llvm_cv_target_arch+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   case $target in
3887   i?86-*)                 llvm_cv_target_arch="x86" ;;
3888   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3889   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3890   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3891   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3892   mips-*)                 llvm_cv_target_arch="Mips" ;;
3893   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3894   xcore-*)                llvm_cv_target_arch="XCore" ;;
3895   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3896   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3897   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3898   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3899   *)                      llvm_cv_target_arch="Unknown" ;;
3900 esac
3901 fi
3902 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3903 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3904
3905 if test "$llvm_cv_target_arch" = "Unknown" ; then
3906   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3907 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3908 fi
3909
3910 case "$llvm_cv_target_arch" in
3911     x86)     LLVM_NATIVE_ARCH="X86" ;;
3912     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3913     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3914 esac
3915
3916 ARCH=$llvm_cv_target_arch
3917
3918
3919
3920
3921 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3922 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3923 if test "${ac_cv_path_GREP+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   # Extract the first word of "grep ggrep" to use in msg output
3927 if test -z "$GREP"; then
3928 set dummy grep ggrep; ac_prog_name=$2
3929 if test "${ac_cv_path_GREP+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   ac_path_GREP_found=false
3933 # Loop through the user's path and test for each of PROGNAME-LIST
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3936 do
3937   IFS=$as_save_IFS
3938   test -z "$as_dir" && as_dir=.
3939   for ac_prog in grep ggrep; do
3940   for ac_exec_ext in '' $ac_executable_extensions; do
3941     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3942     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3943     # Check for GNU ac_path_GREP and select it if it is found.
3944   # Check for GNU $ac_path_GREP
3945 case `"$ac_path_GREP" --version 2>&1` in
3946 *GNU*)
3947   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3948 *)
3949   ac_count=0
3950   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3951   while :
3952   do
3953     cat "conftest.in" "conftest.in" >"conftest.tmp"
3954     mv "conftest.tmp" "conftest.in"
3955     cp "conftest.in" "conftest.nl"
3956     echo 'GREP' >> "conftest.nl"
3957     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3959     ac_count=`expr $ac_count + 1`
3960     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3961       # Best one so far, save it but keep looking for a better one
3962       ac_cv_path_GREP="$ac_path_GREP"
3963       ac_path_GREP_max=$ac_count
3964     fi
3965     # 10*(2^10) chars as input seems more than enough
3966     test $ac_count -gt 10 && break
3967   done
3968   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969 esac
3970
3971
3972     $ac_path_GREP_found && break 3
3973   done
3974 done
3975
3976 done
3977 IFS=$as_save_IFS
3978
3979
3980 fi
3981
3982 GREP="$ac_cv_path_GREP"
3983 if test -z "$GREP"; then
3984   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3985 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3986    { (exit 1); exit 1; }; }
3987 fi
3988
3989 else
3990   ac_cv_path_GREP=$GREP
3991 fi
3992
3993
3994 fi
3995 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3996 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3997  GREP="$ac_cv_path_GREP"
3998
3999
4000 { echo "$as_me:$LINENO: checking for egrep" >&5
4001 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4002 if test "${ac_cv_path_EGREP+set}" = set; then
4003   echo $ECHO_N "(cached) $ECHO_C" >&6
4004 else
4005   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4006    then ac_cv_path_EGREP="$GREP -E"
4007    else
4008      # Extract the first word of "egrep" to use in msg output
4009 if test -z "$EGREP"; then
4010 set dummy egrep; ac_prog_name=$2
4011 if test "${ac_cv_path_EGREP+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   ac_path_EGREP_found=false
4015 # Loop through the user's path and test for each of PROGNAME-LIST
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4018 do
4019   IFS=$as_save_IFS
4020   test -z "$as_dir" && as_dir=.
4021   for ac_prog in egrep; do
4022   for ac_exec_ext in '' $ac_executable_extensions; do
4023     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4024     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4025     # Check for GNU ac_path_EGREP and select it if it is found.
4026   # Check for GNU $ac_path_EGREP
4027 case `"$ac_path_EGREP" --version 2>&1` in
4028 *GNU*)
4029   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4030 *)
4031   ac_count=0
4032   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4033   while :
4034   do
4035     cat "conftest.in" "conftest.in" >"conftest.tmp"
4036     mv "conftest.tmp" "conftest.in"
4037     cp "conftest.in" "conftest.nl"
4038     echo 'EGREP' >> "conftest.nl"
4039     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4040     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4041     ac_count=`expr $ac_count + 1`
4042     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4043       # Best one so far, save it but keep looking for a better one
4044       ac_cv_path_EGREP="$ac_path_EGREP"
4045       ac_path_EGREP_max=$ac_count
4046     fi
4047     # 10*(2^10) chars as input seems more than enough
4048     test $ac_count -gt 10 && break
4049   done
4050   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4051 esac
4052
4053
4054     $ac_path_EGREP_found && break 3
4055   done
4056 done
4057
4058 done
4059 IFS=$as_save_IFS
4060
4061
4062 fi
4063
4064 EGREP="$ac_cv_path_EGREP"
4065 if test -z "$EGREP"; then
4066   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4067 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4068    { (exit 1); exit 1; }; }
4069 fi
4070
4071 else
4072   ac_cv_path_EGREP=$EGREP
4073 fi
4074
4075
4076    fi
4077 fi
4078 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4079 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4080  EGREP="$ac_cv_path_EGREP"
4081
4082
4083 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4085 if test "${ac_cv_header_stdc+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h.  */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h.  */
4094 #include <stdlib.h>
4095 #include <stdarg.h>
4096 #include <string.h>
4097 #include <float.h>
4098
4099 int
4100 main ()
4101 {
4102
4103   ;
4104   return 0;
4105 }
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (ac_try="$ac_compile"
4109 case "(($ac_try" in
4110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111   *) ac_try_echo=$ac_try;;
4112 esac
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114   (eval "$ac_compile") 2>conftest.er1
4115   ac_status=$?
4116   grep -v '^ *+' conftest.er1 >conftest.err
4117   rm -f conftest.er1
4118   cat conftest.err >&5
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); } &&
4121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4122   { (case "(($ac_try" in
4123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124   *) ac_try_echo=$ac_try;;
4125 esac
4126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4127   (eval "$ac_try") 2>&5
4128   ac_status=$?
4129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130   (exit $ac_status); }; } &&
4131          { ac_try='test -s conftest.$ac_objext'
4132   { (case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137   (eval "$ac_try") 2>&5
4138   ac_status=$?
4139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140   (exit $ac_status); }; }; then
4141   ac_cv_header_stdc=yes
4142 else
4143   echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146         ac_cv_header_stdc=no
4147 fi
4148
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150
4151 if test $ac_cv_header_stdc = yes; then
4152   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4153   cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h.  */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h.  */
4159 #include <string.h>
4160
4161 _ACEOF
4162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4163   $EGREP "memchr" >/dev/null 2>&1; then
4164   :
4165 else
4166   ac_cv_header_stdc=no
4167 fi
4168 rm -f conftest*
4169
4170 fi
4171
4172 if test $ac_cv_header_stdc = yes; then
4173   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4174   cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h.  */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h.  */
4180 #include <stdlib.h>
4181
4182 _ACEOF
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184   $EGREP "free" >/dev/null 2>&1; then
4185   :
4186 else
4187   ac_cv_header_stdc=no
4188 fi
4189 rm -f conftest*
4190
4191 fi
4192
4193 if test $ac_cv_header_stdc = yes; then
4194   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4195   if test "$cross_compiling" = yes; then
4196   :
4197 else
4198   cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h.  */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h.  */
4204 #include <ctype.h>
4205 #include <stdlib.h>
4206 #if ((' ' & 0x0FF) == 0x020)
4207 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4208 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4209 #else
4210 # define ISLOWER(c) \
4211                    (('a' <= (c) && (c) <= 'i') \
4212                      || ('j' <= (c) && (c) <= 'r') \
4213                      || ('s' <= (c) && (c) <= 'z'))
4214 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4215 #endif
4216
4217 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4218 int
4219 main ()
4220 {
4221   int i;
4222   for (i = 0; i < 256; i++)
4223     if (XOR (islower (i), ISLOWER (i))
4224         || toupper (i) != TOUPPER (i))
4225       return 2;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest$ac_exeext
4230 if { (ac_try="$ac_link"
4231 case "(($ac_try" in
4232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233   *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236   (eval "$ac_link") 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240   { (case "(($ac_try" in
4241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242   *) ac_try_echo=$ac_try;;
4243 esac
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245   (eval "$ac_try") 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); }; }; then
4249   :
4250 else
4251   echo "$as_me: program exited with status $ac_status" >&5
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 ( exit $ac_status )
4256 ac_cv_header_stdc=no
4257 fi
4258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4259 fi
4260
4261
4262 fi
4263 fi
4264 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4265 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4266 if test $ac_cv_header_stdc = yes; then
4267
4268 cat >>confdefs.h <<\_ACEOF
4269 #define STDC_HEADERS 1
4270 _ACEOF
4271
4272 fi
4273
4274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4285                   inttypes.h stdint.h unistd.h
4286 do
4287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h.  */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h.  */
4299 $ac_includes_default
4300
4301 #include <$ac_header>
4302 _ACEOF
4303 rm -f conftest.$ac_objext
4304 if { (ac_try="$ac_compile"
4305 case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_compile") 2>conftest.er1
4311   ac_status=$?
4312   grep -v '^ *+' conftest.er1 >conftest.err
4313   rm -f conftest.er1
4314   cat conftest.err >&5
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); } &&
4317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4318   { (case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323   (eval "$ac_try") 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; } &&
4327          { ac_try='test -s conftest.$ac_objext'
4328   { (case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333   (eval "$ac_try") 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; }; then
4337   eval "$as_ac_Header=yes"
4338 else
4339   echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342         eval "$as_ac_Header=no"
4343 fi
4344
4345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4346 fi
4347 ac_res=`eval echo '${'$as_ac_Header'}'`
4348                { echo "$as_me:$LINENO: result: $ac_res" >&5
4349 echo "${ECHO_T}$ac_res" >&6; }
4350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4351   cat >>confdefs.h <<_ACEOF
4352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4353 _ACEOF
4354
4355 fi
4356
4357 done
4358
4359
4360 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4361 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4362 if test "${ac_cv_c_bigendian+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   # See if sys/param.h defines the BYTE_ORDER macro.
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 #include <sys/types.h>
4373 #include <sys/param.h>
4374
4375 int
4376 main ()
4377 {
4378 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4379  bogus endian macros
4380 #endif
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (ac_try="$ac_compile"
4388 case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393   (eval "$ac_compile") 2>conftest.er1
4394   ac_status=$?
4395   grep -v '^ *+' conftest.er1 >conftest.err
4396   rm -f conftest.er1
4397   cat conftest.err >&5
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); } &&
4400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4401   { (case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406   (eval "$ac_try") 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; } &&
4410          { ac_try='test -s conftest.$ac_objext'
4411   { (case "(($ac_try" in
4412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413   *) ac_try_echo=$ac_try;;
4414 esac
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416   (eval "$ac_try") 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; }; then
4420   # It does; now see whether it defined to BIG_ENDIAN or not.
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h.  */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h.  */
4427 #include <sys/types.h>
4428 #include <sys/param.h>
4429
4430 int
4431 main ()
4432 {
4433 #if BYTE_ORDER != BIG_ENDIAN
4434  not big endian
4435 #endif
4436
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (ac_try="$ac_compile"
4443 case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448   (eval "$ac_compile") 2>conftest.er1
4449   ac_status=$?
4450   grep -v '^ *+' conftest.er1 >conftest.err
4451   rm -f conftest.er1
4452   cat conftest.err >&5
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4456   { (case "(($ac_try" in
4457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458   *) ac_try_echo=$ac_try;;
4459 esac
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461   (eval "$ac_try") 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }; } &&
4465          { ac_try='test -s conftest.$ac_objext'
4466   { (case "(($ac_try" in
4467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468   *) ac_try_echo=$ac_try;;
4469 esac
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471   (eval "$ac_try") 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }; }; then
4475   ac_cv_c_bigendian=yes
4476 else
4477   echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480         ac_cv_c_bigendian=no
4481 fi
4482
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 else
4485   echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488         # It does not; compile a test program.
4489 if test "$cross_compiling" = yes; then
4490   # try to guess the endianness by grepping values into an object file
4491   ac_cv_c_bigendian=unknown
4492   cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h.  */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h.  */
4498 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4499 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4500 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4501 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4502 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4503 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4504 int
4505 main ()
4506 {
4507  _ascii (); _ebcdic ();
4508   ;
4509   return 0;
4510 }
4511 _ACEOF
4512 rm -f conftest.$ac_objext
4513 if { (ac_try="$ac_compile"
4514 case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519   (eval "$ac_compile") 2>conftest.er1
4520   ac_status=$?
4521   grep -v '^ *+' conftest.er1 >conftest.err
4522   rm -f conftest.er1
4523   cat conftest.err >&5
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); } &&
4526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4527   { (case "(($ac_try" in
4528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529   *) ac_try_echo=$ac_try;;
4530 esac
4531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4532   (eval "$ac_try") 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); }; } &&
4536          { ac_try='test -s conftest.$ac_objext'
4537   { (case "(($ac_try" in
4538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539   *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542   (eval "$ac_try") 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; }; then
4546   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4547   ac_cv_c_bigendian=yes
4548 fi
4549 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4550   if test "$ac_cv_c_bigendian" = unknown; then
4551     ac_cv_c_bigendian=no
4552   else
4553     # finding both strings is unlikely to happen, but who knows?
4554     ac_cv_c_bigendian=unknown
4555   fi
4556 fi
4557 else
4558   echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561
4562 fi
4563
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 else
4566   cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572 $ac_includes_default
4573 int
4574 main ()
4575 {
4576
4577   /* Are we little or big endian?  From Harbison&Steele.  */
4578   union
4579   {
4580     long int l;
4581     char c[sizeof (long int)];
4582   } u;
4583   u.l = 1;
4584   return u.c[sizeof (long int) - 1] == 1;
4585
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 rm -f conftest$ac_exeext
4591 if { (ac_try="$ac_link"
4592 case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597   (eval "$ac_link") 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4601   { (case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606   (eval "$ac_try") 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }; }; then
4610   ac_cv_c_bigendian=no
4611 else
4612   echo "$as_me: program exited with status $ac_status" >&5
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616 ( exit $ac_status )
4617 ac_cv_c_bigendian=yes
4618 fi
4619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4620 fi
4621
4622
4623 fi
4624
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 fi
4627 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4628 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4629 case $ac_cv_c_bigendian in
4630   yes)
4631     ENDIAN=big
4632  ;;
4633   no)
4634     ENDIAN=little
4635  ;;
4636   *)
4637     { { echo "$as_me:$LINENO: error: unknown endianness
4638 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4639 echo "$as_me: error: unknown endianness
4640 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4641    { (exit 1); exit 1; }; } ;;
4642 esac
4643
4644
4645 if test "$cross_compiling" = yes; then
4646   LLVM_CROSS_COMPILING=1
4647
4648
4649 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4650 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4651 if test "${ac_cv_build_exeext+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4655   ac_cv_build_exeext=.exe
4656 else
4657   ac_build_prefix=${build_alias}-
4658
4659   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4660 set dummy ${ac_build_prefix}gcc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4664   echo $ECHO_N "(cached) $ECHO_C" >&6
4665 else
4666   if test -n "$BUILD_CC"; then
4667   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4676     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 BUILD_CC=$ac_cv_prog_BUILD_CC
4687 if test -n "$BUILD_CC"; then
4688   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4689 echo "${ECHO_T}$BUILD_CC" >&6; }
4690 else
4691   { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4693 fi
4694
4695
4696   if test -z "$BUILD_CC"; then
4697      # Extract the first word of "gcc", so it can be a program name with args.
4698 set dummy gcc; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   if test -n "$BUILD_CC"; then
4705   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712   for ac_exec_ext in '' $ac_executable_extensions; do
4713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4714     ac_cv_prog_BUILD_CC="gcc"
4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 BUILD_CC=$ac_cv_prog_BUILD_CC
4725 if test -n "$BUILD_CC"; then
4726   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727 echo "${ECHO_T}$BUILD_CC" >&6; }
4728 else
4729   { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4731 fi
4732
4733
4734      if test -z "$BUILD_CC"; then
4735        # Extract the first word of "cc", so it can be a program name with args.
4736 set dummy cc; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   if test -n "$BUILD_CC"; then
4743   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4744 else
4745   ac_prog_rejected=no
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751   for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4754        ac_prog_rejected=yes
4755        continue
4756      fi
4757     ac_cv_prog_BUILD_CC="cc"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765 if test $ac_prog_rejected = yes; then
4766   # We found a bogon in the path, so make sure we never use it.
4767   set dummy $ac_cv_prog_BUILD_CC
4768   shift
4769   if test $# != 0; then
4770     # We chose a different compiler from the bogus one.
4771     # However, it has the same basename, so the bogon will be chosen
4772     # first if we set BUILD_CC to just the basename; use the full file name.
4773     shift
4774     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4775   fi
4776 fi
4777 fi
4778 fi
4779 BUILD_CC=$ac_cv_prog_BUILD_CC
4780 if test -n "$BUILD_CC"; then
4781   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4782 echo "${ECHO_T}$BUILD_CC" >&6; }
4783 else
4784   { echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6; }
4786 fi
4787
4788
4789      fi
4790   fi
4791   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4792 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4793    { (exit 1); exit 1; }; }
4794   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4795   rm -f conftest*
4796   echo 'int main () { return 0; }' > conftest.$ac_ext
4797   ac_cv_build_exeext=
4798   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4799   (eval $ac_build_link) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; then
4803     for file in conftest.*; do
4804       case $file in
4805       *.c | *.o | *.obj | *.dSYM) ;;
4806       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4807       esac
4808     done
4809   else
4810     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4811 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4812    { (exit 1); exit 1; }; }
4813   fi
4814   rm -f conftest*
4815   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4816 fi
4817 fi
4818
4819 BUILD_EXEEXT=""
4820 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4821 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4822 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4823 ac_build_exeext=$BUILD_EXEEXT
4824
4825   ac_build_prefix=${build_alias}-
4826   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4827 set dummy ${ac_build_prefix}g++; ac_word=$2
4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4831   echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833   if test -n "$BUILD_CXX"; then
4834   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841   for ac_exec_ext in '' $ac_executable_extensions; do
4842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4843     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845     break 2
4846   fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851 fi
4852 fi
4853 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4854 if test -n "$BUILD_CXX"; then
4855   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4856 echo "${ECHO_T}$BUILD_CXX" >&6; }
4857 else
4858   { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4860 fi
4861
4862
4863   if test -z "$BUILD_CXX"; then
4864      # Extract the first word of "g++", so it can be a program name with args.
4865 set dummy g++; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   if test -n "$BUILD_CXX"; then
4872   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879   for ac_exec_ext in '' $ac_executable_extensions; do
4880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4881     ac_cv_prog_BUILD_CXX="g++"
4882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892 if test -n "$BUILD_CXX"; then
4893   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894 echo "${ECHO_T}$BUILD_CXX" >&6; }
4895 else
4896   { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4898 fi
4899
4900
4901      if test -z "$BUILD_CXX"; then
4902        # Extract the first word of "c++", so it can be a program name with args.
4903 set dummy c++; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   if test -n "$BUILD_CXX"; then
4910   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4911 else
4912   ac_prog_rejected=no
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918   for ac_exec_ext in '' $ac_executable_extensions; do
4919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4920     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4921        ac_prog_rejected=yes
4922        continue
4923      fi
4924     ac_cv_prog_BUILD_CXX="c++"
4925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932 if test $ac_prog_rejected = yes; then
4933   # We found a bogon in the path, so make sure we never use it.
4934   set dummy $ac_cv_prog_BUILD_CXX
4935   shift
4936   if test $# != 0; then
4937     # We chose a different compiler from the bogus one.
4938     # However, it has the same basename, so the bogon will be chosen
4939     # first if we set BUILD_CXX to just the basename; use the full file name.
4940     shift
4941     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4942   fi
4943 fi
4944 fi
4945 fi
4946 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4947 if test -n "$BUILD_CXX"; then
4948   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4949 echo "${ECHO_T}$BUILD_CXX" >&6; }
4950 else
4951   { echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6; }
4953 fi
4954
4955
4956      fi
4957   fi
4958 else
4959   LLVM_CROSS_COMPILING=0
4960
4961 fi
4962
4963 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4964   cvsbuild="yes"
4965   optimize="no"
4966   CVSBUILD=CVSBUILD=1
4967
4968 else
4969   cvsbuild="no"
4970   optimize="yes"
4971 fi
4972
4973
4974 # Check whether --enable-libcpp was given.
4975 if test "${enable_libcpp+set}" = set; then
4976   enableval=$enable_libcpp;
4977 else
4978   enableval=default
4979 fi
4980
4981 case "$enableval" in
4982   yes) ENABLE_LIBCPP=1
4983  ;;
4984   no)  ENABLE_LIBCPP=0
4985  ;;
4986   default) ENABLE_LIBCPP=0
4987 ;;
4988   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4989 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4990    { (exit 1); exit 1; }; } ;;
4991 esac
4992
4993 # Check whether --enable-optimized was given.
4994 if test "${enable_optimized+set}" = set; then
4995   enableval=$enable_optimized;
4996 else
4997   enableval=$optimize
4998 fi
4999
5000 if test ${enableval} = "no" ; then
5001   ENABLE_OPTIMIZED=
5002
5003 else
5004   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5005
5006 fi
5007
5008 # Check whether --enable-profiling was given.
5009 if test "${enable_profiling+set}" = set; then
5010   enableval=$enable_profiling;
5011 else
5012   enableval="no"
5013 fi
5014
5015 if test ${enableval} = "no" ; then
5016   ENABLE_PROFILING=
5017
5018 else
5019   ENABLE_PROFILING=ENABLE_PROFILING=1
5020
5021 fi
5022
5023 # Check whether --enable-assertions was given.
5024 if test "${enable_assertions+set}" = set; then
5025   enableval=$enable_assertions;
5026 else
5027   enableval="yes"
5028 fi
5029
5030 if test ${enableval} = "yes" ; then
5031   DISABLE_ASSERTIONS=
5032
5033 else
5034   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5035
5036 fi
5037
5038 # Check whether --enable-expensive-checks was given.
5039 if test "${enable_expensive_checks+set}" = set; then
5040   enableval=$enable_expensive_checks;
5041 else
5042   enableval="no"
5043 fi
5044
5045 if test ${enableval} = "yes" ; then
5046   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5047
5048   EXPENSIVE_CHECKS=yes
5049
5050 else
5051   ENABLE_EXPENSIVE_CHECKS=
5052
5053   EXPENSIVE_CHECKS=no
5054
5055 fi
5056
5057 # Check whether --enable-debug-runtime was given.
5058 if test "${enable_debug_runtime+set}" = set; then
5059   enableval=$enable_debug_runtime;
5060 else
5061   enableval=no
5062 fi
5063
5064 if test ${enableval} = "no" ; then
5065   DEBUG_RUNTIME=
5066
5067 else
5068   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5069
5070 fi
5071
5072 # Check whether --enable-debug-symbols was given.
5073 if test "${enable_debug_symbols+set}" = set; then
5074   enableval=$enable_debug_symbols;
5075 else
5076   enableval=no
5077 fi
5078
5079 if test ${enableval} = "no" ; then
5080   DEBUG_SYMBOLS=
5081
5082 else
5083   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5084
5085 fi
5086
5087 # Check whether --enable-jit was given.
5088 if test "${enable_jit+set}" = set; then
5089   enableval=$enable_jit;
5090 else
5091   enableval=default
5092 fi
5093
5094 if test ${enableval} = "no"
5095 then
5096   JIT=
5097
5098 else
5099   case "$llvm_cv_target_arch" in
5100     x86)         TARGET_HAS_JIT=1
5101  ;;
5102     Sparc)       TARGET_HAS_JIT=0
5103  ;;
5104     PowerPC)     TARGET_HAS_JIT=1
5105  ;;
5106     x86_64)      TARGET_HAS_JIT=1
5107  ;;
5108     ARM)         TARGET_HAS_JIT=1
5109  ;;
5110     Mips)        TARGET_HAS_JIT=1
5111  ;;
5112     XCore)       TARGET_HAS_JIT=0
5113  ;;
5114     MSP430)      TARGET_HAS_JIT=0
5115  ;;
5116     Hexagon)     TARGET_HAS_JIT=0
5117  ;;
5118     MBlaze)      TARGET_HAS_JIT=0
5119  ;;
5120     PTX)         TARGET_HAS_JIT=0
5121  ;;
5122     *)           TARGET_HAS_JIT=0
5123  ;;
5124   esac
5125 fi
5126
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129   enableval=$enable_docs;
5130 else
5131   enableval=default
5132 fi
5133
5134 case "$enableval" in
5135   yes) ENABLE_DOCS=1
5136  ;;
5137   no)  ENABLE_DOCS=0
5138  ;;
5139   default) ENABLE_DOCS=1
5140  ;;
5141   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143    { (exit 1); exit 1; }; } ;;
5144 esac
5145
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148   enableval=$enable_doxygen;
5149 else
5150   enableval=default
5151 fi
5152
5153 case "$enableval" in
5154   yes) ENABLE_DOXYGEN=1
5155  ;;
5156   no)  ENABLE_DOXYGEN=0
5157  ;;
5158   default) ENABLE_DOXYGEN=0
5159  ;;
5160   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162    { (exit 1); exit 1; }; } ;;
5163 esac
5164
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167   enableval=$enable_threads;
5168 else
5169   enableval=default
5170 fi
5171
5172 case "$enableval" in
5173   yes) LLVM_ENABLE_THREADS=1
5174  ;;
5175   no)  LLVM_ENABLE_THREADS=0
5176  ;;
5177   default) LLVM_ENABLE_THREADS=1
5178  ;;
5179   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181    { (exit 1); exit 1; }; } ;;
5182 esac
5183
5184 cat >>confdefs.h <<_ACEOF
5185 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5186 _ACEOF
5187
5188
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191   enableval=$enable_pthreads;
5192 else
5193   enableval=default
5194 fi
5195
5196 case "$enableval" in
5197   yes) ENABLE_PTHREADS=1
5198  ;;
5199   no)  ENABLE_PTHREADS=0
5200  ;;
5201   default) ENABLE_PTHREADS=1
5202  ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 # Check whether --enable-pic was given.
5209 if test "${enable_pic+set}" = set; then
5210   enableval=$enable_pic;
5211 else
5212   enableval=default
5213 fi
5214
5215 case "$enableval" in
5216   yes) ENABLE_PIC=1
5217  ;;
5218   no)  ENABLE_PIC=0
5219  ;;
5220   default) ENABLE_PIC=1
5221  ;;
5222   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224    { (exit 1); exit 1; }; } ;;
5225 esac
5226
5227 cat >>confdefs.h <<_ACEOF
5228 #define ENABLE_PIC $ENABLE_PIC
5229 _ACEOF
5230
5231
5232 # Check whether --enable-shared was given.
5233 if test "${enable_shared+set}" = set; then
5234   enableval=$enable_shared;
5235 else
5236   enableval=default
5237 fi
5238
5239 case "$enableval" in
5240   yes) ENABLE_SHARED=1
5241  ;;
5242   no)  ENABLE_SHARED=0
5243  ;;
5244   default) ENABLE_SHARED=0
5245  ;;
5246   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248    { (exit 1); exit 1; }; } ;;
5249 esac
5250
5251 # Check whether --enable-embed-stdcxx was given.
5252 if test "${enable_embed_stdcxx+set}" = set; then
5253   enableval=$enable_embed_stdcxx;
5254 else
5255   enableval=default
5256 fi
5257
5258 case "$enableval" in
5259   yes) ENABLE_EMBED_STDCXX=1
5260  ;;
5261   no)  ENABLE_EMBED_STDCXX=0
5262  ;;
5263   default) ENABLE_EMBED_STDCXX=0
5264  ;;
5265   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267    { (exit 1); exit 1; }; } ;;
5268 esac
5269
5270 # Check whether --enable-timestamps was given.
5271 if test "${enable_timestamps+set}" = set; then
5272   enableval=$enable_timestamps;
5273 else
5274   enableval=default
5275 fi
5276
5277 case "$enableval" in
5278   yes) ENABLE_TIMESTAMPS=1
5279  ;;
5280   no)  ENABLE_TIMESTAMPS=0
5281  ;;
5282   default) ENABLE_TIMESTAMPS=1
5283  ;;
5284   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286    { (exit 1); exit 1; }; } ;;
5287 esac
5288
5289 cat >>confdefs.h <<_ACEOF
5290 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5291 _ACEOF
5292
5293
5294 TARGETS_TO_BUILD=""
5295 # Check whether --enable-targets was given.
5296 if test "${enable_targets+set}" = set; then
5297   enableval=$enable_targets;
5298 else
5299   enableval=all
5300 fi
5301
5302 if test "$enableval" = host-only ; then
5303   enableval=host
5304 fi
5305 case "$enableval" in
5306   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5307   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5308       case "$a_target" in
5309         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5312         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5313         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5317         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5318         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5319         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5320         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5321         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5322         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5323         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5324         host) case "$llvm_cv_target_arch" in
5325             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5328             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5329             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5330             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5331             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5332             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5333             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5334             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5335             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5336             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5337             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5338 echo "$as_me: error: Can not set target to build" >&2;}
5339    { (exit 1); exit 1; }; } ;;
5340           esac ;;
5341         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5342 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5343    { (exit 1); exit 1; }; } ;;
5344       esac
5345   done
5346   ;;
5347 esac
5348 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5349
5350
5351 for a_target in $TARGETS_TO_BUILD; do
5352   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5353
5354 cat >>confdefs.h <<_ACEOF
5355 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5356 _ACEOF
5357
5358     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5359     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5360     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5361     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5362     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5363       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5364     fi
5365
5366 cat >>confdefs.h <<_ACEOF
5367 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5368 _ACEOF
5369
5370
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5373 _ACEOF
5374
5375
5376 cat >>confdefs.h <<_ACEOF
5377 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5378 _ACEOF
5379
5380
5381 cat >>confdefs.h <<_ACEOF
5382 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5383 _ACEOF
5384
5385     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5386
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5389 _ACEOF
5390
5391     fi
5392   fi
5393 done
5394
5395 LLVM_ENUM_TARGETS=""
5396 LLVM_ENUM_ASM_PRINTERS=""
5397 LLVM_ENUM_ASM_PARSERS=""
5398 LLVM_ENUM_DISASSEMBLERS=""
5399 for target_to_build in $TARGETS_TO_BUILD; do
5400   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5401   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5402     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5403   fi
5404   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5405     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5406   fi
5407   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5408     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5409   fi
5410 done
5411
5412
5413
5414
5415
5416 # Check whether --enable-cbe-printf-a was given.
5417 if test "${enable_cbe_printf_a+set}" = set; then
5418   enableval=$enable_cbe_printf_a;
5419 else
5420   enableval=default
5421 fi
5422
5423 case "$enableval" in
5424   yes) ENABLE_CBE_PRINTF_A=1
5425  ;;
5426   no)  ENABLE_CBE_PRINTF_A=0
5427  ;;
5428   default)  ENABLE_CBE_PRINTF_A=1
5429  ;;
5430   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5431 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5432    { (exit 1); exit 1; }; } ;;
5433 esac
5434
5435 cat >>confdefs.h <<_ACEOF
5436 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5437 _ACEOF
5438
5439
5440
5441 # Check whether --with-optimize-option was given.
5442 if test "${with_optimize_option+set}" = set; then
5443   withval=$with_optimize_option;
5444 else
5445   withval=default
5446 fi
5447
5448 { echo "$as_me:$LINENO: checking optimization flags" >&5
5449 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5450 case "$withval" in
5451   default)
5452     case "$llvm_cv_os_type" in
5453     FreeBSD) optimize_option=-O2 ;;
5454     MingW) optimize_option=-O2 ;;
5455     *)     optimize_option=-O3 ;;
5456     esac ;;
5457   *) optimize_option="$withval" ;;
5458 esac
5459 OPTIMIZE_OPTION=$optimize_option
5460
5461 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5462 echo "${ECHO_T}$optimize_option" >&6; }
5463
5464
5465 # Check whether --with-extra-options was given.
5466 if test "${with_extra_options+set}" = set; then
5467   withval=$with_extra_options;
5468 else
5469   withval=default
5470 fi
5471
5472 case "$withval" in
5473   default) EXTRA_OPTIONS= ;;
5474   *) EXTRA_OPTIONS=$withval ;;
5475 esac
5476 EXTRA_OPTIONS=$EXTRA_OPTIONS
5477
5478
5479
5480 # Check whether --with-extra-ld-options was given.
5481 if test "${with_extra_ld_options+set}" = set; then
5482   withval=$with_extra_ld_options;
5483 else
5484   withval=default
5485 fi
5486
5487 case "$withval" in
5488   default) EXTRA_LD_OPTIONS= ;;
5489   *) EXTRA_LD_OPTIONS=$withval ;;
5490 esac
5491 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5492
5493
5494 # Check whether --enable-bindings was given.
5495 if test "${enable_bindings+set}" = set; then
5496   enableval=$enable_bindings;
5497 else
5498   enableval=default
5499 fi
5500
5501 BINDINGS_TO_BUILD=""
5502 case "$enableval" in
5503   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5504   all ) BINDINGS_TO_BUILD="ocaml" ;;
5505   none | no) BINDINGS_TO_BUILD="" ;;
5506   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5507       case "$a_binding" in
5508         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5509         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5510 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5511    { (exit 1); exit 1; }; } ;;
5512       esac
5513   done
5514   ;;
5515 esac
5516
5517
5518 # Check whether --with-ocaml-libdir was given.
5519 if test "${with_ocaml_libdir+set}" = set; then
5520   withval=$with_ocaml_libdir;
5521 else
5522   withval=auto
5523 fi
5524
5525 case "$withval" in
5526   auto) with_ocaml_libdir="$withval" ;;
5527   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5528   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5529 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5530    { (exit 1); exit 1; }; } ;;
5531 esac
5532
5533
5534 # Check whether --with-clang-srcdir was given.
5535 if test "${with_clang_srcdir+set}" = set; then
5536   withval=$with_clang_srcdir;
5537 else
5538   withval="-"
5539 fi
5540
5541 case "$withval" in
5542   -) clang_src_root="" ;;
5543   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5544   *) clang_src_root="$ac_pwd/$withval" ;;
5545 esac
5546 CLANG_SRC_ROOT=$clang_src_root
5547
5548
5549
5550 # Check whether --with-clang-resource-dir was given.
5551 if test "${with_clang_resource_dir+set}" = set; then
5552   withval=$with_clang_resource_dir;
5553 else
5554   withval=""
5555 fi
5556
5557
5558 cat >>confdefs.h <<_ACEOF
5559 #define CLANG_RESOURCE_DIR "$withval"
5560 _ACEOF
5561
5562
5563
5564 # Check whether --with-c-include-dirs was given.
5565 if test "${with_c_include_dirs+set}" = set; then
5566   withval=$with_c_include_dirs;
5567 else
5568   withval=""
5569 fi
5570
5571
5572 cat >>confdefs.h <<_ACEOF
5573 #define C_INCLUDE_DIRS "$withval"
5574 _ACEOF
5575
5576
5577 # Clang normally uses the system c++ headers and libraries. With this option,
5578 # clang will use the ones provided by a gcc installation instead. This option should
5579 # be passed the same value that was used with --prefix when configuring gcc.
5580
5581 # Check whether --with-gcc-toolchain was given.
5582 if test "${with_gcc_toolchain+set}" = set; then
5583   withval=$with_gcc_toolchain;
5584 else
5585   withval=""
5586 fi
5587
5588
5589 cat >>confdefs.h <<_ACEOF
5590 #define GCC_INSTALL_PREFIX "$withval"
5591 _ACEOF
5592
5593
5594
5595 # Check whether --with-binutils-include was given.
5596 if test "${with_binutils_include+set}" = set; then
5597   withval=$with_binutils_include;
5598 else
5599   withval=default
5600 fi
5601
5602 case "$withval" in
5603   default) WITH_BINUTILS_INCDIR=default ;;
5604   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5605   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5606 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5607    { (exit 1); exit 1; }; } ;;
5608 esac
5609 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5610   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5611
5612   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5613      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5614      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5615 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5616    { (exit 1); exit 1; }; };
5617   fi
5618 fi
5619
5620
5621 # Check whether --with-bug-report-url was given.
5622 if test "${with_bug_report_url+set}" = set; then
5623   withval=$with_bug_report_url;
5624 else
5625   withval="http://llvm.org/bugs/"
5626 fi
5627
5628
5629 cat >>confdefs.h <<_ACEOF
5630 #define BUG_REPORT_URL "$withval"
5631 _ACEOF
5632
5633
5634 # Check whether --enable-libffi was given.
5635 if test "${enable_libffi+set}" = set; then
5636   enableval=$enable_libffi; case "$enableval" in
5637     yes) llvm_cv_enable_libffi="yes" ;;
5638     no)  llvm_cv_enable_libffi="no"  ;;
5639     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5640 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5641    { (exit 1); exit 1; }; } ;;
5642   esac
5643 else
5644   llvm_cv_enable_libffi=no
5645 fi
5646
5647
5648
5649 # Check whether --with-internal-prefix was given.
5650 if test "${with_internal_prefix+set}" = set; then
5651   withval=$with_internal_prefix;
5652 else
5653   withval=""
5654 fi
5655
5656 INTERNAL_PREFIX=$withval
5657
5658
5659
5660 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5661 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5662 if test "${lt_cv_path_NM+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   if test -n "$NM"; then
5666   # Let the user override the test.
5667   lt_cv_path_NM="$NM"
5668 else
5669   lt_nm_to_check="${ac_tool_prefix}nm"
5670   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5671     lt_nm_to_check="$lt_nm_to_check nm"
5672   fi
5673   for lt_tmp_nm in $lt_nm_to_check; do
5674     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5675     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5676       IFS="$lt_save_ifs"
5677       test -z "$ac_dir" && ac_dir=.
5678       tmp_nm="$ac_dir/$lt_tmp_nm"
5679       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5680         # Check to see if the nm accepts a BSD-compat flag.
5681         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5682         #   nm: unknown option "B" ignored
5683         # Tru64's nm complains that /dev/null is an invalid object file
5684         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5685         */dev/null* | *'Invalid file or object type'*)
5686           lt_cv_path_NM="$tmp_nm -B"
5687           break
5688           ;;
5689         *)
5690           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5691           */dev/null*)
5692             lt_cv_path_NM="$tmp_nm -p"
5693             break
5694             ;;
5695           *)
5696             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5697             continue # so that we can try to find one that supports BSD flags
5698             ;;
5699           esac
5700           ;;
5701         esac
5702       fi
5703     done
5704     IFS="$lt_save_ifs"
5705   done
5706   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5707 fi
5708 fi
5709 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5710 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5711 NM="$lt_cv_path_NM"
5712
5713
5714
5715 { echo "$as_me:$LINENO: checking for GNU make" >&5
5716 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5717 if test "${llvm_cv_gnu_make_command+set}" = set; then
5718   echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720   llvm_cv_gnu_make_command=''
5721  for a in "$MAKE" make gmake gnumake ; do
5722   if test -z "$a" ; then continue ; fi ;
5723   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5724   then
5725    llvm_cv_gnu_make_command=$a ;
5726    break;
5727   fi
5728  done
5729 fi
5730 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5731 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5732  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5733    ifGNUmake='' ;
5734  else
5735    ifGNUmake='#' ;
5736    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5737 echo "${ECHO_T}\"Not found\"" >&6; };
5738  fi
5739
5740
5741 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5742 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5743 LN_S=$as_ln_s
5744 if test "$LN_S" = "ln -s"; then
5745   { echo "$as_me:$LINENO: result: yes" >&5
5746 echo "${ECHO_T}yes" >&6; }
5747 else
5748   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5749 echo "${ECHO_T}no, using $LN_S" >&6; }
5750 fi
5751
5752 # Extract the first word of "cmp", so it can be a program name with args.
5753 set dummy cmp; ac_word=$2
5754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5756 if test "${ac_cv_path_CMP+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   case $CMP in
5760   [\\/]* | ?:[\\/]*)
5761   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5762   ;;
5763   *)
5764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769   for ac_exec_ext in '' $ac_executable_extensions; do
5770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5771     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776 done
5777 IFS=$as_save_IFS
5778
5779   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5780   ;;
5781 esac
5782 fi
5783 CMP=$ac_cv_path_CMP
5784 if test -n "$CMP"; then
5785   { echo "$as_me:$LINENO: result: $CMP" >&5
5786 echo "${ECHO_T}$CMP" >&6; }
5787 else
5788   { echo "$as_me:$LINENO: result: no" >&5
5789 echo "${ECHO_T}no" >&6; }
5790 fi
5791
5792
5793 # Extract the first word of "cp", so it can be a program name with args.
5794 set dummy cp; ac_word=$2
5795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5797 if test "${ac_cv_path_CP+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   case $CP in
5801   [\\/]* | ?:[\\/]*)
5802   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5803   ;;
5804   *)
5805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810   for ac_exec_ext in '' $ac_executable_extensions; do
5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5821   ;;
5822 esac
5823 fi
5824 CP=$ac_cv_path_CP
5825 if test -n "$CP"; then
5826   { echo "$as_me:$LINENO: result: $CP" >&5
5827 echo "${ECHO_T}$CP" >&6; }
5828 else
5829   { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5831 fi
5832
5833
5834 # Extract the first word of "date", so it can be a program name with args.
5835 set dummy date; ac_word=$2
5836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5838 if test "${ac_cv_path_DATE+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   case $DATE in
5842   [\\/]* | ?:[\\/]*)
5843   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5844   ;;
5845   *)
5846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849   IFS=$as_save_IFS
5850   test -z "$as_dir" && as_dir=.
5851   for ac_exec_ext in '' $ac_executable_extensions; do
5852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5853     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5855     break 2
5856   fi
5857 done
5858 done
5859 IFS=$as_save_IFS
5860
5861   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5862   ;;
5863 esac
5864 fi
5865 DATE=$ac_cv_path_DATE
5866 if test -n "$DATE"; then
5867   { echo "$as_me:$LINENO: result: $DATE" >&5
5868 echo "${ECHO_T}$DATE" >&6; }
5869 else
5870   { echo "$as_me:$LINENO: result: no" >&5
5871 echo "${ECHO_T}no" >&6; }
5872 fi
5873
5874
5875 # Extract the first word of "find", so it can be a program name with args.
5876 set dummy find; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_path_FIND+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   case $FIND in
5883   [\\/]* | ?:[\\/]*)
5884   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5885   ;;
5886   *)
5887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890   IFS=$as_save_IFS
5891   test -z "$as_dir" && as_dir=.
5892   for ac_exec_ext in '' $ac_executable_extensions; do
5893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5894     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896     break 2
5897   fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5903   ;;
5904 esac
5905 fi
5906 FIND=$ac_cv_path_FIND
5907 if test -n "$FIND"; then
5908   { echo "$as_me:$LINENO: result: $FIND" >&5
5909 echo "${ECHO_T}$FIND" >&6; }
5910 else
5911   { echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6; }
5913 fi
5914
5915
5916 # Extract the first word of "grep", so it can be a program name with args.
5917 set dummy grep; ac_word=$2
5918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5920 if test "${ac_cv_path_GREP+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   case $GREP in
5924   [\\/]* | ?:[\\/]*)
5925   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5926   ;;
5927   *)
5928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5935     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5944   ;;
5945 esac
5946 fi
5947 GREP=$ac_cv_path_GREP
5948 if test -n "$GREP"; then
5949   { echo "$as_me:$LINENO: result: $GREP" >&5
5950 echo "${ECHO_T}$GREP" >&6; }
5951 else
5952   { echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6; }
5954 fi
5955
5956
5957 # Extract the first word of "mkdir", so it can be a program name with args.
5958 set dummy mkdir; ac_word=$2
5959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5961 if test "${ac_cv_path_MKDIR+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   case $MKDIR in
5965   [\\/]* | ?:[\\/]*)
5966   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5967   ;;
5968   *)
5969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972   IFS=$as_save_IFS
5973   test -z "$as_dir" && as_dir=.
5974   for ac_exec_ext in '' $ac_executable_extensions; do
5975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5976     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978     break 2
5979   fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5985   ;;
5986 esac
5987 fi
5988 MKDIR=$ac_cv_path_MKDIR
5989 if test -n "$MKDIR"; then
5990   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5991 echo "${ECHO_T}$MKDIR" >&6; }
5992 else
5993   { echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6; }
5995 fi
5996
5997
5998 # Extract the first word of "mv", so it can be a program name with args.
5999 set dummy mv; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_path_MV+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   case $MV in
6006   [\\/]* | ?:[\\/]*)
6007   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6008   ;;
6009   *)
6010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013   IFS=$as_save_IFS
6014   test -z "$as_dir" && as_dir=.
6015   for ac_exec_ext in '' $ac_executable_extensions; do
6016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6017     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019     break 2
6020   fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6026   ;;
6027 esac
6028 fi
6029 MV=$ac_cv_path_MV
6030 if test -n "$MV"; then
6031   { echo "$as_me:$LINENO: result: $MV" >&5
6032 echo "${ECHO_T}$MV" >&6; }
6033 else
6034   { echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6; }
6036 fi
6037
6038
6039 if test -n "$ac_tool_prefix"; then
6040   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6041 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_RANLIB+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   if test -n "$RANLIB"; then
6048   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055   for ac_exec_ext in '' $ac_executable_extensions; do
6056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6057     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059     break 2
6060   fi
6061 done
6062 done
6063 IFS=$as_save_IFS
6064
6065 fi
6066 fi
6067 RANLIB=$ac_cv_prog_RANLIB
6068 if test -n "$RANLIB"; then
6069   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6070 echo "${ECHO_T}$RANLIB" >&6; }
6071 else
6072   { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6074 fi
6075
6076
6077 fi
6078 if test -z "$ac_cv_prog_RANLIB"; then
6079   ac_ct_RANLIB=$RANLIB
6080   # Extract the first word of "ranlib", so it can be a program name with args.
6081 set dummy ranlib; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6085   echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087   if test -n "$ac_ct_RANLIB"; then
6088   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095   for ac_exec_ext in '' $ac_executable_extensions; do
6096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097     ac_cv_prog_ac_ct_RANLIB="ranlib"
6098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099     break 2
6100   fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6108 if test -n "$ac_ct_RANLIB"; then
6109   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6110 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6111 else
6112   { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6114 fi
6115
6116   if test "x$ac_ct_RANLIB" = x; then
6117     RANLIB=":"
6118   else
6119     case $cross_compiling:$ac_tool_warned in
6120 yes:)
6121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6122 whose name does not start with the host triplet.  If you think this
6123 configuration is useful to you, please write to autoconf@gnu.org." >&5
6124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6125 whose name does not start with the host triplet.  If you think this
6126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6127 ac_tool_warned=yes ;;
6128 esac
6129     RANLIB=$ac_ct_RANLIB
6130   fi
6131 else
6132   RANLIB="$ac_cv_prog_RANLIB"
6133 fi
6134
6135 if test -n "$ac_tool_prefix"; then
6136   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ar; ac_word=$2
6138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140 if test "${ac_cv_prog_AR+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   if test -n "$AR"; then
6144   ac_cv_prog_AR="$AR" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151   for ac_exec_ext in '' $ac_executable_extensions; do
6152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153     ac_cv_prog_AR="${ac_tool_prefix}ar"
6154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158 done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 AR=$ac_cv_prog_AR
6164 if test -n "$AR"; then
6165   { echo "$as_me:$LINENO: result: $AR" >&5
6166 echo "${ECHO_T}$AR" >&6; }
6167 else
6168   { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6170 fi
6171
6172
6173 fi
6174 if test -z "$ac_cv_prog_AR"; then
6175   ac_ct_AR=$AR
6176   # Extract the first word of "ar", so it can be a program name with args.
6177 set dummy ar; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   if test -n "$ac_ct_AR"; then
6184   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191   for ac_exec_ext in '' $ac_executable_extensions; do
6192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193     ac_cv_prog_ac_ct_AR="ar"
6194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6204 if test -n "$ac_ct_AR"; then
6205   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6206 echo "${ECHO_T}$ac_ct_AR" >&6; }
6207 else
6208   { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6210 fi
6211
6212   if test "x$ac_ct_AR" = x; then
6213     AR="false"
6214   else
6215     case $cross_compiling:$ac_tool_warned in
6216 yes:)
6217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6218 whose name does not start with the host triplet.  If you think this
6219 configuration is useful to you, please write to autoconf@gnu.org." >&5
6220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6221 whose name does not start with the host triplet.  If you think this
6222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6223 ac_tool_warned=yes ;;
6224 esac
6225     AR=$ac_ct_AR
6226   fi
6227 else
6228   AR="$ac_cv_prog_AR"
6229 fi
6230
6231 # Extract the first word of "rm", so it can be a program name with args.
6232 set dummy rm; ac_word=$2
6233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235 if test "${ac_cv_path_RM+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   case $RM in
6239   [\\/]* | ?:[\\/]*)
6240   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6241   ;;
6242   *)
6243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248   for ac_exec_ext in '' $ac_executable_extensions; do
6249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252     break 2
6253   fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6259   ;;
6260 esac
6261 fi
6262 RM=$ac_cv_path_RM
6263 if test -n "$RM"; then
6264   { echo "$as_me:$LINENO: result: $RM" >&5
6265 echo "${ECHO_T}$RM" >&6; }
6266 else
6267   { echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6; }
6269 fi
6270
6271
6272 # Extract the first word of "sed", so it can be a program name with args.
6273 set dummy sed; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_path_SED+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   case $SED in
6280   [\\/]* | ?:[\\/]*)
6281   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6282   ;;
6283   *)
6284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287   IFS=$as_save_IFS
6288   test -z "$as_dir" && as_dir=.
6289   for ac_exec_ext in '' $ac_executable_extensions; do
6290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6291     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293     break 2
6294   fi
6295 done
6296 done
6297 IFS=$as_save_IFS
6298
6299   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6300   ;;
6301 esac
6302 fi
6303 SED=$ac_cv_path_SED
6304 if test -n "$SED"; then
6305   { echo "$as_me:$LINENO: result: $SED" >&5
6306 echo "${ECHO_T}$SED" >&6; }
6307 else
6308   { echo "$as_me:$LINENO: result: no" >&5
6309 echo "${ECHO_T}no" >&6; }
6310 fi
6311
6312
6313 # Extract the first word of "tar", so it can be a program name with args.
6314 set dummy tar; ac_word=$2
6315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6317 if test "${ac_cv_path_TAR+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   case $TAR in
6321   [\\/]* | ?:[\\/]*)
6322   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6323   ;;
6324   *)
6325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328   IFS=$as_save_IFS
6329   test -z "$as_dir" && as_dir=.
6330   for ac_exec_ext in '' $ac_executable_extensions; do
6331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6332     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334     break 2
6335   fi
6336 done
6337 done
6338 IFS=$as_save_IFS
6339
6340   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6341   ;;
6342 esac
6343 fi
6344 TAR=$ac_cv_path_TAR
6345 if test -n "$TAR"; then
6346   { echo "$as_me:$LINENO: result: $TAR" >&5
6347 echo "${ECHO_T}$TAR" >&6; }
6348 else
6349   { echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6; }
6351 fi
6352
6353
6354 # Extract the first word of "pwd", so it can be a program name with args.
6355 set dummy pwd; ac_word=$2
6356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358 if test "${ac_cv_path_BINPWD+set}" = set; then
6359   echo $ECHO_N "(cached) $ECHO_C" >&6
6360 else
6361   case $BINPWD in
6362   [\\/]* | ?:[\\/]*)
6363   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6364   ;;
6365   *)
6366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369   IFS=$as_save_IFS
6370   test -z "$as_dir" && as_dir=.
6371   for ac_exec_ext in '' $ac_executable_extensions; do
6372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6373     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375     break 2
6376   fi
6377 done
6378 done
6379 IFS=$as_save_IFS
6380
6381   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6382   ;;
6383 esac
6384 fi
6385 BINPWD=$ac_cv_path_BINPWD
6386 if test -n "$BINPWD"; then
6387   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6388 echo "${ECHO_T}$BINPWD" >&6; }
6389 else
6390   { echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6; }
6392 fi
6393
6394
6395
6396 # Extract the first word of "Graphviz", so it can be a program name with args.
6397 set dummy Graphviz; ac_word=$2
6398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6400 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6401   echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403   case $GRAPHVIZ in
6404   [\\/]* | ?:[\\/]*)
6405   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6406   ;;
6407   *)
6408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411   IFS=$as_save_IFS
6412   test -z "$as_dir" && as_dir=.
6413   for ac_exec_ext in '' $ac_executable_extensions; do
6414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6415     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417     break 2
6418   fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6424   ;;
6425 esac
6426 fi
6427 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6428 if test -n "$GRAPHVIZ"; then
6429   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6430 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6431 else
6432   { echo "$as_me:$LINENO: result: no" >&5
6433 echo "${ECHO_T}no" >&6; }
6434 fi
6435
6436
6437 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6438
6439 cat >>confdefs.h <<\_ACEOF
6440 #define HAVE_GRAPHVIZ 1
6441 _ACEOF
6442
6443     if test "$llvm_cv_os_type" = "MingW" ; then
6444     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6445   fi
6446
6447 cat >>confdefs.h <<_ACEOF
6448 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6449 _ACEOF
6450
6451 fi
6452 # Extract the first word of "dot", so it can be a program name with args.
6453 set dummy dot; ac_word=$2
6454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456 if test "${ac_cv_path_DOT+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   case $DOT in
6460   [\\/]* | ?:[\\/]*)
6461   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6462   ;;
6463   *)
6464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469   for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6480   ;;
6481 esac
6482 fi
6483 DOT=$ac_cv_path_DOT
6484 if test -n "$DOT"; then
6485   { echo "$as_me:$LINENO: result: $DOT" >&5
6486 echo "${ECHO_T}$DOT" >&6; }
6487 else
6488   { echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6; }
6490 fi
6491
6492
6493 if test "$DOT" != "echo dot" ; then
6494
6495 cat >>confdefs.h <<\_ACEOF
6496 #define HAVE_DOT 1
6497 _ACEOF
6498
6499     if test "$llvm_cv_os_type" = "MingW" ; then
6500     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6501   fi
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6505 _ACEOF
6506
6507 fi
6508 # Extract the first word of "fdp", so it can be a program name with args.
6509 set dummy fdp; ac_word=$2
6510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512 if test "${ac_cv_path_FDP+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   case $FDP in
6516   [\\/]* | ?:[\\/]*)
6517   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6518   ;;
6519   *)
6520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525   for ac_exec_ext in '' $ac_executable_extensions; do
6526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6527     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6536   ;;
6537 esac
6538 fi
6539 FDP=$ac_cv_path_FDP
6540 if test -n "$FDP"; then
6541   { echo "$as_me:$LINENO: result: $FDP" >&5
6542 echo "${ECHO_T}$FDP" >&6; }
6543 else
6544   { echo "$as_me:$LINENO: result: no" >&5
6545 echo "${ECHO_T}no" >&6; }
6546 fi
6547
6548
6549 if test "$FDP" != "echo fdp" ; then
6550
6551 cat >>confdefs.h <<\_ACEOF
6552 #define HAVE_FDP 1
6553 _ACEOF
6554
6555     if test "$llvm_cv_os_type" = "MingW" ; then
6556     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6557   fi
6558
6559 cat >>confdefs.h <<_ACEOF
6560 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6561 _ACEOF
6562
6563 fi
6564 # Extract the first word of "neato", so it can be a program name with args.
6565 set dummy neato; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_path_NEATO+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   case $NEATO in
6572   [\\/]* | ?:[\\/]*)
6573   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6574   ;;
6575   *)
6576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581   for ac_exec_ext in '' $ac_executable_extensions; do
6582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6583     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588 done
6589 IFS=$as_save_IFS
6590
6591   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6592   ;;
6593 esac
6594 fi
6595 NEATO=$ac_cv_path_NEATO
6596 if test -n "$NEATO"; then
6597   { echo "$as_me:$LINENO: result: $NEATO" >&5
6598 echo "${ECHO_T}$NEATO" >&6; }
6599 else
6600   { echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6; }
6602 fi
6603
6604
6605 if test "$NEATO" != "echo neato" ; then
6606
6607 cat >>confdefs.h <<\_ACEOF
6608 #define HAVE_NEATO 1
6609 _ACEOF
6610
6611     if test "$llvm_cv_os_type" = "MingW" ; then
6612     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6613   fi
6614
6615 cat >>confdefs.h <<_ACEOF
6616 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6617 _ACEOF
6618
6619 fi
6620 # Extract the first word of "twopi", so it can be a program name with args.
6621 set dummy twopi; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_path_TWOPI+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   case $TWOPI in
6628   [\\/]* | ?:[\\/]*)
6629   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6630   ;;
6631   *)
6632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637   for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6648   ;;
6649 esac
6650 fi
6651 TWOPI=$ac_cv_path_TWOPI
6652 if test -n "$TWOPI"; then
6653   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6654 echo "${ECHO_T}$TWOPI" >&6; }
6655 else
6656   { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6658 fi
6659
6660
6661 if test "$TWOPI" != "echo twopi" ; then
6662
6663 cat >>confdefs.h <<\_ACEOF
6664 #define HAVE_TWOPI 1
6665 _ACEOF
6666
6667     if test "$llvm_cv_os_type" = "MingW" ; then
6668     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6669   fi
6670
6671 cat >>confdefs.h <<_ACEOF
6672 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6673 _ACEOF
6674
6675 fi
6676 # Extract the first word of "circo", so it can be a program name with args.
6677 set dummy circo; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_path_CIRCO+set}" = set; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   case $CIRCO in
6684   [\\/]* | ?:[\\/]*)
6685   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6686   ;;
6687   *)
6688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693   for ac_exec_ext in '' $ac_executable_extensions; do
6694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6695     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6704   ;;
6705 esac
6706 fi
6707 CIRCO=$ac_cv_path_CIRCO
6708 if test -n "$CIRCO"; then
6709   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6710 echo "${ECHO_T}$CIRCO" >&6; }
6711 else
6712   { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6714 fi
6715
6716
6717 if test "$CIRCO" != "echo circo" ; then
6718
6719 cat >>confdefs.h <<\_ACEOF
6720 #define HAVE_CIRCO 1
6721 _ACEOF
6722
6723     if test "$llvm_cv_os_type" = "MingW" ; then
6724     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6725   fi
6726
6727 cat >>confdefs.h <<_ACEOF
6728 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6729 _ACEOF
6730
6731 fi
6732 for ac_prog in gv gsview32
6733 do
6734   # Extract the first word of "$ac_prog", so it can be a program name with args.
6735 set dummy $ac_prog; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_path_GV+set}" = set; then
6739   echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741   case $GV in
6742   [\\/]* | ?:[\\/]*)
6743   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6744   ;;
6745   *)
6746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749   IFS=$as_save_IFS
6750   test -z "$as_dir" && as_dir=.
6751   for ac_exec_ext in '' $ac_executable_extensions; do
6752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6753     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755     break 2
6756   fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761   ;;
6762 esac
6763 fi
6764 GV=$ac_cv_path_GV
6765 if test -n "$GV"; then
6766   { echo "$as_me:$LINENO: result: $GV" >&5
6767 echo "${ECHO_T}$GV" >&6; }
6768 else
6769   { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6771 fi
6772
6773
6774   test -n "$GV" && break
6775 done
6776 test -n "$GV" || GV="echo gv"
6777
6778 if test "$GV" != "echo gv" ; then
6779
6780 cat >>confdefs.h <<\_ACEOF
6781 #define HAVE_GV 1
6782 _ACEOF
6783
6784     if test "$llvm_cv_os_type" = "MingW" ; then
6785     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6786   fi
6787
6788 cat >>confdefs.h <<_ACEOF
6789 #define LLVM_PATH_GV "$GV${EXEEXT}"
6790 _ACEOF
6791
6792 fi
6793 # Extract the first word of "dotty", so it can be a program name with args.
6794 set dummy dotty; ac_word=$2
6795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6797 if test "${ac_cv_path_DOTTY+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   case $DOTTY in
6801   [\\/]* | ?:[\\/]*)
6802   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6803   ;;
6804   *)
6805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808   IFS=$as_save_IFS
6809   test -z "$as_dir" && as_dir=.
6810   for ac_exec_ext in '' $ac_executable_extensions; do
6811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6812     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814     break 2
6815   fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6821   ;;
6822 esac
6823 fi
6824 DOTTY=$ac_cv_path_DOTTY
6825 if test -n "$DOTTY"; then
6826   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6827 echo "${ECHO_T}$DOTTY" >&6; }
6828 else
6829   { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6831 fi
6832
6833
6834 if test "$DOTTY" != "echo dotty" ; then
6835
6836 cat >>confdefs.h <<\_ACEOF
6837 #define HAVE_DOTTY 1
6838 _ACEOF
6839
6840     if test "$llvm_cv_os_type" = "MingW" ; then
6841     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6842   fi
6843
6844 cat >>confdefs.h <<_ACEOF
6845 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6846 _ACEOF
6847
6848 fi
6849 # Extract the first word of "xdot.py", so it can be a program name with args.
6850 set dummy xdot.py; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6854   echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856   case $XDOT_PY in
6857   [\\/]* | ?:[\\/]*)
6858   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6859   ;;
6860   *)
6861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866   for ac_exec_ext in '' $ac_executable_extensions; do
6867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6877   ;;
6878 esac
6879 fi
6880 XDOT_PY=$ac_cv_path_XDOT_PY
6881 if test -n "$XDOT_PY"; then
6882   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6883 echo "${ECHO_T}$XDOT_PY" >&6; }
6884 else
6885   { echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6; }
6887 fi
6888
6889
6890 if test "$XDOT_PY" != "echo xdot.py" ; then
6891
6892 cat >>confdefs.h <<\_ACEOF
6893 #define HAVE_XDOT_PY 1
6894 _ACEOF
6895
6896     if test "$llvm_cv_os_type" = "MingW" ; then
6897     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6898   fi
6899
6900 cat >>confdefs.h <<_ACEOF
6901 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6902 _ACEOF
6903
6904 fi
6905
6906 # Find a good install program.  We prefer a C program (faster),
6907 # so one script is as good as another.  But avoid the broken or
6908 # incompatible versions:
6909 # SysV /etc/install, /usr/sbin/install
6910 # SunOS /usr/etc/install
6911 # IRIX /sbin/install
6912 # AIX /bin/install
6913 # AmigaOS /C/install, which installs bootblocks on floppy discs
6914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6917 # OS/2's system install, which has a completely different semantic
6918 # ./install, which can be erroneously created by make from ./install.sh.
6919 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6920 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6921 if test -z "$INSTALL"; then
6922 if test "${ac_cv_path_install+set}" = set; then
6923   echo $ECHO_N "(cached) $ECHO_C" >&6
6924 else
6925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928   IFS=$as_save_IFS
6929   test -z "$as_dir" && as_dir=.
6930   # Account for people who put trailing slashes in PATH elements.
6931 case $as_dir/ in
6932   ./ | .// | /cC/* | \
6933   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6934   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6935   /usr/ucb/* ) ;;
6936   *)
6937     # OSF1 and SCO ODT 3.0 have their own names for install.
6938     # Don't use installbsd from OSF since it installs stuff as root
6939     # by default.
6940     for ac_prog in ginstall scoinst install; do
6941       for ac_exec_ext in '' $ac_executable_extensions; do
6942         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6943           if test $ac_prog = install &&
6944             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6945             # AIX install.  It has an incompatible calling convention.
6946             :
6947           elif test $ac_prog = install &&
6948             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6949             # program-specific install script used by HP pwplus--don't use.
6950             :
6951           else
6952             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6953             break 3
6954           fi
6955         fi
6956       done
6957     done
6958     ;;
6959 esac
6960 done
6961 IFS=$as_save_IFS
6962
6963
6964 fi
6965   if test "${ac_cv_path_install+set}" = set; then
6966     INSTALL=$ac_cv_path_install
6967   else
6968     # As a last resort, use the slow shell script.  Don't cache a
6969     # value for INSTALL within a source directory, because that will
6970     # break other packages using the cache if that directory is
6971     # removed, or if the value is a relative name.
6972     INSTALL=$ac_install_sh
6973   fi
6974 fi
6975 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6976 echo "${ECHO_T}$INSTALL" >&6; }
6977
6978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6979 # It thinks the first close brace ends the variable substitution.
6980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6981
6982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6983
6984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6985
6986 case "$INSTALL" in
6987  [\\/$]* | ?:[\\/]* ) ;;
6988  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6989 esac
6990
6991 # Extract the first word of "bzip2", so it can be a program name with args.
6992 set dummy bzip2; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_path_BZIP2+set}" = set; then
6996   echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998   case $BZIP2 in
6999   [\\/]* | ?:[\\/]*)
7000   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7001   ;;
7002   *)
7003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006   IFS=$as_save_IFS
7007   test -z "$as_dir" && as_dir=.
7008   for ac_exec_ext in '' $ac_executable_extensions; do
7009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7010     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012     break 2
7013   fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018   ;;
7019 esac
7020 fi
7021 BZIP2=$ac_cv_path_BZIP2
7022 if test -n "$BZIP2"; then
7023   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7024 echo "${ECHO_T}$BZIP2" >&6; }
7025 else
7026   { echo "$as_me:$LINENO: result: no" >&5
7027 echo "${ECHO_T}no" >&6; }
7028 fi
7029
7030
7031 # Extract the first word of "cat", so it can be a program name with args.
7032 set dummy cat; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_path_CAT+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   case $CAT in
7039   [\\/]* | ?:[\\/]*)
7040   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7041   ;;
7042   *)
7043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048   for ac_exec_ext in '' $ac_executable_extensions; do
7049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7050     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052     break 2
7053   fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058   ;;
7059 esac
7060 fi
7061 CAT=$ac_cv_path_CAT
7062 if test -n "$CAT"; then
7063   { echo "$as_me:$LINENO: result: $CAT" >&5
7064 echo "${ECHO_T}$CAT" >&6; }
7065 else
7066   { echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6; }
7068 fi
7069
7070
7071 # Extract the first word of "doxygen", so it can be a program name with args.
7072 set dummy doxygen; ac_word=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7076   echo $ECHO_N "(cached) $ECHO_C" >&6
7077 else
7078   case $DOXYGEN in
7079   [\\/]* | ?:[\\/]*)
7080   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7081   ;;
7082   *)
7083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086   IFS=$as_save_IFS
7087   test -z "$as_dir" && as_dir=.
7088   for ac_exec_ext in '' $ac_executable_extensions; do
7089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7090     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092     break 2
7093   fi
7094 done
7095 done
7096 IFS=$as_save_IFS
7097
7098   ;;
7099 esac
7100 fi
7101 DOXYGEN=$ac_cv_path_DOXYGEN
7102 if test -n "$DOXYGEN"; then
7103   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7104 echo "${ECHO_T}$DOXYGEN" >&6; }
7105 else
7106   { echo "$as_me:$LINENO: result: no" >&5
7107 echo "${ECHO_T}no" >&6; }
7108 fi
7109
7110
7111 # Extract the first word of "groff", so it can be a program name with args.
7112 set dummy groff; ac_word=$2
7113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115 if test "${ac_cv_path_GROFF+set}" = set; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118   case $GROFF in
7119   [\\/]* | ?:[\\/]*)
7120   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7121   ;;
7122   *)
7123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126   IFS=$as_save_IFS
7127   test -z "$as_dir" && as_dir=.
7128   for ac_exec_ext in '' $ac_executable_extensions; do
7129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7130     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132     break 2
7133   fi
7134 done
7135 done
7136 IFS=$as_save_IFS
7137
7138   ;;
7139 esac
7140 fi
7141 GROFF=$ac_cv_path_GROFF
7142 if test -n "$GROFF"; then
7143   { echo "$as_me:$LINENO: result: $GROFF" >&5
7144 echo "${ECHO_T}$GROFF" >&6; }
7145 else
7146   { echo "$as_me:$LINENO: result: no" >&5
7147 echo "${ECHO_T}no" >&6; }
7148 fi
7149
7150
7151 # Extract the first word of "gzip", so it can be a program name with args.
7152 set dummy gzip; ac_word=$2
7153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   case $GZIPBIN in
7159   [\\/]* | ?:[\\/]*)
7160   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7161   ;;
7162   *)
7163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166   IFS=$as_save_IFS
7167   test -z "$as_dir" && as_dir=.
7168   for ac_exec_ext in '' $ac_executable_extensions; do
7169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7170     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172     break 2
7173   fi
7174 done
7175 done
7176 IFS=$as_save_IFS
7177
7178   ;;
7179 esac
7180 fi
7181 GZIPBIN=$ac_cv_path_GZIPBIN
7182 if test -n "$GZIPBIN"; then
7183   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7184 echo "${ECHO_T}$GZIPBIN" >&6; }
7185 else
7186   { echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6; }
7188 fi
7189
7190
7191 # Extract the first word of "pod2html", so it can be a program name with args.
7192 set dummy pod2html; ac_word=$2
7193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195 if test "${ac_cv_path_POD2HTML+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   case $POD2HTML in
7199   [\\/]* | ?:[\\/]*)
7200   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7201   ;;
7202   *)
7203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206   IFS=$as_save_IFS
7207   test -z "$as_dir" && as_dir=.
7208   for ac_exec_ext in '' $ac_executable_extensions; do
7209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7210     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212     break 2
7213   fi
7214 done
7215 done
7216 IFS=$as_save_IFS
7217
7218   ;;
7219 esac
7220 fi
7221 POD2HTML=$ac_cv_path_POD2HTML
7222 if test -n "$POD2HTML"; then
7223   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7224 echo "${ECHO_T}$POD2HTML" >&6; }
7225 else
7226   { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7228 fi
7229
7230
7231 # Extract the first word of "pod2man", so it can be a program name with args.
7232 set dummy pod2man; ac_word=$2
7233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7235 if test "${ac_cv_path_POD2MAN+set}" = set; then
7236   echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238   case $POD2MAN in
7239   [\\/]* | ?:[\\/]*)
7240   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7241   ;;
7242   *)
7243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246   IFS=$as_save_IFS
7247   test -z "$as_dir" && as_dir=.
7248   for ac_exec_ext in '' $ac_executable_extensions; do
7249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7250     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252     break 2
7253   fi
7254 done
7255 done
7256 IFS=$as_save_IFS
7257
7258   ;;
7259 esac
7260 fi
7261 POD2MAN=$ac_cv_path_POD2MAN
7262 if test -n "$POD2MAN"; then
7263   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7264 echo "${ECHO_T}$POD2MAN" >&6; }
7265 else
7266   { echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6; }
7268 fi
7269
7270
7271 # Extract the first word of "pdfroff", so it can be a program name with args.
7272 set dummy pdfroff; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_path_PDFROFF+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278   case $PDFROFF in
7279   [\\/]* | ?:[\\/]*)
7280   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7281   ;;
7282   *)
7283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288   for ac_exec_ext in '' $ac_executable_extensions; do
7289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7290     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298   ;;
7299 esac
7300 fi
7301 PDFROFF=$ac_cv_path_PDFROFF
7302 if test -n "$PDFROFF"; then
7303   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7304 echo "${ECHO_T}$PDFROFF" >&6; }
7305 else
7306   { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7308 fi
7309
7310
7311 # Extract the first word of "runtest", so it can be a program name with args.
7312 set dummy runtest; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_path_RUNTEST+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   case $RUNTEST in
7319   [\\/]* | ?:[\\/]*)
7320   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7321   ;;
7322   *)
7323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7325 do
7326   IFS=$as_save_IFS
7327   test -z "$as_dir" && as_dir=.
7328   for ac_exec_ext in '' $ac_executable_extensions; do
7329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7330     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332     break 2
7333   fi
7334 done
7335 done
7336 IFS=$as_save_IFS
7337
7338   ;;
7339 esac
7340 fi
7341 RUNTEST=$ac_cv_path_RUNTEST
7342 if test -n "$RUNTEST"; then
7343   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7344 echo "${ECHO_T}$RUNTEST" >&6; }
7345 else
7346   { echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6; }
7348 fi
7349
7350
7351
7352 no_itcl=true
7353 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7354 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7355
7356 # Check whether --with-tclinclude was given.
7357 if test "${with_tclinclude+set}" = set; then
7358   withval=$with_tclinclude; with_tclinclude=${withval}
7359 else
7360   with_tclinclude=''
7361 fi
7362
7363 if test "${ac_cv_path_tclsh+set}" = set; then
7364   echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366
7367 if test x"${with_tclinclude}" != x ; then
7368   if test -f ${with_tclinclude}/tclsh ; then
7369     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7370   elif test -f ${with_tclinclude}/src/tclsh ; then
7371     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7372   else
7373     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7374 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7375    { (exit 1); exit 1; }; }
7376   fi
7377 fi
7378 fi
7379
7380
7381 if test x"${ac_cv_path_tclsh}" = x ; then
7382   { echo "$as_me:$LINENO: result: none" >&5
7383 echo "${ECHO_T}none" >&6; }
7384   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
7385 do
7386   # Extract the first word of "$ac_prog", so it can be a program name with args.
7387 set dummy $ac_prog; ac_word=$2
7388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7390 if test "${ac_cv_path_TCLSH+set}" = set; then
7391   echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393   case $TCLSH in
7394   [\\/]* | ?:[\\/]*)
7395   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7396   ;;
7397   *)
7398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401   IFS=$as_save_IFS
7402   test -z "$as_dir" && as_dir=.
7403   for ac_exec_ext in '' $ac_executable_extensions; do
7404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7405     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410 done
7411 IFS=$as_save_IFS
7412
7413   ;;
7414 esac
7415 fi
7416 TCLSH=$ac_cv_path_TCLSH
7417 if test -n "$TCLSH"; then
7418   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7419 echo "${ECHO_T}$TCLSH" >&6; }
7420 else
7421   { echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6; }
7423 fi
7424
7425
7426   test -n "$TCLSH" && break
7427 done
7428
7429   if test x"${TCLSH}" = x ; then
7430     ac_cv_path_tclsh='';
7431   else
7432     ac_cv_path_tclsh="${TCLSH}";
7433   fi
7434 else
7435   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7436 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7437   TCLSH="${ac_cv_path_tclsh}"
7438
7439 fi
7440
7441 # Extract the first word of "zip", so it can be a program name with args.
7442 set dummy zip; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_path_ZIP+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448   case $ZIP in
7449   [\\/]* | ?:[\\/]*)
7450   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7451   ;;
7452   *)
7453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458   for ac_exec_ext in '' $ac_executable_extensions; do
7459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468   ;;
7469 esac
7470 fi
7471 ZIP=$ac_cv_path_ZIP
7472 if test -n "$ZIP"; then
7473   { echo "$as_me:$LINENO: result: $ZIP" >&5
7474 echo "${ECHO_T}$ZIP" >&6; }
7475 else
7476   { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7478 fi
7479
7480
7481 for ac_prog in ocamlc
7482 do
7483   # Extract the first word of "$ac_prog", so it can be a program name with args.
7484 set dummy $ac_prog; ac_word=$2
7485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7487 if test "${ac_cv_path_OCAMLC+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490   case $OCAMLC in
7491   [\\/]* | ?:[\\/]*)
7492   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7493   ;;
7494   *)
7495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500   for ac_exec_ext in '' $ac_executable_extensions; do
7501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7502     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510   ;;
7511 esac
7512 fi
7513 OCAMLC=$ac_cv_path_OCAMLC
7514 if test -n "$OCAMLC"; then
7515   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7516 echo "${ECHO_T}$OCAMLC" >&6; }
7517 else
7518   { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7520 fi
7521
7522
7523   test -n "$OCAMLC" && break
7524 done
7525
7526 for ac_prog in ocamlopt
7527 do
7528   # Extract the first word of "$ac_prog", so it can be a program name with args.
7529 set dummy $ac_prog; ac_word=$2
7530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7532 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7533   echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535   case $OCAMLOPT in
7536   [\\/]* | ?:[\\/]*)
7537   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7538   ;;
7539   *)
7540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543   IFS=$as_save_IFS
7544   test -z "$as_dir" && as_dir=.
7545   for ac_exec_ext in '' $ac_executable_extensions; do
7546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7547     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7549     break 2
7550   fi
7551 done
7552 done
7553 IFS=$as_save_IFS
7554
7555   ;;
7556 esac
7557 fi
7558 OCAMLOPT=$ac_cv_path_OCAMLOPT
7559 if test -n "$OCAMLOPT"; then
7560   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7561 echo "${ECHO_T}$OCAMLOPT" >&6; }
7562 else
7563   { echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6; }
7565 fi
7566
7567
7568   test -n "$OCAMLOPT" && break
7569 done
7570
7571 for ac_prog in ocamldep
7572 do
7573   # Extract the first word of "$ac_prog", so it can be a program name with args.
7574 set dummy $ac_prog; ac_word=$2
7575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580   case $OCAMLDEP in
7581   [\\/]* | ?:[\\/]*)
7582   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7583   ;;
7584   *)
7585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588   IFS=$as_save_IFS
7589   test -z "$as_dir" && as_dir=.
7590   for ac_exec_ext in '' $ac_executable_extensions; do
7591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7592     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594     break 2
7595   fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600   ;;
7601 esac
7602 fi
7603 OCAMLDEP=$ac_cv_path_OCAMLDEP
7604 if test -n "$OCAMLDEP"; then
7605   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7606 echo "${ECHO_T}$OCAMLDEP" >&6; }
7607 else
7608   { echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6; }
7610 fi
7611
7612
7613   test -n "$OCAMLDEP" && break
7614 done
7615
7616 for ac_prog in ocamldoc
7617 do
7618   # Extract the first word of "$ac_prog", so it can be a program name with args.
7619 set dummy $ac_prog; ac_word=$2
7620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7622 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7623   echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625   case $OCAMLDOC in
7626   [\\/]* | ?:[\\/]*)
7627   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7628   ;;
7629   *)
7630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633   IFS=$as_save_IFS
7634   test -z "$as_dir" && as_dir=.
7635   for ac_exec_ext in '' $ac_executable_extensions; do
7636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7637     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7639     break 2
7640   fi
7641 done
7642 done
7643 IFS=$as_save_IFS
7644
7645   ;;
7646 esac
7647 fi
7648 OCAMLDOC=$ac_cv_path_OCAMLDOC
7649 if test -n "$OCAMLDOC"; then
7650   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7651 echo "${ECHO_T}$OCAMLDOC" >&6; }
7652 else
7653   { echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6; }
7655 fi
7656
7657
7658   test -n "$OCAMLDOC" && break
7659 done
7660
7661 for ac_prog in gas as
7662 do
7663   # Extract the first word of "$ac_prog", so it can be a program name with args.
7664 set dummy $ac_prog; ac_word=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_GAS+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   case $GAS in
7671   [\\/]* | ?:[\\/]*)
7672   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7673   ;;
7674   *)
7675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678   IFS=$as_save_IFS
7679   test -z "$as_dir" && as_dir=.
7680   for ac_exec_ext in '' $ac_executable_extensions; do
7681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684     break 2
7685   fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690   ;;
7691 esac
7692 fi
7693 GAS=$ac_cv_path_GAS
7694 if test -n "$GAS"; then
7695   { echo "$as_me:$LINENO: result: $GAS" >&5
7696 echo "${ECHO_T}$GAS" >&6; }
7697 else
7698   { echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6; }
7700 fi
7701
7702
7703   test -n "$GAS" && break
7704 done
7705
7706
7707 { echo "$as_me:$LINENO: checking for linker version" >&5
7708 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7709 if test "${llvm_cv_link_version+set}" = set; then
7710   echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712
7713    version_string="$(ld -v 2>&1 | head -1)"
7714
7715    # Check for ld64.
7716    if (echo "$version_string" | grep -q "ld64"); then
7717      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7718    else
7719      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7720    fi
7721
7722 fi
7723 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7724 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7725
7726 cat >>confdefs.h <<_ACEOF
7727 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7728 _ACEOF
7729
7730
7731
7732 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7733 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7734 if test "${llvm_cv_link_use_r+set}" = set; then
7735   echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737    ac_ext=c
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742
7743   oldcflags="$CFLAGS"
7744   CFLAGS="$CFLAGS -Wl,-R."
7745   cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h.  */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h.  */
7751
7752 int
7753 main ()
7754 {
7755
7756   ;
7757   return 0;
7758 }
7759 _ACEOF
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (ac_try="$ac_link"
7762 case "(($ac_try" in
7763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764   *) ac_try_echo=$ac_try;;
7765 esac
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767   (eval "$ac_link") 2>conftest.er1
7768   ac_status=$?
7769   grep -v '^ *+' conftest.er1 >conftest.err
7770   rm -f conftest.er1
7771   cat conftest.err >&5
7772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773   (exit $ac_status); } &&
7774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7775   { (case "(($ac_try" in
7776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777   *) ac_try_echo=$ac_try;;
7778 esac
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780   (eval "$ac_try") 2>&5
7781   ac_status=$?
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); }; } &&
7784          { ac_try='test -s conftest$ac_exeext'
7785   { (case "(($ac_try" in
7786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787   *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790   (eval "$ac_try") 2>&5
7791   ac_status=$?
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); }; }; then
7794   llvm_cv_link_use_r=yes
7795 else
7796   echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799         llvm_cv_link_use_r=no
7800 fi
7801
7802 rm -f core conftest.err conftest.$ac_objext \
7803       conftest$ac_exeext conftest.$ac_ext
7804   CFLAGS="$oldcflags"
7805   ac_ext=c
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810
7811
7812 fi
7813 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7814 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7815 if test "$llvm_cv_link_use_r" = yes ; then
7816
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_LINK_R 1
7819 _ACEOF
7820
7821   fi
7822
7823
7824 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7825 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7826 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829    ac_ext=c
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835   oldcflags="$CFLAGS"
7836   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7837   cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843
7844 int
7845 main ()
7846 {
7847
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7854 case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859   (eval "$ac_link") 2>conftest.er1
7860   ac_status=$?
7861   grep -v '^ *+' conftest.er1 >conftest.err
7862   rm -f conftest.er1
7863   cat conftest.err >&5
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); } &&
7866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7867   { (case "(($ac_try" in
7868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869   *) ac_try_echo=$ac_try;;
7870 esac
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872   (eval "$ac_try") 2>&5
7873   ac_status=$?
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); }; } &&
7876          { ac_try='test -s conftest$ac_exeext'
7877   { (case "(($ac_try" in
7878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879   *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882   (eval "$ac_try") 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   llvm_cv_link_use_export_dynamic=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891         llvm_cv_link_use_export_dynamic=no
7892 fi
7893
7894 rm -f core conftest.err conftest.$ac_objext \
7895       conftest$ac_exeext conftest.$ac_ext
7896   CFLAGS="$oldcflags"
7897   ac_ext=c
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902
7903
7904 fi
7905 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7906 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7907 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7908
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_LINK_EXPORT_DYNAMIC 1
7911 _ACEOF
7912
7913   fi
7914
7915
7916 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7917 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_use_version_script+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921    ac_ext=c
7922 ac_cpp='$CPP $CPPFLAGS'
7923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927   oldcflags="$CFLAGS"
7928
7929   # The following code is from the autoconf manual,
7930   # "11.13: Limitations of Usual Tools".
7931   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7932   # Use mktemp if possible; otherwise fall back on mkdir,
7933   # with $RANDOM to make collisions less likely.
7934   : ${TMPDIR=/tmp}
7935   {
7936     tmp=`
7937       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7938     ` &&
7939     test -n "$tmp" && test -d "$tmp"
7940   } || {
7941     tmp=$TMPDIR/foo$$-$RANDOM
7942     (umask 077 && mkdir "$tmp")
7943   } || exit $?
7944
7945   echo "{" > "$tmp/export.map"
7946   echo "  global: main;" >> "$tmp/export.map"
7947   echo "  local: *;" >> "$tmp/export.map"
7948   echo "};" >> "$tmp/export.map"
7949
7950   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7951   cat >conftest.$ac_ext <<_ACEOF
7952 /* confdefs.h.  */
7953 _ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h.  */
7957
7958 int
7959 main ()
7960 {
7961
7962   ;
7963   return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest.$ac_objext conftest$ac_exeext
7967 if { (ac_try="$ac_link"
7968 case "(($ac_try" in
7969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970   *) ac_try_echo=$ac_try;;
7971 esac
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973   (eval "$ac_link") 2>conftest.er1
7974   ac_status=$?
7975   grep -v '^ *+' conftest.er1 >conftest.err
7976   rm -f conftest.er1
7977   cat conftest.err >&5
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } &&
7980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7981   { (case "(($ac_try" in
7982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983   *) ac_try_echo=$ac_try;;
7984 esac
7985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986   (eval "$ac_try") 2>&5
7987   ac_status=$?
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); }; } &&
7990          { ac_try='test -s conftest$ac_exeext'
7991   { (case "(($ac_try" in
7992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993   *) ac_try_echo=$ac_try;;
7994 esac
7995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996   (eval "$ac_try") 2>&5
7997   ac_status=$?
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); }; }; then
8000   llvm_cv_link_use_version_script=yes
8001 else
8002   echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8004
8005         llvm_cv_link_use_version_script=no
8006 fi
8007
8008 rm -f core conftest.err conftest.$ac_objext \
8009       conftest$ac_exeext conftest.$ac_ext
8010   rm "$tmp/export.map"
8011   rmdir "$tmp"
8012   CFLAGS="$oldcflags"
8013   ac_ext=c
8014 ac_cpp='$CPP $CPPFLAGS'
8015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8018
8019
8020 fi
8021 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8022 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8023 if test "$llvm_cv_link_use_version_script" = yes ; then
8024   HAVE_LINK_VERSION_SCRIPT=1
8025
8026   fi
8027
8028
8029
8030
8031 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8032 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8033 if test "${ac_cv_c_const+set}" = set; then
8034   echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036   cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h.  */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h.  */
8042
8043 int
8044 main ()
8045 {
8046 /* FIXME: Include the comments suggested by Paul. */
8047 #ifndef __cplusplus
8048   /* Ultrix mips cc rejects this.  */
8049   typedef int charset[2];
8050   const charset x;
8051   /* SunOS 4.1.1 cc rejects this.  */
8052   char const *const *ccp;
8053   char **p;
8054   /* NEC SVR4.0.2 mips cc rejects this.  */
8055   struct point {int x, y;};
8056   static struct point const zero = {0,0};
8057   /* AIX XL C 1.02.0.0 rejects this.
8058      It does not let you subtract one const X* pointer from another in
8059      an arm of an if-expression whose if-part is not a constant
8060      expression */
8061   const char *g = "string";
8062   ccp = &g + (g ? g-g : 0);
8063   /* HPUX 7.0 cc rejects these. */
8064   ++ccp;
8065   p = (char**) ccp;
8066   ccp = (char const *const *) p;
8067   { /* SCO 3.2v4 cc rejects this.  */
8068     char *t;
8069     char const *s = 0 ? (char *) 0 : (char const *) 0;
8070
8071     *t++ = 0;
8072     if (s) return 0;
8073   }
8074   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8075     int x[] = {25, 17};
8076     const int *foo = &x[0];
8077     ++foo;
8078   }
8079   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8080     typedef const int *iptr;
8081     iptr p = 0;
8082     ++p;
8083   }
8084   { /* AIX XL C 1.02.0.0 rejects this saying
8085        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8086     struct s { int j; const int *ap[3]; };
8087     struct s *b; b->j = 5;
8088   }
8089   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8090     const int foo = 10;
8091     if (!foo) return 0;
8092   }
8093   return !x[0] && !zero.x;
8094 #endif
8095
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8102 case "(($ac_try" in
8103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104   *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107   (eval "$ac_compile") 2>conftest.er1
8108   ac_status=$?
8109   grep -v '^ *+' conftest.er1 >conftest.err
8110   rm -f conftest.er1
8111   cat conftest.err >&5
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8115   { (case "(($ac_try" in
8116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117   *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120   (eval "$ac_try") 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; } &&
8124          { ac_try='test -s conftest.$ac_objext'
8125   { (case "(($ac_try" in
8126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127   *) ac_try_echo=$ac_try;;
8128 esac
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130   (eval "$ac_try") 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_cv_c_const=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139         ac_cv_c_const=no
8140 fi
8141
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 fi
8144 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8145 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8146 if test $ac_cv_c_const = no; then
8147
8148 cat >>confdefs.h <<\_ACEOF
8149 #define const
8150 _ACEOF
8151
8152 fi
8153
8154
8155
8156
8157
8158
8159 ac_header_dirent=no
8160 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8161   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8162 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8163 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8165   echo $ECHO_N "(cached) $ECHO_C" >&6
8166 else
8167   cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173 #include <sys/types.h>
8174 #include <$ac_hdr>
8175
8176 int
8177 main ()
8178 {
8179 if ((DIR *) 0)
8180 return 0;
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8187 case "(($ac_try" in
8188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189   *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192   (eval "$ac_compile") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } &&
8199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200   { (case "(($ac_try" in
8201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202   *) ac_try_echo=$ac_try;;
8203 esac
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205   (eval "$ac_try") 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; } &&
8209          { ac_try='test -s conftest.$ac_objext'
8210   { (case "(($ac_try" in
8211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212   *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215   (eval "$ac_try") 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); }; }; then
8219   eval "$as_ac_Header=yes"
8220 else
8221   echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224         eval "$as_ac_Header=no"
8225 fi
8226
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 fi
8229 ac_res=`eval echo '${'$as_ac_Header'}'`
8230                { echo "$as_me:$LINENO: result: $ac_res" >&5
8231 echo "${ECHO_T}$ac_res" >&6; }
8232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8233   cat >>confdefs.h <<_ACEOF
8234 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8235 _ACEOF
8236
8237 ac_header_dirent=$ac_hdr; break
8238 fi
8239
8240 done
8241 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8242 if test $ac_header_dirent = dirent.h; then
8243   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8244 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8245 if test "${ac_cv_search_opendir+set}" = set; then
8246   echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248   ac_func_search_save_LIBS=$LIBS
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h.  */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h.  */
8255
8256 /* Override any GCC internal prototype to avoid an error.
8257    Use char because int might match the return type of a GCC
8258    builtin and then its argument prototype would still apply.  */
8259 #ifdef __cplusplus
8260 extern "C"
8261 #endif
8262 char opendir ();
8263 int
8264 main ()
8265 {
8266 return opendir ();
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 for ac_lib in '' dir; do
8272   if test -z "$ac_lib"; then
8273     ac_res="none required"
8274   else
8275     ac_res=-l$ac_lib
8276     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8277   fi
8278   rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (ac_try="$ac_link"
8280 case "(($ac_try" in
8281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282   *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285   (eval "$ac_link") 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8293   { (case "(($ac_try" in
8294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295   *) ac_try_echo=$ac_try;;
8296 esac
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298   (eval "$ac_try") 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; } &&
8302          { ac_try='test -s conftest$ac_exeext'
8303   { (case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_try") 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312   ac_cv_search_opendir=$ac_res
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317
8318 fi
8319
8320 rm -f core conftest.err conftest.$ac_objext \
8321       conftest$ac_exeext
8322   if test "${ac_cv_search_opendir+set}" = set; then
8323   break
8324 fi
8325 done
8326 if test "${ac_cv_search_opendir+set}" = set; then
8327   :
8328 else
8329   ac_cv_search_opendir=no
8330 fi
8331 rm conftest.$ac_ext
8332 LIBS=$ac_func_search_save_LIBS
8333 fi
8334 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8335 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8336 ac_res=$ac_cv_search_opendir
8337 if test "$ac_res" != no; then
8338   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8339
8340 fi
8341
8342 else
8343   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8344 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8345 if test "${ac_cv_search_opendir+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   ac_func_search_save_LIBS=$LIBS
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355
8356 /* Override any GCC internal prototype to avoid an error.
8357    Use char because int might match the return type of a GCC
8358    builtin and then its argument prototype would still apply.  */
8359 #ifdef __cplusplus
8360 extern "C"
8361 #endif
8362 char opendir ();
8363 int
8364 main ()
8365 {
8366 return opendir ();
8367   ;
8368   return 0;
8369 }
8370 _ACEOF
8371 for ac_lib in '' x; do
8372   if test -z "$ac_lib"; then
8373     ac_res="none required"
8374   else
8375     ac_res=-l$ac_lib
8376     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8377   fi
8378   rm -f conftest.$ac_objext conftest$ac_exeext
8379 if { (ac_try="$ac_link"
8380 case "(($ac_try" in
8381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382   *) ac_try_echo=$ac_try;;
8383 esac
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385   (eval "$ac_link") 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8393   { (case "(($ac_try" in
8394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395   *) ac_try_echo=$ac_try;;
8396 esac
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398   (eval "$ac_try") 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; } &&
8402          { ac_try='test -s conftest$ac_exeext'
8403   { (case "(($ac_try" in
8404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405   *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408   (eval "$ac_try") 2>&5
8409   ac_status=$?
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); }; }; then
8412   ac_cv_search_opendir=$ac_res
8413 else
8414   echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417
8418 fi
8419
8420 rm -f core conftest.err conftest.$ac_objext \
8421       conftest$ac_exeext
8422   if test "${ac_cv_search_opendir+set}" = set; then
8423   break
8424 fi
8425 done
8426 if test "${ac_cv_search_opendir+set}" = set; then
8427   :
8428 else
8429   ac_cv_search_opendir=no
8430 fi
8431 rm conftest.$ac_ext
8432 LIBS=$ac_func_search_save_LIBS
8433 fi
8434 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8435 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8436 ac_res=$ac_cv_search_opendir
8437 if test "$ac_res" != no; then
8438   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8439
8440 fi
8441
8442 fi
8443
8444
8445 for ac_header in dlfcn.h
8446 do
8447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8449   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8452   echo $ECHO_N "(cached) $ECHO_C" >&6
8453 fi
8454 ac_res=`eval echo '${'$as_ac_Header'}'`
8455                { echo "$as_me:$LINENO: result: $ac_res" >&5
8456 echo "${ECHO_T}$ac_res" >&6; }
8457 else
8458   # Is the header compilable?
8459 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8461 cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h.  */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h.  */
8467 $ac_includes_default
8468 #include <$ac_header>
8469 _ACEOF
8470 rm -f conftest.$ac_objext
8471 if { (ac_try="$ac_compile"
8472 case "(($ac_try" in
8473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474   *) ac_try_echo=$ac_try;;
8475 esac
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477   (eval "$ac_compile") 2>conftest.er1
8478   ac_status=$?
8479   grep -v '^ *+' conftest.er1 >conftest.err
8480   rm -f conftest.er1
8481   cat conftest.err >&5
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } &&
8484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8485   { (case "(($ac_try" in
8486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487   *) ac_try_echo=$ac_try;;
8488 esac
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490   (eval "$ac_try") 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; } &&
8494          { ac_try='test -s conftest.$ac_objext'
8495   { (case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_try") 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_header_compiler=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509         ac_header_compiler=no
8510 fi
8511
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8514 echo "${ECHO_T}$ac_header_compiler" >&6; }
8515
8516 # Is the header present?
8517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h.  */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h.  */
8525 #include <$ac_header>
8526 _ACEOF
8527 if { (ac_try="$ac_cpp conftest.$ac_ext"
8528 case "(($ac_try" in
8529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530   *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } >/dev/null; then
8540   if test -s conftest.err; then
8541     ac_cpp_err=$ac_c_preproc_warn_flag
8542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8543   else
8544     ac_cpp_err=
8545   fi
8546 else
8547   ac_cpp_err=yes
8548 fi
8549 if test -z "$ac_cpp_err"; then
8550   ac_header_preproc=yes
8551 else
8552   echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555   ac_header_preproc=no
8556 fi
8557
8558 rm -f conftest.err conftest.$ac_ext
8559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8560 echo "${ECHO_T}$ac_header_preproc" >&6; }
8561
8562 # So?  What about this header?
8563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8564   yes:no: )
8565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8569     ac_header_preproc=yes
8570     ;;
8571   no:yes:* )
8572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8574     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8575 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8576     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8578     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8579 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8584     ( cat <<\_ASBOX
8585 ## ------------------------------------ ##
8586 ## Report this to http://llvm.org/bugs/ ##
8587 ## ------------------------------------ ##
8588 _ASBOX
8589      ) | sed "s/^/$as_me: WARNING:     /" >&2
8590     ;;
8591 esac
8592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   eval "$as_ac_Header=\$ac_header_preproc"
8598 fi
8599 ac_res=`eval echo '${'$as_ac_Header'}'`
8600                { echo "$as_me:$LINENO: result: $ac_res" >&5
8601 echo "${ECHO_T}$ac_res" >&6; }
8602
8603 fi
8604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8605   cat >>confdefs.h <<_ACEOF
8606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8607 _ACEOF
8608
8609 fi
8610
8611 done
8612
8613 # Check whether --enable-ltdl-install was given.
8614 if test "${enable_ltdl_install+set}" = set; then
8615   enableval=$enable_ltdl_install;
8616 fi
8617
8618
8619
8620
8621 if test x"${enable_ltdl_install-no}" != xno; then
8622   INSTALL_LTDL_TRUE=
8623   INSTALL_LTDL_FALSE='#'
8624 else
8625   INSTALL_LTDL_TRUE='#'
8626   INSTALL_LTDL_FALSE=
8627 fi
8628
8629
8630
8631 if test x"${enable_ltdl_convenience-no}" != xno; then
8632   CONVENIENCE_LTDL_TRUE=
8633   CONVENIENCE_LTDL_FALSE='#'
8634 else
8635   CONVENIENCE_LTDL_TRUE='#'
8636   CONVENIENCE_LTDL_FALSE=
8637 fi
8638
8639
8640 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8641 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8642 library_names_spec=
8643 libname_spec='lib$name'
8644 soname_spec=
8645 shrext_cmds=".so"
8646 postinstall_cmds=
8647 postuninstall_cmds=
8648 finish_cmds=
8649 finish_eval=
8650 shlibpath_var=
8651 shlibpath_overrides_runpath=unknown
8652 version_type=none
8653 dynamic_linker="$host_os ld.so"
8654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8655 if test "$GCC" = yes; then
8656   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8657   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8658     # if the path contains ";" then we assume it to be the separator
8659     # otherwise default to the standard path separator (i.e. ":") - it is
8660     # assumed that no part of a normal pathname contains ";" but that should
8661     # okay in the real world where ";" in dirpaths is itself problematic.
8662     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8663   else
8664     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8665   fi
8666 else
8667   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8668 fi
8669 need_lib_prefix=unknown
8670 hardcode_into_libs=no
8671
8672 # when you set need_version to no, make sure it does not cause -set_version
8673 # flags to be left without arguments
8674 need_version=unknown
8675
8676 case $host_os in
8677 aix3*)
8678   version_type=linux
8679   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8680   shlibpath_var=LIBPATH
8681
8682   # AIX 3 has no versioning support, so we append a major version to the name.
8683   soname_spec='${libname}${release}${shared_ext}$major'
8684   ;;
8685
8686 aix4* | aix5*)
8687   version_type=linux
8688   need_lib_prefix=no
8689   need_version=no
8690   hardcode_into_libs=yes
8691   if test "$host_cpu" = ia64; then
8692     # AIX 5 supports IA64
8693     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8694     shlibpath_var=LD_LIBRARY_PATH
8695   else
8696     # With GCC up to 2.95.x, collect2 would create an import file
8697     # for dependence libraries.  The import file would start with
8698     # the line `#! .'.  This would cause the generated library to
8699     # depend on `.', always an invalid library.  This was fixed in
8700     # development snapshots of GCC prior to 3.0.
8701     case $host_os in
8702       aix4 | aix4.[01] | aix4.[01].*)
8703       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8704            echo ' yes '
8705            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8706         :
8707       else
8708         can_build_shared=no
8709       fi
8710       ;;
8711     esac
8712     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8713     # soname into executable. Probably we can add versioning support to
8714     # collect2, so additional links can be useful in future.
8715     if test "$aix_use_runtimelinking" = yes; then
8716       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8717       # instead of lib<name>.a to let people know that these are not
8718       # typical AIX shared libraries.
8719       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8720     else
8721       # We preserve .a as extension for shared libraries through AIX4.2
8722       # and later when we are not doing run time linking.
8723       library_names_spec='${libname}${release}.a $libname.a'
8724       soname_spec='${libname}${release}${shared_ext}$major'
8725     fi
8726     shlibpath_var=LIBPATH
8727   fi
8728   ;;
8729
8730 amigaos*)
8731   library_names_spec='$libname.ixlibrary $libname.a'
8732   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8733   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8734   ;;
8735
8736 beos*)
8737   library_names_spec='${libname}${shared_ext}'
8738   dynamic_linker="$host_os ld.so"
8739   shlibpath_var=LIBRARY_PATH
8740   ;;
8741
8742 bsdi[45]*)
8743   version_type=linux
8744   need_version=no
8745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746   soname_spec='${libname}${release}${shared_ext}$major'
8747   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8748   shlibpath_var=LD_LIBRARY_PATH
8749   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8750   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8751   # the default ld.so.conf also contains /usr/contrib/lib and
8752   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8753   # libtool to hard-code these into programs
8754   ;;
8755
8756 cygwin* | mingw* | pw32*)
8757   version_type=windows
8758   shrext_cmds=".dll"
8759   need_version=no
8760   need_lib_prefix=no
8761
8762   case $GCC,$host_os in
8763   yes,cygwin* | yes,mingw* | yes,pw32*)
8764     library_names_spec='$libname.dll.a'
8765     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8766     postinstall_cmds='base_file=`basename \${file}`~
8767       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8768       dldir=$destdir/`dirname \$dlpath`~
8769       test -d \$dldir || mkdir -p \$dldir~
8770       $install_prog $dir/$dlname \$dldir/$dlname~
8771       chmod a+x \$dldir/$dlname'
8772     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8773       dlpath=$dir/\$dldll~
8774        $rm \$dlpath'
8775     shlibpath_overrides_runpath=yes
8776
8777     case $host_os in
8778     cygwin*)
8779       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8780       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8781       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8782       ;;
8783     mingw*)
8784       # MinGW DLLs use traditional 'lib' prefix
8785       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8786       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8787       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8788         # It is most probably a Windows format PATH printed by
8789         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8790         # path with ; separators, and with drive letters. We can handle the
8791         # drive letters (cygwin fileutils understands them), so leave them,
8792         # especially as we might pass files found there to a mingw objdump,
8793         # which wouldn't understand a cygwinified path. Ahh.
8794         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8795       else
8796         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8797       fi
8798       ;;
8799     pw32*)
8800       # pw32 DLLs use 'pw' prefix rather than 'lib'
8801       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8802       ;;
8803     esac
8804     ;;
8805
8806   *)
8807     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8808     ;;
8809   esac
8810   dynamic_linker='Win32 ld.exe'
8811   # FIXME: first we should search . and the directory the executable is in
8812   shlibpath_var=PATH
8813   ;;
8814
8815 darwin* | rhapsody*)
8816   dynamic_linker="$host_os dyld"
8817   version_type=darwin
8818   need_lib_prefix=no
8819   need_version=no
8820   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8821   soname_spec='${libname}${release}${major}$shared_ext'
8822   shlibpath_overrides_runpath=yes
8823   shlibpath_var=DYLD_LIBRARY_PATH
8824   shrext_cmds='.dylib'
8825   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8826   if test "$GCC" = yes; then
8827     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8828   else
8829     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8830   fi
8831   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8832   ;;
8833
8834 dgux*)
8835   version_type=linux
8836   need_lib_prefix=no
8837   need_version=no
8838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8839   soname_spec='${libname}${release}${shared_ext}$major'
8840   shlibpath_var=LD_LIBRARY_PATH
8841   ;;
8842
8843 freebsd1.*)
8844   dynamic_linker=no
8845   ;;
8846
8847 kfreebsd*-gnu)
8848   version_type=linux
8849   need_lib_prefix=no
8850   need_version=no
8851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8852   soname_spec='${libname}${release}${shared_ext}$major'
8853   shlibpath_var=LD_LIBRARY_PATH
8854   shlibpath_overrides_runpath=no
8855   hardcode_into_libs=yes
8856   dynamic_linker='GNU ld.so'
8857   ;;
8858
8859 freebsd* | dragonfly*)
8860   # DragonFly does not have aout.  When/if they implement a new
8861   # versioning mechanism, adjust this.
8862   if test -x /usr/bin/objformat; then
8863     objformat=`/usr/bin/objformat`
8864   else
8865     case $host_os in
8866     freebsd[123].*) objformat=aout ;;
8867     *) objformat=elf ;;
8868     esac
8869   fi
8870   version_type=freebsd-$objformat
8871   case $version_type in
8872     freebsd-elf*)
8873       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8874       need_version=no
8875       need_lib_prefix=no
8876       ;;
8877     freebsd-*)
8878       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8879       need_version=yes
8880       ;;
8881   esac
8882   shlibpath_var=LD_LIBRARY_PATH
8883   case $host_os in
8884   freebsd2.*)
8885     shlibpath_overrides_runpath=yes
8886     ;;
8887   freebsd3.[01]* | freebsdelf3.[01]*)
8888     shlibpath_overrides_runpath=yes
8889     hardcode_into_libs=yes
8890     ;;
8891   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8892   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8893     shlibpath_overrides_runpath=no
8894     hardcode_into_libs=yes
8895     ;;
8896   freebsd*) # from 4.6 on
8897     shlibpath_overrides_runpath=yes
8898     hardcode_into_libs=yes
8899     ;;
8900   esac
8901   ;;
8902
8903 gnu*)
8904   version_type=linux
8905   need_lib_prefix=no
8906   need_version=no
8907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8908   soname_spec='${libname}${release}${shared_ext}$major'
8909   shlibpath_var=LD_LIBRARY_PATH
8910   hardcode_into_libs=yes
8911   ;;
8912
8913 hpux9* | hpux10* | hpux11*)
8914   # Give a soname corresponding to the major version so that dld.sl refuses to
8915   # link against other versions.
8916   version_type=sunos
8917   need_lib_prefix=no
8918   need_version=no
8919   case $host_cpu in
8920   ia64*)
8921     shrext_cmds='.so'
8922     hardcode_into_libs=yes
8923     dynamic_linker="$host_os dld.so"
8924     shlibpath_var=LD_LIBRARY_PATH
8925     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8927     soname_spec='${libname}${release}${shared_ext}$major'
8928     if test "X$HPUX_IA64_MODE" = X32; then
8929       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8930     else
8931       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8932     fi
8933     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8934     ;;
8935    hppa*64*)
8936      shrext_cmds='.sl'
8937      hardcode_into_libs=yes
8938      dynamic_linker="$host_os dld.sl"
8939      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8940      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8941      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942      soname_spec='${libname}${release}${shared_ext}$major'
8943      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8944      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8945      ;;
8946    *)
8947     shrext_cmds='.sl'
8948     dynamic_linker="$host_os dld.sl"
8949     shlibpath_var=SHLIB_PATH
8950     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952     soname_spec='${libname}${release}${shared_ext}$major'
8953     ;;
8954   esac
8955   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8956   postinstall_cmds='chmod 555 $lib'
8957   ;;
8958
8959 interix3*)
8960   version_type=linux
8961   need_lib_prefix=no
8962   need_version=no
8963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8964   soname_spec='${libname}${release}${shared_ext}$major'
8965   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8966   shlibpath_var=LD_LIBRARY_PATH
8967   shlibpath_overrides_runpath=no
8968   hardcode_into_libs=yes
8969   ;;
8970
8971 irix5* | irix6* | nonstopux*)
8972   case $host_os in
8973     nonstopux*) version_type=nonstopux ;;
8974     *)
8975         if test "$lt_cv_prog_gnu_ld" = yes; then
8976                 version_type=linux
8977         else
8978                 version_type=irix
8979         fi ;;
8980   esac
8981   need_lib_prefix=no
8982   need_version=no
8983   soname_spec='${libname}${release}${shared_ext}$major'
8984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8985   case $host_os in
8986   irix5* | nonstopux*)
8987     libsuff= shlibsuff=
8988     ;;
8989   *)
8990     case $LD in # libtool.m4 will add one of these switches to LD
8991     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8992       libsuff= shlibsuff= libmagic=32-bit;;
8993     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8994       libsuff=32 shlibsuff=N32 libmagic=N32;;
8995     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8996       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8997     *) libsuff= shlibsuff= libmagic=never-match;;
8998     esac
8999     ;;
9000   esac
9001   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9002   shlibpath_overrides_runpath=no
9003   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9004   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9005   hardcode_into_libs=yes
9006   ;;
9007
9008 # No shared lib support for Linux oldld, aout, or coff.
9009 linux*oldld* | linux*aout* | linux*coff*)
9010   dynamic_linker=no
9011   ;;
9012
9013 # This must be Linux ELF.
9014 linux*)
9015   version_type=linux
9016   need_lib_prefix=no
9017   need_version=no
9018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019   soname_spec='${libname}${release}${shared_ext}$major'
9020   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9021   shlibpath_var=LD_LIBRARY_PATH
9022   shlibpath_overrides_runpath=no
9023   # This implies no fast_install, which is unacceptable.
9024   # Some rework will be needed to allow for fast_install
9025   # before this can be enabled.
9026   hardcode_into_libs=yes
9027
9028   # Append ld.so.conf contents to the search path
9029   if test -f /etc/ld.so.conf; then
9030     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9031     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9032   fi
9033
9034   # We used to test for /lib/ld.so.1 and disable shared libraries on
9035   # powerpc, because MkLinux only supported shared libraries with the
9036   # GNU dynamic linker.  Since this was broken with cross compilers,
9037   # most powerpc-linux boxes support dynamic linking these days and
9038   # people can always --disable-shared, the test was removed, and we
9039   # assume the GNU/Linux dynamic linker is in use.
9040   dynamic_linker='GNU/Linux ld.so'
9041   ;;
9042
9043 knetbsd*-gnu)
9044   version_type=linux
9045   need_lib_prefix=no
9046   need_version=no
9047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9048   soname_spec='${libname}${release}${shared_ext}$major'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   shlibpath_overrides_runpath=no
9051   hardcode_into_libs=yes
9052   dynamic_linker='GNU ld.so'
9053   ;;
9054
9055 netbsd*)
9056   version_type=sunos
9057   need_lib_prefix=no
9058   need_version=no
9059   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9060     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9061     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9062     dynamic_linker='NetBSD (a.out) ld.so'
9063   else
9064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9065     soname_spec='${libname}${release}${shared_ext}$major'
9066     dynamic_linker='NetBSD ld.elf_so'
9067   fi
9068   shlibpath_var=LD_LIBRARY_PATH
9069   shlibpath_overrides_runpath=yes
9070   hardcode_into_libs=yes
9071   ;;
9072
9073 newsos6)
9074   version_type=linux
9075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076   shlibpath_var=LD_LIBRARY_PATH
9077   shlibpath_overrides_runpath=yes
9078   ;;
9079
9080 nto-qnx*)
9081   version_type=linux
9082   need_lib_prefix=no
9083   need_version=no
9084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   shlibpath_var=LD_LIBRARY_PATH
9087   shlibpath_overrides_runpath=yes
9088   ;;
9089
9090 openbsd*)
9091   version_type=sunos
9092   sys_lib_dlsearch_path_spec="/usr/lib"
9093   need_lib_prefix=no
9094   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9095   case $host_os in
9096     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9097     *)                         need_version=no  ;;
9098   esac
9099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9100   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9101   shlibpath_var=LD_LIBRARY_PATH
9102   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9103     case $host_os in
9104       openbsd2.[89] | openbsd2.[89].*)
9105         shlibpath_overrides_runpath=no
9106         ;;
9107       *)
9108         shlibpath_overrides_runpath=yes
9109         ;;
9110       esac
9111   else
9112     shlibpath_overrides_runpath=yes
9113   fi
9114   ;;
9115
9116 os2*)
9117   libname_spec='$name'
9118   shrext_cmds=".dll"
9119   need_lib_prefix=no
9120   library_names_spec='$libname${shared_ext} $libname.a'
9121   dynamic_linker='OS/2 ld.exe'
9122   shlibpath_var=LIBPATH
9123   ;;
9124
9125 osf3* | osf4* | osf5*)
9126   version_type=osf
9127   need_lib_prefix=no
9128   need_version=no
9129   soname_spec='${libname}${release}${shared_ext}$major'
9130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131   shlibpath_var=LD_LIBRARY_PATH
9132   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9133   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9134   ;;
9135
9136 solaris*)
9137   version_type=linux
9138   need_lib_prefix=no
9139   need_version=no
9140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141   soname_spec='${libname}${release}${shared_ext}$major'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   shlibpath_overrides_runpath=yes
9144   hardcode_into_libs=yes
9145   # ldd complains unless libraries are executable
9146   postinstall_cmds='chmod +x $lib'
9147   ;;
9148
9149 sunos4*)
9150   version_type=sunos
9151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9152   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9153   shlibpath_var=LD_LIBRARY_PATH
9154   shlibpath_overrides_runpath=yes
9155   if test "$with_gnu_ld" = yes; then
9156     need_lib_prefix=no
9157   fi
9158   need_version=yes
9159   ;;
9160
9161 sysv4 | sysv4.3*)
9162   version_type=linux
9163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9164   soname_spec='${libname}${release}${shared_ext}$major'
9165   shlibpath_var=LD_LIBRARY_PATH
9166   case $host_vendor in
9167     sni)
9168       shlibpath_overrides_runpath=no
9169       need_lib_prefix=no
9170       export_dynamic_flag_spec='${wl}-Blargedynsym'
9171       runpath_var=LD_RUN_PATH
9172       ;;
9173     siemens)
9174       need_lib_prefix=no
9175       ;;
9176     motorola)
9177       need_lib_prefix=no
9178       need_version=no
9179       shlibpath_overrides_runpath=no
9180       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9181       ;;
9182   esac
9183   ;;
9184
9185 sysv4*MP*)
9186   if test -d /usr/nec ;then
9187     version_type=linux
9188     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9189     soname_spec='$libname${shared_ext}.$major'
9190     shlibpath_var=LD_LIBRARY_PATH
9191   fi
9192   ;;
9193
9194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9195   version_type=freebsd-elf
9196   need_lib_prefix=no
9197   need_version=no
9198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9199   soname_spec='${libname}${release}${shared_ext}$major'
9200   shlibpath_var=LD_LIBRARY_PATH
9201   hardcode_into_libs=yes
9202   if test "$with_gnu_ld" = yes; then
9203     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9204     shlibpath_overrides_runpath=no
9205   else
9206     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9207     shlibpath_overrides_runpath=yes
9208     case $host_os in
9209       sco3.2v5*)
9210         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9211         ;;
9212     esac
9213   fi
9214   sys_lib_dlsearch_path_spec='/usr/lib'
9215   ;;
9216
9217 uts4*)
9218   version_type=linux
9219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220   soname_spec='${libname}${release}${shared_ext}$major'
9221   shlibpath_var=LD_LIBRARY_PATH
9222   ;;
9223
9224 *)
9225   dynamic_linker=no
9226   ;;
9227 esac
9228 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9229 echo "${ECHO_T}$dynamic_linker" >&6; }
9230 test "$dynamic_linker" = no && can_build_shared=no
9231
9232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9233 if test "$GCC" = yes; then
9234   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9235 fi
9236
9237
9238 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9239 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9240 if test "${libltdl_cv_shlibext+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243
9244 module=yes
9245 eval libltdl_cv_shlibext=$shrext_cmds
9246
9247 fi
9248 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9249 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9250 if test -n "$libltdl_cv_shlibext"; then
9251
9252 cat >>confdefs.h <<_ACEOF
9253 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9254 _ACEOF
9255
9256 fi
9257
9258
9259 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9260 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9261 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264   libltdl_cv_shlibpath_var="$shlibpath_var"
9265 fi
9266 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9267 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9268 if test -n "$libltdl_cv_shlibpath_var"; then
9269
9270 cat >>confdefs.h <<_ACEOF
9271 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9272 _ACEOF
9273
9274 fi
9275
9276
9277 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9278 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9279 if test "${libltdl_cv_sys_search_path+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9283 fi
9284 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9285 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9286 if test -n "$libltdl_cv_sys_search_path"; then
9287   sys_search_path=
9288   for dir in $libltdl_cv_sys_search_path; do
9289     if test -z "$sys_search_path"; then
9290       sys_search_path="$dir"
9291     else
9292       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9293     fi
9294   done
9295
9296 cat >>confdefs.h <<_ACEOF
9297 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9298 _ACEOF
9299
9300 fi
9301
9302 { echo "$as_me:$LINENO: checking for objdir" >&5
9303 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9304 if test "${libltdl_cv_objdir+set}" = set; then
9305   echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307   libltdl_cv_objdir="$objdir"
9308   if test -n "$objdir"; then
9309     :
9310   else
9311     rm -f .libs 2>/dev/null
9312     mkdir .libs 2>/dev/null
9313     if test -d .libs; then
9314       libltdl_cv_objdir=.libs
9315     else
9316       # MS-DOS does not allow filenames that begin with a dot.
9317       libltdl_cv_objdir=_libs
9318     fi
9319   rmdir .libs 2>/dev/null
9320   fi
9321
9322 fi
9323 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9324 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9325
9326 cat >>confdefs.h <<_ACEOF
9327 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9328 _ACEOF
9329
9330
9331
9332
9333
9334
9335 # Check for command to grab the raw symbol name followed by C symbol from nm.
9336 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9337 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9338 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9339   echo $ECHO_N "(cached) $ECHO_C" >&6
9340 else
9341
9342 # These are sane defaults that work on at least a few old systems.
9343 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9344
9345 # Character class describing NM global symbol codes.
9346 symcode='[BCDEGRST]'
9347
9348 # Regexp to match symbols that can be accessed directly from C.
9349 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9350
9351 # Transform an extracted symbol line into a proper C declaration
9352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9353
9354 # Transform an extracted symbol line into symbol name and symbol address
9355 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9356
9357 # Define system-specific variables.
9358 case $host_os in
9359 aix*)
9360   symcode='[BCDT]'
9361   ;;
9362 cygwin* | mingw* | pw32*)
9363   symcode='[ABCDGISTW]'
9364   ;;
9365 hpux*) # Its linker distinguishes data from code symbols
9366   if test "$host_cpu" = ia64; then
9367     symcode='[ABCDEGRST]'
9368   fi
9369   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9370   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9371   ;;
9372 linux*)
9373   if test "$host_cpu" = ia64; then
9374     symcode='[ABCDGIRSTW]'
9375     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9376     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9377   fi
9378   ;;
9379 irix* | nonstopux*)
9380   symcode='[BCDEGRST]'
9381   ;;
9382 osf*)
9383   symcode='[BCDEGQRST]'
9384   ;;
9385 solaris*)
9386   symcode='[BDRT]'
9387   ;;
9388 sco3.2v5*)
9389   symcode='[DT]'
9390   ;;
9391 sysv4.2uw2*)
9392   symcode='[DT]'
9393   ;;
9394 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9395   symcode='[ABDT]'
9396   ;;
9397 sysv4)
9398   symcode='[DFNSTU]'
9399   ;;
9400 esac
9401
9402 # Handle CRLF in mingw tool chain
9403 opt_cr=
9404 case $build_os in
9405 mingw*)
9406   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9407   ;;
9408 esac
9409
9410 # If we're using GNU nm, then use its standard symbol codes.
9411 case `$NM -V 2>&1` in
9412 *GNU* | *'with BFD'*)
9413   symcode='[ABCDGIRSTW]' ;;
9414 esac
9415
9416 # Try without a prefix undercore, then with it.
9417 for ac_symprfx in "" "_"; do
9418
9419   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9420   symxfrm="\\1 $ac_symprfx\\2 \\2"
9421
9422   # Write the raw and C identifiers.
9423   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9424
9425   # Check to see that the pipe works correctly.
9426   pipe_works=no
9427
9428   rm -f conftest*
9429   cat > conftest.$ac_ext <<EOF
9430 #ifdef __cplusplus
9431 extern "C" {
9432 #endif
9433 char nm_test_var;
9434 void nm_test_func(){}
9435 #ifdef __cplusplus
9436 }
9437 #endif
9438 int main(){nm_test_var='a';nm_test_func();return(0);}
9439 EOF
9440
9441   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9442   (eval $ac_compile) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; then
9446     # Now try to grab the symbols.
9447     nlist=conftest.nm
9448     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9449   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } && test -s "$nlist"; then
9453       # Try sorting and uniquifying the output.
9454       if sort "$nlist" | uniq > "$nlist"T; then
9455         mv -f "$nlist"T "$nlist"
9456       else
9457         rm -f "$nlist"T
9458       fi
9459
9460       # Make sure that we snagged all the symbols we need.
9461       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9462         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9463           cat <<EOF > conftest.$ac_ext
9464 #ifdef __cplusplus
9465 extern "C" {
9466 #endif
9467
9468 EOF
9469           # Now generate the symbol file.
9470           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9471
9472           cat <<EOF >> conftest.$ac_ext
9473 #if defined (__STDC__) && __STDC__
9474 # define lt_ptr_t void *
9475 #else
9476 # define lt_ptr_t char *
9477 # define const
9478 #endif
9479
9480 /* The mapping between symbol names and symbols. */
9481 const struct {
9482   const char *name;
9483   lt_ptr_t address;
9484 }
9485 lt_preloaded_symbols[] =
9486 {
9487 EOF
9488           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9489           cat <<\EOF >> conftest.$ac_ext
9490   {0, (lt_ptr_t) 0}
9491 };
9492
9493 #ifdef __cplusplus
9494 }
9495 #endif
9496 EOF
9497           # Now try linking the two files.
9498           mv conftest.$ac_objext conftstm.$ac_objext
9499           lt_save_LIBS="$LIBS"
9500           lt_save_CFLAGS="$CFLAGS"
9501           LIBS="conftstm.$ac_objext"
9502           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9503           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504   (eval $ac_link) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9508             pipe_works=yes
9509           fi
9510           LIBS="$lt_save_LIBS"
9511           CFLAGS="$lt_save_CFLAGS"
9512         else
9513           echo "cannot find nm_test_func in $nlist" >&5
9514         fi
9515       else
9516         echo "cannot find nm_test_var in $nlist" >&5
9517       fi
9518     else
9519       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9520     fi
9521   else
9522     echo "$progname: failed program was:" >&5
9523     cat conftest.$ac_ext >&5
9524   fi
9525   rm -f conftest* conftst*
9526
9527   # Do not use the global_symbol_pipe unless it works.
9528   if test "$pipe_works" = yes; then
9529     break
9530   else
9531     lt_cv_sys_global_symbol_pipe=
9532   fi
9533 done
9534
9535 fi
9536
9537 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9538   lt_cv_sys_global_symbol_to_cdecl=
9539 fi
9540 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9541   { echo "$as_me:$LINENO: result: failed" >&5
9542 echo "${ECHO_T}failed" >&6; }
9543 else
9544   { echo "$as_me:$LINENO: result: ok" >&5
9545 echo "${ECHO_T}ok" >&6; }
9546 fi
9547
9548
9549 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9550 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9551 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9555     libltdl_cv_preloaded_symbols=yes
9556   else
9557     libltdl_cv_preloaded_symbols=no
9558   fi
9559
9560 fi
9561 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9562 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9563 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9564
9565 cat >>confdefs.h <<\_ACEOF
9566 #define HAVE_PRELOADED_SYMBOLS 1
9567 _ACEOF
9568
9569 fi
9570
9571 LIBADD_DL=
9572
9573 ac_ext=c
9574 ac_cpp='$CPP $CPPFLAGS'
9575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9578
9579
9580 { echo "$as_me:$LINENO: checking for shl_load" >&5
9581 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9582 if test "${ac_cv_func_shl_load+set}" = set; then
9583   echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585   cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h.  */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h.  */
9591 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9593 #define shl_load innocuous_shl_load
9594
9595 /* System header to define __stub macros and hopefully few prototypes,
9596     which can conflict with char shl_load (); below.
9597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9598     <limits.h> exists even on freestanding compilers.  */
9599
9600 #ifdef __STDC__
9601 # include <limits.h>
9602 #else
9603 # include <assert.h>
9604 #endif
9605
9606 #undef shl_load
9607
9608 /* Override any GCC internal prototype to avoid an error.
9609    Use char because int might match the return type of a GCC
9610    builtin and then its argument prototype would still apply.  */
9611 #ifdef __cplusplus
9612 extern "C"
9613 #endif
9614 char shl_load ();
9615 /* The GNU C library defines this for functions which it implements
9616     to always fail with ENOSYS.  Some functions are actually named
9617     something starting with __ and the normal name is an alias.  */
9618 #if defined __stub_shl_load || defined __stub___shl_load
9619 choke me
9620 #endif
9621
9622 int
9623 main ()
9624 {
9625 return shl_load ();
9626   ;
9627   return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9632 case "(($ac_try" in
9633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634   *) ac_try_echo=$ac_try;;
9635 esac
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637   (eval "$ac_link") 2>conftest.er1
9638   ac_status=$?
9639   grep -v '^ *+' conftest.er1 >conftest.err
9640   rm -f conftest.er1
9641   cat conftest.err >&5
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); } &&
9644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9645   { (case "(($ac_try" in
9646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647   *) ac_try_echo=$ac_try;;
9648 esac
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650   (eval "$ac_try") 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); }; } &&
9654          { ac_try='test -s conftest$ac_exeext'
9655   { (case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660   (eval "$ac_try") 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   ac_cv_func_shl_load=yes
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669         ac_cv_func_shl_load=no
9670 fi
9671
9672 rm -f core conftest.err conftest.$ac_objext \
9673       conftest$ac_exeext conftest.$ac_ext
9674 fi
9675 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9676 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9677 if test $ac_cv_func_shl_load = yes; then
9678
9679 cat >>confdefs.h <<\_ACEOF
9680 #define HAVE_SHL_LOAD 1
9681 _ACEOF
9682
9683 else
9684   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   ac_check_lib_save_LIBS=$LIBS
9690 LIBS="-ldld  $LIBS"
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h.  */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h.  */
9697
9698 /* Override any GCC internal prototype to avoid an error.
9699    Use char because int might match the return type of a GCC
9700    builtin and then its argument prototype would still apply.  */
9701 #ifdef __cplusplus
9702 extern "C"
9703 #endif
9704 char shl_load ();
9705 int
9706 main ()
9707 {
9708 return shl_load ();
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9715 case "(($ac_try" in
9716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717   *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720   (eval "$ac_link") 2>conftest.er1
9721   ac_status=$?
9722   grep -v '^ *+' conftest.er1 >conftest.err
9723   rm -f conftest.er1
9724   cat conftest.err >&5
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9728   { (case "(($ac_try" in
9729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730   *) ac_try_echo=$ac_try;;
9731 esac
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733   (eval "$ac_try") 2>&5
9734   ac_status=$?
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); }; } &&
9737          { ac_try='test -s conftest$ac_exeext'
9738   { (case "(($ac_try" in
9739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740   *) ac_try_echo=$ac_try;;
9741 esac
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743   (eval "$ac_try") 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; }; then
9747   ac_cv_lib_dld_shl_load=yes
9748 else
9749   echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752         ac_cv_lib_dld_shl_load=no
9753 fi
9754
9755 rm -f core conftest.err conftest.$ac_objext \
9756       conftest$ac_exeext conftest.$ac_ext
9757 LIBS=$ac_check_lib_save_LIBS
9758 fi
9759 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9760 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9761 if test $ac_cv_lib_dld_shl_load = yes; then
9762
9763 cat >>confdefs.h <<\_ACEOF
9764 #define HAVE_SHL_LOAD 1
9765 _ACEOF
9766
9767         LIBADD_DL="$LIBADD_DL -ldld"
9768 else
9769   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   ac_check_lib_save_LIBS=$LIBS
9775 LIBS="-ldl  $LIBS"
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782
9783 /* Override any GCC internal prototype to avoid an error.
9784    Use char because int might match the return type of a GCC
9785    builtin and then its argument prototype would still apply.  */
9786 #ifdef __cplusplus
9787 extern "C"
9788 #endif
9789 char dlopen ();
9790 int
9791 main ()
9792 {
9793 return dlopen ();
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (ac_try="$ac_link"
9800 case "(($ac_try" in
9801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802   *) ac_try_echo=$ac_try;;
9803 esac
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805   (eval "$ac_link") 2>conftest.er1
9806   ac_status=$?
9807   grep -v '^ *+' conftest.er1 >conftest.err
9808   rm -f conftest.er1
9809   cat conftest.err >&5
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } &&
9812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9813   { (case "(($ac_try" in
9814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815   *) ac_try_echo=$ac_try;;
9816 esac
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818   (eval "$ac_try") 2>&5
9819   ac_status=$?
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); }; } &&
9822          { ac_try='test -s conftest$ac_exeext'
9823   { (case "(($ac_try" in
9824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825   *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828   (eval "$ac_try") 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; }; then
9832   ac_cv_lib_dl_dlopen=yes
9833 else
9834   echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837         ac_cv_lib_dl_dlopen=no
9838 fi
9839
9840 rm -f core conftest.err conftest.$ac_objext \
9841       conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9843 fi
9844 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9846 if test $ac_cv_lib_dl_dlopen = yes; then
9847
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_LIBDL 1
9850 _ACEOF
9851
9852                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9853 else
9854   cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h.  */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h.  */
9860 #if HAVE_DLFCN_H
9861 #  include <dlfcn.h>
9862 #endif
9863
9864 int
9865 main ()
9866 {
9867 dlopen(0, 0);
9868   ;
9869   return 0;
9870 }
9871 _ACEOF
9872 rm -f conftest.$ac_objext conftest$ac_exeext
9873 if { (ac_try="$ac_link"
9874 case "(($ac_try" in
9875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876   *) ac_try_echo=$ac_try;;
9877 esac
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879   (eval "$ac_link") 2>conftest.er1
9880   ac_status=$?
9881   grep -v '^ *+' conftest.er1 >conftest.err
9882   rm -f conftest.er1
9883   cat conftest.err >&5
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); } &&
9886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9887   { (case "(($ac_try" in
9888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889   *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892   (eval "$ac_try") 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); }; } &&
9896          { ac_try='test -s conftest$ac_exeext'
9897   { (case "(($ac_try" in
9898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899   *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902   (eval "$ac_try") 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906
9907 cat >>confdefs.h <<\_ACEOF
9908 #define HAVE_LIBDL 1
9909 _ACEOF
9910  libltdl_cv_func_dlopen="yes"
9911 else
9912   echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9916 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9917 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9918   echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920   ac_check_lib_save_LIBS=$LIBS
9921 LIBS="-lsvld  $LIBS"
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928
9929 /* Override any GCC internal prototype to avoid an error.
9930    Use char because int might match the return type of a GCC
9931    builtin and then its argument prototype would still apply.  */
9932 #ifdef __cplusplus
9933 extern "C"
9934 #endif
9935 char dlopen ();
9936 int
9937 main ()
9938 {
9939 return dlopen ();
9940   ;
9941   return 0;
9942 }
9943 _ACEOF
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (ac_try="$ac_link"
9946 case "(($ac_try" in
9947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948   *) ac_try_echo=$ac_try;;
9949 esac
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951   (eval "$ac_link") 2>conftest.er1
9952   ac_status=$?
9953   grep -v '^ *+' conftest.er1 >conftest.err
9954   rm -f conftest.er1
9955   cat conftest.err >&5
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } &&
9958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9959   { (case "(($ac_try" in
9960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961   *) ac_try_echo=$ac_try;;
9962 esac
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964   (eval "$ac_try") 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; } &&
9968          { ac_try='test -s conftest$ac_exeext'
9969   { (case "(($ac_try" in
9970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971   *) ac_try_echo=$ac_try;;
9972 esac
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974   (eval "$ac_try") 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   ac_cv_lib_svld_dlopen=yes
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983         ac_cv_lib_svld_dlopen=no
9984 fi
9985
9986 rm -f core conftest.err conftest.$ac_objext \
9987       conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_check_lib_save_LIBS
9989 fi
9990 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9991 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9992 if test $ac_cv_lib_svld_dlopen = yes; then
9993
9994 cat >>confdefs.h <<\_ACEOF
9995 #define HAVE_LIBDL 1
9996 _ACEOF
9997
9998                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9999 else
10000   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10001 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10002 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10003   echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005   ac_check_lib_save_LIBS=$LIBS
10006 LIBS="-ldld  $LIBS"
10007 cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h.  */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h.  */
10013
10014 /* Override any GCC internal prototype to avoid an error.
10015    Use char because int might match the return type of a GCC
10016    builtin and then its argument prototype would still apply.  */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 char dld_link ();
10021 int
10022 main ()
10023 {
10024 return dld_link ();
10025   ;
10026   return 0;
10027 }
10028 _ACEOF
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033   *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036   (eval "$ac_link") 2>conftest.er1
10037   ac_status=$?
10038   grep -v '^ *+' conftest.er1 >conftest.err
10039   rm -f conftest.er1
10040   cat conftest.err >&5
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); } &&
10043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044   { (case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_try") 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; } &&
10053          { ac_try='test -s conftest$ac_exeext'
10054   { (case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059   (eval "$ac_try") 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; }; then
10063   ac_cv_lib_dld_dld_link=yes
10064 else
10065   echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068         ac_cv_lib_dld_dld_link=no
10069 fi
10070
10071 rm -f core conftest.err conftest.$ac_objext \
10072       conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10074 fi
10075 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10076 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10077 if test $ac_cv_lib_dld_dld_link = yes; then
10078
10079 cat >>confdefs.h <<\_ACEOF
10080 #define HAVE_DLD 1
10081 _ACEOF
10082
10083                 LIBADD_DL="$LIBADD_DL -ldld"
10084 else
10085   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10086 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10087 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
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 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10098 #define _dyld_func_lookup innocuous__dyld_func_lookup
10099
10100 /* System header to define __stub macros and hopefully few prototypes,
10101     which can conflict with char _dyld_func_lookup (); below.
10102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10103     <limits.h> exists even on freestanding compilers.  */
10104
10105 #ifdef __STDC__
10106 # include <limits.h>
10107 #else
10108 # include <assert.h>
10109 #endif
10110
10111 #undef _dyld_func_lookup
10112
10113 /* Override any GCC internal prototype to avoid an error.
10114    Use char because int might match the return type of a GCC
10115    builtin and then its argument prototype would still apply.  */
10116 #ifdef __cplusplus
10117 extern "C"
10118 #endif
10119 char _dyld_func_lookup ();
10120 /* The GNU C library defines this for functions which it implements
10121     to always fail with ENOSYS.  Some functions are actually named
10122     something starting with __ and the normal name is an alias.  */
10123 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10124 choke me
10125 #endif
10126
10127 int
10128 main ()
10129 {
10130 return _dyld_func_lookup ();
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139   *) ac_try_echo=$ac_try;;
10140 esac
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142   (eval "$ac_link") 2>conftest.er1
10143   ac_status=$?
10144   grep -v '^ *+' conftest.er1 >conftest.err
10145   rm -f conftest.er1
10146   cat conftest.err >&5
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); } &&
10149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10150   { (case "(($ac_try" in
10151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152   *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155   (eval "$ac_try") 2>&5
10156   ac_status=$?
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); }; } &&
10159          { ac_try='test -s conftest$ac_exeext'
10160   { (case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165   (eval "$ac_try") 2>&5
10166   ac_status=$?
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); }; }; then
10169   ac_cv_func__dyld_func_lookup=yes
10170 else
10171   echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174         ac_cv_func__dyld_func_lookup=no
10175 fi
10176
10177 rm -f core conftest.err conftest.$ac_objext \
10178       conftest$ac_exeext conftest.$ac_ext
10179 fi
10180 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10181 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10182 if test $ac_cv_func__dyld_func_lookup = yes; then
10183
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_DYLD 1
10186 _ACEOF
10187
10188 fi
10189
10190
10191 fi
10192
10193
10194 fi
10195
10196
10197 fi
10198
10199 rm -f core conftest.err conftest.$ac_objext \
10200       conftest$ac_exeext conftest.$ac_ext
10201
10202 fi
10203
10204
10205 fi
10206
10207
10208 fi
10209
10210
10211 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10212 then
10213   lt_save_LIBS="$LIBS"
10214   LIBS="$LIBS $LIBADD_DL"
10215
10216 for ac_func in dlerror
10217 do
10218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10219 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10221 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10222   echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224   cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h.  */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h.  */
10230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10232 #define $ac_func innocuous_$ac_func
10233
10234 /* System header to define __stub macros and hopefully few prototypes,
10235     which can conflict with char $ac_func (); below.
10236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237     <limits.h> exists even on freestanding compilers.  */
10238
10239 #ifdef __STDC__
10240 # include <limits.h>
10241 #else
10242 # include <assert.h>
10243 #endif
10244
10245 #undef $ac_func
10246
10247 /* Override any GCC internal prototype to avoid an error.
10248    Use char because int might match the return type of a GCC
10249    builtin and then its argument prototype would still apply.  */
10250 #ifdef __cplusplus
10251 extern "C"
10252 #endif
10253 char $ac_func ();
10254 /* The GNU C library defines this for functions which it implements
10255     to always fail with ENOSYS.  Some functions are actually named
10256     something starting with __ and the normal name is an alias.  */
10257 #if defined __stub_$ac_func || defined __stub___$ac_func
10258 choke me
10259 #endif
10260
10261 int
10262 main ()
10263 {
10264 return $ac_func ();
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 rm -f conftest.$ac_objext conftest$ac_exeext
10270 if { (ac_try="$ac_link"
10271 case "(($ac_try" in
10272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273   *) ac_try_echo=$ac_try;;
10274 esac
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276   (eval "$ac_link") 2>conftest.er1
10277   ac_status=$?
10278   grep -v '^ *+' conftest.er1 >conftest.err
10279   rm -f conftest.er1
10280   cat conftest.err >&5
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } &&
10283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284   { (case "(($ac_try" in
10285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286   *) ac_try_echo=$ac_try;;
10287 esac
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289   (eval "$ac_try") 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); }; } &&
10293          { ac_try='test -s conftest$ac_exeext'
10294   { (case "(($ac_try" in
10295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296   *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299   (eval "$ac_try") 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   eval "$as_ac_var=yes"
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308         eval "$as_ac_var=no"
10309 fi
10310
10311 rm -f core conftest.err conftest.$ac_objext \
10312       conftest$ac_exeext conftest.$ac_ext
10313 fi
10314 ac_res=`eval echo '${'$as_ac_var'}'`
10315                { echo "$as_me:$LINENO: result: $ac_res" >&5
10316 echo "${ECHO_T}$ac_res" >&6; }
10317 if test `eval echo '${'$as_ac_var'}'` = yes; then
10318   cat >>confdefs.h <<_ACEOF
10319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10320 _ACEOF
10321
10322 fi
10323 done
10324
10325   LIBS="$lt_save_LIBS"
10326 fi
10327 ac_ext=c
10328 ac_cpp='$CPP $CPPFLAGS'
10329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10332
10333
10334
10335 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10336 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10337 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10338   echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340   ac_cv_sys_symbol_underscore=no
10341   cat > conftest.$ac_ext <<EOF
10342 void nm_test_func(){}
10343 int main(){nm_test_func;return 0;}
10344 EOF
10345   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10346   (eval $ac_compile) 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); }; then
10350     # Now try to grab the symbols.
10351     ac_nlist=conftest.nm
10352     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10353   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10354   ac_status=$?
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); } && test -s "$ac_nlist"; then
10357       # See whether the symbols have a leading underscore.
10358       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10359         ac_cv_sys_symbol_underscore=yes
10360       else
10361         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10362           :
10363         else
10364           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10365         fi
10366       fi
10367     else
10368       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10369     fi
10370   else
10371     echo "configure: failed program was:" >&5
10372     cat conftest.c >&5
10373   fi
10374   rm -rf conftest*
10375
10376 fi
10377 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10378 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10379
10380
10381 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10382   if test x"$libltdl_cv_func_dlopen" = xyes ||
10383      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10384         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10385 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10386 if test "${libltdl_cv_need_uscore+set}" = set; then
10387   echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389   libltdl_cv_need_uscore=unknown
10390           save_LIBS="$LIBS"
10391           LIBS="$LIBS $LIBADD_DL"
10392           if test "$cross_compiling" = yes; then :
10393   libltdl_cv_need_uscore=cross
10394 else
10395   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10396   lt_status=$lt_dlunknown
10397   cat > conftest.$ac_ext <<EOF
10398 #line 10398 "configure"
10399 #include "confdefs.h"
10400
10401 #if HAVE_DLFCN_H
10402 #include <dlfcn.h>
10403 #endif
10404
10405 #include <stdio.h>
10406
10407 #ifdef RTLD_GLOBAL
10408 #  define LT_DLGLOBAL           RTLD_GLOBAL
10409 #else
10410 #  ifdef DL_GLOBAL
10411 #    define LT_DLGLOBAL         DL_GLOBAL
10412 #  else
10413 #    define LT_DLGLOBAL         0
10414 #  endif
10415 #endif
10416
10417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10418    find out it does not work in some platform. */
10419 #ifndef LT_DLLAZY_OR_NOW
10420 #  ifdef RTLD_LAZY
10421 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10422 #  else
10423 #    ifdef DL_LAZY
10424 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10425 #    else
10426 #      ifdef RTLD_NOW
10427 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10428 #      else
10429 #        ifdef DL_NOW
10430 #          define LT_DLLAZY_OR_NOW      DL_NOW
10431 #        else
10432 #          define LT_DLLAZY_OR_NOW      0
10433 #        endif
10434 #      endif
10435 #    endif
10436 #  endif
10437 #endif
10438
10439 #ifdef __cplusplus
10440 extern "C" void exit (int);
10441 #endif
10442
10443 void fnord() { int i=42;}
10444 int main ()
10445 {
10446   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10447   int status = $lt_dlunknown;
10448
10449   if (self)
10450     {
10451       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10452       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10453       /* dlclose (self); */
10454     }
10455   else
10456     puts (dlerror ());
10457
10458     exit (status);
10459 }
10460 EOF
10461   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462   (eval $ac_link) 2>&5
10463   ac_status=$?
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10466     (./conftest; exit; ) >&5 2>/dev/null
10467     lt_status=$?
10468     case x$lt_status in
10469       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10470       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10471       x$lt_dlunknown|x*)  ;;
10472     esac
10473   else :
10474     # compilation failed
10475
10476   fi
10477 fi
10478 rm -fr conftest*
10479
10480           LIBS="$save_LIBS"
10481
10482 fi
10483 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10484 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10485   fi
10486 fi
10487
10488 if test x"$libltdl_cv_need_uscore" = xyes; then
10489
10490 cat >>confdefs.h <<\_ACEOF
10491 #define NEED_USCORE 1
10492 _ACEOF
10493
10494 fi
10495
10496
10497 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10498 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10499 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   # PORTME does your system automatically load deplibs for dlopen?
10503   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10504   # For now, we just catch OSes we know something about -- in the
10505   # future, we'll try test this programmatically.
10506   libltdl_cv_sys_dlopen_deplibs=unknown
10507   case "$host_os" in
10508   aix3*|aix4.1.*|aix4.2.*)
10509     # Unknown whether this is true for these versions of AIX, but
10510     # we want this `case' here to explicitly catch those versions.
10511     libltdl_cv_sys_dlopen_deplibs=unknown
10512     ;;
10513   aix[45]*)
10514     libltdl_cv_sys_dlopen_deplibs=yes
10515     ;;
10516   darwin*)
10517     # Assuming the user has installed a libdl from somewhere, this is true
10518     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10519     libltdl_cv_sys_dlopen_deplibs=yes
10520     ;;
10521   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10522     # GNU and its variants, using gnu ld.so (Glibc)
10523     libltdl_cv_sys_dlopen_deplibs=yes
10524     ;;
10525   hpux10*|hpux11*)
10526     libltdl_cv_sys_dlopen_deplibs=yes
10527     ;;
10528   interix*)
10529     libltdl_cv_sys_dlopen_deplibs=yes
10530     ;;
10531   irix[12345]*|irix6.[01]*)
10532     # Catch all versions of IRIX before 6.2, and indicate that we don't
10533     # know how it worked for any of those versions.
10534     libltdl_cv_sys_dlopen_deplibs=unknown
10535     ;;
10536   irix*)
10537     # The case above catches anything before 6.2, and it's known that
10538     # at 6.2 and later dlopen does load deplibs.
10539     libltdl_cv_sys_dlopen_deplibs=yes
10540     ;;
10541   netbsd*)
10542     libltdl_cv_sys_dlopen_deplibs=yes
10543     ;;
10544   openbsd*)
10545     libltdl_cv_sys_dlopen_deplibs=yes
10546     ;;
10547   osf[1234]*)
10548     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10549     # it did *not* use an RPATH in a shared library to find objects the
10550     # library depends on, so we explicitly say `no'.
10551     libltdl_cv_sys_dlopen_deplibs=no
10552     ;;
10553   osf5.0|osf5.0a|osf5.1)
10554     # dlopen *does* load deplibs and with the right loader patch applied
10555     # it even uses RPATH in a shared library to search for shared objects
10556     # that the library depends on, but there's no easy way to know if that
10557     # patch is installed.  Since this is the case, all we can really
10558     # say is unknown -- it depends on the patch being installed.  If
10559     # it is, this changes to `yes'.  Without it, it would be `no'.
10560     libltdl_cv_sys_dlopen_deplibs=unknown
10561     ;;
10562   osf*)
10563     # the two cases above should catch all versions of osf <= 5.1.  Read
10564     # the comments above for what we know about them.
10565     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10566     # is used to find them so we can finally say `yes'.
10567     libltdl_cv_sys_dlopen_deplibs=yes
10568     ;;
10569   solaris*)
10570     libltdl_cv_sys_dlopen_deplibs=yes
10571     ;;
10572   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10573     libltdl_cv_sys_dlopen_deplibs=yes
10574     ;;
10575   esac
10576
10577 fi
10578 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10579 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10580 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10581
10582 cat >>confdefs.h <<\_ACEOF
10583 #define LTDL_DLOPEN_DEPLIBS 1
10584 _ACEOF
10585
10586 fi
10587
10588
10589 for ac_header in argz.h
10590 do
10591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10593   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10596   echo $ECHO_N "(cached) $ECHO_C" >&6
10597 fi
10598 ac_res=`eval echo '${'$as_ac_Header'}'`
10599                { echo "$as_me:$LINENO: result: $ac_res" >&5
10600 echo "${ECHO_T}$ac_res" >&6; }
10601 else
10602   # Is the header compilable?
10603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10605 cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h.  */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h.  */
10611 $ac_includes_default
10612 #include <$ac_header>
10613 _ACEOF
10614 rm -f conftest.$ac_objext
10615 if { (ac_try="$ac_compile"
10616 case "(($ac_try" in
10617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618   *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621   (eval "$ac_compile") 2>conftest.er1
10622   ac_status=$?
10623   grep -v '^ *+' conftest.er1 >conftest.err
10624   rm -f conftest.er1
10625   cat conftest.err >&5
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } &&
10628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10629   { (case "(($ac_try" in
10630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631   *) ac_try_echo=$ac_try;;
10632 esac
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634   (eval "$ac_try") 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }; } &&
10638          { ac_try='test -s conftest.$ac_objext'
10639   { (case "(($ac_try" in
10640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641   *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644   (eval "$ac_try") 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); }; }; then
10648   ac_header_compiler=yes
10649 else
10650   echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653         ac_header_compiler=no
10654 fi
10655
10656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10658 echo "${ECHO_T}$ac_header_compiler" >&6; }
10659
10660 # Is the header present?
10661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h.  */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h.  */
10669 #include <$ac_header>
10670 _ACEOF
10671 if { (ac_try="$ac_cpp conftest.$ac_ext"
10672 case "(($ac_try" in
10673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674   *) ac_try_echo=$ac_try;;
10675 esac
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10678   ac_status=$?
10679   grep -v '^ *+' conftest.er1 >conftest.err
10680   rm -f conftest.er1
10681   cat conftest.err >&5
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); } >/dev/null; then
10684   if test -s conftest.err; then
10685     ac_cpp_err=$ac_c_preproc_warn_flag
10686     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10687   else
10688     ac_cpp_err=
10689   fi
10690 else
10691   ac_cpp_err=yes
10692 fi
10693 if test -z "$ac_cpp_err"; then
10694   ac_header_preproc=yes
10695 else
10696   echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10698
10699   ac_header_preproc=no
10700 fi
10701
10702 rm -f conftest.err conftest.$ac_ext
10703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10704 echo "${ECHO_T}$ac_header_preproc" >&6; }
10705
10706 # So?  What about this header?
10707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10708   yes:no: )
10709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10713     ac_header_preproc=yes
10714     ;;
10715   no:yes:* )
10716     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10718     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10719 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10720     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10722     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10723 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10726     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10728     ( cat <<\_ASBOX
10729 ## ------------------------------------ ##
10730 ## Report this to http://llvm.org/bugs/ ##
10731 ## ------------------------------------ ##
10732 _ASBOX
10733      ) | sed "s/^/$as_me: WARNING:     /" >&2
10734     ;;
10735 esac
10736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10739   echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741   eval "$as_ac_Header=\$ac_header_preproc"
10742 fi
10743 ac_res=`eval echo '${'$as_ac_Header'}'`
10744                { echo "$as_me:$LINENO: result: $ac_res" >&5
10745 echo "${ECHO_T}$ac_res" >&6; }
10746
10747 fi
10748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10749   cat >>confdefs.h <<_ACEOF
10750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10751 _ACEOF
10752
10753 fi
10754
10755 done
10756
10757
10758 { echo "$as_me:$LINENO: checking for error_t" >&5
10759 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10760 if test "${ac_cv_type_error_t+set}" = set; then
10761   echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763   cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h.  */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h.  */
10769 #if HAVE_ARGZ_H
10770 #  include <argz.h>
10771 #endif
10772
10773 typedef error_t ac__type_new_;
10774 int
10775 main ()
10776 {
10777 if ((ac__type_new_ *) 0)
10778   return 0;
10779 if (sizeof (ac__type_new_))
10780   return 0;
10781   ;
10782   return 0;
10783 }
10784 _ACEOF
10785 rm -f conftest.$ac_objext
10786 if { (ac_try="$ac_compile"
10787 case "(($ac_try" in
10788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789   *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792   (eval "$ac_compile") 2>conftest.er1
10793   ac_status=$?
10794   grep -v '^ *+' conftest.er1 >conftest.err
10795   rm -f conftest.er1
10796   cat conftest.err >&5
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); } &&
10799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10800   { (case "(($ac_try" in
10801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802   *) ac_try_echo=$ac_try;;
10803 esac
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805   (eval "$ac_try") 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; } &&
10809          { ac_try='test -s conftest.$ac_objext'
10810   { (case "(($ac_try" in
10811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812   *) ac_try_echo=$ac_try;;
10813 esac
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815   (eval "$ac_try") 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; }; then
10819   ac_cv_type_error_t=yes
10820 else
10821   echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824         ac_cv_type_error_t=no
10825 fi
10826
10827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 fi
10829 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10830 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10831 if test $ac_cv_type_error_t = yes; then
10832
10833 cat >>confdefs.h <<_ACEOF
10834 #define HAVE_ERROR_T 1
10835 _ACEOF
10836
10837
10838 else
10839
10840 cat >>confdefs.h <<\_ACEOF
10841 #define error_t int
10842 _ACEOF
10843
10844 fi
10845
10846
10847
10848
10849
10850
10851
10852 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10853 do
10854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10858   echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860   cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h.  */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h.  */
10866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10868 #define $ac_func innocuous_$ac_func
10869
10870 /* System header to define __stub macros and hopefully few prototypes,
10871     which can conflict with char $ac_func (); below.
10872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10873     <limits.h> exists even on freestanding compilers.  */
10874
10875 #ifdef __STDC__
10876 # include <limits.h>
10877 #else
10878 # include <assert.h>
10879 #endif
10880
10881 #undef $ac_func
10882
10883 /* Override any GCC internal prototype to avoid an error.
10884    Use char because int might match the return type of a GCC
10885    builtin and then its argument prototype would still apply.  */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 char $ac_func ();
10890 /* The GNU C library defines this for functions which it implements
10891     to always fail with ENOSYS.  Some functions are actually named
10892     something starting with __ and the normal name is an alias.  */
10893 #if defined __stub_$ac_func || defined __stub___$ac_func
10894 choke me
10895 #endif
10896
10897 int
10898 main ()
10899 {
10900 return $ac_func ();
10901   ;
10902   return 0;
10903 }
10904 _ACEOF
10905 rm -f conftest.$ac_objext conftest$ac_exeext
10906 if { (ac_try="$ac_link"
10907 case "(($ac_try" in
10908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909   *) ac_try_echo=$ac_try;;
10910 esac
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912   (eval "$ac_link") 2>conftest.er1
10913   ac_status=$?
10914   grep -v '^ *+' conftest.er1 >conftest.err
10915   rm -f conftest.er1
10916   cat conftest.err >&5
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); } &&
10919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10920   { (case "(($ac_try" in
10921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922   *) ac_try_echo=$ac_try;;
10923 esac
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925   (eval "$ac_try") 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; } &&
10929          { ac_try='test -s conftest$ac_exeext'
10930   { (case "(($ac_try" in
10931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932   *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935   (eval "$ac_try") 2>&5
10936   ac_status=$?
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); }; }; then
10939   eval "$as_ac_var=yes"
10940 else
10941   echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10943
10944         eval "$as_ac_var=no"
10945 fi
10946
10947 rm -f core conftest.err conftest.$ac_objext \
10948       conftest$ac_exeext conftest.$ac_ext
10949 fi
10950 ac_res=`eval echo '${'$as_ac_var'}'`
10951                { echo "$as_me:$LINENO: result: $ac_res" >&5
10952 echo "${ECHO_T}$ac_res" >&6; }
10953 if test `eval echo '${'$as_ac_var'}'` = yes; then
10954   cat >>confdefs.h <<_ACEOF
10955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10956 _ACEOF
10957
10958 fi
10959 done
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10989                   stdio.h unistd.h
10990 do
10991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10993   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 fi
10998 ac_res=`eval echo '${'$as_ac_Header'}'`
10999                { echo "$as_me:$LINENO: result: $ac_res" >&5
11000 echo "${ECHO_T}$ac_res" >&6; }
11001 else
11002   # Is the header compilable?
11003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11005 cat >conftest.$ac_ext <<_ACEOF
11006 /* confdefs.h.  */
11007 _ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h.  */
11011 $ac_includes_default
11012 #include <$ac_header>
11013 _ACEOF
11014 rm -f conftest.$ac_objext
11015 if { (ac_try="$ac_compile"
11016 case "(($ac_try" in
11017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018   *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021   (eval "$ac_compile") 2>conftest.er1
11022   ac_status=$?
11023   grep -v '^ *+' conftest.er1 >conftest.err
11024   rm -f conftest.er1
11025   cat conftest.err >&5
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); } &&
11028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11029   { (case "(($ac_try" in
11030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031   *) ac_try_echo=$ac_try;;
11032 esac
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034   (eval "$ac_try") 2>&5
11035   ac_status=$?
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); }; } &&
11038          { ac_try='test -s conftest.$ac_objext'
11039   { (case "(($ac_try" in
11040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041   *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044   (eval "$ac_try") 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); }; }; then
11048   ac_header_compiler=yes
11049 else
11050   echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053         ac_header_compiler=no
11054 fi
11055
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11058 echo "${ECHO_T}$ac_header_compiler" >&6; }
11059
11060 # Is the header present?
11061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11063 cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h.  */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h.  */
11069 #include <$ac_header>
11070 _ACEOF
11071 if { (ac_try="$ac_cpp conftest.$ac_ext"
11072 case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11078   ac_status=$?
11079   grep -v '^ *+' conftest.er1 >conftest.err
11080   rm -f conftest.er1
11081   cat conftest.err >&5
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); } >/dev/null; then
11084   if test -s conftest.err; then
11085     ac_cpp_err=$ac_c_preproc_warn_flag
11086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11087   else
11088     ac_cpp_err=
11089   fi
11090 else
11091   ac_cpp_err=yes
11092 fi
11093 if test -z "$ac_cpp_err"; then
11094   ac_header_preproc=yes
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099   ac_header_preproc=no
11100 fi
11101
11102 rm -f conftest.err conftest.$ac_ext
11103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11104 echo "${ECHO_T}$ac_header_preproc" >&6; }
11105
11106 # So?  What about this header?
11107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11108   yes:no: )
11109     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11113     ac_header_preproc=yes
11114     ;;
11115   no:yes:* )
11116     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11118     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11119 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11120     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11122     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11123 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11126     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11128     ( cat <<\_ASBOX
11129 ## ------------------------------------ ##
11130 ## Report this to http://llvm.org/bugs/ ##
11131 ## ------------------------------------ ##
11132 _ASBOX
11133      ) | sed "s/^/$as_me: WARNING:     /" >&2
11134     ;;
11135 esac
11136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139   echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141   eval "$as_ac_Header=\$ac_header_preproc"
11142 fi
11143 ac_res=`eval echo '${'$as_ac_Header'}'`
11144                { echo "$as_me:$LINENO: result: $ac_res" >&5
11145 echo "${ECHO_T}$ac_res" >&6; }
11146
11147 fi
11148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11149   cat >>confdefs.h <<_ACEOF
11150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11151 _ACEOF
11152
11153 fi
11154
11155 done
11156
11157
11158
11159
11160
11161 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11162 do
11163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11165   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11168   echo $ECHO_N "(cached) $ECHO_C" >&6
11169 fi
11170 ac_res=`eval echo '${'$as_ac_Header'}'`
11171                { echo "$as_me:$LINENO: result: $ac_res" >&5
11172 echo "${ECHO_T}$ac_res" >&6; }
11173 else
11174   # Is the header compilable?
11175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11177 cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h.  */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h.  */
11183 $ac_includes_default
11184 #include <$ac_header>
11185 _ACEOF
11186 rm -f conftest.$ac_objext
11187 if { (ac_try="$ac_compile"
11188 case "(($ac_try" in
11189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190   *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193   (eval "$ac_compile") 2>conftest.er1
11194   ac_status=$?
11195   grep -v '^ *+' conftest.er1 >conftest.err
11196   rm -f conftest.er1
11197   cat conftest.err >&5
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); } &&
11200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); }; } &&
11210          { ac_try='test -s conftest.$ac_objext'
11211   { (case "(($ac_try" in
11212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213   *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216   (eval "$ac_try") 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }; }; then
11220   ac_header_compiler=yes
11221 else
11222   echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11224
11225         ac_header_compiler=no
11226 fi
11227
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11230 echo "${ECHO_T}$ac_header_compiler" >&6; }
11231
11232 # Is the header present?
11233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11235 cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 #include <$ac_header>
11242 _ACEOF
11243 if { (ac_try="$ac_cpp conftest.$ac_ext"
11244 case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11250   ac_status=$?
11251   grep -v '^ *+' conftest.er1 >conftest.err
11252   rm -f conftest.er1
11253   cat conftest.err >&5
11254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255   (exit $ac_status); } >/dev/null; then
11256   if test -s conftest.err; then
11257     ac_cpp_err=$ac_c_preproc_warn_flag
11258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11259   else
11260     ac_cpp_err=
11261   fi
11262 else
11263   ac_cpp_err=yes
11264 fi
11265 if test -z "$ac_cpp_err"; then
11266   ac_header_preproc=yes
11267 else
11268   echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271   ac_header_preproc=no
11272 fi
11273
11274 rm -f conftest.err conftest.$ac_ext
11275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11276 echo "${ECHO_T}$ac_header_preproc" >&6; }
11277
11278 # So?  What about this header?
11279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11280   yes:no: )
11281     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11285     ac_header_preproc=yes
11286     ;;
11287   no:yes:* )
11288     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11290     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11291 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11292     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11294     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11295 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11298     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11300     ( cat <<\_ASBOX
11301 ## ------------------------------------ ##
11302 ## Report this to http://llvm.org/bugs/ ##
11303 ## ------------------------------------ ##
11304 _ASBOX
11305      ) | sed "s/^/$as_me: WARNING:     /" >&2
11306     ;;
11307 esac
11308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11311   echo $ECHO_N "(cached) $ECHO_C" >&6
11312 else
11313   eval "$as_ac_Header=\$ac_header_preproc"
11314 fi
11315 ac_res=`eval echo '${'$as_ac_Header'}'`
11316                { echo "$as_me:$LINENO: result: $ac_res" >&5
11317 echo "${ECHO_T}$ac_res" >&6; }
11318
11319 fi
11320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11321   cat >>confdefs.h <<_ACEOF
11322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11323 _ACEOF
11324
11325 fi
11326
11327 done
11328
11329
11330
11331 for ac_header in string.h strings.h
11332 do
11333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11335   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 fi
11340 ac_res=`eval echo '${'$as_ac_Header'}'`
11341                { echo "$as_me:$LINENO: result: $ac_res" >&5
11342 echo "${ECHO_T}$ac_res" >&6; }
11343 else
11344   # Is the header compilable?
11345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11347 cat >conftest.$ac_ext <<_ACEOF
11348 /* confdefs.h.  */
11349 _ACEOF
11350 cat confdefs.h >>conftest.$ac_ext
11351 cat >>conftest.$ac_ext <<_ACEOF
11352 /* end confdefs.h.  */
11353 $ac_includes_default
11354 #include <$ac_header>
11355 _ACEOF
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360   *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363   (eval "$ac_compile") 2>conftest.er1
11364   ac_status=$?
11365   grep -v '^ *+' conftest.er1 >conftest.err
11366   rm -f conftest.er1
11367   cat conftest.err >&5
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); } &&
11370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11371   { (case "(($ac_try" in
11372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373   *) ac_try_echo=$ac_try;;
11374 esac
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376   (eval "$ac_try") 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; } &&
11380          { ac_try='test -s conftest.$ac_objext'
11381   { (case "(($ac_try" in
11382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383   *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386   (eval "$ac_try") 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); }; }; then
11390   ac_header_compiler=yes
11391 else
11392   echo "$as_me: failed program was:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11394
11395         ac_header_compiler=no
11396 fi
11397
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11400 echo "${ECHO_T}$ac_header_compiler" >&6; }
11401
11402 # Is the header present?
11403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11405 cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h.  */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h.  */
11411 #include <$ac_header>
11412 _ACEOF
11413 if { (ac_try="$ac_cpp conftest.$ac_ext"
11414 case "(($ac_try" in
11415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416   *) ac_try_echo=$ac_try;;
11417 esac
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11420   ac_status=$?
11421   grep -v '^ *+' conftest.er1 >conftest.err
11422   rm -f conftest.er1
11423   cat conftest.err >&5
11424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425   (exit $ac_status); } >/dev/null; then
11426   if test -s conftest.err; then
11427     ac_cpp_err=$ac_c_preproc_warn_flag
11428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11429   else
11430     ac_cpp_err=
11431   fi
11432 else
11433   ac_cpp_err=yes
11434 fi
11435 if test -z "$ac_cpp_err"; then
11436   ac_header_preproc=yes
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441   ac_header_preproc=no
11442 fi
11443
11444 rm -f conftest.err conftest.$ac_ext
11445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11446 echo "${ECHO_T}$ac_header_preproc" >&6; }
11447
11448 # So?  What about this header?
11449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11450   yes:no: )
11451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11455     ac_header_preproc=yes
11456     ;;
11457   no:yes:* )
11458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11470     ( cat <<\_ASBOX
11471 ## ------------------------------------ ##
11472 ## Report this to http://llvm.org/bugs/ ##
11473 ## ------------------------------------ ##
11474 _ASBOX
11475      ) | sed "s/^/$as_me: WARNING:     /" >&2
11476     ;;
11477 esac
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481   echo $ECHO_N "(cached) $ECHO_C" >&6
11482 else
11483   eval "$as_ac_Header=\$ac_header_preproc"
11484 fi
11485 ac_res=`eval echo '${'$as_ac_Header'}'`
11486                { echo "$as_me:$LINENO: result: $ac_res" >&5
11487 echo "${ECHO_T}$ac_res" >&6; }
11488
11489 fi
11490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11491   cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11493 _ACEOF
11494  break
11495 fi
11496
11497 done
11498
11499
11500
11501
11502 for ac_func in strchr index
11503 do
11504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11508   echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510   cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h.  */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h.  */
11516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11518 #define $ac_func innocuous_$ac_func
11519
11520 /* System header to define __stub macros and hopefully few prototypes,
11521     which can conflict with char $ac_func (); below.
11522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523     <limits.h> exists even on freestanding compilers.  */
11524
11525 #ifdef __STDC__
11526 # include <limits.h>
11527 #else
11528 # include <assert.h>
11529 #endif
11530
11531 #undef $ac_func
11532
11533 /* Override any GCC internal prototype to avoid an error.
11534    Use char because int might match the return type of a GCC
11535    builtin and then its argument prototype would still apply.  */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char $ac_func ();
11540 /* The GNU C library defines this for functions which it implements
11541     to always fail with ENOSYS.  Some functions are actually named
11542     something starting with __ and the normal name is an alias.  */
11543 #if defined __stub_$ac_func || defined __stub___$ac_func
11544 choke me
11545 #endif
11546
11547 int
11548 main ()
11549 {
11550 return $ac_func ();
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext conftest$ac_exeext
11556 if { (ac_try="$ac_link"
11557 case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_link") 2>conftest.er1
11563   ac_status=$?
11564   grep -v '^ *+' conftest.er1 >conftest.err
11565   rm -f conftest.er1
11566   cat conftest.err >&5
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); } &&
11569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11570   { (case "(($ac_try" in
11571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572   *) ac_try_echo=$ac_try;;
11573 esac
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575   (eval "$ac_try") 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); }; } &&
11579          { ac_try='test -s conftest$ac_exeext'
11580   { (case "(($ac_try" in
11581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582   *) ac_try_echo=$ac_try;;
11583 esac
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585   (eval "$ac_try") 2>&5
11586   ac_status=$?
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); }; }; then
11589   eval "$as_ac_var=yes"
11590 else
11591   echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11593
11594         eval "$as_ac_var=no"
11595 fi
11596
11597 rm -f core conftest.err conftest.$ac_objext \
11598       conftest$ac_exeext conftest.$ac_ext
11599 fi
11600 ac_res=`eval echo '${'$as_ac_var'}'`
11601                { echo "$as_me:$LINENO: result: $ac_res" >&5
11602 echo "${ECHO_T}$ac_res" >&6; }
11603 if test `eval echo '${'$as_ac_var'}'` = yes; then
11604   cat >>confdefs.h <<_ACEOF
11605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11606 _ACEOF
11607  break
11608 fi
11609 done
11610
11611
11612
11613 for ac_func in strrchr rindex
11614 do
11615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h.  */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h.  */
11627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11629 #define $ac_func innocuous_$ac_func
11630
11631 /* System header to define __stub macros and hopefully few prototypes,
11632     which can conflict with char $ac_func (); below.
11633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634     <limits.h> exists even on freestanding compilers.  */
11635
11636 #ifdef __STDC__
11637 # include <limits.h>
11638 #else
11639 # include <assert.h>
11640 #endif
11641
11642 #undef $ac_func
11643
11644 /* Override any GCC internal prototype to avoid an error.
11645    Use char because int might match the return type of a GCC
11646    builtin and then its argument prototype would still apply.  */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 char $ac_func ();
11651 /* The GNU C library defines this for functions which it implements
11652     to always fail with ENOSYS.  Some functions are actually named
11653     something starting with __ and the normal name is an alias.  */
11654 #if defined __stub_$ac_func || defined __stub___$ac_func
11655 choke me
11656 #endif
11657
11658 int
11659 main ()
11660 {
11661 return $ac_func ();
11662   ;
11663   return 0;
11664 }
11665 _ACEOF
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11674   ac_status=$?
11675   grep -v '^ *+' conftest.er1 >conftest.err
11676   rm -f conftest.er1
11677   cat conftest.err >&5
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); } &&
11680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11681   { (case "(($ac_try" in
11682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683   *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686   (eval "$ac_try") 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; } &&
11690          { ac_try='test -s conftest$ac_exeext'
11691   { (case "(($ac_try" in
11692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693   *) ac_try_echo=$ac_try;;
11694 esac
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696   (eval "$ac_try") 2>&5
11697   ac_status=$?
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); }; }; then
11700   eval "$as_ac_var=yes"
11701 else
11702   echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11704
11705         eval "$as_ac_var=no"
11706 fi
11707
11708 rm -f core conftest.err conftest.$ac_objext \
11709       conftest$ac_exeext conftest.$ac_ext
11710 fi
11711 ac_res=`eval echo '${'$as_ac_var'}'`
11712                { echo "$as_me:$LINENO: result: $ac_res" >&5
11713 echo "${ECHO_T}$ac_res" >&6; }
11714 if test `eval echo '${'$as_ac_var'}'` = yes; then
11715   cat >>confdefs.h <<_ACEOF
11716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11717 _ACEOF
11718  break
11719 fi
11720 done
11721
11722
11723
11724 for ac_func in memcpy bcopy
11725 do
11726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11730   echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732   cat >conftest.$ac_ext <<_ACEOF
11733 /* confdefs.h.  */
11734 _ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h.  */
11738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11740 #define $ac_func innocuous_$ac_func
11741
11742 /* System header to define __stub macros and hopefully few prototypes,
11743     which can conflict with char $ac_func (); below.
11744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11745     <limits.h> exists even on freestanding compilers.  */
11746
11747 #ifdef __STDC__
11748 # include <limits.h>
11749 #else
11750 # include <assert.h>
11751 #endif
11752
11753 #undef $ac_func
11754
11755 /* Override any GCC internal prototype to avoid an error.
11756    Use char because int might match the return type of a GCC
11757    builtin and then its argument prototype would still apply.  */
11758 #ifdef __cplusplus
11759 extern "C"
11760 #endif
11761 char $ac_func ();
11762 /* The GNU C library defines this for functions which it implements
11763     to always fail with ENOSYS.  Some functions are actually named
11764     something starting with __ and the normal name is an alias.  */
11765 #if defined __stub_$ac_func || defined __stub___$ac_func
11766 choke me
11767 #endif
11768
11769 int
11770 main ()
11771 {
11772 return $ac_func ();
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (ac_try="$ac_link"
11779 case "(($ac_try" in
11780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781   *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784   (eval "$ac_link") 2>conftest.er1
11785   ac_status=$?
11786   grep -v '^ *+' conftest.er1 >conftest.err
11787   rm -f conftest.er1
11788   cat conftest.err >&5
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } &&
11791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11792   { (case "(($ac_try" in
11793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794   *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797   (eval "$ac_try") 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); }; } &&
11801          { ac_try='test -s conftest$ac_exeext'
11802   { (case "(($ac_try" in
11803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804   *) ac_try_echo=$ac_try;;
11805 esac
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807   (eval "$ac_try") 2>&5
11808   ac_status=$?
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); }; }; then
11811   eval "$as_ac_var=yes"
11812 else
11813   echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816         eval "$as_ac_var=no"
11817 fi
11818
11819 rm -f core conftest.err conftest.$ac_objext \
11820       conftest$ac_exeext conftest.$ac_ext
11821 fi
11822 ac_res=`eval echo '${'$as_ac_var'}'`
11823                { echo "$as_me:$LINENO: result: $ac_res" >&5
11824 echo "${ECHO_T}$ac_res" >&6; }
11825 if test `eval echo '${'$as_ac_var'}'` = yes; then
11826   cat >>confdefs.h <<_ACEOF
11827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11828 _ACEOF
11829  break
11830 fi
11831 done
11832
11833
11834
11835 for ac_func in memmove strcmp
11836 do
11837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11841   echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843   cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11851 #define $ac_func innocuous_$ac_func
11852
11853 /* System header to define __stub macros and hopefully few prototypes,
11854     which can conflict with char $ac_func (); below.
11855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11856     <limits.h> exists even on freestanding compilers.  */
11857
11858 #ifdef __STDC__
11859 # include <limits.h>
11860 #else
11861 # include <assert.h>
11862 #endif
11863
11864 #undef $ac_func
11865
11866 /* Override any GCC internal prototype to avoid an error.
11867    Use char because int might match the return type of a GCC
11868    builtin and then its argument prototype would still apply.  */
11869 #ifdef __cplusplus
11870 extern "C"
11871 #endif
11872 char $ac_func ();
11873 /* The GNU C library defines this for functions which it implements
11874     to always fail with ENOSYS.  Some functions are actually named
11875     something starting with __ and the normal name is an alias.  */
11876 #if defined __stub_$ac_func || defined __stub___$ac_func
11877 choke me
11878 #endif
11879
11880 int
11881 main ()
11882 {
11883 return $ac_func ();
11884   ;
11885   return 0;
11886 }
11887 _ACEOF
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (ac_try="$ac_link"
11890 case "(($ac_try" in
11891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892   *) ac_try_echo=$ac_try;;
11893 esac
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895   (eval "$ac_link") 2>conftest.er1
11896   ac_status=$?
11897   grep -v '^ *+' conftest.er1 >conftest.err
11898   rm -f conftest.er1
11899   cat conftest.err >&5
11900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901   (exit $ac_status); } &&
11902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903   { (case "(($ac_try" in
11904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905   *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908   (eval "$ac_try") 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); }; } &&
11912          { ac_try='test -s conftest$ac_exeext'
11913   { (case "(($ac_try" in
11914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915   *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918   (eval "$ac_try") 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   eval "$as_ac_var=yes"
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927         eval "$as_ac_var=no"
11928 fi
11929
11930 rm -f core conftest.err conftest.$ac_objext \
11931       conftest$ac_exeext conftest.$ac_ext
11932 fi
11933 ac_res=`eval echo '${'$as_ac_var'}'`
11934                { echo "$as_me:$LINENO: result: $ac_res" >&5
11935 echo "${ECHO_T}$ac_res" >&6; }
11936 if test `eval echo '${'$as_ac_var'}'` = yes; then
11937   cat >>confdefs.h <<_ACEOF
11938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11939 _ACEOF
11940
11941 fi
11942 done
11943
11944
11945
11946
11947 for ac_func in closedir opendir readdir
11948 do
11949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11953   echo $ECHO_N "(cached) $ECHO_C" >&6
11954 else
11955   cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11963 #define $ac_func innocuous_$ac_func
11964
11965 /* System header to define __stub macros and hopefully few prototypes,
11966     which can conflict with char $ac_func (); below.
11967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11968     <limits.h> exists even on freestanding compilers.  */
11969
11970 #ifdef __STDC__
11971 # include <limits.h>
11972 #else
11973 # include <assert.h>
11974 #endif
11975
11976 #undef $ac_func
11977
11978 /* Override any GCC internal prototype to avoid an error.
11979    Use char because int might match the return type of a GCC
11980    builtin and then its argument prototype would still apply.  */
11981 #ifdef __cplusplus
11982 extern "C"
11983 #endif
11984 char $ac_func ();
11985 /* The GNU C library defines this for functions which it implements
11986     to always fail with ENOSYS.  Some functions are actually named
11987     something starting with __ and the normal name is an alias.  */
11988 #if defined __stub_$ac_func || defined __stub___$ac_func
11989 choke me
11990 #endif
11991
11992 int
11993 main ()
11994 {
11995 return $ac_func ();
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004   *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007   (eval "$ac_link") 2>conftest.er1
12008   ac_status=$?
12009   grep -v '^ *+' conftest.er1 >conftest.err
12010   rm -f conftest.er1
12011   cat conftest.err >&5
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } &&
12014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12015   { (case "(($ac_try" in
12016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017   *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020   (eval "$ac_try") 2>&5
12021   ac_status=$?
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); }; } &&
12024          { ac_try='test -s conftest$ac_exeext'
12025   { (case "(($ac_try" in
12026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027   *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030   (eval "$ac_try") 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); }; }; then
12034   eval "$as_ac_var=yes"
12035 else
12036   echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12038
12039         eval "$as_ac_var=no"
12040 fi
12041
12042 rm -f core conftest.err conftest.$ac_objext \
12043       conftest$ac_exeext conftest.$ac_ext
12044 fi
12045 ac_res=`eval echo '${'$as_ac_var'}'`
12046                { echo "$as_me:$LINENO: result: $ac_res" >&5
12047 echo "${ECHO_T}$ac_res" >&6; }
12048 if test `eval echo '${'$as_ac_var'}'` = yes; then
12049   cat >>confdefs.h <<_ACEOF
12050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12051 _ACEOF
12052
12053 fi
12054 done
12055
12056
12057
12058 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12059 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12060
12061 ICC=no
12062 IXX=no
12063 case $CC in
12064   icc*|icpc*)
12065     ICC=yes
12066     IXX=yes
12067     ;;
12068    *)
12069     ;;
12070 esac
12071
12072 if test "$GCC" != "yes" && test "$ICC" != "yes"
12073 then
12074   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12075 echo "$as_me: error: gcc|icc required but not found" >&2;}
12076    { (exit 1); exit 1; }; }
12077 fi
12078
12079 if test "$GXX" != "yes" && test "$IXX" != "yes"
12080 then
12081   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12082 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12083    { (exit 1); exit 1; }; }
12084 fi
12085
12086 if test "$GCC" = "yes"
12087 then
12088   cat >conftest.$ac_ext <<_ACEOF
12089 #if !defined(__GNUC__) || __GNUC__ < 3
12090 #error Unsupported GCC version
12091 #endif
12092
12093 _ACEOF
12094 rm -f conftest.$ac_objext
12095 if { (ac_try="$ac_compile"
12096 case "(($ac_try" in
12097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098   *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101   (eval "$ac_compile") 2>conftest.er1
12102   ac_status=$?
12103   grep -v '^ *+' conftest.er1 >conftest.err
12104   rm -f conftest.er1
12105   cat conftest.err >&5
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); } &&
12108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109   { (case "(($ac_try" in
12110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111   *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114   (eval "$ac_try") 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; } &&
12118          { ac_try='test -s conftest.$ac_objext'
12119   { (case "(($ac_try" in
12120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121   *) ac_try_echo=$ac_try;;
12122 esac
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124   (eval "$ac_try") 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; }; then
12128   :
12129 else
12130   echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12132
12133         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12134 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12135    { (exit 1); exit 1; }; }
12136 fi
12137
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 fi
12140
12141 if test -z "$llvm_cv_gnu_make_command"
12142 then
12143   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12144 echo "$as_me: error: GNU Make required but not found" >&2;}
12145    { (exit 1); exit 1; }; }
12146 fi
12147
12148 { echo "$as_me:$LINENO: result: ok" >&5
12149 echo "${ECHO_T}ok" >&6; }
12150
12151 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12152 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12153 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12154
12155 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12156
12157 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12158
12159 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12160 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12161
12162
12163
12164 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12165 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12166 if test "${ac_cv_lib_m_sin+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-lm  $LIBS"
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h.  */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h.  */
12177
12178 /* Override any GCC internal prototype to avoid an error.
12179    Use char because int might match the return type of a GCC
12180    builtin and then its argument prototype would still apply.  */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 char sin ();
12185 int
12186 main ()
12187 {
12188 return sin ();
12189   ;
12190   return 0;
12191 }
12192 _ACEOF
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197   *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200   (eval "$ac_link") 2>conftest.er1
12201   ac_status=$?
12202   grep -v '^ *+' conftest.er1 >conftest.err
12203   rm -f conftest.er1
12204   cat conftest.err >&5
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208   { (case "(($ac_try" in
12209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210   *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213   (eval "$ac_try") 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; } &&
12217          { ac_try='test -s conftest$ac_exeext'
12218   { (case "(($ac_try" in
12219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220   *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223   (eval "$ac_try") 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; }; then
12227   ac_cv_lib_m_sin=yes
12228 else
12229   echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232         ac_cv_lib_m_sin=no
12233 fi
12234
12235 rm -f core conftest.err conftest.$ac_objext \
12236       conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12240 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12241 if test $ac_cv_lib_m_sin = yes; then
12242   cat >>confdefs.h <<_ACEOF
12243 #define HAVE_LIBM 1
12244 _ACEOF
12245
12246   LIBS="-lm $LIBS"
12247
12248 fi
12249
12250 if test "$llvm_cv_os_type" = "MingW" ; then
12251
12252 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12253 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12254 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12255   echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257   ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-limagehlp  $LIBS"
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h.  */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h.  */
12265
12266
12267 int
12268 main ()
12269 {
12270 return main ();
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (ac_try="$ac_link"
12277 case "(($ac_try" in
12278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279   *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282   (eval "$ac_link") 2>conftest.er1
12283   ac_status=$?
12284   grep -v '^ *+' conftest.er1 >conftest.err
12285   rm -f conftest.er1
12286   cat conftest.err >&5
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } &&
12289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12290   { (case "(($ac_try" in
12291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292   *) ac_try_echo=$ac_try;;
12293 esac
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295   (eval "$ac_try") 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; } &&
12299          { ac_try='test -s conftest$ac_exeext'
12300   { (case "(($ac_try" in
12301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302   *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305   (eval "$ac_try") 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; }; then
12309   ac_cv_lib_imagehlp_main=yes
12310 else
12311   echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314         ac_cv_lib_imagehlp_main=no
12315 fi
12316
12317 rm -f core conftest.err conftest.$ac_objext \
12318       conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12320 fi
12321 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12322 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12323 if test $ac_cv_lib_imagehlp_main = yes; then
12324   cat >>confdefs.h <<_ACEOF
12325 #define HAVE_LIBIMAGEHLP 1
12326 _ACEOF
12327
12328   LIBS="-limagehlp $LIBS"
12329
12330 fi
12331
12332
12333 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12334 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12335 if test "${ac_cv_lib_psapi_main+set}" = set; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   ac_check_lib_save_LIBS=$LIBS
12339 LIBS="-lpsapi  $LIBS"
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346
12347
12348 int
12349 main ()
12350 {
12351 return main ();
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 rm -f conftest.$ac_objext conftest$ac_exeext
12357 if { (ac_try="$ac_link"
12358 case "(($ac_try" in
12359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360   *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363   (eval "$ac_link") 2>conftest.er1
12364   ac_status=$?
12365   grep -v '^ *+' conftest.er1 >conftest.err
12366   rm -f conftest.er1
12367   cat conftest.err >&5
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); } &&
12370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12371   { (case "(($ac_try" in
12372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373   *) ac_try_echo=$ac_try;;
12374 esac
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376   (eval "$ac_try") 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); }; } &&
12380          { ac_try='test -s conftest$ac_exeext'
12381   { (case "(($ac_try" in
12382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383   *) ac_try_echo=$ac_try;;
12384 esac
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386   (eval "$ac_try") 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); }; }; then
12390   ac_cv_lib_psapi_main=yes
12391 else
12392   echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12394
12395         ac_cv_lib_psapi_main=no
12396 fi
12397
12398 rm -f core conftest.err conftest.$ac_objext \
12399       conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12401 fi
12402 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12403 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12404 if test $ac_cv_lib_psapi_main = yes; then
12405   cat >>confdefs.h <<_ACEOF
12406 #define HAVE_LIBPSAPI 1
12407 _ACEOF
12408
12409   LIBS="-lpsapi $LIBS"
12410
12411 fi
12412
12413 fi
12414
12415 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12416 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12417 if test "${ac_cv_search_dlopen+set}" = set; then
12418   echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420   ac_func_search_save_LIBS=$LIBS
12421 cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427
12428 /* Override any GCC internal prototype to avoid an error.
12429    Use char because int might match the return type of a GCC
12430    builtin and then its argument prototype would still apply.  */
12431 #ifdef __cplusplus
12432 extern "C"
12433 #endif
12434 char dlopen ();
12435 int
12436 main ()
12437 {
12438 return dlopen ();
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 for ac_lib in '' dl; do
12444   if test -z "$ac_lib"; then
12445     ac_res="none required"
12446   else
12447     ac_res=-l$ac_lib
12448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12449   fi
12450   rm -f conftest.$ac_objext conftest$ac_exeext
12451 if { (ac_try="$ac_link"
12452 case "(($ac_try" in
12453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454   *) ac_try_echo=$ac_try;;
12455 esac
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457   (eval "$ac_link") 2>conftest.er1
12458   ac_status=$?
12459   grep -v '^ *+' conftest.er1 >conftest.err
12460   rm -f conftest.er1
12461   cat conftest.err >&5
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); } &&
12464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12465   { (case "(($ac_try" in
12466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467   *) ac_try_echo=$ac_try;;
12468 esac
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470   (eval "$ac_try") 2>&5
12471   ac_status=$?
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); }; } &&
12474          { ac_try='test -s conftest$ac_exeext'
12475   { (case "(($ac_try" in
12476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477   *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480   (eval "$ac_try") 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); }; }; then
12484   ac_cv_search_dlopen=$ac_res
12485 else
12486   echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489
12490 fi
12491
12492 rm -f core conftest.err conftest.$ac_objext \
12493       conftest$ac_exeext
12494   if test "${ac_cv_search_dlopen+set}" = set; then
12495   break
12496 fi
12497 done
12498 if test "${ac_cv_search_dlopen+set}" = set; then
12499   :
12500 else
12501   ac_cv_search_dlopen=no
12502 fi
12503 rm conftest.$ac_ext
12504 LIBS=$ac_func_search_save_LIBS
12505 fi
12506 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12507 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12508 ac_res=$ac_cv_search_dlopen
12509 if test "$ac_res" != no; then
12510   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12511
12512 cat >>confdefs.h <<\_ACEOF
12513 #define HAVE_DLOPEN 1
12514 _ACEOF
12515
12516 else
12517   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12518 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12519 fi
12520
12521
12522 if test "$llvm_cv_enable_libffi" = "yes" ; then
12523   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12524 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12525 if test "${ac_cv_search_ffi_call+set}" = set; then
12526   echo $ECHO_N "(cached) $ECHO_C" >&6
12527 else
12528   ac_func_search_save_LIBS=$LIBS
12529 cat >conftest.$ac_ext <<_ACEOF
12530 /* confdefs.h.  */
12531 _ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h.  */
12535
12536 /* Override any GCC internal prototype to avoid an error.
12537    Use char because int might match the return type of a GCC
12538    builtin and then its argument prototype would still apply.  */
12539 #ifdef __cplusplus
12540 extern "C"
12541 #endif
12542 char ffi_call ();
12543 int
12544 main ()
12545 {
12546 return ffi_call ();
12547   ;
12548   return 0;
12549 }
12550 _ACEOF
12551 for ac_lib in '' ffi; do
12552   if test -z "$ac_lib"; then
12553     ac_res="none required"
12554   else
12555     ac_res=-l$ac_lib
12556     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12557   fi
12558   rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (ac_try="$ac_link"
12560 case "(($ac_try" in
12561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562   *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565   (eval "$ac_link") 2>conftest.er1
12566   ac_status=$?
12567   grep -v '^ *+' conftest.er1 >conftest.err
12568   rm -f conftest.er1
12569   cat conftest.err >&5
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } &&
12572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12573   { (case "(($ac_try" in
12574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575   *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578   (eval "$ac_try") 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); }; } &&
12582          { ac_try='test -s conftest$ac_exeext'
12583   { (case "(($ac_try" in
12584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585   *) ac_try_echo=$ac_try;;
12586 esac
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588   (eval "$ac_try") 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; }; then
12592   ac_cv_search_ffi_call=$ac_res
12593 else
12594   echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597
12598 fi
12599
12600 rm -f core conftest.err conftest.$ac_objext \
12601       conftest$ac_exeext
12602   if test "${ac_cv_search_ffi_call+set}" = set; then
12603   break
12604 fi
12605 done
12606 if test "${ac_cv_search_ffi_call+set}" = set; then
12607   :
12608 else
12609   ac_cv_search_ffi_call=no
12610 fi
12611 rm conftest.$ac_ext
12612 LIBS=$ac_func_search_save_LIBS
12613 fi
12614 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12615 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12616 ac_res=$ac_cv_search_ffi_call
12617 if test "$ac_res" != no; then
12618   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12619
12620 cat >>confdefs.h <<\_ACEOF
12621 #define HAVE_FFI_CALL 1
12622 _ACEOF
12623
12624 else
12625   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12626 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12627    { (exit 1); exit 1; }; }
12628 fi
12629
12630 fi
12631
12632 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12633 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12634 if test "${ac_cv_search_mallinfo+set}" = set; then
12635   echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637   ac_func_search_save_LIBS=$LIBS
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h.  */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h.  */
12644
12645 /* Override any GCC internal prototype to avoid an error.
12646    Use char because int might match the return type of a GCC
12647    builtin and then its argument prototype would still apply.  */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char mallinfo ();
12652 int
12653 main ()
12654 {
12655 return mallinfo ();
12656   ;
12657   return 0;
12658 }
12659 _ACEOF
12660 for ac_lib in '' malloc; do
12661   if test -z "$ac_lib"; then
12662     ac_res="none required"
12663   else
12664     ac_res=-l$ac_lib
12665     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12666   fi
12667   rm -f conftest.$ac_objext conftest$ac_exeext
12668 if { (ac_try="$ac_link"
12669 case "(($ac_try" in
12670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671   *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674   (eval "$ac_link") 2>conftest.er1
12675   ac_status=$?
12676   grep -v '^ *+' conftest.er1 >conftest.err
12677   rm -f conftest.er1
12678   cat conftest.err >&5
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); } &&
12681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12682   { (case "(($ac_try" in
12683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684   *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687   (eval "$ac_try") 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }; } &&
12691          { ac_try='test -s conftest$ac_exeext'
12692   { (case "(($ac_try" in
12693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694   *) ac_try_echo=$ac_try;;
12695 esac
12696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697   (eval "$ac_try") 2>&5
12698   ac_status=$?
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); }; }; then
12701   ac_cv_search_mallinfo=$ac_res
12702 else
12703   echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706
12707 fi
12708
12709 rm -f core conftest.err conftest.$ac_objext \
12710       conftest$ac_exeext
12711   if test "${ac_cv_search_mallinfo+set}" = set; then
12712   break
12713 fi
12714 done
12715 if test "${ac_cv_search_mallinfo+set}" = set; then
12716   :
12717 else
12718   ac_cv_search_mallinfo=no
12719 fi
12720 rm conftest.$ac_ext
12721 LIBS=$ac_func_search_save_LIBS
12722 fi
12723 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12724 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12725 ac_res=$ac_cv_search_mallinfo
12726 if test "$ac_res" != no; then
12727   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12728
12729 cat >>confdefs.h <<\_ACEOF
12730 #define HAVE_MALLINFO 1
12731 _ACEOF
12732
12733 fi
12734
12735
12736 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12737
12738 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12739 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12740 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12741   echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743   ac_check_lib_save_LIBS=$LIBS
12744 LIBS="-lpthread  $LIBS"
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h.  */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h.  */
12751
12752 /* Override any GCC internal prototype to avoid an error.
12753    Use char because int might match the return type of a GCC
12754    builtin and then its argument prototype would still apply.  */
12755 #ifdef __cplusplus
12756 extern "C"
12757 #endif
12758 char pthread_mutex_init ();
12759 int
12760 main ()
12761 {
12762 return pthread_mutex_init ();
12763   ;
12764   return 0;
12765 }
12766 _ACEOF
12767 rm -f conftest.$ac_objext conftest$ac_exeext
12768 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12775   ac_status=$?
12776   grep -v '^ *+' conftest.er1 >conftest.err
12777   rm -f conftest.er1
12778   cat conftest.err >&5
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); } &&
12781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782   { (case "(($ac_try" in
12783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784   *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787   (eval "$ac_try") 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; } &&
12791          { ac_try='test -s conftest$ac_exeext'
12792   { (case "(($ac_try" in
12793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794   *) ac_try_echo=$ac_try;;
12795 esac
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797   (eval "$ac_try") 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; }; then
12801   ac_cv_lib_pthread_pthread_mutex_init=yes
12802 else
12803   echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12805
12806         ac_cv_lib_pthread_pthread_mutex_init=no
12807 fi
12808
12809 rm -f core conftest.err conftest.$ac_objext \
12810       conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_lib_save_LIBS
12812 fi
12813 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12814 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12815 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12816   cat >>confdefs.h <<_ACEOF
12817 #define HAVE_LIBPTHREAD 1
12818 _ACEOF
12819
12820   LIBS="-lpthread $LIBS"
12821
12822 fi
12823
12824   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12825 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12826 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12827   echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829   ac_func_search_save_LIBS=$LIBS
12830 cat >conftest.$ac_ext <<_ACEOF
12831 /* confdefs.h.  */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h.  */
12836
12837 /* Override any GCC internal prototype to avoid an error.
12838    Use char because int might match the return type of a GCC
12839    builtin and then its argument prototype would still apply.  */
12840 #ifdef __cplusplus
12841 extern "C"
12842 #endif
12843 char pthread_mutex_lock ();
12844 int
12845 main ()
12846 {
12847 return pthread_mutex_lock ();
12848   ;
12849   return 0;
12850 }
12851 _ACEOF
12852 for ac_lib in '' pthread; do
12853   if test -z "$ac_lib"; then
12854     ac_res="none required"
12855   else
12856     ac_res=-l$ac_lib
12857     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12858   fi
12859   rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (ac_try="$ac_link"
12861 case "(($ac_try" in
12862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863   *) ac_try_echo=$ac_try;;
12864 esac
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866   (eval "$ac_link") 2>conftest.er1
12867   ac_status=$?
12868   grep -v '^ *+' conftest.er1 >conftest.err
12869   rm -f conftest.er1
12870   cat conftest.err >&5
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } &&
12873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12874   { (case "(($ac_try" in
12875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876   *) ac_try_echo=$ac_try;;
12877 esac
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879   (eval "$ac_try") 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); }; } &&
12883          { ac_try='test -s conftest$ac_exeext'
12884   { (case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889   (eval "$ac_try") 2>&5
12890   ac_status=$?
12891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892   (exit $ac_status); }; }; then
12893   ac_cv_search_pthread_mutex_lock=$ac_res
12894 else
12895   echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12897
12898
12899 fi
12900
12901 rm -f core conftest.err conftest.$ac_objext \
12902       conftest$ac_exeext
12903   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12904   break
12905 fi
12906 done
12907 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12908   :
12909 else
12910   ac_cv_search_pthread_mutex_lock=no
12911 fi
12912 rm conftest.$ac_ext
12913 LIBS=$ac_func_search_save_LIBS
12914 fi
12915 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12916 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12917 ac_res=$ac_cv_search_pthread_mutex_lock
12918 if test "$ac_res" != no; then
12919   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12920
12921 cat >>confdefs.h <<\_ACEOF
12922 #define HAVE_PTHREAD_MUTEX_LOCK 1
12923 _ACEOF
12924
12925 fi
12926
12927   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12928 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12929 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12930   echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932   ac_func_search_save_LIBS=$LIBS
12933 cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h.  */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h.  */
12939
12940 /* Override any GCC internal prototype to avoid an error.
12941    Use char because int might match the return type of a GCC
12942    builtin and then its argument prototype would still apply.  */
12943 #ifdef __cplusplus
12944 extern "C"
12945 #endif
12946 char pthread_rwlock_init ();
12947 int
12948 main ()
12949 {
12950 return pthread_rwlock_init ();
12951   ;
12952   return 0;
12953 }
12954 _ACEOF
12955 for ac_lib in '' pthread; do
12956   if test -z "$ac_lib"; then
12957     ac_res="none required"
12958   else
12959     ac_res=-l$ac_lib
12960     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12961   fi
12962   rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (ac_try="$ac_link"
12964 case "(($ac_try" in
12965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966   *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969   (eval "$ac_link") 2>conftest.er1
12970   ac_status=$?
12971   grep -v '^ *+' conftest.er1 >conftest.err
12972   rm -f conftest.er1
12973   cat conftest.err >&5
12974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); } &&
12976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977   { (case "(($ac_try" in
12978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979   *) ac_try_echo=$ac_try;;
12980 esac
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982   (eval "$ac_try") 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; } &&
12986          { ac_try='test -s conftest$ac_exeext'
12987   { (case "(($ac_try" in
12988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989   *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992   (eval "$ac_try") 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; }; then
12996   ac_cv_search_pthread_rwlock_init=$ac_res
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001
13002 fi
13003
13004 rm -f core conftest.err conftest.$ac_objext \
13005       conftest$ac_exeext
13006   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13007   break
13008 fi
13009 done
13010 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13011   :
13012 else
13013   ac_cv_search_pthread_rwlock_init=no
13014 fi
13015 rm conftest.$ac_ext
13016 LIBS=$ac_func_search_save_LIBS
13017 fi
13018 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13019 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13020 ac_res=$ac_cv_search_pthread_rwlock_init
13021 if test "$ac_res" != no; then
13022   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HAVE_PTHREAD_RWLOCK_INIT 1
13026 _ACEOF
13027
13028 fi
13029
13030   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13031 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13032 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13033   echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035   ac_func_search_save_LIBS=$LIBS
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042
13043 /* Override any GCC internal prototype to avoid an error.
13044    Use char because int might match the return type of a GCC
13045    builtin and then its argument prototype would still apply.  */
13046 #ifdef __cplusplus
13047 extern "C"
13048 #endif
13049 char pthread_getspecific ();
13050 int
13051 main ()
13052 {
13053 return pthread_getspecific ();
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 for ac_lib in '' pthread; do
13059   if test -z "$ac_lib"; then
13060     ac_res="none required"
13061   else
13062     ac_res=-l$ac_lib
13063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13064   fi
13065   rm -f conftest.$ac_objext conftest$ac_exeext
13066 if { (ac_try="$ac_link"
13067 case "(($ac_try" in
13068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069   *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072   (eval "$ac_link") 2>conftest.er1
13073   ac_status=$?
13074   grep -v '^ *+' conftest.er1 >conftest.err
13075   rm -f conftest.er1
13076   cat conftest.err >&5
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); } &&
13079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13080   { (case "(($ac_try" in
13081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082   *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085   (eval "$ac_try") 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }; } &&
13089          { ac_try='test -s conftest$ac_exeext'
13090   { (case "(($ac_try" in
13091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092   *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095   (eval "$ac_try") 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); }; }; then
13099   ac_cv_search_pthread_getspecific=$ac_res
13100 else
13101   echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13103
13104
13105 fi
13106
13107 rm -f core conftest.err conftest.$ac_objext \
13108       conftest$ac_exeext
13109   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13110   break
13111 fi
13112 done
13113 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13114   :
13115 else
13116   ac_cv_search_pthread_getspecific=no
13117 fi
13118 rm conftest.$ac_ext
13119 LIBS=$ac_func_search_save_LIBS
13120 fi
13121 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13122 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13123 ac_res=$ac_cv_search_pthread_getspecific
13124 if test "$ac_res" != no; then
13125   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13126
13127 cat >>confdefs.h <<\_ACEOF
13128 #define HAVE_PTHREAD_GETSPECIFIC 1
13129 _ACEOF
13130
13131 fi
13132
13133 fi
13134
13135
13136 # Check whether --with-udis86 was given.
13137 if test "${with_udis86+set}" = set; then
13138   withval=$with_udis86;
13139       USE_UDIS86=1
13140
13141       case "$withval" in
13142         /usr/lib|yes) ;;
13143         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13144       esac
13145
13146 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13147 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13148 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13149   echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151   ac_check_lib_save_LIBS=$LIBS
13152 LIBS="-ludis86  $LIBS"
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h.  */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h.  */
13159
13160 /* Override any GCC internal prototype to avoid an error.
13161    Use char because int might match the return type of a GCC
13162    builtin and then its argument prototype would still apply.  */
13163 #ifdef __cplusplus
13164 extern "C"
13165 #endif
13166 char ud_init ();
13167 int
13168 main ()
13169 {
13170 return ud_init ();
13171   ;
13172   return 0;
13173 }
13174 _ACEOF
13175 rm -f conftest.$ac_objext conftest$ac_exeext
13176 if { (ac_try="$ac_link"
13177 case "(($ac_try" in
13178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179   *) ac_try_echo=$ac_try;;
13180 esac
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182   (eval "$ac_link") 2>conftest.er1
13183   ac_status=$?
13184   grep -v '^ *+' conftest.er1 >conftest.err
13185   rm -f conftest.er1
13186   cat conftest.err >&5
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); } &&
13189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13190   { (case "(($ac_try" in
13191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192   *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195   (eval "$ac_try") 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); }; } &&
13199          { ac_try='test -s conftest$ac_exeext'
13200   { (case "(($ac_try" in
13201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202   *) ac_try_echo=$ac_try;;
13203 esac
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205   (eval "$ac_try") 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); }; }; then
13209   ac_cv_lib_udis86_ud_init=yes
13210 else
13211   echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13213
13214         ac_cv_lib_udis86_ud_init=no
13215 fi
13216
13217 rm -f core conftest.err conftest.$ac_objext \
13218       conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13220 fi
13221 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13222 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13223 if test $ac_cv_lib_udis86_ud_init = yes; then
13224   cat >>confdefs.h <<_ACEOF
13225 #define HAVE_LIBUDIS86 1
13226 _ACEOF
13227
13228   LIBS="-ludis86 $LIBS"
13229
13230 else
13231
13232         echo "Error! You need to have libudis86 around."
13233         exit -1
13234
13235 fi
13236
13237
13238 else
13239   USE_UDIS86=0
13240
13241 fi
13242
13243
13244 cat >>confdefs.h <<_ACEOF
13245 #define USE_UDIS86 $USE_UDIS86
13246 _ACEOF
13247
13248
13249
13250 # Check whether --with-oprofile was given.
13251 if test "${with_oprofile+set}" = set; then
13252   withval=$with_oprofile;
13253       USE_OPROFILE=1
13254
13255       case "$withval" in
13256         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13257         no) llvm_cv_oppath=
13258             USE_OPROFILE=0
13259  ;;
13260         *) llvm_cv_oppath="${withval}/lib/oprofile"
13261            CPPFLAGS="-I${withval}/include";;
13262       esac
13263       if test -n "$llvm_cv_oppath" ; then
13264         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13265                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13266 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13267 if test "${ac_cv_search_bfd_init+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   ac_func_search_save_LIBS=$LIBS
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h.  */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h.  */
13277
13278 /* Override any GCC internal prototype to avoid an error.
13279    Use char because int might match the return type of a GCC
13280    builtin and then its argument prototype would still apply.  */
13281 #ifdef __cplusplus
13282 extern "C"
13283 #endif
13284 char bfd_init ();
13285 int
13286 main ()
13287 {
13288 return bfd_init ();
13289   ;
13290   return 0;
13291 }
13292 _ACEOF
13293 for ac_lib in '' bfd; do
13294   if test -z "$ac_lib"; then
13295     ac_res="none required"
13296   else
13297     ac_res=-l$ac_lib
13298     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13299   fi
13300   rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (ac_try="$ac_link"
13302 case "(($ac_try" in
13303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304   *) ac_try_echo=$ac_try;;
13305 esac
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307   (eval "$ac_link") 2>conftest.er1
13308   ac_status=$?
13309   grep -v '^ *+' conftest.er1 >conftest.err
13310   rm -f conftest.er1
13311   cat conftest.err >&5
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); } &&
13314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13315   { (case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_try") 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); }; } &&
13324          { ac_try='test -s conftest$ac_exeext'
13325   { (case "(($ac_try" in
13326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327   *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330   (eval "$ac_try") 2>&5
13331   ac_status=$?
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); }; }; then
13334   ac_cv_search_bfd_init=$ac_res
13335 else
13336   echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339
13340 fi
13341
13342 rm -f core conftest.err conftest.$ac_objext \
13343       conftest$ac_exeext
13344   if test "${ac_cv_search_bfd_init+set}" = set; then
13345   break
13346 fi
13347 done
13348 if test "${ac_cv_search_bfd_init+set}" = set; then
13349   :
13350 else
13351   ac_cv_search_bfd_init=no
13352 fi
13353 rm conftest.$ac_ext
13354 LIBS=$ac_func_search_save_LIBS
13355 fi
13356 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13357 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13358 ac_res=$ac_cv_search_bfd_init
13359 if test "$ac_res" != no; then
13360   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13361
13362 fi
13363
13364         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13365 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13366 if test "${ac_cv_search_op_open_agent+set}" = set; then
13367   echo $ECHO_N "(cached) $ECHO_C" >&6
13368 else
13369   ac_func_search_save_LIBS=$LIBS
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h.  */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h.  */
13376
13377 /* Override any GCC internal prototype to avoid an error.
13378    Use char because int might match the return type of a GCC
13379    builtin and then its argument prototype would still apply.  */
13380 #ifdef __cplusplus
13381 extern "C"
13382 #endif
13383 char op_open_agent ();
13384 int
13385 main ()
13386 {
13387 return op_open_agent ();
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 for ac_lib in '' opagent; do
13393   if test -z "$ac_lib"; then
13394     ac_res="none required"
13395   else
13396     ac_res=-l$ac_lib
13397     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13398   fi
13399   rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403   *) ac_try_echo=$ac_try;;
13404 esac
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406   (eval "$ac_link") 2>conftest.er1
13407   ac_status=$?
13408   grep -v '^ *+' conftest.er1 >conftest.err
13409   rm -f conftest.er1
13410   cat conftest.err >&5
13411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); } &&
13413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13414   { (case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_try") 2>&5
13420   ac_status=$?
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); }; } &&
13423          { ac_try='test -s conftest$ac_exeext'
13424   { (case "(($ac_try" in
13425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426   *) ac_try_echo=$ac_try;;
13427 esac
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429   (eval "$ac_try") 2>&5
13430   ac_status=$?
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); }; }; then
13433   ac_cv_search_op_open_agent=$ac_res
13434 else
13435   echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13437
13438
13439 fi
13440
13441 rm -f core conftest.err conftest.$ac_objext \
13442       conftest$ac_exeext
13443   if test "${ac_cv_search_op_open_agent+set}" = set; then
13444   break
13445 fi
13446 done
13447 if test "${ac_cv_search_op_open_agent+set}" = set; then
13448   :
13449 else
13450   ac_cv_search_op_open_agent=no
13451 fi
13452 rm conftest.$ac_ext
13453 LIBS=$ac_func_search_save_LIBS
13454 fi
13455 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13456 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13457 ac_res=$ac_cv_search_op_open_agent
13458 if test "$ac_res" != no; then
13459   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13460
13461 else
13462
13463           echo "Error! You need to have libopagent around."
13464           exit -1
13465
13466 fi
13467
13468         if test "${ac_cv_header_opagent_h+set}" = set; then
13469   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13470 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13471 if test "${ac_cv_header_opagent_h+set}" = set; then
13472   echo $ECHO_N "(cached) $ECHO_C" >&6
13473 fi
13474 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13475 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13476 else
13477   # Is the header compilable?
13478 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13479 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h.  */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h.  */
13486 $ac_includes_default
13487 #include <opagent.h>
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493   *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496   (eval "$ac_compile") 2>conftest.er1
13497   ac_status=$?
13498   grep -v '^ *+' conftest.er1 >conftest.err
13499   rm -f conftest.er1
13500   cat conftest.err >&5
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); } &&
13503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13504   { (case "(($ac_try" in
13505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506   *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509   (eval "$ac_try") 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; } &&
13513          { ac_try='test -s conftest.$ac_objext'
13514   { (case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_try") 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; }; then
13523   ac_header_compiler=yes
13524 else
13525   echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528         ac_header_compiler=no
13529 fi
13530
13531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13533 echo "${ECHO_T}$ac_header_compiler" >&6; }
13534
13535 # Is the header present?
13536 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13537 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544 #include <opagent.h>
13545 _ACEOF
13546 if { (ac_try="$ac_cpp conftest.$ac_ext"
13547 case "(($ac_try" in
13548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549   *) ac_try_echo=$ac_try;;
13550 esac
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13553   ac_status=$?
13554   grep -v '^ *+' conftest.er1 >conftest.err
13555   rm -f conftest.er1
13556   cat conftest.err >&5
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } >/dev/null; then
13559   if test -s conftest.err; then
13560     ac_cpp_err=$ac_c_preproc_warn_flag
13561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13562   else
13563     ac_cpp_err=
13564   fi
13565 else
13566   ac_cpp_err=yes
13567 fi
13568 if test -z "$ac_cpp_err"; then
13569   ac_header_preproc=yes
13570 else
13571   echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13573
13574   ac_header_preproc=no
13575 fi
13576
13577 rm -f conftest.err conftest.$ac_ext
13578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13579 echo "${ECHO_T}$ac_header_preproc" >&6; }
13580
13581 # So?  What about this header?
13582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13583   yes:no: )
13584     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13585 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13586     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13587 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13588     ac_header_preproc=yes
13589     ;;
13590   no:yes:* )
13591     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13592 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13593     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13594 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13595     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13596 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13597     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13598 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13599     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13600 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13601     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13602 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13603     ( cat <<\_ASBOX
13604 ## ------------------------------------ ##
13605 ## Report this to http://llvm.org/bugs/ ##
13606 ## ------------------------------------ ##
13607 _ASBOX
13608      ) | sed "s/^/$as_me: WARNING:     /" >&2
13609     ;;
13610 esac
13611 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13612 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13613 if test "${ac_cv_header_opagent_h+set}" = set; then
13614   echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616   ac_cv_header_opagent_h=$ac_header_preproc
13617 fi
13618 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13619 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13620
13621 fi
13622 if test $ac_cv_header_opagent_h = yes; then
13623   :
13624 else
13625
13626           echo "Error! You need to have opagent.h around."
13627           exit -1
13628
13629 fi
13630
13631
13632       fi
13633
13634 else
13635
13636       USE_OPROFILE=0
13637
13638
13639 fi
13640
13641
13642 cat >>confdefs.h <<_ACEOF
13643 #define USE_OPROFILE $USE_OPROFILE
13644 _ACEOF
13645
13646
13647
13648
13649
13650
13651
13652
13653 ac_header_dirent=no
13654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13655   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13656 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13657 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13659   echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661   cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667 #include <sys/types.h>
13668 #include <$ac_hdr>
13669
13670 int
13671 main ()
13672 {
13673 if ((DIR *) 0)
13674 return 0;
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (ac_try="$ac_compile"
13681 case "(($ac_try" in
13682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683   *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686   (eval "$ac_compile") 2>conftest.er1
13687   ac_status=$?
13688   grep -v '^ *+' conftest.er1 >conftest.err
13689   rm -f conftest.er1
13690   cat conftest.err >&5
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } &&
13693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694   { (case "(($ac_try" in
13695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696   *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699   (eval "$ac_try") 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; } &&
13703          { ac_try='test -s conftest.$ac_objext'
13704   { (case "(($ac_try" in
13705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706   *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709   (eval "$ac_try") 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; }; then
13713   eval "$as_ac_Header=yes"
13714 else
13715   echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718         eval "$as_ac_Header=no"
13719 fi
13720
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 fi
13723 ac_res=`eval echo '${'$as_ac_Header'}'`
13724                { echo "$as_me:$LINENO: result: $ac_res" >&5
13725 echo "${ECHO_T}$ac_res" >&6; }
13726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13727   cat >>confdefs.h <<_ACEOF
13728 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13729 _ACEOF
13730
13731 ac_header_dirent=$ac_hdr; break
13732 fi
13733
13734 done
13735 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13736 if test $ac_header_dirent = dirent.h; then
13737   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13738 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13739 if test "${ac_cv_search_opendir+set}" = set; then
13740   echo $ECHO_N "(cached) $ECHO_C" >&6
13741 else
13742   ac_func_search_save_LIBS=$LIBS
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h.  */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h.  */
13749
13750 /* Override any GCC internal prototype to avoid an error.
13751    Use char because int might match the return type of a GCC
13752    builtin and then its argument prototype would still apply.  */
13753 #ifdef __cplusplus
13754 extern "C"
13755 #endif
13756 char opendir ();
13757 int
13758 main ()
13759 {
13760 return opendir ();
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 for ac_lib in '' dir; do
13766   if test -z "$ac_lib"; then
13767     ac_res="none required"
13768   else
13769     ac_res=-l$ac_lib
13770     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13771   fi
13772   rm -f conftest.$ac_objext conftest$ac_exeext
13773 if { (ac_try="$ac_link"
13774 case "(($ac_try" in
13775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776   *) ac_try_echo=$ac_try;;
13777 esac
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779   (eval "$ac_link") 2>conftest.er1
13780   ac_status=$?
13781   grep -v '^ *+' conftest.er1 >conftest.err
13782   rm -f conftest.er1
13783   cat conftest.err >&5
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); } &&
13786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13787   { (case "(($ac_try" in
13788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789   *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792   (eval "$ac_try") 2>&5
13793   ac_status=$?
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); }; } &&
13796          { ac_try='test -s conftest$ac_exeext'
13797   { (case "(($ac_try" in
13798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799   *) ac_try_echo=$ac_try;;
13800 esac
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802   (eval "$ac_try") 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; }; then
13806   ac_cv_search_opendir=$ac_res
13807 else
13808   echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13810
13811
13812 fi
13813
13814 rm -f core conftest.err conftest.$ac_objext \
13815       conftest$ac_exeext
13816   if test "${ac_cv_search_opendir+set}" = set; then
13817   break
13818 fi
13819 done
13820 if test "${ac_cv_search_opendir+set}" = set; then
13821   :
13822 else
13823   ac_cv_search_opendir=no
13824 fi
13825 rm conftest.$ac_ext
13826 LIBS=$ac_func_search_save_LIBS
13827 fi
13828 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13829 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13830 ac_res=$ac_cv_search_opendir
13831 if test "$ac_res" != no; then
13832   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13833
13834 fi
13835
13836 else
13837   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13838 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13839 if test "${ac_cv_search_opendir+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   ac_func_search_save_LIBS=$LIBS
13843 cat >conftest.$ac_ext <<_ACEOF
13844 /* confdefs.h.  */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h.  */
13849
13850 /* Override any GCC internal prototype to avoid an error.
13851    Use char because int might match the return type of a GCC
13852    builtin and then its argument prototype would still apply.  */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char opendir ();
13857 int
13858 main ()
13859 {
13860 return opendir ();
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 for ac_lib in '' x; do
13866   if test -z "$ac_lib"; then
13867     ac_res="none required"
13868   else
13869     ac_res=-l$ac_lib
13870     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13871   fi
13872   rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (ac_try="$ac_link"
13874 case "(($ac_try" in
13875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876   *) ac_try_echo=$ac_try;;
13877 esac
13878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879   (eval "$ac_link") 2>conftest.er1
13880   ac_status=$?
13881   grep -v '^ *+' conftest.er1 >conftest.err
13882   rm -f conftest.er1
13883   cat conftest.err >&5
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); } &&
13886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13887   { (case "(($ac_try" in
13888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889   *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892   (eval "$ac_try") 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); }; } &&
13896          { ac_try='test -s conftest$ac_exeext'
13897   { (case "(($ac_try" in
13898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899   *) ac_try_echo=$ac_try;;
13900 esac
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902   (eval "$ac_try") 2>&5
13903   ac_status=$?
13904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905   (exit $ac_status); }; }; then
13906   ac_cv_search_opendir=$ac_res
13907 else
13908   echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13910
13911
13912 fi
13913
13914 rm -f core conftest.err conftest.$ac_objext \
13915       conftest$ac_exeext
13916   if test "${ac_cv_search_opendir+set}" = set; then
13917   break
13918 fi
13919 done
13920 if test "${ac_cv_search_opendir+set}" = set; then
13921   :
13922 else
13923   ac_cv_search_opendir=no
13924 fi
13925 rm conftest.$ac_ext
13926 LIBS=$ac_func_search_save_LIBS
13927 fi
13928 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13929 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13930 ac_res=$ac_cv_search_opendir
13931 if test "$ac_res" != no; then
13932   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13933
13934 fi
13935
13936 fi
13937
13938 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13939 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13940 if test "${ac_cv_header_mmap_anon+set}" = set; then
13941   echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943    ac_ext=c
13944 ac_cpp='$CPP $CPPFLAGS'
13945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13948
13949   cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h.  */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h.  */
13955 #include <sys/mman.h>
13956 #include <unistd.h>
13957 #include <fcntl.h>
13958 int
13959 main ()
13960 {
13961 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13962   ;
13963   return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970   *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973   (eval "$ac_compile") 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } &&
13980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981   { (case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986   (eval "$ac_try") 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }; } &&
13990          { ac_try='test -s conftest.$ac_objext'
13991   { (case "(($ac_try" in
13992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993   *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996   (eval "$ac_try") 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000   ac_cv_header_mmap_anon=yes
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005         ac_cv_header_mmap_anon=no
14006 fi
14007
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009   ac_ext=c
14010 ac_cpp='$CPP $CPPFLAGS'
14011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14014
14015
14016 fi
14017 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14018 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14019 if test "$ac_cv_header_mmap_anon" = yes; then
14020
14021 cat >>confdefs.h <<\_ACEOF
14022 #define HAVE_MMAP_ANONYMOUS 1
14023 _ACEOF
14024
14025 fi
14026
14027 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14028 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14029 if test "${ac_cv_header_stat_broken+set}" = set; then
14030   echo $ECHO_N "(cached) $ECHO_C" >&6
14031 else
14032   cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h.  */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h.  */
14038 #include <sys/types.h>
14039 #include <sys/stat.h>
14040
14041 #if defined S_ISBLK && defined S_IFDIR
14042 # if S_ISBLK (S_IFDIR)
14043 You lose.
14044 # endif
14045 #endif
14046
14047 #if defined S_ISBLK && defined S_IFCHR
14048 # if S_ISBLK (S_IFCHR)
14049 You lose.
14050 # endif
14051 #endif
14052
14053 #if defined S_ISLNK && defined S_IFREG
14054 # if S_ISLNK (S_IFREG)
14055 You lose.
14056 # endif
14057 #endif
14058
14059 #if defined S_ISSOCK && defined S_IFREG
14060 # if S_ISSOCK (S_IFREG)
14061 You lose.
14062 # endif
14063 #endif
14064
14065 _ACEOF
14066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14067   $EGREP "You lose" >/dev/null 2>&1; then
14068   ac_cv_header_stat_broken=yes
14069 else
14070   ac_cv_header_stat_broken=no
14071 fi
14072 rm -f conftest*
14073
14074 fi
14075 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14076 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14077 if test $ac_cv_header_stat_broken = yes; then
14078
14079 cat >>confdefs.h <<\_ACEOF
14080 #define STAT_MACROS_BROKEN 1
14081 _ACEOF
14082
14083 fi
14084
14085 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14086 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14087 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14088   echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090   cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096 #include <sys/types.h>
14097 #include <sys/wait.h>
14098 #ifndef WEXITSTATUS
14099 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14100 #endif
14101 #ifndef WIFEXITED
14102 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14103 #endif
14104
14105 int
14106 main ()
14107 {
14108   int s;
14109   wait (&s);
14110   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14111   ;
14112   return 0;
14113 }
14114 _ACEOF
14115 rm -f conftest.$ac_objext
14116 if { (ac_try="$ac_compile"
14117 case "(($ac_try" in
14118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119   *) ac_try_echo=$ac_try;;
14120 esac
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122   (eval "$ac_compile") 2>conftest.er1
14123   ac_status=$?
14124   grep -v '^ *+' conftest.er1 >conftest.err
14125   rm -f conftest.er1
14126   cat conftest.err >&5
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); } &&
14129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14130   { (case "(($ac_try" in
14131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132   *) ac_try_echo=$ac_try;;
14133 esac
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135   (eval "$ac_try") 2>&5
14136   ac_status=$?
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); }; } &&
14139          { ac_try='test -s conftest.$ac_objext'
14140   { (case "(($ac_try" in
14141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142   *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145   (eval "$ac_try") 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; }; then
14149   ac_cv_header_sys_wait_h=yes
14150 else
14151   echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14153
14154         ac_cv_header_sys_wait_h=no
14155 fi
14156
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 fi
14159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14160 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14161 if test $ac_cv_header_sys_wait_h = yes; then
14162
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_SYS_WAIT_H 1
14165 _ACEOF
14166
14167 fi
14168
14169 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14170 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14171 if test "${ac_cv_header_time+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180 #include <sys/types.h>
14181 #include <sys/time.h>
14182 #include <time.h>
14183
14184 int
14185 main ()
14186 {
14187 if ((struct tm *) 0)
14188 return 0;
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 rm -f conftest.$ac_objext
14194 if { (ac_try="$ac_compile"
14195 case "(($ac_try" in
14196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197   *) ac_try_echo=$ac_try;;
14198 esac
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200   (eval "$ac_compile") 2>conftest.er1
14201   ac_status=$?
14202   grep -v '^ *+' conftest.er1 >conftest.err
14203   rm -f conftest.er1
14204   cat conftest.err >&5
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); } &&
14207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14208   { (case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_try") 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }; } &&
14217          { ac_try='test -s conftest.$ac_objext'
14218   { (case "(($ac_try" in
14219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220   *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223   (eval "$ac_try") 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; }; then
14227   ac_cv_header_time=yes
14228 else
14229   echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232         ac_cv_header_time=no
14233 fi
14234
14235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14236 fi
14237 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14238 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14239 if test $ac_cv_header_time = yes; then
14240
14241 cat >>confdefs.h <<\_ACEOF
14242 #define TIME_WITH_SYS_TIME 1
14243 _ACEOF
14244
14245 fi
14246
14247
14248
14249
14250
14251
14252
14253
14254 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14255 do
14256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14258   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14261   echo $ECHO_N "(cached) $ECHO_C" >&6
14262 fi
14263 ac_res=`eval echo '${'$as_ac_Header'}'`
14264                { echo "$as_me:$LINENO: result: $ac_res" >&5
14265 echo "${ECHO_T}$ac_res" >&6; }
14266 else
14267   # Is the header compilable?
14268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14270 cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h.  */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h.  */
14276 $ac_includes_default
14277 #include <$ac_header>
14278 _ACEOF
14279 rm -f conftest.$ac_objext
14280 if { (ac_try="$ac_compile"
14281 case "(($ac_try" in
14282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283   *) ac_try_echo=$ac_try;;
14284 esac
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286   (eval "$ac_compile") 2>conftest.er1
14287   ac_status=$?
14288   grep -v '^ *+' conftest.er1 >conftest.err
14289   rm -f conftest.er1
14290   cat conftest.err >&5
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); } &&
14293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14294   { (case "(($ac_try" in
14295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296   *) ac_try_echo=$ac_try;;
14297 esac
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299   (eval "$ac_try") 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); }; } &&
14303          { ac_try='test -s conftest.$ac_objext'
14304   { (case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309   (eval "$ac_try") 2>&5
14310   ac_status=$?
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); }; }; then
14313   ac_header_compiler=yes
14314 else
14315   echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318         ac_header_compiler=no
14319 fi
14320
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14323 echo "${ECHO_T}$ac_header_compiler" >&6; }
14324
14325 # Is the header present?
14326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14328 cat >conftest.$ac_ext <<_ACEOF
14329 /* confdefs.h.  */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h.  */
14334 #include <$ac_header>
14335 _ACEOF
14336 if { (ac_try="$ac_cpp conftest.$ac_ext"
14337 case "(($ac_try" in
14338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339   *) ac_try_echo=$ac_try;;
14340 esac
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14343   ac_status=$?
14344   grep -v '^ *+' conftest.er1 >conftest.err
14345   rm -f conftest.er1
14346   cat conftest.err >&5
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); } >/dev/null; then
14349   if test -s conftest.err; then
14350     ac_cpp_err=$ac_c_preproc_warn_flag
14351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14352   else
14353     ac_cpp_err=
14354   fi
14355 else
14356   ac_cpp_err=yes
14357 fi
14358 if test -z "$ac_cpp_err"; then
14359   ac_header_preproc=yes
14360 else
14361   echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14363
14364   ac_header_preproc=no
14365 fi
14366
14367 rm -f conftest.err conftest.$ac_ext
14368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14369 echo "${ECHO_T}$ac_header_preproc" >&6; }
14370
14371 # So?  What about this header?
14372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14373   yes:no: )
14374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14378     ac_header_preproc=yes
14379     ;;
14380   no:yes:* )
14381     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14383     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14384 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14385     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14387     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14388 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14391     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14393     ( cat <<\_ASBOX
14394 ## ------------------------------------ ##
14395 ## Report this to http://llvm.org/bugs/ ##
14396 ## ------------------------------------ ##
14397 _ASBOX
14398      ) | sed "s/^/$as_me: WARNING:     /" >&2
14399     ;;
14400 esac
14401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14404   echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406   eval "$as_ac_Header=\$ac_header_preproc"
14407 fi
14408 ac_res=`eval echo '${'$as_ac_Header'}'`
14409                { echo "$as_me:$LINENO: result: $ac_res" >&5
14410 echo "${ECHO_T}$ac_res" >&6; }
14411
14412 fi
14413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14414   cat >>confdefs.h <<_ACEOF
14415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14416 _ACEOF
14417
14418 fi
14419
14420 done
14421
14422
14423
14424
14425
14426
14427
14428 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14429 do
14430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14432   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14435   echo $ECHO_N "(cached) $ECHO_C" >&6
14436 fi
14437 ac_res=`eval echo '${'$as_ac_Header'}'`
14438                { echo "$as_me:$LINENO: result: $ac_res" >&5
14439 echo "${ECHO_T}$ac_res" >&6; }
14440 else
14441   # Is the header compilable?
14442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h.  */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h.  */
14450 $ac_includes_default
14451 #include <$ac_header>
14452 _ACEOF
14453 rm -f conftest.$ac_objext
14454 if { (ac_try="$ac_compile"
14455 case "(($ac_try" in
14456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457   *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460   (eval "$ac_compile") 2>conftest.er1
14461   ac_status=$?
14462   grep -v '^ *+' conftest.er1 >conftest.err
14463   rm -f conftest.er1
14464   cat conftest.err >&5
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); } &&
14467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14468   { (case "(($ac_try" in
14469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470   *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473   (eval "$ac_try") 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); }; } &&
14477          { ac_try='test -s conftest.$ac_objext'
14478   { (case "(($ac_try" in
14479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480   *) ac_try_echo=$ac_try;;
14481 esac
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483   (eval "$ac_try") 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; }; then
14487   ac_header_compiler=yes
14488 else
14489   echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14491
14492         ac_header_compiler=no
14493 fi
14494
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14497 echo "${ECHO_T}$ac_header_compiler" >&6; }
14498
14499 # Is the header present?
14500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14502 cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h.  */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h.  */
14508 #include <$ac_header>
14509 _ACEOF
14510 if { (ac_try="$ac_cpp conftest.$ac_ext"
14511 case "(($ac_try" in
14512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513   *) ac_try_echo=$ac_try;;
14514 esac
14515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14517   ac_status=$?
14518   grep -v '^ *+' conftest.er1 >conftest.err
14519   rm -f conftest.er1
14520   cat conftest.err >&5
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); } >/dev/null; then
14523   if test -s conftest.err; then
14524     ac_cpp_err=$ac_c_preproc_warn_flag
14525     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14526   else
14527     ac_cpp_err=
14528   fi
14529 else
14530   ac_cpp_err=yes
14531 fi
14532 if test -z "$ac_cpp_err"; then
14533   ac_header_preproc=yes
14534 else
14535   echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14537
14538   ac_header_preproc=no
14539 fi
14540
14541 rm -f conftest.err conftest.$ac_ext
14542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14543 echo "${ECHO_T}$ac_header_preproc" >&6; }
14544
14545 # So?  What about this header?
14546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14547   yes:no: )
14548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14552     ac_header_preproc=yes
14553     ;;
14554   no:yes:* )
14555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14567     ( cat <<\_ASBOX
14568 ## ------------------------------------ ##
14569 ## Report this to http://llvm.org/bugs/ ##
14570 ## ------------------------------------ ##
14571 _ASBOX
14572      ) | sed "s/^/$as_me: WARNING:     /" >&2
14573     ;;
14574 esac
14575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14578   echo $ECHO_N "(cached) $ECHO_C" >&6
14579 else
14580   eval "$as_ac_Header=\$ac_header_preproc"
14581 fi
14582 ac_res=`eval echo '${'$as_ac_Header'}'`
14583                { echo "$as_me:$LINENO: result: $ac_res" >&5
14584 echo "${ECHO_T}$ac_res" >&6; }
14585
14586 fi
14587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14588   cat >>confdefs.h <<_ACEOF
14589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14590 _ACEOF
14591
14592 fi
14593
14594 done
14595
14596
14597
14598 for ac_header in utime.h windows.h
14599 do
14600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14602   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14605   echo $ECHO_N "(cached) $ECHO_C" >&6
14606 fi
14607 ac_res=`eval echo '${'$as_ac_Header'}'`
14608                { echo "$as_me:$LINENO: result: $ac_res" >&5
14609 echo "${ECHO_T}$ac_res" >&6; }
14610 else
14611   # Is the header compilable?
14612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h.  */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h.  */
14620 $ac_includes_default
14621 #include <$ac_header>
14622 _ACEOF
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627   *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630   (eval "$ac_compile") 2>conftest.er1
14631   ac_status=$?
14632   grep -v '^ *+' conftest.er1 >conftest.err
14633   rm -f conftest.er1
14634   cat conftest.err >&5
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } &&
14637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638   { (case "(($ac_try" in
14639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640   *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643   (eval "$ac_try") 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; } &&
14647          { ac_try='test -s conftest.$ac_objext'
14648   { (case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653   (eval "$ac_try") 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); }; }; then
14657   ac_header_compiler=yes
14658 else
14659   echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14661
14662         ac_header_compiler=no
14663 fi
14664
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14667 echo "${ECHO_T}$ac_header_compiler" >&6; }
14668
14669 # Is the header present?
14670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14672 cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678 #include <$ac_header>
14679 _ACEOF
14680 if { (ac_try="$ac_cpp conftest.$ac_ext"
14681 case "(($ac_try" in
14682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683   *) ac_try_echo=$ac_try;;
14684 esac
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14687   ac_status=$?
14688   grep -v '^ *+' conftest.er1 >conftest.err
14689   rm -f conftest.er1
14690   cat conftest.err >&5
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); } >/dev/null; then
14693   if test -s conftest.err; then
14694     ac_cpp_err=$ac_c_preproc_warn_flag
14695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14696   else
14697     ac_cpp_err=
14698   fi
14699 else
14700   ac_cpp_err=yes
14701 fi
14702 if test -z "$ac_cpp_err"; then
14703   ac_header_preproc=yes
14704 else
14705   echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708   ac_header_preproc=no
14709 fi
14710
14711 rm -f conftest.err conftest.$ac_ext
14712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14713 echo "${ECHO_T}$ac_header_preproc" >&6; }
14714
14715 # So?  What about this header?
14716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14717   yes:no: )
14718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14722     ac_header_preproc=yes
14723     ;;
14724   no:yes:* )
14725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14737     ( cat <<\_ASBOX
14738 ## ------------------------------------ ##
14739 ## Report this to http://llvm.org/bugs/ ##
14740 ## ------------------------------------ ##
14741 _ASBOX
14742      ) | sed "s/^/$as_me: WARNING:     /" >&2
14743     ;;
14744 esac
14745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14748   echo $ECHO_N "(cached) $ECHO_C" >&6
14749 else
14750   eval "$as_ac_Header=\$ac_header_preproc"
14751 fi
14752 ac_res=`eval echo '${'$as_ac_Header'}'`
14753                { echo "$as_me:$LINENO: result: $ac_res" >&5
14754 echo "${ECHO_T}$ac_res" >&6; }
14755
14756 fi
14757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14758   cat >>confdefs.h <<_ACEOF
14759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14760 _ACEOF
14761
14762 fi
14763
14764 done
14765
14766
14767
14768
14769
14770
14771 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14772 do
14773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14775   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14778   echo $ECHO_N "(cached) $ECHO_C" >&6
14779 fi
14780 ac_res=`eval echo '${'$as_ac_Header'}'`
14781                { echo "$as_me:$LINENO: result: $ac_res" >&5
14782 echo "${ECHO_T}$ac_res" >&6; }
14783 else
14784   # Is the header compilable?
14785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h.  */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h.  */
14793 $ac_includes_default
14794 #include <$ac_header>
14795 _ACEOF
14796 rm -f conftest.$ac_objext
14797 if { (ac_try="$ac_compile"
14798 case "(($ac_try" in
14799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800   *) ac_try_echo=$ac_try;;
14801 esac
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803   (eval "$ac_compile") 2>conftest.er1
14804   ac_status=$?
14805   grep -v '^ *+' conftest.er1 >conftest.err
14806   rm -f conftest.er1
14807   cat conftest.err >&5
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); } &&
14810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14811   { (case "(($ac_try" in
14812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813   *) ac_try_echo=$ac_try;;
14814 esac
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816   (eval "$ac_try") 2>&5
14817   ac_status=$?
14818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   (exit $ac_status); }; } &&
14820          { ac_try='test -s conftest.$ac_objext'
14821   { (case "(($ac_try" in
14822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823   *) ac_try_echo=$ac_try;;
14824 esac
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826   (eval "$ac_try") 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }; then
14830   ac_header_compiler=yes
14831 else
14832   echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835         ac_header_compiler=no
14836 fi
14837
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14840 echo "${ECHO_T}$ac_header_compiler" >&6; }
14841
14842 # Is the header present?
14843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h.  */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h.  */
14851 #include <$ac_header>
14852 _ACEOF
14853 if { (ac_try="$ac_cpp conftest.$ac_ext"
14854 case "(($ac_try" in
14855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856   *) ac_try_echo=$ac_try;;
14857 esac
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14860   ac_status=$?
14861   grep -v '^ *+' conftest.er1 >conftest.err
14862   rm -f conftest.er1
14863   cat conftest.err >&5
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); } >/dev/null; then
14866   if test -s conftest.err; then
14867     ac_cpp_err=$ac_c_preproc_warn_flag
14868     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14869   else
14870     ac_cpp_err=
14871   fi
14872 else
14873   ac_cpp_err=yes
14874 fi
14875 if test -z "$ac_cpp_err"; then
14876   ac_header_preproc=yes
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881   ac_header_preproc=no
14882 fi
14883
14884 rm -f conftest.err conftest.$ac_ext
14885 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14886 echo "${ECHO_T}$ac_header_preproc" >&6; }
14887
14888 # So?  What about this header?
14889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14890   yes:no: )
14891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14895     ac_header_preproc=yes
14896     ;;
14897   no:yes:* )
14898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14900     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14901 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14902     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14904     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14905 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14908     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14910     ( cat <<\_ASBOX
14911 ## ------------------------------------ ##
14912 ## Report this to http://llvm.org/bugs/ ##
14913 ## ------------------------------------ ##
14914 _ASBOX
14915      ) | sed "s/^/$as_me: WARNING:     /" >&2
14916     ;;
14917 esac
14918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923   eval "$as_ac_Header=\$ac_header_preproc"
14924 fi
14925 ac_res=`eval echo '${'$as_ac_Header'}'`
14926                { echo "$as_me:$LINENO: result: $ac_res" >&5
14927 echo "${ECHO_T}$ac_res" >&6; }
14928
14929 fi
14930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14931   cat >>confdefs.h <<_ACEOF
14932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14933 _ACEOF
14934
14935 fi
14936
14937 done
14938
14939
14940
14941
14942
14943 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14944 do
14945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14947   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14950   echo $ECHO_N "(cached) $ECHO_C" >&6
14951 fi
14952 ac_res=`eval echo '${'$as_ac_Header'}'`
14953                { echo "$as_me:$LINENO: result: $ac_res" >&5
14954 echo "${ECHO_T}$ac_res" >&6; }
14955 else
14956   # Is the header compilable?
14957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14959 cat >conftest.$ac_ext <<_ACEOF
14960 /* confdefs.h.  */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h.  */
14965 $ac_includes_default
14966 #include <$ac_header>
14967 _ACEOF
14968 rm -f conftest.$ac_objext
14969 if { (ac_try="$ac_compile"
14970 case "(($ac_try" in
14971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972   *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975   (eval "$ac_compile") 2>conftest.er1
14976   ac_status=$?
14977   grep -v '^ *+' conftest.er1 >conftest.err
14978   rm -f conftest.er1
14979   cat conftest.err >&5
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } &&
14982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14983   { (case "(($ac_try" in
14984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985   *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988   (eval "$ac_try") 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; } &&
14992          { ac_try='test -s conftest.$ac_objext'
14993   { (case "(($ac_try" in
14994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995   *) ac_try_echo=$ac_try;;
14996 esac
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998   (eval "$ac_try") 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); }; }; then
15002   ac_header_compiler=yes
15003 else
15004   echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15006
15007         ac_header_compiler=no
15008 fi
15009
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15012 echo "${ECHO_T}$ac_header_compiler" >&6; }
15013
15014 # Is the header present?
15015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h.  */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h.  */
15023 #include <$ac_header>
15024 _ACEOF
15025 if { (ac_try="$ac_cpp conftest.$ac_ext"
15026 case "(($ac_try" in
15027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028   *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15032   ac_status=$?
15033   grep -v '^ *+' conftest.er1 >conftest.err
15034   rm -f conftest.er1
15035   cat conftest.err >&5
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } >/dev/null; then
15038   if test -s conftest.err; then
15039     ac_cpp_err=$ac_c_preproc_warn_flag
15040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15041   else
15042     ac_cpp_err=
15043   fi
15044 else
15045   ac_cpp_err=yes
15046 fi
15047 if test -z "$ac_cpp_err"; then
15048   ac_header_preproc=yes
15049 else
15050   echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15052
15053   ac_header_preproc=no
15054 fi
15055
15056 rm -f conftest.err conftest.$ac_ext
15057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15058 echo "${ECHO_T}$ac_header_preproc" >&6; }
15059
15060 # So?  What about this header?
15061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15062   yes:no: )
15063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15067     ac_header_preproc=yes
15068     ;;
15069   no:yes:* )
15070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15072     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15073 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15074     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15076     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15077 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15080     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15082     ( cat <<\_ASBOX
15083 ## ------------------------------------ ##
15084 ## Report this to http://llvm.org/bugs/ ##
15085 ## ------------------------------------ ##
15086 _ASBOX
15087      ) | sed "s/^/$as_me: WARNING:     /" >&2
15088     ;;
15089 esac
15090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15093   echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15095   eval "$as_ac_Header=\$ac_header_preproc"
15096 fi
15097 ac_res=`eval echo '${'$as_ac_Header'}'`
15098                { echo "$as_me:$LINENO: result: $ac_res" >&5
15099 echo "${ECHO_T}$ac_res" >&6; }
15100
15101 fi
15102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15103   cat >>confdefs.h <<_ACEOF
15104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15105 _ACEOF
15106
15107 fi
15108
15109 done
15110
15111
15112 for ac_header in valgrind/valgrind.h
15113 do
15114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15119   echo $ECHO_N "(cached) $ECHO_C" >&6
15120 fi
15121 ac_res=`eval echo '${'$as_ac_Header'}'`
15122                { echo "$as_me:$LINENO: result: $ac_res" >&5
15123 echo "${ECHO_T}$ac_res" >&6; }
15124 else
15125   # Is the header compilable?
15126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134 $ac_includes_default
15135 #include <$ac_header>
15136 _ACEOF
15137 rm -f conftest.$ac_objext
15138 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15145   ac_status=$?
15146   grep -v '^ *+' conftest.er1 >conftest.err
15147   rm -f conftest.er1
15148   cat conftest.err >&5
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } &&
15151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15152   { (case "(($ac_try" in
15153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154   *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157   (eval "$ac_try") 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); }; } &&
15161          { ac_try='test -s conftest.$ac_objext'
15162   { (case "(($ac_try" in
15163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164   *) ac_try_echo=$ac_try;;
15165 esac
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167   (eval "$ac_try") 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); }; }; then
15171   ac_header_compiler=yes
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176         ac_header_compiler=no
15177 fi
15178
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15181 echo "${ECHO_T}$ac_header_compiler" >&6; }
15182
15183 # Is the header present?
15184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192 #include <$ac_header>
15193 _ACEOF
15194 if { (ac_try="$ac_cpp conftest.$ac_ext"
15195 case "(($ac_try" in
15196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197   *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15201   ac_status=$?
15202   grep -v '^ *+' conftest.er1 >conftest.err
15203   rm -f conftest.er1
15204   cat conftest.err >&5
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); } >/dev/null; then
15207   if test -s conftest.err; then
15208     ac_cpp_err=$ac_c_preproc_warn_flag
15209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15210   else
15211     ac_cpp_err=
15212   fi
15213 else
15214   ac_cpp_err=yes
15215 fi
15216 if test -z "$ac_cpp_err"; then
15217   ac_header_preproc=yes
15218 else
15219   echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15221
15222   ac_header_preproc=no
15223 fi
15224
15225 rm -f conftest.err conftest.$ac_ext
15226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15227 echo "${ECHO_T}$ac_header_preproc" >&6; }
15228
15229 # So?  What about this header?
15230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15231   yes:no: )
15232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15236     ac_header_preproc=yes
15237     ;;
15238   no:yes:* )
15239     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15241     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15242 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15243     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15245     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15246 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15249     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15251     ( cat <<\_ASBOX
15252 ## ------------------------------------ ##
15253 ## Report this to http://llvm.org/bugs/ ##
15254 ## ------------------------------------ ##
15255 _ASBOX
15256      ) | sed "s/^/$as_me: WARNING:     /" >&2
15257     ;;
15258 esac
15259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15262   echo $ECHO_N "(cached) $ECHO_C" >&6
15263 else
15264   eval "$as_ac_Header=\$ac_header_preproc"
15265 fi
15266 ac_res=`eval echo '${'$as_ac_Header'}'`
15267                { echo "$as_me:$LINENO: result: $ac_res" >&5
15268 echo "${ECHO_T}$ac_res" >&6; }
15269
15270 fi
15271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15272   cat >>confdefs.h <<_ACEOF
15273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15274 _ACEOF
15275
15276 fi
15277
15278 done
15279
15280
15281 for ac_header in fenv.h
15282 do
15283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15285   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 fi
15290 ac_res=`eval echo '${'$as_ac_Header'}'`
15291                { echo "$as_me:$LINENO: result: $ac_res" >&5
15292 echo "${ECHO_T}$ac_res" >&6; }
15293 else
15294   # Is the header compilable?
15295 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15297 cat >conftest.$ac_ext <<_ACEOF
15298 /* confdefs.h.  */
15299 _ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h.  */
15303 $ac_includes_default
15304 #include <$ac_header>
15305 _ACEOF
15306 rm -f conftest.$ac_objext
15307 if { (ac_try="$ac_compile"
15308 case "(($ac_try" in
15309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310   *) ac_try_echo=$ac_try;;
15311 esac
15312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313   (eval "$ac_compile") 2>conftest.er1
15314   ac_status=$?
15315   grep -v '^ *+' conftest.er1 >conftest.err
15316   rm -f conftest.er1
15317   cat conftest.err >&5
15318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319   (exit $ac_status); } &&
15320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15321   { (case "(($ac_try" in
15322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323   *) ac_try_echo=$ac_try;;
15324 esac
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326   (eval "$ac_try") 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); }; } &&
15330          { ac_try='test -s conftest.$ac_objext'
15331   { (case "(($ac_try" in
15332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333   *) ac_try_echo=$ac_try;;
15334 esac
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336   (eval "$ac_try") 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); }; }; then
15340   ac_header_compiler=yes
15341 else
15342   echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15344
15345         ac_header_compiler=no
15346 fi
15347
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15350 echo "${ECHO_T}$ac_header_compiler" >&6; }
15351
15352 # Is the header present?
15353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15355 cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h.  */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h.  */
15361 #include <$ac_header>
15362 _ACEOF
15363 if { (ac_try="$ac_cpp conftest.$ac_ext"
15364 case "(($ac_try" in
15365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366   *) ac_try_echo=$ac_try;;
15367 esac
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15370   ac_status=$?
15371   grep -v '^ *+' conftest.er1 >conftest.err
15372   rm -f conftest.er1
15373   cat conftest.err >&5
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); } >/dev/null; then
15376   if test -s conftest.err; then
15377     ac_cpp_err=$ac_c_preproc_warn_flag
15378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15379   else
15380     ac_cpp_err=
15381   fi
15382 else
15383   ac_cpp_err=yes
15384 fi
15385 if test -z "$ac_cpp_err"; then
15386   ac_header_preproc=yes
15387 else
15388   echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15390
15391   ac_header_preproc=no
15392 fi
15393
15394 rm -f conftest.err conftest.$ac_ext
15395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15396 echo "${ECHO_T}$ac_header_preproc" >&6; }
15397
15398 # So?  What about this header?
15399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15400   yes:no: )
15401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15405     ac_header_preproc=yes
15406     ;;
15407   no:yes:* )
15408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15420     ( cat <<\_ASBOX
15421 ## ------------------------------------ ##
15422 ## Report this to http://llvm.org/bugs/ ##
15423 ## ------------------------------------ ##
15424 _ASBOX
15425      ) | sed "s/^/$as_me: WARNING:     /" >&2
15426     ;;
15427 esac
15428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15431   echo $ECHO_N "(cached) $ECHO_C" >&6
15432 else
15433   eval "$as_ac_Header=\$ac_header_preproc"
15434 fi
15435 ac_res=`eval echo '${'$as_ac_Header'}'`
15436                { echo "$as_me:$LINENO: result: $ac_res" >&5
15437 echo "${ECHO_T}$ac_res" >&6; }
15438
15439 fi
15440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15441   cat >>confdefs.h <<_ACEOF
15442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15443 _ACEOF
15444
15445 fi
15446
15447 done
15448
15449 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15450
15451 for ac_header in pthread.h
15452 do
15453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458   echo $ECHO_N "(cached) $ECHO_C" >&6
15459 fi
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461                { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15463 else
15464   # Is the header compilable?
15465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15467 cat >conftest.$ac_ext <<_ACEOF
15468 /* confdefs.h.  */
15469 _ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h.  */
15473 $ac_includes_default
15474 #include <$ac_header>
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480   *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483   (eval "$ac_compile") 2>conftest.er1
15484   ac_status=$?
15485   grep -v '^ *+' conftest.er1 >conftest.err
15486   rm -f conftest.er1
15487   cat conftest.err >&5
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); } &&
15490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15491   { (case "(($ac_try" in
15492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493   *) ac_try_echo=$ac_try;;
15494 esac
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496   (eval "$ac_try") 2>&5
15497   ac_status=$?
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); }; } &&
15500          { ac_try='test -s conftest.$ac_objext'
15501   { (case "(($ac_try" in
15502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503   *) ac_try_echo=$ac_try;;
15504 esac
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506   (eval "$ac_try") 2>&5
15507   ac_status=$?
15508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509   (exit $ac_status); }; }; then
15510   ac_header_compiler=yes
15511 else
15512   echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15514
15515         ac_header_compiler=no
15516 fi
15517
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15520 echo "${ECHO_T}$ac_header_compiler" >&6; }
15521
15522 # Is the header present?
15523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 #include <$ac_header>
15532 _ACEOF
15533 if { (ac_try="$ac_cpp conftest.$ac_ext"
15534 case "(($ac_try" in
15535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536   *) ac_try_echo=$ac_try;;
15537 esac
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15540   ac_status=$?
15541   grep -v '^ *+' conftest.er1 >conftest.err
15542   rm -f conftest.er1
15543   cat conftest.err >&5
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); } >/dev/null; then
15546   if test -s conftest.err; then
15547     ac_cpp_err=$ac_c_preproc_warn_flag
15548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15549   else
15550     ac_cpp_err=
15551   fi
15552 else
15553   ac_cpp_err=yes
15554 fi
15555 if test -z "$ac_cpp_err"; then
15556   ac_header_preproc=yes
15557 else
15558   echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15560
15561   ac_header_preproc=no
15562 fi
15563
15564 rm -f conftest.err conftest.$ac_ext
15565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15566 echo "${ECHO_T}$ac_header_preproc" >&6; }
15567
15568 # So?  What about this header?
15569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15570   yes:no: )
15571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15575     ac_header_preproc=yes
15576     ;;
15577   no:yes:* )
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15590     ( cat <<\_ASBOX
15591 ## ------------------------------------ ##
15592 ## Report this to http://llvm.org/bugs/ ##
15593 ## ------------------------------------ ##
15594 _ASBOX
15595      ) | sed "s/^/$as_me: WARNING:     /" >&2
15596     ;;
15597 esac
15598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601   echo $ECHO_N "(cached) $ECHO_C" >&6
15602 else
15603   eval "$as_ac_Header=\$ac_header_preproc"
15604 fi
15605 ac_res=`eval echo '${'$as_ac_Header'}'`
15606                { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608
15609 fi
15610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15611   cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15613 _ACEOF
15614  HAVE_PTHREAD=1
15615
15616 else
15617   HAVE_PTHREAD=0
15618
15619 fi
15620
15621 done
15622
15623 else
15624   HAVE_PTHREAD=0
15625
15626 fi
15627
15628 if test "$llvm_cv_enable_libffi" = "yes" ; then
15629
15630
15631 for ac_header in ffi.h ffi/ffi.h
15632 do
15633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15635   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15638   echo $ECHO_N "(cached) $ECHO_C" >&6
15639 fi
15640 ac_res=`eval echo '${'$as_ac_Header'}'`
15641                { echo "$as_me:$LINENO: result: $ac_res" >&5
15642 echo "${ECHO_T}$ac_res" >&6; }
15643 else
15644   # Is the header compilable?
15645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h.  */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h.  */
15653 $ac_includes_default
15654 #include <$ac_header>
15655 _ACEOF
15656 rm -f conftest.$ac_objext
15657 if { (ac_try="$ac_compile"
15658 case "(($ac_try" in
15659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660   *) ac_try_echo=$ac_try;;
15661 esac
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663   (eval "$ac_compile") 2>conftest.er1
15664   ac_status=$?
15665   grep -v '^ *+' conftest.er1 >conftest.err
15666   rm -f conftest.er1
15667   cat conftest.err >&5
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); } &&
15670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15671   { (case "(($ac_try" in
15672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673   *) ac_try_echo=$ac_try;;
15674 esac
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676   (eval "$ac_try") 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); }; } &&
15680          { ac_try='test -s conftest.$ac_objext'
15681   { (case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_try") 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; }; then
15690   ac_header_compiler=yes
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695         ac_header_compiler=no
15696 fi
15697
15698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15700 echo "${ECHO_T}$ac_header_compiler" >&6; }
15701
15702 # Is the header present?
15703 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h.  */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h.  */
15711 #include <$ac_header>
15712 _ACEOF
15713 if { (ac_try="$ac_cpp conftest.$ac_ext"
15714 case "(($ac_try" in
15715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716   *) ac_try_echo=$ac_try;;
15717 esac
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15720   ac_status=$?
15721   grep -v '^ *+' conftest.er1 >conftest.err
15722   rm -f conftest.er1
15723   cat conftest.err >&5
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); } >/dev/null; then
15726   if test -s conftest.err; then
15727     ac_cpp_err=$ac_c_preproc_warn_flag
15728     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15729   else
15730     ac_cpp_err=
15731   fi
15732 else
15733   ac_cpp_err=yes
15734 fi
15735 if test -z "$ac_cpp_err"; then
15736   ac_header_preproc=yes
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741   ac_header_preproc=no
15742 fi
15743
15744 rm -f conftest.err conftest.$ac_ext
15745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15746 echo "${ECHO_T}$ac_header_preproc" >&6; }
15747
15748 # So?  What about this header?
15749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15750   yes:no: )
15751     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15755     ac_header_preproc=yes
15756     ;;
15757   no:yes:* )
15758     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15760     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15761 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15762     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15764     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15765 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15768     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15770     ( cat <<\_ASBOX
15771 ## ------------------------------------ ##
15772 ## Report this to http://llvm.org/bugs/ ##
15773 ## ------------------------------------ ##
15774 _ASBOX
15775      ) | sed "s/^/$as_me: WARNING:     /" >&2
15776     ;;
15777 esac
15778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15781   echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783   eval "$as_ac_Header=\$ac_header_preproc"
15784 fi
15785 ac_res=`eval echo '${'$as_ac_Header'}'`
15786                { echo "$as_me:$LINENO: result: $ac_res" >&5
15787 echo "${ECHO_T}$ac_res" >&6; }
15788
15789 fi
15790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15791   cat >>confdefs.h <<_ACEOF
15792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15793 _ACEOF
15794
15795 fi
15796
15797 done
15798
15799 fi
15800
15801
15802 for ac_header in CrashReporterClient.h
15803 do
15804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15806   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15809   echo $ECHO_N "(cached) $ECHO_C" >&6
15810 fi
15811 ac_res=`eval echo '${'$as_ac_Header'}'`
15812                { echo "$as_me:$LINENO: result: $ac_res" >&5
15813 echo "${ECHO_T}$ac_res" >&6; }
15814 else
15815   # Is the header compilable?
15816 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h.  */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h.  */
15824 $ac_includes_default
15825 #include <$ac_header>
15826 _ACEOF
15827 rm -f conftest.$ac_objext
15828 if { (ac_try="$ac_compile"
15829 case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_compile") 2>conftest.er1
15835   ac_status=$?
15836   grep -v '^ *+' conftest.er1 >conftest.err
15837   rm -f conftest.er1
15838   cat conftest.err >&5
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); } &&
15841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15842   { (case "(($ac_try" in
15843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844   *) ac_try_echo=$ac_try;;
15845 esac
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847   (eval "$ac_try") 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; } &&
15851          { ac_try='test -s conftest.$ac_objext'
15852   { (case "(($ac_try" in
15853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854   *) ac_try_echo=$ac_try;;
15855 esac
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857   (eval "$ac_try") 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }; }; then
15861   ac_header_compiler=yes
15862 else
15863   echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15865
15866         ac_header_compiler=no
15867 fi
15868
15869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15871 echo "${ECHO_T}$ac_header_compiler" >&6; }
15872
15873 # Is the header present?
15874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882 #include <$ac_header>
15883 _ACEOF
15884 if { (ac_try="$ac_cpp conftest.$ac_ext"
15885 case "(($ac_try" in
15886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887   *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15891   ac_status=$?
15892   grep -v '^ *+' conftest.er1 >conftest.err
15893   rm -f conftest.er1
15894   cat conftest.err >&5
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } >/dev/null; then
15897   if test -s conftest.err; then
15898     ac_cpp_err=$ac_c_preproc_warn_flag
15899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15900   else
15901     ac_cpp_err=
15902   fi
15903 else
15904   ac_cpp_err=yes
15905 fi
15906 if test -z "$ac_cpp_err"; then
15907   ac_header_preproc=yes
15908 else
15909   echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15911
15912   ac_header_preproc=no
15913 fi
15914
15915 rm -f conftest.err conftest.$ac_ext
15916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15917 echo "${ECHO_T}$ac_header_preproc" >&6; }
15918
15919 # So?  What about this header?
15920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15921   yes:no: )
15922     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15926     ac_header_preproc=yes
15927     ;;
15928   no:yes:* )
15929     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15931     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15932 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15933     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15935     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15936 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15939     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15941     ( cat <<\_ASBOX
15942 ## ------------------------------------ ##
15943 ## Report this to http://llvm.org/bugs/ ##
15944 ## ------------------------------------ ##
15945 _ASBOX
15946      ) | sed "s/^/$as_me: WARNING:     /" >&2
15947     ;;
15948 esac
15949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15952   echo $ECHO_N "(cached) $ECHO_C" >&6
15953 else
15954   eval "$as_ac_Header=\$ac_header_preproc"
15955 fi
15956 ac_res=`eval echo '${'$as_ac_Header'}'`
15957                { echo "$as_me:$LINENO: result: $ac_res" >&5
15958 echo "${ECHO_T}$ac_res" >&6; }
15959
15960 fi
15961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15962   cat >>confdefs.h <<_ACEOF
15963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15964 _ACEOF
15965
15966 fi
15967
15968 done
15969
15970
15971 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15972 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h.  */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h.  */
15979 extern const char *__crashreporter_info__;
15980       int main() {
15981         __crashreporter_info__ = "test";
15982         return 0;
15983       }
15984
15985 _ACEOF
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (ac_try="$ac_link"
15988 case "(($ac_try" in
15989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990   *) ac_try_echo=$ac_try;;
15991 esac
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993   (eval "$ac_link") 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } &&
16000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16001   { (case "(($ac_try" in
16002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003   *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006   (eval "$ac_try") 2>&5
16007   ac_status=$?
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); }; } &&
16010          { ac_try='test -s conftest$ac_exeext'
16011   { (case "(($ac_try" in
16012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013   *) ac_try_echo=$ac_try;;
16014 esac
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016   (eval "$ac_try") 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); }; }; then
16020   { echo "$as_me:$LINENO: result: yes" >&5
16021 echo "${ECHO_T}yes" >&6; }
16022
16023 cat >>confdefs.h <<\_ACEOF
16024 #define HAVE_CRASHREPORTER_INFO 1
16025 _ACEOF
16026
16027 else
16028   echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16030
16031         { echo "$as_me:$LINENO: result: no" >&5
16032 echo "${ECHO_T}no" >&6; }
16033
16034 cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_CRASHREPORTER_INFO 0
16036 _ACEOF
16037
16038 fi
16039
16040 rm -f core conftest.err conftest.$ac_objext \
16041       conftest$ac_exeext conftest.$ac_ext
16042
16043
16044
16045
16046   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16047 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16048 if test "${ac_cv_huge_val_sanity+set}" = set; then
16049   echo $ECHO_N "(cached) $ECHO_C" >&6
16050 else
16051
16052     ac_ext=cpp
16053 ac_cpp='$CXXCPP $CPPFLAGS'
16054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16057
16058     ac_save_CXXFLAGS=$CXXFLAGS
16059     CXXFLAGS=-pedantic
16060     if test "$cross_compiling" = yes; then
16061   ac_cv_huge_val_sanity=yes
16062 else
16063   cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h.  */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h.  */
16069 #include <math.h>
16070 int
16071 main ()
16072 {
16073 double x = HUGE_VAL; return x != x;
16074   ;
16075   return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest$ac_exeext
16079 if { (ac_try="$ac_link"
16080 case "(($ac_try" in
16081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082   *) ac_try_echo=$ac_try;;
16083 esac
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085   (eval "$ac_link") 2>&5
16086   ac_status=$?
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16089   { (case "(($ac_try" in
16090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091   *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094   (eval "$ac_try") 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); }; }; then
16098   ac_cv_huge_val_sanity=yes
16099 else
16100   echo "$as_me: program exited with status $ac_status" >&5
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104 ( exit $ac_status )
16105 ac_cv_huge_val_sanity=no
16106 fi
16107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16108 fi
16109
16110
16111     CXXFLAGS=$ac_save_CXXFLAGS
16112     ac_ext=c
16113 ac_cpp='$CPP $CPPFLAGS'
16114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16117
16118
16119 fi
16120 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16121 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16122   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16123
16124
16125 { echo "$as_me:$LINENO: checking for pid_t" >&5
16126 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16127 if test "${ac_cv_type_pid_t+set}" = set; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130   cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h.  */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h.  */
16136 $ac_includes_default
16137 typedef pid_t ac__type_new_;
16138 int
16139 main ()
16140 {
16141 if ((ac__type_new_ *) 0)
16142   return 0;
16143 if (sizeof (ac__type_new_))
16144   return 0;
16145   ;
16146   return 0;
16147 }
16148 _ACEOF
16149 rm -f conftest.$ac_objext
16150 if { (ac_try="$ac_compile"
16151 case "(($ac_try" in
16152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153   *) ac_try_echo=$ac_try;;
16154 esac
16155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156   (eval "$ac_compile") 2>conftest.er1
16157   ac_status=$?
16158   grep -v '^ *+' conftest.er1 >conftest.err
16159   rm -f conftest.er1
16160   cat conftest.err >&5
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); } &&
16163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16164   { (case "(($ac_try" in
16165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166   *) ac_try_echo=$ac_try;;
16167 esac
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169   (eval "$ac_try") 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; } &&
16173          { ac_try='test -s conftest.$ac_objext'
16174   { (case "(($ac_try" in
16175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176   *) ac_try_echo=$ac_try;;
16177 esac
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179   (eval "$ac_try") 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); }; }; then
16183   ac_cv_type_pid_t=yes
16184 else
16185   echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16187
16188         ac_cv_type_pid_t=no
16189 fi
16190
16191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192 fi
16193 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16194 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16195 if test $ac_cv_type_pid_t = yes; then
16196   :
16197 else
16198
16199 cat >>confdefs.h <<_ACEOF
16200 #define pid_t int
16201 _ACEOF
16202
16203 fi
16204
16205 { echo "$as_me:$LINENO: checking for size_t" >&5
16206 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16207 if test "${ac_cv_type_size_t+set}" = set; then
16208   echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210   cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h.  */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h.  */
16216 $ac_includes_default
16217 typedef size_t ac__type_new_;
16218 int
16219 main ()
16220 {
16221 if ((ac__type_new_ *) 0)
16222   return 0;
16223 if (sizeof (ac__type_new_))
16224   return 0;
16225   ;
16226   return 0;
16227 }
16228 _ACEOF
16229 rm -f conftest.$ac_objext
16230 if { (ac_try="$ac_compile"
16231 case "(($ac_try" in
16232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233   *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236   (eval "$ac_compile") 2>conftest.er1
16237   ac_status=$?
16238   grep -v '^ *+' conftest.er1 >conftest.err
16239   rm -f conftest.er1
16240   cat conftest.err >&5
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); } &&
16243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16244   { (case "(($ac_try" in
16245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246   *) ac_try_echo=$ac_try;;
16247 esac
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249   (eval "$ac_try") 2>&5
16250   ac_status=$?
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); }; } &&
16253          { ac_try='test -s conftest.$ac_objext'
16254   { (case "(($ac_try" in
16255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256   *) ac_try_echo=$ac_try;;
16257 esac
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259   (eval "$ac_try") 2>&5
16260   ac_status=$?
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); }; }; then
16263   ac_cv_type_size_t=yes
16264 else
16265   echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.$ac_ext >&5
16267
16268         ac_cv_type_size_t=no
16269 fi
16270
16271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272 fi
16273 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16274 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16275 if test $ac_cv_type_size_t = yes; then
16276   :
16277 else
16278
16279 cat >>confdefs.h <<_ACEOF
16280 #define size_t unsigned int
16281 _ACEOF
16282
16283 fi
16284
16285
16286 cat >>confdefs.h <<_ACEOF
16287 #define RETSIGTYPE void
16288 _ACEOF
16289
16290 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16291 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16292 if test "${ac_cv_struct_tm+set}" = set; then
16293   echo $ECHO_N "(cached) $ECHO_C" >&6
16294 else
16295   cat >conftest.$ac_ext <<_ACEOF
16296 /* confdefs.h.  */
16297 _ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h.  */
16301 #include <sys/types.h>
16302 #include <time.h>
16303
16304 int
16305 main ()
16306 {
16307 struct tm *tp; tp->tm_sec;
16308   ;
16309   return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext
16313 if { (ac_try="$ac_compile"
16314 case "(($ac_try" in
16315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316   *) ac_try_echo=$ac_try;;
16317 esac
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319   (eval "$ac_compile") 2>conftest.er1
16320   ac_status=$?
16321   grep -v '^ *+' conftest.er1 >conftest.err
16322   rm -f conftest.er1
16323   cat conftest.err >&5
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); } &&
16326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16327   { (case "(($ac_try" in
16328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329   *) ac_try_echo=$ac_try;;
16330 esac
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332   (eval "$ac_try") 2>&5
16333   ac_status=$?
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); }; } &&
16336          { ac_try='test -s conftest.$ac_objext'
16337   { (case "(($ac_try" in
16338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339   *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342   (eval "$ac_try") 2>&5
16343   ac_status=$?
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); }; }; then
16346   ac_cv_struct_tm=time.h
16347 else
16348   echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16350
16351         ac_cv_struct_tm=sys/time.h
16352 fi
16353
16354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16355 fi
16356 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16357 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16358 if test $ac_cv_struct_tm = sys/time.h; then
16359
16360 cat >>confdefs.h <<\_ACEOF
16361 #define TM_IN_SYS_TIME 1
16362 _ACEOF
16363
16364 fi
16365
16366 { echo "$as_me:$LINENO: checking for int64_t" >&5
16367 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16368 if test "${ac_cv_type_int64_t+set}" = set; then
16369   echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371   cat >conftest.$ac_ext <<_ACEOF
16372 /* confdefs.h.  */
16373 _ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h.  */
16377 $ac_includes_default
16378 typedef int64_t ac__type_new_;
16379 int
16380 main ()
16381 {
16382 if ((ac__type_new_ *) 0)
16383   return 0;
16384 if (sizeof (ac__type_new_))
16385   return 0;
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 rm -f conftest.$ac_objext
16391 if { (ac_try="$ac_compile"
16392 case "(($ac_try" in
16393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394   *) ac_try_echo=$ac_try;;
16395 esac
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397   (eval "$ac_compile") 2>conftest.er1
16398   ac_status=$?
16399   grep -v '^ *+' conftest.er1 >conftest.err
16400   rm -f conftest.er1
16401   cat conftest.err >&5
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); } &&
16404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16405   { (case "(($ac_try" in
16406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407   *) ac_try_echo=$ac_try;;
16408 esac
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410   (eval "$ac_try") 2>&5
16411   ac_status=$?
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); }; } &&
16414          { ac_try='test -s conftest.$ac_objext'
16415   { (case "(($ac_try" in
16416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417   *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420   (eval "$ac_try") 2>&5
16421   ac_status=$?
16422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423   (exit $ac_status); }; }; then
16424   ac_cv_type_int64_t=yes
16425 else
16426   echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16428
16429         ac_cv_type_int64_t=no
16430 fi
16431
16432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433 fi
16434 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16435 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16436 if test $ac_cv_type_int64_t = yes; then
16437
16438 cat >>confdefs.h <<_ACEOF
16439 #define HAVE_INT64_T 1
16440 _ACEOF
16441
16442
16443 else
16444   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16445 echo "$as_me: error: Type int64_t required but not found" >&2;}
16446    { (exit 1); exit 1; }; }
16447 fi
16448
16449 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16450 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16451 if test "${ac_cv_type_uint64_t+set}" = set; then
16452   echo $ECHO_N "(cached) $ECHO_C" >&6
16453 else
16454   cat >conftest.$ac_ext <<_ACEOF
16455 /* confdefs.h.  */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h.  */
16460 $ac_includes_default
16461 typedef uint64_t ac__type_new_;
16462 int
16463 main ()
16464 {
16465 if ((ac__type_new_ *) 0)
16466   return 0;
16467 if (sizeof (ac__type_new_))
16468   return 0;
16469   ;
16470   return 0;
16471 }
16472 _ACEOF
16473 rm -f conftest.$ac_objext
16474 if { (ac_try="$ac_compile"
16475 case "(($ac_try" in
16476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477   *) ac_try_echo=$ac_try;;
16478 esac
16479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480   (eval "$ac_compile") 2>conftest.er1
16481   ac_status=$?
16482   grep -v '^ *+' conftest.er1 >conftest.err
16483   rm -f conftest.er1
16484   cat conftest.err >&5
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); } &&
16487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16488   { (case "(($ac_try" in
16489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490   *) ac_try_echo=$ac_try;;
16491 esac
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493   (eval "$ac_try") 2>&5
16494   ac_status=$?
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); }; } &&
16497          { ac_try='test -s conftest.$ac_objext'
16498   { (case "(($ac_try" in
16499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500   *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503   (eval "$ac_try") 2>&5
16504   ac_status=$?
16505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); }; }; then
16507   ac_cv_type_uint64_t=yes
16508 else
16509   echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16511
16512         ac_cv_type_uint64_t=no
16513 fi
16514
16515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 fi
16517 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16518 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16519 if test $ac_cv_type_uint64_t = yes; then
16520
16521 cat >>confdefs.h <<_ACEOF
16522 #define HAVE_UINT64_T 1
16523 _ACEOF
16524
16525
16526 else
16527   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16528 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16529 if test "${ac_cv_type_u_int64_t+set}" = set; then
16530   echo $ECHO_N "(cached) $ECHO_C" >&6
16531 else
16532   cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538 $ac_includes_default
16539 typedef u_int64_t ac__type_new_;
16540 int
16541 main ()
16542 {
16543 if ((ac__type_new_ *) 0)
16544   return 0;
16545 if (sizeof (ac__type_new_))
16546   return 0;
16547   ;
16548   return 0;
16549 }
16550 _ACEOF
16551 rm -f conftest.$ac_objext
16552 if { (ac_try="$ac_compile"
16553 case "(($ac_try" in
16554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555   *) ac_try_echo=$ac_try;;
16556 esac
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558   (eval "$ac_compile") 2>conftest.er1
16559   ac_status=$?
16560   grep -v '^ *+' conftest.er1 >conftest.err
16561   rm -f conftest.er1
16562   cat conftest.err >&5
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); } &&
16565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16566   { (case "(($ac_try" in
16567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568   *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571   (eval "$ac_try") 2>&5
16572   ac_status=$?
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); }; } &&
16575          { ac_try='test -s conftest.$ac_objext'
16576   { (case "(($ac_try" in
16577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578   *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581   (eval "$ac_try") 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; }; then
16585   ac_cv_type_u_int64_t=yes
16586 else
16587   echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16589
16590         ac_cv_type_u_int64_t=no
16591 fi
16592
16593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594 fi
16595 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16596 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16597 if test $ac_cv_type_u_int64_t = yes; then
16598
16599 cat >>confdefs.h <<_ACEOF
16600 #define HAVE_U_INT64_T 1
16601 _ACEOF
16602
16603
16604 else
16605   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16606 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16607    { (exit 1); exit 1; }; }
16608 fi
16609
16610 fi
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16622 do
16623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16627   echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629   cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h.  */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h.  */
16635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16637 #define $ac_func innocuous_$ac_func
16638
16639 /* System header to define __stub macros and hopefully few prototypes,
16640     which can conflict with char $ac_func (); below.
16641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16642     <limits.h> exists even on freestanding compilers.  */
16643
16644 #ifdef __STDC__
16645 # include <limits.h>
16646 #else
16647 # include <assert.h>
16648 #endif
16649
16650 #undef $ac_func
16651
16652 /* Override any GCC internal prototype to avoid an error.
16653    Use char because int might match the return type of a GCC
16654    builtin and then its argument prototype would still apply.  */
16655 #ifdef __cplusplus
16656 extern "C"
16657 #endif
16658 char $ac_func ();
16659 /* The GNU C library defines this for functions which it implements
16660     to always fail with ENOSYS.  Some functions are actually named
16661     something starting with __ and the normal name is an alias.  */
16662 #if defined __stub_$ac_func || defined __stub___$ac_func
16663 choke me
16664 #endif
16665
16666 int
16667 main ()
16668 {
16669 return $ac_func ();
16670   ;
16671   return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (ac_try="$ac_link"
16676 case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_link") 2>conftest.er1
16682   ac_status=$?
16683   grep -v '^ *+' conftest.er1 >conftest.err
16684   rm -f conftest.er1
16685   cat conftest.err >&5
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); } &&
16688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16689   { (case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_try") 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); }; } &&
16698          { ac_try='test -s conftest$ac_exeext'
16699   { (case "(($ac_try" in
16700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701   *) ac_try_echo=$ac_try;;
16702 esac
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704   (eval "$ac_try") 2>&5
16705   ac_status=$?
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); }; }; then
16708   eval "$as_ac_var=yes"
16709 else
16710   echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16712
16713         eval "$as_ac_var=no"
16714 fi
16715
16716 rm -f core conftest.err conftest.$ac_objext \
16717       conftest$ac_exeext conftest.$ac_ext
16718 fi
16719 ac_res=`eval echo '${'$as_ac_var'}'`
16720                { echo "$as_me:$LINENO: result: $ac_res" >&5
16721 echo "${ECHO_T}$ac_res" >&6; }
16722 if test `eval echo '${'$as_ac_var'}'` = yes; then
16723   cat >>confdefs.h <<_ACEOF
16724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16725 _ACEOF
16726
16727 fi
16728 done
16729
16730
16731
16732
16733
16734 for ac_func in powf fmodf strtof round
16735 do
16736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16740   echo $ECHO_N "(cached) $ECHO_C" >&6
16741 else
16742   cat >conftest.$ac_ext <<_ACEOF
16743 /* confdefs.h.  */
16744 _ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h.  */
16748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16750 #define $ac_func innocuous_$ac_func
16751
16752 /* System header to define __stub macros and hopefully few prototypes,
16753     which can conflict with char $ac_func (); below.
16754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16755     <limits.h> exists even on freestanding compilers.  */
16756
16757 #ifdef __STDC__
16758 # include <limits.h>
16759 #else
16760 # include <assert.h>
16761 #endif
16762
16763 #undef $ac_func
16764
16765 /* Override any GCC internal prototype to avoid an error.
16766    Use char because int might match the return type of a GCC
16767    builtin and then its argument prototype would still apply.  */
16768 #ifdef __cplusplus
16769 extern "C"
16770 #endif
16771 char $ac_func ();
16772 /* The GNU C library defines this for functions which it implements
16773     to always fail with ENOSYS.  Some functions are actually named
16774     something starting with __ and the normal name is an alias.  */
16775 #if defined __stub_$ac_func || defined __stub___$ac_func
16776 choke me
16777 #endif
16778
16779 int
16780 main ()
16781 {
16782 return $ac_func ();
16783   ;
16784   return 0;
16785 }
16786 _ACEOF
16787 rm -f conftest.$ac_objext conftest$ac_exeext
16788 if { (ac_try="$ac_link"
16789 case "(($ac_try" in
16790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791   *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794   (eval "$ac_link") 2>conftest.er1
16795   ac_status=$?
16796   grep -v '^ *+' conftest.er1 >conftest.err
16797   rm -f conftest.er1
16798   cat conftest.err >&5
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); } &&
16801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16802   { (case "(($ac_try" in
16803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804   *) ac_try_echo=$ac_try;;
16805 esac
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807   (eval "$ac_try") 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; } &&
16811          { ac_try='test -s conftest$ac_exeext'
16812   { (case "(($ac_try" in
16813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814   *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817   (eval "$ac_try") 2>&5
16818   ac_status=$?
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); }; }; then
16821   eval "$as_ac_var=yes"
16822 else
16823   echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16825
16826         eval "$as_ac_var=no"
16827 fi
16828
16829 rm -f core conftest.err conftest.$ac_objext \
16830       conftest$ac_exeext conftest.$ac_ext
16831 fi
16832 ac_res=`eval echo '${'$as_ac_var'}'`
16833                { echo "$as_me:$LINENO: result: $ac_res" >&5
16834 echo "${ECHO_T}$ac_res" >&6; }
16835 if test `eval echo '${'$as_ac_var'}'` = yes; then
16836   cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16838 _ACEOF
16839
16840 fi
16841 done
16842
16843
16844
16845
16846
16847
16848 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16849 do
16850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16854   echo $ECHO_N "(cached) $ECHO_C" >&6
16855 else
16856   cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h.  */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h.  */
16862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16864 #define $ac_func innocuous_$ac_func
16865
16866 /* System header to define __stub macros and hopefully few prototypes,
16867     which can conflict with char $ac_func (); below.
16868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16869     <limits.h> exists even on freestanding compilers.  */
16870
16871 #ifdef __STDC__
16872 # include <limits.h>
16873 #else
16874 # include <assert.h>
16875 #endif
16876
16877 #undef $ac_func
16878
16879 /* Override any GCC internal prototype to avoid an error.
16880    Use char because int might match the return type of a GCC
16881    builtin and then its argument prototype would still apply.  */
16882 #ifdef __cplusplus
16883 extern "C"
16884 #endif
16885 char $ac_func ();
16886 /* The GNU C library defines this for functions which it implements
16887     to always fail with ENOSYS.  Some functions are actually named
16888     something starting with __ and the normal name is an alias.  */
16889 #if defined __stub_$ac_func || defined __stub___$ac_func
16890 choke me
16891 #endif
16892
16893 int
16894 main ()
16895 {
16896 return $ac_func ();
16897   ;
16898   return 0;
16899 }
16900 _ACEOF
16901 rm -f conftest.$ac_objext conftest$ac_exeext
16902 if { (ac_try="$ac_link"
16903 case "(($ac_try" in
16904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16905   *) ac_try_echo=$ac_try;;
16906 esac
16907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16908   (eval "$ac_link") 2>conftest.er1
16909   ac_status=$?
16910   grep -v '^ *+' conftest.er1 >conftest.err
16911   rm -f conftest.er1
16912   cat conftest.err >&5
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); } &&
16915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16916   { (case "(($ac_try" in
16917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918   *) ac_try_echo=$ac_try;;
16919 esac
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921   (eval "$ac_try") 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); }; } &&
16925          { ac_try='test -s conftest$ac_exeext'
16926   { (case "(($ac_try" in
16927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928   *) ac_try_echo=$ac_try;;
16929 esac
16930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16931   (eval "$ac_try") 2>&5
16932   ac_status=$?
16933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934   (exit $ac_status); }; }; then
16935   eval "$as_ac_var=yes"
16936 else
16937   echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16939
16940         eval "$as_ac_var=no"
16941 fi
16942
16943 rm -f core conftest.err conftest.$ac_objext \
16944       conftest$ac_exeext conftest.$ac_ext
16945 fi
16946 ac_res=`eval echo '${'$as_ac_var'}'`
16947                { echo "$as_me:$LINENO: result: $ac_res" >&5
16948 echo "${ECHO_T}$ac_res" >&6; }
16949 if test `eval echo '${'$as_ac_var'}'` = yes; then
16950   cat >>confdefs.h <<_ACEOF
16951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16952 _ACEOF
16953
16954 fi
16955 done
16956
16957
16958
16959
16960 for ac_func in isatty mkdtemp mkstemp
16961 do
16962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16966   echo $ECHO_N "(cached) $ECHO_C" >&6
16967 else
16968   cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16976 #define $ac_func innocuous_$ac_func
16977
16978 /* System header to define __stub macros and hopefully few prototypes,
16979     which can conflict with char $ac_func (); below.
16980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16981     <limits.h> exists even on freestanding compilers.  */
16982
16983 #ifdef __STDC__
16984 # include <limits.h>
16985 #else
16986 # include <assert.h>
16987 #endif
16988
16989 #undef $ac_func
16990
16991 /* Override any GCC internal prototype to avoid an error.
16992    Use char because int might match the return type of a GCC
16993    builtin and then its argument prototype would still apply.  */
16994 #ifdef __cplusplus
16995 extern "C"
16996 #endif
16997 char $ac_func ();
16998 /* The GNU C library defines this for functions which it implements
16999     to always fail with ENOSYS.  Some functions are actually named
17000     something starting with __ and the normal name is an alias.  */
17001 #if defined __stub_$ac_func || defined __stub___$ac_func
17002 choke me
17003 #endif
17004
17005 int
17006 main ()
17007 {
17008 return $ac_func ();
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (ac_try="$ac_link"
17015 case "(($ac_try" in
17016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017   *) ac_try_echo=$ac_try;;
17018 esac
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020   (eval "$ac_link") 2>conftest.er1
17021   ac_status=$?
17022   grep -v '^ *+' conftest.er1 >conftest.err
17023   rm -f conftest.er1
17024   cat conftest.err >&5
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } &&
17027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17028   { (case "(($ac_try" in
17029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030   *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033   (eval "$ac_try") 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; } &&
17037          { ac_try='test -s conftest$ac_exeext'
17038   { (case "(($ac_try" in
17039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040   *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043   (eval "$ac_try") 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }; }; then
17047   eval "$as_ac_var=yes"
17048 else
17049   echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17051
17052         eval "$as_ac_var=no"
17053 fi
17054
17055 rm -f core conftest.err conftest.$ac_objext \
17056       conftest$ac_exeext conftest.$ac_ext
17057 fi
17058 ac_res=`eval echo '${'$as_ac_var'}'`
17059                { echo "$as_me:$LINENO: result: $ac_res" >&5
17060 echo "${ECHO_T}$ac_res" >&6; }
17061 if test `eval echo '${'$as_ac_var'}'` = yes; then
17062   cat >>confdefs.h <<_ACEOF
17063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17064 _ACEOF
17065
17066 fi
17067 done
17068
17069
17070
17071
17072
17073
17074
17075
17076 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17077 do
17078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17082   echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084   cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h.  */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h.  */
17090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17092 #define $ac_func innocuous_$ac_func
17093
17094 /* System header to define __stub macros and hopefully few prototypes,
17095     which can conflict with char $ac_func (); below.
17096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17097     <limits.h> exists even on freestanding compilers.  */
17098
17099 #ifdef __STDC__
17100 # include <limits.h>
17101 #else
17102 # include <assert.h>
17103 #endif
17104
17105 #undef $ac_func
17106
17107 /* Override any GCC internal prototype to avoid an error.
17108    Use char because int might match the return type of a GCC
17109    builtin and then its argument prototype would still apply.  */
17110 #ifdef __cplusplus
17111 extern "C"
17112 #endif
17113 char $ac_func ();
17114 /* The GNU C library defines this for functions which it implements
17115     to always fail with ENOSYS.  Some functions are actually named
17116     something starting with __ and the normal name is an alias.  */
17117 #if defined __stub_$ac_func || defined __stub___$ac_func
17118 choke me
17119 #endif
17120
17121 int
17122 main ()
17123 {
17124 return $ac_func ();
17125   ;
17126   return 0;
17127 }
17128 _ACEOF
17129 rm -f conftest.$ac_objext conftest$ac_exeext
17130 if { (ac_try="$ac_link"
17131 case "(($ac_try" in
17132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133   *) ac_try_echo=$ac_try;;
17134 esac
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136   (eval "$ac_link") 2>conftest.er1
17137   ac_status=$?
17138   grep -v '^ *+' conftest.er1 >conftest.err
17139   rm -f conftest.er1
17140   cat conftest.err >&5
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } &&
17143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17144   { (case "(($ac_try" in
17145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146   *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149   (eval "$ac_try") 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); }; } &&
17153          { ac_try='test -s conftest$ac_exeext'
17154   { (case "(($ac_try" in
17155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156   *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159   (eval "$ac_try") 2>&5
17160   ac_status=$?
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); }; }; then
17163   eval "$as_ac_var=yes"
17164 else
17165   echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17167
17168         eval "$as_ac_var=no"
17169 fi
17170
17171 rm -f core conftest.err conftest.$ac_objext \
17172       conftest$ac_exeext conftest.$ac_ext
17173 fi
17174 ac_res=`eval echo '${'$as_ac_var'}'`
17175                { echo "$as_me:$LINENO: result: $ac_res" >&5
17176 echo "${ECHO_T}$ac_res" >&6; }
17177 if test `eval echo '${'$as_ac_var'}'` = yes; then
17178   cat >>confdefs.h <<_ACEOF
17179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17180 _ACEOF
17181
17182 fi
17183 done
17184
17185
17186
17187
17188 for ac_func in strerror strerror_r setenv
17189 do
17190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17194   echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196   cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h.  */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h.  */
17202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17204 #define $ac_func innocuous_$ac_func
17205
17206 /* System header to define __stub macros and hopefully few prototypes,
17207     which can conflict with char $ac_func (); below.
17208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17209     <limits.h> exists even on freestanding compilers.  */
17210
17211 #ifdef __STDC__
17212 # include <limits.h>
17213 #else
17214 # include <assert.h>
17215 #endif
17216
17217 #undef $ac_func
17218
17219 /* Override any GCC internal prototype to avoid an error.
17220    Use char because int might match the return type of a GCC
17221    builtin and then its argument prototype would still apply.  */
17222 #ifdef __cplusplus
17223 extern "C"
17224 #endif
17225 char $ac_func ();
17226 /* The GNU C library defines this for functions which it implements
17227     to always fail with ENOSYS.  Some functions are actually named
17228     something starting with __ and the normal name is an alias.  */
17229 #if defined __stub_$ac_func || defined __stub___$ac_func
17230 choke me
17231 #endif
17232
17233 int
17234 main ()
17235 {
17236 return $ac_func ();
17237   ;
17238   return 0;
17239 }
17240 _ACEOF
17241 rm -f conftest.$ac_objext conftest$ac_exeext
17242 if { (ac_try="$ac_link"
17243 case "(($ac_try" in
17244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245   *) ac_try_echo=$ac_try;;
17246 esac
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248   (eval "$ac_link") 2>conftest.er1
17249   ac_status=$?
17250   grep -v '^ *+' conftest.er1 >conftest.err
17251   rm -f conftest.er1
17252   cat conftest.err >&5
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); } &&
17255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17256   { (case "(($ac_try" in
17257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258   *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261   (eval "$ac_try") 2>&5
17262   ac_status=$?
17263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264   (exit $ac_status); }; } &&
17265          { ac_try='test -s conftest$ac_exeext'
17266   { (case "(($ac_try" in
17267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268   *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271   (eval "$ac_try") 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; }; then
17275   eval "$as_ac_var=yes"
17276 else
17277   echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17279
17280         eval "$as_ac_var=no"
17281 fi
17282
17283 rm -f core conftest.err conftest.$ac_objext \
17284       conftest$ac_exeext conftest.$ac_ext
17285 fi
17286 ac_res=`eval echo '${'$as_ac_var'}'`
17287                { echo "$as_me:$LINENO: result: $ac_res" >&5
17288 echo "${ECHO_T}$ac_res" >&6; }
17289 if test `eval echo '${'$as_ac_var'}'` = yes; then
17290   cat >>confdefs.h <<_ACEOF
17291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17292 _ACEOF
17293
17294 fi
17295 done
17296
17297
17298
17299
17300
17301 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17302 do
17303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17307   echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309   cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h.  */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h.  */
17315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17317 #define $ac_func innocuous_$ac_func
17318
17319 /* System header to define __stub macros and hopefully few prototypes,
17320     which can conflict with char $ac_func (); below.
17321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17322     <limits.h> exists even on freestanding compilers.  */
17323
17324 #ifdef __STDC__
17325 # include <limits.h>
17326 #else
17327 # include <assert.h>
17328 #endif
17329
17330 #undef $ac_func
17331
17332 /* Override any GCC internal prototype to avoid an error.
17333    Use char because int might match the return type of a GCC
17334    builtin and then its argument prototype would still apply.  */
17335 #ifdef __cplusplus
17336 extern "C"
17337 #endif
17338 char $ac_func ();
17339 /* The GNU C library defines this for functions which it implements
17340     to always fail with ENOSYS.  Some functions are actually named
17341     something starting with __ and the normal name is an alias.  */
17342 #if defined __stub_$ac_func || defined __stub___$ac_func
17343 choke me
17344 #endif
17345
17346 int
17347 main ()
17348 {
17349 return $ac_func ();
17350   ;
17351   return 0;
17352 }
17353 _ACEOF
17354 rm -f conftest.$ac_objext conftest$ac_exeext
17355 if { (ac_try="$ac_link"
17356 case "(($ac_try" in
17357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358   *) ac_try_echo=$ac_try;;
17359 esac
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361   (eval "$ac_link") 2>conftest.er1
17362   ac_status=$?
17363   grep -v '^ *+' conftest.er1 >conftest.err
17364   rm -f conftest.er1
17365   cat conftest.err >&5
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); } &&
17368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17369   { (case "(($ac_try" in
17370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371   *) ac_try_echo=$ac_try;;
17372 esac
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374   (eval "$ac_try") 2>&5
17375   ac_status=$?
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); }; } &&
17378          { ac_try='test -s conftest$ac_exeext'
17379   { (case "(($ac_try" in
17380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381   *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384   (eval "$ac_try") 2>&5
17385   ac_status=$?
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); }; }; then
17388   eval "$as_ac_var=yes"
17389 else
17390   echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393         eval "$as_ac_var=no"
17394 fi
17395
17396 rm -f core conftest.err conftest.$ac_objext \
17397       conftest$ac_exeext conftest.$ac_ext
17398 fi
17399 ac_res=`eval echo '${'$as_ac_var'}'`
17400                { echo "$as_me:$LINENO: result: $ac_res" >&5
17401 echo "${ECHO_T}$ac_res" >&6; }
17402 if test `eval echo '${'$as_ac_var'}'` = yes; then
17403   cat >>confdefs.h <<_ACEOF
17404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17405 _ACEOF
17406
17407 fi
17408 done
17409
17410
17411
17412
17413
17414
17415 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17416 do
17417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17418 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17421   echo $ECHO_N "(cached) $ECHO_C" >&6
17422 else
17423   cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h.  */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h.  */
17429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17431 #define $ac_func innocuous_$ac_func
17432
17433 /* System header to define __stub macros and hopefully few prototypes,
17434     which can conflict with char $ac_func (); below.
17435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17436     <limits.h> exists even on freestanding compilers.  */
17437
17438 #ifdef __STDC__
17439 # include <limits.h>
17440 #else
17441 # include <assert.h>
17442 #endif
17443
17444 #undef $ac_func
17445
17446 /* Override any GCC internal prototype to avoid an error.
17447    Use char because int might match the return type of a GCC
17448    builtin and then its argument prototype would still apply.  */
17449 #ifdef __cplusplus
17450 extern "C"
17451 #endif
17452 char $ac_func ();
17453 /* The GNU C library defines this for functions which it implements
17454     to always fail with ENOSYS.  Some functions are actually named
17455     something starting with __ and the normal name is an alias.  */
17456 #if defined __stub_$ac_func || defined __stub___$ac_func
17457 choke me
17458 #endif
17459
17460 int
17461 main ()
17462 {
17463 return $ac_func ();
17464   ;
17465   return 0;
17466 }
17467 _ACEOF
17468 rm -f conftest.$ac_objext conftest$ac_exeext
17469 if { (ac_try="$ac_link"
17470 case "(($ac_try" in
17471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472   *) ac_try_echo=$ac_try;;
17473 esac
17474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475   (eval "$ac_link") 2>conftest.er1
17476   ac_status=$?
17477   grep -v '^ *+' conftest.er1 >conftest.err
17478   rm -f conftest.er1
17479   cat conftest.err >&5
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); } &&
17482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17483   { (case "(($ac_try" in
17484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485   *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488   (eval "$ac_try") 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); }; } &&
17492          { ac_try='test -s conftest$ac_exeext'
17493   { (case "(($ac_try" in
17494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495   *) ac_try_echo=$ac_try;;
17496 esac
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498   (eval "$ac_try") 2>&5
17499   ac_status=$?
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); }; }; then
17502   eval "$as_ac_var=yes"
17503 else
17504   echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507         eval "$as_ac_var=no"
17508 fi
17509
17510 rm -f core conftest.err conftest.$ac_objext \
17511       conftest$ac_exeext conftest.$ac_ext
17512 fi
17513 ac_res=`eval echo '${'$as_ac_var'}'`
17514                { echo "$as_me:$LINENO: result: $ac_res" >&5
17515 echo "${ECHO_T}$ac_res" >&6; }
17516 if test `eval echo '${'$as_ac_var'}'` = yes; then
17517   cat >>confdefs.h <<_ACEOF
17518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17519 _ACEOF
17520
17521 fi
17522 done
17523
17524 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17525 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17526 if test "${llvm_cv_c_printf_a+set}" = set; then
17527   echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529   ac_ext=c
17530 ac_cpp='$CPP $CPPFLAGS'
17531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17534
17535  if test "$cross_compiling" = yes; then
17536   llvmac_cv_c_printf_a=no
17537 else
17538   cat >conftest.$ac_ext <<_ACEOF
17539
17540   /* confdefs.h.  */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h.  */
17545
17546 #include <stdio.h>
17547 #include <stdlib.h>
17548
17549 int
17550 main ()
17551 {
17552
17553 volatile double A, B;
17554 char Buffer[100];
17555 A = 1;
17556 A /= 10.0;
17557 sprintf(Buffer, "%a", A);
17558 B = atof(Buffer);
17559 if (A != B)
17560   return (1);
17561 if (A != 0x1.999999999999ap-4)
17562   return (1);
17563 return (0);
17564   ;
17565   return 0;
17566 }
17567 _ACEOF
17568 rm -f conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575   (eval "$ac_link") 2>&5
17576   ac_status=$?
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17579   { (case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_try") 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; }; then
17588   llvm_cv_c_printf_a=yes
17589 else
17590   echo "$as_me: program exited with status $ac_status" >&5
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 ( exit $ac_status )
17595 llvmac_cv_c_printf_a=no
17596 fi
17597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17598 fi
17599
17600
17601  ac_ext=c
17602 ac_cpp='$CPP $CPPFLAGS'
17603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17606
17607 fi
17608 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17609 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17610  if test "$llvm_cv_c_printf_a" = "yes"; then
17611
17612 cat >>confdefs.h <<\_ACEOF
17613 #define HAVE_PRINTF_A 1
17614 _ACEOF
17615
17616  fi
17617
17618
17619 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17620 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17621 if test "${ac_cv_func_rand48+set}" = set; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624   ac_ext=cpp
17625 ac_cpp='$CXXCPP $CPPFLAGS'
17626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17629
17630    cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h.  */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h.  */
17636 #include <stdlib.h>
17637 int
17638 main ()
17639 {
17640 srand48(0);lrand48();drand48();
17641   ;
17642   return 0;
17643 }
17644 _ACEOF
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649   *) ac_try_echo=$ac_try;;
17650 esac
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652   (eval "$ac_compile") 2>conftest.er1
17653   ac_status=$?
17654   grep -v '^ *+' conftest.er1 >conftest.err
17655   rm -f conftest.er1
17656   cat conftest.err >&5
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } &&
17659          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17660   { (case "(($ac_try" in
17661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662   *) ac_try_echo=$ac_try;;
17663 esac
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665   (eval "$ac_try") 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); }; } &&
17669          { ac_try='test -s conftest.$ac_objext'
17670   { (case "(($ac_try" in
17671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672   *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675   (eval "$ac_try") 2>&5
17676   ac_status=$?
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); }; }; then
17679   ac_cv_func_rand48=yes
17680 else
17681   echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684         ac_cv_func_rand48=no
17685 fi
17686
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688   ac_ext=c
17689 ac_cpp='$CPP $CPPFLAGS'
17690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17693
17694 fi
17695 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17696 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17697
17698 if test "$ac_cv_func_rand48" = "yes" ; then
17699
17700 cat >>confdefs.h <<\_ACEOF
17701 #define HAVE_RAND48 1
17702 _ACEOF
17703
17704 fi
17705
17706
17707 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17708 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17709 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17710   echo $ECHO_N "(cached) $ECHO_C" >&6
17711 else
17712   cat >conftest.$ac_ext <<_ACEOF
17713 /* confdefs.h.  */
17714 _ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h.  */
17718 $ac_includes_default
17719 int
17720 main ()
17721 {
17722 #ifndef strerror_s
17723   char *p = (char *) strerror_s;
17724   return !p;
17725 #endif
17726
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext
17732 if { (ac_try="$ac_compile"
17733 case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_compile") 2>conftest.er1
17739   ac_status=$?
17740   grep -v '^ *+' conftest.er1 >conftest.err
17741   rm -f conftest.er1
17742   cat conftest.err >&5
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); } &&
17745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17746   { (case "(($ac_try" in
17747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748   *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751   (eval "$ac_try") 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; } &&
17755          { ac_try='test -s conftest.$ac_objext'
17756   { (case "(($ac_try" in
17757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758   *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761   (eval "$ac_try") 2>&5
17762   ac_status=$?
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; }; then
17765   ac_cv_have_decl_strerror_s=yes
17766 else
17767   echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17769
17770         ac_cv_have_decl_strerror_s=no
17771 fi
17772
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774 fi
17775 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17776 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17777 if test $ac_cv_have_decl_strerror_s = yes; then
17778
17779 cat >>confdefs.h <<_ACEOF
17780 #define HAVE_DECL_STRERROR_S 1
17781 _ACEOF
17782
17783
17784 else
17785   cat >>confdefs.h <<_ACEOF
17786 #define HAVE_DECL_STRERROR_S 0
17787 _ACEOF
17788
17789
17790 fi
17791
17792
17793
17794 if test "$llvm_cv_os_type" = "MingW" ; then
17795   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17796 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17797 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17798   echo $ECHO_N "(cached) $ECHO_C" >&6
17799 else
17800   ac_check_lib_save_LIBS=$LIBS
17801 LIBS="-lgcc  $LIBS"
17802 cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h.  */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h.  */
17808
17809 /* Override any GCC internal prototype to avoid an error.
17810    Use char because int might match the return type of a GCC
17811    builtin and then its argument prototype would still apply.  */
17812 #ifdef __cplusplus
17813 extern "C"
17814 #endif
17815 char _alloca ();
17816 int
17817 main ()
17818 {
17819 return _alloca ();
17820   ;
17821   return 0;
17822 }
17823 _ACEOF
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831   (eval "$ac_link") 2>conftest.er1
17832   ac_status=$?
17833   grep -v '^ *+' conftest.er1 >conftest.err
17834   rm -f conftest.er1
17835   cat conftest.err >&5
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); } &&
17838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17839   { (case "(($ac_try" in
17840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841   *) ac_try_echo=$ac_try;;
17842 esac
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844   (eval "$ac_try") 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); }; } &&
17848          { ac_try='test -s conftest$ac_exeext'
17849   { (case "(($ac_try" in
17850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851   *) ac_try_echo=$ac_try;;
17852 esac
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854   (eval "$ac_try") 2>&5
17855   ac_status=$?
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); }; }; then
17858   ac_cv_lib_gcc__alloca=yes
17859 else
17860   echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17862
17863         ac_cv_lib_gcc__alloca=no
17864 fi
17865
17866 rm -f core conftest.err conftest.$ac_objext \
17867       conftest$ac_exeext conftest.$ac_ext
17868 LIBS=$ac_check_lib_save_LIBS
17869 fi
17870 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17871 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17872 if test $ac_cv_lib_gcc__alloca = yes; then
17873
17874 cat >>confdefs.h <<\_ACEOF
17875 #define HAVE__ALLOCA 1
17876 _ACEOF
17877
17878 fi
17879
17880   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17881 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17882 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17883   echo $ECHO_N "(cached) $ECHO_C" >&6
17884 else
17885   ac_check_lib_save_LIBS=$LIBS
17886 LIBS="-lgcc  $LIBS"
17887 cat >conftest.$ac_ext <<_ACEOF
17888 /* confdefs.h.  */
17889 _ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h.  */
17893
17894 /* Override any GCC internal prototype to avoid an error.
17895    Use char because int might match the return type of a GCC
17896    builtin and then its argument prototype would still apply.  */
17897 #ifdef __cplusplus
17898 extern "C"
17899 #endif
17900 char __alloca ();
17901 int
17902 main ()
17903 {
17904 return __alloca ();
17905   ;
17906   return 0;
17907 }
17908 _ACEOF
17909 rm -f conftest.$ac_objext conftest$ac_exeext
17910 if { (ac_try="$ac_link"
17911 case "(($ac_try" in
17912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913   *) ac_try_echo=$ac_try;;
17914 esac
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916   (eval "$ac_link") 2>conftest.er1
17917   ac_status=$?
17918   grep -v '^ *+' conftest.er1 >conftest.err
17919   rm -f conftest.er1
17920   cat conftest.err >&5
17921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922   (exit $ac_status); } &&
17923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17924   { (case "(($ac_try" in
17925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926   *) ac_try_echo=$ac_try;;
17927 esac
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929   (eval "$ac_try") 2>&5
17930   ac_status=$?
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); }; } &&
17933          { ac_try='test -s conftest$ac_exeext'
17934   { (case "(($ac_try" in
17935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936   *) ac_try_echo=$ac_try;;
17937 esac
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939   (eval "$ac_try") 2>&5
17940   ac_status=$?
17941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942   (exit $ac_status); }; }; then
17943   ac_cv_lib_gcc___alloca=yes
17944 else
17945   echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17947
17948         ac_cv_lib_gcc___alloca=no
17949 fi
17950
17951 rm -f core conftest.err conftest.$ac_objext \
17952       conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17954 fi
17955 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17956 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17957 if test $ac_cv_lib_gcc___alloca = yes; then
17958
17959 cat >>confdefs.h <<\_ACEOF
17960 #define HAVE___ALLOCA 1
17961 _ACEOF
17962
17963 fi
17964
17965   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17966 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17967 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17968   echo $ECHO_N "(cached) $ECHO_C" >&6
17969 else
17970   ac_check_lib_save_LIBS=$LIBS
17971 LIBS="-lgcc  $LIBS"
17972 cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h.  */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h.  */
17978
17979 /* Override any GCC internal prototype to avoid an error.
17980    Use char because int might match the return type of a GCC
17981    builtin and then its argument prototype would still apply.  */
17982 #ifdef __cplusplus
17983 extern "C"
17984 #endif
17985 char __chkstk ();
17986 int
17987 main ()
17988 {
17989 return __chkstk ();
17990   ;
17991   return 0;
17992 }
17993 _ACEOF
17994 rm -f conftest.$ac_objext conftest$ac_exeext
17995 if { (ac_try="$ac_link"
17996 case "(($ac_try" in
17997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998   *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001   (eval "$ac_link") 2>conftest.er1
18002   ac_status=$?
18003   grep -v '^ *+' conftest.er1 >conftest.err
18004   rm -f conftest.er1
18005   cat conftest.err >&5
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); } &&
18008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18009   { (case "(($ac_try" in
18010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011   *) ac_try_echo=$ac_try;;
18012 esac
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014   (eval "$ac_try") 2>&5
18015   ac_status=$?
18016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017   (exit $ac_status); }; } &&
18018          { ac_try='test -s conftest$ac_exeext'
18019   { (case "(($ac_try" in
18020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021   *) ac_try_echo=$ac_try;;
18022 esac
18023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024   (eval "$ac_try") 2>&5
18025   ac_status=$?
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); }; }; then
18028   ac_cv_lib_gcc___chkstk=yes
18029 else
18030   echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18032
18033         ac_cv_lib_gcc___chkstk=no
18034 fi
18035
18036 rm -f core conftest.err conftest.$ac_objext \
18037       conftest$ac_exeext conftest.$ac_ext
18038 LIBS=$ac_check_lib_save_LIBS
18039 fi
18040 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18041 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18042 if test $ac_cv_lib_gcc___chkstk = yes; then
18043
18044 cat >>confdefs.h <<\_ACEOF
18045 #define HAVE___CHKSTK 1
18046 _ACEOF
18047
18048 fi
18049
18050   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18051 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18052 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18053   echo $ECHO_N "(cached) $ECHO_C" >&6
18054 else
18055   ac_check_lib_save_LIBS=$LIBS
18056 LIBS="-lgcc  $LIBS"
18057 cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h.  */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h.  */
18063
18064 /* Override any GCC internal prototype to avoid an error.
18065    Use char because int might match the return type of a GCC
18066    builtin and then its argument prototype would still apply.  */
18067 #ifdef __cplusplus
18068 extern "C"
18069 #endif
18070 char ___chkstk ();
18071 int
18072 main ()
18073 {
18074 return ___chkstk ();
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest.$ac_objext conftest$ac_exeext
18080 if { (ac_try="$ac_link"
18081 case "(($ac_try" in
18082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083   *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086   (eval "$ac_link") 2>conftest.er1
18087   ac_status=$?
18088   grep -v '^ *+' conftest.er1 >conftest.err
18089   rm -f conftest.er1
18090   cat conftest.err >&5
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); } &&
18093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18094   { (case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_try") 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); }; } &&
18103          { ac_try='test -s conftest$ac_exeext'
18104   { (case "(($ac_try" in
18105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106   *) ac_try_echo=$ac_try;;
18107 esac
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109   (eval "$ac_try") 2>&5
18110   ac_status=$?
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); }; }; then
18113   ac_cv_lib_gcc____chkstk=yes
18114 else
18115   echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18117
18118         ac_cv_lib_gcc____chkstk=no
18119 fi
18120
18121 rm -f core conftest.err conftest.$ac_objext \
18122       conftest$ac_exeext conftest.$ac_ext
18123 LIBS=$ac_check_lib_save_LIBS
18124 fi
18125 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18126 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18127 if test $ac_cv_lib_gcc____chkstk = yes; then
18128
18129 cat >>confdefs.h <<\_ACEOF
18130 #define HAVE____CHKSTK 1
18131 _ACEOF
18132
18133 fi
18134
18135
18136   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18137 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18138 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18139   echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141   ac_check_lib_save_LIBS=$LIBS
18142 LIBS="-lgcc  $LIBS"
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h.  */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h.  */
18149
18150 /* Override any GCC internal prototype to avoid an error.
18151    Use char because int might match the return type of a GCC
18152    builtin and then its argument prototype would still apply.  */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char __ashldi3 ();
18157 int
18158 main ()
18159 {
18160 return __ashldi3 ();
18161   ;
18162   return 0;
18163 }
18164 _ACEOF
18165 rm -f conftest.$ac_objext conftest$ac_exeext
18166 if { (ac_try="$ac_link"
18167 case "(($ac_try" in
18168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169   *) ac_try_echo=$ac_try;;
18170 esac
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172   (eval "$ac_link") 2>conftest.er1
18173   ac_status=$?
18174   grep -v '^ *+' conftest.er1 >conftest.err
18175   rm -f conftest.er1
18176   cat conftest.err >&5
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } &&
18179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18180   { (case "(($ac_try" in
18181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182   *) ac_try_echo=$ac_try;;
18183 esac
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185   (eval "$ac_try") 2>&5
18186   ac_status=$?
18187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188   (exit $ac_status); }; } &&
18189          { ac_try='test -s conftest$ac_exeext'
18190   { (case "(($ac_try" in
18191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192   *) ac_try_echo=$ac_try;;
18193 esac
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195   (eval "$ac_try") 2>&5
18196   ac_status=$?
18197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198   (exit $ac_status); }; }; then
18199   ac_cv_lib_gcc___ashldi3=yes
18200 else
18201   echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18203
18204         ac_cv_lib_gcc___ashldi3=no
18205 fi
18206
18207 rm -f core conftest.err conftest.$ac_objext \
18208       conftest$ac_exeext conftest.$ac_ext
18209 LIBS=$ac_check_lib_save_LIBS
18210 fi
18211 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18212 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18213 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18214
18215 cat >>confdefs.h <<\_ACEOF
18216 #define HAVE___ASHLDI3 1
18217 _ACEOF
18218
18219 fi
18220
18221   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18222 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18223 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18224   echo $ECHO_N "(cached) $ECHO_C" >&6
18225 else
18226   ac_check_lib_save_LIBS=$LIBS
18227 LIBS="-lgcc  $LIBS"
18228 cat >conftest.$ac_ext <<_ACEOF
18229 /* confdefs.h.  */
18230 _ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h.  */
18234
18235 /* Override any GCC internal prototype to avoid an error.
18236    Use char because int might match the return type of a GCC
18237    builtin and then its argument prototype would still apply.  */
18238 #ifdef __cplusplus
18239 extern "C"
18240 #endif
18241 char __ashrdi3 ();
18242 int
18243 main ()
18244 {
18245 return __ashrdi3 ();
18246   ;
18247   return 0;
18248 }
18249 _ACEOF
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254   *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257   (eval "$ac_link") 2>conftest.er1
18258   ac_status=$?
18259   grep -v '^ *+' conftest.er1 >conftest.err
18260   rm -f conftest.er1
18261   cat conftest.err >&5
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); } &&
18264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265   { (case "(($ac_try" in
18266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267   *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270   (eval "$ac_try") 2>&5
18271   ac_status=$?
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); }; } &&
18274          { ac_try='test -s conftest$ac_exeext'
18275   { (case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_try") 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); }; }; then
18284   ac_cv_lib_gcc___ashrdi3=yes
18285 else
18286   echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289         ac_cv_lib_gcc___ashrdi3=no
18290 fi
18291
18292 rm -f core conftest.err conftest.$ac_objext \
18293       conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_check_lib_save_LIBS
18295 fi
18296 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18297 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18298 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18299
18300 cat >>confdefs.h <<\_ACEOF
18301 #define HAVE___ASHRDI3 1
18302 _ACEOF
18303
18304 fi
18305
18306   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18307 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18308 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18309   echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311   ac_check_lib_save_LIBS=$LIBS
18312 LIBS="-lgcc  $LIBS"
18313 cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319
18320 /* Override any GCC internal prototype to avoid an error.
18321    Use char because int might match the return type of a GCC
18322    builtin and then its argument prototype would still apply.  */
18323 #ifdef __cplusplus
18324 extern "C"
18325 #endif
18326 char __divdi3 ();
18327 int
18328 main ()
18329 {
18330 return __divdi3 ();
18331   ;
18332   return 0;
18333 }
18334 _ACEOF
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339   *) ac_try_echo=$ac_try;;
18340 esac
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342   (eval "$ac_link") 2>conftest.er1
18343   ac_status=$?
18344   grep -v '^ *+' conftest.er1 >conftest.err
18345   rm -f conftest.er1
18346   cat conftest.err >&5
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); } &&
18349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350   { (case "(($ac_try" in
18351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352   *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355   (eval "$ac_try") 2>&5
18356   ac_status=$?
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); }; } &&
18359          { ac_try='test -s conftest$ac_exeext'
18360   { (case "(($ac_try" in
18361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362   *) ac_try_echo=$ac_try;;
18363 esac
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365   (eval "$ac_try") 2>&5
18366   ac_status=$?
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); }; }; then
18369   ac_cv_lib_gcc___divdi3=yes
18370 else
18371   echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18373
18374         ac_cv_lib_gcc___divdi3=no
18375 fi
18376
18377 rm -f core conftest.err conftest.$ac_objext \
18378       conftest$ac_exeext conftest.$ac_ext
18379 LIBS=$ac_check_lib_save_LIBS
18380 fi
18381 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18382 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18383 if test $ac_cv_lib_gcc___divdi3 = yes; then
18384
18385 cat >>confdefs.h <<\_ACEOF
18386 #define HAVE___DIVDI3 1
18387 _ACEOF
18388
18389 fi
18390
18391   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18392 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18393 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18394   echo $ECHO_N "(cached) $ECHO_C" >&6
18395 else
18396   ac_check_lib_save_LIBS=$LIBS
18397 LIBS="-lgcc  $LIBS"
18398 cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h.  */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h.  */
18404
18405 /* Override any GCC internal prototype to avoid an error.
18406    Use char because int might match the return type of a GCC
18407    builtin and then its argument prototype would still apply.  */
18408 #ifdef __cplusplus
18409 extern "C"
18410 #endif
18411 char __fixdfdi ();
18412 int
18413 main ()
18414 {
18415 return __fixdfdi ();
18416   ;
18417   return 0;
18418 }
18419 _ACEOF
18420 rm -f conftest.$ac_objext conftest$ac_exeext
18421 if { (ac_try="$ac_link"
18422 case "(($ac_try" in
18423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424   *) ac_try_echo=$ac_try;;
18425 esac
18426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427   (eval "$ac_link") 2>conftest.er1
18428   ac_status=$?
18429   grep -v '^ *+' conftest.er1 >conftest.err
18430   rm -f conftest.er1
18431   cat conftest.err >&5
18432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); } &&
18434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18435   { (case "(($ac_try" in
18436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437   *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440   (eval "$ac_try") 2>&5
18441   ac_status=$?
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); }; } &&
18444          { ac_try='test -s conftest$ac_exeext'
18445   { (case "(($ac_try" in
18446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447   *) ac_try_echo=$ac_try;;
18448 esac
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450   (eval "$ac_try") 2>&5
18451   ac_status=$?
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); }; }; then
18454   ac_cv_lib_gcc___fixdfdi=yes
18455 else
18456   echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459         ac_cv_lib_gcc___fixdfdi=no
18460 fi
18461
18462 rm -f core conftest.err conftest.$ac_objext \
18463       conftest$ac_exeext conftest.$ac_ext
18464 LIBS=$ac_check_lib_save_LIBS
18465 fi
18466 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18467 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18468 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18469
18470 cat >>confdefs.h <<\_ACEOF
18471 #define HAVE___FIXDFDI 1
18472 _ACEOF
18473
18474 fi
18475
18476   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18477 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18478 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18479   echo $ECHO_N "(cached) $ECHO_C" >&6
18480 else
18481   ac_check_lib_save_LIBS=$LIBS
18482 LIBS="-lgcc  $LIBS"
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h.  */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h.  */
18489
18490 /* Override any GCC internal prototype to avoid an error.
18491    Use char because int might match the return type of a GCC
18492    builtin and then its argument prototype would still apply.  */
18493 #ifdef __cplusplus
18494 extern "C"
18495 #endif
18496 char __fixsfdi ();
18497 int
18498 main ()
18499 {
18500 return __fixsfdi ();
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 rm -f conftest.$ac_objext conftest$ac_exeext
18506 if { (ac_try="$ac_link"
18507 case "(($ac_try" in
18508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509   *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512   (eval "$ac_link") 2>conftest.er1
18513   ac_status=$?
18514   grep -v '^ *+' conftest.er1 >conftest.err
18515   rm -f conftest.er1
18516   cat conftest.err >&5
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); } &&
18519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18520   { (case "(($ac_try" in
18521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522   *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525   (eval "$ac_try") 2>&5
18526   ac_status=$?
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); }; } &&
18529          { ac_try='test -s conftest$ac_exeext'
18530   { (case "(($ac_try" in
18531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532   *) ac_try_echo=$ac_try;;
18533 esac
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535   (eval "$ac_try") 2>&5
18536   ac_status=$?
18537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538   (exit $ac_status); }; }; then
18539   ac_cv_lib_gcc___fixsfdi=yes
18540 else
18541   echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18543
18544         ac_cv_lib_gcc___fixsfdi=no
18545 fi
18546
18547 rm -f core conftest.err conftest.$ac_objext \
18548       conftest$ac_exeext conftest.$ac_ext
18549 LIBS=$ac_check_lib_save_LIBS
18550 fi
18551 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18552 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18553 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18554
18555 cat >>confdefs.h <<\_ACEOF
18556 #define HAVE___FIXSFDI 1
18557 _ACEOF
18558
18559 fi
18560
18561   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18562 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18563 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18564   echo $ECHO_N "(cached) $ECHO_C" >&6
18565 else
18566   ac_check_lib_save_LIBS=$LIBS
18567 LIBS="-lgcc  $LIBS"
18568 cat >conftest.$ac_ext <<_ACEOF
18569 /* confdefs.h.  */
18570 _ACEOF
18571 cat confdefs.h >>conftest.$ac_ext
18572 cat >>conftest.$ac_ext <<_ACEOF
18573 /* end confdefs.h.  */
18574
18575 /* Override any GCC internal prototype to avoid an error.
18576    Use char because int might match the return type of a GCC
18577    builtin and then its argument prototype would still apply.  */
18578 #ifdef __cplusplus
18579 extern "C"
18580 #endif
18581 char __floatdidf ();
18582 int
18583 main ()
18584 {
18585 return __floatdidf ();
18586   ;
18587   return 0;
18588 }
18589 _ACEOF
18590 rm -f conftest.$ac_objext conftest$ac_exeext
18591 if { (ac_try="$ac_link"
18592 case "(($ac_try" in
18593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594   *) ac_try_echo=$ac_try;;
18595 esac
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597   (eval "$ac_link") 2>conftest.er1
18598   ac_status=$?
18599   grep -v '^ *+' conftest.er1 >conftest.err
18600   rm -f conftest.er1
18601   cat conftest.err >&5
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); } &&
18604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18605   { (case "(($ac_try" in
18606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607   *) ac_try_echo=$ac_try;;
18608 esac
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610   (eval "$ac_try") 2>&5
18611   ac_status=$?
18612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613   (exit $ac_status); }; } &&
18614          { ac_try='test -s conftest$ac_exeext'
18615   { (case "(($ac_try" in
18616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617   *) ac_try_echo=$ac_try;;
18618 esac
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620   (eval "$ac_try") 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; }; then
18624   ac_cv_lib_gcc___floatdidf=yes
18625 else
18626   echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18628
18629         ac_cv_lib_gcc___floatdidf=no
18630 fi
18631
18632 rm -f core conftest.err conftest.$ac_objext \
18633       conftest$ac_exeext conftest.$ac_ext
18634 LIBS=$ac_check_lib_save_LIBS
18635 fi
18636 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18637 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18638 if test $ac_cv_lib_gcc___floatdidf = yes; then
18639
18640 cat >>confdefs.h <<\_ACEOF
18641 #define HAVE___FLOATDIDF 1
18642 _ACEOF
18643
18644 fi
18645
18646   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18647 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18648 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651   ac_check_lib_save_LIBS=$LIBS
18652 LIBS="-lgcc  $LIBS"
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h.  */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h.  */
18659
18660 /* Override any GCC internal prototype to avoid an error.
18661    Use char because int might match the return type of a GCC
18662    builtin and then its argument prototype would still apply.  */
18663 #ifdef __cplusplus
18664 extern "C"
18665 #endif
18666 char __lshrdi3 ();
18667 int
18668 main ()
18669 {
18670 return __lshrdi3 ();
18671   ;
18672   return 0;
18673 }
18674 _ACEOF
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (ac_try="$ac_link"
18677 case "(($ac_try" in
18678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679   *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682   (eval "$ac_link") 2>conftest.er1
18683   ac_status=$?
18684   grep -v '^ *+' conftest.er1 >conftest.err
18685   rm -f conftest.er1
18686   cat conftest.err >&5
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); } &&
18689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18690   { (case "(($ac_try" in
18691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692   *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695   (eval "$ac_try") 2>&5
18696   ac_status=$?
18697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698   (exit $ac_status); }; } &&
18699          { ac_try='test -s conftest$ac_exeext'
18700   { (case "(($ac_try" in
18701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18702   *) ac_try_echo=$ac_try;;
18703 esac
18704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18705   (eval "$ac_try") 2>&5
18706   ac_status=$?
18707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708   (exit $ac_status); }; }; then
18709   ac_cv_lib_gcc___lshrdi3=yes
18710 else
18711   echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18713
18714         ac_cv_lib_gcc___lshrdi3=no
18715 fi
18716
18717 rm -f core conftest.err conftest.$ac_objext \
18718       conftest$ac_exeext conftest.$ac_ext
18719 LIBS=$ac_check_lib_save_LIBS
18720 fi
18721 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18722 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18723 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18724
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE___LSHRDI3 1
18727 _ACEOF
18728
18729 fi
18730
18731   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18732 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18733 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18734   echo $ECHO_N "(cached) $ECHO_C" >&6
18735 else
18736   ac_check_lib_save_LIBS=$LIBS
18737 LIBS="-lgcc  $LIBS"
18738 cat >conftest.$ac_ext <<_ACEOF
18739 /* confdefs.h.  */
18740 _ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h.  */
18744
18745 /* Override any GCC internal prototype to avoid an error.
18746    Use char because int might match the return type of a GCC
18747    builtin and then its argument prototype would still apply.  */
18748 #ifdef __cplusplus
18749 extern "C"
18750 #endif
18751 char __moddi3 ();
18752 int
18753 main ()
18754 {
18755 return __moddi3 ();
18756   ;
18757   return 0;
18758 }
18759 _ACEOF
18760 rm -f conftest.$ac_objext conftest$ac_exeext
18761 if { (ac_try="$ac_link"
18762 case "(($ac_try" in
18763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764   *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767   (eval "$ac_link") 2>conftest.er1
18768   ac_status=$?
18769   grep -v '^ *+' conftest.er1 >conftest.err
18770   rm -f conftest.er1
18771   cat conftest.err >&5
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); } &&
18774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18775   { (case "(($ac_try" in
18776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777   *) ac_try_echo=$ac_try;;
18778 esac
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780   (eval "$ac_try") 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); }; } &&
18784          { ac_try='test -s conftest$ac_exeext'
18785   { (case "(($ac_try" in
18786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787   *) ac_try_echo=$ac_try;;
18788 esac
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790   (eval "$ac_try") 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; }; then
18794   ac_cv_lib_gcc___moddi3=yes
18795 else
18796   echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18798
18799         ac_cv_lib_gcc___moddi3=no
18800 fi
18801
18802 rm -f core conftest.err conftest.$ac_objext \
18803       conftest$ac_exeext conftest.$ac_ext
18804 LIBS=$ac_check_lib_save_LIBS
18805 fi
18806 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18807 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18808 if test $ac_cv_lib_gcc___moddi3 = yes; then
18809
18810 cat >>confdefs.h <<\_ACEOF
18811 #define HAVE___MODDI3 1
18812 _ACEOF
18813
18814 fi
18815
18816   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18817 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18818 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18819   echo $ECHO_N "(cached) $ECHO_C" >&6
18820 else
18821   ac_check_lib_save_LIBS=$LIBS
18822 LIBS="-lgcc  $LIBS"
18823 cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h.  */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h.  */
18829
18830 /* Override any GCC internal prototype to avoid an error.
18831    Use char because int might match the return type of a GCC
18832    builtin and then its argument prototype would still apply.  */
18833 #ifdef __cplusplus
18834 extern "C"
18835 #endif
18836 char __udivdi3 ();
18837 int
18838 main ()
18839 {
18840 return __udivdi3 ();
18841   ;
18842   return 0;
18843 }
18844 _ACEOF
18845 rm -f conftest.$ac_objext conftest$ac_exeext
18846 if { (ac_try="$ac_link"
18847 case "(($ac_try" in
18848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849   *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852   (eval "$ac_link") 2>conftest.er1
18853   ac_status=$?
18854   grep -v '^ *+' conftest.er1 >conftest.err
18855   rm -f conftest.er1
18856   cat conftest.err >&5
18857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858   (exit $ac_status); } &&
18859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18860   { (case "(($ac_try" in
18861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862   *) ac_try_echo=$ac_try;;
18863 esac
18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865   (eval "$ac_try") 2>&5
18866   ac_status=$?
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); }; } &&
18869          { ac_try='test -s conftest$ac_exeext'
18870   { (case "(($ac_try" in
18871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872   *) ac_try_echo=$ac_try;;
18873 esac
18874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875   (eval "$ac_try") 2>&5
18876   ac_status=$?
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); }; }; then
18879   ac_cv_lib_gcc___udivdi3=yes
18880 else
18881   echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18883
18884         ac_cv_lib_gcc___udivdi3=no
18885 fi
18886
18887 rm -f core conftest.err conftest.$ac_objext \
18888       conftest$ac_exeext conftest.$ac_ext
18889 LIBS=$ac_check_lib_save_LIBS
18890 fi
18891 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18892 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18893 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18894
18895 cat >>confdefs.h <<\_ACEOF
18896 #define HAVE___UDIVDI3 1
18897 _ACEOF
18898
18899 fi
18900
18901   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18902 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18903 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18904   echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906   ac_check_lib_save_LIBS=$LIBS
18907 LIBS="-lgcc  $LIBS"
18908 cat >conftest.$ac_ext <<_ACEOF
18909 /* confdefs.h.  */
18910 _ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h.  */
18914
18915 /* Override any GCC internal prototype to avoid an error.
18916    Use char because int might match the return type of a GCC
18917    builtin and then its argument prototype would still apply.  */
18918 #ifdef __cplusplus
18919 extern "C"
18920 #endif
18921 char __umoddi3 ();
18922 int
18923 main ()
18924 {
18925 return __umoddi3 ();
18926   ;
18927   return 0;
18928 }
18929 _ACEOF
18930 rm -f conftest.$ac_objext conftest$ac_exeext
18931 if { (ac_try="$ac_link"
18932 case "(($ac_try" in
18933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934   *) ac_try_echo=$ac_try;;
18935 esac
18936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937   (eval "$ac_link") 2>conftest.er1
18938   ac_status=$?
18939   grep -v '^ *+' conftest.er1 >conftest.err
18940   rm -f conftest.er1
18941   cat conftest.err >&5
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); } &&
18944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18945   { (case "(($ac_try" in
18946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947   *) ac_try_echo=$ac_try;;
18948 esac
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950   (eval "$ac_try") 2>&5
18951   ac_status=$?
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); }; } &&
18954          { ac_try='test -s conftest$ac_exeext'
18955   { (case "(($ac_try" in
18956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957   *) ac_try_echo=$ac_try;;
18958 esac
18959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960   (eval "$ac_try") 2>&5
18961   ac_status=$?
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); }; }; then
18964   ac_cv_lib_gcc___umoddi3=yes
18965 else
18966   echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969         ac_cv_lib_gcc___umoddi3=no
18970 fi
18971
18972 rm -f core conftest.err conftest.$ac_objext \
18973       conftest$ac_exeext conftest.$ac_ext
18974 LIBS=$ac_check_lib_save_LIBS
18975 fi
18976 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18977 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18978 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18979
18980 cat >>confdefs.h <<\_ACEOF
18981 #define HAVE___UMODDI3 1
18982 _ACEOF
18983
18984 fi
18985
18986
18987   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18988 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18989 if test "${ac_cv_lib_gcc___main+set}" = set; then
18990   echo $ECHO_N "(cached) $ECHO_C" >&6
18991 else
18992   ac_check_lib_save_LIBS=$LIBS
18993 LIBS="-lgcc  $LIBS"
18994 cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000
19001 /* Override any GCC internal prototype to avoid an error.
19002    Use char because int might match the return type of a GCC
19003    builtin and then its argument prototype would still apply.  */
19004 #ifdef __cplusplus
19005 extern "C"
19006 #endif
19007 char __main ();
19008 int
19009 main ()
19010 {
19011 return __main ();
19012   ;
19013   return 0;
19014 }
19015 _ACEOF
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023   (eval "$ac_link") 2>conftest.er1
19024   ac_status=$?
19025   grep -v '^ *+' conftest.er1 >conftest.err
19026   rm -f conftest.er1
19027   cat conftest.err >&5
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); } &&
19030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031   { (case "(($ac_try" in
19032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033   *) ac_try_echo=$ac_try;;
19034 esac
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036   (eval "$ac_try") 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); }; } &&
19040          { ac_try='test -s conftest$ac_exeext'
19041   { (case "(($ac_try" in
19042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043   *) ac_try_echo=$ac_try;;
19044 esac
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046   (eval "$ac_try") 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); }; }; then
19050   ac_cv_lib_gcc___main=yes
19051 else
19052   echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19054
19055         ac_cv_lib_gcc___main=no
19056 fi
19057
19058 rm -f core conftest.err conftest.$ac_objext \
19059       conftest$ac_exeext conftest.$ac_ext
19060 LIBS=$ac_check_lib_save_LIBS
19061 fi
19062 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19063 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19064 if test $ac_cv_lib_gcc___main = yes; then
19065
19066 cat >>confdefs.h <<\_ACEOF
19067 #define HAVE___MAIN 1
19068 _ACEOF
19069
19070 fi
19071
19072   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19073 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19074 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19075   echo $ECHO_N "(cached) $ECHO_C" >&6
19076 else
19077   ac_check_lib_save_LIBS=$LIBS
19078 LIBS="-lgcc  $LIBS"
19079 cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085
19086 /* Override any GCC internal prototype to avoid an error.
19087    Use char because int might match the return type of a GCC
19088    builtin and then its argument prototype would still apply.  */
19089 #ifdef __cplusplus
19090 extern "C"
19091 #endif
19092 char __cmpdi2 ();
19093 int
19094 main ()
19095 {
19096 return __cmpdi2 ();
19097   ;
19098   return 0;
19099 }
19100 _ACEOF
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (ac_try="$ac_link"
19103 case "(($ac_try" in
19104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105   *) ac_try_echo=$ac_try;;
19106 esac
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108   (eval "$ac_link") 2>conftest.er1
19109   ac_status=$?
19110   grep -v '^ *+' conftest.er1 >conftest.err
19111   rm -f conftest.er1
19112   cat conftest.err >&5
19113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114   (exit $ac_status); } &&
19115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19116   { (case "(($ac_try" in
19117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118   *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121   (eval "$ac_try") 2>&5
19122   ac_status=$?
19123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); }; } &&
19125          { ac_try='test -s conftest$ac_exeext'
19126   { (case "(($ac_try" in
19127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128   *) ac_try_echo=$ac_try;;
19129 esac
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131   (eval "$ac_try") 2>&5
19132   ac_status=$?
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); }; }; then
19135   ac_cv_lib_gcc___cmpdi2=yes
19136 else
19137   echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19139
19140         ac_cv_lib_gcc___cmpdi2=no
19141 fi
19142
19143 rm -f core conftest.err conftest.$ac_objext \
19144       conftest$ac_exeext conftest.$ac_ext
19145 LIBS=$ac_check_lib_save_LIBS
19146 fi
19147 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19148 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19149 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19150
19151 cat >>confdefs.h <<\_ACEOF
19152 #define HAVE___CMPDI2 1
19153 _ACEOF
19154
19155 fi
19156
19157 fi
19158
19159 if test "$llvm_cv_os_type" = "MingW" ; then
19160   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19161 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19162   cat >conftest.$ac_ext <<_ACEOF
19163 #include <windows.h>
19164 #include <imagehlp.h>
19165 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19166 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19167 _ACEOF
19168 rm -f conftest.$ac_objext
19169 if { (ac_try="$ac_compile"
19170 case "(($ac_try" in
19171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172   *) ac_try_echo=$ac_try;;
19173 esac
19174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19175   (eval "$ac_compile") 2>conftest.er1
19176   ac_status=$?
19177   grep -v '^ *+' conftest.er1 >conftest.err
19178   rm -f conftest.er1
19179   cat conftest.err >&5
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); } &&
19182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19183   { (case "(($ac_try" in
19184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185   *) ac_try_echo=$ac_try;;
19186 esac
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188   (eval "$ac_try") 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); }; } &&
19192          { ac_try='test -s conftest.$ac_objext'
19193   { (case "(($ac_try" in
19194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195   *) ac_try_echo=$ac_try;;
19196 esac
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198   (eval "$ac_try") 2>&5
19199   ac_status=$?
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); }; }; then
19202
19203   { echo "$as_me:$LINENO: result: yes" >&5
19204 echo "${ECHO_T}yes" >&6; }
19205   llvm_cv_win32_elmcb_pcstr="PCSTR"
19206
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211
19212   { echo "$as_me:$LINENO: result: no" >&5
19213 echo "${ECHO_T}no" >&6; }
19214   llvm_cv_win32_elmcb_pcstr="PSTR"
19215
19216 fi
19217
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219
19220 cat >>confdefs.h <<_ACEOF
19221 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19222 _ACEOF
19223
19224 fi
19225
19226
19227 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19228 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19229 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19230   echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232   ac_ext=cpp
19233 ac_cpp='$CXXCPP $CPPFLAGS'
19234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19237
19238    cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244 #include <math.h>
19245 int
19246 main ()
19247 {
19248 float f; isnan(f);
19249   ;
19250   return 0;
19251 }
19252 _ACEOF
19253 rm -f conftest.$ac_objext
19254 if { (ac_try="$ac_compile"
19255 case "(($ac_try" in
19256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257   *) ac_try_echo=$ac_try;;
19258 esac
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260   (eval "$ac_compile") 2>conftest.er1
19261   ac_status=$?
19262   grep -v '^ *+' conftest.er1 >conftest.err
19263   rm -f conftest.er1
19264   cat conftest.err >&5
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); } &&
19267          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19268   { (case "(($ac_try" in
19269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270   *) ac_try_echo=$ac_try;;
19271 esac
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273   (eval "$ac_try") 2>&5
19274   ac_status=$?
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); }; } &&
19277          { ac_try='test -s conftest.$ac_objext'
19278   { (case "(($ac_try" in
19279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280   *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283   (eval "$ac_try") 2>&5
19284   ac_status=$?
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); }; }; then
19287   ac_cv_func_isnan_in_math_h=yes
19288 else
19289   echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19291
19292         ac_cv_func_isnan_in_math_h=no
19293 fi
19294
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296   ac_ext=c
19297 ac_cpp='$CPP $CPPFLAGS'
19298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19301
19302 fi
19303 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19304 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19305
19306
19307 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19308
19309 cat >>confdefs.h <<\_ACEOF
19310 #define HAVE_ISNAN_IN_MATH_H 1
19311 _ACEOF
19312
19313 fi
19314
19315 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19316 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19317 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19318   echo $ECHO_N "(cached) $ECHO_C" >&6
19319 else
19320   ac_ext=cpp
19321 ac_cpp='$CXXCPP $CPPFLAGS'
19322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19325
19326    cat >conftest.$ac_ext <<_ACEOF
19327 /* confdefs.h.  */
19328 _ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h.  */
19332 #include <cmath>
19333 int
19334 main ()
19335 {
19336 float f; isnan(f);
19337   ;
19338   return 0;
19339 }
19340 _ACEOF
19341 rm -f conftest.$ac_objext
19342 if { (ac_try="$ac_compile"
19343 case "(($ac_try" in
19344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345   *) ac_try_echo=$ac_try;;
19346 esac
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348   (eval "$ac_compile") 2>conftest.er1
19349   ac_status=$?
19350   grep -v '^ *+' conftest.er1 >conftest.err
19351   rm -f conftest.er1
19352   cat conftest.err >&5
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); } &&
19355          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19356   { (case "(($ac_try" in
19357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358   *) ac_try_echo=$ac_try;;
19359 esac
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361   (eval "$ac_try") 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; } &&
19365          { ac_try='test -s conftest.$ac_objext'
19366   { (case "(($ac_try" in
19367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368   *) ac_try_echo=$ac_try;;
19369 esac
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371   (eval "$ac_try") 2>&5
19372   ac_status=$?
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); }; }; then
19375   ac_cv_func_isnan_in_cmath=yes
19376 else
19377   echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19379
19380         ac_cv_func_isnan_in_cmath=no
19381 fi
19382
19383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384   ac_ext=c
19385 ac_cpp='$CPP $CPPFLAGS'
19386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19389
19390 fi
19391 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19392 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19393
19394 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19395
19396 cat >>confdefs.h <<\_ACEOF
19397 #define HAVE_ISNAN_IN_CMATH 1
19398 _ACEOF
19399
19400 fi
19401
19402 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19403 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19404 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407   ac_ext=cpp
19408 ac_cpp='$CXXCPP $CPPFLAGS'
19409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19412
19413    cat >conftest.$ac_ext <<_ACEOF
19414 /* confdefs.h.  */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h.  */
19419 #include <cmath>
19420 int
19421 main ()
19422 {
19423 float f; std::isnan(f);
19424   ;
19425   return 0;
19426 }
19427 _ACEOF
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432   *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435   (eval "$ac_compile") 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } &&
19442          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19443   { (case "(($ac_try" in
19444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445   *) ac_try_echo=$ac_try;;
19446 esac
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448   (eval "$ac_try") 2>&5
19449   ac_status=$?
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); }; } &&
19452          { ac_try='test -s conftest.$ac_objext'
19453   { (case "(($ac_try" in
19454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455   *) ac_try_echo=$ac_try;;
19456 esac
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458   (eval "$ac_try") 2>&5
19459   ac_status=$?
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); }; }; then
19462   ac_cv_func_std_isnan_in_cmath=yes
19463 else
19464   echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19466
19467         ac_cv_func_std_isnan_in_cmath=no
19468 fi
19469
19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19471   ac_ext=c
19472 ac_cpp='$CPP $CPPFLAGS'
19473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19476
19477 fi
19478 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19479 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19480
19481 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19482
19483 cat >>confdefs.h <<\_ACEOF
19484 #define HAVE_STD_ISNAN_IN_CMATH 1
19485 _ACEOF
19486
19487 fi
19488
19489
19490 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19491 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19492 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19493   echo $ECHO_N "(cached) $ECHO_C" >&6
19494 else
19495   ac_ext=cpp
19496 ac_cpp='$CXXCPP $CPPFLAGS'
19497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19500
19501    cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h.  */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h.  */
19507 #include <math.h>
19508 int
19509 main ()
19510 {
19511 float f; isinf(f);
19512   ;
19513   return 0;
19514 }
19515 _ACEOF
19516 rm -f conftest.$ac_objext
19517 if { (ac_try="$ac_compile"
19518 case "(($ac_try" in
19519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520   *) ac_try_echo=$ac_try;;
19521 esac
19522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523   (eval "$ac_compile") 2>conftest.er1
19524   ac_status=$?
19525   grep -v '^ *+' conftest.er1 >conftest.err
19526   rm -f conftest.er1
19527   cat conftest.err >&5
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); } &&
19530          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19531   { (case "(($ac_try" in
19532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533   *) ac_try_echo=$ac_try;;
19534 esac
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536   (eval "$ac_try") 2>&5
19537   ac_status=$?
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); }; } &&
19540          { ac_try='test -s conftest.$ac_objext'
19541   { (case "(($ac_try" in
19542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543   *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546   (eval "$ac_try") 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); }; }; then
19550   ac_cv_func_isinf_in_math_h=yes
19551 else
19552   echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19554
19555         ac_cv_func_isinf_in_math_h=no
19556 fi
19557
19558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19559   ac_ext=c
19560 ac_cpp='$CPP $CPPFLAGS'
19561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19564
19565 fi
19566 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19567 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19568
19569 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19570
19571 cat >>confdefs.h <<\_ACEOF
19572 #define HAVE_ISINF_IN_MATH_H 1
19573 _ACEOF
19574
19575 fi
19576
19577 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19578 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19579 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19580   echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582   ac_ext=cpp
19583 ac_cpp='$CXXCPP $CPPFLAGS'
19584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19587
19588    cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h.  */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h.  */
19594 #include <cmath>
19595 int
19596 main ()
19597 {
19598 float f; isinf(f);
19599   ;
19600   return 0;
19601 }
19602 _ACEOF
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607   *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610   (eval "$ac_compile") 2>conftest.er1
19611   ac_status=$?
19612   grep -v '^ *+' conftest.er1 >conftest.err
19613   rm -f conftest.er1
19614   cat conftest.err >&5
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); } &&
19617          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19618   { (case "(($ac_try" in
19619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620   *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623   (eval "$ac_try") 2>&5
19624   ac_status=$?
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); }; } &&
19627          { ac_try='test -s conftest.$ac_objext'
19628   { (case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_try") 2>&5
19634   ac_status=$?
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); }; }; then
19637   ac_cv_func_isinf_in_cmath=yes
19638 else
19639   echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19641
19642         ac_cv_func_isinf_in_cmath=no
19643 fi
19644
19645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19646   ac_ext=c
19647 ac_cpp='$CPP $CPPFLAGS'
19648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19651
19652 fi
19653 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19654 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19655
19656 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19657
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE_ISINF_IN_CMATH 1
19660 _ACEOF
19661
19662 fi
19663
19664 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19665 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19666 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19667   echo $ECHO_N "(cached) $ECHO_C" >&6
19668 else
19669   ac_ext=cpp
19670 ac_cpp='$CXXCPP $CPPFLAGS'
19671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19674
19675    cat >conftest.$ac_ext <<_ACEOF
19676 /* confdefs.h.  */
19677 _ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h.  */
19681 #include <cmath>
19682 int
19683 main ()
19684 {
19685 float f; std::isinf(f)}
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694   *) ac_try_echo=$ac_try;;
19695 esac
19696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697   (eval "$ac_compile") 2>conftest.er1
19698   ac_status=$?
19699   grep -v '^ *+' conftest.er1 >conftest.err
19700   rm -f conftest.er1
19701   cat conftest.err >&5
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); } &&
19704          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19705   { (case "(($ac_try" in
19706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707   *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710   (eval "$ac_try") 2>&5
19711   ac_status=$?
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); }; } &&
19714          { ac_try='test -s conftest.$ac_objext'
19715   { (case "(($ac_try" in
19716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717   *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720   (eval "$ac_try") 2>&5
19721   ac_status=$?
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); }; }; then
19724   ac_cv_func_std_isinf_in_cmath=yes
19725 else
19726   echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729         ac_cv_func_std_isinf_in_cmath=no
19730 fi
19731
19732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733   ac_ext=c
19734 ac_cpp='$CPP $CPPFLAGS'
19735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19738
19739 fi
19740 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19741 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19742
19743 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19744
19745 cat >>confdefs.h <<\_ACEOF
19746 #define HAVE_STD_ISINF_IN_CMATH 1
19747 _ACEOF
19748
19749 fi
19750
19751 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19752 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19753 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19754   echo $ECHO_N "(cached) $ECHO_C" >&6
19755 else
19756   ac_ext=cpp
19757 ac_cpp='$CXXCPP $CPPFLAGS'
19758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19761
19762    cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h.  */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h.  */
19768 #include <ieeefp.h>
19769 int
19770 main ()
19771 {
19772 float f; finite(f);
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781   *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784   (eval "$ac_compile") 2>conftest.er1
19785   ac_status=$?
19786   grep -v '^ *+' conftest.er1 >conftest.err
19787   rm -f conftest.er1
19788   cat conftest.err >&5
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); } &&
19791          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19792   { (case "(($ac_try" in
19793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794   *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797   (eval "$ac_try") 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); }; } &&
19801          { ac_try='test -s conftest.$ac_objext'
19802   { (case "(($ac_try" in
19803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804   *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807   (eval "$ac_try") 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; }; then
19811   ac_cv_func_finite_in_ieeefp_h=yes
19812 else
19813   echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816         ac_cv_func_finite_in_ieeefp_h=no
19817 fi
19818
19819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820   ac_ext=c
19821 ac_cpp='$CPP $CPPFLAGS'
19822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19825
19826 fi
19827 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19828 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19829
19830 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19831
19832 cat >>confdefs.h <<\_ACEOF
19833 #define HAVE_FINITE_IN_IEEEFP_H 1
19834 _ACEOF
19835
19836 fi
19837
19838
19839
19840 if test "$llvm_cv_platform_type" = "Unix" ; then
19841
19842
19843 for ac_header in stdlib.h unistd.h
19844 do
19845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19847   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19850   echo $ECHO_N "(cached) $ECHO_C" >&6
19851 fi
19852 ac_res=`eval echo '${'$as_ac_Header'}'`
19853                { echo "$as_me:$LINENO: result: $ac_res" >&5
19854 echo "${ECHO_T}$ac_res" >&6; }
19855 else
19856   # Is the header compilable?
19857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19859 cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h.  */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h.  */
19865 $ac_includes_default
19866 #include <$ac_header>
19867 _ACEOF
19868 rm -f conftest.$ac_objext
19869 if { (ac_try="$ac_compile"
19870 case "(($ac_try" in
19871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872   *) ac_try_echo=$ac_try;;
19873 esac
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875   (eval "$ac_compile") 2>conftest.er1
19876   ac_status=$?
19877   grep -v '^ *+' conftest.er1 >conftest.err
19878   rm -f conftest.er1
19879   cat conftest.err >&5
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); } &&
19882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19883   { (case "(($ac_try" in
19884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885   *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888   (eval "$ac_try") 2>&5
19889   ac_status=$?
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); }; } &&
19892          { ac_try='test -s conftest.$ac_objext'
19893   { (case "(($ac_try" in
19894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895   *) ac_try_echo=$ac_try;;
19896 esac
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898   (eval "$ac_try") 2>&5
19899   ac_status=$?
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); }; }; then
19902   ac_header_compiler=yes
19903 else
19904   echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19906
19907         ac_header_compiler=no
19908 fi
19909
19910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19912 echo "${ECHO_T}$ac_header_compiler" >&6; }
19913
19914 # Is the header present?
19915 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19917 cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h.  */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h.  */
19923 #include <$ac_header>
19924 _ACEOF
19925 if { (ac_try="$ac_cpp conftest.$ac_ext"
19926 case "(($ac_try" in
19927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928   *) ac_try_echo=$ac_try;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19932   ac_status=$?
19933   grep -v '^ *+' conftest.er1 >conftest.err
19934   rm -f conftest.er1
19935   cat conftest.err >&5
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); } >/dev/null; then
19938   if test -s conftest.err; then
19939     ac_cpp_err=$ac_c_preproc_warn_flag
19940     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19941   else
19942     ac_cpp_err=
19943   fi
19944 else
19945   ac_cpp_err=yes
19946 fi
19947 if test -z "$ac_cpp_err"; then
19948   ac_header_preproc=yes
19949 else
19950   echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19952
19953   ac_header_preproc=no
19954 fi
19955
19956 rm -f conftest.err conftest.$ac_ext
19957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19958 echo "${ECHO_T}$ac_header_preproc" >&6; }
19959
19960 # So?  What about this header?
19961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19962   yes:no: )
19963     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19967     ac_header_preproc=yes
19968     ;;
19969   no:yes:* )
19970     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19972     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19973 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19974     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19976     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19977 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19980     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19982     ( cat <<\_ASBOX
19983 ## ------------------------------------ ##
19984 ## Report this to http://llvm.org/bugs/ ##
19985 ## ------------------------------------ ##
19986 _ASBOX
19987      ) | sed "s/^/$as_me: WARNING:     /" >&2
19988     ;;
19989 esac
19990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995   eval "$as_ac_Header=\$ac_header_preproc"
19996 fi
19997 ac_res=`eval echo '${'$as_ac_Header'}'`
19998                { echo "$as_me:$LINENO: result: $ac_res" >&5
19999 echo "${ECHO_T}$ac_res" >&6; }
20000
20001 fi
20002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20003   cat >>confdefs.h <<_ACEOF
20004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20005 _ACEOF
20006
20007 fi
20008
20009 done
20010
20011
20012 for ac_func in getpagesize
20013 do
20014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20015 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20018   echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020   cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20028 #define $ac_func innocuous_$ac_func
20029
20030 /* System header to define __stub macros and hopefully few prototypes,
20031     which can conflict with char $ac_func (); below.
20032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20033     <limits.h> exists even on freestanding compilers.  */
20034
20035 #ifdef __STDC__
20036 # include <limits.h>
20037 #else
20038 # include <assert.h>
20039 #endif
20040
20041 #undef $ac_func
20042
20043 /* Override any GCC internal prototype to avoid an error.
20044    Use char because int might match the return type of a GCC
20045    builtin and then its argument prototype would still apply.  */
20046 #ifdef __cplusplus
20047 extern "C"
20048 #endif
20049 char $ac_func ();
20050 /* The GNU C library defines this for functions which it implements
20051     to always fail with ENOSYS.  Some functions are actually named
20052     something starting with __ and the normal name is an alias.  */
20053 #if defined __stub_$ac_func || defined __stub___$ac_func
20054 choke me
20055 #endif
20056
20057 int
20058 main ()
20059 {
20060 return $ac_func ();
20061   ;
20062   return 0;
20063 }
20064 _ACEOF
20065 rm -f conftest.$ac_objext conftest$ac_exeext
20066 if { (ac_try="$ac_link"
20067 case "(($ac_try" in
20068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069   *) ac_try_echo=$ac_try;;
20070 esac
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072   (eval "$ac_link") 2>conftest.er1
20073   ac_status=$?
20074   grep -v '^ *+' conftest.er1 >conftest.err
20075   rm -f conftest.er1
20076   cat conftest.err >&5
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); } &&
20079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20080   { (case "(($ac_try" in
20081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082   *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085   (eval "$ac_try") 2>&5
20086   ac_status=$?
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); }; } &&
20089          { ac_try='test -s conftest$ac_exeext'
20090   { (case "(($ac_try" in
20091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092   *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095   (eval "$ac_try") 2>&5
20096   ac_status=$?
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); }; }; then
20099   eval "$as_ac_var=yes"
20100 else
20101   echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104         eval "$as_ac_var=no"
20105 fi
20106
20107 rm -f core conftest.err conftest.$ac_objext \
20108       conftest$ac_exeext conftest.$ac_ext
20109 fi
20110 ac_res=`eval echo '${'$as_ac_var'}'`
20111                { echo "$as_me:$LINENO: result: $ac_res" >&5
20112 echo "${ECHO_T}$ac_res" >&6; }
20113 if test `eval echo '${'$as_ac_var'}'` = yes; then
20114   cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20116 _ACEOF
20117
20118 fi
20119 done
20120
20121 { echo "$as_me:$LINENO: checking for working mmap" >&5
20122 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20123 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20124   echo $ECHO_N "(cached) $ECHO_C" >&6
20125 else
20126   if test "$cross_compiling" = yes; then
20127   ac_cv_func_mmap_fixed_mapped=no
20128 else
20129   cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 $ac_includes_default
20136 /* malloc might have been renamed as rpl_malloc. */
20137 #undef malloc
20138
20139 /* Thanks to Mike Haertel and Jim Avera for this test.
20140    Here is a matrix of mmap possibilities:
20141         mmap private not fixed
20142         mmap private fixed at somewhere currently unmapped
20143         mmap private fixed at somewhere already mapped
20144         mmap shared not fixed
20145         mmap shared fixed at somewhere currently unmapped
20146         mmap shared fixed at somewhere already mapped
20147    For private mappings, we should verify that changes cannot be read()
20148    back from the file, nor mmap's back from the file at a different
20149    address.  (There have been systems where private was not correctly
20150    implemented like the infamous i386 svr4.0, and systems where the
20151    VM page cache was not coherent with the file system buffer cache
20152    like early versions of FreeBSD and possibly contemporary NetBSD.)
20153    For shared mappings, we should conversely verify that changes get
20154    propagated back to all the places they're supposed to be.
20155
20156    Grep wants private fixed already mapped.
20157    The main things grep needs to know about mmap are:
20158    * does it exist and is it safe to write into the mmap'd area
20159    * how to use it (BSD variants)  */
20160
20161 #include <fcntl.h>
20162 #include <sys/mman.h>
20163
20164 #if !STDC_HEADERS && !HAVE_STDLIB_H
20165 char *malloc ();
20166 #endif
20167
20168 /* This mess was copied from the GNU getpagesize.h.  */
20169 #if !HAVE_GETPAGESIZE
20170 /* Assume that all systems that can run configure have sys/param.h.  */
20171 # if !HAVE_SYS_PARAM_H
20172 #  define HAVE_SYS_PARAM_H 1
20173 # endif
20174
20175 # ifdef _SC_PAGESIZE
20176 #  define getpagesize() sysconf(_SC_PAGESIZE)
20177 # else /* no _SC_PAGESIZE */
20178 #  if HAVE_SYS_PARAM_H
20179 #   include <sys/param.h>
20180 #   ifdef EXEC_PAGESIZE
20181 #    define getpagesize() EXEC_PAGESIZE
20182 #   else /* no EXEC_PAGESIZE */
20183 #    ifdef NBPG
20184 #     define getpagesize() NBPG * CLSIZE
20185 #     ifndef CLSIZE
20186 #      define CLSIZE 1
20187 #     endif /* no CLSIZE */
20188 #    else /* no NBPG */
20189 #     ifdef NBPC
20190 #      define getpagesize() NBPC
20191 #     else /* no NBPC */
20192 #      ifdef PAGESIZE
20193 #       define getpagesize() PAGESIZE
20194 #      endif /* PAGESIZE */
20195 #     endif /* no NBPC */
20196 #    endif /* no NBPG */
20197 #   endif /* no EXEC_PAGESIZE */
20198 #  else /* no HAVE_SYS_PARAM_H */
20199 #   define getpagesize() 8192   /* punt totally */
20200 #  endif /* no HAVE_SYS_PARAM_H */
20201 # endif /* no _SC_PAGESIZE */
20202
20203 #endif /* no HAVE_GETPAGESIZE */
20204
20205 int
20206 main ()
20207 {
20208   char *data, *data2, *data3;
20209   int i, pagesize;
20210   int fd;
20211
20212   pagesize = getpagesize ();
20213
20214   /* First, make a file with some known garbage in it. */
20215   data = (char *) malloc (pagesize);
20216   if (!data)
20217     return 1;
20218   for (i = 0; i < pagesize; ++i)
20219     *(data + i) = rand ();
20220   umask (0);
20221   fd = creat ("conftest.mmap", 0600);
20222   if (fd < 0)
20223     return 1;
20224   if (write (fd, data, pagesize) != pagesize)
20225     return 1;
20226   close (fd);
20227
20228   /* Next, try to mmap the file at a fixed address which already has
20229      something else allocated at it.  If we can, also make sure that
20230      we see the same garbage.  */
20231   fd = open ("conftest.mmap", O_RDWR);
20232   if (fd < 0)
20233     return 1;
20234   data2 = (char *) malloc (2 * pagesize);
20235   if (!data2)
20236     return 1;
20237   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20238   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20239                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20240     return 1;
20241   for (i = 0; i < pagesize; ++i)
20242     if (*(data + i) != *(data2 + i))
20243       return 1;
20244
20245   /* Finally, make sure that changes to the mapped area do not
20246      percolate back to the file as seen by read().  (This is a bug on
20247      some variants of i386 svr4.0.)  */
20248   for (i = 0; i < pagesize; ++i)
20249     *(data2 + i) = *(data2 + i) + 1;
20250   data3 = (char *) malloc (pagesize);
20251   if (!data3)
20252     return 1;
20253   if (read (fd, data3, pagesize) != pagesize)
20254     return 1;
20255   for (i = 0; i < pagesize; ++i)
20256     if (*(data + i) != *(data3 + i))
20257       return 1;
20258   close (fd);
20259   return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest$ac_exeext
20263 if { (ac_try="$ac_link"
20264 case "(($ac_try" in
20265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266   *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269   (eval "$ac_link") 2>&5
20270   ac_status=$?
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20273   { (case "(($ac_try" in
20274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275   *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278   (eval "$ac_try") 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; }; then
20282   ac_cv_func_mmap_fixed_mapped=yes
20283 else
20284   echo "$as_me: program exited with status $ac_status" >&5
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20287
20288 ( exit $ac_status )
20289 ac_cv_func_mmap_fixed_mapped=no
20290 fi
20291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20292 fi
20293
20294
20295 fi
20296 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20297 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20299
20300 cat >>confdefs.h <<\_ACEOF
20301 #define HAVE_MMAP 1
20302 _ACEOF
20303
20304 fi
20305 rm -f conftest.mmap
20306
20307   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20308 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20309 if test "${ac_cv_func_mmap_file+set}" = set; then
20310   echo $ECHO_N "(cached) $ECHO_C" >&6
20311 else
20312    ac_ext=c
20313 ac_cpp='$CPP $CPPFLAGS'
20314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20317
20318   if test "$cross_compiling" = yes; then
20319   ac_cv_func_mmap_file=no
20320 else
20321   cat >conftest.$ac_ext <<_ACEOF
20322
20323     /* confdefs.h.  */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h.  */
20328
20329 #include <sys/types.h>
20330 #include <sys/mman.h>
20331 #include <fcntl.h>
20332
20333 int
20334 main ()
20335 {
20336
20337   int fd;
20338   fd = creat ("foo",0777);
20339   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20340   unlink ("foo");
20341   return (fd != (int) MAP_FAILED);
20342   ;
20343   return 0;
20344 }
20345 _ACEOF
20346 rm -f conftest$ac_exeext
20347 if { (ac_try="$ac_link"
20348 case "(($ac_try" in
20349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350   *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353   (eval "$ac_link") 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20357   { (case "(($ac_try" in
20358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359   *) ac_try_echo=$ac_try;;
20360 esac
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362   (eval "$ac_try") 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); }; }; then
20366   ac_cv_func_mmap_file=yes
20367 else
20368   echo "$as_me: program exited with status $ac_status" >&5
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20371
20372 ( exit $ac_status )
20373 ac_cv_func_mmap_file=no
20374 fi
20375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20376 fi
20377
20378
20379   ac_ext=c
20380 ac_cpp='$CPP $CPPFLAGS'
20381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20384
20385
20386 fi
20387 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20388 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20389 if test "$ac_cv_func_mmap_file" = yes; then
20390
20391 cat >>confdefs.h <<\_ACEOF
20392 #define HAVE_MMAP_FILE
20393 _ACEOF
20394
20395    MMAP_FILE=yes
20396
20397 fi
20398
20399   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20400 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20401 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20402   echo $ECHO_N "(cached) $ECHO_C" >&6
20403 else
20404   if test "$llvm_cv_os_type" = "Interix" ; then
20405    ac_cv_need_dev_zero_for_mmap=yes
20406  else
20407    ac_cv_need_dev_zero_for_mmap=no
20408  fi
20409
20410 fi
20411 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20412 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20413 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20414
20415 cat >>confdefs.h <<\_ACEOF
20416 #define NEED_DEV_ZERO_FOR_MMAP 1
20417 _ACEOF
20418
20419 fi
20420
20421   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20422   then
20423     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20424 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20425   fi
20426   if test "$ac_cv_func_mmap_file" = "no"
20427   then
20428     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20429 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20430   fi
20431 fi
20432
20433 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20434 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20435 ac_ext=cpp
20436 ac_cpp='$CXXCPP $CPPFLAGS'
20437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20440
20441 cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h.  */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h.  */
20447 int main() {
20448         volatile unsigned long val = 1;
20449         __sync_synchronize();
20450         __sync_val_compare_and_swap(&val, 1, 0);
20451         __sync_add_and_fetch(&val, 1);
20452         __sync_sub_and_fetch(&val, 1);
20453         return 0;
20454       }
20455
20456 _ACEOF
20457 rm -f conftest.$ac_objext conftest$ac_exeext
20458 if { (ac_try="$ac_link"
20459 case "(($ac_try" in
20460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461   *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464   (eval "$ac_link") 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } &&
20471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20472   { (case "(($ac_try" in
20473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474   *) ac_try_echo=$ac_try;;
20475 esac
20476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20477   (eval "$ac_try") 2>&5
20478   ac_status=$?
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); }; } &&
20481          { ac_try='test -s conftest$ac_exeext'
20482   { (case "(($ac_try" in
20483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484   *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487   (eval "$ac_try") 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; }; then
20491   ac_ext=c
20492 ac_cpp='$CPP $CPPFLAGS'
20493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20496
20497   { echo "$as_me:$LINENO: result: yes" >&5
20498 echo "${ECHO_T}yes" >&6; }
20499
20500 cat >>confdefs.h <<\_ACEOF
20501 #define LLVM_HAS_ATOMICS 1
20502 _ACEOF
20503
20504 else
20505   echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20507
20508         { echo "$as_me:$LINENO: result: no" >&5
20509 echo "${ECHO_T}no" >&6; }
20510
20511 cat >>confdefs.h <<\_ACEOF
20512 #define LLVM_HAS_ATOMICS 0
20513 _ACEOF
20514
20515   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20516 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20517 fi
20518
20519 rm -f core conftest.err conftest.$ac_objext \
20520       conftest$ac_exeext conftest.$ac_ext
20521
20522
20523 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20524   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20525 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20526 if test "${llvm_cv_linux_mixed+set}" = set; then
20527   echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529    ac_ext=c
20530 ac_cpp='$CPP $CPPFLAGS'
20531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20534
20535   cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541 #ifndef __x86_64__
20542        error: Not x86-64 even if uname says so!
20543       #endif
20544
20545 int
20546 main ()
20547 {
20548
20549   ;
20550   return 0;
20551 }
20552 _ACEOF
20553 rm -f conftest.$ac_objext
20554 if { (ac_try="$ac_compile"
20555 case "(($ac_try" in
20556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557   *) ac_try_echo=$ac_try;;
20558 esac
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560   (eval "$ac_compile") 2>conftest.er1
20561   ac_status=$?
20562   grep -v '^ *+' conftest.er1 >conftest.err
20563   rm -f conftest.er1
20564   cat conftest.err >&5
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); } &&
20567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20568   { (case "(($ac_try" in
20569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570   *) ac_try_echo=$ac_try;;
20571 esac
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573   (eval "$ac_try") 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; } &&
20577          { ac_try='test -s conftest.$ac_objext'
20578   { (case "(($ac_try" in
20579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580   *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583   (eval "$ac_try") 2>&5
20584   ac_status=$?
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); }; }; then
20587   llvm_cv_linux_mixed=no
20588 else
20589   echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20591
20592         llvm_cv_linux_mixed=yes
20593 fi
20594
20595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596   ac_ext=c
20597 ac_cpp='$CPP $CPPFLAGS'
20598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20601
20602
20603 fi
20604 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20605 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20606
20607   if test "$llvm_cv_linux_mixed" = "yes"; then
20608     llvm_cv_target_arch="x86"
20609     ARCH="x86"
20610   fi
20611 fi
20612
20613
20614 for ac_func in __dso_handle
20615 do
20616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20620   echo $ECHO_N "(cached) $ECHO_C" >&6
20621 else
20622   cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20630 #define $ac_func innocuous_$ac_func
20631
20632 /* System header to define __stub macros and hopefully few prototypes,
20633     which can conflict with char $ac_func (); below.
20634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20635     <limits.h> exists even on freestanding compilers.  */
20636
20637 #ifdef __STDC__
20638 # include <limits.h>
20639 #else
20640 # include <assert.h>
20641 #endif
20642
20643 #undef $ac_func
20644
20645 /* Override any GCC internal prototype to avoid an error.
20646    Use char because int might match the return type of a GCC
20647    builtin and then its argument prototype would still apply.  */
20648 #ifdef __cplusplus
20649 extern "C"
20650 #endif
20651 char $ac_func ();
20652 /* The GNU C library defines this for functions which it implements
20653     to always fail with ENOSYS.  Some functions are actually named
20654     something starting with __ and the normal name is an alias.  */
20655 #if defined __stub_$ac_func || defined __stub___$ac_func
20656 choke me
20657 #endif
20658
20659 int
20660 main ()
20661 {
20662 return $ac_func ();
20663   ;
20664   return 0;
20665 }
20666 _ACEOF
20667 rm -f conftest.$ac_objext conftest$ac_exeext
20668 if { (ac_try="$ac_link"
20669 case "(($ac_try" in
20670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671   *) ac_try_echo=$ac_try;;
20672 esac
20673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20674   (eval "$ac_link") 2>conftest.er1
20675   ac_status=$?
20676   grep -v '^ *+' conftest.er1 >conftest.err
20677   rm -f conftest.er1
20678   cat conftest.err >&5
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); } &&
20681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20682   { (case "(($ac_try" in
20683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684   *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687   (eval "$ac_try") 2>&5
20688   ac_status=$?
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); }; } &&
20691          { ac_try='test -s conftest$ac_exeext'
20692   { (case "(($ac_try" in
20693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694   *) ac_try_echo=$ac_try;;
20695 esac
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697   (eval "$ac_try") 2>&5
20698   ac_status=$?
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); }; }; then
20701   eval "$as_ac_var=yes"
20702 else
20703   echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20705
20706         eval "$as_ac_var=no"
20707 fi
20708
20709 rm -f core conftest.err conftest.$ac_objext \
20710       conftest$ac_exeext conftest.$ac_ext
20711 fi
20712 ac_res=`eval echo '${'$as_ac_var'}'`
20713                { echo "$as_me:$LINENO: result: $ac_res" >&5
20714 echo "${ECHO_T}$ac_res" >&6; }
20715 if test `eval echo '${'$as_ac_var'}'` = yes; then
20716   cat >>confdefs.h <<_ACEOF
20717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20718 _ACEOF
20719
20720 fi
20721 done
20722
20723
20724 SHLIBEXT=$libltdl_cv_shlibext
20725
20726
20727 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20728
20729
20730 if test "${prefix}" = "NONE" ; then
20731   prefix="/usr/local"
20732 fi
20733 eval LLVM_PREFIX="${prefix}";
20734 eval LLVM_BINDIR="${prefix}/bin";
20735 eval LLVM_LIBDIR="${prefix}/lib";
20736 eval LLVM_DATADIR="${prefix}/share/llvm";
20737 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20738 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20739 eval LLVM_INCLUDEDIR="${prefix}/include";
20740 eval LLVM_INFODIR="${prefix}/info";
20741 eval LLVM_MANDIR="${prefix}/man";
20742 LLVM_CONFIGTIME=`date`
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20755   LLVM_CONFIGTIME="(timestamp not enabled)"
20756 fi
20757
20758
20759 cat >>confdefs.h <<_ACEOF
20760 #define LLVM_PREFIX "$LLVM_PREFIX"
20761 _ACEOF
20762
20763
20764 cat >>confdefs.h <<_ACEOF
20765 #define LLVM_BINDIR "$LLVM_BINDIR"
20766 _ACEOF
20767
20768
20769 cat >>confdefs.h <<_ACEOF
20770 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20771 _ACEOF
20772
20773
20774 cat >>confdefs.h <<_ACEOF
20775 #define LLVM_DATADIR "$LLVM_DATADIR"
20776 _ACEOF
20777
20778
20779 cat >>confdefs.h <<_ACEOF
20780 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20781 _ACEOF
20782
20783
20784 cat >>confdefs.h <<_ACEOF
20785 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20786 _ACEOF
20787
20788
20789 cat >>confdefs.h <<_ACEOF
20790 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20791 _ACEOF
20792
20793
20794 cat >>confdefs.h <<_ACEOF
20795 #define LLVM_INFODIR "$LLVM_INFODIR"
20796 _ACEOF
20797
20798
20799 cat >>confdefs.h <<_ACEOF
20800 #define LLVM_MANDIR "$LLVM_MANDIR"
20801 _ACEOF
20802
20803
20804 cat >>confdefs.h <<_ACEOF
20805 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20806 _ACEOF
20807
20808
20809 cat >>confdefs.h <<_ACEOF
20810 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20811 _ACEOF
20812
20813
20814 if test "$BINDINGS_TO_BUILD" = auto ; then
20815   BINDINGS_TO_BUILD=""
20816   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20817     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20818   fi
20819 fi
20820 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20821
20822
20823 ALL_BINDINGS=ocaml
20824
20825
20826 binding_prereqs_failed=0
20827 for a_binding in $BINDINGS_TO_BUILD ; do
20828   case "$a_binding" in
20829   ocaml)
20830     if test "x$OCAMLC" = x ; then
20831       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20832 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20833       binding_prereqs_failed=1
20834     fi
20835     if test "x$OCAMLDEP" = x ; then
20836       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20837 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20838       binding_prereqs_failed=1
20839     fi
20840     if test "x$OCAMLOPT" = x ; then
20841       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20842 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20843           fi
20844     if test "x$with_ocaml_libdir" != xauto ; then
20845       OCAML_LIBDIR=$with_ocaml_libdir
20846
20847     else
20848       ocaml_stdlib="`"$OCAMLC" -where`"
20849       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20850       then
20851         # ocaml stdlib is beneath our prefix; use stdlib
20852         OCAML_LIBDIR=$ocaml_stdlib
20853
20854       else
20855         # ocaml stdlib is outside our prefix; use libdir/ocaml
20856         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20857
20858       fi
20859     fi
20860     ;;
20861   esac
20862 done
20863 if test "$binding_prereqs_failed" = 1 ; then
20864   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20865 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20866    { (exit 1); exit 1; }; }
20867 fi
20868
20869 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20870 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20871 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20872   echo $ECHO_N "(cached) $ECHO_C" >&6
20873 else
20874    ac_ext=cpp
20875 ac_cpp='$CXXCPP $CPPFLAGS'
20876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20879
20880   oldcxxflags="$CXXFLAGS"
20881   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20882   cat >conftest.$ac_ext <<_ACEOF
20883 /* confdefs.h.  */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h.  */
20888 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20889 int
20890 main ()
20891 {
20892 X<int>().f();
20893   ;
20894   return 0;
20895 }
20896 _ACEOF
20897 rm -f conftest.$ac_objext
20898 if { (ac_try="$ac_compile"
20899 case "(($ac_try" in
20900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901   *) ac_try_echo=$ac_try;;
20902 esac
20903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904   (eval "$ac_compile") 2>conftest.er1
20905   ac_status=$?
20906   grep -v '^ *+' conftest.er1 >conftest.err
20907   rm -f conftest.er1
20908   cat conftest.err >&5
20909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910   (exit $ac_status); } &&
20911          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20912   { (case "(($ac_try" in
20913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914   *) ac_try_echo=$ac_try;;
20915 esac
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917   (eval "$ac_try") 2>&5
20918   ac_status=$?
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); }; } &&
20921          { ac_try='test -s conftest.$ac_objext'
20922   { (case "(($ac_try" in
20923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924   *) ac_try_echo=$ac_try;;
20925 esac
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927   (eval "$ac_try") 2>&5
20928   ac_status=$?
20929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930   (exit $ac_status); }; }; then
20931   llvm_cv_cxx_visibility_inlines_hidden=yes
20932 else
20933   echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936         llvm_cv_cxx_visibility_inlines_hidden=no
20937 fi
20938
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940   CXXFLAGS="$oldcxxflags"
20941   ac_ext=c
20942 ac_cpp='$CPP $CPPFLAGS'
20943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20946
20947
20948 fi
20949 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20950 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20951 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20952   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20953
20954 else
20955   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20956
20957 fi
20958
20959
20960 if test "$llvm_cv_link_use_r" = "yes" ; then
20961   RPATH="-Wl,-R"
20962 else
20963   RPATH="-Wl,-rpath"
20964 fi
20965
20966
20967 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20968   RDYNAMIC="-Wl,-export-dynamic"
20969 else
20970   RDYNAMIC=""
20971 fi
20972
20973
20974
20975 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20976
20977
20978
20979
20980
20981
20982 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20983
20984 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20985
20986 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20987
20988 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20989
20990 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
20991
20992
20993 ac_config_files="$ac_config_files Makefile.config"
20994
20995
20996 ac_config_files="$ac_config_files llvm.spec"
20997
20998
20999 ac_config_files="$ac_config_files docs/doxygen.cfg"
21000
21001
21002 if test "${clang_src_root}" = ""; then
21003   clang_src_root="$srcdir/tools/clang"
21004 fi
21005 if test -f ${clang_src_root}/README.txt; then
21006     configh="include/clang/Config/config.h"
21007   doxy="docs/doxygen.cfg"
21008   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21009
21010   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21011
21012 fi
21013
21014 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21015
21016
21017 ac_config_commands="$ac_config_commands setup"
21018
21019 ac_config_commands="$ac_config_commands Makefile"
21020
21021
21022 ac_config_commands="$ac_config_commands Makefile.common"
21023
21024
21025 ac_config_commands="$ac_config_commands examples/Makefile"
21026
21027
21028 ac_config_commands="$ac_config_commands lib/Makefile"
21029
21030
21031 ac_config_commands="$ac_config_commands runtime/Makefile"
21032
21033
21034 ac_config_commands="$ac_config_commands test/Makefile"
21035
21036
21037 ac_config_commands="$ac_config_commands test/Makefile.tests"
21038
21039
21040 ac_config_commands="$ac_config_commands unittests/Makefile"
21041
21042
21043 ac_config_commands="$ac_config_commands tools/Makefile"
21044
21045
21046 ac_config_commands="$ac_config_commands utils/Makefile"
21047
21048
21049 ac_config_commands="$ac_config_commands projects/Makefile"
21050
21051
21052 ac_config_commands="$ac_config_commands bindings/Makefile"
21053
21054
21055 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21056
21057
21058
21059 cat >confcache <<\_ACEOF
21060 # This file is a shell script that caches the results of configure
21061 # tests run on this system so they can be shared between configure
21062 # scripts and configure runs, see configure's option --config-cache.
21063 # It is not useful on other systems.  If it contains results you don't
21064 # want to keep, you may remove or edit it.
21065 #
21066 # config.status only pays attention to the cache file if you give it
21067 # the --recheck option to rerun configure.
21068 #
21069 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21070 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21071 # following values.
21072
21073 _ACEOF
21074
21075 # The following way of writing the cache mishandles newlines in values,
21076 # but we know of no workaround that is simple, portable, and efficient.
21077 # So, we kill variables containing newlines.
21078 # Ultrix sh set writes to stderr and can't be redirected directly,
21079 # and sets the high bit in the cache file unless we assign to the vars.
21080 (
21081   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21082     eval ac_val=\$$ac_var
21083     case $ac_val in #(
21084     *${as_nl}*)
21085       case $ac_var in #(
21086       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21087 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21088       esac
21089       case $ac_var in #(
21090       _ | IFS | as_nl) ;; #(
21091       *) $as_unset $ac_var ;;
21092       esac ;;
21093     esac
21094   done
21095
21096   (set) 2>&1 |
21097     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21098     *${as_nl}ac_space=\ *)
21099       # `set' does not quote correctly, so add quotes (double-quote
21100       # substitution turns \\\\ into \\, and sed turns \\ into \).
21101       sed -n \
21102         "s/'/'\\\\''/g;
21103           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21104       ;; #(
21105     *)
21106       # `set' quotes correctly as required by POSIX, so do not add quotes.
21107       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21108       ;;
21109     esac |
21110     sort
21111 ) |
21112   sed '
21113      /^ac_cv_env_/b end
21114      t clear
21115      :clear
21116      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21117      t end
21118      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21119      :end' >>confcache
21120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21121   if test -w "$cache_file"; then
21122     test "x$cache_file" != "x/dev/null" &&
21123       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21124 echo "$as_me: updating cache $cache_file" >&6;}
21125     cat confcache >$cache_file
21126   else
21127     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21128 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21129   fi
21130 fi
21131 rm -f confcache
21132
21133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21134 # Let make expand exec_prefix.
21135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21136
21137 DEFS=-DHAVE_CONFIG_H
21138
21139 ac_libobjs=
21140 ac_ltlibobjs=
21141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21142   # 1. Remove the extension, and $U if already installed.
21143   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21144   ac_i=`echo "$ac_i" | sed "$ac_script"`
21145   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21146   #    will be set to the directory where LIBOBJS objects are built.
21147   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21148   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21149 done
21150 LIBOBJS=$ac_libobjs
21151
21152 LTLIBOBJS=$ac_ltlibobjs
21153
21154
21155 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21156   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21157 Usually this means the macro was only invoked conditionally." >&5
21158 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21159 Usually this means the macro was only invoked conditionally." >&2;}
21160    { (exit 1); exit 1; }; }
21161 fi
21162 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21163   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21164 Usually this means the macro was only invoked conditionally." >&5
21165 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21166 Usually this means the macro was only invoked conditionally." >&2;}
21167    { (exit 1); exit 1; }; }
21168 fi
21169
21170 : ${CONFIG_STATUS=./config.status}
21171 ac_clean_files_save=$ac_clean_files
21172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21175 cat >$CONFIG_STATUS <<_ACEOF
21176 #! $SHELL
21177 # Generated by $as_me.
21178 # Run this file to recreate the current configuration.
21179 # Compiler output produced by configure, useful for debugging
21180 # configure, is in config.log if it exists.
21181
21182 debug=false
21183 ac_cs_recheck=false
21184 ac_cs_silent=false
21185 SHELL=\${CONFIG_SHELL-$SHELL}
21186 _ACEOF
21187
21188 cat >>$CONFIG_STATUS <<\_ACEOF
21189 ## --------------------- ##
21190 ## M4sh Initialization.  ##
21191 ## --------------------- ##
21192
21193 # Be Bourne compatible
21194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21195   emulate sh
21196   NULLCMD=:
21197   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21198   # is contrary to our usage.  Disable this feature.
21199   alias -g '${1+"$@"}'='"$@"'
21200   setopt NO_GLOB_SUBST
21201 else
21202   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21203 fi
21204 BIN_SH=xpg4; export BIN_SH # for Tru64
21205 DUALCASE=1; export DUALCASE # for MKS sh
21206
21207
21208 # PATH needs CR
21209 # Avoid depending upon Character Ranges.
21210 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21211 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21212 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21213 as_cr_digits='0123456789'
21214 as_cr_alnum=$as_cr_Letters$as_cr_digits
21215
21216 # The user is always right.
21217 if test "${PATH_SEPARATOR+set}" != set; then
21218   echo "#! /bin/sh" >conf$$.sh
21219   echo  "exit 0"   >>conf$$.sh
21220   chmod +x conf$$.sh
21221   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21222     PATH_SEPARATOR=';'
21223   else
21224     PATH_SEPARATOR=:
21225   fi
21226   rm -f conf$$.sh
21227 fi
21228
21229 # Support unset when possible.
21230 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21231   as_unset=unset
21232 else
21233   as_unset=false
21234 fi
21235
21236
21237 # IFS
21238 # We need space, tab and new line, in precisely that order.  Quoting is
21239 # there to prevent editors from complaining about space-tab.
21240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21241 # splitting by setting IFS to empty value.)
21242 as_nl='
21243 '
21244 IFS=" ""        $as_nl"
21245
21246 # Find who we are.  Look in the path if we contain no directory separator.
21247 case $0 in
21248   *[\\/]* ) as_myself=$0 ;;
21249   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21250 for as_dir in $PATH
21251 do
21252   IFS=$as_save_IFS
21253   test -z "$as_dir" && as_dir=.
21254   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21255 done
21256 IFS=$as_save_IFS
21257
21258      ;;
21259 esac
21260 # We did not find ourselves, most probably we were run as `sh COMMAND'
21261 # in which case we are not to be found in the path.
21262 if test "x$as_myself" = x; then
21263   as_myself=$0
21264 fi
21265 if test ! -f "$as_myself"; then
21266   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21267   { (exit 1); exit 1; }
21268 fi
21269
21270 # Work around bugs in pre-3.0 UWIN ksh.
21271 for as_var in ENV MAIL MAILPATH
21272 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21273 done
21274 PS1='$ '
21275 PS2='> '
21276 PS4='+ '
21277
21278 # NLS nuisances.
21279 for as_var in \
21280   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21281   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21282   LC_TELEPHONE LC_TIME
21283 do
21284   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21285     eval $as_var=C; export $as_var
21286   else
21287     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21288   fi
21289 done
21290
21291 # Required to use basename.
21292 if expr a : '\(a\)' >/dev/null 2>&1 &&
21293    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21294   as_expr=expr
21295 else
21296   as_expr=false
21297 fi
21298
21299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21300   as_basename=basename
21301 else
21302   as_basename=false
21303 fi
21304
21305
21306 # Name of the executable.
21307 as_me=`$as_basename -- "$0" ||
21308 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21309          X"$0" : 'X\(//\)$' \| \
21310          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21311 echo X/"$0" |
21312     sed '/^.*\/\([^/][^/]*\)\/*$/{
21313             s//\1/
21314             q
21315           }
21316           /^X\/\(\/\/\)$/{
21317             s//\1/
21318             q
21319           }
21320           /^X\/\(\/\).*/{
21321             s//\1/
21322             q
21323           }
21324           s/.*/./; q'`
21325
21326 # CDPATH.
21327 $as_unset CDPATH
21328
21329
21330
21331   as_lineno_1=$LINENO
21332   as_lineno_2=$LINENO
21333   test "x$as_lineno_1" != "x$as_lineno_2" &&
21334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21335
21336   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21337   # uniformly replaced by the line number.  The first 'sed' inserts a
21338   # line-number line after each line using $LINENO; the second 'sed'
21339   # does the real work.  The second script uses 'N' to pair each
21340   # line-number line with the line containing $LINENO, and appends
21341   # trailing '-' during substitution so that $LINENO is not a special
21342   # case at line end.
21343   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21344   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21345   # E. McMahon (1931-1989) for sed's syntax.  :-)
21346   sed -n '
21347     p
21348     /[$]LINENO/=
21349   ' <$as_myself |
21350     sed '
21351       s/[$]LINENO.*/&-/
21352       t lineno
21353       b
21354       :lineno
21355       N
21356       :loop
21357       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21358       t loop
21359       s/-\n.*//
21360     ' >$as_me.lineno &&
21361   chmod +x "$as_me.lineno" ||
21362     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21363    { (exit 1); exit 1; }; }
21364
21365   # Don't try to exec as it changes $[0], causing all sort of problems
21366   # (the dirname of $[0] is not the place where we might find the
21367   # original and so on.  Autoconf is especially sensitive to this).
21368   . "./$as_me.lineno"
21369   # Exit status is that of the last command.
21370   exit
21371 }
21372
21373
21374 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21375   as_dirname=dirname
21376 else
21377   as_dirname=false
21378 fi
21379
21380 ECHO_C= ECHO_N= ECHO_T=
21381 case `echo -n x` in
21382 -n*)
21383   case `echo 'x\c'` in
21384   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21385   *)   ECHO_C='\c';;
21386   esac;;
21387 *)
21388   ECHO_N='-n';;
21389 esac
21390
21391 if expr a : '\(a\)' >/dev/null 2>&1 &&
21392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21393   as_expr=expr
21394 else
21395   as_expr=false
21396 fi
21397
21398 rm -f conf$$ conf$$.exe conf$$.file
21399 if test -d conf$$.dir; then
21400   rm -f conf$$.dir/conf$$.file
21401 else
21402   rm -f conf$$.dir
21403   mkdir conf$$.dir
21404 fi
21405 echo >conf$$.file
21406 if ln -s conf$$.file conf$$ 2>/dev/null; then
21407   as_ln_s='ln -s'
21408   # ... but there are two gotchas:
21409   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21410   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21411   # In both cases, we have to default to `cp -p'.
21412   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21413     as_ln_s='cp -p'
21414 elif ln conf$$.file conf$$ 2>/dev/null; then
21415   as_ln_s=ln
21416 else
21417   as_ln_s='cp -p'
21418 fi
21419 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21420 rmdir conf$$.dir 2>/dev/null
21421
21422 if mkdir -p . 2>/dev/null; then
21423   as_mkdir_p=:
21424 else
21425   test -d ./-p && rmdir ./-p
21426   as_mkdir_p=false
21427 fi
21428
21429 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21430 # systems may use methods other than mode bits to determine executability.
21431 cat >conf$$.file <<_ASEOF
21432 #! /bin/sh
21433 exit 0
21434 _ASEOF
21435 chmod +x conf$$.file
21436 if test -x conf$$.file >/dev/null 2>&1; then
21437   as_executable_p="test -x"
21438 else
21439   as_executable_p=:
21440 fi
21441 rm -f conf$$.file
21442
21443 # Sed expression to map a string onto a valid CPP name.
21444 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21445
21446 # Sed expression to map a string onto a valid variable name.
21447 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21448
21449
21450 exec 6>&1
21451
21452 # Save the log message, to keep $[0] and so on meaningful, and to
21453 # report actual input values of CONFIG_FILES etc. instead of their
21454 # values after options handling.
21455 ac_log="
21456 This file was extended by LLVM $as_me 3.1svn, which was
21457 generated by GNU Autoconf 2.60.  Invocation command line was
21458
21459   CONFIG_FILES    = $CONFIG_FILES
21460   CONFIG_HEADERS  = $CONFIG_HEADERS
21461   CONFIG_LINKS    = $CONFIG_LINKS
21462   CONFIG_COMMANDS = $CONFIG_COMMANDS
21463   $ $0 $@
21464
21465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21466 "
21467
21468 _ACEOF
21469
21470 cat >>$CONFIG_STATUS <<_ACEOF
21471 # Files that config.status was made for.
21472 config_files="$ac_config_files"
21473 config_headers="$ac_config_headers"
21474 config_commands="$ac_config_commands"
21475
21476 _ACEOF
21477
21478 cat >>$CONFIG_STATUS <<\_ACEOF
21479 ac_cs_usage="\
21480 \`$as_me' instantiates files from templates according to the
21481 current configuration.
21482
21483 Usage: $0 [OPTIONS] [FILE]...
21484
21485   -h, --help       print this help, then exit
21486   -V, --version    print version number, then exit
21487   -q, --quiet      do not print progress messages
21488   -d, --debug      don't remove temporary files
21489       --recheck    update $as_me by reconfiguring in the same conditions
21490   --file=FILE[:TEMPLATE]
21491                    instantiate the configuration file FILE
21492   --header=FILE[:TEMPLATE]
21493                    instantiate the configuration header FILE
21494
21495 Configuration files:
21496 $config_files
21497
21498 Configuration headers:
21499 $config_headers
21500
21501 Configuration commands:
21502 $config_commands
21503
21504 Report bugs to <bug-autoconf@gnu.org>."
21505
21506 _ACEOF
21507 cat >>$CONFIG_STATUS <<_ACEOF
21508 ac_cs_version="\\
21509 LLVM config.status 3.1svn
21510 configured by $0, generated by GNU Autoconf 2.60,
21511   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21512
21513 Copyright (C) 2006 Free Software Foundation, Inc.
21514 This config.status script is free software; the Free Software Foundation
21515 gives unlimited permission to copy, distribute and modify it."
21516
21517 ac_pwd='$ac_pwd'
21518 srcdir='$srcdir'
21519 INSTALL='$INSTALL'
21520 _ACEOF
21521
21522 cat >>$CONFIG_STATUS <<\_ACEOF
21523 # If no file are specified by the user, then we need to provide default
21524 # value.  By we need to know if files were specified by the user.
21525 ac_need_defaults=:
21526 while test $# != 0
21527 do
21528   case $1 in
21529   --*=*)
21530     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21531     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21532     ac_shift=:
21533     ;;
21534   *)
21535     ac_option=$1
21536     ac_optarg=$2
21537     ac_shift=shift
21538     ;;
21539   esac
21540
21541   case $ac_option in
21542   # Handling of the options.
21543   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21544     ac_cs_recheck=: ;;
21545   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21546     echo "$ac_cs_version"; exit ;;
21547   --debug | --debu | --deb | --de | --d | -d )
21548     debug=: ;;
21549   --file | --fil | --fi | --f )
21550     $ac_shift
21551     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21552     ac_need_defaults=false;;
21553   --header | --heade | --head | --hea )
21554     $ac_shift
21555     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21556     ac_need_defaults=false;;
21557   --he | --h)
21558     # Conflict between --help and --header
21559     { echo "$as_me: error: ambiguous option: $1
21560 Try \`$0 --help' for more information." >&2
21561    { (exit 1); exit 1; }; };;
21562   --help | --hel | -h )
21563     echo "$ac_cs_usage"; exit ;;
21564   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21565   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21566     ac_cs_silent=: ;;
21567
21568   # This is an error.
21569   -*) { echo "$as_me: error: unrecognized option: $1
21570 Try \`$0 --help' for more information." >&2
21571    { (exit 1); exit 1; }; } ;;
21572
21573   *) ac_config_targets="$ac_config_targets $1"
21574      ac_need_defaults=false ;;
21575
21576   esac
21577   shift
21578 done
21579
21580 ac_configure_extra_args=
21581
21582 if $ac_cs_silent; then
21583   exec 6>/dev/null
21584   ac_configure_extra_args="$ac_configure_extra_args --silent"
21585 fi
21586
21587 _ACEOF
21588 cat >>$CONFIG_STATUS <<_ACEOF
21589 if \$ac_cs_recheck; then
21590   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21591   CONFIG_SHELL=$SHELL
21592   export CONFIG_SHELL
21593   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21594 fi
21595
21596 _ACEOF
21597 cat >>$CONFIG_STATUS <<\_ACEOF
21598 exec 5>>config.log
21599 {
21600   echo
21601   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21602 ## Running $as_me. ##
21603 _ASBOX
21604   echo "$ac_log"
21605 } >&5
21606
21607 _ACEOF
21608 cat >>$CONFIG_STATUS <<_ACEOF
21609 #
21610 # INIT-COMMANDS
21611 #
21612 llvm_src="${srcdir}"
21613
21614 _ACEOF
21615
21616 cat >>$CONFIG_STATUS <<\_ACEOF
21617
21618 # Handling of arguments.
21619 for ac_config_target in $ac_config_targets
21620 do
21621   case $ac_config_target in
21622     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21623     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21624     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21625     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21626     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21627     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21628     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21629     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21630     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21631     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21632     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21633     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21634     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21635     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21636     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21637     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21638     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21639     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21640     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21641     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21642     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21643     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21644     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21645     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21646     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21647     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21648     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21649
21650   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21651 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21652    { (exit 1); exit 1; }; };;
21653   esac
21654 done
21655
21656
21657 # If the user did not use the arguments to specify the items to instantiate,
21658 # then the envvar interface is used.  Set only those that are not.
21659 # We use the long form for the default assignment because of an extremely
21660 # bizarre bug on SunOS 4.1.3.
21661 if $ac_need_defaults; then
21662   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21663   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21664   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21665 fi
21666
21667 # Have a temporary directory for convenience.  Make it in the build tree
21668 # simply because there is no reason against having it here, and in addition,
21669 # creating and moving files from /tmp can sometimes cause problems.
21670 # Hook for its removal unless debugging.
21671 # Note that there is a small window in which the directory will not be cleaned:
21672 # after its creation but before its name has been assigned to `$tmp'.
21673 $debug ||
21674 {
21675   tmp=
21676   trap 'exit_status=$?
21677   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21678 ' 0
21679   trap '{ (exit 1); exit 1; }' 1 2 13 15
21680 }
21681 # Create a (secure) tmp directory for tmp files.
21682
21683 {
21684   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21685   test -n "$tmp" && test -d "$tmp"
21686 }  ||
21687 {
21688   tmp=./conf$$-$RANDOM
21689   (umask 077 && mkdir "$tmp")
21690 } ||
21691 {
21692    echo "$me: cannot create a temporary directory in ." >&2
21693    { (exit 1); exit 1; }
21694 }
21695
21696 #
21697 # Set up the sed scripts for CONFIG_FILES section.
21698 #
21699
21700 # No need to generate the scripts if there are no CONFIG_FILES.
21701 # This happens for instance when ./config.status config.h
21702 if test -n "$CONFIG_FILES"; then
21703
21704 _ACEOF
21705
21706
21707
21708 ac_delim='%!_!# '
21709 for ac_last_try in false false false false false :; do
21710   cat >conf$$subs.sed <<_ACEOF
21711 SHELL!$SHELL$ac_delim
21712 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21713 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21714 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21715 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21716 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21717 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21718 exec_prefix!$exec_prefix$ac_delim
21719 prefix!$prefix$ac_delim
21720 program_transform_name!$program_transform_name$ac_delim
21721 bindir!$bindir$ac_delim
21722 sbindir!$sbindir$ac_delim
21723 libexecdir!$libexecdir$ac_delim
21724 datarootdir!$datarootdir$ac_delim
21725 datadir!$datadir$ac_delim
21726 sysconfdir!$sysconfdir$ac_delim
21727 sharedstatedir!$sharedstatedir$ac_delim
21728 localstatedir!$localstatedir$ac_delim
21729 includedir!$includedir$ac_delim
21730 oldincludedir!$oldincludedir$ac_delim
21731 docdir!$docdir$ac_delim
21732 infodir!$infodir$ac_delim
21733 htmldir!$htmldir$ac_delim
21734 dvidir!$dvidir$ac_delim
21735 pdfdir!$pdfdir$ac_delim
21736 psdir!$psdir$ac_delim
21737 libdir!$libdir$ac_delim
21738 localedir!$localedir$ac_delim
21739 mandir!$mandir$ac_delim
21740 DEFS!$DEFS$ac_delim
21741 ECHO_C!$ECHO_C$ac_delim
21742 ECHO_N!$ECHO_N$ac_delim
21743 ECHO_T!$ECHO_T$ac_delim
21744 LIBS!$LIBS$ac_delim
21745 build_alias!$build_alias$ac_delim
21746 host_alias!$host_alias$ac_delim
21747 target_alias!$target_alias$ac_delim
21748 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21749 CC!$CC$ac_delim
21750 CFLAGS!$CFLAGS$ac_delim
21751 LDFLAGS!$LDFLAGS$ac_delim
21752 CPPFLAGS!$CPPFLAGS$ac_delim
21753 ac_ct_CC!$ac_ct_CC$ac_delim
21754 EXEEXT!$EXEEXT$ac_delim
21755 OBJEXT!$OBJEXT$ac_delim
21756 CXX!$CXX$ac_delim
21757 CXXFLAGS!$CXXFLAGS$ac_delim
21758 ac_ct_CXX!$ac_ct_CXX$ac_delim
21759 CPP!$CPP$ac_delim
21760 subdirs!$subdirs$ac_delim
21761 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21762 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21763 build!$build$ac_delim
21764 build_cpu!$build_cpu$ac_delim
21765 build_vendor!$build_vendor$ac_delim
21766 build_os!$build_os$ac_delim
21767 host!$host$ac_delim
21768 host_cpu!$host_cpu$ac_delim
21769 host_vendor!$host_vendor$ac_delim
21770 host_os!$host_os$ac_delim
21771 target!$target$ac_delim
21772 target_cpu!$target_cpu$ac_delim
21773 target_vendor!$target_vendor$ac_delim
21774 target_os!$target_os$ac_delim
21775 OS!$OS$ac_delim
21776 HOST_OS!$HOST_OS$ac_delim
21777 TARGET_OS!$TARGET_OS$ac_delim
21778 LINKALL!$LINKALL$ac_delim
21779 NOLINKALL!$NOLINKALL$ac_delim
21780 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21781 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21782 ARCH!$ARCH$ac_delim
21783 ENDIAN!$ENDIAN$ac_delim
21784 GREP!$GREP$ac_delim
21785 EGREP!$EGREP$ac_delim
21786 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21787 BUILD_CC!$BUILD_CC$ac_delim
21788 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21789 BUILD_CXX!$BUILD_CXX$ac_delim
21790 CVSBUILD!$CVSBUILD$ac_delim
21791 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21792 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21793 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21794 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21795 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21796 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21797 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21798 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21799 JIT!$JIT$ac_delim
21800 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21801 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21802 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21803 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21804 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21805 ENABLE_PIC!$ENABLE_PIC$ac_delim
21806 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21807 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21808 _ACEOF
21809
21810   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21811     break
21812   elif $ac_last_try; then
21813     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21814 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21815    { (exit 1); exit 1; }; }
21816   else
21817     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21818   fi
21819 done
21820
21821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21822 if test -n "$ac_eof"; then
21823   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21824   ac_eof=`expr $ac_eof + 1`
21825 fi
21826
21827 cat >>$CONFIG_STATUS <<_ACEOF
21828 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21830 _ACEOF
21831 sed '
21832 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21833 s/^/s,@/; s/!/@,|#_!!_#|/
21834 :n
21835 t n
21836 s/'"$ac_delim"'$/,g/; t
21837 s/$/\\/; p
21838 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21839 ' >>$CONFIG_STATUS <conf$$subs.sed
21840 rm -f conf$$subs.sed
21841 cat >>$CONFIG_STATUS <<_ACEOF
21842 CEOF$ac_eof
21843 _ACEOF
21844
21845
21846 ac_delim='%!_!# '
21847 for ac_last_try in false false false false false :; do
21848   cat >conf$$subs.sed <<_ACEOF
21849 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21850 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21851 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21852 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21853 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21854 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21855 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21856 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21857 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21858 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21859 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21860 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21861 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21862 NM!$NM$ac_delim
21863 ifGNUmake!$ifGNUmake$ac_delim
21864 LN_S!$LN_S$ac_delim
21865 CMP!$CMP$ac_delim
21866 CP!$CP$ac_delim
21867 DATE!$DATE$ac_delim
21868 FIND!$FIND$ac_delim
21869 MKDIR!$MKDIR$ac_delim
21870 MV!$MV$ac_delim
21871 RANLIB!$RANLIB$ac_delim
21872 AR!$AR$ac_delim
21873 RM!$RM$ac_delim
21874 SED!$SED$ac_delim
21875 TAR!$TAR$ac_delim
21876 BINPWD!$BINPWD$ac_delim
21877 GRAPHVIZ!$GRAPHVIZ$ac_delim
21878 DOT!$DOT$ac_delim
21879 FDP!$FDP$ac_delim
21880 NEATO!$NEATO$ac_delim
21881 TWOPI!$TWOPI$ac_delim
21882 CIRCO!$CIRCO$ac_delim
21883 GV!$GV$ac_delim
21884 DOTTY!$DOTTY$ac_delim
21885 XDOT_PY!$XDOT_PY$ac_delim
21886 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21887 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21888 INSTALL_DATA!$INSTALL_DATA$ac_delim
21889 BZIP2!$BZIP2$ac_delim
21890 CAT!$CAT$ac_delim
21891 DOXYGEN!$DOXYGEN$ac_delim
21892 GROFF!$GROFF$ac_delim
21893 GZIPBIN!$GZIPBIN$ac_delim
21894 POD2HTML!$POD2HTML$ac_delim
21895 POD2MAN!$POD2MAN$ac_delim
21896 PDFROFF!$PDFROFF$ac_delim
21897 RUNTEST!$RUNTEST$ac_delim
21898 TCLSH!$TCLSH$ac_delim
21899 ZIP!$ZIP$ac_delim
21900 OCAMLC!$OCAMLC$ac_delim
21901 OCAMLOPT!$OCAMLOPT$ac_delim
21902 OCAMLDEP!$OCAMLDEP$ac_delim
21903 OCAMLDOC!$OCAMLDOC$ac_delim
21904 GAS!$GAS$ac_delim
21905 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21906 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21907 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21908 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21909 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21910 LIBADD_DL!$LIBADD_DL$ac_delim
21911 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21912 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21913 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21914 USE_UDIS86!$USE_UDIS86$ac_delim
21915 USE_OPROFILE!$USE_OPROFILE$ac_delim
21916 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21917 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21918 MMAP_FILE!$MMAP_FILE$ac_delim
21919 SHLIBEXT!$SHLIBEXT$ac_delim
21920 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21921 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21922 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21923 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21924 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21925 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21926 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21927 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21928 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21929 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21930 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21931 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21932 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21933 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21934 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21935 RPATH!$RPATH$ac_delim
21936 RDYNAMIC!$RDYNAMIC$ac_delim
21937 LIBOBJS!$LIBOBJS$ac_delim
21938 LTLIBOBJS!$LTLIBOBJS$ac_delim
21939 _ACEOF
21940
21941   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21942     break
21943   elif $ac_last_try; then
21944     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21945 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21946    { (exit 1); exit 1; }; }
21947   else
21948     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21949   fi
21950 done
21951
21952 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21953 if test -n "$ac_eof"; then
21954   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21955   ac_eof=`expr $ac_eof + 1`
21956 fi
21957
21958 cat >>$CONFIG_STATUS <<_ACEOF
21959 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21961 _ACEOF
21962 sed '
21963 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21964 s/^/s,@/; s/!/@,|#_!!_#|/
21965 :n
21966 t n
21967 s/'"$ac_delim"'$/,g/; t
21968 s/$/\\/; p
21969 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21970 ' >>$CONFIG_STATUS <conf$$subs.sed
21971 rm -f conf$$subs.sed
21972 cat >>$CONFIG_STATUS <<_ACEOF
21973 :end
21974 s/|#_!!_#|//g
21975 CEOF$ac_eof
21976 _ACEOF
21977
21978
21979 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21980 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21981 # trailing colons and then remove the whole line if VPATH becomes empty
21982 # (actually we leave an empty line to preserve line numbers).
21983 if test "x$srcdir" = x.; then
21984   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21985 s/:*\$(srcdir):*/:/
21986 s/:*\${srcdir}:*/:/
21987 s/:*@srcdir@:*/:/
21988 s/^\([^=]*=[     ]*\):*/\1/
21989 s/:*$//
21990 s/^[^=]*=[       ]*$//
21991 }'
21992 fi
21993
21994 cat >>$CONFIG_STATUS <<\_ACEOF
21995 fi # test -n "$CONFIG_FILES"
21996
21997
21998 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21999 do
22000   case $ac_tag in
22001   :[FHLC]) ac_mode=$ac_tag; continue;;
22002   esac
22003   case $ac_mode$ac_tag in
22004   :[FHL]*:*);;
22005   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22006 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22007    { (exit 1); exit 1; }; };;
22008   :[FH]-) ac_tag=-:-;;
22009   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22010   esac
22011   ac_save_IFS=$IFS
22012   IFS=:
22013   set x $ac_tag
22014   IFS=$ac_save_IFS
22015   shift
22016   ac_file=$1
22017   shift
22018
22019   case $ac_mode in
22020   :L) ac_source=$1;;
22021   :[FH])
22022     ac_file_inputs=
22023     for ac_f
22024     do
22025       case $ac_f in
22026       -) ac_f="$tmp/stdin";;
22027       *) # Look for the file first in the build tree, then in the source tree
22028          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22029          # because $ac_f cannot contain `:'.
22030          test -f "$ac_f" ||
22031            case $ac_f in
22032            [\\/$]*) false;;
22033            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22034            esac ||
22035            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22036 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22037    { (exit 1); exit 1; }; };;
22038       esac
22039       ac_file_inputs="$ac_file_inputs $ac_f"
22040     done
22041
22042     # Let's still pretend it is `configure' which instantiates (i.e., don't
22043     # use $as_me), people would be surprised to read:
22044     #    /* config.h.  Generated by config.status.  */
22045     configure_input="Generated from "`IFS=:
22046           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22047     if test x"$ac_file" != x-; then
22048       configure_input="$ac_file.  $configure_input"
22049       { echo "$as_me:$LINENO: creating $ac_file" >&5
22050 echo "$as_me: creating $ac_file" >&6;}
22051     fi
22052
22053     case $ac_tag in
22054     *:-:* | *:-) cat >"$tmp/stdin";;
22055     esac
22056     ;;
22057   esac
22058
22059   ac_dir=`$as_dirname -- "$ac_file" ||
22060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061          X"$ac_file" : 'X\(//\)[^/]' \| \
22062          X"$ac_file" : 'X\(//\)$' \| \
22063          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22064 echo X"$ac_file" |
22065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22066             s//\1/
22067             q
22068           }
22069           /^X\(\/\/\)[^/].*/{
22070             s//\1/
22071             q
22072           }
22073           /^X\(\/\/\)$/{
22074             s//\1/
22075             q
22076           }
22077           /^X\(\/\).*/{
22078             s//\1/
22079             q
22080           }
22081           s/.*/./; q'`
22082   { as_dir="$ac_dir"
22083   case $as_dir in #(
22084   -*) as_dir=./$as_dir;;
22085   esac
22086   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22087     as_dirs=
22088     while :; do
22089       case $as_dir in #(
22090       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22091       *) as_qdir=$as_dir;;
22092       esac
22093       as_dirs="'$as_qdir' $as_dirs"
22094       as_dir=`$as_dirname -- "$as_dir" ||
22095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22096          X"$as_dir" : 'X\(//\)[^/]' \| \
22097          X"$as_dir" : 'X\(//\)$' \| \
22098          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22099 echo X"$as_dir" |
22100     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22101             s//\1/
22102             q
22103           }
22104           /^X\(\/\/\)[^/].*/{
22105             s//\1/
22106             q
22107           }
22108           /^X\(\/\/\)$/{
22109             s//\1/
22110             q
22111           }
22112           /^X\(\/\).*/{
22113             s//\1/
22114             q
22115           }
22116           s/.*/./; q'`
22117       test -d "$as_dir" && break
22118     done
22119     test -z "$as_dirs" || eval "mkdir $as_dirs"
22120   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22121 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22122    { (exit 1); exit 1; }; }; }
22123   ac_builddir=.
22124
22125 case "$ac_dir" in
22126 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22127 *)
22128   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22129   # A ".." for each directory in $ac_dir_suffix.
22130   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22131   case $ac_top_builddir_sub in
22132   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22133   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22134   esac ;;
22135 esac
22136 ac_abs_top_builddir=$ac_pwd
22137 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22138 # for backward compatibility:
22139 ac_top_builddir=$ac_top_build_prefix
22140
22141 case $srcdir in
22142   .)  # We are building in place.
22143     ac_srcdir=.
22144     ac_top_srcdir=$ac_top_builddir_sub
22145     ac_abs_top_srcdir=$ac_pwd ;;
22146   [\\/]* | ?:[\\/]* )  # Absolute name.
22147     ac_srcdir=$srcdir$ac_dir_suffix;
22148     ac_top_srcdir=$srcdir
22149     ac_abs_top_srcdir=$srcdir ;;
22150   *) # Relative name.
22151     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22152     ac_top_srcdir=$ac_top_build_prefix$srcdir
22153     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22154 esac
22155 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22156
22157
22158   case $ac_mode in
22159   :F)
22160   #
22161   # CONFIG_FILE
22162   #
22163
22164   case $INSTALL in
22165   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22166   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22167   esac
22168 _ACEOF
22169
22170 cat >>$CONFIG_STATUS <<\_ACEOF
22171 # If the template does not know about datarootdir, expand it.
22172 # FIXME: This hack should be removed a few years after 2.60.
22173 ac_datarootdir_hack=; ac_datarootdir_seen=
22174
22175 case `sed -n '/datarootdir/ {
22176   p
22177   q
22178 }
22179 /@datadir@/p
22180 /@docdir@/p
22181 /@infodir@/p
22182 /@localedir@/p
22183 /@mandir@/p
22184 ' $ac_file_inputs` in
22185 *datarootdir*) ac_datarootdir_seen=yes;;
22186 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22187   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22188 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22189 _ACEOF
22190 cat >>$CONFIG_STATUS <<_ACEOF
22191   ac_datarootdir_hack='
22192   s&@datadir@&$datadir&g
22193   s&@docdir@&$docdir&g
22194   s&@infodir@&$infodir&g
22195   s&@localedir@&$localedir&g
22196   s&@mandir@&$mandir&g
22197     s&\\\${datarootdir}&$datarootdir&g' ;;
22198 esac
22199 _ACEOF
22200
22201 # Neutralize VPATH when `$srcdir' = `.'.
22202 # Shell code in configure.ac might set extrasub.
22203 # FIXME: do we really want to maintain this feature?
22204 cat >>$CONFIG_STATUS <<_ACEOF
22205   sed "$ac_vpsub
22206 $extrasub
22207 _ACEOF
22208 cat >>$CONFIG_STATUS <<\_ACEOF
22209 :t
22210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22211 s&@configure_input@&$configure_input&;t t
22212 s&@top_builddir@&$ac_top_builddir_sub&;t t
22213 s&@srcdir@&$ac_srcdir&;t t
22214 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22215 s&@top_srcdir@&$ac_top_srcdir&;t t
22216 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22217 s&@builddir@&$ac_builddir&;t t
22218 s&@abs_builddir@&$ac_abs_builddir&;t t
22219 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22220 s&@INSTALL@&$ac_INSTALL&;t t
22221 $ac_datarootdir_hack
22222 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22223
22224 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22225   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22226   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22227   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22228 which seems to be undefined.  Please make sure it is defined." >&5
22229 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22230 which seems to be undefined.  Please make sure it is defined." >&2;}
22231
22232   rm -f "$tmp/stdin"
22233   case $ac_file in
22234   -) cat "$tmp/out"; rm -f "$tmp/out";;
22235   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22236   esac
22237  ;;
22238   :H)
22239   #
22240   # CONFIG_HEADER
22241   #
22242 _ACEOF
22243
22244 # Transform confdefs.h into a sed script `conftest.defines', that
22245 # substitutes the proper values into config.h.in to produce config.h.
22246 rm -f conftest.defines conftest.tail
22247 # First, append a space to every undef/define line, to ease matching.
22248 echo 's/$/ /' >conftest.defines
22249 # Then, protect against being on the right side of a sed subst, or in
22250 # an unquoted here document, in config.status.  If some macros were
22251 # called several times there might be several #defines for the same
22252 # symbol, which is useless.  But do not sort them, since the last
22253 # AC_DEFINE must be honored.
22254 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22255 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22256 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22257 # PARAMS is the parameter list in the macro definition--in most cases, it's
22258 # just an empty string.
22259 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22260 ac_dB='\\)[      (].*,\\1define\\2'
22261 ac_dC=' '
22262 ac_dD=' ,'
22263
22264 uniq confdefs.h |
22265   sed -n '
22266         t rset
22267         :rset
22268         s/^[     ]*#[    ]*define[       ][      ]*//
22269         t ok
22270         d
22271         :ok
22272         s/[\\&,]/\\&/g
22273         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22274         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22275   ' >>conftest.defines
22276
22277 # Remove the space that was appended to ease matching.
22278 # Then replace #undef with comments.  This is necessary, for
22279 # example, in the case of _POSIX_SOURCE, which is predefined and required
22280 # on some systems where configure will not decide to define it.
22281 # (The regexp can be short, since the line contains either #define or #undef.)
22282 echo 's/ $//
22283 s,^[     #]*u.*,/* & */,' >>conftest.defines
22284
22285 # Break up conftest.defines:
22286 ac_max_sed_lines=50
22287
22288 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22289 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22290 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22291 # et cetera.
22292 ac_in='$ac_file_inputs'
22293 ac_out='"$tmp/out1"'
22294 ac_nxt='"$tmp/out2"'
22295
22296 while :
22297 do
22298   # Write a here document:
22299     cat >>$CONFIG_STATUS <<_ACEOF
22300     # First, check the format of the line:
22301     cat >"\$tmp/defines.sed" <<\\CEOF
22302 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22303 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22304 b
22305 :def
22306 _ACEOF
22307   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22308   echo 'CEOF
22309     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22310   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22311   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22312   grep . conftest.tail >/dev/null || break
22313   rm -f conftest.defines
22314   mv conftest.tail conftest.defines
22315 done
22316 rm -f conftest.defines conftest.tail
22317
22318 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22319 cat >>$CONFIG_STATUS <<\_ACEOF
22320   if test x"$ac_file" != x-; then
22321     echo "/* $configure_input  */" >"$tmp/config.h"
22322     cat "$ac_result" >>"$tmp/config.h"
22323     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22324       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22325 echo "$as_me: $ac_file is unchanged" >&6;}
22326     else
22327       rm -f $ac_file
22328       mv "$tmp/config.h" $ac_file
22329     fi
22330   else
22331     echo "/* $configure_input  */"
22332     cat "$ac_result"
22333   fi
22334   rm -f "$tmp/out12"
22335  ;;
22336
22337   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22338 echo "$as_me: executing $ac_file commands" >&6;}
22339  ;;
22340   esac
22341
22342
22343   case $ac_file$ac_mode in
22344     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22345    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22346     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22347    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22348     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22349    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22350     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22351    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22352     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22353    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22354     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22355    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22356     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22357    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22358     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22359    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22360     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22361    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22362     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22363    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22364     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22365    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22366     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22367    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22368     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22369    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22370
22371   esac
22372 done # for ac_tag
22373
22374
22375 { (exit 0); exit 0; }
22376 _ACEOF
22377 chmod +x $CONFIG_STATUS
22378 ac_clean_files=$ac_clean_files_save
22379
22380
22381 # configure is writing to config.log, and then calls config.status.
22382 # config.status does its own redirection, appending to config.log.
22383 # Unfortunately, on DOS this fails, as config.log is still kept open
22384 # by configure, so config.status won't be able to write to it; its
22385 # output is simply discarded.  So we exec the FD to /dev/null,
22386 # effectively closing config.log, so it can be properly (re)opened and
22387 # appended to by config.status.  When coming back to configure, we
22388 # need to make the FD available again.
22389 if test "$no_create" != yes; then
22390   ac_cs_success=:
22391   ac_config_status_args=
22392   test "$silent" = yes &&
22393     ac_config_status_args="$ac_config_status_args --quiet"
22394   exec 5>/dev/null
22395   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22396   exec 5>>config.log
22397   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22398   # would make configure fail if this is the last instruction.
22399   $ac_cs_success || { (exit 1); exit 1; }
22400 fi
22401
22402 #
22403 # CONFIG_SUBDIRS section.
22404 #
22405 if test "$no_recursion" != yes; then
22406
22407   # Remove --cache-file and --srcdir arguments so they do not pile up.
22408   ac_sub_configure_args=
22409   ac_prev=
22410   eval "set x $ac_configure_args"
22411   shift
22412   for ac_arg
22413   do
22414     if test -n "$ac_prev"; then
22415       ac_prev=
22416       continue
22417     fi
22418     case $ac_arg in
22419     -cache-file | --cache-file | --cache-fil | --cache-fi \
22420     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22421       ac_prev=cache_file ;;
22422     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22423     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22424     | --c=*)
22425       ;;
22426     --config-cache | -C)
22427       ;;
22428     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22429       ac_prev=srcdir ;;
22430     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22431       ;;
22432     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22433       ac_prev=prefix ;;
22434     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22435       ;;
22436     *)
22437       case $ac_arg in
22438       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22439       esac
22440       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22441     esac
22442   done
22443
22444   # Always prepend --prefix to ensure using the same prefix
22445   # in subdir configurations.
22446   ac_arg="--prefix=$prefix"
22447   case $ac_arg in
22448   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22449   esac
22450   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22451
22452   ac_popdir=`pwd`
22453   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22454
22455     # Do not complain, so a configure script can configure whichever
22456     # parts of a large source tree are present.
22457     test -d "$srcdir/$ac_dir" || continue
22458
22459     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22460     echo "$as_me:$LINENO: $ac_msg" >&5
22461     echo "$ac_msg" >&6
22462     { as_dir="$ac_dir"
22463   case $as_dir in #(
22464   -*) as_dir=./$as_dir;;
22465   esac
22466   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22467     as_dirs=
22468     while :; do
22469       case $as_dir in #(
22470       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22471       *) as_qdir=$as_dir;;
22472       esac
22473       as_dirs="'$as_qdir' $as_dirs"
22474       as_dir=`$as_dirname -- "$as_dir" ||
22475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22476          X"$as_dir" : 'X\(//\)[^/]' \| \
22477          X"$as_dir" : 'X\(//\)$' \| \
22478          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22479 echo X"$as_dir" |
22480     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22481             s//\1/
22482             q
22483           }
22484           /^X\(\/\/\)[^/].*/{
22485             s//\1/
22486             q
22487           }
22488           /^X\(\/\/\)$/{
22489             s//\1/
22490             q
22491           }
22492           /^X\(\/\).*/{
22493             s//\1/
22494             q
22495           }
22496           s/.*/./; q'`
22497       test -d "$as_dir" && break
22498     done
22499     test -z "$as_dirs" || eval "mkdir $as_dirs"
22500   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22501 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22502    { (exit 1); exit 1; }; }; }
22503     ac_builddir=.
22504
22505 case "$ac_dir" in
22506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22507 *)
22508   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22509   # A ".." for each directory in $ac_dir_suffix.
22510   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22511   case $ac_top_builddir_sub in
22512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22514   esac ;;
22515 esac
22516 ac_abs_top_builddir=$ac_pwd
22517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22518 # for backward compatibility:
22519 ac_top_builddir=$ac_top_build_prefix
22520
22521 case $srcdir in
22522   .)  # We are building in place.
22523     ac_srcdir=.
22524     ac_top_srcdir=$ac_top_builddir_sub
22525     ac_abs_top_srcdir=$ac_pwd ;;
22526   [\\/]* | ?:[\\/]* )  # Absolute name.
22527     ac_srcdir=$srcdir$ac_dir_suffix;
22528     ac_top_srcdir=$srcdir
22529     ac_abs_top_srcdir=$srcdir ;;
22530   *) # Relative name.
22531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22532     ac_top_srcdir=$ac_top_build_prefix$srcdir
22533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22534 esac
22535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22536
22537
22538     cd "$ac_dir"
22539
22540     # Check for guested configure; otherwise get Cygnus style configure.
22541     if test -f "$ac_srcdir/configure.gnu"; then
22542       ac_sub_configure=$ac_srcdir/configure.gnu
22543     elif test -f "$ac_srcdir/configure"; then
22544       ac_sub_configure=$ac_srcdir/configure
22545     elif test -f "$ac_srcdir/configure.in"; then
22546       # This should be Cygnus configure.
22547       ac_sub_configure=$ac_aux_dir/configure
22548     else
22549       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22550 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22551       ac_sub_configure=
22552     fi
22553
22554     # The recursion is here.
22555     if test -n "$ac_sub_configure"; then
22556       # Make the cache file name correct relative to the subdirectory.
22557       case $cache_file in
22558       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22559       *) # Relative name.
22560         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22561       esac
22562
22563       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22564 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22565       # The eval makes quoting arguments work.
22566       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22567            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22568         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22569 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22570    { (exit 1); exit 1; }; }
22571     fi
22572
22573     cd "$ac_popdir"
22574   done
22575 fi
22576