Document the llvm.fabs intrinsic.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 HOST_ARCH
678 ENDIAN
679 GREP
680 EGREP
681 LLVM_CROSS_COMPILING
682 BUILD_CC
683 BUILD_EXEEXT
684 BUILD_CXX
685 CVSBUILD
686 ENABLE_LIBCPP
687 ENABLE_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_EXPENSIVE_CHECKS
691 EXPENSIVE_CHECKS
692 DEBUG_RUNTIME
693 DEBUG_SYMBOLS
694 JIT
695 TARGET_HAS_JIT
696 ENABLE_DOCS
697 ENABLE_DOXYGEN
698 LLVM_ENABLE_THREADS
699 ENABLE_PTHREADS
700 ENABLE_PIC
701 ENABLE_SHARED
702 ENABLE_EMBED_STDCXX
703 ENABLE_TIMESTAMPS
704 TARGETS_TO_BUILD
705 LLVM_ENUM_TARGETS
706 LLVM_ENUM_ASM_PRINTERS
707 LLVM_ENUM_ASM_PARSERS
708 LLVM_ENUM_DISASSEMBLERS
709 OPTIMIZE_OPTION
710 EXTRA_OPTIONS
711 EXTRA_LD_OPTIONS
712 CLANG_SRC_ROOT
713 BINUTILS_INCDIR
714 INTERNAL_PREFIX
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 PDFROFF
748 ZIP
749 OCAMLC
750 OCAMLOPT
751 OCAMLDEP
752 OCAMLDOC
753 GAS
754 HAVE_LINK_VERSION_SCRIPT
755 INSTALL_LTDL_TRUE
756 INSTALL_LTDL_FALSE
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
759 LIBADD_DL
760 NO_VARIADIC_MACROS
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 USE_UDIS86
764 USE_OPROFILE
765 USE_INTEL_JITEVENTS
766 INTEL_JITEVENTS_INCDIR
767 INTEL_JITEVENTS_LIBDIR
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_LIBDIR
776 LLVM_DATADIR
777 LLVM_DOCSDIR
778 LLVM_ETCDIR
779 LLVM_INCLUDEDIR
780 LLVM_INFODIR
781 LLVM_MANDIR
782 LLVM_CONFIGTIME
783 BINDINGS_TO_BUILD
784 ALL_BINDINGS
785 OCAML_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
787 RPATH
788 RDYNAMIC
789 LIBOBJS
790 LTLIBOBJS'
791 ac_subst_files=''
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP'
803 ac_subdirs_all='projects/llvm-gcc
804 projects/test-suite
805 projects/llvm-test
806 projects/poolalloc
807 projects/llvm-poolalloc
808 projects/sample
809 projects/privbracket
810 projects/llvm-stacker
811 projects/llvm-reopt
812 projects/llvm-java
813 projects/llvm-tv
814 projects/safecode
815 projects/llvm-kernel
816 tools/polly'
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868   # If the previous option needs an argument, assign it.
869   if test -n "$ac_prev"; then
870     eval $ac_prev=\$ac_option
871     ac_prev=
872     continue
873   fi
874
875   case $ac_option in
876   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877   *)    ac_optarg=yes ;;
878   esac
879
880   # Accept the important Cygnus configure options, so we can diagnose typos.
881
882   case $ac_dashdash$ac_option in
883   --)
884     ac_dashdash=yes ;;
885
886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
887     ac_prev=bindir ;;
888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889     bindir=$ac_optarg ;;
890
891   -build | --build | --buil | --bui | --bu)
892     ac_prev=build_alias ;;
893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894     build_alias=$ac_optarg ;;
895
896   -cache-file | --cache-file | --cache-fil | --cache-fi \
897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898     ac_prev=cache_file ;;
899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901     cache_file=$ac_optarg ;;
902
903   --config-cache | -C)
904     cache_file=config.cache ;;
905
906   -datadir | --datadir | --datadi | --datad)
907     ac_prev=datadir ;;
908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
909     datadir=$ac_optarg ;;
910
911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912   | --dataroo | --dataro | --datar)
913     ac_prev=datarootdir ;;
914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916     datarootdir=$ac_optarg ;;
917
918   -disable-* | --disable-*)
919     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923    { (exit 1); exit 1; }; }
924     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925     eval enable_$ac_feature=no ;;
926
927   -docdir | --docdir | --docdi | --doc | --do)
928     ac_prev=docdir ;;
929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930     docdir=$ac_optarg ;;
931
932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933     ac_prev=dvidir ;;
934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935     dvidir=$ac_optarg ;;
936
937   -enable-* | --enable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944     eval enable_$ac_feature=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138       { echo "$as_me: error: invalid package name: $ac_package" >&2
1139    { (exit 1); exit 1; }; }
1140     ac_package=`echo $ac_package| sed 's/-/_/g'`
1141     eval with_$ac_package=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package | sed 's/-/_/g'`
1150     eval with_$ac_package=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172    { (exit 1); exit 1; }; }
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180    { (exit 1); exit 1; }; }
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   { echo "$as_me: error: missing argument to $ac_option" >&2
1198    { (exit 1); exit 1; }; }
1199 fi
1200
1201 # Be sure to have absolute directory names.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213    { (exit 1); exit 1; }; }
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   { echo "$as_me: error: Working directory cannot be determined" >&2
1244    { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   { echo "$as_me: error: pwd does not report name of working directory" >&2
1247    { (exit 1); exit 1; }; }
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$0" : 'X\(//\)[^/]' \| \
1257          X"$0" : 'X\(//\)$' \| \
1258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292    { (exit 1); exit 1; }; }
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR           user executables [EPREFIX/bin]
1353   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR       program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR           object code libraries [EPREFIX/lib]
1359   --includedir=DIR       C header files [PREFIX/include]
1360   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR          info documentation [DATAROOTDIR/info]
1364   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR           man documentation [DATAROOTDIR/man]
1366   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1367   --htmldir=DIR          html documentation [DOCDIR]
1368   --dvidir=DIR           dvi documentation [DOCDIR]
1369   --pdfdir=DIR           pdf documentation [DOCDIR]
1370   --psdir=DIR            ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378   --target=TARGET   configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383   case $ac_init_help in
1384      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1385    esac
1386   cat <<\_ACEOF
1387
1388 Optional Features:
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --enable-polly          Use polly if available (default is YES)
1392   --enable-libcpp         Use libc++ if available (default is NO)
1393   --enable-optimized      Compile with optimizations enabled (default is NO)
1394   --enable-profiling      Compile with profiling enabled (default is NO)
1395   --enable-assertions     Compile with assertion checks enabled (default is
1396                           YES)
1397   --enable-expensive-checks
1398                           Compile with expensive debug checks enabled (default
1399                           is NO)
1400   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1401                           NO)
1402   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1403                           optimization is on and YES if it's off)
1404   --enable-jit            Enable Just In Time Compiling (default is YES)
1405   --enable-docs           Build documents (default is YES)
1406   --enable-doxygen        Build doxygen documentation (default is NO)
1407   --enable-threads        Use threads if available (default is YES)
1408   --enable-pthreads       Use pthreads if available (default is YES)
1409   --enable-pic            Build LLVM with Position Independent Code (default
1410                           is YES)
1411   --enable-shared         Build a shared library and link tools against it
1412                           (default is NO)
1413   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1414                           Win32 DLL (default is NO)
1415   --enable-timestamps     Enable embedding timestamp information in build
1416                           (default is YES)
1417   --enable-targets        Build specific host targets: all or
1418                           target1,target2,... Valid targets are: host, x86,
1419                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1420                           xcore, msp430, nvptx, and cpp (default=all)
1421   --enable-bindings       Build specific language bindings:
1422                           all,auto,none,{binding-name} (default=auto)
1423   --enable-libffi         Check for the presence of libffi (default is NO)
1424   --enable-ltdl-install   install libltdl
1425
1426 Optional Packages:
1427   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429   --with-optimize-option  Select the compiler options to use for optimized
1430                           builds
1431   --with-extra-options    Specify additional options to compile LLVM with
1432   --with-extra-ld-options Specify additional options to link LLVM with
1433   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1434                           is stdlib)
1435   --with-clang-srcdir     Directory to the out-of-tree Clang source
1436   --with-clang-resource-dir
1437                           Relative directory from the Clang binary for
1438                           resource files
1439   --with-c-include-dirs   Colon separated list of directories clang will
1440                           search for headers
1441   --with-gcc-toolchain    Directory where gcc is installed.
1442   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1443   --with-binutils-include Specify path to binutils/include/ containing
1444                           plugin-api.h file for gold plugin.
1445   --with-bug-report-url   Specify the URL where bug reports should be
1446                           submitted (default=http://llvm.org/bugs/)
1447   --with-internal-prefix  Installation directory for internal files
1448   --with-udis86=<path>    Use udis86 external x86 disassembler library
1449   --with-oprofile=<prefix>
1450                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1451   --with-intel-jitevents=<vtune-amplifier-dir>
1452                           Specify location of run-time support library for
1453                           Intel JIT API
1454                           (default=/opt/intel/vtune_amplifier_xe_2011)
1455
1456 Some influential environment variables:
1457   CC          C compiler command
1458   CFLAGS      C compiler flags
1459   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460               nonstandard directory <lib dir>
1461   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1462               you have headers in a nonstandard directory <include dir>
1463   CXX         C++ compiler command
1464   CXXFLAGS    C++ compiler flags
1465   CPP         C preprocessor
1466
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1469
1470 Report bugs to <http://llvm.org/bugs/>.
1471 _ACEOF
1472 ac_status=$?
1473 fi
1474
1475 if test "$ac_init_help" = "recursive"; then
1476   # If there are subdirs, report their specific --help.
1477   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478     test -d "$ac_dir" || continue
1479     ac_builddir=.
1480
1481 case "$ac_dir" in
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *)
1484   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1485   # A ".." for each directory in $ac_dir_suffix.
1486   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1487   case $ac_top_builddir_sub in
1488   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490   esac ;;
1491 esac
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1496
1497 case $srcdir in
1498   .)  # We are building in place.
1499     ac_srcdir=.
1500     ac_top_srcdir=$ac_top_builddir_sub
1501     ac_abs_top_srcdir=$ac_pwd ;;
1502   [\\/]* | ?:[\\/]* )  # Absolute name.
1503     ac_srcdir=$srcdir$ac_dir_suffix;
1504     ac_top_srcdir=$srcdir
1505     ac_abs_top_srcdir=$srcdir ;;
1506   *) # Relative name.
1507     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508     ac_top_srcdir=$ac_top_build_prefix$srcdir
1509     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 esac
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512
1513     cd "$ac_dir" || { ac_status=$?; continue; }
1514     # Check for guested configure.
1515     if test -f "$ac_srcdir/configure.gnu"; then
1516       echo &&
1517       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518     elif test -f "$ac_srcdir/configure"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure" --help=recursive
1521     else
1522       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523     fi || ac_status=$?
1524     cd "$ac_pwd" || { ac_status=$?; break; }
1525   done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530   cat <<\_ACEOF
1531 LLVM configure 3.2svn
1532 generated by GNU Autoconf 2.60
1533
1534 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1535 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538
1539 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1540 _ACEOF
1541   exit
1542 fi
1543 cat >config.log <<_ACEOF
1544 This file contains any messages produced by compilers while
1545 running configure, to aid debugging if configure makes a mistake.
1546
1547 It was created by LLVM $as_me 3.2svn, which was
1548 generated by GNU Autoconf 2.60.  Invocation command line was
1549
1550   $ $0 $@
1551
1552 _ACEOF
1553 exec 5>>config.log
1554 {
1555 cat <<_ASUNAME
1556 ## --------- ##
1557 ## Platform. ##
1558 ## --------- ##
1559
1560 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565
1566 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1568
1569 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1570 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1571 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1572 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1573 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1574 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1575 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1576
1577 _ASUNAME
1578
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 for as_dir in $PATH
1581 do
1582   IFS=$as_save_IFS
1583   test -z "$as_dir" && as_dir=.
1584   echo "PATH: $as_dir"
1585 done
1586 IFS=$as_save_IFS
1587
1588 } >&5
1589
1590 cat >&5 <<_ACEOF
1591
1592
1593 ## ----------- ##
1594 ## Core tests. ##
1595 ## ----------- ##
1596
1597 _ACEOF
1598
1599
1600 # Keep a trace of the command line.
1601 # Strip out --no-create and --no-recursion so they do not pile up.
1602 # Strip out --silent because we don't want to record it for future runs.
1603 # Also quote any args containing shell meta-characters.
1604 # Make two passes to allow for proper duplicate-argument suppression.
1605 ac_configure_args=
1606 ac_configure_args0=
1607 ac_configure_args1=
1608 ac_must_keep_next=false
1609 for ac_pass in 1 2
1610 do
1611   for ac_arg
1612   do
1613     case $ac_arg in
1614     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616     | -silent | --silent | --silen | --sile | --sil)
1617       continue ;;
1618     *\'*)
1619       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1620     esac
1621     case $ac_pass in
1622     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1623     2)
1624       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1625       if test $ac_must_keep_next = true; then
1626         ac_must_keep_next=false # Got value, back to normal.
1627       else
1628         case $ac_arg in
1629           *=* | --config-cache | -C | -disable-* | --disable-* \
1630           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632           | -with-* | --with-* | -without-* | --without-* | --x)
1633             case "$ac_configure_args0 " in
1634               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1635             esac
1636             ;;
1637           -* ) ac_must_keep_next=true ;;
1638         esac
1639       fi
1640       ac_configure_args="$ac_configure_args '$ac_arg'"
1641       ;;
1642     esac
1643   done
1644 done
1645 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1647
1648 # When interrupted or exit'd, cleanup temporary files, and complete
1649 # config.log.  We remove comments because anyway the quotes in there
1650 # would cause problems or look ugly.
1651 # WARNING: Use '\'' to represent an apostrophe within the trap.
1652 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1653 trap 'exit_status=$?
1654   # Save into config.log some information that might help in debugging.
1655   {
1656     echo
1657
1658     cat <<\_ASBOX
1659 ## ---------------- ##
1660 ## Cache variables. ##
1661 ## ---------------- ##
1662 _ASBOX
1663     echo
1664     # The following way of writing the cache mishandles newlines in values,
1665 (
1666   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667     eval ac_val=\$$ac_var
1668     case $ac_val in #(
1669     *${as_nl}*)
1670       case $ac_var in #(
1671       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1673       esac
1674       case $ac_var in #(
1675       _ | IFS | as_nl) ;; #(
1676       *) $as_unset $ac_var ;;
1677       esac ;;
1678     esac
1679   done
1680   (set) 2>&1 |
1681     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682     *${as_nl}ac_space=\ *)
1683       sed -n \
1684         "s/'\''/'\''\\\\'\'''\''/g;
1685           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1686       ;; #(
1687     *)
1688       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1689       ;;
1690     esac |
1691     sort
1692 )
1693     echo
1694
1695     cat <<\_ASBOX
1696 ## ----------------- ##
1697 ## Output variables. ##
1698 ## ----------------- ##
1699 _ASBOX
1700     echo
1701     for ac_var in $ac_subst_vars
1702     do
1703       eval ac_val=\$$ac_var
1704       case $ac_val in
1705       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706       esac
1707       echo "$ac_var='\''$ac_val'\''"
1708     done | sort
1709     echo
1710
1711     if test -n "$ac_subst_files"; then
1712       cat <<\_ASBOX
1713 ## ------------------- ##
1714 ## File substitutions. ##
1715 ## ------------------- ##
1716 _ASBOX
1717       echo
1718       for ac_var in $ac_subst_files
1719       do
1720         eval ac_val=\$$ac_var
1721         case $ac_val in
1722         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723         esac
1724         echo "$ac_var='\''$ac_val'\''"
1725       done | sort
1726       echo
1727     fi
1728
1729     if test -s confdefs.h; then
1730       cat <<\_ASBOX
1731 ## ----------- ##
1732 ## confdefs.h. ##
1733 ## ----------- ##
1734 _ASBOX
1735       echo
1736       cat confdefs.h
1737       echo
1738     fi
1739     test "$ac_signal" != 0 &&
1740       echo "$as_me: caught signal $ac_signal"
1741     echo "$as_me: exit $exit_status"
1742   } >&5
1743   rm -f core *.core core.conftest.* &&
1744     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1745     exit $exit_status
1746 ' 0
1747 for ac_signal in 1 2 13 15; do
1748   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1749 done
1750 ac_signal=0
1751
1752 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1753 rm -f -r conftest* confdefs.h
1754
1755 # Predefined preprocessor variables.
1756
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_NAME "$PACKAGE_NAME"
1759 _ACEOF
1760
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_STRING "$PACKAGE_STRING"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1779 _ACEOF
1780
1781
1782 # Let the site file select an alternate cache file if it wants to.
1783 # Prefer explicitly selected file to automatically selected ones.
1784 if test -n "$CONFIG_SITE"; then
1785   set x "$CONFIG_SITE"
1786 elif test "x$prefix" != xNONE; then
1787   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1788 else
1789   set x "$ac_default_prefix/share/config.site" \
1790         "$ac_default_prefix/etc/config.site"
1791 fi
1792 shift
1793 for ac_site_file
1794 do
1795   if test -r "$ac_site_file"; then
1796     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797 echo "$as_me: loading site script $ac_site_file" >&6;}
1798     sed 's/^/| /' "$ac_site_file" >&5
1799     . "$ac_site_file"
1800   fi
1801 done
1802
1803 if test -r "$cache_file"; then
1804   # Some versions of bash will fail to source /dev/null (special
1805   # files actually), so we avoid doing that.
1806   if test -f "$cache_file"; then
1807     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808 echo "$as_me: loading cache $cache_file" >&6;}
1809     case $cache_file in
1810       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811       *)                      . "./$cache_file";;
1812     esac
1813   fi
1814 else
1815   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816 echo "$as_me: creating cache $cache_file" >&6;}
1817   >$cache_file
1818 fi
1819
1820 # Check that the precious variables saved in the cache have kept the same
1821 # value.
1822 ac_cache_corrupted=false
1823 for ac_var in $ac_precious_vars; do
1824   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825   eval ac_new_set=\$ac_env_${ac_var}_set
1826   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827   eval ac_new_val=\$ac_env_${ac_var}_value
1828   case $ac_old_set,$ac_new_set in
1829     set,)
1830       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1832       ac_cache_corrupted=: ;;
1833     ,set)
1834       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1836       ac_cache_corrupted=: ;;
1837     ,);;
1838     *)
1839       if test "x$ac_old_val" != "x$ac_new_val"; then
1840         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1843 echo "$as_me:   former value:  $ac_old_val" >&2;}
1844         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1845 echo "$as_me:   current value: $ac_new_val" >&2;}
1846         ac_cache_corrupted=:
1847       fi;;
1848   esac
1849   # Pass precious variables to config.status.
1850   if test "$ac_new_set" = set; then
1851     case $ac_new_val in
1852     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1853     *) ac_arg=$ac_var=$ac_new_val ;;
1854     esac
1855     case " $ac_configure_args " in
1856       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1857       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1858     esac
1859   fi
1860 done
1861 if $ac_cache_corrupted; then
1862   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866    { (exit 1); exit 1; }; }
1867 fi
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
1893 ac_ext=c
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898
1899
1900
1901 cat >>confdefs.h <<\_ACEOF
1902 #define LLVM_VERSION_MAJOR 3
1903 _ACEOF
1904
1905
1906 cat >>confdefs.h <<\_ACEOF
1907 #define LLVM_VERSION_MINOR 2
1908 _ACEOF
1909
1910
1911 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1912
1913
1914
1915
1916
1917
1918
1919 ac_aux_dir=
1920 for ac_dir in autoconf "$srcdir"/autoconf; do
1921   if test -f "$ac_dir/install-sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install-sh -c"
1924     break
1925   elif test -f "$ac_dir/install.sh"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/install.sh -c"
1928     break
1929   elif test -f "$ac_dir/shtool"; then
1930     ac_aux_dir=$ac_dir
1931     ac_install_sh="$ac_aux_dir/shtool install -c"
1932     break
1933   fi
1934 done
1935 if test -z "$ac_aux_dir"; then
1936   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1937 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1938    { (exit 1); exit 1; }; }
1939 fi
1940
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1948
1949
1950
1951 if test ${srcdir} != "." ; then
1952   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1953     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1954 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1955    { (exit 1); exit 1; }; }
1956   fi
1957 fi
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965   for ac_prog in clang llvm-gcc gcc
1966   do
1967     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$CC"; then
1975   ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1984     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990 IFS=$as_save_IFS
1991
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996   { echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6; }
1998 else
1999   { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2001 fi
2002
2003
2004     test -n "$CC" && break
2005   done
2006 fi
2007 if test -z "$CC"; then
2008   ac_ct_CC=$CC
2009   for ac_prog in clang llvm-gcc gcc
2010 do
2011   # Extract the first word of "$ac_prog", so it can be a program name with args.
2012 set dummy $ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$ac_ct_CC"; then
2019   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_ac_ct_CC="$ac_prog"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048   test -n "$ac_ct_CC" && break
2049 done
2050
2051   if test "x$ac_ct_CC" = x; then
2052     CC=""
2053   else
2054     case $cross_compiling:$ac_tool_warned in
2055 yes:)
2056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057 whose name does not start with the host triplet.  If you think this
2058 configuration is useful to you, please write to autoconf@gnu.org." >&5
2059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet.  If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2062 ac_tool_warned=yes ;;
2063 esac
2064     CC=$ac_ct_CC
2065   fi
2066 fi
2067
2068
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073    { (exit 1); exit 1; }; }
2074
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO: checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (ac_try="$ac_compiler --version >&5"
2079 case "(($ac_try" in
2080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081   *) ac_try_echo=$ac_try;;
2082 esac
2083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084   (eval "$ac_compiler --version >&5") 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); }
2088 { (ac_try="$ac_compiler -v >&5"
2089 case "(($ac_try" in
2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091   *) ac_try_echo=$ac_try;;
2092 esac
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094   (eval "$ac_compiler -v >&5") 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }
2098 { (ac_try="$ac_compiler -V >&5"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104   (eval "$ac_compiler -V >&5") 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }
2108
2109 cat >conftest.$ac_ext <<_ACEOF
2110 /* confdefs.h.  */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h.  */
2115
2116 int
2117 main ()
2118 {
2119
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 ac_clean_files_save=$ac_clean_files
2125 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2126 # Try to create an executable without -o first, disregard a.out.
2127 # It will help us diagnose broken compilers, and finding out an intuition
2128 # of exeext.
2129 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2131 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2132 #
2133 # List of possible output files, starting from the most likely.
2134 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135 # only as a last resort.  b.out is created by i960 compilers.
2136 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2137 #
2138 # The IRIX 6 linker writes into existing files which may not be
2139 # executable, retaining their permissions.  Remove them first so a
2140 # subsequent execution test works.
2141 ac_rmfiles=
2142 for ac_file in $ac_files
2143 do
2144   case $ac_file in
2145     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2146     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2147   esac
2148 done
2149 rm -f $ac_rmfiles
2150
2151 if { (ac_try="$ac_link_default"
2152 case "(($ac_try" in
2153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154   *) ac_try_echo=$ac_try;;
2155 esac
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157   (eval "$ac_link_default") 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; then
2161   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2164 # so that the user can short-circuit this test for compilers unknown to
2165 # Autoconf.
2166 for ac_file in $ac_files
2167 do
2168   test -f "$ac_file" || continue
2169   case $ac_file in
2170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2171         ;;
2172     [ab].out )
2173         # We found the default executable, but exeext='' is most
2174         # certainly right.
2175         break;;
2176     *.* )
2177         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2178         then :; else
2179            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180         fi
2181         # We set ac_cv_exeext here because the later test for it is not
2182         # safe: cross compilers may not add the suffix if given an `-o'
2183         # argument, so we may need to know it at that point already.
2184         # Even if this section looks crufty: it has the advantage of
2185         # actually working.
2186         break;;
2187     * )
2188         break;;
2189   esac
2190 done
2191 test "$ac_cv_exeext" = no && ac_cv_exeext=
2192
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201    { (exit 77); exit 77; }; }
2202 fi
2203
2204 ac_exeext=$ac_cv_exeext
2205 { echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6; }
2207
2208 # Check that the compiler produces executables we can run.  If not, either
2209 # the compiler is broken, or we cross compile.
2210 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215   if { ac_try='./$ac_file'
2216   { (case "(($ac_try" in
2217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218   *) ac_try_echo=$ac_try;;
2219 esac
2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221   (eval "$ac_try") 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; }; then
2225     cross_compiling=no
2226   else
2227     if test "$cross_compiling" = maybe; then
2228         cross_compiling=yes
2229     else
2230         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&2;}
2236    { (exit 1); exit 1; }; }
2237     fi
2238   fi
2239 fi
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2242
2243 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244 ac_clean_files=$ac_clean_files_save
2245 # Check that the compiler produces executables we can run.  If not, either
2246 # the compiler is broken, or we cross compile.
2247 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2249 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250 echo "${ECHO_T}$cross_compiling" >&6; }
2251
2252 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2254 if { (ac_try="$ac_link"
2255 case "(($ac_try" in
2256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257   *) ac_try_echo=$ac_try;;
2258 esac
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260   (eval "$ac_link") 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; then
2264   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2267 # `rm'.
2268 for ac_file in conftest.exe conftest conftest.*; do
2269   test -f "$ac_file" || continue
2270   case $ac_file in
2271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2272     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273           break;;
2274     * ) break;;
2275   esac
2276 done
2277 else
2278   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282    { (exit 1); exit 1; }; }
2283 fi
2284
2285 rm -f conftest$ac_cv_exeext
2286 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2288
2289 rm -f conftest.$ac_ext
2290 EXEEXT=$ac_cv_exeext
2291 ac_exeext=$EXEEXT
2292 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2294 if test "${ac_cv_objext+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303
2304 int
2305 main ()
2306 {
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.o conftest.obj
2313 if { (ac_try="$ac_compile"
2314 case "(($ac_try" in
2315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316   *) ac_try_echo=$ac_try;;
2317 esac
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319   (eval "$ac_compile") 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; then
2323   for ac_file in conftest.o conftest.obj conftest.*; do
2324   test -f "$ac_file" || continue;
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2327     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328        break;;
2329   esac
2330 done
2331 else
2332   echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343 fi
2344 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6; }
2346 OBJEXT=$ac_cv_objext
2347 ac_objext=$OBJEXT
2348 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363 #ifndef __GNUC__
2364        choke me
2365 #endif
2366
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (ac_try="$ac_compile"
2373 case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378   (eval "$ac_compile") 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } &&
2385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386   { (case "(($ac_try" in
2387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388   *) ac_try_echo=$ac_try;;
2389 esac
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391   (eval "$ac_try") 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; } &&
2395          { ac_try='test -s conftest.$ac_objext'
2396   { (case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401   (eval "$ac_try") 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; }; then
2405   ac_compiler_gnu=yes
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410         ac_compiler_gnu=no
2411 fi
2412
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2415
2416 fi
2417 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419 GCC=`test $ac_compiler_gnu = yes && echo yes`
2420 ac_test_CFLAGS=${CFLAGS+set}
2421 ac_save_CFLAGS=$CFLAGS
2422 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   ac_save_c_werror_flag=$ac_c_werror_flag
2428    ac_c_werror_flag=yes
2429    ac_cv_prog_cc_g=no
2430    CFLAGS="-g"
2431    cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h.  */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h.  */
2437
2438 int
2439 main ()
2440 {
2441
2442   ;
2443   return 0;
2444 }
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (ac_try="$ac_compile"
2448 case "(($ac_try" in
2449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450   *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453   (eval "$ac_compile") 2>conftest.er1
2454   ac_status=$?
2455   grep -v '^ *+' conftest.er1 >conftest.err
2456   rm -f conftest.er1
2457   cat conftest.err >&5
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); } &&
2460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461   { (case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466   (eval "$ac_try") 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; } &&
2470          { ac_try='test -s conftest.$ac_objext'
2471   { (case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_try") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; }; then
2480   ac_cv_prog_cc_g=yes
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485         CFLAGS=""
2486       cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h.  */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h.  */
2492
2493 int
2494 main ()
2495 {
2496
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.$ac_objext
2502 if { (ac_try="$ac_compile"
2503 case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508   (eval "$ac_compile") 2>conftest.er1
2509   ac_status=$?
2510   grep -v '^ *+' conftest.er1 >conftest.err
2511   rm -f conftest.er1
2512   cat conftest.err >&5
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); } &&
2515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516   { (case "(($ac_try" in
2517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518   *) ac_try_echo=$ac_try;;
2519 esac
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521   (eval "$ac_try") 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; } &&
2525          { ac_try='test -s conftest.$ac_objext'
2526   { (case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_try") 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   :
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540         ac_c_werror_flag=$ac_save_c_werror_flag
2541          CFLAGS="-g"
2542          cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2559 case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_compile") 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572   { (case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_try") 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_cv_prog_cc_g=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596
2597 fi
2598
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 fi
2601
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606    ac_c_werror_flag=$ac_save_c_werror_flag
2607 fi
2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2610 if test "$ac_test_CFLAGS" = set; then
2611   CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613   if test "$GCC" = yes; then
2614     CFLAGS="-g -O2"
2615   else
2616     CFLAGS="-g"
2617   fi
2618 else
2619   if test "$GCC" = yes; then
2620     CFLAGS="-O2"
2621   else
2622     CFLAGS=
2623   fi
2624 fi
2625 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_cc_c89+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   ac_cv_prog_cc_c89=no
2631 ac_save_CC=$CC
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638 #include <stdarg.h>
2639 #include <stdio.h>
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2646      char **p;
2647      int i;
2648 {
2649   return p[i];
2650 }
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2652 {
2653   char *s;
2654   va_list v;
2655   va_start (v,p);
2656   s = g (p, va_arg (v,int));
2657   va_end (v);
2658   return s;
2659 }
2660
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2662    function prototypes and stuff, but not '\xHH' hex character constants.
2663    These don't provoke an error unfortunately, instead are silently treated
2664    as 'x'.  The following induces an error, until -std is added to get
2665    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2666    array size at least.  It's necessary to write '\x00'==0 to get something
2667    that's true only with -std.  */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669
2670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671    inside strings and character constants.  */
2672 #define FOO(x) 'x'
2673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2674
2675 int test (int i, double x);
2676 struct s1 {int (*f) (int a);};
2677 struct s2 {int (*f) (double a);};
2678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 int argc;
2680 char **argv;
2681 int
2682 main ()
2683 {
2684 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2685   ;
2686   return 0;
2687 }
2688 _ACEOF
2689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2691 do
2692   CC="$ac_save_CC $ac_arg"
2693   rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compile") 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } &&
2707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708   { (case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_try") 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   ac_cv_prog_cc_c89=$ac_arg
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732
2733 fi
2734
2735 rm -f core conftest.err conftest.$ac_objext
2736   test "x$ac_cv_prog_cc_c89" != "xno" && break
2737 done
2738 rm -f conftest.$ac_ext
2739 CC=$ac_save_CC
2740
2741 fi
2742 # AC_CACHE_VAL
2743 case "x$ac_cv_prog_cc_c89" in
2744   x)
2745     { echo "$as_me:$LINENO: result: none needed" >&5
2746 echo "${ECHO_T}none needed" >&6; } ;;
2747   xno)
2748     { echo "$as_me:$LINENO: result: unsupported" >&5
2749 echo "${ECHO_T}unsupported" >&6; } ;;
2750   *)
2751     CC="$CC $ac_cv_prog_cc_c89"
2752     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2753 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2754 esac
2755
2756
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
2763 ac_ext=cpp
2764 ac_cpp='$CXXCPP $CPPFLAGS'
2765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2768 if test -z "$CXX"; then
2769   if test -n "$CCC"; then
2770     CXX=$CCC
2771   else
2772     if test -n "$ac_tool_prefix"; then
2773   for ac_prog in clang++ llvm-g++ g++
2774   do
2775     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_CXX+set}" = set; then
2780   echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782   if test -n "$CXX"; then
2783   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788   IFS=$as_save_IFS
2789   test -z "$as_dir" && as_dir=.
2790   for ac_exec_ext in '' $ac_executable_extensions; do
2791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 CXX=$ac_cv_prog_CXX
2803 if test -n "$CXX"; then
2804   { echo "$as_me:$LINENO: result: $CXX" >&5
2805 echo "${ECHO_T}$CXX" >&6; }
2806 else
2807   { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2809 fi
2810
2811
2812     test -n "$CXX" && break
2813   done
2814 fi
2815 if test -z "$CXX"; then
2816   ac_ct_CXX=$CXX
2817   for ac_prog in clang++ llvm-g++ g++
2818 do
2819   # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   if test -n "$ac_ct_CXX"; then
2827   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834   for ac_exec_ext in '' $ac_executable_extensions; do
2835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836     ac_cv_prog_ac_ct_CXX="$ac_prog"
2837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2847 if test -n "$ac_ct_CXX"; then
2848   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2849 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2850 else
2851   { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2853 fi
2854
2855
2856   test -n "$ac_ct_CXX" && break
2857 done
2858
2859   if test "x$ac_ct_CXX" = x; then
2860     CXX="g++"
2861   else
2862     case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865 whose name does not start with the host triplet.  If you think this
2866 configuration is useful to you, please write to autoconf@gnu.org." >&5
2867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet.  If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872     CXX=$ac_ct_CXX
2873   fi
2874 fi
2875
2876   fi
2877 fi
2878 # Provide some information about the compiler.
2879 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2880 ac_compiler=`set X $ac_compile; echo $2`
2881 { (ac_try="$ac_compiler --version >&5"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887   (eval "$ac_compiler --version >&5") 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }
2891 { (ac_try="$ac_compiler -v >&5"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compiler -v >&5") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901 { (ac_try="$ac_compiler -V >&5"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compiler -V >&5") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911
2912 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2913 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2914 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2915   echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923
2924 int
2925 main ()
2926 {
2927 #ifndef __GNUC__
2928        choke me
2929 #endif
2930
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compile") 2>conftest.er1
2943   ac_status=$?
2944   grep -v '^ *+' conftest.er1 >conftest.err
2945   rm -f conftest.er1
2946   cat conftest.err >&5
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2950   { (case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_try") 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_try") 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; }; then
2969   ac_compiler_gnu=yes
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974         ac_compiler_gnu=no
2975 fi
2976
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2979
2980 fi
2981 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2982 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2983 GXX=`test $ac_compiler_gnu = yes && echo yes`
2984 ac_test_CXXFLAGS=${CXXFLAGS+set}
2985 ac_save_CXXFLAGS=$CXXFLAGS
2986 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2987 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_cxx_g+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2992    ac_cxx_werror_flag=yes
2993    ac_cv_prog_cxx_g=no
2994    CXXFLAGS="-g"
2995    cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3012 case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_compile") 2>conftest.er1
3018   ac_status=$?
3019   grep -v '^ *+' conftest.er1 >conftest.err
3020   rm -f conftest.er1
3021   cat conftest.err >&5
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); } &&
3024          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3025   { (case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030   (eval "$ac_try") 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; } &&
3034          { ac_try='test -s conftest.$ac_objext'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; }; then
3044   ac_cv_prog_cxx_g=yes
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049         CXXFLAGS=""
3050       cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056
3057 int
3058 main ()
3059 {
3060
3061   ;
3062   return 0;
3063 }
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3067 case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072   (eval "$ac_compile") 2>conftest.er1
3073   ac_status=$?
3074   grep -v '^ *+' conftest.er1 >conftest.err
3075   rm -f conftest.er1
3076   cat conftest.err >&5
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); } &&
3079          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3080   { (case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_try") 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; } &&
3089          { ac_try='test -s conftest.$ac_objext'
3090   { (case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; }; then
3099   :
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105          CXXFLAGS="-g"
3106          cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3112
3113 int
3114 main ()
3115 {
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_compile") 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136   { (case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_try") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   ac_cv_prog_cxx_g=yes
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160
3161 fi
3162
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 fi
3165
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 fi
3168
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171 fi
3172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3174 if test "$ac_test_CXXFLAGS" = set; then
3175   CXXFLAGS=$ac_save_CXXFLAGS
3176 elif test $ac_cv_prog_cxx_g = yes; then
3177   if test "$GXX" = yes; then
3178     CXXFLAGS="-g -O2"
3179   else
3180     CXXFLAGS="-g"
3181   fi
3182 else
3183   if test "$GXX" = yes; then
3184     CXXFLAGS="-O2"
3185   else
3186     CXXFLAGS=
3187   fi
3188 fi
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3202 # On Suns, sometimes $CPP names a directory.
3203 if test -n "$CPP" && test -d "$CPP"; then
3204   CPP=
3205 fi
3206 if test -z "$CPP"; then
3207   if test "${ac_cv_prog_CPP+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210       # Double quotes because CPP needs to be expanded
3211     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3212     do
3213       ac_preproc_ok=false
3214 for ac_c_preproc_warn_flag in '' yes
3215 do
3216   # Use a header file that comes with gcc, so configuring glibc
3217   # with a fresh cross-compiler works.
3218   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3219   # <limits.h> exists even on freestanding compilers.
3220   # On the NeXT, cc -E runs the code through the compiler's parser,
3221   # not just through cpp. "Syntax error" is here to catch this case.
3222   cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 #ifdef __STDC__
3229 # include <limits.h>
3230 #else
3231 # include <assert.h>
3232 #endif
3233                      Syntax error
3234 _ACEOF
3235 if { (ac_try="$ac_cpp conftest.$ac_ext"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } >/dev/null; then
3248   if test -s conftest.err; then
3249     ac_cpp_err=$ac_c_preproc_warn_flag
3250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251   else
3252     ac_cpp_err=
3253   fi
3254 else
3255   ac_cpp_err=yes
3256 fi
3257 if test -z "$ac_cpp_err"; then
3258   :
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   # Broken: fails on valid input.
3264 continue
3265 fi
3266
3267 rm -f conftest.err conftest.$ac_ext
3268
3269   # OK, works on sane cases.  Now check whether nonexistent headers
3270   # can be detected and how.
3271   cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277 #include <ac_nonexistent.h>
3278 _ACEOF
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } >/dev/null; then
3292   if test -s conftest.err; then
3293     ac_cpp_err=$ac_c_preproc_warn_flag
3294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295   else
3296     ac_cpp_err=
3297   fi
3298 else
3299   ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302   # Broken: success on invalid input.
3303 continue
3304 else
3305   echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308   # Passes both tests.
3309 ac_preproc_ok=:
3310 break
3311 fi
3312
3313 rm -f conftest.err conftest.$ac_ext
3314
3315 done
3316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317 rm -f conftest.err conftest.$ac_ext
3318 if $ac_preproc_ok; then
3319   break
3320 fi
3321
3322     done
3323     ac_cv_prog_CPP=$CPP
3324
3325 fi
3326   CPP=$ac_cv_prog_CPP
3327 else
3328   ac_cv_prog_CPP=$CPP
3329 fi
3330 { echo "$as_me:$LINENO: result: $CPP" >&5
3331 echo "${ECHO_T}$CPP" >&6; }
3332 ac_preproc_ok=false
3333 for ac_c_preproc_warn_flag in '' yes
3334 do
3335   # Use a header file that comes with gcc, so configuring glibc
3336   # with a fresh cross-compiler works.
3337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338   # <limits.h> exists even on freestanding compilers.
3339   # On the NeXT, cc -E runs the code through the compiler's parser,
3340   # not just through cpp. "Syntax error" is here to catch this case.
3341   cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #ifdef __STDC__
3348 # include <limits.h>
3349 #else
3350 # include <assert.h>
3351 #endif
3352                      Syntax error
3353 _ACEOF
3354 if { (ac_try="$ac_cpp conftest.$ac_ext"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } >/dev/null; then
3367   if test -s conftest.err; then
3368     ac_cpp_err=$ac_c_preproc_warn_flag
3369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3370   else
3371     ac_cpp_err=
3372   fi
3373 else
3374   ac_cpp_err=yes
3375 fi
3376 if test -z "$ac_cpp_err"; then
3377   :
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382   # Broken: fails on valid input.
3383 continue
3384 fi
3385
3386 rm -f conftest.err conftest.$ac_ext
3387
3388   # OK, works on sane cases.  Now check whether nonexistent headers
3389   # can be detected and how.
3390   cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h.  */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h.  */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } >/dev/null; then
3411   if test -s conftest.err; then
3412     ac_cpp_err=$ac_c_preproc_warn_flag
3413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414   else
3415     ac_cpp_err=
3416   fi
3417 else
3418   ac_cpp_err=yes
3419 fi
3420 if test -z "$ac_cpp_err"; then
3421   # Broken: success on invalid input.
3422 continue
3423 else
3424   echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427   # Passes both tests.
3428 ac_preproc_ok=:
3429 break
3430 fi
3431
3432 rm -f conftest.err conftest.$ac_ext
3433
3434 done
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3438   :
3439 else
3440   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&2;}
3444    { (exit 1); exit 1; }; }
3445 fi
3446
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
3453
3454
3455
3456 if test -d ${srcdir}/projects/llvm-gcc ; then
3457   subdirs="$subdirs projects/llvm-gcc"
3458
3459 fi
3460
3461 if test -d ${srcdir}/projects/test-suite ; then
3462   subdirs="$subdirs projects/test-suite"
3463
3464 fi
3465
3466 if test -d ${srcdir}/projects/llvm-test ; then
3467   subdirs="$subdirs projects/llvm-test"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/poolalloc ; then
3472   subdirs="$subdirs projects/poolalloc"
3473
3474 fi
3475
3476 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3477   subdirs="$subdirs projects/llvm-poolalloc"
3478
3479 fi
3480
3481 for i in `ls ${srcdir}/projects`
3482 do
3483   if test -d ${srcdir}/projects/${i} ; then
3484     case ${i} in
3485       sample)       subdirs="$subdirs projects/sample"
3486     ;;
3487       privbracket)  subdirs="$subdirs projects/privbracket"
3488  ;;
3489       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3490  ;;
3491       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3492 ;;
3493       llvm-java)    subdirs="$subdirs projects/llvm-java"
3494  ;;
3495       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3496    ;;
3497       safecode)     subdirs="$subdirs projects/safecode"
3498  ;;
3499       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3500  ;;
3501       compiler-rt)       ;;
3502       llvm-gcc)       ;;
3503       test-suite)     ;;
3504       llvm-test)      ;;
3505       poolalloc)      ;;
3506       llvm-poolalloc) ;;
3507       *)
3508         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3509 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3510         ;;
3511     esac
3512   fi
3513 done
3514
3515 # Check whether --enable-polly was given.
3516 if test "${enable_polly+set}" = set; then
3517   enableval=$enable_polly;
3518 else
3519   enableval=default
3520 fi
3521
3522 case "$enableval" in
3523   yes) ENABLE_POLLY=1
3524  ;;
3525   no)  ENABLE_POLLY=0
3526  ;;
3527   default) ENABLE_POLLY=1
3528  ;;
3529   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3530 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3531    { (exit 1); exit 1; }; } ;;
3532 esac
3533
3534
3535 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3536   LLVM_HAS_POLLY=1
3537
3538   subdirs="$subdirs tools/polly"
3539
3540 fi
3541
3542
3543 # Make sure we can run config.sub.
3544 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3545   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3546 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3547    { (exit 1); exit 1; }; }
3548
3549 { echo "$as_me:$LINENO: checking build system type" >&5
3550 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3551 if test "${ac_cv_build+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   ac_build_alias=$build_alias
3555 test "x$ac_build_alias" = x &&
3556   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3557 test "x$ac_build_alias" = x &&
3558   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3560    { (exit 1); exit 1; }; }
3561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3562   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3563 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3564    { (exit 1); exit 1; }; }
3565
3566 fi
3567 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3568 echo "${ECHO_T}$ac_cv_build" >&6; }
3569 case $ac_cv_build in
3570 *-*-*) ;;
3571 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3572 echo "$as_me: error: invalid value of canonical build" >&2;}
3573    { (exit 1); exit 1; }; };;
3574 esac
3575 build=$ac_cv_build
3576 ac_save_IFS=$IFS; IFS='-'
3577 set x $ac_cv_build
3578 shift
3579 build_cpu=$1
3580 build_vendor=$2
3581 shift; shift
3582 # Remember, the first character of IFS is used to create $*,
3583 # except with old shells:
3584 build_os=$*
3585 IFS=$ac_save_IFS
3586 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3587
3588
3589 { echo "$as_me:$LINENO: checking host system type" >&5
3590 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3591 if test "${ac_cv_host+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   if test "x$host_alias" = x; then
3595   ac_cv_host=$ac_cv_build
3596 else
3597   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3598     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3599 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3600    { (exit 1); exit 1; }; }
3601 fi
3602
3603 fi
3604 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3605 echo "${ECHO_T}$ac_cv_host" >&6; }
3606 case $ac_cv_host in
3607 *-*-*) ;;
3608 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3609 echo "$as_me: error: invalid value of canonical host" >&2;}
3610    { (exit 1); exit 1; }; };;
3611 esac
3612 host=$ac_cv_host
3613 ac_save_IFS=$IFS; IFS='-'
3614 set x $ac_cv_host
3615 shift
3616 host_cpu=$1
3617 host_vendor=$2
3618 shift; shift
3619 # Remember, the first character of IFS is used to create $*,
3620 # except with old shells:
3621 host_os=$*
3622 IFS=$ac_save_IFS
3623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3624
3625
3626 { echo "$as_me:$LINENO: checking target system type" >&5
3627 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3628 if test "${ac_cv_target+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   if test "x$target_alias" = x; then
3632   ac_cv_target=$ac_cv_host
3633 else
3634   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3635     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3636 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3637    { (exit 1); exit 1; }; }
3638 fi
3639
3640 fi
3641 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3642 echo "${ECHO_T}$ac_cv_target" >&6; }
3643 case $ac_cv_target in
3644 *-*-*) ;;
3645 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3646 echo "$as_me: error: invalid value of canonical target" >&2;}
3647    { (exit 1); exit 1; }; };;
3648 esac
3649 target=$ac_cv_target
3650 ac_save_IFS=$IFS; IFS='-'
3651 set x $ac_cv_target
3652 shift
3653 target_cpu=$1
3654 target_vendor=$2
3655 shift; shift
3656 # Remember, the first character of IFS is used to create $*,
3657 # except with old shells:
3658 target_os=$*
3659 IFS=$ac_save_IFS
3660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3661
3662
3663 # The aliases save the names the user supplied, while $host etc.
3664 # will get canonicalized.
3665 test -n "$target_alias" &&
3666   test "$program_prefix$program_suffix$program_transform_name" = \
3667     NONENONEs,x,x, &&
3668   program_prefix=${target_alias}-
3669
3670 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3671 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3672 if test "${llvm_cv_os_type+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   case $host in
3676   *-*-aix*)
3677     llvm_cv_link_all_option="-Wl,--whole-archive"
3678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679     llvm_cv_os_type="AIX"
3680     llvm_cv_platform_type="Unix" ;;
3681   *-*-irix*)
3682     llvm_cv_link_all_option="-Wl,--whole-archive"
3683     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684     llvm_cv_os_type="IRIX"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-cygwin*)
3687     llvm_cv_link_all_option="-Wl,--whole-archive"
3688     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689     llvm_cv_os_type="Cygwin"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-darwin*)
3692     llvm_cv_link_all_option="-Wl,-all_load"
3693     llvm_cv_no_link_all_option="-Wl,-noall_load"
3694     llvm_cv_os_type="Darwin"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-minix*)
3697     llvm_cv_link_all_option="-Wl,-all_load"
3698     llvm_cv_no_link_all_option="-Wl,-noall_load"
3699     llvm_cv_os_type="Minix"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-freebsd* | *-*-kfreebsd-gnu)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="FreeBSD"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-openbsd*)
3707     llvm_cv_link_all_option="-Wl,--whole-archive"
3708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709     llvm_cv_os_type="OpenBSD"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-netbsd*)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="NetBSD"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-dragonfly*)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="DragonFly"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-hpux*)
3722     llvm_cv_link_all_option="-Wl,--whole-archive"
3723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724     llvm_cv_os_type="HP-UX"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-interix*)
3727     llvm_cv_link_all_option="-Wl,--whole-archive"
3728     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729     llvm_cv_os_type="Interix"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-linux*)
3732     llvm_cv_link_all_option="-Wl,--whole-archive"
3733     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734     llvm_cv_os_type="Linux"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-gnu*)
3737     llvm_cv_link_all_option="-Wl,--whole-archive"
3738     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739     llvm_cv_os_type="GNU"
3740     llvm_cv_platform_type="Unix" ;;
3741   *-*-solaris*)
3742     llvm_cv_link_all_option="-Wl,-z,allextract"
3743     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3744     llvm_cv_os_type="SunOS"
3745     llvm_cv_platform_type="Unix" ;;
3746   *-*-auroraux*)
3747     llvm_cv_link_all_option="-Wl,-z,allextract"
3748     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3749     llvm_cv_os_type="AuroraUX"
3750     llvm_cv_platform_type="Unix" ;;
3751   *-*-win32*)
3752     llvm_cv_link_all_option="-Wl,--whole-archive"
3753     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754     llvm_cv_os_type="Win32"
3755     llvm_cv_platform_type="Win32" ;;
3756   *-*-mingw*)
3757     llvm_cv_link_all_option="-Wl,--whole-archive"
3758     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759     llvm_cv_os_type="MingW"
3760     llvm_cv_platform_type="Win32" ;;
3761   *-*-haiku*)
3762     llvm_cv_link_all_option="-Wl,--whole-archive"
3763     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764     llvm_cv_os_type="Haiku"
3765     llvm_cv_platform_type="Unix" ;;
3766   *-unknown-eabi*)
3767     llvm_cv_link_all_option="-Wl,--whole-archive"
3768     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769     llvm_cv_os_type="Freestanding"
3770     llvm_cv_platform_type="Unix" ;;
3771   *-unknown-elf*)
3772     llvm_cv_link_all_option="-Wl,--whole-archive"
3773     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774     llvm_cv_os_type="Freestanding"
3775     llvm_cv_platform_type="Unix" ;;
3776   *)
3777     llvm_cv_link_all_option=""
3778     llvm_cv_no_link_all_option=""
3779     llvm_cv_os_type="Unknown"
3780     llvm_cv_platform_type="Unknown" ;;
3781 esac
3782 fi
3783 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3784 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3785
3786 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3787 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3788 if test "${llvm_cv_target_os_type+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   case $target in
3792   *-*-aix*)
3793     llvm_cv_target_os_type="AIX" ;;
3794   *-*-irix*)
3795     llvm_cv_target_os_type="IRIX" ;;
3796   *-*-cygwin*)
3797     llvm_cv_target_os_type="Cygwin" ;;
3798   *-*-darwin*)
3799     llvm_cv_target_os_type="Darwin" ;;
3800   *-*-minix*)
3801     llvm_cv_target_os_type="Minix" ;;
3802   *-*-freebsd* | *-*-kfreebsd-gnu)
3803     llvm_cv_target_os_type="FreeBSD" ;;
3804   *-*-openbsd*)
3805     llvm_cv_target_os_type="OpenBSD" ;;
3806   *-*-netbsd*)
3807     llvm_cv_target_os_type="NetBSD" ;;
3808   *-*-dragonfly*)
3809     llvm_cv_target_os_type="DragonFly" ;;
3810   *-*-hpux*)
3811     llvm_cv_target_os_type="HP-UX" ;;
3812   *-*-interix*)
3813     llvm_cv_target_os_type="Interix" ;;
3814   *-*-linux*)
3815     llvm_cv_target_os_type="Linux" ;;
3816   *-*-gnu*)
3817     llvm_cv_target_os_type="GNU" ;;
3818   *-*-solaris*)
3819     llvm_cv_target_os_type="SunOS" ;;
3820   *-*-auroraux*)
3821     llvm_cv_target_os_type="AuroraUX" ;;
3822   *-*-win32*)
3823     llvm_cv_target_os_type="Win32" ;;
3824   *-*-mingw*)
3825     llvm_cv_target_os_type="MingW" ;;
3826   *-*-haiku*)
3827     llvm_cv_target_os_type="Haiku" ;;
3828   *-*-rtems*)
3829     llvm_cv_target_os_type="RTEMS" ;;
3830   *-*-nacl*)
3831     llvm_cv_target_os_type="NativeClient" ;;
3832   *-unknown-eabi*)
3833     llvm_cv_target_os_type="Freestanding" ;;
3834   *)
3835     llvm_cv_target_os_type="Unknown" ;;
3836 esac
3837 fi
3838 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3839 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3840
3841 if test "$llvm_cv_os_type" = "Unknown" ; then
3842   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3843 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3844    { (exit 1); exit 1; }; }
3845 fi
3846
3847 OS=$llvm_cv_os_type
3848
3849 HOST_OS=$llvm_cv_os_type
3850
3851 TARGET_OS=$llvm_cv_target_os_type
3852
3853
3854 LINKALL=$llvm_cv_link_all_option
3855
3856 NOLINKALL=$llvm_cv_no_link_all_option
3857
3858
3859 case $llvm_cv_platform_type in
3860   Unix)
3861
3862 cat >>confdefs.h <<\_ACEOF
3863 #define LLVM_ON_UNIX 1
3864 _ACEOF
3865
3866     LLVM_ON_UNIX=1
3867
3868     LLVM_ON_WIN32=0
3869
3870     ;;
3871   Win32)
3872
3873 cat >>confdefs.h <<\_ACEOF
3874 #define LLVM_ON_WIN32 1
3875 _ACEOF
3876
3877     LLVM_ON_UNIX=0
3878
3879     LLVM_ON_WIN32=1
3880
3881     ;;
3882 esac
3883
3884 { echo "$as_me:$LINENO: checking target architecture" >&5
3885 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3886 if test "${llvm_cv_target_arch+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   case $target in
3890   i?86-*)                 llvm_cv_target_arch="x86" ;;
3891   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3892   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3893   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3894   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3895   mips-*)                 llvm_cv_target_arch="Mips" ;;
3896   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3897   xcore-*)                llvm_cv_target_arch="XCore" ;;
3898   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3899   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3900   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3901   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3902   *)                      llvm_cv_target_arch="Unknown" ;;
3903 esac
3904 fi
3905 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3906 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3907
3908 if test "$llvm_cv_target_arch" = "Unknown" ; then
3909   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3910 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3911 fi
3912
3913 case "$llvm_cv_target_arch" in
3914     x86)     LLVM_NATIVE_ARCH="X86" ;;
3915     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3916     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3917 esac
3918
3919 ARCH=$llvm_cv_target_arch
3920
3921
3922 case $host in
3923   i?86-*)                 host_arch="x86" ;;
3924   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3925   sparc*-*)               host_arch="Sparc" ;;
3926   powerpc*-*)             host_arch="PowerPC" ;;
3927   arm*-*)                 host_arch="ARM" ;;
3928   mips-*)                 host_arch="Mips" ;;
3929   mipsel-*)               host_arch="Mips" ;;
3930   xcore-*)                host_arch="XCore" ;;
3931   msp430-*)               host_arch="MSP430" ;;
3932   hexagon-*)              host_arch="Hexagon" ;;
3933   mblaze-*)               host_arch="MBlaze" ;;
3934   *)                      host_arch="Unknown" ;;
3935 esac
3936
3937 if test "$host_arch" = "Unknown" ; then
3938   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3939 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3940 fi
3941
3942 HOST_ARCH=$host_arch
3943
3944
3945
3946
3947 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3948 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3949 if test "${ac_cv_path_GREP+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   # Extract the first word of "grep ggrep" to use in msg output
3953 if test -z "$GREP"; then
3954 set dummy grep ggrep; ac_prog_name=$2
3955 if test "${ac_cv_path_GREP+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   ac_path_GREP_found=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962 do
3963   IFS=$as_save_IFS
3964   test -z "$as_dir" && as_dir=.
3965   for ac_prog in grep ggrep; do
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3968     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3969     # Check for GNU ac_path_GREP and select it if it is found.
3970   # Check for GNU $ac_path_GREP
3971 case `"$ac_path_GREP" --version 2>&1` in
3972 *GNU*)
3973   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3974 *)
3975   ac_count=0
3976   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3977   while :
3978   do
3979     cat "conftest.in" "conftest.in" >"conftest.tmp"
3980     mv "conftest.tmp" "conftest.in"
3981     cp "conftest.in" "conftest.nl"
3982     echo 'GREP' >> "conftest.nl"
3983     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985     ac_count=`expr $ac_count + 1`
3986     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3987       # Best one so far, save it but keep looking for a better one
3988       ac_cv_path_GREP="$ac_path_GREP"
3989       ac_path_GREP_max=$ac_count
3990     fi
3991     # 10*(2^10) chars as input seems more than enough
3992     test $ac_count -gt 10 && break
3993   done
3994   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995 esac
3996
3997
3998     $ac_path_GREP_found && break 3
3999   done
4000 done
4001
4002 done
4003 IFS=$as_save_IFS
4004
4005
4006 fi
4007
4008 GREP="$ac_cv_path_GREP"
4009 if test -z "$GREP"; then
4010   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012    { (exit 1); exit 1; }; }
4013 fi
4014
4015 else
4016   ac_cv_path_GREP=$GREP
4017 fi
4018
4019
4020 fi
4021 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4022 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4023  GREP="$ac_cv_path_GREP"
4024
4025
4026 { echo "$as_me:$LINENO: checking for egrep" >&5
4027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4032    then ac_cv_path_EGREP="$GREP -E"
4033    else
4034      # Extract the first word of "egrep" to use in msg output
4035 if test -z "$EGREP"; then
4036 set dummy egrep; ac_prog_name=$2
4037 if test "${ac_cv_path_EGREP+set}" = set; then
4038   echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040   ac_path_EGREP_found=false
4041 # Loop through the user's path and test for each of PROGNAME-LIST
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_prog in egrep; do
4048   for ac_exec_ext in '' $ac_executable_extensions; do
4049     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4050     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4051     # Check for GNU ac_path_EGREP and select it if it is found.
4052   # Check for GNU $ac_path_EGREP
4053 case `"$ac_path_EGREP" --version 2>&1` in
4054 *GNU*)
4055   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4056 *)
4057   ac_count=0
4058   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4059   while :
4060   do
4061     cat "conftest.in" "conftest.in" >"conftest.tmp"
4062     mv "conftest.tmp" "conftest.in"
4063     cp "conftest.in" "conftest.nl"
4064     echo 'EGREP' >> "conftest.nl"
4065     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067     ac_count=`expr $ac_count + 1`
4068     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4069       # Best one so far, save it but keep looking for a better one
4070       ac_cv_path_EGREP="$ac_path_EGREP"
4071       ac_path_EGREP_max=$ac_count
4072     fi
4073     # 10*(2^10) chars as input seems more than enough
4074     test $ac_count -gt 10 && break
4075   done
4076   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077 esac
4078
4079
4080     $ac_path_EGREP_found && break 3
4081   done
4082 done
4083
4084 done
4085 IFS=$as_save_IFS
4086
4087
4088 fi
4089
4090 EGREP="$ac_cv_path_EGREP"
4091 if test -z "$EGREP"; then
4092   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4093 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4094    { (exit 1); exit 1; }; }
4095 fi
4096
4097 else
4098   ac_cv_path_EGREP=$EGREP
4099 fi
4100
4101
4102    fi
4103 fi
4104 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4105 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4106  EGREP="$ac_cv_path_EGREP"
4107
4108
4109 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4111 if test "${ac_cv_header_stdc+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 #include <stdlib.h>
4121 #include <stdarg.h>
4122 #include <string.h>
4123 #include <float.h>
4124
4125 int
4126 main ()
4127 {
4128
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4135 case "(($ac_try" in
4136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137   *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140   (eval "$ac_compile") 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } &&
4147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4148   { (case "(($ac_try" in
4149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150   *) ac_try_echo=$ac_try;;
4151 esac
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153   (eval "$ac_try") 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); }; } &&
4157          { ac_try='test -s conftest.$ac_objext'
4158   { (case "(($ac_try" in
4159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160   *) ac_try_echo=$ac_try;;
4161 esac
4162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163   (eval "$ac_try") 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   ac_cv_header_stdc=yes
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172         ac_cv_header_stdc=no
4173 fi
4174
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176
4177 if test $ac_cv_header_stdc = yes; then
4178   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4179   cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h.  */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h.  */
4185 #include <string.h>
4186
4187 _ACEOF
4188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189   $EGREP "memchr" >/dev/null 2>&1; then
4190   :
4191 else
4192   ac_cv_header_stdc=no
4193 fi
4194 rm -f conftest*
4195
4196 fi
4197
4198 if test $ac_cv_header_stdc = yes; then
4199   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200   cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h.  */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h.  */
4206 #include <stdlib.h>
4207
4208 _ACEOF
4209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210   $EGREP "free" >/dev/null 2>&1; then
4211   :
4212 else
4213   ac_cv_header_stdc=no
4214 fi
4215 rm -f conftest*
4216
4217 fi
4218
4219 if test $ac_cv_header_stdc = yes; then
4220   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4221   if test "$cross_compiling" = yes; then
4222   :
4223 else
4224   cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h.  */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h.  */
4230 #include <ctype.h>
4231 #include <stdlib.h>
4232 #if ((' ' & 0x0FF) == 0x020)
4233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4235 #else
4236 # define ISLOWER(c) \
4237                    (('a' <= (c) && (c) <= 'i') \
4238                      || ('j' <= (c) && (c) <= 'r') \
4239                      || ('s' <= (c) && (c) <= 'z'))
4240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4241 #endif
4242
4243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4244 int
4245 main ()
4246 {
4247   int i;
4248   for (i = 0; i < 256; i++)
4249     if (XOR (islower (i), ISLOWER (i))
4250         || toupper (i) != TOUPPER (i))
4251       return 2;
4252   return 0;
4253 }
4254 _ACEOF
4255 rm -f conftest$ac_exeext
4256 if { (ac_try="$ac_link"
4257 case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_link") 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4266   { (case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271   (eval "$ac_try") 2>&5
4272   ac_status=$?
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); }; }; then
4275   :
4276 else
4277   echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 ( exit $ac_status )
4282 ac_cv_header_stdc=no
4283 fi
4284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4285 fi
4286
4287
4288 fi
4289 fi
4290 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4291 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4292 if test $ac_cv_header_stdc = yes; then
4293
4294 cat >>confdefs.h <<\_ACEOF
4295 #define STDC_HEADERS 1
4296 _ACEOF
4297
4298 fi
4299
4300 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4311                   inttypes.h stdint.h unistd.h
4312 do
4313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325 $ac_includes_default
4326
4327 #include <$ac_header>
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (ac_try="$ac_compile"
4331 case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336   (eval "$ac_compile") 2>conftest.er1
4337   ac_status=$?
4338   grep -v '^ *+' conftest.er1 >conftest.err
4339   rm -f conftest.er1
4340   cat conftest.err >&5
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); } &&
4343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4344   { (case "(($ac_try" in
4345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346   *) ac_try_echo=$ac_try;;
4347 esac
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349   (eval "$ac_try") 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); }; } &&
4353          { ac_try='test -s conftest.$ac_objext'
4354   { (case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_try") 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; }; then
4363   eval "$as_ac_Header=yes"
4364 else
4365   echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368         eval "$as_ac_Header=no"
4369 fi
4370
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 fi
4373 ac_res=`eval echo '${'$as_ac_Header'}'`
4374                { echo "$as_me:$LINENO: result: $ac_res" >&5
4375 echo "${ECHO_T}$ac_res" >&6; }
4376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4377   cat >>confdefs.h <<_ACEOF
4378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4379 _ACEOF
4380
4381 fi
4382
4383 done
4384
4385
4386 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4387 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4388 if test "${ac_cv_c_bigendian+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   # See if sys/param.h defines the BYTE_ORDER macro.
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h.  */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h.  */
4398 #include <sys/types.h>
4399 #include <sys/param.h>
4400
4401 int
4402 main ()
4403 {
4404 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4405  bogus endian macros
4406 #endif
4407
4408   ;
4409   return 0;
4410 }
4411 _ACEOF
4412 rm -f conftest.$ac_objext
4413 if { (ac_try="$ac_compile"
4414 case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419   (eval "$ac_compile") 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } &&
4426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4427   { (case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432   (eval "$ac_try") 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); }; } &&
4436          { ac_try='test -s conftest.$ac_objext'
4437   { (case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442   (eval "$ac_try") 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; }; then
4446   # It does; now see whether it defined to BIG_ENDIAN or not.
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453 #include <sys/types.h>
4454 #include <sys/param.h>
4455
4456 int
4457 main ()
4458 {
4459 #if BYTE_ORDER != BIG_ENDIAN
4460  not big endian
4461 #endif
4462
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4469 case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474   (eval "$ac_compile") 2>conftest.er1
4475   ac_status=$?
4476   grep -v '^ *+' conftest.er1 >conftest.err
4477   rm -f conftest.er1
4478   cat conftest.err >&5
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } &&
4481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4482   { (case "(($ac_try" in
4483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484   *) ac_try_echo=$ac_try;;
4485 esac
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487   (eval "$ac_try") 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; } &&
4491          { ac_try='test -s conftest.$ac_objext'
4492   { (case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497   (eval "$ac_try") 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }; }; then
4501   ac_cv_c_bigendian=yes
4502 else
4503   echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506         ac_cv_c_bigendian=no
4507 fi
4508
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514         # It does not; compile a test program.
4515 if test "$cross_compiling" = yes; then
4516   # try to guess the endianness by grepping values into an object file
4517   ac_cv_c_bigendian=unknown
4518   cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4525 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4526 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4527 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4528 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4529 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4530 int
4531 main ()
4532 {
4533  _ascii (); _ebcdic ();
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (ac_try="$ac_compile"
4540 case "(($ac_try" in
4541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542   *) ac_try_echo=$ac_try;;
4543 esac
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545   (eval "$ac_compile") 2>conftest.er1
4546   ac_status=$?
4547   grep -v '^ *+' conftest.er1 >conftest.err
4548   rm -f conftest.er1
4549   cat conftest.err >&5
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } &&
4552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4553   { (case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_try") 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }; } &&
4562          { ac_try='test -s conftest.$ac_objext'
4563   { (case "(($ac_try" in
4564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565   *) ac_try_echo=$ac_try;;
4566 esac
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568   (eval "$ac_try") 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; }; then
4572   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4573   ac_cv_c_bigendian=yes
4574 fi
4575 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4576   if test "$ac_cv_c_bigendian" = unknown; then
4577     ac_cv_c_bigendian=no
4578   else
4579     # finding both strings is unlikely to happen, but who knows?
4580     ac_cv_c_bigendian=unknown
4581   fi
4582 fi
4583 else
4584   echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587
4588 fi
4589
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 else
4592   cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598 $ac_includes_default
4599 int
4600 main ()
4601 {
4602
4603   /* Are we little or big endian?  From Harbison&Steele.  */
4604   union
4605   {
4606     long int l;
4607     char c[sizeof (long int)];
4608   } u;
4609   u.l = 1;
4610   return u.c[sizeof (long int) - 1] == 1;
4611
4612   ;
4613   return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest$ac_exeext
4617 if { (ac_try="$ac_link"
4618 case "(($ac_try" in
4619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620   *) ac_try_echo=$ac_try;;
4621 esac
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623   (eval "$ac_link") 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4627   { (case "(($ac_try" in
4628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629   *) ac_try_echo=$ac_try;;
4630 esac
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632   (eval "$ac_try") 2>&5
4633   ac_status=$?
4634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); }; }; then
4636   ac_cv_c_bigendian=no
4637 else
4638   echo "$as_me: program exited with status $ac_status" >&5
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 ( exit $ac_status )
4643 ac_cv_c_bigendian=yes
4644 fi
4645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4646 fi
4647
4648
4649 fi
4650
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 fi
4653 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4654 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4655 case $ac_cv_c_bigendian in
4656   yes)
4657     ENDIAN=big
4658  ;;
4659   no)
4660     ENDIAN=little
4661  ;;
4662   *)
4663     { { echo "$as_me:$LINENO: error: unknown endianness
4664 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4665 echo "$as_me: error: unknown endianness
4666 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4667    { (exit 1); exit 1; }; } ;;
4668 esac
4669
4670
4671 if test "$cross_compiling" = yes; then
4672   LLVM_CROSS_COMPILING=1
4673
4674
4675 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4676 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4677 if test "${ac_cv_build_exeext+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4681   ac_cv_build_exeext=.exe
4682 else
4683   ac_build_prefix=${build_alias}-
4684
4685   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4686 set dummy ${ac_build_prefix}gcc; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   if test -n "$BUILD_CC"; then
4693   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698   IFS=$as_save_IFS
4699   test -z "$as_dir" && as_dir=.
4700   for ac_exec_ext in '' $ac_executable_extensions; do
4701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4702     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704     break 2
4705   fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 fi
4711 fi
4712 BUILD_CC=$ac_cv_prog_BUILD_CC
4713 if test -n "$BUILD_CC"; then
4714   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4715 echo "${ECHO_T}$BUILD_CC" >&6; }
4716 else
4717   { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 fi
4720
4721
4722   if test -z "$BUILD_CC"; then
4723      # Extract the first word of "gcc", so it can be a program name with args.
4724 set dummy gcc; ac_word=$2
4725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4727 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4728   echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730   if test -n "$BUILD_CC"; then
4731   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738   for ac_exec_ext in '' $ac_executable_extensions; do
4739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740     ac_cv_prog_BUILD_CC="gcc"
4741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742     break 2
4743   fi
4744 done
4745 done
4746 IFS=$as_save_IFS
4747
4748 fi
4749 fi
4750 BUILD_CC=$ac_cv_prog_BUILD_CC
4751 if test -n "$BUILD_CC"; then
4752   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4753 echo "${ECHO_T}$BUILD_CC" >&6; }
4754 else
4755   { echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6; }
4757 fi
4758
4759
4760      if test -z "$BUILD_CC"; then
4761        # Extract the first word of "cc", so it can be a program name with args.
4762 set dummy cc; ac_word=$2
4763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4765 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768   if test -n "$BUILD_CC"; then
4769   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4770 else
4771   ac_prog_rejected=no
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777   for ac_exec_ext in '' $ac_executable_extensions; do
4778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4779     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780        ac_prog_rejected=yes
4781        continue
4782      fi
4783     ac_cv_prog_BUILD_CC="cc"
4784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785     break 2
4786   fi
4787 done
4788 done
4789 IFS=$as_save_IFS
4790
4791 if test $ac_prog_rejected = yes; then
4792   # We found a bogon in the path, so make sure we never use it.
4793   set dummy $ac_cv_prog_BUILD_CC
4794   shift
4795   if test $# != 0; then
4796     # We chose a different compiler from the bogus one.
4797     # However, it has the same basename, so the bogon will be chosen
4798     # first if we set BUILD_CC to just the basename; use the full file name.
4799     shift
4800     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4801   fi
4802 fi
4803 fi
4804 fi
4805 BUILD_CC=$ac_cv_prog_BUILD_CC
4806 if test -n "$BUILD_CC"; then
4807   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4808 echo "${ECHO_T}$BUILD_CC" >&6; }
4809 else
4810   { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4812 fi
4813
4814
4815      fi
4816   fi
4817   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4818 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4819    { (exit 1); exit 1; }; }
4820   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4821   rm -f conftest*
4822   echo 'int main () { return 0; }' > conftest.$ac_ext
4823   ac_cv_build_exeext=
4824   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4825   (eval $ac_build_link) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; then
4829     for file in conftest.*; do
4830       case $file in
4831       *.c | *.o | *.obj | *.dSYM) ;;
4832       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4833       esac
4834     done
4835   else
4836     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4837 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4838    { (exit 1); exit 1; }; }
4839   fi
4840   rm -f conftest*
4841   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4842 fi
4843 fi
4844
4845 BUILD_EXEEXT=""
4846 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4847 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4848 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4849 ac_build_exeext=$BUILD_EXEEXT
4850
4851   ac_build_prefix=${build_alias}-
4852   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4853 set dummy ${ac_build_prefix}g++; ac_word=$2
4854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859   if test -n "$BUILD_CXX"; then
4860   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867   for ac_exec_ext in '' $ac_executable_extensions; do
4868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4869     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4880 if test -n "$BUILD_CXX"; then
4881   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4882 echo "${ECHO_T}$BUILD_CXX" >&6; }
4883 else
4884   { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4886 fi
4887
4888
4889   if test -z "$BUILD_CXX"; then
4890      # Extract the first word of "g++", so it can be a program name with args.
4891 set dummy g++; ac_word=$2
4892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   if test -n "$BUILD_CXX"; then
4898   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_exec_ext in '' $ac_executable_extensions; do
4906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907     ac_cv_prog_BUILD_CXX="g++"
4908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909     break 2
4910   fi
4911 done
4912 done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4918 if test -n "$BUILD_CXX"; then
4919   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4920 echo "${ECHO_T}$BUILD_CXX" >&6; }
4921 else
4922   { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4924 fi
4925
4926
4927      if test -z "$BUILD_CXX"; then
4928        # Extract the first word of "c++", so it can be a program name with args.
4929 set dummy c++; ac_word=$2
4930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4932 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935   if test -n "$BUILD_CXX"; then
4936   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4937 else
4938   ac_prog_rejected=no
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944   for ac_exec_ext in '' $ac_executable_extensions; do
4945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4946     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4947        ac_prog_rejected=yes
4948        continue
4949      fi
4950     ac_cv_prog_BUILD_CXX="c++"
4951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 if test $ac_prog_rejected = yes; then
4959   # We found a bogon in the path, so make sure we never use it.
4960   set dummy $ac_cv_prog_BUILD_CXX
4961   shift
4962   if test $# != 0; then
4963     # We chose a different compiler from the bogus one.
4964     # However, it has the same basename, so the bogon will be chosen
4965     # first if we set BUILD_CXX to just the basename; use the full file name.
4966     shift
4967     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4968   fi
4969 fi
4970 fi
4971 fi
4972 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4973 if test -n "$BUILD_CXX"; then
4974   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4975 echo "${ECHO_T}$BUILD_CXX" >&6; }
4976 else
4977   { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4979 fi
4980
4981
4982      fi
4983   fi
4984 else
4985   LLVM_CROSS_COMPILING=0
4986
4987 fi
4988
4989 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4990   cvsbuild="yes"
4991   optimize="no"
4992   CVSBUILD=CVSBUILD=1
4993
4994 else
4995   cvsbuild="no"
4996   optimize="yes"
4997 fi
4998
4999
5000 # Check whether --enable-libcpp was given.
5001 if test "${enable_libcpp+set}" = set; then
5002   enableval=$enable_libcpp;
5003 else
5004   enableval=default
5005 fi
5006
5007 case "$enableval" in
5008   yes) ENABLE_LIBCPP=1
5009  ;;
5010   no)  ENABLE_LIBCPP=0
5011  ;;
5012   default) ENABLE_LIBCPP=0
5013 ;;
5014   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5015 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5016    { (exit 1); exit 1; }; } ;;
5017 esac
5018
5019 # Check whether --enable-optimized was given.
5020 if test "${enable_optimized+set}" = set; then
5021   enableval=$enable_optimized;
5022 else
5023   enableval=$optimize
5024 fi
5025
5026 if test ${enableval} = "no" ; then
5027   ENABLE_OPTIMIZED=
5028
5029 else
5030   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5031
5032 fi
5033
5034 # Check whether --enable-profiling was given.
5035 if test "${enable_profiling+set}" = set; then
5036   enableval=$enable_profiling;
5037 else
5038   enableval="no"
5039 fi
5040
5041 if test ${enableval} = "no" ; then
5042   ENABLE_PROFILING=
5043
5044 else
5045   ENABLE_PROFILING=ENABLE_PROFILING=1
5046
5047 fi
5048
5049 # Check whether --enable-assertions was given.
5050 if test "${enable_assertions+set}" = set; then
5051   enableval=$enable_assertions;
5052 else
5053   enableval="yes"
5054 fi
5055
5056 if test ${enableval} = "yes" ; then
5057   DISABLE_ASSERTIONS=
5058
5059 else
5060   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5061
5062 fi
5063
5064 # Check whether --enable-expensive-checks was given.
5065 if test "${enable_expensive_checks+set}" = set; then
5066   enableval=$enable_expensive_checks;
5067 else
5068   enableval="no"
5069 fi
5070
5071 if test ${enableval} = "yes" ; then
5072   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5073
5074   EXPENSIVE_CHECKS=yes
5075
5076 else
5077   ENABLE_EXPENSIVE_CHECKS=
5078
5079   EXPENSIVE_CHECKS=no
5080
5081 fi
5082
5083 # Check whether --enable-debug-runtime was given.
5084 if test "${enable_debug_runtime+set}" = set; then
5085   enableval=$enable_debug_runtime;
5086 else
5087   enableval=no
5088 fi
5089
5090 if test ${enableval} = "no" ; then
5091   DEBUG_RUNTIME=
5092
5093 else
5094   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5095
5096 fi
5097
5098 # Check whether --enable-debug-symbols was given.
5099 if test "${enable_debug_symbols+set}" = set; then
5100   enableval=$enable_debug_symbols;
5101 else
5102   enableval=no
5103 fi
5104
5105 if test ${enableval} = "no" ; then
5106   DEBUG_SYMBOLS=
5107
5108 else
5109   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5110
5111 fi
5112
5113 # Check whether --enable-jit was given.
5114 if test "${enable_jit+set}" = set; then
5115   enableval=$enable_jit;
5116 else
5117   enableval=default
5118 fi
5119
5120 if test ${enableval} = "no"
5121 then
5122   JIT=
5123
5124 else
5125   case "$llvm_cv_target_arch" in
5126     x86)         TARGET_HAS_JIT=1
5127  ;;
5128     Sparc)       TARGET_HAS_JIT=0
5129  ;;
5130     PowerPC)     TARGET_HAS_JIT=1
5131  ;;
5132     x86_64)      TARGET_HAS_JIT=1
5133  ;;
5134     ARM)         TARGET_HAS_JIT=1
5135  ;;
5136     Mips)        TARGET_HAS_JIT=1
5137  ;;
5138     XCore)       TARGET_HAS_JIT=0
5139  ;;
5140     MSP430)      TARGET_HAS_JIT=0
5141  ;;
5142     Hexagon)     TARGET_HAS_JIT=0
5143  ;;
5144     MBlaze)      TARGET_HAS_JIT=0
5145  ;;
5146     NVPTX)       TARGET_HAS_JIT=0
5147  ;;
5148     *)           TARGET_HAS_JIT=0
5149  ;;
5150   esac
5151 fi
5152
5153 # Check whether --enable-docs was given.
5154 if test "${enable_docs+set}" = set; then
5155   enableval=$enable_docs;
5156 else
5157   enableval=default
5158 fi
5159
5160 case "$enableval" in
5161   yes) ENABLE_DOCS=1
5162  ;;
5163   no)  ENABLE_DOCS=0
5164  ;;
5165   default) ENABLE_DOCS=1
5166  ;;
5167   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5169    { (exit 1); exit 1; }; } ;;
5170 esac
5171
5172 # Check whether --enable-doxygen was given.
5173 if test "${enable_doxygen+set}" = set; then
5174   enableval=$enable_doxygen;
5175 else
5176   enableval=default
5177 fi
5178
5179 case "$enableval" in
5180   yes) ENABLE_DOXYGEN=1
5181  ;;
5182   no)  ENABLE_DOXYGEN=0
5183  ;;
5184   default) ENABLE_DOXYGEN=0
5185  ;;
5186   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5188    { (exit 1); exit 1; }; } ;;
5189 esac
5190
5191 # Check whether --enable-threads was given.
5192 if test "${enable_threads+set}" = set; then
5193   enableval=$enable_threads;
5194 else
5195   enableval=default
5196 fi
5197
5198 case "$enableval" in
5199   yes) LLVM_ENABLE_THREADS=1
5200  ;;
5201   no)  LLVM_ENABLE_THREADS=0
5202  ;;
5203   default) LLVM_ENABLE_THREADS=1
5204  ;;
5205   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5207    { (exit 1); exit 1; }; } ;;
5208 esac
5209
5210 cat >>confdefs.h <<_ACEOF
5211 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5212 _ACEOF
5213
5214
5215 # Check whether --enable-pthreads was given.
5216 if test "${enable_pthreads+set}" = set; then
5217   enableval=$enable_pthreads;
5218 else
5219   enableval=default
5220 fi
5221
5222 case "$enableval" in
5223   yes) ENABLE_PTHREADS=1
5224  ;;
5225   no)  ENABLE_PTHREADS=0
5226  ;;
5227   default) ENABLE_PTHREADS=1
5228  ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 # Check whether --enable-pic was given.
5235 if test "${enable_pic+set}" = set; then
5236   enableval=$enable_pic;
5237 else
5238   enableval=default
5239 fi
5240
5241 case "$enableval" in
5242   yes) ENABLE_PIC=1
5243  ;;
5244   no)  ENABLE_PIC=0
5245  ;;
5246   default) ENABLE_PIC=1
5247  ;;
5248   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5249 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5250    { (exit 1); exit 1; }; } ;;
5251 esac
5252
5253 cat >>confdefs.h <<_ACEOF
5254 #define ENABLE_PIC $ENABLE_PIC
5255 _ACEOF
5256
5257
5258 # Check whether --enable-shared was given.
5259 if test "${enable_shared+set}" = set; then
5260   enableval=$enable_shared;
5261 else
5262   enableval=default
5263 fi
5264
5265 case "$enableval" in
5266   yes) ENABLE_SHARED=1
5267  ;;
5268   no)  ENABLE_SHARED=0
5269  ;;
5270   default) ENABLE_SHARED=0
5271  ;;
5272   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5274    { (exit 1); exit 1; }; } ;;
5275 esac
5276
5277 # Check whether --enable-embed-stdcxx was given.
5278 if test "${enable_embed_stdcxx+set}" = set; then
5279   enableval=$enable_embed_stdcxx;
5280 else
5281   enableval=default
5282 fi
5283
5284 case "$enableval" in
5285   yes) ENABLE_EMBED_STDCXX=1
5286  ;;
5287   no)  ENABLE_EMBED_STDCXX=0
5288  ;;
5289   default) ENABLE_EMBED_STDCXX=0
5290  ;;
5291   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5293    { (exit 1); exit 1; }; } ;;
5294 esac
5295
5296 # Check whether --enable-timestamps was given.
5297 if test "${enable_timestamps+set}" = set; then
5298   enableval=$enable_timestamps;
5299 else
5300   enableval=default
5301 fi
5302
5303 case "$enableval" in
5304   yes) ENABLE_TIMESTAMPS=1
5305  ;;
5306   no)  ENABLE_TIMESTAMPS=0
5307  ;;
5308   default) ENABLE_TIMESTAMPS=1
5309  ;;
5310   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5312    { (exit 1); exit 1; }; } ;;
5313 esac
5314
5315 cat >>confdefs.h <<_ACEOF
5316 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5317 _ACEOF
5318
5319
5320 TARGETS_TO_BUILD=""
5321 # Check whether --enable-targets was given.
5322 if test "${enable_targets+set}" = set; then
5323   enableval=$enable_targets;
5324 else
5325   enableval=all
5326 fi
5327
5328 if test "$enableval" = host-only ; then
5329   enableval=host
5330 fi
5331 case "$enableval" in
5332   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5333   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5334       case "$a_target" in
5335         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5336         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5338         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5339         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5340         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5341         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5343         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5344         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5345         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5346         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5347         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5348         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5349         host) case "$llvm_cv_target_arch" in
5350             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5351             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5353             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5354             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5355             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5356             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5357             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5358             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5359             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5360             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5361             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5362             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5363 echo "$as_me: error: Can not set target to build" >&2;}
5364    { (exit 1); exit 1; }; } ;;
5365           esac ;;
5366         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5367 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5368    { (exit 1); exit 1; }; } ;;
5369       esac
5370   done
5371   ;;
5372 esac
5373 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5374
5375
5376 for a_target in $TARGETS_TO_BUILD; do
5377   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5381 _ACEOF
5382
5383     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5384     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5385     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5386     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5387     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5388       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5389     fi
5390     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5391       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5392     fi
5393
5394 cat >>confdefs.h <<_ACEOF
5395 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5396 _ACEOF
5397
5398
5399 cat >>confdefs.h <<_ACEOF
5400 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5401 _ACEOF
5402
5403
5404 cat >>confdefs.h <<_ACEOF
5405 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5406 _ACEOF
5407
5408
5409 cat >>confdefs.h <<_ACEOF
5410 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5411 _ACEOF
5412
5413     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5414
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5417 _ACEOF
5418
5419     fi
5420     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5421
5422 cat >>confdefs.h <<_ACEOF
5423 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5424 _ACEOF
5425
5426     fi
5427   fi
5428 done
5429
5430 LLVM_ENUM_TARGETS=""
5431 LLVM_ENUM_ASM_PRINTERS=""
5432 LLVM_ENUM_ASM_PARSERS=""
5433 LLVM_ENUM_DISASSEMBLERS=""
5434 for target_to_build in $TARGETS_TO_BUILD; do
5435   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5436   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5437     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5438   fi
5439   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5440     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5441   fi
5442   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5443     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5444   fi
5445 done
5446
5447
5448
5449
5450
5451
5452 # Check whether --with-optimize-option was given.
5453 if test "${with_optimize_option+set}" = set; then
5454   withval=$with_optimize_option;
5455 else
5456   withval=default
5457 fi
5458
5459 { echo "$as_me:$LINENO: checking optimization flags" >&5
5460 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5461 case "$withval" in
5462   default)
5463     case "$llvm_cv_os_type" in
5464     FreeBSD) optimize_option=-O2 ;;
5465     MingW) optimize_option=-O2 ;;
5466     *)     optimize_option=-O3 ;;
5467     esac ;;
5468   *) optimize_option="$withval" ;;
5469 esac
5470 OPTIMIZE_OPTION=$optimize_option
5471
5472 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5473 echo "${ECHO_T}$optimize_option" >&6; }
5474
5475
5476 # Check whether --with-extra-options was given.
5477 if test "${with_extra_options+set}" = set; then
5478   withval=$with_extra_options;
5479 else
5480   withval=default
5481 fi
5482
5483 case "$withval" in
5484   default) EXTRA_OPTIONS= ;;
5485   *) EXTRA_OPTIONS=$withval ;;
5486 esac
5487 EXTRA_OPTIONS=$EXTRA_OPTIONS
5488
5489
5490
5491 # Check whether --with-extra-ld-options was given.
5492 if test "${with_extra_ld_options+set}" = set; then
5493   withval=$with_extra_ld_options;
5494 else
5495   withval=default
5496 fi
5497
5498 case "$withval" in
5499   default) EXTRA_LD_OPTIONS= ;;
5500   *) EXTRA_LD_OPTIONS=$withval ;;
5501 esac
5502 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5503
5504
5505 # Check whether --enable-bindings was given.
5506 if test "${enable_bindings+set}" = set; then
5507   enableval=$enable_bindings;
5508 else
5509   enableval=default
5510 fi
5511
5512 BINDINGS_TO_BUILD=""
5513 case "$enableval" in
5514   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5515   all ) BINDINGS_TO_BUILD="ocaml" ;;
5516   none | no) BINDINGS_TO_BUILD="" ;;
5517   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5518       case "$a_binding" in
5519         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5520         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5521 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5522    { (exit 1); exit 1; }; } ;;
5523       esac
5524   done
5525   ;;
5526 esac
5527
5528
5529 # Check whether --with-ocaml-libdir was given.
5530 if test "${with_ocaml_libdir+set}" = set; then
5531   withval=$with_ocaml_libdir;
5532 else
5533   withval=auto
5534 fi
5535
5536 case "$withval" in
5537   auto) with_ocaml_libdir="$withval" ;;
5538   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5539   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5540 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5541    { (exit 1); exit 1; }; } ;;
5542 esac
5543
5544
5545 # Check whether --with-clang-srcdir was given.
5546 if test "${with_clang_srcdir+set}" = set; then
5547   withval=$with_clang_srcdir;
5548 else
5549   withval="-"
5550 fi
5551
5552 case "$withval" in
5553   -) clang_src_root="" ;;
5554   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5555   *) clang_src_root="$ac_pwd/$withval" ;;
5556 esac
5557 CLANG_SRC_ROOT=$clang_src_root
5558
5559
5560
5561 # Check whether --with-clang-resource-dir was given.
5562 if test "${with_clang_resource_dir+set}" = set; then
5563   withval=$with_clang_resource_dir;
5564 else
5565   withval=""
5566 fi
5567
5568
5569 cat >>confdefs.h <<_ACEOF
5570 #define CLANG_RESOURCE_DIR "$withval"
5571 _ACEOF
5572
5573
5574
5575 # Check whether --with-c-include-dirs was given.
5576 if test "${with_c_include_dirs+set}" = set; then
5577   withval=$with_c_include_dirs;
5578 else
5579   withval=""
5580 fi
5581
5582
5583 cat >>confdefs.h <<_ACEOF
5584 #define C_INCLUDE_DIRS "$withval"
5585 _ACEOF
5586
5587
5588 # Clang normally uses the system c++ headers and libraries. With this option,
5589 # clang will use the ones provided by a gcc installation instead. This option should
5590 # be passed the same value that was used with --prefix when configuring gcc.
5591
5592 # Check whether --with-gcc-toolchain was given.
5593 if test "${with_gcc_toolchain+set}" = set; then
5594   withval=$with_gcc_toolchain;
5595 else
5596   withval=""
5597 fi
5598
5599
5600 cat >>confdefs.h <<_ACEOF
5601 #define GCC_INSTALL_PREFIX "$withval"
5602 _ACEOF
5603
5604
5605
5606 # Check whether --with-default-sysroot was given.
5607 if test "${with_default_sysroot+set}" = set; then
5608   withval=$with_default_sysroot;
5609 else
5610   withval=""
5611 fi
5612
5613
5614 cat >>confdefs.h <<_ACEOF
5615 #define DEFAULT_SYSROOT "$withval"
5616 _ACEOF
5617
5618
5619
5620 # Check whether --with-binutils-include was given.
5621 if test "${with_binutils_include+set}" = set; then
5622   withval=$with_binutils_include;
5623 else
5624   withval=default
5625 fi
5626
5627 case "$withval" in
5628   default) WITH_BINUTILS_INCDIR=default ;;
5629   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5630   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5631 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5632    { (exit 1); exit 1; }; } ;;
5633 esac
5634 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5635   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5636
5637   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5638      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5639      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5640 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5641    { (exit 1); exit 1; }; };
5642   fi
5643 fi
5644
5645
5646 # Check whether --with-bug-report-url was given.
5647 if test "${with_bug_report_url+set}" = set; then
5648   withval=$with_bug_report_url;
5649 else
5650   withval="http://llvm.org/bugs/"
5651 fi
5652
5653
5654 cat >>confdefs.h <<_ACEOF
5655 #define BUG_REPORT_URL "$withval"
5656 _ACEOF
5657
5658
5659 # Check whether --enable-libffi was given.
5660 if test "${enable_libffi+set}" = set; then
5661   enableval=$enable_libffi; case "$enableval" in
5662     yes) llvm_cv_enable_libffi="yes" ;;
5663     no)  llvm_cv_enable_libffi="no"  ;;
5664     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5665 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5666    { (exit 1); exit 1; }; } ;;
5667   esac
5668 else
5669   llvm_cv_enable_libffi=no
5670 fi
5671
5672
5673
5674 # Check whether --with-internal-prefix was given.
5675 if test "${with_internal_prefix+set}" = set; then
5676   withval=$with_internal_prefix;
5677 else
5678   withval=""
5679 fi
5680
5681 INTERNAL_PREFIX=$withval
5682
5683
5684
5685 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5686 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5687 if test "${lt_cv_path_NM+set}" = set; then
5688   echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690   if test -n "$NM"; then
5691   # Let the user override the test.
5692   lt_cv_path_NM="$NM"
5693 else
5694   lt_nm_to_check="${ac_tool_prefix}nm"
5695   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5696     lt_nm_to_check="$lt_nm_to_check nm"
5697   fi
5698   for lt_tmp_nm in $lt_nm_to_check; do
5699     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5700     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5701       IFS="$lt_save_ifs"
5702       test -z "$ac_dir" && ac_dir=.
5703       tmp_nm="$ac_dir/$lt_tmp_nm"
5704       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5705         # Check to see if the nm accepts a BSD-compat flag.
5706         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5707         #   nm: unknown option "B" ignored
5708         # Tru64's nm complains that /dev/null is an invalid object file
5709         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5710         */dev/null* | *'Invalid file or object type'*)
5711           lt_cv_path_NM="$tmp_nm -B"
5712           break
5713           ;;
5714         *)
5715           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5716           */dev/null*)
5717             lt_cv_path_NM="$tmp_nm -p"
5718             break
5719             ;;
5720           *)
5721             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5722             continue # so that we can try to find one that supports BSD flags
5723             ;;
5724           esac
5725           ;;
5726         esac
5727       fi
5728     done
5729     IFS="$lt_save_ifs"
5730   done
5731   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5732 fi
5733 fi
5734 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5735 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5736 NM="$lt_cv_path_NM"
5737
5738
5739
5740 { echo "$as_me:$LINENO: checking for GNU make" >&5
5741 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5742 if test "${llvm_cv_gnu_make_command+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   llvm_cv_gnu_make_command=''
5746  for a in "$MAKE" make gmake gnumake ; do
5747   if test -z "$a" ; then continue ; fi ;
5748   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5749   then
5750    llvm_cv_gnu_make_command=$a ;
5751    break;
5752   fi
5753  done
5754 fi
5755 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5756 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5757  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5758    ifGNUmake='' ;
5759  else
5760    ifGNUmake='#' ;
5761    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5762 echo "${ECHO_T}\"Not found\"" >&6; };
5763  fi
5764
5765
5766 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5767 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5768 LN_S=$as_ln_s
5769 if test "$LN_S" = "ln -s"; then
5770   { echo "$as_me:$LINENO: result: yes" >&5
5771 echo "${ECHO_T}yes" >&6; }
5772 else
5773   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5774 echo "${ECHO_T}no, using $LN_S" >&6; }
5775 fi
5776
5777 # Extract the first word of "cmp", so it can be a program name with args.
5778 set dummy cmp; ac_word=$2
5779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5781 if test "${ac_cv_path_CMP+set}" = set; then
5782   echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784   case $CMP in
5785   [\\/]* | ?:[\\/]*)
5786   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5787   ;;
5788   *)
5789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5791 do
5792   IFS=$as_save_IFS
5793   test -z "$as_dir" && as_dir=.
5794   for ac_exec_ext in '' $ac_executable_extensions; do
5795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5796     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798     break 2
5799   fi
5800 done
5801 done
5802 IFS=$as_save_IFS
5803
5804   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5805   ;;
5806 esac
5807 fi
5808 CMP=$ac_cv_path_CMP
5809 if test -n "$CMP"; then
5810   { echo "$as_me:$LINENO: result: $CMP" >&5
5811 echo "${ECHO_T}$CMP" >&6; }
5812 else
5813   { echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6; }
5815 fi
5816
5817
5818 # Extract the first word of "cp", so it can be a program name with args.
5819 set dummy cp; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_path_CP+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   case $CP in
5826   [\\/]* | ?:[\\/]*)
5827   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5828   ;;
5829   *)
5830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833   IFS=$as_save_IFS
5834   test -z "$as_dir" && as_dir=.
5835   for ac_exec_ext in '' $ac_executable_extensions; do
5836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840   fi
5841 done
5842 done
5843 IFS=$as_save_IFS
5844
5845   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5846   ;;
5847 esac
5848 fi
5849 CP=$ac_cv_path_CP
5850 if test -n "$CP"; then
5851   { echo "$as_me:$LINENO: result: $CP" >&5
5852 echo "${ECHO_T}$CP" >&6; }
5853 else
5854   { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5856 fi
5857
5858
5859 # Extract the first word of "date", so it can be a program name with args.
5860 set dummy date; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_DATE+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   case $DATE in
5867   [\\/]* | ?:[\\/]*)
5868   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5869   ;;
5870   *)
5871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876   for ac_exec_ext in '' $ac_executable_extensions; do
5877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883 done
5884 IFS=$as_save_IFS
5885
5886   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5887   ;;
5888 esac
5889 fi
5890 DATE=$ac_cv_path_DATE
5891 if test -n "$DATE"; then
5892   { echo "$as_me:$LINENO: result: $DATE" >&5
5893 echo "${ECHO_T}$DATE" >&6; }
5894 else
5895   { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5897 fi
5898
5899
5900 # Extract the first word of "find", so it can be a program name with args.
5901 set dummy find; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_FIND+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   case $FIND in
5908   [\\/]* | ?:[\\/]*)
5909   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5910   ;;
5911   *)
5912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5928   ;;
5929 esac
5930 fi
5931 FIND=$ac_cv_path_FIND
5932 if test -n "$FIND"; then
5933   { echo "$as_me:$LINENO: result: $FIND" >&5
5934 echo "${ECHO_T}$FIND" >&6; }
5935 else
5936   { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5938 fi
5939
5940
5941 # Extract the first word of "grep", so it can be a program name with args.
5942 set dummy grep; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_path_GREP+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   case $GREP in
5949   [\\/]* | ?:[\\/]*)
5950   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5951   ;;
5952   *)
5953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958   for ac_exec_ext in '' $ac_executable_extensions; do
5959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965 done
5966 IFS=$as_save_IFS
5967
5968   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5969   ;;
5970 esac
5971 fi
5972 GREP=$ac_cv_path_GREP
5973 if test -n "$GREP"; then
5974   { echo "$as_me:$LINENO: result: $GREP" >&5
5975 echo "${ECHO_T}$GREP" >&6; }
5976 else
5977   { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979 fi
5980
5981
5982 # Extract the first word of "mkdir", so it can be a program name with args.
5983 set dummy mkdir; ac_word=$2
5984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986 if test "${ac_cv_path_MKDIR+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   case $MKDIR in
5990   [\\/]* | ?:[\\/]*)
5991   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5992   ;;
5993   *)
5994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999   for ac_exec_ext in '' $ac_executable_extensions; do
6000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6010   ;;
6011 esac
6012 fi
6013 MKDIR=$ac_cv_path_MKDIR
6014 if test -n "$MKDIR"; then
6015   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6016 echo "${ECHO_T}$MKDIR" >&6; }
6017 else
6018   { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6020 fi
6021
6022
6023 # Extract the first word of "mv", so it can be a program name with args.
6024 set dummy mv; ac_word=$2
6025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027 if test "${ac_cv_path_MV+set}" = set; then
6028   echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030   case $MV in
6031   [\\/]* | ?:[\\/]*)
6032   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6033   ;;
6034   *)
6035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040   for ac_exec_ext in '' $ac_executable_extensions; do
6041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6042     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6051   ;;
6052 esac
6053 fi
6054 MV=$ac_cv_path_MV
6055 if test -n "$MV"; then
6056   { echo "$as_me:$LINENO: result: $MV" >&5
6057 echo "${ECHO_T}$MV" >&6; }
6058 else
6059   { echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6; }
6061 fi
6062
6063
6064 if test -n "$ac_tool_prefix"; then
6065   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6066 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6069 if test "${ac_cv_prog_RANLIB+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   if test -n "$RANLIB"; then
6073   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080   for ac_exec_ext in '' $ac_executable_extensions; do
6081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6082     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 RANLIB=$ac_cv_prog_RANLIB
6093 if test -n "$RANLIB"; then
6094   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6095 echo "${ECHO_T}$RANLIB" >&6; }
6096 else
6097   { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6099 fi
6100
6101
6102 fi
6103 if test -z "$ac_cv_prog_RANLIB"; then
6104   ac_ct_RANLIB=$RANLIB
6105   # Extract the first word of "ranlib", so it can be a program name with args.
6106 set dummy ranlib; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   if test -n "$ac_ct_RANLIB"; then
6113   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120   for ac_exec_ext in '' $ac_executable_extensions; do
6121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6122     ac_cv_prog_ac_ct_RANLIB="ranlib"
6123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6133 if test -n "$ac_ct_RANLIB"; then
6134   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6135 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6136 else
6137   { echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6; }
6139 fi
6140
6141   if test "x$ac_ct_RANLIB" = x; then
6142     RANLIB=":"
6143   else
6144     case $cross_compiling:$ac_tool_warned in
6145 yes:)
6146 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6147 whose name does not start with the host triplet.  If you think this
6148 configuration is useful to you, please write to autoconf@gnu.org." >&5
6149 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6150 whose name does not start with the host triplet.  If you think this
6151 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6152 ac_tool_warned=yes ;;
6153 esac
6154     RANLIB=$ac_ct_RANLIB
6155   fi
6156 else
6157   RANLIB="$ac_cv_prog_RANLIB"
6158 fi
6159
6160 if test -n "$ac_tool_prefix"; then
6161   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}ar; ac_word=$2
6163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6165 if test "${ac_cv_prog_AR+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   if test -n "$AR"; then
6169   ac_cv_prog_AR="$AR" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174   IFS=$as_save_IFS
6175   test -z "$as_dir" && as_dir=.
6176   for ac_exec_ext in '' $ac_executable_extensions; do
6177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6178     ac_cv_prog_AR="${ac_tool_prefix}ar"
6179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180     break 2
6181   fi
6182 done
6183 done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 AR=$ac_cv_prog_AR
6189 if test -n "$AR"; then
6190   { echo "$as_me:$LINENO: result: $AR" >&5
6191 echo "${ECHO_T}$AR" >&6; }
6192 else
6193   { echo "$as_me:$LINENO: result: no" >&5
6194 echo "${ECHO_T}no" >&6; }
6195 fi
6196
6197
6198 fi
6199 if test -z "$ac_cv_prog_AR"; then
6200   ac_ct_AR=$AR
6201   # Extract the first word of "ar", so it can be a program name with args.
6202 set dummy ar; ac_word=$2
6203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6205 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208   if test -n "$ac_ct_AR"; then
6209   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6213 do
6214   IFS=$as_save_IFS
6215   test -z "$as_dir" && as_dir=.
6216   for ac_exec_ext in '' $ac_executable_extensions; do
6217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6218     ac_cv_prog_ac_ct_AR="ar"
6219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220     break 2
6221   fi
6222 done
6223 done
6224 IFS=$as_save_IFS
6225
6226 fi
6227 fi
6228 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6229 if test -n "$ac_ct_AR"; then
6230   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6231 echo "${ECHO_T}$ac_ct_AR" >&6; }
6232 else
6233   { echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6; }
6235 fi
6236
6237   if test "x$ac_ct_AR" = x; then
6238     AR="false"
6239   else
6240     case $cross_compiling:$ac_tool_warned in
6241 yes:)
6242 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6243 whose name does not start with the host triplet.  If you think this
6244 configuration is useful to you, please write to autoconf@gnu.org." >&5
6245 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6246 whose name does not start with the host triplet.  If you think this
6247 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6248 ac_tool_warned=yes ;;
6249 esac
6250     AR=$ac_ct_AR
6251   fi
6252 else
6253   AR="$ac_cv_prog_AR"
6254 fi
6255
6256 # Extract the first word of "rm", so it can be a program name with args.
6257 set dummy rm; ac_word=$2
6258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260 if test "${ac_cv_path_RM+set}" = set; then
6261   echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263   case $RM in
6264   [\\/]* | ?:[\\/]*)
6265   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6266   ;;
6267   *)
6268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271   IFS=$as_save_IFS
6272   test -z "$as_dir" && as_dir=.
6273   for ac_exec_ext in '' $ac_executable_extensions; do
6274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6275     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277     break 2
6278   fi
6279 done
6280 done
6281 IFS=$as_save_IFS
6282
6283   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6284   ;;
6285 esac
6286 fi
6287 RM=$ac_cv_path_RM
6288 if test -n "$RM"; then
6289   { echo "$as_me:$LINENO: result: $RM" >&5
6290 echo "${ECHO_T}$RM" >&6; }
6291 else
6292   { echo "$as_me:$LINENO: result: no" >&5
6293 echo "${ECHO_T}no" >&6; }
6294 fi
6295
6296
6297 # Extract the first word of "sed", so it can be a program name with args.
6298 set dummy sed; ac_word=$2
6299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301 if test "${ac_cv_path_SED+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   case $SED in
6305   [\\/]* | ?:[\\/]*)
6306   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6307   ;;
6308   *)
6309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314   for ac_exec_ext in '' $ac_executable_extensions; do
6315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6316     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318     break 2
6319   fi
6320 done
6321 done
6322 IFS=$as_save_IFS
6323
6324   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6325   ;;
6326 esac
6327 fi
6328 SED=$ac_cv_path_SED
6329 if test -n "$SED"; then
6330   { echo "$as_me:$LINENO: result: $SED" >&5
6331 echo "${ECHO_T}$SED" >&6; }
6332 else
6333   { echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6; }
6335 fi
6336
6337
6338 # Extract the first word of "tar", so it can be a program name with args.
6339 set dummy tar; ac_word=$2
6340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342 if test "${ac_cv_path_TAR+set}" = set; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   case $TAR in
6346   [\\/]* | ?:[\\/]*)
6347   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6348   ;;
6349   *)
6350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355   for ac_exec_ext in '' $ac_executable_extensions; do
6356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6357     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6366   ;;
6367 esac
6368 fi
6369 TAR=$ac_cv_path_TAR
6370 if test -n "$TAR"; then
6371   { echo "$as_me:$LINENO: result: $TAR" >&5
6372 echo "${ECHO_T}$TAR" >&6; }
6373 else
6374   { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6376 fi
6377
6378
6379 # Extract the first word of "pwd", so it can be a program name with args.
6380 set dummy pwd; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_path_BINPWD+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   case $BINPWD in
6387   [\\/]* | ?:[\\/]*)
6388   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6389   ;;
6390   *)
6391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396   for ac_exec_ext in '' $ac_executable_extensions; do
6397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403 done
6404 IFS=$as_save_IFS
6405
6406   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6407   ;;
6408 esac
6409 fi
6410 BINPWD=$ac_cv_path_BINPWD
6411 if test -n "$BINPWD"; then
6412   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6413 echo "${ECHO_T}$BINPWD" >&6; }
6414 else
6415   { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6417 fi
6418
6419
6420
6421 # Extract the first word of "Graphviz", so it can be a program name with args.
6422 set dummy Graphviz; ac_word=$2
6423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428   case $GRAPHVIZ in
6429   [\\/]* | ?:[\\/]*)
6430   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6431   ;;
6432   *)
6433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6435 do
6436   IFS=$as_save_IFS
6437   test -z "$as_dir" && as_dir=.
6438   for ac_exec_ext in '' $ac_executable_extensions; do
6439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6440     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442     break 2
6443   fi
6444 done
6445 done
6446 IFS=$as_save_IFS
6447
6448   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6449   ;;
6450 esac
6451 fi
6452 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6453 if test -n "$GRAPHVIZ"; then
6454   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6455 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6456 else
6457   { echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6; }
6459 fi
6460
6461
6462 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6463
6464 cat >>confdefs.h <<\_ACEOF
6465 #define HAVE_GRAPHVIZ 1
6466 _ACEOF
6467
6468     if test "$llvm_cv_os_type" = "MingW" ; then
6469     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6470   fi
6471
6472 cat >>confdefs.h <<_ACEOF
6473 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6474 _ACEOF
6475
6476 fi
6477 # Extract the first word of "dot", so it can be a program name with args.
6478 set dummy dot; ac_word=$2
6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6481 if test "${ac_cv_path_DOT+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   case $DOT in
6485   [\\/]* | ?:[\\/]*)
6486   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6487   ;;
6488   *)
6489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494   for ac_exec_ext in '' $ac_executable_extensions; do
6495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6496     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6505   ;;
6506 esac
6507 fi
6508 DOT=$ac_cv_path_DOT
6509 if test -n "$DOT"; then
6510   { echo "$as_me:$LINENO: result: $DOT" >&5
6511 echo "${ECHO_T}$DOT" >&6; }
6512 else
6513   { echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6; }
6515 fi
6516
6517
6518 if test "$DOT" != "echo dot" ; then
6519
6520 cat >>confdefs.h <<\_ACEOF
6521 #define HAVE_DOT 1
6522 _ACEOF
6523
6524     if test "$llvm_cv_os_type" = "MingW" ; then
6525     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6526   fi
6527
6528 cat >>confdefs.h <<_ACEOF
6529 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6530 _ACEOF
6531
6532 fi
6533 # Extract the first word of "fdp", so it can be a program name with args.
6534 set dummy fdp; ac_word=$2
6535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6537 if test "${ac_cv_path_FDP+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   case $FDP in
6541   [\\/]* | ?:[\\/]*)
6542   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6543   ;;
6544   *)
6545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550   for ac_exec_ext in '' $ac_executable_extensions; do
6551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6552     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6559
6560   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6561   ;;
6562 esac
6563 fi
6564 FDP=$ac_cv_path_FDP
6565 if test -n "$FDP"; then
6566   { echo "$as_me:$LINENO: result: $FDP" >&5
6567 echo "${ECHO_T}$FDP" >&6; }
6568 else
6569   { echo "$as_me:$LINENO: result: no" >&5
6570 echo "${ECHO_T}no" >&6; }
6571 fi
6572
6573
6574 if test "$FDP" != "echo fdp" ; then
6575
6576 cat >>confdefs.h <<\_ACEOF
6577 #define HAVE_FDP 1
6578 _ACEOF
6579
6580     if test "$llvm_cv_os_type" = "MingW" ; then
6581     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6582   fi
6583
6584 cat >>confdefs.h <<_ACEOF
6585 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6586 _ACEOF
6587
6588 fi
6589 # Extract the first word of "neato", so it can be a program name with args.
6590 set dummy neato; ac_word=$2
6591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6593 if test "${ac_cv_path_NEATO+set}" = set; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596   case $NEATO in
6597   [\\/]* | ?:[\\/]*)
6598   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6599   ;;
6600   *)
6601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604   IFS=$as_save_IFS
6605   test -z "$as_dir" && as_dir=.
6606   for ac_exec_ext in '' $ac_executable_extensions; do
6607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6608     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610     break 2
6611   fi
6612 done
6613 done
6614 IFS=$as_save_IFS
6615
6616   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6617   ;;
6618 esac
6619 fi
6620 NEATO=$ac_cv_path_NEATO
6621 if test -n "$NEATO"; then
6622   { echo "$as_me:$LINENO: result: $NEATO" >&5
6623 echo "${ECHO_T}$NEATO" >&6; }
6624 else
6625   { echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6; }
6627 fi
6628
6629
6630 if test "$NEATO" != "echo neato" ; then
6631
6632 cat >>confdefs.h <<\_ACEOF
6633 #define HAVE_NEATO 1
6634 _ACEOF
6635
6636     if test "$llvm_cv_os_type" = "MingW" ; then
6637     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6638   fi
6639
6640 cat >>confdefs.h <<_ACEOF
6641 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6642 _ACEOF
6643
6644 fi
6645 # Extract the first word of "twopi", so it can be a program name with args.
6646 set dummy twopi; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_TWOPI+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   case $TWOPI in
6653   [\\/]* | ?:[\\/]*)
6654   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6655   ;;
6656   *)
6657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662   for ac_exec_ext in '' $ac_executable_extensions; do
6663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6673   ;;
6674 esac
6675 fi
6676 TWOPI=$ac_cv_path_TWOPI
6677 if test -n "$TWOPI"; then
6678   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6679 echo "${ECHO_T}$TWOPI" >&6; }
6680 else
6681   { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6683 fi
6684
6685
6686 if test "$TWOPI" != "echo twopi" ; then
6687
6688 cat >>confdefs.h <<\_ACEOF
6689 #define HAVE_TWOPI 1
6690 _ACEOF
6691
6692     if test "$llvm_cv_os_type" = "MingW" ; then
6693     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6694   fi
6695
6696 cat >>confdefs.h <<_ACEOF
6697 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6698 _ACEOF
6699
6700 fi
6701 # Extract the first word of "circo", so it can be a program name with args.
6702 set dummy circo; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_CIRCO+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   case $CIRCO in
6709   [\\/]* | ?:[\\/]*)
6710   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6711   ;;
6712   *)
6713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716   IFS=$as_save_IFS
6717   test -z "$as_dir" && as_dir=.
6718   for ac_exec_ext in '' $ac_executable_extensions; do
6719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722     break 2
6723   fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6729   ;;
6730 esac
6731 fi
6732 CIRCO=$ac_cv_path_CIRCO
6733 if test -n "$CIRCO"; then
6734   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6735 echo "${ECHO_T}$CIRCO" >&6; }
6736 else
6737   { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6739 fi
6740
6741
6742 if test "$CIRCO" != "echo circo" ; then
6743
6744 cat >>confdefs.h <<\_ACEOF
6745 #define HAVE_CIRCO 1
6746 _ACEOF
6747
6748     if test "$llvm_cv_os_type" = "MingW" ; then
6749     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6750   fi
6751
6752 cat >>confdefs.h <<_ACEOF
6753 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6754 _ACEOF
6755
6756 fi
6757 for ac_prog in gv gsview32
6758 do
6759   # Extract the first word of "$ac_prog", so it can be a program name with args.
6760 set dummy $ac_prog; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_path_GV+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   case $GV in
6767   [\\/]* | ?:[\\/]*)
6768   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6769   ;;
6770   *)
6771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774   IFS=$as_save_IFS
6775   test -z "$as_dir" && as_dir=.
6776   for ac_exec_ext in '' $ac_executable_extensions; do
6777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6778     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780     break 2
6781   fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786   ;;
6787 esac
6788 fi
6789 GV=$ac_cv_path_GV
6790 if test -n "$GV"; then
6791   { echo "$as_me:$LINENO: result: $GV" >&5
6792 echo "${ECHO_T}$GV" >&6; }
6793 else
6794   { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6796 fi
6797
6798
6799   test -n "$GV" && break
6800 done
6801 test -n "$GV" || GV="echo gv"
6802
6803 if test "$GV" != "echo gv" ; then
6804
6805 cat >>confdefs.h <<\_ACEOF
6806 #define HAVE_GV 1
6807 _ACEOF
6808
6809     if test "$llvm_cv_os_type" = "MingW" ; then
6810     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6811   fi
6812
6813 cat >>confdefs.h <<_ACEOF
6814 #define LLVM_PATH_GV "$GV${EXEEXT}"
6815 _ACEOF
6816
6817 fi
6818 # Extract the first word of "dotty", so it can be a program name with args.
6819 set dummy dotty; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_DOTTY+set}" = set; then
6823   echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825   case $DOTTY in
6826   [\\/]* | ?:[\\/]*)
6827   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6828   ;;
6829   *)
6830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835   for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6846   ;;
6847 esac
6848 fi
6849 DOTTY=$ac_cv_path_DOTTY
6850 if test -n "$DOTTY"; then
6851   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6852 echo "${ECHO_T}$DOTTY" >&6; }
6853 else
6854   { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6856 fi
6857
6858
6859 if test "$DOTTY" != "echo dotty" ; then
6860
6861 cat >>confdefs.h <<\_ACEOF
6862 #define HAVE_DOTTY 1
6863 _ACEOF
6864
6865     if test "$llvm_cv_os_type" = "MingW" ; then
6866     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6867   fi
6868
6869 cat >>confdefs.h <<_ACEOF
6870 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6871 _ACEOF
6872
6873 fi
6874 # Extract the first word of "xdot.py", so it can be a program name with args.
6875 set dummy xdot.py; ac_word=$2
6876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6878 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6879   echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881   case $XDOT_PY in
6882   [\\/]* | ?:[\\/]*)
6883   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6884   ;;
6885   *)
6886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889   IFS=$as_save_IFS
6890   test -z "$as_dir" && as_dir=.
6891   for ac_exec_ext in '' $ac_executable_extensions; do
6892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6893     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895     break 2
6896   fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6902   ;;
6903 esac
6904 fi
6905 XDOT_PY=$ac_cv_path_XDOT_PY
6906 if test -n "$XDOT_PY"; then
6907   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6908 echo "${ECHO_T}$XDOT_PY" >&6; }
6909 else
6910   { echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6; }
6912 fi
6913
6914
6915 if test "$XDOT_PY" != "echo xdot.py" ; then
6916
6917 cat >>confdefs.h <<\_ACEOF
6918 #define HAVE_XDOT_PY 1
6919 _ACEOF
6920
6921     if test "$llvm_cv_os_type" = "MingW" ; then
6922     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6923   fi
6924
6925 cat >>confdefs.h <<_ACEOF
6926 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6927 _ACEOF
6928
6929 fi
6930
6931 # Find a good install program.  We prefer a C program (faster),
6932 # so one script is as good as another.  But avoid the broken or
6933 # incompatible versions:
6934 # SysV /etc/install, /usr/sbin/install
6935 # SunOS /usr/etc/install
6936 # IRIX /sbin/install
6937 # AIX /bin/install
6938 # AmigaOS /C/install, which installs bootblocks on floppy discs
6939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6942 # OS/2's system install, which has a completely different semantic
6943 # ./install, which can be erroneously created by make from ./install.sh.
6944 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6946 if test -z "$INSTALL"; then
6947 if test "${ac_cv_path_install+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953   IFS=$as_save_IFS
6954   test -z "$as_dir" && as_dir=.
6955   # Account for people who put trailing slashes in PATH elements.
6956 case $as_dir/ in
6957   ./ | .// | /cC/* | \
6958   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6959   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6960   /usr/ucb/* ) ;;
6961   *)
6962     # OSF1 and SCO ODT 3.0 have their own names for install.
6963     # Don't use installbsd from OSF since it installs stuff as root
6964     # by default.
6965     for ac_prog in ginstall scoinst install; do
6966       for ac_exec_ext in '' $ac_executable_extensions; do
6967         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6968           if test $ac_prog = install &&
6969             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6970             # AIX install.  It has an incompatible calling convention.
6971             :
6972           elif test $ac_prog = install &&
6973             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6974             # program-specific install script used by HP pwplus--don't use.
6975             :
6976           else
6977             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6978             break 3
6979           fi
6980         fi
6981       done
6982     done
6983     ;;
6984 esac
6985 done
6986 IFS=$as_save_IFS
6987
6988
6989 fi
6990   if test "${ac_cv_path_install+set}" = set; then
6991     INSTALL=$ac_cv_path_install
6992   else
6993     # As a last resort, use the slow shell script.  Don't cache a
6994     # value for INSTALL within a source directory, because that will
6995     # break other packages using the cache if that directory is
6996     # removed, or if the value is a relative name.
6997     INSTALL=$ac_install_sh
6998   fi
6999 fi
7000 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7001 echo "${ECHO_T}$INSTALL" >&6; }
7002
7003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7004 # It thinks the first close brace ends the variable substitution.
7005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7006
7007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7008
7009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7010
7011 case "$INSTALL" in
7012  [\\/$]* | ?:[\\/]* ) ;;
7013  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7014 esac
7015
7016 # Extract the first word of "bzip2", so it can be a program name with args.
7017 set dummy bzip2; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_path_BZIP2+set}" = set; then
7021   echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023   case $BZIP2 in
7024   [\\/]* | ?:[\\/]*)
7025   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7026   ;;
7027   *)
7028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033   for ac_exec_ext in '' $ac_executable_extensions; do
7034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7035     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043   ;;
7044 esac
7045 fi
7046 BZIP2=$ac_cv_path_BZIP2
7047 if test -n "$BZIP2"; then
7048   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7049 echo "${ECHO_T}$BZIP2" >&6; }
7050 else
7051   { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7053 fi
7054
7055
7056 # Extract the first word of "cat", so it can be a program name with args.
7057 set dummy cat; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_CAT+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   case $CAT in
7064   [\\/]* | ?:[\\/]*)
7065   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7066   ;;
7067   *)
7068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071   IFS=$as_save_IFS
7072   test -z "$as_dir" && as_dir=.
7073   for ac_exec_ext in '' $ac_executable_extensions; do
7074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077     break 2
7078   fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083   ;;
7084 esac
7085 fi
7086 CAT=$ac_cv_path_CAT
7087 if test -n "$CAT"; then
7088   { echo "$as_me:$LINENO: result: $CAT" >&5
7089 echo "${ECHO_T}$CAT" >&6; }
7090 else
7091   { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7093 fi
7094
7095
7096 # Extract the first word of "doxygen", so it can be a program name with args.
7097 set dummy doxygen; ac_word=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   case $DOXYGEN in
7104   [\\/]* | ?:[\\/]*)
7105   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7106   ;;
7107   *)
7108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113   for ac_exec_ext in '' $ac_executable_extensions; do
7114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123   ;;
7124 esac
7125 fi
7126 DOXYGEN=$ac_cv_path_DOXYGEN
7127 if test -n "$DOXYGEN"; then
7128   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7129 echo "${ECHO_T}$DOXYGEN" >&6; }
7130 else
7131   { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7133 fi
7134
7135
7136 # Extract the first word of "groff", so it can be a program name with args.
7137 set dummy groff; ac_word=$2
7138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140 if test "${ac_cv_path_GROFF+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143   case $GROFF in
7144   [\\/]* | ?:[\\/]*)
7145   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7146   ;;
7147   *)
7148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153   for ac_exec_ext in '' $ac_executable_extensions; do
7154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163   ;;
7164 esac
7165 fi
7166 GROFF=$ac_cv_path_GROFF
7167 if test -n "$GROFF"; then
7168   { echo "$as_me:$LINENO: result: $GROFF" >&5
7169 echo "${ECHO_T}$GROFF" >&6; }
7170 else
7171   { echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6; }
7173 fi
7174
7175
7176 # Extract the first word of "gzip", so it can be a program name with args.
7177 set dummy gzip; ac_word=$2
7178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7181   echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183   case $GZIPBIN in
7184   [\\/]* | ?:[\\/]*)
7185   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7186   ;;
7187   *)
7188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193   for ac_exec_ext in '' $ac_executable_extensions; do
7194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198   fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203   ;;
7204 esac
7205 fi
7206 GZIPBIN=$ac_cv_path_GZIPBIN
7207 if test -n "$GZIPBIN"; then
7208   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7209 echo "${ECHO_T}$GZIPBIN" >&6; }
7210 else
7211   { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7213 fi
7214
7215
7216 # Extract the first word of "pdfroff", so it can be a program name with args.
7217 set dummy pdfroff; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_PDFROFF+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   case $PDFROFF in
7224   [\\/]* | ?:[\\/]*)
7225   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7226   ;;
7227   *)
7228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233   for ac_exec_ext in '' $ac_executable_extensions; do
7234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243   ;;
7244 esac
7245 fi
7246 PDFROFF=$ac_cv_path_PDFROFF
7247 if test -n "$PDFROFF"; then
7248   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7249 echo "${ECHO_T}$PDFROFF" >&6; }
7250 else
7251   { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7253 fi
7254
7255
7256 # Extract the first word of "zip", so it can be a program name with args.
7257 set dummy zip; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_ZIP+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   case $ZIP in
7264   [\\/]* | ?:[\\/]*)
7265   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7266   ;;
7267   *)
7268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273   for ac_exec_ext in '' $ac_executable_extensions; do
7274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283   ;;
7284 esac
7285 fi
7286 ZIP=$ac_cv_path_ZIP
7287 if test -n "$ZIP"; then
7288   { echo "$as_me:$LINENO: result: $ZIP" >&5
7289 echo "${ECHO_T}$ZIP" >&6; }
7290 else
7291   { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7293 fi
7294
7295
7296 for ac_prog in ocamlc
7297 do
7298   # Extract the first word of "$ac_prog", so it can be a program name with args.
7299 set dummy $ac_prog; ac_word=$2
7300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302 if test "${ac_cv_path_OCAMLC+set}" = set; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   case $OCAMLC in
7306   [\\/]* | ?:[\\/]*)
7307   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7308   ;;
7309   *)
7310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315   for ac_exec_ext in '' $ac_executable_extensions; do
7316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7317     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325   ;;
7326 esac
7327 fi
7328 OCAMLC=$ac_cv_path_OCAMLC
7329 if test -n "$OCAMLC"; then
7330   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7331 echo "${ECHO_T}$OCAMLC" >&6; }
7332 else
7333   { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7335 fi
7336
7337
7338   test -n "$OCAMLC" && break
7339 done
7340
7341 for ac_prog in ocamlopt
7342 do
7343   # Extract the first word of "$ac_prog", so it can be a program name with args.
7344 set dummy $ac_prog; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case $OCAMLOPT in
7351   [\\/]* | ?:[\\/]*)
7352   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360   for ac_exec_ext in '' $ac_executable_extensions; do
7361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370   ;;
7371 esac
7372 fi
7373 OCAMLOPT=$ac_cv_path_OCAMLOPT
7374 if test -n "$OCAMLOPT"; then
7375   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7376 echo "${ECHO_T}$OCAMLOPT" >&6; }
7377 else
7378   { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7380 fi
7381
7382
7383   test -n "$OCAMLOPT" && break
7384 done
7385
7386 for ac_prog in ocamldep
7387 do
7388   # Extract the first word of "$ac_prog", so it can be a program name with args.
7389 set dummy $ac_prog; ac_word=$2
7390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7393   echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395   case $OCAMLDEP in
7396   [\\/]* | ?:[\\/]*)
7397   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7398   ;;
7399   *)
7400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405   for ac_exec_ext in '' $ac_executable_extensions; do
7406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412 done
7413 IFS=$as_save_IFS
7414
7415   ;;
7416 esac
7417 fi
7418 OCAMLDEP=$ac_cv_path_OCAMLDEP
7419 if test -n "$OCAMLDEP"; then
7420   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7421 echo "${ECHO_T}$OCAMLDEP" >&6; }
7422 else
7423   { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7425 fi
7426
7427
7428   test -n "$OCAMLDEP" && break
7429 done
7430
7431 for ac_prog in ocamldoc
7432 do
7433   # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy $ac_prog; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7438   echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440   case $OCAMLDOC in
7441   [\\/]* | ?:[\\/]*)
7442   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7443   ;;
7444   *)
7445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448   IFS=$as_save_IFS
7449   test -z "$as_dir" && as_dir=.
7450   for ac_exec_ext in '' $ac_executable_extensions; do
7451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454     break 2
7455   fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460   ;;
7461 esac
7462 fi
7463 OCAMLDOC=$ac_cv_path_OCAMLDOC
7464 if test -n "$OCAMLDOC"; then
7465   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7466 echo "${ECHO_T}$OCAMLDOC" >&6; }
7467 else
7468   { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7470 fi
7471
7472
7473   test -n "$OCAMLDOC" && break
7474 done
7475
7476 for ac_prog in gas as
7477 do
7478   # Extract the first word of "$ac_prog", so it can be a program name with args.
7479 set dummy $ac_prog; ac_word=$2
7480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482 if test "${ac_cv_path_GAS+set}" = set; then
7483   echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485   case $GAS in
7486   [\\/]* | ?:[\\/]*)
7487   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7488   ;;
7489   *)
7490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493   IFS=$as_save_IFS
7494   test -z "$as_dir" && as_dir=.
7495   for ac_exec_ext in '' $ac_executable_extensions; do
7496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7497     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499     break 2
7500   fi
7501 done
7502 done
7503 IFS=$as_save_IFS
7504
7505   ;;
7506 esac
7507 fi
7508 GAS=$ac_cv_path_GAS
7509 if test -n "$GAS"; then
7510   { echo "$as_me:$LINENO: result: $GAS" >&5
7511 echo "${ECHO_T}$GAS" >&6; }
7512 else
7513   { echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6; }
7515 fi
7516
7517
7518   test -n "$GAS" && break
7519 done
7520
7521
7522 { echo "$as_me:$LINENO: checking for linker version" >&5
7523 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7524 if test "${llvm_cv_link_version+set}" = set; then
7525   echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527
7528    version_string="$(ld -v 2>&1 | head -1)"
7529
7530    # Check for ld64.
7531    if (echo "$version_string" | grep -q "ld64"); then
7532      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7533    else
7534      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7535    fi
7536
7537 fi
7538 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7539 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7540
7541 cat >>confdefs.h <<_ACEOF
7542 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7543 _ACEOF
7544
7545
7546
7547 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7548 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7549 if test "${llvm_cv_link_use_r+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552    ac_ext=c
7553 ac_cpp='$CPP $CPPFLAGS'
7554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7557
7558   oldcflags="$CFLAGS"
7559   CFLAGS="$CFLAGS -Wl,-R."
7560   cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h.  */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h.  */
7566
7567 int
7568 main ()
7569 {
7570
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (ac_try="$ac_link"
7577 case "(($ac_try" in
7578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579   *) ac_try_echo=$ac_try;;
7580 esac
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582   (eval "$ac_link") 2>conftest.er1
7583   ac_status=$?
7584   grep -v '^ *+' conftest.er1 >conftest.err
7585   rm -f conftest.er1
7586   cat conftest.err >&5
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); } &&
7589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7590   { (case "(($ac_try" in
7591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592   *) ac_try_echo=$ac_try;;
7593 esac
7594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7595   (eval "$ac_try") 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; } &&
7599          { ac_try='test -s conftest$ac_exeext'
7600   { (case "(($ac_try" in
7601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602   *) ac_try_echo=$ac_try;;
7603 esac
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605   (eval "$ac_try") 2>&5
7606   ac_status=$?
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); }; }; then
7609   llvm_cv_link_use_r=yes
7610 else
7611   echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7613
7614         llvm_cv_link_use_r=no
7615 fi
7616
7617 rm -f core conftest.err conftest.$ac_objext \
7618       conftest$ac_exeext conftest.$ac_ext
7619   CFLAGS="$oldcflags"
7620   ac_ext=c
7621 ac_cpp='$CPP $CPPFLAGS'
7622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625
7626
7627 fi
7628 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7629 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7630 if test "$llvm_cv_link_use_r" = yes ; then
7631
7632 cat >>confdefs.h <<\_ACEOF
7633 #define HAVE_LINK_R 1
7634 _ACEOF
7635
7636   fi
7637
7638
7639 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7640 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7641 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644    ac_ext=c
7645 ac_cpp='$CPP $CPPFLAGS'
7646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649
7650   oldcflags="$CFLAGS"
7651   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7652   cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658
7659 int
7660 main ()
7661 {
7662
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (ac_try="$ac_link"
7669 case "(($ac_try" in
7670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671   *) ac_try_echo=$ac_try;;
7672 esac
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674   (eval "$ac_link") 2>conftest.er1
7675   ac_status=$?
7676   grep -v '^ *+' conftest.er1 >conftest.err
7677   rm -f conftest.er1
7678   cat conftest.err >&5
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); } &&
7681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7682   { (case "(($ac_try" in
7683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684   *) ac_try_echo=$ac_try;;
7685 esac
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687   (eval "$ac_try") 2>&5
7688   ac_status=$?
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); }; } &&
7691          { ac_try='test -s conftest$ac_exeext'
7692   { (case "(($ac_try" in
7693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694   *) ac_try_echo=$ac_try;;
7695 esac
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697   (eval "$ac_try") 2>&5
7698   ac_status=$?
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); }; }; then
7701   llvm_cv_link_use_export_dynamic=yes
7702 else
7703   echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7705
7706         llvm_cv_link_use_export_dynamic=no
7707 fi
7708
7709 rm -f core conftest.err conftest.$ac_objext \
7710       conftest$ac_exeext conftest.$ac_ext
7711   CFLAGS="$oldcflags"
7712   ac_ext=c
7713 ac_cpp='$CPP $CPPFLAGS'
7714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7717
7718
7719 fi
7720 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7721 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7722 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7723
7724 cat >>confdefs.h <<\_ACEOF
7725 #define HAVE_LINK_EXPORT_DYNAMIC 1
7726 _ACEOF
7727
7728   fi
7729
7730
7731 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7732 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7733 if test "${llvm_cv_link_use_version_script+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736    ac_ext=c
7737 ac_cpp='$CPP $CPPFLAGS'
7738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7741
7742   oldcflags="$CFLAGS"
7743
7744   # The following code is from the autoconf manual,
7745   # "11.13: Limitations of Usual Tools".
7746   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7747   # Use mktemp if possible; otherwise fall back on mkdir,
7748   # with $RANDOM to make collisions less likely.
7749   : ${TMPDIR=/tmp}
7750   {
7751     tmp=`
7752       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7753     ` &&
7754     test -n "$tmp" && test -d "$tmp"
7755   } || {
7756     tmp=$TMPDIR/foo$$-$RANDOM
7757     (umask 077 && mkdir "$tmp")
7758   } || exit $?
7759
7760   echo "{" > "$tmp/export.map"
7761   echo "  global: main;" >> "$tmp/export.map"
7762   echo "  local: *;" >> "$tmp/export.map"
7763   echo "};" >> "$tmp/export.map"
7764
7765   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7766   cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h.  */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h.  */
7772
7773 int
7774 main ()
7775 {
7776
7777   ;
7778   return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext conftest$ac_exeext
7782 if { (ac_try="$ac_link"
7783 case "(($ac_try" in
7784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785   *) ac_try_echo=$ac_try;;
7786 esac
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788   (eval "$ac_link") 2>conftest.er1
7789   ac_status=$?
7790   grep -v '^ *+' conftest.er1 >conftest.err
7791   rm -f conftest.er1
7792   cat conftest.err >&5
7793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794   (exit $ac_status); } &&
7795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7796   { (case "(($ac_try" in
7797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798   *) ac_try_echo=$ac_try;;
7799 esac
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801   (eval "$ac_try") 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; } &&
7805          { ac_try='test -s conftest$ac_exeext'
7806   { (case "(($ac_try" in
7807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808   *) ac_try_echo=$ac_try;;
7809 esac
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811   (eval "$ac_try") 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); }; }; then
7815   llvm_cv_link_use_version_script=yes
7816 else
7817   echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820         llvm_cv_link_use_version_script=no
7821 fi
7822
7823 rm -f core conftest.err conftest.$ac_objext \
7824       conftest$ac_exeext conftest.$ac_ext
7825   rm "$tmp/export.map"
7826   rmdir "$tmp"
7827   CFLAGS="$oldcflags"
7828   ac_ext=c
7829 ac_cpp='$CPP $CPPFLAGS'
7830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
7834
7835 fi
7836 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7837 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7838 if test "$llvm_cv_link_use_version_script" = yes ; then
7839   HAVE_LINK_VERSION_SCRIPT=1
7840
7841   fi
7842
7843
7844
7845
7846 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7847 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7848 if test "${ac_cv_c_const+set}" = set; then
7849   echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851   cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h.  */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h.  */
7857
7858 int
7859 main ()
7860 {
7861 /* FIXME: Include the comments suggested by Paul. */
7862 #ifndef __cplusplus
7863   /* Ultrix mips cc rejects this.  */
7864   typedef int charset[2];
7865   const charset x;
7866   /* SunOS 4.1.1 cc rejects this.  */
7867   char const *const *ccp;
7868   char **p;
7869   /* NEC SVR4.0.2 mips cc rejects this.  */
7870   struct point {int x, y;};
7871   static struct point const zero = {0,0};
7872   /* AIX XL C 1.02.0.0 rejects this.
7873      It does not let you subtract one const X* pointer from another in
7874      an arm of an if-expression whose if-part is not a constant
7875      expression */
7876   const char *g = "string";
7877   ccp = &g + (g ? g-g : 0);
7878   /* HPUX 7.0 cc rejects these. */
7879   ++ccp;
7880   p = (char**) ccp;
7881   ccp = (char const *const *) p;
7882   { /* SCO 3.2v4 cc rejects this.  */
7883     char *t;
7884     char const *s = 0 ? (char *) 0 : (char const *) 0;
7885
7886     *t++ = 0;
7887     if (s) return 0;
7888   }
7889   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7890     int x[] = {25, 17};
7891     const int *foo = &x[0];
7892     ++foo;
7893   }
7894   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7895     typedef const int *iptr;
7896     iptr p = 0;
7897     ++p;
7898   }
7899   { /* AIX XL C 1.02.0.0 rejects this saying
7900        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7901     struct s { int j; const int *ap[3]; };
7902     struct s *b; b->j = 5;
7903   }
7904   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7905     const int foo = 10;
7906     if (!foo) return 0;
7907   }
7908   return !x[0] && !zero.x;
7909 #endif
7910
7911   ;
7912   return 0;
7913 }
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7917 case "(($ac_try" in
7918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919   *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922   (eval "$ac_compile") 2>conftest.er1
7923   ac_status=$?
7924   grep -v '^ *+' conftest.er1 >conftest.err
7925   rm -f conftest.er1
7926   cat conftest.err >&5
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); } &&
7929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7930   { (case "(($ac_try" in
7931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932   *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935   (eval "$ac_try") 2>&5
7936   ac_status=$?
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); }; } &&
7939          { ac_try='test -s conftest.$ac_objext'
7940   { (case "(($ac_try" in
7941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942   *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945   (eval "$ac_try") 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); }; }; then
7949   ac_cv_c_const=yes
7950 else
7951   echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954         ac_cv_c_const=no
7955 fi
7956
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 fi
7959 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7960 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7961 if test $ac_cv_c_const = no; then
7962
7963 cat >>confdefs.h <<\_ACEOF
7964 #define const
7965 _ACEOF
7966
7967 fi
7968
7969
7970
7971
7972
7973
7974 ac_header_dirent=no
7975 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7976   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7977 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7978 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7980   echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982   cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h.  */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h.  */
7988 #include <sys/types.h>
7989 #include <$ac_hdr>
7990
7991 int
7992 main ()
7993 {
7994 if ((DIR *) 0)
7995 return 0;
7996   ;
7997   return 0;
7998 }
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8002 case "(($ac_try" in
8003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004   *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007   (eval "$ac_compile") 2>conftest.er1
8008   ac_status=$?
8009   grep -v '^ *+' conftest.er1 >conftest.err
8010   rm -f conftest.er1
8011   cat conftest.err >&5
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); } &&
8014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8015   { (case "(($ac_try" in
8016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017   *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020   (eval "$ac_try") 2>&5
8021   ac_status=$?
8022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); }; } &&
8024          { ac_try='test -s conftest.$ac_objext'
8025   { (case "(($ac_try" in
8026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027   *) ac_try_echo=$ac_try;;
8028 esac
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030   (eval "$ac_try") 2>&5
8031   ac_status=$?
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); }; }; then
8034   eval "$as_ac_Header=yes"
8035 else
8036   echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8038
8039         eval "$as_ac_Header=no"
8040 fi
8041
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043 fi
8044 ac_res=`eval echo '${'$as_ac_Header'}'`
8045                { echo "$as_me:$LINENO: result: $ac_res" >&5
8046 echo "${ECHO_T}$ac_res" >&6; }
8047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8048   cat >>confdefs.h <<_ACEOF
8049 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8050 _ACEOF
8051
8052 ac_header_dirent=$ac_hdr; break
8053 fi
8054
8055 done
8056 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8057 if test $ac_header_dirent = dirent.h; then
8058   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8059 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8060 if test "${ac_cv_search_opendir+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   ac_func_search_save_LIBS=$LIBS
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h.  */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h.  */
8070
8071 /* Override any GCC internal prototype to avoid an error.
8072    Use char because int might match the return type of a GCC
8073    builtin and then its argument prototype would still apply.  */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 char opendir ();
8078 int
8079 main ()
8080 {
8081 return opendir ();
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 for ac_lib in '' dir; do
8087   if test -z "$ac_lib"; then
8088     ac_res="none required"
8089   else
8090     ac_res=-l$ac_lib
8091     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8092   fi
8093   rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (ac_try="$ac_link"
8095 case "(($ac_try" in
8096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097   *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100   (eval "$ac_link") 2>conftest.er1
8101   ac_status=$?
8102   grep -v '^ *+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108   { (case "(($ac_try" in
8109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110   *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113   (eval "$ac_try") 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; } &&
8117          { ac_try='test -s conftest$ac_exeext'
8118   { (case "(($ac_try" in
8119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120   *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123   (eval "$ac_try") 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   ac_cv_search_opendir=$ac_res
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132
8133 fi
8134
8135 rm -f core conftest.err conftest.$ac_objext \
8136       conftest$ac_exeext
8137   if test "${ac_cv_search_opendir+set}" = set; then
8138   break
8139 fi
8140 done
8141 if test "${ac_cv_search_opendir+set}" = set; then
8142   :
8143 else
8144   ac_cv_search_opendir=no
8145 fi
8146 rm conftest.$ac_ext
8147 LIBS=$ac_func_search_save_LIBS
8148 fi
8149 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8150 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8151 ac_res=$ac_cv_search_opendir
8152 if test "$ac_res" != no; then
8153   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8154
8155 fi
8156
8157 else
8158   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8159 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8160 if test "${ac_cv_search_opendir+set}" = set; then
8161   echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163   ac_func_search_save_LIBS=$LIBS
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170
8171 /* Override any GCC internal prototype to avoid an error.
8172    Use char because int might match the return type of a GCC
8173    builtin and then its argument prototype would still apply.  */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 char opendir ();
8178 int
8179 main ()
8180 {
8181 return opendir ();
8182   ;
8183   return 0;
8184 }
8185 _ACEOF
8186 for ac_lib in '' x; do
8187   if test -z "$ac_lib"; then
8188     ac_res="none required"
8189   else
8190     ac_res=-l$ac_lib
8191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8192   fi
8193   rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8195 case "(($ac_try" in
8196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197   *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200   (eval "$ac_link") 2>conftest.er1
8201   ac_status=$?
8202   grep -v '^ *+' conftest.er1 >conftest.err
8203   rm -f conftest.er1
8204   cat conftest.err >&5
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); } &&
8207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8208   { (case "(($ac_try" in
8209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210   *) ac_try_echo=$ac_try;;
8211 esac
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213   (eval "$ac_try") 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (case "(($ac_try" in
8219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220   *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223   (eval "$ac_try") 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); }; }; then
8227   ac_cv_search_opendir=$ac_res
8228 else
8229   echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8231
8232
8233 fi
8234
8235 rm -f core conftest.err conftest.$ac_objext \
8236       conftest$ac_exeext
8237   if test "${ac_cv_search_opendir+set}" = set; then
8238   break
8239 fi
8240 done
8241 if test "${ac_cv_search_opendir+set}" = set; then
8242   :
8243 else
8244   ac_cv_search_opendir=no
8245 fi
8246 rm conftest.$ac_ext
8247 LIBS=$ac_func_search_save_LIBS
8248 fi
8249 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8250 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8251 ac_res=$ac_cv_search_opendir
8252 if test "$ac_res" != no; then
8253   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8254
8255 fi
8256
8257 fi
8258
8259
8260 for ac_header in dlfcn.h
8261 do
8262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 fi
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270                { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 else
8273   # Is the header compilable?
8274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8276 cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h.  */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h.  */
8282 $ac_includes_default
8283 #include <$ac_header>
8284 _ACEOF
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8287 case "(($ac_try" in
8288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289   *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292   (eval "$ac_compile") 2>conftest.er1
8293   ac_status=$?
8294   grep -v '^ *+' conftest.er1 >conftest.err
8295   rm -f conftest.er1
8296   cat conftest.err >&5
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300   { (case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_try") 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; } &&
8309          { ac_try='test -s conftest.$ac_objext'
8310   { (case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315   (eval "$ac_try") 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; }; then
8319   ac_header_compiler=yes
8320 else
8321   echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324         ac_header_compiler=no
8325 fi
8326
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8329 echo "${ECHO_T}$ac_header_compiler" >&6; }
8330
8331 # Is the header present?
8332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340 #include <$ac_header>
8341 _ACEOF
8342 if { (ac_try="$ac_cpp conftest.$ac_ext"
8343 case "(($ac_try" in
8344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345   *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8349   ac_status=$?
8350   grep -v '^ *+' conftest.er1 >conftest.err
8351   rm -f conftest.er1
8352   cat conftest.err >&5
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } >/dev/null; then
8355   if test -s conftest.err; then
8356     ac_cpp_err=$ac_c_preproc_warn_flag
8357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8358   else
8359     ac_cpp_err=
8360   fi
8361 else
8362   ac_cpp_err=yes
8363 fi
8364 if test -z "$ac_cpp_err"; then
8365   ac_header_preproc=yes
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370   ac_header_preproc=no
8371 fi
8372
8373 rm -f conftest.err conftest.$ac_ext
8374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8375 echo "${ECHO_T}$ac_header_preproc" >&6; }
8376
8377 # So?  What about this header?
8378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8379   yes:no: )
8380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8384     ac_header_preproc=yes
8385     ;;
8386   no:yes:* )
8387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8399     ( cat <<\_ASBOX
8400 ## ------------------------------------ ##
8401 ## Report this to http://llvm.org/bugs/ ##
8402 ## ------------------------------------ ##
8403 _ASBOX
8404      ) | sed "s/^/$as_me: WARNING:     /" >&2
8405     ;;
8406 esac
8407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412   eval "$as_ac_Header=\$ac_header_preproc"
8413 fi
8414 ac_res=`eval echo '${'$as_ac_Header'}'`
8415                { echo "$as_me:$LINENO: result: $ac_res" >&5
8416 echo "${ECHO_T}$ac_res" >&6; }
8417
8418 fi
8419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8420   cat >>confdefs.h <<_ACEOF
8421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8422 _ACEOF
8423
8424 fi
8425
8426 done
8427
8428 # Check whether --enable-ltdl-install was given.
8429 if test "${enable_ltdl_install+set}" = set; then
8430   enableval=$enable_ltdl_install;
8431 fi
8432
8433
8434
8435
8436 if test x"${enable_ltdl_install-no}" != xno; then
8437   INSTALL_LTDL_TRUE=
8438   INSTALL_LTDL_FALSE='#'
8439 else
8440   INSTALL_LTDL_TRUE='#'
8441   INSTALL_LTDL_FALSE=
8442 fi
8443
8444
8445
8446 if test x"${enable_ltdl_convenience-no}" != xno; then
8447   CONVENIENCE_LTDL_TRUE=
8448   CONVENIENCE_LTDL_FALSE='#'
8449 else
8450   CONVENIENCE_LTDL_TRUE='#'
8451   CONVENIENCE_LTDL_FALSE=
8452 fi
8453
8454
8455 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8456 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8457 library_names_spec=
8458 libname_spec='lib$name'
8459 soname_spec=
8460 shrext_cmds=".so"
8461 postinstall_cmds=
8462 postuninstall_cmds=
8463 finish_cmds=
8464 finish_eval=
8465 shlibpath_var=
8466 shlibpath_overrides_runpath=unknown
8467 version_type=none
8468 dynamic_linker="$host_os ld.so"
8469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8470 if test "$GCC" = yes; then
8471   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8472   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8473     # if the path contains ";" then we assume it to be the separator
8474     # otherwise default to the standard path separator (i.e. ":") - it is
8475     # assumed that no part of a normal pathname contains ";" but that should
8476     # okay in the real world where ";" in dirpaths is itself problematic.
8477     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8478   else
8479     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8480   fi
8481 else
8482   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8483 fi
8484 need_lib_prefix=unknown
8485 hardcode_into_libs=no
8486
8487 # when you set need_version to no, make sure it does not cause -set_version
8488 # flags to be left without arguments
8489 need_version=unknown
8490
8491 case $host_os in
8492 aix3*)
8493   version_type=linux
8494   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8495   shlibpath_var=LIBPATH
8496
8497   # AIX 3 has no versioning support, so we append a major version to the name.
8498   soname_spec='${libname}${release}${shared_ext}$major'
8499   ;;
8500
8501 aix4* | aix5*)
8502   version_type=linux
8503   need_lib_prefix=no
8504   need_version=no
8505   hardcode_into_libs=yes
8506   if test "$host_cpu" = ia64; then
8507     # AIX 5 supports IA64
8508     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8509     shlibpath_var=LD_LIBRARY_PATH
8510   else
8511     # With GCC up to 2.95.x, collect2 would create an import file
8512     # for dependence libraries.  The import file would start with
8513     # the line `#! .'.  This would cause the generated library to
8514     # depend on `.', always an invalid library.  This was fixed in
8515     # development snapshots of GCC prior to 3.0.
8516     case $host_os in
8517       aix4 | aix4.[01] | aix4.[01].*)
8518       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8519            echo ' yes '
8520            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8521         :
8522       else
8523         can_build_shared=no
8524       fi
8525       ;;
8526     esac
8527     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8528     # soname into executable. Probably we can add versioning support to
8529     # collect2, so additional links can be useful in future.
8530     if test "$aix_use_runtimelinking" = yes; then
8531       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8532       # instead of lib<name>.a to let people know that these are not
8533       # typical AIX shared libraries.
8534       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8535     else
8536       # We preserve .a as extension for shared libraries through AIX4.2
8537       # and later when we are not doing run time linking.
8538       library_names_spec='${libname}${release}.a $libname.a'
8539       soname_spec='${libname}${release}${shared_ext}$major'
8540     fi
8541     shlibpath_var=LIBPATH
8542   fi
8543   ;;
8544
8545 amigaos*)
8546   library_names_spec='$libname.ixlibrary $libname.a'
8547   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8548   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'
8549   ;;
8550
8551 beos*)
8552   library_names_spec='${libname}${shared_ext}'
8553   dynamic_linker="$host_os ld.so"
8554   shlibpath_var=LIBRARY_PATH
8555   ;;
8556
8557 bsdi[45]*)
8558   version_type=linux
8559   need_version=no
8560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561   soname_spec='${libname}${release}${shared_ext}$major'
8562   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8563   shlibpath_var=LD_LIBRARY_PATH
8564   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8565   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8566   # the default ld.so.conf also contains /usr/contrib/lib and
8567   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8568   # libtool to hard-code these into programs
8569   ;;
8570
8571 cygwin* | mingw* | pw32*)
8572   version_type=windows
8573   shrext_cmds=".dll"
8574   need_version=no
8575   need_lib_prefix=no
8576
8577   case $GCC,$host_os in
8578   yes,cygwin* | yes,mingw* | yes,pw32*)
8579     library_names_spec='$libname.dll.a'
8580     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8581     postinstall_cmds='base_file=`basename \${file}`~
8582       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8583       dldir=$destdir/`dirname \$dlpath`~
8584       test -d \$dldir || mkdir -p \$dldir~
8585       $install_prog $dir/$dlname \$dldir/$dlname~
8586       chmod a+x \$dldir/$dlname'
8587     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8588       dlpath=$dir/\$dldll~
8589        $rm \$dlpath'
8590     shlibpath_overrides_runpath=yes
8591
8592     case $host_os in
8593     cygwin*)
8594       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8595       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8596       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8597       ;;
8598     mingw*)
8599       # MinGW DLLs use traditional 'lib' prefix
8600       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8601       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8602       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8603         # It is most probably a Windows format PATH printed by
8604         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8605         # path with ; separators, and with drive letters. We can handle the
8606         # drive letters (cygwin fileutils understands them), so leave them,
8607         # especially as we might pass files found there to a mingw objdump,
8608         # which wouldn't understand a cygwinified path. Ahh.
8609         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8610       else
8611         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8612       fi
8613       ;;
8614     pw32*)
8615       # pw32 DLLs use 'pw' prefix rather than 'lib'
8616       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8617       ;;
8618     esac
8619     ;;
8620
8621   *)
8622     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8623     ;;
8624   esac
8625   dynamic_linker='Win32 ld.exe'
8626   # FIXME: first we should search . and the directory the executable is in
8627   shlibpath_var=PATH
8628   ;;
8629
8630 darwin* | rhapsody*)
8631   dynamic_linker="$host_os dyld"
8632   version_type=darwin
8633   need_lib_prefix=no
8634   need_version=no
8635   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8636   soname_spec='${libname}${release}${major}$shared_ext'
8637   shlibpath_overrides_runpath=yes
8638   shlibpath_var=DYLD_LIBRARY_PATH
8639   shrext_cmds='.dylib'
8640   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8641   if test "$GCC" = yes; then
8642     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"`
8643   else
8644     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8645   fi
8646   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8647   ;;
8648
8649 dgux*)
8650   version_type=linux
8651   need_lib_prefix=no
8652   need_version=no
8653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8654   soname_spec='${libname}${release}${shared_ext}$major'
8655   shlibpath_var=LD_LIBRARY_PATH
8656   ;;
8657
8658 freebsd1.*)
8659   dynamic_linker=no
8660   ;;
8661
8662 kfreebsd*-gnu)
8663   version_type=linux
8664   need_lib_prefix=no
8665   need_version=no
8666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8667   soname_spec='${libname}${release}${shared_ext}$major'
8668   shlibpath_var=LD_LIBRARY_PATH
8669   shlibpath_overrides_runpath=no
8670   hardcode_into_libs=yes
8671   dynamic_linker='GNU ld.so'
8672   ;;
8673
8674 freebsd* | dragonfly*)
8675   # DragonFly does not have aout.  When/if they implement a new
8676   # versioning mechanism, adjust this.
8677   if test -x /usr/bin/objformat; then
8678     objformat=`/usr/bin/objformat`
8679   else
8680     case $host_os in
8681     freebsd[123].*) objformat=aout ;;
8682     *) objformat=elf ;;
8683     esac
8684   fi
8685   version_type=freebsd-$objformat
8686   case $version_type in
8687     freebsd-elf*)
8688       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8689       need_version=no
8690       need_lib_prefix=no
8691       ;;
8692     freebsd-*)
8693       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8694       need_version=yes
8695       ;;
8696   esac
8697   shlibpath_var=LD_LIBRARY_PATH
8698   case $host_os in
8699   freebsd2.*)
8700     shlibpath_overrides_runpath=yes
8701     ;;
8702   freebsd3.[01]* | freebsdelf3.[01]*)
8703     shlibpath_overrides_runpath=yes
8704     hardcode_into_libs=yes
8705     ;;
8706   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8707   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8708     shlibpath_overrides_runpath=no
8709     hardcode_into_libs=yes
8710     ;;
8711   freebsd*) # from 4.6 on
8712     shlibpath_overrides_runpath=yes
8713     hardcode_into_libs=yes
8714     ;;
8715   esac
8716   ;;
8717
8718 gnu*)
8719   version_type=linux
8720   need_lib_prefix=no
8721   need_version=no
8722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8723   soname_spec='${libname}${release}${shared_ext}$major'
8724   shlibpath_var=LD_LIBRARY_PATH
8725   hardcode_into_libs=yes
8726   ;;
8727
8728 hpux9* | hpux10* | hpux11*)
8729   # Give a soname corresponding to the major version so that dld.sl refuses to
8730   # link against other versions.
8731   version_type=sunos
8732   need_lib_prefix=no
8733   need_version=no
8734   case $host_cpu in
8735   ia64*)
8736     shrext_cmds='.so'
8737     hardcode_into_libs=yes
8738     dynamic_linker="$host_os dld.so"
8739     shlibpath_var=LD_LIBRARY_PATH
8740     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8742     soname_spec='${libname}${release}${shared_ext}$major'
8743     if test "X$HPUX_IA64_MODE" = X32; then
8744       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8745     else
8746       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8747     fi
8748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8749     ;;
8750    hppa*64*)
8751      shrext_cmds='.sl'
8752      hardcode_into_libs=yes
8753      dynamic_linker="$host_os dld.sl"
8754      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8755      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8756      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757      soname_spec='${libname}${release}${shared_ext}$major'
8758      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8759      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8760      ;;
8761    *)
8762     shrext_cmds='.sl'
8763     dynamic_linker="$host_os dld.sl"
8764     shlibpath_var=SHLIB_PATH
8765     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767     soname_spec='${libname}${release}${shared_ext}$major'
8768     ;;
8769   esac
8770   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8771   postinstall_cmds='chmod 555 $lib'
8772   ;;
8773
8774 interix3*)
8775   version_type=linux
8776   need_lib_prefix=no
8777   need_version=no
8778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8779   soname_spec='${libname}${release}${shared_ext}$major'
8780   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8781   shlibpath_var=LD_LIBRARY_PATH
8782   shlibpath_overrides_runpath=no
8783   hardcode_into_libs=yes
8784   ;;
8785
8786 irix5* | irix6* | nonstopux*)
8787   case $host_os in
8788     nonstopux*) version_type=nonstopux ;;
8789     *)
8790         if test "$lt_cv_prog_gnu_ld" = yes; then
8791                 version_type=linux
8792         else
8793                 version_type=irix
8794         fi ;;
8795   esac
8796   need_lib_prefix=no
8797   need_version=no
8798   soname_spec='${libname}${release}${shared_ext}$major'
8799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8800   case $host_os in
8801   irix5* | nonstopux*)
8802     libsuff= shlibsuff=
8803     ;;
8804   *)
8805     case $LD in # libtool.m4 will add one of these switches to LD
8806     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8807       libsuff= shlibsuff= libmagic=32-bit;;
8808     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8809       libsuff=32 shlibsuff=N32 libmagic=N32;;
8810     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8811       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8812     *) libsuff= shlibsuff= libmagic=never-match;;
8813     esac
8814     ;;
8815   esac
8816   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8817   shlibpath_overrides_runpath=no
8818   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8819   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8820   hardcode_into_libs=yes
8821   ;;
8822
8823 # No shared lib support for Linux oldld, aout, or coff.
8824 linux*oldld* | linux*aout* | linux*coff*)
8825   dynamic_linker=no
8826   ;;
8827
8828 # This must be Linux ELF.
8829 linux*)
8830   version_type=linux
8831   need_lib_prefix=no
8832   need_version=no
8833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834   soname_spec='${libname}${release}${shared_ext}$major'
8835   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8836   shlibpath_var=LD_LIBRARY_PATH
8837   shlibpath_overrides_runpath=no
8838   # This implies no fast_install, which is unacceptable.
8839   # Some rework will be needed to allow for fast_install
8840   # before this can be enabled.
8841   hardcode_into_libs=yes
8842
8843   # Append ld.so.conf contents to the search path
8844   if test -f /etc/ld.so.conf; then
8845     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' ' '`
8846     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8847   fi
8848
8849   # We used to test for /lib/ld.so.1 and disable shared libraries on
8850   # powerpc, because MkLinux only supported shared libraries with the
8851   # GNU dynamic linker.  Since this was broken with cross compilers,
8852   # most powerpc-linux boxes support dynamic linking these days and
8853   # people can always --disable-shared, the test was removed, and we
8854   # assume the GNU/Linux dynamic linker is in use.
8855   dynamic_linker='GNU/Linux ld.so'
8856   ;;
8857
8858 knetbsd*-gnu)
8859   version_type=linux
8860   need_lib_prefix=no
8861   need_version=no
8862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863   soname_spec='${libname}${release}${shared_ext}$major'
8864   shlibpath_var=LD_LIBRARY_PATH
8865   shlibpath_overrides_runpath=no
8866   hardcode_into_libs=yes
8867   dynamic_linker='GNU ld.so'
8868   ;;
8869
8870 netbsd*)
8871   version_type=sunos
8872   need_lib_prefix=no
8873   need_version=no
8874   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8876     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8877     dynamic_linker='NetBSD (a.out) ld.so'
8878   else
8879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8880     soname_spec='${libname}${release}${shared_ext}$major'
8881     dynamic_linker='NetBSD ld.elf_so'
8882   fi
8883   shlibpath_var=LD_LIBRARY_PATH
8884   shlibpath_overrides_runpath=yes
8885   hardcode_into_libs=yes
8886   ;;
8887
8888 newsos6)
8889   version_type=linux
8890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891   shlibpath_var=LD_LIBRARY_PATH
8892   shlibpath_overrides_runpath=yes
8893   ;;
8894
8895 nto-qnx*)
8896   version_type=linux
8897   need_lib_prefix=no
8898   need_version=no
8899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900   soname_spec='${libname}${release}${shared_ext}$major'
8901   shlibpath_var=LD_LIBRARY_PATH
8902   shlibpath_overrides_runpath=yes
8903   ;;
8904
8905 openbsd*)
8906   version_type=sunos
8907   sys_lib_dlsearch_path_spec="/usr/lib"
8908   need_lib_prefix=no
8909   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8910   case $host_os in
8911     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8912     *)                         need_version=no  ;;
8913   esac
8914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8915   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8916   shlibpath_var=LD_LIBRARY_PATH
8917   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8918     case $host_os in
8919       openbsd2.[89] | openbsd2.[89].*)
8920         shlibpath_overrides_runpath=no
8921         ;;
8922       *)
8923         shlibpath_overrides_runpath=yes
8924         ;;
8925       esac
8926   else
8927     shlibpath_overrides_runpath=yes
8928   fi
8929   ;;
8930
8931 os2*)
8932   libname_spec='$name'
8933   shrext_cmds=".dll"
8934   need_lib_prefix=no
8935   library_names_spec='$libname${shared_ext} $libname.a'
8936   dynamic_linker='OS/2 ld.exe'
8937   shlibpath_var=LIBPATH
8938   ;;
8939
8940 osf3* | osf4* | osf5*)
8941   version_type=osf
8942   need_lib_prefix=no
8943   need_version=no
8944   soname_spec='${libname}${release}${shared_ext}$major'
8945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946   shlibpath_var=LD_LIBRARY_PATH
8947   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8948   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8949   ;;
8950
8951 solaris*)
8952   version_type=linux
8953   need_lib_prefix=no
8954   need_version=no
8955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956   soname_spec='${libname}${release}${shared_ext}$major'
8957   shlibpath_var=LD_LIBRARY_PATH
8958   shlibpath_overrides_runpath=yes
8959   hardcode_into_libs=yes
8960   # ldd complains unless libraries are executable
8961   postinstall_cmds='chmod +x $lib'
8962   ;;
8963
8964 sunos4*)
8965   version_type=sunos
8966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8967   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8968   shlibpath_var=LD_LIBRARY_PATH
8969   shlibpath_overrides_runpath=yes
8970   if test "$with_gnu_ld" = yes; then
8971     need_lib_prefix=no
8972   fi
8973   need_version=yes
8974   ;;
8975
8976 sysv4 | sysv4.3*)
8977   version_type=linux
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979   soname_spec='${libname}${release}${shared_ext}$major'
8980   shlibpath_var=LD_LIBRARY_PATH
8981   case $host_vendor in
8982     sni)
8983       shlibpath_overrides_runpath=no
8984       need_lib_prefix=no
8985       export_dynamic_flag_spec='${wl}-Blargedynsym'
8986       runpath_var=LD_RUN_PATH
8987       ;;
8988     siemens)
8989       need_lib_prefix=no
8990       ;;
8991     motorola)
8992       need_lib_prefix=no
8993       need_version=no
8994       shlibpath_overrides_runpath=no
8995       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8996       ;;
8997   esac
8998   ;;
8999
9000 sysv4*MP*)
9001   if test -d /usr/nec ;then
9002     version_type=linux
9003     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9004     soname_spec='$libname${shared_ext}.$major'
9005     shlibpath_var=LD_LIBRARY_PATH
9006   fi
9007   ;;
9008
9009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9010   version_type=freebsd-elf
9011   need_lib_prefix=no
9012   need_version=no
9013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9014   soname_spec='${libname}${release}${shared_ext}$major'
9015   shlibpath_var=LD_LIBRARY_PATH
9016   hardcode_into_libs=yes
9017   if test "$with_gnu_ld" = yes; then
9018     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9019     shlibpath_overrides_runpath=no
9020   else
9021     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9022     shlibpath_overrides_runpath=yes
9023     case $host_os in
9024       sco3.2v5*)
9025         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9026         ;;
9027     esac
9028   fi
9029   sys_lib_dlsearch_path_spec='/usr/lib'
9030   ;;
9031
9032 uts4*)
9033   version_type=linux
9034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035   soname_spec='${libname}${release}${shared_ext}$major'
9036   shlibpath_var=LD_LIBRARY_PATH
9037   ;;
9038
9039 *)
9040   dynamic_linker=no
9041   ;;
9042 esac
9043 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9044 echo "${ECHO_T}$dynamic_linker" >&6; }
9045 test "$dynamic_linker" = no && can_build_shared=no
9046
9047 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9048 if test "$GCC" = yes; then
9049   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9050 fi
9051
9052
9053 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9054 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9055 if test "${libltdl_cv_shlibext+set}" = set; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058
9059 module=yes
9060 eval libltdl_cv_shlibext=$shrext_cmds
9061
9062 fi
9063 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9064 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9065 if test -n "$libltdl_cv_shlibext"; then
9066
9067 cat >>confdefs.h <<_ACEOF
9068 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9069 _ACEOF
9070
9071 fi
9072
9073
9074 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9075 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9076 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9077   echo $ECHO_N "(cached) $ECHO_C" >&6
9078 else
9079   libltdl_cv_shlibpath_var="$shlibpath_var"
9080 fi
9081 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9082 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9083 if test -n "$libltdl_cv_shlibpath_var"; then
9084
9085 cat >>confdefs.h <<_ACEOF
9086 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9087 _ACEOF
9088
9089 fi
9090
9091
9092 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9093 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9094 if test "${libltdl_cv_sys_search_path+set}" = set; then
9095   echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9098 fi
9099 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9100 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9101 if test -n "$libltdl_cv_sys_search_path"; then
9102   sys_search_path=
9103   for dir in $libltdl_cv_sys_search_path; do
9104     if test -z "$sys_search_path"; then
9105       sys_search_path="$dir"
9106     else
9107       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9108     fi
9109   done
9110
9111 cat >>confdefs.h <<_ACEOF
9112 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9113 _ACEOF
9114
9115 fi
9116
9117 { echo "$as_me:$LINENO: checking for objdir" >&5
9118 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9119 if test "${libltdl_cv_objdir+set}" = set; then
9120   echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122   libltdl_cv_objdir="$objdir"
9123   if test -n "$objdir"; then
9124     :
9125   else
9126     rm -f .libs 2>/dev/null
9127     mkdir .libs 2>/dev/null
9128     if test -d .libs; then
9129       libltdl_cv_objdir=.libs
9130     else
9131       # MS-DOS does not allow filenames that begin with a dot.
9132       libltdl_cv_objdir=_libs
9133     fi
9134   rmdir .libs 2>/dev/null
9135   fi
9136
9137 fi
9138 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9139 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9140
9141 cat >>confdefs.h <<_ACEOF
9142 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9143 _ACEOF
9144
9145
9146
9147
9148
9149
9150 # Check for command to grab the raw symbol name followed by C symbol from nm.
9151 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9152 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9153 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9154   echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156
9157 # These are sane defaults that work on at least a few old systems.
9158 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9159
9160 # Character class describing NM global symbol codes.
9161 symcode='[BCDEGRST]'
9162
9163 # Regexp to match symbols that can be accessed directly from C.
9164 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9165
9166 # Transform an extracted symbol line into a proper C declaration
9167 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9168
9169 # Transform an extracted symbol line into symbol name and symbol address
9170 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'"
9171
9172 # Define system-specific variables.
9173 case $host_os in
9174 aix*)
9175   symcode='[BCDT]'
9176   ;;
9177 cygwin* | mingw* | pw32*)
9178   symcode='[ABCDGISTW]'
9179   ;;
9180 hpux*) # Its linker distinguishes data from code symbols
9181   if test "$host_cpu" = ia64; then
9182     symcode='[ABCDEGRST]'
9183   fi
9184   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9185   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'"
9186   ;;
9187 linux*)
9188   if test "$host_cpu" = ia64; then
9189     symcode='[ABCDGIRSTW]'
9190     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9191     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'"
9192   fi
9193   ;;
9194 irix* | nonstopux*)
9195   symcode='[BCDEGRST]'
9196   ;;
9197 osf*)
9198   symcode='[BCDEGQRST]'
9199   ;;
9200 solaris*)
9201   symcode='[BDRT]'
9202   ;;
9203 sco3.2v5*)
9204   symcode='[DT]'
9205   ;;
9206 sysv4.2uw2*)
9207   symcode='[DT]'
9208   ;;
9209 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9210   symcode='[ABDT]'
9211   ;;
9212 sysv4)
9213   symcode='[DFNSTU]'
9214   ;;
9215 esac
9216
9217 # Handle CRLF in mingw tool chain
9218 opt_cr=
9219 case $build_os in
9220 mingw*)
9221   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9222   ;;
9223 esac
9224
9225 # If we're using GNU nm, then use its standard symbol codes.
9226 case `$NM -V 2>&1` in
9227 *GNU* | *'with BFD'*)
9228   symcode='[ABCDGIRSTW]' ;;
9229 esac
9230
9231 # Try without a prefix undercore, then with it.
9232 for ac_symprfx in "" "_"; do
9233
9234   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9235   symxfrm="\\1 $ac_symprfx\\2 \\2"
9236
9237   # Write the raw and C identifiers.
9238   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9239
9240   # Check to see that the pipe works correctly.
9241   pipe_works=no
9242
9243   rm -f conftest*
9244   cat > conftest.$ac_ext <<EOF
9245 #ifdef __cplusplus
9246 extern "C" {
9247 #endif
9248 char nm_test_var;
9249 void nm_test_func(){}
9250 #ifdef __cplusplus
9251 }
9252 #endif
9253 int main(){nm_test_var='a';nm_test_func();return(0);}
9254 EOF
9255
9256   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9257   (eval $ac_compile) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; then
9261     # Now try to grab the symbols.
9262     nlist=conftest.nm
9263     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9264   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); } && test -s "$nlist"; then
9268       # Try sorting and uniquifying the output.
9269       if sort "$nlist" | uniq > "$nlist"T; then
9270         mv -f "$nlist"T "$nlist"
9271       else
9272         rm -f "$nlist"T
9273       fi
9274
9275       # Make sure that we snagged all the symbols we need.
9276       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9277         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9278           cat <<EOF > conftest.$ac_ext
9279 #ifdef __cplusplus
9280 extern "C" {
9281 #endif
9282
9283 EOF
9284           # Now generate the symbol file.
9285           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9286
9287           cat <<EOF >> conftest.$ac_ext
9288 #if defined (__STDC__) && __STDC__
9289 # define lt_ptr_t void *
9290 #else
9291 # define lt_ptr_t char *
9292 # define const
9293 #endif
9294
9295 /* The mapping between symbol names and symbols. */
9296 const struct {
9297   const char *name;
9298   lt_ptr_t address;
9299 }
9300 lt_preloaded_symbols[] =
9301 {
9302 EOF
9303           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9304           cat <<\EOF >> conftest.$ac_ext
9305   {0, (lt_ptr_t) 0}
9306 };
9307
9308 #ifdef __cplusplus
9309 }
9310 #endif
9311 EOF
9312           # Now try linking the two files.
9313           mv conftest.$ac_objext conftstm.$ac_objext
9314           lt_save_LIBS="$LIBS"
9315           lt_save_CFLAGS="$CFLAGS"
9316           LIBS="conftstm.$ac_objext"
9317           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9318           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319   (eval $ac_link) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9323             pipe_works=yes
9324           fi
9325           LIBS="$lt_save_LIBS"
9326           CFLAGS="$lt_save_CFLAGS"
9327         else
9328           echo "cannot find nm_test_func in $nlist" >&5
9329         fi
9330       else
9331         echo "cannot find nm_test_var in $nlist" >&5
9332       fi
9333     else
9334       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9335     fi
9336   else
9337     echo "$progname: failed program was:" >&5
9338     cat conftest.$ac_ext >&5
9339   fi
9340   rm -f conftest* conftst*
9341
9342   # Do not use the global_symbol_pipe unless it works.
9343   if test "$pipe_works" = yes; then
9344     break
9345   else
9346     lt_cv_sys_global_symbol_pipe=
9347   fi
9348 done
9349
9350 fi
9351
9352 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9353   lt_cv_sys_global_symbol_to_cdecl=
9354 fi
9355 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9356   { echo "$as_me:$LINENO: result: failed" >&5
9357 echo "${ECHO_T}failed" >&6; }
9358 else
9359   { echo "$as_me:$LINENO: result: ok" >&5
9360 echo "${ECHO_T}ok" >&6; }
9361 fi
9362
9363
9364 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9365 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9366 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9367   echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9370     libltdl_cv_preloaded_symbols=yes
9371   else
9372     libltdl_cv_preloaded_symbols=no
9373   fi
9374
9375 fi
9376 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9377 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9378 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9379
9380 cat >>confdefs.h <<\_ACEOF
9381 #define HAVE_PRELOADED_SYMBOLS 1
9382 _ACEOF
9383
9384 fi
9385
9386 LIBADD_DL=
9387
9388 ac_ext=c
9389 ac_cpp='$CPP $CPPFLAGS'
9390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9393
9394
9395 { echo "$as_me:$LINENO: checking for shl_load" >&5
9396 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9397 if test "${ac_cv_func_shl_load+set}" = set; then
9398   echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400   cat >conftest.$ac_ext <<_ACEOF
9401 /* confdefs.h.  */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h.  */
9406 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9408 #define shl_load innocuous_shl_load
9409
9410 /* System header to define __stub macros and hopefully few prototypes,
9411     which can conflict with char shl_load (); below.
9412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9413     <limits.h> exists even on freestanding compilers.  */
9414
9415 #ifdef __STDC__
9416 # include <limits.h>
9417 #else
9418 # include <assert.h>
9419 #endif
9420
9421 #undef shl_load
9422
9423 /* Override any GCC internal prototype to avoid an error.
9424    Use char because int might match the return type of a GCC
9425    builtin and then its argument prototype would still apply.  */
9426 #ifdef __cplusplus
9427 extern "C"
9428 #endif
9429 char shl_load ();
9430 /* The GNU C library defines this for functions which it implements
9431     to always fail with ENOSYS.  Some functions are actually named
9432     something starting with __ and the normal name is an alias.  */
9433 #if defined __stub_shl_load || defined __stub___shl_load
9434 choke me
9435 #endif
9436
9437 int
9438 main ()
9439 {
9440 return shl_load ();
9441   ;
9442   return 0;
9443 }
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (ac_try="$ac_link"
9447 case "(($ac_try" in
9448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449   *) ac_try_echo=$ac_try;;
9450 esac
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452   (eval "$ac_link") 2>conftest.er1
9453   ac_status=$?
9454   grep -v '^ *+' conftest.er1 >conftest.err
9455   rm -f conftest.er1
9456   cat conftest.err >&5
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); } &&
9459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9460   { (case "(($ac_try" in
9461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462   *) ac_try_echo=$ac_try;;
9463 esac
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465   (eval "$ac_try") 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; } &&
9469          { ac_try='test -s conftest$ac_exeext'
9470   { (case "(($ac_try" in
9471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472   *) ac_try_echo=$ac_try;;
9473 esac
9474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475   (eval "$ac_try") 2>&5
9476   ac_status=$?
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); }; }; then
9479   ac_cv_func_shl_load=yes
9480 else
9481   echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9483
9484         ac_cv_func_shl_load=no
9485 fi
9486
9487 rm -f core conftest.err conftest.$ac_objext \
9488       conftest$ac_exeext conftest.$ac_ext
9489 fi
9490 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9491 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9492 if test $ac_cv_func_shl_load = yes; then
9493
9494 cat >>confdefs.h <<\_ACEOF
9495 #define HAVE_SHL_LOAD 1
9496 _ACEOF
9497
9498 else
9499   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9500 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9501 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9502   echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504   ac_check_lib_save_LIBS=$LIBS
9505 LIBS="-ldld  $LIBS"
9506 cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h.  */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h.  */
9512
9513 /* Override any GCC internal prototype to avoid an error.
9514    Use char because int might match the return type of a GCC
9515    builtin and then its argument prototype would still apply.  */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char shl_load ();
9520 int
9521 main ()
9522 {
9523 return shl_load ();
9524   ;
9525   return 0;
9526 }
9527 _ACEOF
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (ac_try="$ac_link"
9530 case "(($ac_try" in
9531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532   *) ac_try_echo=$ac_try;;
9533 esac
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535   (eval "$ac_link") 2>conftest.er1
9536   ac_status=$?
9537   grep -v '^ *+' conftest.er1 >conftest.err
9538   rm -f conftest.er1
9539   cat conftest.err >&5
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); } &&
9542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543   { (case "(($ac_try" in
9544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545   *) ac_try_echo=$ac_try;;
9546 esac
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548   (eval "$ac_try") 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; } &&
9552          { ac_try='test -s conftest$ac_exeext'
9553   { (case "(($ac_try" in
9554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555   *) ac_try_echo=$ac_try;;
9556 esac
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558   (eval "$ac_try") 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); }; }; then
9562   ac_cv_lib_dld_shl_load=yes
9563 else
9564   echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9566
9567         ac_cv_lib_dld_shl_load=no
9568 fi
9569
9570 rm -f core conftest.err conftest.$ac_objext \
9571       conftest$ac_exeext conftest.$ac_ext
9572 LIBS=$ac_check_lib_save_LIBS
9573 fi
9574 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9575 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9576 if test $ac_cv_lib_dld_shl_load = yes; then
9577
9578 cat >>confdefs.h <<\_ACEOF
9579 #define HAVE_SHL_LOAD 1
9580 _ACEOF
9581
9582         LIBADD_DL="$LIBADD_DL -ldld"
9583 else
9584   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9585 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9587   echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589   ac_check_lib_save_LIBS=$LIBS
9590 LIBS="-ldl  $LIBS"
9591 cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597
9598 /* Override any GCC internal prototype to avoid an error.
9599    Use char because int might match the return type of a GCC
9600    builtin and then its argument prototype would still apply.  */
9601 #ifdef __cplusplus
9602 extern "C"
9603 #endif
9604 char dlopen ();
9605 int
9606 main ()
9607 {
9608 return dlopen ();
9609   ;
9610   return 0;
9611 }
9612 _ACEOF
9613 rm -f conftest.$ac_objext conftest$ac_exeext
9614 if { (ac_try="$ac_link"
9615 case "(($ac_try" in
9616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617   *) ac_try_echo=$ac_try;;
9618 esac
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620   (eval "$ac_link") 2>conftest.er1
9621   ac_status=$?
9622   grep -v '^ *+' conftest.er1 >conftest.err
9623   rm -f conftest.er1
9624   cat conftest.err >&5
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } &&
9627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9628   { (case "(($ac_try" in
9629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630   *) ac_try_echo=$ac_try;;
9631 esac
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633   (eval "$ac_try") 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); }; } &&
9637          { ac_try='test -s conftest$ac_exeext'
9638   { (case "(($ac_try" in
9639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640   *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643   (eval "$ac_try") 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; }; then
9647   ac_cv_lib_dl_dlopen=yes
9648 else
9649   echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9651
9652         ac_cv_lib_dl_dlopen=no
9653 fi
9654
9655 rm -f core conftest.err conftest.$ac_objext \
9656       conftest$ac_exeext conftest.$ac_ext
9657 LIBS=$ac_check_lib_save_LIBS
9658 fi
9659 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9660 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9661 if test $ac_cv_lib_dl_dlopen = yes; then
9662
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_LIBDL 1
9665 _ACEOF
9666
9667                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9668 else
9669   cat >conftest.$ac_ext <<_ACEOF
9670 /* confdefs.h.  */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h.  */
9675 #if HAVE_DLFCN_H
9676 #  include <dlfcn.h>
9677 #endif
9678
9679 int
9680 main ()
9681 {
9682 dlopen(0, 0);
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9689 case "(($ac_try" in
9690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691   *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694   (eval "$ac_link") 2>conftest.er1
9695   ac_status=$?
9696   grep -v '^ *+' conftest.er1 >conftest.err
9697   rm -f conftest.er1
9698   cat conftest.err >&5
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } &&
9701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9702   { (case "(($ac_try" in
9703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704   *) ac_try_echo=$ac_try;;
9705 esac
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707   (eval "$ac_try") 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; } &&
9711          { ac_try='test -s conftest$ac_exeext'
9712   { (case "(($ac_try" in
9713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714   *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717   (eval "$ac_try") 2>&5
9718   ac_status=$?
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   (exit $ac_status); }; }; then
9721
9722 cat >>confdefs.h <<\_ACEOF
9723 #define HAVE_LIBDL 1
9724 _ACEOF
9725  libltdl_cv_func_dlopen="yes"
9726 else
9727   echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9729
9730         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9731 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9732 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9733   echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735   ac_check_lib_save_LIBS=$LIBS
9736 LIBS="-lsvld  $LIBS"
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743
9744 /* Override any GCC internal prototype to avoid an error.
9745    Use char because int might match the return type of a GCC
9746    builtin and then its argument prototype would still apply.  */
9747 #ifdef __cplusplus
9748 extern "C"
9749 #endif
9750 char dlopen ();
9751 int
9752 main ()
9753 {
9754 return dlopen ();
9755   ;
9756   return 0;
9757 }
9758 _ACEOF
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (ac_try="$ac_link"
9761 case "(($ac_try" in
9762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763   *) ac_try_echo=$ac_try;;
9764 esac
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766   (eval "$ac_link") 2>conftest.er1
9767   ac_status=$?
9768   grep -v '^ *+' conftest.er1 >conftest.err
9769   rm -f conftest.er1
9770   cat conftest.err >&5
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); } &&
9773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9774   { (case "(($ac_try" in
9775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776   *) ac_try_echo=$ac_try;;
9777 esac
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779   (eval "$ac_try") 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); }; } &&
9783          { ac_try='test -s conftest$ac_exeext'
9784   { (case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_try") 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); }; }; then
9793   ac_cv_lib_svld_dlopen=yes
9794 else
9795   echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798         ac_cv_lib_svld_dlopen=no
9799 fi
9800
9801 rm -f core conftest.err conftest.$ac_objext \
9802       conftest$ac_exeext conftest.$ac_ext
9803 LIBS=$ac_check_lib_save_LIBS
9804 fi
9805 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9806 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9807 if test $ac_cv_lib_svld_dlopen = yes; then
9808
9809 cat >>confdefs.h <<\_ACEOF
9810 #define HAVE_LIBDL 1
9811 _ACEOF
9812
9813                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9814 else
9815   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9816 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9818   echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820   ac_check_lib_save_LIBS=$LIBS
9821 LIBS="-ldld  $LIBS"
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828
9829 /* Override any GCC internal prototype to avoid an error.
9830    Use char because int might match the return type of a GCC
9831    builtin and then its argument prototype would still apply.  */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char dld_link ();
9836 int
9837 main ()
9838 {
9839 return dld_link ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859   { (case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_try") 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; } &&
9868          { ac_try='test -s conftest$ac_exeext'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; }; then
9878   ac_cv_lib_dld_dld_link=yes
9879 else
9880   echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9882
9883         ac_cv_lib_dld_dld_link=no
9884 fi
9885
9886 rm -f core conftest.err conftest.$ac_objext \
9887       conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9889 fi
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9891 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9892 if test $ac_cv_lib_dld_dld_link = yes; then
9893
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_DLD 1
9896 _ACEOF
9897
9898                 LIBADD_DL="$LIBADD_DL -ldld"
9899 else
9900   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9901 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9902 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9913 #define _dyld_func_lookup innocuous__dyld_func_lookup
9914
9915 /* System header to define __stub macros and hopefully few prototypes,
9916     which can conflict with char _dyld_func_lookup (); below.
9917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918     <limits.h> exists even on freestanding compilers.  */
9919
9920 #ifdef __STDC__
9921 # include <limits.h>
9922 #else
9923 # include <assert.h>
9924 #endif
9925
9926 #undef _dyld_func_lookup
9927
9928 /* Override any GCC internal prototype to avoid an error.
9929    Use char because int might match the return type of a GCC
9930    builtin and then its argument prototype would still apply.  */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 char _dyld_func_lookup ();
9935 /* The GNU C library defines this for functions which it implements
9936     to always fail with ENOSYS.  Some functions are actually named
9937     something starting with __ and the normal name is an alias.  */
9938 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9939 choke me
9940 #endif
9941
9942 int
9943 main ()
9944 {
9945 return _dyld_func_lookup ();
9946   ;
9947   return 0;
9948 }
9949 _ACEOF
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9952 case "(($ac_try" in
9953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954   *) ac_try_echo=$ac_try;;
9955 esac
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957   (eval "$ac_link") 2>conftest.er1
9958   ac_status=$?
9959   grep -v '^ *+' conftest.er1 >conftest.err
9960   rm -f conftest.er1
9961   cat conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); } &&
9964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9965   { (case "(($ac_try" in
9966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967   *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970   (eval "$ac_try") 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; } &&
9974          { ac_try='test -s conftest$ac_exeext'
9975   { (case "(($ac_try" in
9976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977   *) ac_try_echo=$ac_try;;
9978 esac
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980   (eval "$ac_try") 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); }; }; then
9984   ac_cv_func__dyld_func_lookup=yes
9985 else
9986   echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989         ac_cv_func__dyld_func_lookup=no
9990 fi
9991
9992 rm -f core conftest.err conftest.$ac_objext \
9993       conftest$ac_exeext conftest.$ac_ext
9994 fi
9995 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9996 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9997 if test $ac_cv_func__dyld_func_lookup = yes; then
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_DYLD 1
10001 _ACEOF
10002
10003 fi
10004
10005
10006 fi
10007
10008
10009 fi
10010
10011
10012 fi
10013
10014 rm -f core conftest.err conftest.$ac_objext \
10015       conftest$ac_exeext conftest.$ac_ext
10016
10017 fi
10018
10019
10020 fi
10021
10022
10023 fi
10024
10025
10026 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10027 then
10028   lt_save_LIBS="$LIBS"
10029   LIBS="$LIBS $LIBADD_DL"
10030
10031 for ac_func in dlerror
10032 do
10033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10047 #define $ac_func innocuous_$ac_func
10048
10049 /* System header to define __stub macros and hopefully few prototypes,
10050     which can conflict with char $ac_func (); below.
10051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052     <limits.h> exists even on freestanding compilers.  */
10053
10054 #ifdef __STDC__
10055 # include <limits.h>
10056 #else
10057 # include <assert.h>
10058 #endif
10059
10060 #undef $ac_func
10061
10062 /* Override any GCC internal prototype to avoid an error.
10063    Use char because int might match the return type of a GCC
10064    builtin and then its argument prototype would still apply.  */
10065 #ifdef __cplusplus
10066 extern "C"
10067 #endif
10068 char $ac_func ();
10069 /* The GNU C library defines this for functions which it implements
10070     to always fail with ENOSYS.  Some functions are actually named
10071     something starting with __ and the normal name is an alias.  */
10072 #if defined __stub_$ac_func || defined __stub___$ac_func
10073 choke me
10074 #endif
10075
10076 int
10077 main ()
10078 {
10079 return $ac_func ();
10080   ;
10081   return 0;
10082 }
10083 _ACEOF
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (ac_try="$ac_link"
10086 case "(($ac_try" in
10087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088   *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091   (eval "$ac_link") 2>conftest.er1
10092   ac_status=$?
10093   grep -v '^ *+' conftest.er1 >conftest.err
10094   rm -f conftest.er1
10095   cat conftest.err >&5
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } &&
10098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099   { (case "(($ac_try" in
10100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101   *) ac_try_echo=$ac_try;;
10102 esac
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104   (eval "$ac_try") 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; } &&
10108          { ac_try='test -s conftest$ac_exeext'
10109   { (case "(($ac_try" in
10110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111   *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114   (eval "$ac_try") 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); }; }; then
10118   eval "$as_ac_var=yes"
10119 else
10120   echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123         eval "$as_ac_var=no"
10124 fi
10125
10126 rm -f core conftest.err conftest.$ac_objext \
10127       conftest$ac_exeext conftest.$ac_ext
10128 fi
10129 ac_res=`eval echo '${'$as_ac_var'}'`
10130                { echo "$as_me:$LINENO: result: $ac_res" >&5
10131 echo "${ECHO_T}$ac_res" >&6; }
10132 if test `eval echo '${'$as_ac_var'}'` = yes; then
10133   cat >>confdefs.h <<_ACEOF
10134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10135 _ACEOF
10136
10137 fi
10138 done
10139
10140   LIBS="$lt_save_LIBS"
10141 fi
10142 ac_ext=c
10143 ac_cpp='$CPP $CPPFLAGS'
10144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10147
10148
10149
10150 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10151 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10152 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155   ac_cv_sys_symbol_underscore=no
10156   cat > conftest.$ac_ext <<EOF
10157 void nm_test_func(){}
10158 int main(){nm_test_func;return 0;}
10159 EOF
10160   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161   (eval $ac_compile) 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); }; then
10165     # Now try to grab the symbols.
10166     ac_nlist=conftest.nm
10167     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10168   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } && test -s "$ac_nlist"; then
10172       # See whether the symbols have a leading underscore.
10173       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10174         ac_cv_sys_symbol_underscore=yes
10175       else
10176         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10177           :
10178         else
10179           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10180         fi
10181       fi
10182     else
10183       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10184     fi
10185   else
10186     echo "configure: failed program was:" >&5
10187     cat conftest.c >&5
10188   fi
10189   rm -rf conftest*
10190
10191 fi
10192 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10193 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10194
10195
10196 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10197   if test x"$libltdl_cv_func_dlopen" = xyes ||
10198      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10199         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10200 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10201 if test "${libltdl_cv_need_uscore+set}" = set; then
10202   echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204   libltdl_cv_need_uscore=unknown
10205           save_LIBS="$LIBS"
10206           LIBS="$LIBS $LIBADD_DL"
10207           if test "$cross_compiling" = yes; then :
10208   libltdl_cv_need_uscore=cross
10209 else
10210   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10211   lt_status=$lt_dlunknown
10212   cat > conftest.$ac_ext <<EOF
10213 #line 10213 "configure"
10214 #include "confdefs.h"
10215
10216 #if HAVE_DLFCN_H
10217 #include <dlfcn.h>
10218 #endif
10219
10220 #include <stdio.h>
10221
10222 #ifdef RTLD_GLOBAL
10223 #  define LT_DLGLOBAL           RTLD_GLOBAL
10224 #else
10225 #  ifdef DL_GLOBAL
10226 #    define LT_DLGLOBAL         DL_GLOBAL
10227 #  else
10228 #    define LT_DLGLOBAL         0
10229 #  endif
10230 #endif
10231
10232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10233    find out it does not work in some platform. */
10234 #ifndef LT_DLLAZY_OR_NOW
10235 #  ifdef RTLD_LAZY
10236 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10237 #  else
10238 #    ifdef DL_LAZY
10239 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10240 #    else
10241 #      ifdef RTLD_NOW
10242 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10243 #      else
10244 #        ifdef DL_NOW
10245 #          define LT_DLLAZY_OR_NOW      DL_NOW
10246 #        else
10247 #          define LT_DLLAZY_OR_NOW      0
10248 #        endif
10249 #      endif
10250 #    endif
10251 #  endif
10252 #endif
10253
10254 #ifdef __cplusplus
10255 extern "C" void exit (int);
10256 #endif
10257
10258 void fnord() { int i=42;}
10259 int main ()
10260 {
10261   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10262   int status = $lt_dlunknown;
10263
10264   if (self)
10265     {
10266       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10267       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10268       /* dlclose (self); */
10269     }
10270   else
10271     puts (dlerror ());
10272
10273     exit (status);
10274 }
10275 EOF
10276   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277   (eval $ac_link) 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10281     (./conftest; exit; ) >&5 2>/dev/null
10282     lt_status=$?
10283     case x$lt_status in
10284       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10285       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10286       x$lt_dlunknown|x*)  ;;
10287     esac
10288   else :
10289     # compilation failed
10290
10291   fi
10292 fi
10293 rm -fr conftest*
10294
10295           LIBS="$save_LIBS"
10296
10297 fi
10298 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10299 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10300   fi
10301 fi
10302
10303 if test x"$libltdl_cv_need_uscore" = xyes; then
10304
10305 cat >>confdefs.h <<\_ACEOF
10306 #define NEED_USCORE 1
10307 _ACEOF
10308
10309 fi
10310
10311
10312 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10313 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10314 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10315   echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317   # PORTME does your system automatically load deplibs for dlopen?
10318   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10319   # For now, we just catch OSes we know something about -- in the
10320   # future, we'll try test this programmatically.
10321   libltdl_cv_sys_dlopen_deplibs=unknown
10322   case "$host_os" in
10323   aix3*|aix4.1.*|aix4.2.*)
10324     # Unknown whether this is true for these versions of AIX, but
10325     # we want this `case' here to explicitly catch those versions.
10326     libltdl_cv_sys_dlopen_deplibs=unknown
10327     ;;
10328   aix[45]*)
10329     libltdl_cv_sys_dlopen_deplibs=yes
10330     ;;
10331   darwin*)
10332     # Assuming the user has installed a libdl from somewhere, this is true
10333     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10334     libltdl_cv_sys_dlopen_deplibs=yes
10335     ;;
10336   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10337     # GNU and its variants, using gnu ld.so (Glibc)
10338     libltdl_cv_sys_dlopen_deplibs=yes
10339     ;;
10340   hpux10*|hpux11*)
10341     libltdl_cv_sys_dlopen_deplibs=yes
10342     ;;
10343   interix*)
10344     libltdl_cv_sys_dlopen_deplibs=yes
10345     ;;
10346   irix[12345]*|irix6.[01]*)
10347     # Catch all versions of IRIX before 6.2, and indicate that we don't
10348     # know how it worked for any of those versions.
10349     libltdl_cv_sys_dlopen_deplibs=unknown
10350     ;;
10351   irix*)
10352     # The case above catches anything before 6.2, and it's known that
10353     # at 6.2 and later dlopen does load deplibs.
10354     libltdl_cv_sys_dlopen_deplibs=yes
10355     ;;
10356   netbsd*)
10357     libltdl_cv_sys_dlopen_deplibs=yes
10358     ;;
10359   openbsd*)
10360     libltdl_cv_sys_dlopen_deplibs=yes
10361     ;;
10362   osf[1234]*)
10363     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10364     # it did *not* use an RPATH in a shared library to find objects the
10365     # library depends on, so we explicitly say `no'.
10366     libltdl_cv_sys_dlopen_deplibs=no
10367     ;;
10368   osf5.0|osf5.0a|osf5.1)
10369     # dlopen *does* load deplibs and with the right loader patch applied
10370     # it even uses RPATH in a shared library to search for shared objects
10371     # that the library depends on, but there's no easy way to know if that
10372     # patch is installed.  Since this is the case, all we can really
10373     # say is unknown -- it depends on the patch being installed.  If
10374     # it is, this changes to `yes'.  Without it, it would be `no'.
10375     libltdl_cv_sys_dlopen_deplibs=unknown
10376     ;;
10377   osf*)
10378     # the two cases above should catch all versions of osf <= 5.1.  Read
10379     # the comments above for what we know about them.
10380     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10381     # is used to find them so we can finally say `yes'.
10382     libltdl_cv_sys_dlopen_deplibs=yes
10383     ;;
10384   solaris*)
10385     libltdl_cv_sys_dlopen_deplibs=yes
10386     ;;
10387   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10388     libltdl_cv_sys_dlopen_deplibs=yes
10389     ;;
10390   esac
10391
10392 fi
10393 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10394 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10395 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10396
10397 cat >>confdefs.h <<\_ACEOF
10398 #define LTDL_DLOPEN_DEPLIBS 1
10399 _ACEOF
10400
10401 fi
10402
10403
10404 for ac_header in argz.h
10405 do
10406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10408   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10411   echo $ECHO_N "(cached) $ECHO_C" >&6
10412 fi
10413 ac_res=`eval echo '${'$as_ac_Header'}'`
10414                { echo "$as_me:$LINENO: result: $ac_res" >&5
10415 echo "${ECHO_T}$ac_res" >&6; }
10416 else
10417   # Is the header compilable?
10418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h.  */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h.  */
10426 $ac_includes_default
10427 #include <$ac_header>
10428 _ACEOF
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433   *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436   (eval "$ac_compile") 2>conftest.er1
10437   ac_status=$?
10438   grep -v '^ *+' conftest.er1 >conftest.err
10439   rm -f conftest.er1
10440   cat conftest.err >&5
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); } &&
10443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10444   { (case "(($ac_try" in
10445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446   *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449   (eval "$ac_try") 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; } &&
10453          { ac_try='test -s conftest.$ac_objext'
10454   { (case "(($ac_try" in
10455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456   *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459   (eval "$ac_try") 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; }; then
10463   ac_header_compiler=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468         ac_header_compiler=no
10469 fi
10470
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10473 echo "${ECHO_T}$ac_header_compiler" >&6; }
10474
10475 # Is the header present?
10476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10478 cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484 #include <$ac_header>
10485 _ACEOF
10486 if { (ac_try="$ac_cpp conftest.$ac_ext"
10487 case "(($ac_try" in
10488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489   *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10493   ac_status=$?
10494   grep -v '^ *+' conftest.er1 >conftest.err
10495   rm -f conftest.er1
10496   cat conftest.err >&5
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } >/dev/null; then
10499   if test -s conftest.err; then
10500     ac_cpp_err=$ac_c_preproc_warn_flag
10501     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10502   else
10503     ac_cpp_err=
10504   fi
10505 else
10506   ac_cpp_err=yes
10507 fi
10508 if test -z "$ac_cpp_err"; then
10509   ac_header_preproc=yes
10510 else
10511   echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10513
10514   ac_header_preproc=no
10515 fi
10516
10517 rm -f conftest.err conftest.$ac_ext
10518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10519 echo "${ECHO_T}$ac_header_preproc" >&6; }
10520
10521 # So?  What about this header?
10522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10523   yes:no: )
10524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10528     ac_header_preproc=yes
10529     ;;
10530   no:yes:* )
10531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10533     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10534 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10535     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10537     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10538 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10541     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10543     ( cat <<\_ASBOX
10544 ## ------------------------------------ ##
10545 ## Report this to http://llvm.org/bugs/ ##
10546 ## ------------------------------------ ##
10547 _ASBOX
10548      ) | sed "s/^/$as_me: WARNING:     /" >&2
10549     ;;
10550 esac
10551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   eval "$as_ac_Header=\$ac_header_preproc"
10557 fi
10558 ac_res=`eval echo '${'$as_ac_Header'}'`
10559                { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10561
10562 fi
10563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10564   cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10566 _ACEOF
10567
10568 fi
10569
10570 done
10571
10572
10573 { echo "$as_me:$LINENO: checking for error_t" >&5
10574 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10575 if test "${ac_cv_type_error_t+set}" = set; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578   cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584 #if HAVE_ARGZ_H
10585 #  include <argz.h>
10586 #endif
10587
10588 typedef error_t ac__type_new_;
10589 int
10590 main ()
10591 {
10592 if ((ac__type_new_ *) 0)
10593   return 0;
10594 if (sizeof (ac__type_new_))
10595   return 0;
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604   *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607   (eval "$ac_compile") 2>conftest.er1
10608   ac_status=$?
10609   grep -v '^ *+' conftest.er1 >conftest.err
10610   rm -f conftest.er1
10611   cat conftest.err >&5
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } &&
10614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10615   { (case "(($ac_try" in
10616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617   *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620   (eval "$ac_try") 2>&5
10621   ac_status=$?
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); }; } &&
10624          { ac_try='test -s conftest.$ac_objext'
10625   { (case "(($ac_try" in
10626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627   *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630   (eval "$ac_try") 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; }; then
10634   ac_cv_type_error_t=yes
10635 else
10636   echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639         ac_cv_type_error_t=no
10640 fi
10641
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 fi
10644 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10645 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10646 if test $ac_cv_type_error_t = yes; then
10647
10648 cat >>confdefs.h <<_ACEOF
10649 #define HAVE_ERROR_T 1
10650 _ACEOF
10651
10652
10653 else
10654
10655 cat >>confdefs.h <<\_ACEOF
10656 #define error_t int
10657 _ACEOF
10658
10659 fi
10660
10661
10662
10663
10664
10665
10666
10667 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10668 do
10669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675   cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10683 #define $ac_func innocuous_$ac_func
10684
10685 /* System header to define __stub macros and hopefully few prototypes,
10686     which can conflict with char $ac_func (); below.
10687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688     <limits.h> exists even on freestanding compilers.  */
10689
10690 #ifdef __STDC__
10691 # include <limits.h>
10692 #else
10693 # include <assert.h>
10694 #endif
10695
10696 #undef $ac_func
10697
10698 /* Override any GCC internal prototype to avoid an error.
10699    Use char because int might match the return type of a GCC
10700    builtin and then its argument prototype would still apply.  */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char $ac_func ();
10705 /* The GNU C library defines this for functions which it implements
10706     to always fail with ENOSYS.  Some functions are actually named
10707     something starting with __ and the normal name is an alias.  */
10708 #if defined __stub_$ac_func || defined __stub___$ac_func
10709 choke me
10710 #endif
10711
10712 int
10713 main ()
10714 {
10715 return $ac_func ();
10716   ;
10717   return 0;
10718 }
10719 _ACEOF
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (ac_try="$ac_link"
10722 case "(($ac_try" in
10723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724   *) ac_try_echo=$ac_try;;
10725 esac
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727   (eval "$ac_link") 2>conftest.er1
10728   ac_status=$?
10729   grep -v '^ *+' conftest.er1 >conftest.err
10730   rm -f conftest.er1
10731   cat conftest.err >&5
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); } &&
10734          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10735   { (case "(($ac_try" in
10736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737   *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740   (eval "$ac_try") 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; } &&
10744          { ac_try='test -s conftest$ac_exeext'
10745   { (case "(($ac_try" in
10746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747   *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750   (eval "$ac_try") 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754   eval "$as_ac_var=yes"
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759         eval "$as_ac_var=no"
10760 fi
10761
10762 rm -f core conftest.err conftest.$ac_objext \
10763       conftest$ac_exeext conftest.$ac_ext
10764 fi
10765 ac_res=`eval echo '${'$as_ac_var'}'`
10766                { echo "$as_me:$LINENO: result: $ac_res" >&5
10767 echo "${ECHO_T}$ac_res" >&6; }
10768 if test `eval echo '${'$as_ac_var'}'` = yes; then
10769   cat >>confdefs.h <<_ACEOF
10770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10771 _ACEOF
10772
10773 fi
10774 done
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10804                   stdio.h unistd.h
10805 do
10806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10811   echo $ECHO_N "(cached) $ECHO_C" >&6
10812 fi
10813 ac_res=`eval echo '${'$as_ac_Header'}'`
10814                { echo "$as_me:$LINENO: result: $ac_res" >&5
10815 echo "${ECHO_T}$ac_res" >&6; }
10816 else
10817   # Is the header compilable?
10818 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h.  */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h.  */
10826 $ac_includes_default
10827 #include <$ac_header>
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833   *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836   (eval "$ac_compile") 2>conftest.er1
10837   ac_status=$?
10838   grep -v '^ *+' conftest.er1 >conftest.err
10839   rm -f conftest.er1
10840   cat conftest.err >&5
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); } &&
10843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10844   { (case "(($ac_try" in
10845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846   *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849   (eval "$ac_try") 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); }; } &&
10853          { ac_try='test -s conftest.$ac_objext'
10854   { (case "(($ac_try" in
10855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856   *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859   (eval "$ac_try") 2>&5
10860   ac_status=$?
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); }; }; then
10863   ac_header_compiler=yes
10864 else
10865   echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10867
10868         ac_header_compiler=no
10869 fi
10870
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10873 echo "${ECHO_T}$ac_header_compiler" >&6; }
10874
10875 # Is the header present?
10876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10884 #include <$ac_header>
10885 _ACEOF
10886 if { (ac_try="$ac_cpp conftest.$ac_ext"
10887 case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10893   ac_status=$?
10894   grep -v '^ *+' conftest.er1 >conftest.err
10895   rm -f conftest.er1
10896   cat conftest.err >&5
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); } >/dev/null; then
10899   if test -s conftest.err; then
10900     ac_cpp_err=$ac_c_preproc_warn_flag
10901     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10902   else
10903     ac_cpp_err=
10904   fi
10905 else
10906   ac_cpp_err=yes
10907 fi
10908 if test -z "$ac_cpp_err"; then
10909   ac_header_preproc=yes
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914   ac_header_preproc=no
10915 fi
10916
10917 rm -f conftest.err conftest.$ac_ext
10918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10919 echo "${ECHO_T}$ac_header_preproc" >&6; }
10920
10921 # So?  What about this header?
10922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10923   yes:no: )
10924     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10928     ac_header_preproc=yes
10929     ;;
10930   no:yes:* )
10931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10933     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10934 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10935     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10937     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10938 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10941     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10943     ( cat <<\_ASBOX
10944 ## ------------------------------------ ##
10945 ## Report this to http://llvm.org/bugs/ ##
10946 ## ------------------------------------ ##
10947 _ASBOX
10948      ) | sed "s/^/$as_me: WARNING:     /" >&2
10949     ;;
10950 esac
10951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954   echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956   eval "$as_ac_Header=\$ac_header_preproc"
10957 fi
10958 ac_res=`eval echo '${'$as_ac_Header'}'`
10959                { echo "$as_me:$LINENO: result: $ac_res" >&5
10960 echo "${ECHO_T}$ac_res" >&6; }
10961
10962 fi
10963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10964   cat >>confdefs.h <<_ACEOF
10965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10966 _ACEOF
10967
10968 fi
10969
10970 done
10971
10972
10973
10974
10975
10976 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10977 do
10978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983   echo $ECHO_N "(cached) $ECHO_C" >&6
10984 fi
10985 ac_res=`eval echo '${'$as_ac_Header'}'`
10986                { echo "$as_me:$LINENO: result: $ac_res" >&5
10987 echo "${ECHO_T}$ac_res" >&6; }
10988 else
10989   # Is the header compilable?
10990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h.  */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h.  */
10998 $ac_includes_default
10999 #include <$ac_header>
11000 _ACEOF
11001 rm -f conftest.$ac_objext
11002 if { (ac_try="$ac_compile"
11003 case "(($ac_try" in
11004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005   *) ac_try_echo=$ac_try;;
11006 esac
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008   (eval "$ac_compile") 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; } &&
11025          { ac_try='test -s conftest.$ac_objext'
11026   { (case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031   (eval "$ac_try") 2>&5
11032   ac_status=$?
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); }; }; then
11035   ac_header_compiler=yes
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040         ac_header_compiler=no
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11045 echo "${ECHO_T}$ac_header_compiler" >&6; }
11046
11047 # Is the header present?
11048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11050 cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056 #include <$ac_header>
11057 _ACEOF
11058 if { (ac_try="$ac_cpp conftest.$ac_ext"
11059 case "(($ac_try" in
11060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061   *) ac_try_echo=$ac_try;;
11062 esac
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11065   ac_status=$?
11066   grep -v '^ *+' conftest.er1 >conftest.err
11067   rm -f conftest.er1
11068   cat conftest.err >&5
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); } >/dev/null; then
11071   if test -s conftest.err; then
11072     ac_cpp_err=$ac_c_preproc_warn_flag
11073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11074   else
11075     ac_cpp_err=
11076   fi
11077 else
11078   ac_cpp_err=yes
11079 fi
11080 if test -z "$ac_cpp_err"; then
11081   ac_header_preproc=yes
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086   ac_header_preproc=no
11087 fi
11088
11089 rm -f conftest.err conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091 echo "${ECHO_T}$ac_header_preproc" >&6; }
11092
11093 # So?  What about this header?
11094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11095   yes:no: )
11096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11100     ac_header_preproc=yes
11101     ;;
11102   no:yes:* )
11103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11115     ( cat <<\_ASBOX
11116 ## ------------------------------------ ##
11117 ## Report this to http://llvm.org/bugs/ ##
11118 ## ------------------------------------ ##
11119 _ASBOX
11120      ) | sed "s/^/$as_me: WARNING:     /" >&2
11121     ;;
11122 esac
11123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   eval "$as_ac_Header=\$ac_header_preproc"
11129 fi
11130 ac_res=`eval echo '${'$as_ac_Header'}'`
11131                { echo "$as_me:$LINENO: result: $ac_res" >&5
11132 echo "${ECHO_T}$ac_res" >&6; }
11133
11134 fi
11135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11136   cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11138 _ACEOF
11139
11140 fi
11141
11142 done
11143
11144
11145
11146 for ac_header in string.h strings.h
11147 do
11148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 fi
11155 ac_res=`eval echo '${'$as_ac_Header'}'`
11156                { echo "$as_me:$LINENO: result: $ac_res" >&5
11157 echo "${ECHO_T}$ac_res" >&6; }
11158 else
11159   # Is the header compilable?
11160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h.  */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h.  */
11168 $ac_includes_default
11169 #include <$ac_header>
11170 _ACEOF
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_compile") 2>conftest.er1
11179   ac_status=$?
11180   grep -v '^ *+' conftest.er1 >conftest.err
11181   rm -f conftest.er1
11182   cat conftest.err >&5
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); } &&
11185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11186   { (case "(($ac_try" in
11187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188   *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191   (eval "$ac_try") 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; } &&
11195          { ac_try='test -s conftest.$ac_objext'
11196   { (case "(($ac_try" in
11197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198   *) ac_try_echo=$ac_try;;
11199 esac
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201   (eval "$ac_try") 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); }; }; then
11205   ac_header_compiler=yes
11206 else
11207   echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11209
11210         ac_header_compiler=no
11211 fi
11212
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11215 echo "${ECHO_T}$ac_header_compiler" >&6; }
11216
11217 # Is the header present?
11218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11220 cat >conftest.$ac_ext <<_ACEOF
11221 /* confdefs.h.  */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h.  */
11226 #include <$ac_header>
11227 _ACEOF
11228 if { (ac_try="$ac_cpp conftest.$ac_ext"
11229 case "(($ac_try" in
11230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231   *) ac_try_echo=$ac_try;;
11232 esac
11233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11235   ac_status=$?
11236   grep -v '^ *+' conftest.er1 >conftest.err
11237   rm -f conftest.er1
11238   cat conftest.err >&5
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); } >/dev/null; then
11241   if test -s conftest.err; then
11242     ac_cpp_err=$ac_c_preproc_warn_flag
11243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11244   else
11245     ac_cpp_err=
11246   fi
11247 else
11248   ac_cpp_err=yes
11249 fi
11250 if test -z "$ac_cpp_err"; then
11251   ac_header_preproc=yes
11252 else
11253   echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256   ac_header_preproc=no
11257 fi
11258
11259 rm -f conftest.err conftest.$ac_ext
11260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11261 echo "${ECHO_T}$ac_header_preproc" >&6; }
11262
11263 # So?  What about this header?
11264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11265   yes:no: )
11266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11270     ac_header_preproc=yes
11271     ;;
11272   no:yes:* )
11273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11285     ( cat <<\_ASBOX
11286 ## ------------------------------------ ##
11287 ## Report this to http://llvm.org/bugs/ ##
11288 ## ------------------------------------ ##
11289 _ASBOX
11290      ) | sed "s/^/$as_me: WARNING:     /" >&2
11291     ;;
11292 esac
11293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296   echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298   eval "$as_ac_Header=\$ac_header_preproc"
11299 fi
11300 ac_res=`eval echo '${'$as_ac_Header'}'`
11301                { echo "$as_me:$LINENO: result: $ac_res" >&5
11302 echo "${ECHO_T}$ac_res" >&6; }
11303
11304 fi
11305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11306   cat >>confdefs.h <<_ACEOF
11307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11308 _ACEOF
11309  break
11310 fi
11311
11312 done
11313
11314
11315
11316
11317 for ac_func in strchr index
11318 do
11319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11323   echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325   cat >conftest.$ac_ext <<_ACEOF
11326 /* confdefs.h.  */
11327 _ACEOF
11328 cat confdefs.h >>conftest.$ac_ext
11329 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h.  */
11331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11333 #define $ac_func innocuous_$ac_func
11334
11335 /* System header to define __stub macros and hopefully few prototypes,
11336     which can conflict with char $ac_func (); below.
11337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11338     <limits.h> exists even on freestanding compilers.  */
11339
11340 #ifdef __STDC__
11341 # include <limits.h>
11342 #else
11343 # include <assert.h>
11344 #endif
11345
11346 #undef $ac_func
11347
11348 /* Override any GCC internal prototype to avoid an error.
11349    Use char because int might match the return type of a GCC
11350    builtin and then its argument prototype would still apply.  */
11351 #ifdef __cplusplus
11352 extern "C"
11353 #endif
11354 char $ac_func ();
11355 /* The GNU C library defines this for functions which it implements
11356     to always fail with ENOSYS.  Some functions are actually named
11357     something starting with __ and the normal name is an alias.  */
11358 #if defined __stub_$ac_func || defined __stub___$ac_func
11359 choke me
11360 #endif
11361
11362 int
11363 main ()
11364 {
11365 return $ac_func ();
11366   ;
11367   return 0;
11368 }
11369 _ACEOF
11370 rm -f conftest.$ac_objext conftest$ac_exeext
11371 if { (ac_try="$ac_link"
11372 case "(($ac_try" in
11373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374   *) ac_try_echo=$ac_try;;
11375 esac
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377   (eval "$ac_link") 2>conftest.er1
11378   ac_status=$?
11379   grep -v '^ *+' conftest.er1 >conftest.err
11380   rm -f conftest.er1
11381   cat conftest.err >&5
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); } &&
11384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11385   { (case "(($ac_try" in
11386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387   *) ac_try_echo=$ac_try;;
11388 esac
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390   (eval "$ac_try") 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; } &&
11394          { ac_try='test -s conftest$ac_exeext'
11395   { (case "(($ac_try" in
11396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397   *) ac_try_echo=$ac_try;;
11398 esac
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400   (eval "$ac_try") 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); }; }; then
11404   eval "$as_ac_var=yes"
11405 else
11406   echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409         eval "$as_ac_var=no"
11410 fi
11411
11412 rm -f core conftest.err conftest.$ac_objext \
11413       conftest$ac_exeext conftest.$ac_ext
11414 fi
11415 ac_res=`eval echo '${'$as_ac_var'}'`
11416                { echo "$as_me:$LINENO: result: $ac_res" >&5
11417 echo "${ECHO_T}$ac_res" >&6; }
11418 if test `eval echo '${'$as_ac_var'}'` = yes; then
11419   cat >>confdefs.h <<_ACEOF
11420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11421 _ACEOF
11422  break
11423 fi
11424 done
11425
11426
11427
11428 for ac_func in strrchr rindex
11429 do
11430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11434   echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436   cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h.  */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h.  */
11442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11444 #define $ac_func innocuous_$ac_func
11445
11446 /* System header to define __stub macros and hopefully few prototypes,
11447     which can conflict with char $ac_func (); below.
11448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11449     <limits.h> exists even on freestanding compilers.  */
11450
11451 #ifdef __STDC__
11452 # include <limits.h>
11453 #else
11454 # include <assert.h>
11455 #endif
11456
11457 #undef $ac_func
11458
11459 /* Override any GCC internal prototype to avoid an error.
11460    Use char because int might match the return type of a GCC
11461    builtin and then its argument prototype would still apply.  */
11462 #ifdef __cplusplus
11463 extern "C"
11464 #endif
11465 char $ac_func ();
11466 /* The GNU C library defines this for functions which it implements
11467     to always fail with ENOSYS.  Some functions are actually named
11468     something starting with __ and the normal name is an alias.  */
11469 #if defined __stub_$ac_func || defined __stub___$ac_func
11470 choke me
11471 #endif
11472
11473 int
11474 main ()
11475 {
11476 return $ac_func ();
11477   ;
11478   return 0;
11479 }
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (ac_try="$ac_link"
11483 case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488   (eval "$ac_link") 2>conftest.er1
11489   ac_status=$?
11490   grep -v '^ *+' conftest.er1 >conftest.err
11491   rm -f conftest.er1
11492   cat conftest.err >&5
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); } &&
11495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11496   { (case "(($ac_try" in
11497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498   *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501   (eval "$ac_try") 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); }; } &&
11505          { ac_try='test -s conftest$ac_exeext'
11506   { (case "(($ac_try" in
11507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508   *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511   (eval "$ac_try") 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; }; then
11515   eval "$as_ac_var=yes"
11516 else
11517   echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11519
11520         eval "$as_ac_var=no"
11521 fi
11522
11523 rm -f core conftest.err conftest.$ac_objext \
11524       conftest$ac_exeext conftest.$ac_ext
11525 fi
11526 ac_res=`eval echo '${'$as_ac_var'}'`
11527                { echo "$as_me:$LINENO: result: $ac_res" >&5
11528 echo "${ECHO_T}$ac_res" >&6; }
11529 if test `eval echo '${'$as_ac_var'}'` = yes; then
11530   cat >>confdefs.h <<_ACEOF
11531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11532 _ACEOF
11533  break
11534 fi
11535 done
11536
11537
11538
11539 for ac_func in memcpy bcopy
11540 do
11541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11545   echo $ECHO_N "(cached) $ECHO_C" >&6
11546 else
11547   cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h.  */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h.  */
11553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11555 #define $ac_func innocuous_$ac_func
11556
11557 /* System header to define __stub macros and hopefully few prototypes,
11558     which can conflict with char $ac_func (); below.
11559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560     <limits.h> exists even on freestanding compilers.  */
11561
11562 #ifdef __STDC__
11563 # include <limits.h>
11564 #else
11565 # include <assert.h>
11566 #endif
11567
11568 #undef $ac_func
11569
11570 /* Override any GCC internal prototype to avoid an error.
11571    Use char because int might match the return type of a GCC
11572    builtin and then its argument prototype would still apply.  */
11573 #ifdef __cplusplus
11574 extern "C"
11575 #endif
11576 char $ac_func ();
11577 /* The GNU C library defines this for functions which it implements
11578     to always fail with ENOSYS.  Some functions are actually named
11579     something starting with __ and the normal name is an alias.  */
11580 #if defined __stub_$ac_func || defined __stub___$ac_func
11581 choke me
11582 #endif
11583
11584 int
11585 main ()
11586 {
11587 return $ac_func ();
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (ac_try="$ac_link"
11594 case "(($ac_try" in
11595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596   *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599   (eval "$ac_link") 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } &&
11606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11607   { (case "(($ac_try" in
11608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609   *) ac_try_echo=$ac_try;;
11610 esac
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612   (eval "$ac_try") 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; } &&
11616          { ac_try='test -s conftest$ac_exeext'
11617   { (case "(($ac_try" in
11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619   *) ac_try_echo=$ac_try;;
11620 esac
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622   (eval "$ac_try") 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; }; then
11626   eval "$as_ac_var=yes"
11627 else
11628   echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631         eval "$as_ac_var=no"
11632 fi
11633
11634 rm -f core conftest.err conftest.$ac_objext \
11635       conftest$ac_exeext conftest.$ac_ext
11636 fi
11637 ac_res=`eval echo '${'$as_ac_var'}'`
11638                { echo "$as_me:$LINENO: result: $ac_res" >&5
11639 echo "${ECHO_T}$ac_res" >&6; }
11640 if test `eval echo '${'$as_ac_var'}'` = yes; then
11641   cat >>confdefs.h <<_ACEOF
11642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11643 _ACEOF
11644  break
11645 fi
11646 done
11647
11648
11649
11650 for ac_func in memmove strcmp
11651 do
11652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658   cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h.  */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h.  */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11666 #define $ac_func innocuous_$ac_func
11667
11668 /* System header to define __stub macros and hopefully few prototypes,
11669     which can conflict with char $ac_func (); below.
11670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671     <limits.h> exists even on freestanding compilers.  */
11672
11673 #ifdef __STDC__
11674 # include <limits.h>
11675 #else
11676 # include <assert.h>
11677 #endif
11678
11679 #undef $ac_func
11680
11681 /* Override any GCC internal prototype to avoid an error.
11682    Use char because int might match the return type of a GCC
11683    builtin and then its argument prototype would still apply.  */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 char $ac_func ();
11688 /* The GNU C library defines this for functions which it implements
11689     to always fail with ENOSYS.  Some functions are actually named
11690     something starting with __ and the normal name is an alias.  */
11691 #if defined __stub_$ac_func || defined __stub___$ac_func
11692 choke me
11693 #endif
11694
11695 int
11696 main ()
11697 {
11698 return $ac_func ();
11699   ;
11700   return 0;
11701 }
11702 _ACEOF
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710   (eval "$ac_link") 2>conftest.er1
11711   ac_status=$?
11712   grep -v '^ *+' conftest.er1 >conftest.err
11713   rm -f conftest.er1
11714   cat conftest.err >&5
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); } &&
11717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11718   { (case "(($ac_try" in
11719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720   *) ac_try_echo=$ac_try;;
11721 esac
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723   (eval "$ac_try") 2>&5
11724   ac_status=$?
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); }; } &&
11727          { ac_try='test -s conftest$ac_exeext'
11728   { (case "(($ac_try" in
11729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730   *) ac_try_echo=$ac_try;;
11731 esac
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733   (eval "$ac_try") 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); }; }; then
11737   eval "$as_ac_var=yes"
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742         eval "$as_ac_var=no"
11743 fi
11744
11745 rm -f core conftest.err conftest.$ac_objext \
11746       conftest$ac_exeext conftest.$ac_ext
11747 fi
11748 ac_res=`eval echo '${'$as_ac_var'}'`
11749                { echo "$as_me:$LINENO: result: $ac_res" >&5
11750 echo "${ECHO_T}$ac_res" >&6; }
11751 if test `eval echo '${'$as_ac_var'}'` = yes; then
11752   cat >>confdefs.h <<_ACEOF
11753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11754 _ACEOF
11755
11756 fi
11757 done
11758
11759
11760
11761
11762 for ac_func in closedir opendir readdir
11763 do
11764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11768   echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770   cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h.  */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h.  */
11776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11778 #define $ac_func innocuous_$ac_func
11779
11780 /* System header to define __stub macros and hopefully few prototypes,
11781     which can conflict with char $ac_func (); below.
11782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783     <limits.h> exists even on freestanding compilers.  */
11784
11785 #ifdef __STDC__
11786 # include <limits.h>
11787 #else
11788 # include <assert.h>
11789 #endif
11790
11791 #undef $ac_func
11792
11793 /* Override any GCC internal prototype to avoid an error.
11794    Use char because int might match the return type of a GCC
11795    builtin and then its argument prototype would still apply.  */
11796 #ifdef __cplusplus
11797 extern "C"
11798 #endif
11799 char $ac_func ();
11800 /* The GNU C library defines this for functions which it implements
11801     to always fail with ENOSYS.  Some functions are actually named
11802     something starting with __ and the normal name is an alias.  */
11803 #if defined __stub_$ac_func || defined __stub___$ac_func
11804 choke me
11805 #endif
11806
11807 int
11808 main ()
11809 {
11810 return $ac_func ();
11811   ;
11812   return 0;
11813 }
11814 _ACEOF
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (ac_try="$ac_link"
11817 case "(($ac_try" in
11818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819   *) ac_try_echo=$ac_try;;
11820 esac
11821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822   (eval "$ac_link") 2>conftest.er1
11823   ac_status=$?
11824   grep -v '^ *+' conftest.er1 >conftest.err
11825   rm -f conftest.er1
11826   cat conftest.err >&5
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); } &&
11829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830   { (case "(($ac_try" in
11831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832   *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835   (eval "$ac_try") 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); }; } &&
11839          { ac_try='test -s conftest$ac_exeext'
11840   { (case "(($ac_try" in
11841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842   *) ac_try_echo=$ac_try;;
11843 esac
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845   (eval "$ac_try") 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; }; then
11849   eval "$as_ac_var=yes"
11850 else
11851   echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11853
11854         eval "$as_ac_var=no"
11855 fi
11856
11857 rm -f core conftest.err conftest.$ac_objext \
11858       conftest$ac_exeext conftest.$ac_ext
11859 fi
11860 ac_res=`eval echo '${'$as_ac_var'}'`
11861                { echo "$as_me:$LINENO: result: $ac_res" >&5
11862 echo "${ECHO_T}$ac_res" >&6; }
11863 if test `eval echo '${'$as_ac_var'}'` = yes; then
11864   cat >>confdefs.h <<_ACEOF
11865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11866 _ACEOF
11867
11868 fi
11869 done
11870
11871
11872
11873 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11874 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11875
11876 ICC=no
11877 IXX=no
11878 case $CC in
11879   icc*|icpc*)
11880     ICC=yes
11881     IXX=yes
11882     ;;
11883    *)
11884     ;;
11885 esac
11886
11887 if test "$GCC" != "yes" && test "$ICC" != "yes"
11888 then
11889   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11890 echo "$as_me: error: gcc|icc required but not found" >&2;}
11891    { (exit 1); exit 1; }; }
11892 fi
11893
11894 if test "$GXX" != "yes" && test "$IXX" != "yes"
11895 then
11896   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11897 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11898    { (exit 1); exit 1; }; }
11899 fi
11900
11901 if test "$GCC" = "yes"
11902 then
11903   cat >conftest.$ac_ext <<_ACEOF
11904 #if !defined(__GNUC__) || __GNUC__ < 3
11905 #error Unsupported GCC version
11906 #endif
11907
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (ac_try="$ac_compile"
11911 case "(($ac_try" in
11912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913   *) ac_try_echo=$ac_try;;
11914 esac
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916   (eval "$ac_compile") 2>conftest.er1
11917   ac_status=$?
11918   grep -v '^ *+' conftest.er1 >conftest.err
11919   rm -f conftest.er1
11920   cat conftest.err >&5
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); } &&
11923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11924   { (case "(($ac_try" in
11925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926   *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929   (eval "$ac_try") 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; } &&
11933          { ac_try='test -s conftest.$ac_objext'
11934   { (case "(($ac_try" in
11935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936   *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939   (eval "$ac_try") 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }; }; then
11943   :
11944 else
11945   echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11947
11948         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11949 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11950    { (exit 1); exit 1; }; }
11951 fi
11952
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 fi
11955
11956 if test -z "$llvm_cv_gnu_make_command"
11957 then
11958   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11959 echo "$as_me: error: GNU Make required but not found" >&2;}
11960    { (exit 1); exit 1; }; }
11961 fi
11962
11963 { echo "$as_me:$LINENO: result: ok" >&5
11964 echo "${ECHO_T}ok" >&6; }
11965
11966 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11967 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11968 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11969
11970 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11971
11972 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11973
11974 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11975 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
11976
11977
11978
11979 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11980 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11981 if test "${ac_cv_lib_m_sin+set}" = set; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984   ac_check_lib_save_LIBS=$LIBS
11985 LIBS="-lm  $LIBS"
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h.  */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h.  */
11992
11993 /* Override any GCC internal prototype to avoid an error.
11994    Use char because int might match the return type of a GCC
11995    builtin and then its argument prototype would still apply.  */
11996 #ifdef __cplusplus
11997 extern "C"
11998 #endif
11999 char sin ();
12000 int
12001 main ()
12002 {
12003 return sin ();
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012   *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015   (eval "$ac_link") 2>conftest.er1
12016   ac_status=$?
12017   grep -v '^ *+' conftest.er1 >conftest.err
12018   rm -f conftest.er1
12019   cat conftest.err >&5
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); } &&
12022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023   { (case "(($ac_try" in
12024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025   *) ac_try_echo=$ac_try;;
12026 esac
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028   (eval "$ac_try") 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); }; } &&
12032          { ac_try='test -s conftest$ac_exeext'
12033   { (case "(($ac_try" in
12034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035   *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038   (eval "$ac_try") 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   ac_cv_lib_m_sin=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047         ac_cv_lib_m_sin=no
12048 fi
12049
12050 rm -f core conftest.err conftest.$ac_objext \
12051       conftest$ac_exeext conftest.$ac_ext
12052 LIBS=$ac_check_lib_save_LIBS
12053 fi
12054 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12055 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12056 if test $ac_cv_lib_m_sin = yes; then
12057   cat >>confdefs.h <<_ACEOF
12058 #define HAVE_LIBM 1
12059 _ACEOF
12060
12061   LIBS="-lm $LIBS"
12062
12063 fi
12064
12065 if test "$llvm_cv_os_type" = "MingW" ; then
12066
12067 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12068 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12069 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12070   echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072   ac_check_lib_save_LIBS=$LIBS
12073 LIBS="-limagehlp  $LIBS"
12074 cat >conftest.$ac_ext <<_ACEOF
12075 /* confdefs.h.  */
12076 _ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h.  */
12080
12081
12082 int
12083 main ()
12084 {
12085 return main ();
12086   ;
12087   return 0;
12088 }
12089 _ACEOF
12090 rm -f conftest.$ac_objext conftest$ac_exeext
12091 if { (ac_try="$ac_link"
12092 case "(($ac_try" in
12093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094   *) ac_try_echo=$ac_try;;
12095 esac
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097   (eval "$ac_link") 2>conftest.er1
12098   ac_status=$?
12099   grep -v '^ *+' conftest.er1 >conftest.err
12100   rm -f conftest.er1
12101   cat conftest.err >&5
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); } &&
12104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12105   { (case "(($ac_try" in
12106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107   *) ac_try_echo=$ac_try;;
12108 esac
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110   (eval "$ac_try") 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); }; } &&
12114          { ac_try='test -s conftest$ac_exeext'
12115   { (case "(($ac_try" in
12116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117   *) ac_try_echo=$ac_try;;
12118 esac
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120   (eval "$ac_try") 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124   ac_cv_lib_imagehlp_main=yes
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129         ac_cv_lib_imagehlp_main=no
12130 fi
12131
12132 rm -f core conftest.err conftest.$ac_objext \
12133       conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12135 fi
12136 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12137 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12138 if test $ac_cv_lib_imagehlp_main = yes; then
12139   cat >>confdefs.h <<_ACEOF
12140 #define HAVE_LIBIMAGEHLP 1
12141 _ACEOF
12142
12143   LIBS="-limagehlp $LIBS"
12144
12145 fi
12146
12147
12148 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12149 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12150 if test "${ac_cv_lib_psapi_main+set}" = set; then
12151   echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153   ac_check_lib_save_LIBS=$LIBS
12154 LIBS="-lpsapi  $LIBS"
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161
12162
12163 int
12164 main ()
12165 {
12166 return main ();
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 rm -f conftest.$ac_objext conftest$ac_exeext
12172 if { (ac_try="$ac_link"
12173 case "(($ac_try" in
12174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175   *) ac_try_echo=$ac_try;;
12176 esac
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178   (eval "$ac_link") 2>conftest.er1
12179   ac_status=$?
12180   grep -v '^ *+' conftest.er1 >conftest.err
12181   rm -f conftest.er1
12182   cat conftest.err >&5
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } &&
12185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12186   { (case "(($ac_try" in
12187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188   *) ac_try_echo=$ac_try;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191   (eval "$ac_try") 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; } &&
12195          { ac_try='test -s conftest$ac_exeext'
12196   { (case "(($ac_try" in
12197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198   *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201   (eval "$ac_try") 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; }; then
12205   ac_cv_lib_psapi_main=yes
12206 else
12207   echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210         ac_cv_lib_psapi_main=no
12211 fi
12212
12213 rm -f core conftest.err conftest.$ac_objext \
12214       conftest$ac_exeext conftest.$ac_ext
12215 LIBS=$ac_check_lib_save_LIBS
12216 fi
12217 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12218 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12219 if test $ac_cv_lib_psapi_main = yes; then
12220   cat >>confdefs.h <<_ACEOF
12221 #define HAVE_LIBPSAPI 1
12222 _ACEOF
12223
12224   LIBS="-lpsapi $LIBS"
12225
12226 fi
12227
12228 fi
12229
12230 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12231 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12232 if test "${ac_cv_search_dlopen+set}" = set; then
12233   echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235   ac_func_search_save_LIBS=$LIBS
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h.  */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h.  */
12242
12243 /* Override any GCC internal prototype to avoid an error.
12244    Use char because int might match the return type of a GCC
12245    builtin and then its argument prototype would still apply.  */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char dlopen ();
12250 int
12251 main ()
12252 {
12253 return dlopen ();
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 for ac_lib in '' dl; do
12259   if test -z "$ac_lib"; then
12260     ac_res="none required"
12261   else
12262     ac_res=-l$ac_lib
12263     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12264   fi
12265   rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269   *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272   (eval "$ac_link") 2>conftest.er1
12273   ac_status=$?
12274   grep -v '^ *+' conftest.er1 >conftest.err
12275   rm -f conftest.er1
12276   cat conftest.err >&5
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } &&
12279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280   { (case "(($ac_try" in
12281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282   *) ac_try_echo=$ac_try;;
12283 esac
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285   (eval "$ac_try") 2>&5
12286   ac_status=$?
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); }; } &&
12289          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12299   ac_cv_search_dlopen=$ac_res
12300 else
12301   echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304
12305 fi
12306
12307 rm -f core conftest.err conftest.$ac_objext \
12308       conftest$ac_exeext
12309   if test "${ac_cv_search_dlopen+set}" = set; then
12310   break
12311 fi
12312 done
12313 if test "${ac_cv_search_dlopen+set}" = set; then
12314   :
12315 else
12316   ac_cv_search_dlopen=no
12317 fi
12318 rm conftest.$ac_ext
12319 LIBS=$ac_func_search_save_LIBS
12320 fi
12321 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12322 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12323 ac_res=$ac_cv_search_dlopen
12324 if test "$ac_res" != no; then
12325   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12326
12327 cat >>confdefs.h <<\_ACEOF
12328 #define HAVE_DLOPEN 1
12329 _ACEOF
12330
12331 else
12332   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12333 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12334 fi
12335
12336
12337 if test "$llvm_cv_enable_libffi" = "yes" ; then
12338   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12339 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12340 if test "${ac_cv_search_ffi_call+set}" = set; then
12341   echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343   ac_func_search_save_LIBS=$LIBS
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h.  */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h.  */
12350
12351 /* Override any GCC internal prototype to avoid an error.
12352    Use char because int might match the return type of a GCC
12353    builtin and then its argument prototype would still apply.  */
12354 #ifdef __cplusplus
12355 extern "C"
12356 #endif
12357 char ffi_call ();
12358 int
12359 main ()
12360 {
12361 return ffi_call ();
12362   ;
12363   return 0;
12364 }
12365 _ACEOF
12366 for ac_lib in '' ffi; do
12367   if test -z "$ac_lib"; then
12368     ac_res="none required"
12369   else
12370     ac_res=-l$ac_lib
12371     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12372   fi
12373   rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (ac_try="$ac_link"
12375 case "(($ac_try" in
12376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377   *) ac_try_echo=$ac_try;;
12378 esac
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380   (eval "$ac_link") 2>conftest.er1
12381   ac_status=$?
12382   grep -v '^ *+' conftest.er1 >conftest.err
12383   rm -f conftest.er1
12384   cat conftest.err >&5
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); } &&
12387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12388   { (case "(($ac_try" in
12389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390   *) ac_try_echo=$ac_try;;
12391 esac
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393   (eval "$ac_try") 2>&5
12394   ac_status=$?
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); }; } &&
12397          { ac_try='test -s conftest$ac_exeext'
12398   { (case "(($ac_try" in
12399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400   *) ac_try_echo=$ac_try;;
12401 esac
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403   (eval "$ac_try") 2>&5
12404   ac_status=$?
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); }; }; then
12407   ac_cv_search_ffi_call=$ac_res
12408 else
12409   echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412
12413 fi
12414
12415 rm -f core conftest.err conftest.$ac_objext \
12416       conftest$ac_exeext
12417   if test "${ac_cv_search_ffi_call+set}" = set; then
12418   break
12419 fi
12420 done
12421 if test "${ac_cv_search_ffi_call+set}" = set; then
12422   :
12423 else
12424   ac_cv_search_ffi_call=no
12425 fi
12426 rm conftest.$ac_ext
12427 LIBS=$ac_func_search_save_LIBS
12428 fi
12429 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12430 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12431 ac_res=$ac_cv_search_ffi_call
12432 if test "$ac_res" != no; then
12433   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12434
12435 cat >>confdefs.h <<\_ACEOF
12436 #define HAVE_FFI_CALL 1
12437 _ACEOF
12438
12439 else
12440   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12441 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12442    { (exit 1); exit 1; }; }
12443 fi
12444
12445 fi
12446
12447 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12448 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12449 if test "${ac_cv_search_mallinfo+set}" = set; then
12450   echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452   ac_func_search_save_LIBS=$LIBS
12453 cat >conftest.$ac_ext <<_ACEOF
12454 /* confdefs.h.  */
12455 _ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h.  */
12459
12460 /* Override any GCC internal prototype to avoid an error.
12461    Use char because int might match the return type of a GCC
12462    builtin and then its argument prototype would still apply.  */
12463 #ifdef __cplusplus
12464 extern "C"
12465 #endif
12466 char mallinfo ();
12467 int
12468 main ()
12469 {
12470 return mallinfo ();
12471   ;
12472   return 0;
12473 }
12474 _ACEOF
12475 for ac_lib in '' malloc; do
12476   if test -z "$ac_lib"; then
12477     ac_res="none required"
12478   else
12479     ac_res=-l$ac_lib
12480     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12481   fi
12482   rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (ac_try="$ac_link"
12484 case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489   (eval "$ac_link") 2>conftest.er1
12490   ac_status=$?
12491   grep -v '^ *+' conftest.er1 >conftest.err
12492   rm -f conftest.er1
12493   cat conftest.err >&5
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); } &&
12496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12497   { (case "(($ac_try" in
12498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499   *) ac_try_echo=$ac_try;;
12500 esac
12501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12502   (eval "$ac_try") 2>&5
12503   ac_status=$?
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); }; } &&
12506          { ac_try='test -s conftest$ac_exeext'
12507   { (case "(($ac_try" in
12508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509   *) ac_try_echo=$ac_try;;
12510 esac
12511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512   (eval "$ac_try") 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); }; }; then
12516   ac_cv_search_mallinfo=$ac_res
12517 else
12518   echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12520
12521
12522 fi
12523
12524 rm -f core conftest.err conftest.$ac_objext \
12525       conftest$ac_exeext
12526   if test "${ac_cv_search_mallinfo+set}" = set; then
12527   break
12528 fi
12529 done
12530 if test "${ac_cv_search_mallinfo+set}" = set; then
12531   :
12532 else
12533   ac_cv_search_mallinfo=no
12534 fi
12535 rm conftest.$ac_ext
12536 LIBS=$ac_func_search_save_LIBS
12537 fi
12538 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12539 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12540 ac_res=$ac_cv_search_mallinfo
12541 if test "$ac_res" != no; then
12542   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12543
12544 cat >>confdefs.h <<\_ACEOF
12545 #define HAVE_MALLINFO 1
12546 _ACEOF
12547
12548 fi
12549
12550
12551 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12552
12553 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12554 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12555 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12556   echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558   ac_check_lib_save_LIBS=$LIBS
12559 LIBS="-lpthread  $LIBS"
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h.  */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h.  */
12566
12567 /* Override any GCC internal prototype to avoid an error.
12568    Use char because int might match the return type of a GCC
12569    builtin and then its argument prototype would still apply.  */
12570 #ifdef __cplusplus
12571 extern "C"
12572 #endif
12573 char pthread_mutex_init ();
12574 int
12575 main ()
12576 {
12577 return pthread_mutex_init ();
12578   ;
12579   return 0;
12580 }
12581 _ACEOF
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (ac_try="$ac_link"
12584 case "(($ac_try" in
12585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586   *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589   (eval "$ac_link") 2>conftest.er1
12590   ac_status=$?
12591   grep -v '^ *+' conftest.er1 >conftest.err
12592   rm -f conftest.er1
12593   cat conftest.err >&5
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12597   { (case "(($ac_try" in
12598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599   *) ac_try_echo=$ac_try;;
12600 esac
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602   (eval "$ac_try") 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); }; } &&
12606          { ac_try='test -s conftest$ac_exeext'
12607   { (case "(($ac_try" in
12608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609   *) ac_try_echo=$ac_try;;
12610 esac
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612   (eval "$ac_try") 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); }; }; then
12616   ac_cv_lib_pthread_pthread_mutex_init=yes
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621         ac_cv_lib_pthread_pthread_mutex_init=no
12622 fi
12623
12624 rm -f core conftest.err conftest.$ac_objext \
12625       conftest$ac_exeext conftest.$ac_ext
12626 LIBS=$ac_check_lib_save_LIBS
12627 fi
12628 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12629 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12630 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12631   cat >>confdefs.h <<_ACEOF
12632 #define HAVE_LIBPTHREAD 1
12633 _ACEOF
12634
12635   LIBS="-lpthread $LIBS"
12636
12637 fi
12638
12639   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12640 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12641 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12642   echo $ECHO_N "(cached) $ECHO_C" >&6
12643 else
12644   ac_func_search_save_LIBS=$LIBS
12645 cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h.  */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h.  */
12651
12652 /* Override any GCC internal prototype to avoid an error.
12653    Use char because int might match the return type of a GCC
12654    builtin and then its argument prototype would still apply.  */
12655 #ifdef __cplusplus
12656 extern "C"
12657 #endif
12658 char pthread_mutex_lock ();
12659 int
12660 main ()
12661 {
12662 return pthread_mutex_lock ();
12663   ;
12664   return 0;
12665 }
12666 _ACEOF
12667 for ac_lib in '' pthread; do
12668   if test -z "$ac_lib"; then
12669     ac_res="none required"
12670   else
12671     ac_res=-l$ac_lib
12672     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12673   fi
12674   rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (ac_try="$ac_link"
12676 case "(($ac_try" in
12677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678   *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681   (eval "$ac_link") 2>conftest.er1
12682   ac_status=$?
12683   grep -v '^ *+' conftest.er1 >conftest.err
12684   rm -f conftest.er1
12685   cat conftest.err >&5
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); } &&
12688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12689   { (case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694   (eval "$ac_try") 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; } &&
12698          { ac_try='test -s conftest$ac_exeext'
12699   { (case "(($ac_try" in
12700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701   *) ac_try_echo=$ac_try;;
12702 esac
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704   (eval "$ac_try") 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; }; then
12708   ac_cv_search_pthread_mutex_lock=$ac_res
12709 else
12710   echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12712
12713
12714 fi
12715
12716 rm -f core conftest.err conftest.$ac_objext \
12717       conftest$ac_exeext
12718   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12719   break
12720 fi
12721 done
12722 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12723   :
12724 else
12725   ac_cv_search_pthread_mutex_lock=no
12726 fi
12727 rm conftest.$ac_ext
12728 LIBS=$ac_func_search_save_LIBS
12729 fi
12730 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12731 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12732 ac_res=$ac_cv_search_pthread_mutex_lock
12733 if test "$ac_res" != no; then
12734   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12735
12736 cat >>confdefs.h <<\_ACEOF
12737 #define HAVE_PTHREAD_MUTEX_LOCK 1
12738 _ACEOF
12739
12740 fi
12741
12742   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12743 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12744 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747   ac_func_search_save_LIBS=$LIBS
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754
12755 /* Override any GCC internal prototype to avoid an error.
12756    Use char because int might match the return type of a GCC
12757    builtin and then its argument prototype would still apply.  */
12758 #ifdef __cplusplus
12759 extern "C"
12760 #endif
12761 char pthread_rwlock_init ();
12762 int
12763 main ()
12764 {
12765 return pthread_rwlock_init ();
12766   ;
12767   return 0;
12768 }
12769 _ACEOF
12770 for ac_lib in '' pthread; do
12771   if test -z "$ac_lib"; then
12772     ac_res="none required"
12773   else
12774     ac_res=-l$ac_lib
12775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12776   fi
12777   rm -f conftest.$ac_objext conftest$ac_exeext
12778 if { (ac_try="$ac_link"
12779 case "(($ac_try" in
12780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781   *) ac_try_echo=$ac_try;;
12782 esac
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784   (eval "$ac_link") 2>conftest.er1
12785   ac_status=$?
12786   grep -v '^ *+' conftest.er1 >conftest.err
12787   rm -f conftest.er1
12788   cat conftest.err >&5
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); } &&
12791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12801          { ac_try='test -s conftest$ac_exeext'
12802   { (case "(($ac_try" in
12803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804   *) ac_try_echo=$ac_try;;
12805 esac
12806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807   (eval "$ac_try") 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; }; then
12811   ac_cv_search_pthread_rwlock_init=$ac_res
12812 else
12813   echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12815
12816
12817 fi
12818
12819 rm -f core conftest.err conftest.$ac_objext \
12820       conftest$ac_exeext
12821   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12822   break
12823 fi
12824 done
12825 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12826   :
12827 else
12828   ac_cv_search_pthread_rwlock_init=no
12829 fi
12830 rm conftest.$ac_ext
12831 LIBS=$ac_func_search_save_LIBS
12832 fi
12833 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12834 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12835 ac_res=$ac_cv_search_pthread_rwlock_init
12836 if test "$ac_res" != no; then
12837   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12838
12839 cat >>confdefs.h <<\_ACEOF
12840 #define HAVE_PTHREAD_RWLOCK_INIT 1
12841 _ACEOF
12842
12843 fi
12844
12845   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12846 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12847 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12848   echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850   ac_func_search_save_LIBS=$LIBS
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857
12858 /* Override any GCC internal prototype to avoid an error.
12859    Use char because int might match the return type of a GCC
12860    builtin and then its argument prototype would still apply.  */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 char pthread_getspecific ();
12865 int
12866 main ()
12867 {
12868 return pthread_getspecific ();
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 for ac_lib in '' pthread; do
12874   if test -z "$ac_lib"; then
12875     ac_res="none required"
12876   else
12877     ac_res=-l$ac_lib
12878     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12879   fi
12880   rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
12882 case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_link") 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } &&
12894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895   { (case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_try") 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest$ac_exeext'
12905   { (case "(($ac_try" in
12906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907   *) ac_try_echo=$ac_try;;
12908 esac
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910   (eval "$ac_try") 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   ac_cv_search_pthread_getspecific=$ac_res
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919
12920 fi
12921
12922 rm -f core conftest.err conftest.$ac_objext \
12923       conftest$ac_exeext
12924   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12925   break
12926 fi
12927 done
12928 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12929   :
12930 else
12931   ac_cv_search_pthread_getspecific=no
12932 fi
12933 rm conftest.$ac_ext
12934 LIBS=$ac_func_search_save_LIBS
12935 fi
12936 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12937 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12938 ac_res=$ac_cv_search_pthread_getspecific
12939 if test "$ac_res" != no; then
12940   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12941
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_PTHREAD_GETSPECIFIC 1
12944 _ACEOF
12945
12946 fi
12947
12948 fi
12949
12950
12951 # Check whether --with-udis86 was given.
12952 if test "${with_udis86+set}" = set; then
12953   withval=$with_udis86;
12954       USE_UDIS86=1
12955
12956       case "$withval" in
12957         /usr/lib|yes) ;;
12958         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12959       esac
12960
12961 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12962 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12963 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12964   echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966   ac_check_lib_save_LIBS=$LIBS
12967 LIBS="-ludis86  $LIBS"
12968 cat >conftest.$ac_ext <<_ACEOF
12969 /* confdefs.h.  */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h.  */
12974
12975 /* Override any GCC internal prototype to avoid an error.
12976    Use char because int might match the return type of a GCC
12977    builtin and then its argument prototype would still apply.  */
12978 #ifdef __cplusplus
12979 extern "C"
12980 #endif
12981 char ud_init ();
12982 int
12983 main ()
12984 {
12985 return ud_init ();
12986   ;
12987   return 0;
12988 }
12989 _ACEOF
12990 rm -f conftest.$ac_objext conftest$ac_exeext
12991 if { (ac_try="$ac_link"
12992 case "(($ac_try" in
12993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994   *) ac_try_echo=$ac_try;;
12995 esac
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997   (eval "$ac_link") 2>conftest.er1
12998   ac_status=$?
12999   grep -v '^ *+' conftest.er1 >conftest.err
13000   rm -f conftest.er1
13001   cat conftest.err >&5
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); } &&
13004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13005   { (case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010   (eval "$ac_try") 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; } &&
13014          { ac_try='test -s conftest$ac_exeext'
13015   { (case "(($ac_try" in
13016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017   *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020   (eval "$ac_try") 2>&5
13021   ac_status=$?
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); }; }; then
13024   ac_cv_lib_udis86_ud_init=yes
13025 else
13026   echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029         ac_cv_lib_udis86_ud_init=no
13030 fi
13031
13032 rm -f core conftest.err conftest.$ac_objext \
13033       conftest$ac_exeext conftest.$ac_ext
13034 LIBS=$ac_check_lib_save_LIBS
13035 fi
13036 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13037 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13038 if test $ac_cv_lib_udis86_ud_init = yes; then
13039   cat >>confdefs.h <<_ACEOF
13040 #define HAVE_LIBUDIS86 1
13041 _ACEOF
13042
13043   LIBS="-ludis86 $LIBS"
13044
13045 else
13046
13047         echo "Error! You need to have libudis86 around."
13048         exit -1
13049
13050 fi
13051
13052
13053 else
13054   USE_UDIS86=0
13055
13056 fi
13057
13058
13059 cat >>confdefs.h <<_ACEOF
13060 #define USE_UDIS86 $USE_UDIS86
13061 _ACEOF
13062
13063
13064
13065 # Check whether --with-oprofile was given.
13066 if test "${with_oprofile+set}" = set; then
13067   withval=$with_oprofile;
13068       USE_OPROFILE=1
13069
13070       case "$withval" in
13071         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13072         no) llvm_cv_oppath=
13073             USE_OPROFILE=0
13074  ;;
13075         *) llvm_cv_oppath="${withval}/lib/oprofile"
13076            CPPFLAGS="-I${withval}/include";;
13077       esac
13078       case $llvm_cv_os_type in
13079         Linux)
13080           if test -n "$llvm_cv_oppath" ; then
13081             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13082                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13083 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13084 if test "${ac_cv_search_bfd_init+set}" = set; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087   ac_func_search_save_LIBS=$LIBS
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h.  */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h.  */
13094
13095 /* Override any GCC internal prototype to avoid an error.
13096    Use char because int might match the return type of a GCC
13097    builtin and then its argument prototype would still apply.  */
13098 #ifdef __cplusplus
13099 extern "C"
13100 #endif
13101 char bfd_init ();
13102 int
13103 main ()
13104 {
13105 return bfd_init ();
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 for ac_lib in '' bfd; do
13111   if test -z "$ac_lib"; then
13112     ac_res="none required"
13113   else
13114     ac_res=-l$ac_lib
13115     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13116   fi
13117   rm -f conftest.$ac_objext conftest$ac_exeext
13118 if { (ac_try="$ac_link"
13119 case "(($ac_try" in
13120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121   *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124   (eval "$ac_link") 2>conftest.er1
13125   ac_status=$?
13126   grep -v '^ *+' conftest.er1 >conftest.err
13127   rm -f conftest.er1
13128   cat conftest.err >&5
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); } &&
13131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13132   { (case "(($ac_try" in
13133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134   *) ac_try_echo=$ac_try;;
13135 esac
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137   (eval "$ac_try") 2>&5
13138   ac_status=$?
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); }; } &&
13141          { ac_try='test -s conftest$ac_exeext'
13142   { (case "(($ac_try" in
13143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144   *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147   (eval "$ac_try") 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); }; }; then
13151   ac_cv_search_bfd_init=$ac_res
13152 else
13153   echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13155
13156
13157 fi
13158
13159 rm -f core conftest.err conftest.$ac_objext \
13160       conftest$ac_exeext
13161   if test "${ac_cv_search_bfd_init+set}" = set; then
13162   break
13163 fi
13164 done
13165 if test "${ac_cv_search_bfd_init+set}" = set; then
13166   :
13167 else
13168   ac_cv_search_bfd_init=no
13169 fi
13170 rm conftest.$ac_ext
13171 LIBS=$ac_func_search_save_LIBS
13172 fi
13173 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13174 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13175 ac_res=$ac_cv_search_bfd_init
13176 if test "$ac_res" != no; then
13177   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13178
13179 fi
13180
13181             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13182 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13183 if test "${ac_cv_search_op_open_agent+set}" = set; then
13184   echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186   ac_func_search_save_LIBS=$LIBS
13187 cat >conftest.$ac_ext <<_ACEOF
13188 /* confdefs.h.  */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h.  */
13193
13194 /* Override any GCC internal prototype to avoid an error.
13195    Use char because int might match the return type of a GCC
13196    builtin and then its argument prototype would still apply.  */
13197 #ifdef __cplusplus
13198 extern "C"
13199 #endif
13200 char op_open_agent ();
13201 int
13202 main ()
13203 {
13204 return op_open_agent ();
13205   ;
13206   return 0;
13207 }
13208 _ACEOF
13209 for ac_lib in '' opagent; do
13210   if test -z "$ac_lib"; then
13211     ac_res="none required"
13212   else
13213     ac_res=-l$ac_lib
13214     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13215   fi
13216   rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (ac_try="$ac_link"
13218 case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223   (eval "$ac_link") 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } &&
13230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13231   { (case "(($ac_try" in
13232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233   *) ac_try_echo=$ac_try;;
13234 esac
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236   (eval "$ac_try") 2>&5
13237   ac_status=$?
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); }; } &&
13240          { ac_try='test -s conftest$ac_exeext'
13241   { (case "(($ac_try" in
13242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243   *) ac_try_echo=$ac_try;;
13244 esac
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246   (eval "$ac_try") 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; }; then
13250   ac_cv_search_op_open_agent=$ac_res
13251 else
13252   echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255
13256 fi
13257
13258 rm -f core conftest.err conftest.$ac_objext \
13259       conftest$ac_exeext
13260   if test "${ac_cv_search_op_open_agent+set}" = set; then
13261   break
13262 fi
13263 done
13264 if test "${ac_cv_search_op_open_agent+set}" = set; then
13265   :
13266 else
13267   ac_cv_search_op_open_agent=no
13268 fi
13269 rm conftest.$ac_ext
13270 LIBS=$ac_func_search_save_LIBS
13271 fi
13272 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13273 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13274 ac_res=$ac_cv_search_op_open_agent
13275 if test "$ac_res" != no; then
13276   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13277
13278 else
13279
13280               echo "Error! You need to have libopagent around."
13281               exit -1
13282
13283 fi
13284
13285             if test "${ac_cv_header_opagent_h+set}" = set; then
13286   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13287 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13288 if test "${ac_cv_header_opagent_h+set}" = set; then
13289   echo $ECHO_N "(cached) $ECHO_C" >&6
13290 fi
13291 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13292 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13293 else
13294   # Is the header compilable?
13295 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13296 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h.  */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h.  */
13303 $ac_includes_default
13304 #include <opagent.h>
13305 _ACEOF
13306 rm -f conftest.$ac_objext
13307 if { (ac_try="$ac_compile"
13308 case "(($ac_try" in
13309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310   *) ac_try_echo=$ac_try;;
13311 esac
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313   (eval "$ac_compile") 2>conftest.er1
13314   ac_status=$?
13315   grep -v '^ *+' conftest.er1 >conftest.err
13316   rm -f conftest.er1
13317   cat conftest.err >&5
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); } &&
13320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321   { (case "(($ac_try" in
13322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323   *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326   (eval "$ac_try") 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; } &&
13330          { ac_try='test -s conftest.$ac_objext'
13331   { (case "(($ac_try" in
13332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333   *) ac_try_echo=$ac_try;;
13334 esac
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336   (eval "$ac_try") 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); }; }; then
13340   ac_header_compiler=yes
13341 else
13342   echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345         ac_header_compiler=no
13346 fi
13347
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13350 echo "${ECHO_T}$ac_header_compiler" >&6; }
13351
13352 # Is the header present?
13353 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13354 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13355 cat >conftest.$ac_ext <<_ACEOF
13356 /* confdefs.h.  */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h.  */
13361 #include <opagent.h>
13362 _ACEOF
13363 if { (ac_try="$ac_cpp conftest.$ac_ext"
13364 case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13370   ac_status=$?
13371   grep -v '^ *+' conftest.er1 >conftest.err
13372   rm -f conftest.er1
13373   cat conftest.err >&5
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } >/dev/null; then
13376   if test -s conftest.err; then
13377     ac_cpp_err=$ac_c_preproc_warn_flag
13378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13379   else
13380     ac_cpp_err=
13381   fi
13382 else
13383   ac_cpp_err=yes
13384 fi
13385 if test -z "$ac_cpp_err"; then
13386   ac_header_preproc=yes
13387 else
13388   echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13390
13391   ac_header_preproc=no
13392 fi
13393
13394 rm -f conftest.err conftest.$ac_ext
13395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13396 echo "${ECHO_T}$ac_header_preproc" >&6; }
13397
13398 # So?  What about this header?
13399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13400   yes:no: )
13401     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13402 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13403     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13404 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13405     ac_header_preproc=yes
13406     ;;
13407   no:yes:* )
13408     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13409 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13410     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13411 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13412     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13413 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13414     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13415 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13416     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13417 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13418     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13419 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13420     ( cat <<\_ASBOX
13421 ## ------------------------------------ ##
13422 ## Report this to http://llvm.org/bugs/ ##
13423 ## ------------------------------------ ##
13424 _ASBOX
13425      ) | sed "s/^/$as_me: WARNING:     /" >&2
13426     ;;
13427 esac
13428 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13429 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13430 if test "${ac_cv_header_opagent_h+set}" = set; then
13431   echo $ECHO_N "(cached) $ECHO_C" >&6
13432 else
13433   ac_cv_header_opagent_h=$ac_header_preproc
13434 fi
13435 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13436 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13437
13438 fi
13439 if test $ac_cv_header_opagent_h = yes; then
13440   :
13441 else
13442
13443               echo "Error! You need to have opagent.h around."
13444               exit -1
13445
13446 fi
13447
13448
13449           fi ;;
13450         *)
13451           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13452 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13453    { (exit 1); exit 1; }; } ;;
13454       esac
13455
13456 else
13457
13458       USE_OPROFILE=0
13459
13460
13461 fi
13462
13463
13464 cat >>confdefs.h <<_ACEOF
13465 #define LLVM_USE_OPROFILE $USE_OPROFILE
13466 _ACEOF
13467
13468
13469
13470 # Check whether --with-intel-jitevents was given.
13471 if test "${with_intel_jitevents+set}" = set; then
13472   withval=$with_intel_jitevents;
13473       case $llvm_cv_os_type in
13474         Linux|Win32|Cygwin|MingW) ;;
13475         *)
13476           { { echo "$as_me:$LINENO: error:
13477             Intel JIT API support is available on Linux and Windows only.\"" >&5
13478 echo "$as_me: error:
13479             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13480    { (exit 1); exit 1; }; } ;;
13481       esac
13482
13483       USE_INTEL_JITEVENTS=1
13484
13485       case "$llvm_cv_target_arch" in
13486         x86)    llvm_intel_jitevents_archdir="lib32";;
13487         x86_64) llvm_intel_jitevents_archdir="lib64";;
13488         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13489                 exit -1;;
13490       esac
13491       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13492       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13493       case "$withval" in
13494         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13495                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13496         *) ;;
13497       esac
13498
13499
13500
13501
13502       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13503       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13504
13505       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13506 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13507 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13508   echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510   ac_func_search_save_LIBS=$LIBS
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517
13518 /* Override any GCC internal prototype to avoid an error.
13519    Use char because int might match the return type of a GCC
13520    builtin and then its argument prototype would still apply.  */
13521 #ifdef __cplusplus
13522 extern "C"
13523 #endif
13524 char iJIT_IsProfilingActive ();
13525 int
13526 main ()
13527 {
13528 return iJIT_IsProfilingActive ();
13529   ;
13530   return 0;
13531 }
13532 _ACEOF
13533 for ac_lib in '' jitprofiling; do
13534   if test -z "$ac_lib"; then
13535     ac_res="none required"
13536   else
13537     ac_res=-l$ac_lib
13538     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13539   fi
13540   rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (ac_try="$ac_link"
13542 case "(($ac_try" in
13543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544   *) ac_try_echo=$ac_try;;
13545 esac
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547   (eval "$ac_link") 2>conftest.er1
13548   ac_status=$?
13549   grep -v '^ *+' conftest.er1 >conftest.err
13550   rm -f conftest.er1
13551   cat conftest.err >&5
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); } &&
13554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13555   { (case "(($ac_try" in
13556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557   *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560   (eval "$ac_try") 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); }; } &&
13564          { ac_try='test -s conftest$ac_exeext'
13565   { (case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_try") 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; }; then
13574   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13575 else
13576   echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579
13580 fi
13581
13582 rm -f core conftest.err conftest.$ac_objext \
13583       conftest$ac_exeext
13584   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13585   break
13586 fi
13587 done
13588 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13589   :
13590 else
13591   ac_cv_search_iJIT_IsProfilingActive=no
13592 fi
13593 rm conftest.$ac_ext
13594 LIBS=$ac_func_search_save_LIBS
13595 fi
13596 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13597 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13598 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13599 if test "$ac_res" != no; then
13600   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13601
13602 else
13603
13604         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13605         exit -1
13606
13607 fi
13608
13609       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13610   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13611 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13612 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13613   echo $ECHO_N "(cached) $ECHO_C" >&6
13614 fi
13615 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13616 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13617 else
13618   # Is the header compilable?
13619 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13620 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13621 cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h.  */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h.  */
13627 $ac_includes_default
13628 #include <jitprofiling.h>
13629 _ACEOF
13630 rm -f conftest.$ac_objext
13631 if { (ac_try="$ac_compile"
13632 case "(($ac_try" in
13633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634   *) ac_try_echo=$ac_try;;
13635 esac
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637   (eval "$ac_compile") 2>conftest.er1
13638   ac_status=$?
13639   grep -v '^ *+' conftest.er1 >conftest.err
13640   rm -f conftest.er1
13641   cat conftest.err >&5
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); } &&
13644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13645   { (case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_try") 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; } &&
13654          { ac_try='test -s conftest.$ac_objext'
13655   { (case "(($ac_try" in
13656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657   *) ac_try_echo=$ac_try;;
13658 esac
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660   (eval "$ac_try") 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); }; }; then
13664   ac_header_compiler=yes
13665 else
13666   echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13668
13669         ac_header_compiler=no
13670 fi
13671
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13674 echo "${ECHO_T}$ac_header_compiler" >&6; }
13675
13676 # Is the header present?
13677 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13678 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13679 cat >conftest.$ac_ext <<_ACEOF
13680 /* confdefs.h.  */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h.  */
13685 #include <jitprofiling.h>
13686 _ACEOF
13687 if { (ac_try="$ac_cpp conftest.$ac_ext"
13688 case "(($ac_try" in
13689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690   *) ac_try_echo=$ac_try;;
13691 esac
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13694   ac_status=$?
13695   grep -v '^ *+' conftest.er1 >conftest.err
13696   rm -f conftest.er1
13697   cat conftest.err >&5
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } >/dev/null; then
13700   if test -s conftest.err; then
13701     ac_cpp_err=$ac_c_preproc_warn_flag
13702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13703   else
13704     ac_cpp_err=
13705   fi
13706 else
13707   ac_cpp_err=yes
13708 fi
13709 if test -z "$ac_cpp_err"; then
13710   ac_header_preproc=yes
13711 else
13712   echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715   ac_header_preproc=no
13716 fi
13717
13718 rm -f conftest.err conftest.$ac_ext
13719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13720 echo "${ECHO_T}$ac_header_preproc" >&6; }
13721
13722 # So?  What about this header?
13723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13724   yes:no: )
13725     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13726 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13727     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13728 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13729     ac_header_preproc=yes
13730     ;;
13731   no:yes:* )
13732     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13733 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13734     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13735 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13736     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13737 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13738     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13739 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13740     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13741 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13742     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13743 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13744     ( cat <<\_ASBOX
13745 ## ------------------------------------ ##
13746 ## Report this to http://llvm.org/bugs/ ##
13747 ## ------------------------------------ ##
13748 _ASBOX
13749      ) | sed "s/^/$as_me: WARNING:     /" >&2
13750     ;;
13751 esac
13752 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13753 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13754 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757   ac_cv_header_jitprofiling_h=$ac_header_preproc
13758 fi
13759 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13760 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13761
13762 fi
13763 if test $ac_cv_header_jitprofiling_h = yes; then
13764   :
13765 else
13766
13767         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13768         exit -1
13769
13770 fi
13771
13772
13773
13774
13775 else
13776
13777       USE_INTEL_JITEVENTS=0
13778
13779
13780 fi
13781
13782
13783 cat >>confdefs.h <<_ACEOF
13784 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13785 _ACEOF
13786
13787
13788
13789
13790
13791
13792
13793
13794 ac_header_dirent=no
13795 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13796   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13797 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13798 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   cat >conftest.$ac_ext <<_ACEOF
13803 /* confdefs.h.  */
13804 _ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h.  */
13808 #include <sys/types.h>
13809 #include <$ac_hdr>
13810
13811 int
13812 main ()
13813 {
13814 if ((DIR *) 0)
13815 return 0;
13816   ;
13817   return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (ac_try="$ac_compile"
13822 case "(($ac_try" in
13823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824   *) ac_try_echo=$ac_try;;
13825 esac
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827   (eval "$ac_compile") 2>conftest.er1
13828   ac_status=$?
13829   grep -v '^ *+' conftest.er1 >conftest.err
13830   rm -f conftest.er1
13831   cat conftest.err >&5
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); } &&
13834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13835   { (case "(($ac_try" in
13836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837   *) ac_try_echo=$ac_try;;
13838 esac
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840   (eval "$ac_try") 2>&5
13841   ac_status=$?
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); }; } &&
13844          { ac_try='test -s conftest.$ac_objext'
13845   { (case "(($ac_try" in
13846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847   *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850   (eval "$ac_try") 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; }; then
13854   eval "$as_ac_Header=yes"
13855 else
13856   echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859         eval "$as_ac_Header=no"
13860 fi
13861
13862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863 fi
13864 ac_res=`eval echo '${'$as_ac_Header'}'`
13865                { echo "$as_me:$LINENO: result: $ac_res" >&5
13866 echo "${ECHO_T}$ac_res" >&6; }
13867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13868   cat >>confdefs.h <<_ACEOF
13869 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13870 _ACEOF
13871
13872 ac_header_dirent=$ac_hdr; break
13873 fi
13874
13875 done
13876 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13877 if test $ac_header_dirent = dirent.h; then
13878   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13879 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13880 if test "${ac_cv_search_opendir+set}" = set; then
13881   echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883   ac_func_search_save_LIBS=$LIBS
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h.  */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h.  */
13890
13891 /* Override any GCC internal prototype to avoid an error.
13892    Use char because int might match the return type of a GCC
13893    builtin and then its argument prototype would still apply.  */
13894 #ifdef __cplusplus
13895 extern "C"
13896 #endif
13897 char opendir ();
13898 int
13899 main ()
13900 {
13901 return opendir ();
13902   ;
13903   return 0;
13904 }
13905 _ACEOF
13906 for ac_lib in '' dir; do
13907   if test -z "$ac_lib"; then
13908     ac_res="none required"
13909   else
13910     ac_res=-l$ac_lib
13911     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13912   fi
13913   rm -f conftest.$ac_objext conftest$ac_exeext
13914 if { (ac_try="$ac_link"
13915 case "(($ac_try" in
13916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917   *) ac_try_echo=$ac_try;;
13918 esac
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920   (eval "$ac_link") 2>conftest.er1
13921   ac_status=$?
13922   grep -v '^ *+' conftest.er1 >conftest.err
13923   rm -f conftest.er1
13924   cat conftest.err >&5
13925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926   (exit $ac_status); } &&
13927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928   { (case "(($ac_try" in
13929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930   *) ac_try_echo=$ac_try;;
13931 esac
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933   (eval "$ac_try") 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); }; } &&
13937          { ac_try='test -s conftest$ac_exeext'
13938   { (case "(($ac_try" in
13939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940   *) ac_try_echo=$ac_try;;
13941 esac
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943   (eval "$ac_try") 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; }; then
13947   ac_cv_search_opendir=$ac_res
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952
13953 fi
13954
13955 rm -f core conftest.err conftest.$ac_objext \
13956       conftest$ac_exeext
13957   if test "${ac_cv_search_opendir+set}" = set; then
13958   break
13959 fi
13960 done
13961 if test "${ac_cv_search_opendir+set}" = set; then
13962   :
13963 else
13964   ac_cv_search_opendir=no
13965 fi
13966 rm conftest.$ac_ext
13967 LIBS=$ac_func_search_save_LIBS
13968 fi
13969 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13970 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13971 ac_res=$ac_cv_search_opendir
13972 if test "$ac_res" != no; then
13973   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13974
13975 fi
13976
13977 else
13978   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13980 if test "${ac_cv_search_opendir+set}" = set; then
13981   echo $ECHO_N "(cached) $ECHO_C" >&6
13982 else
13983   ac_func_search_save_LIBS=$LIBS
13984 cat >conftest.$ac_ext <<_ACEOF
13985 /* confdefs.h.  */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h.  */
13990
13991 /* Override any GCC internal prototype to avoid an error.
13992    Use char because int might match the return type of a GCC
13993    builtin and then its argument prototype would still apply.  */
13994 #ifdef __cplusplus
13995 extern "C"
13996 #endif
13997 char opendir ();
13998 int
13999 main ()
14000 {
14001 return opendir ();
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 for ac_lib in '' x; do
14007   if test -z "$ac_lib"; then
14008     ac_res="none required"
14009   else
14010     ac_res=-l$ac_lib
14011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14012   fi
14013   rm -f conftest.$ac_objext conftest$ac_exeext
14014 if { (ac_try="$ac_link"
14015 case "(($ac_try" in
14016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017   *) ac_try_echo=$ac_try;;
14018 esac
14019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020   (eval "$ac_link") 2>conftest.er1
14021   ac_status=$?
14022   grep -v '^ *+' conftest.er1 >conftest.err
14023   rm -f conftest.er1
14024   cat conftest.err >&5
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); } &&
14027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14028   { (case "(($ac_try" in
14029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030   *) ac_try_echo=$ac_try;;
14031 esac
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033   (eval "$ac_try") 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; } &&
14037          { ac_try='test -s conftest$ac_exeext'
14038   { (case "(($ac_try" in
14039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040   *) ac_try_echo=$ac_try;;
14041 esac
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043   (eval "$ac_try") 2>&5
14044   ac_status=$?
14045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046   (exit $ac_status); }; }; then
14047   ac_cv_search_opendir=$ac_res
14048 else
14049   echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14051
14052
14053 fi
14054
14055 rm -f core conftest.err conftest.$ac_objext \
14056       conftest$ac_exeext
14057   if test "${ac_cv_search_opendir+set}" = set; then
14058   break
14059 fi
14060 done
14061 if test "${ac_cv_search_opendir+set}" = set; then
14062   :
14063 else
14064   ac_cv_search_opendir=no
14065 fi
14066 rm conftest.$ac_ext
14067 LIBS=$ac_func_search_save_LIBS
14068 fi
14069 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14070 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14071 ac_res=$ac_cv_search_opendir
14072 if test "$ac_res" != no; then
14073   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14074
14075 fi
14076
14077 fi
14078
14079 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14080 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14081 if test "${ac_cv_header_mmap_anon+set}" = set; then
14082   echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084    ac_ext=c
14085 ac_cpp='$CPP $CPPFLAGS'
14086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14089
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/mman.h>
14097 #include <unistd.h>
14098 #include <fcntl.h>
14099 int
14100 main ()
14101 {
14102 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 rm -f conftest.$ac_objext
14108 if { (ac_try="$ac_compile"
14109 case "(($ac_try" in
14110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111   *) ac_try_echo=$ac_try;;
14112 esac
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114   (eval "$ac_compile") 2>conftest.er1
14115   ac_status=$?
14116   grep -v '^ *+' conftest.er1 >conftest.err
14117   rm -f conftest.er1
14118   cat conftest.err >&5
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); } &&
14121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14122   { (case "(($ac_try" in
14123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124   *) ac_try_echo=$ac_try;;
14125 esac
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127   (eval "$ac_try") 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; } &&
14131          { ac_try='test -s conftest.$ac_objext'
14132   { (case "(($ac_try" in
14133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134   *) ac_try_echo=$ac_try;;
14135 esac
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137   (eval "$ac_try") 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); }; }; then
14141   ac_cv_header_mmap_anon=yes
14142 else
14143   echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146         ac_cv_header_mmap_anon=no
14147 fi
14148
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150   ac_ext=c
14151 ac_cpp='$CPP $CPPFLAGS'
14152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14155
14156
14157 fi
14158 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14159 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14160 if test "$ac_cv_header_mmap_anon" = yes; then
14161
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_MMAP_ANONYMOUS 1
14164 _ACEOF
14165
14166 fi
14167
14168 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14169 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14170 if test "${ac_cv_header_stat_broken+set}" = set; then
14171   echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173   cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h.  */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h.  */
14179 #include <sys/types.h>
14180 #include <sys/stat.h>
14181
14182 #if defined S_ISBLK && defined S_IFDIR
14183 # if S_ISBLK (S_IFDIR)
14184 You lose.
14185 # endif
14186 #endif
14187
14188 #if defined S_ISBLK && defined S_IFCHR
14189 # if S_ISBLK (S_IFCHR)
14190 You lose.
14191 # endif
14192 #endif
14193
14194 #if defined S_ISLNK && defined S_IFREG
14195 # if S_ISLNK (S_IFREG)
14196 You lose.
14197 # endif
14198 #endif
14199
14200 #if defined S_ISSOCK && defined S_IFREG
14201 # if S_ISSOCK (S_IFREG)
14202 You lose.
14203 # endif
14204 #endif
14205
14206 _ACEOF
14207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14208   $EGREP "You lose" >/dev/null 2>&1; then
14209   ac_cv_header_stat_broken=yes
14210 else
14211   ac_cv_header_stat_broken=no
14212 fi
14213 rm -f conftest*
14214
14215 fi
14216 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14217 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14218 if test $ac_cv_header_stat_broken = yes; then
14219
14220 cat >>confdefs.h <<\_ACEOF
14221 #define STAT_MACROS_BROKEN 1
14222 _ACEOF
14223
14224 fi
14225
14226 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14227 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14228 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14229   echo $ECHO_N "(cached) $ECHO_C" >&6
14230 else
14231   cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237 #include <sys/types.h>
14238 #include <sys/wait.h>
14239 #ifndef WEXITSTATUS
14240 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14241 #endif
14242 #ifndef WIFEXITED
14243 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14244 #endif
14245
14246 int
14247 main ()
14248 {
14249   int s;
14250   wait (&s);
14251   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14252   ;
14253   return 0;
14254 }
14255 _ACEOF
14256 rm -f conftest.$ac_objext
14257 if { (ac_try="$ac_compile"
14258 case "(($ac_try" in
14259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260   *) ac_try_echo=$ac_try;;
14261 esac
14262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263   (eval "$ac_compile") 2>conftest.er1
14264   ac_status=$?
14265   grep -v '^ *+' conftest.er1 >conftest.err
14266   rm -f conftest.er1
14267   cat conftest.err >&5
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); } &&
14270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14271   { (case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276   (eval "$ac_try") 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; } &&
14280          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14287   ac_status=$?
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); }; }; then
14290   ac_cv_header_sys_wait_h=yes
14291 else
14292   echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14294
14295         ac_cv_header_sys_wait_h=no
14296 fi
14297
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 fi
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14301 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14302 if test $ac_cv_header_sys_wait_h = yes; then
14303
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_SYS_WAIT_H 1
14306 _ACEOF
14307
14308 fi
14309
14310 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14311 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14312 if test "${ac_cv_header_time+set}" = set; then
14313   echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315   cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321 #include <sys/types.h>
14322 #include <sys/time.h>
14323 #include <time.h>
14324
14325 int
14326 main ()
14327 {
14328 if ((struct tm *) 0)
14329 return 0;
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_compile") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } &&
14348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349   { (case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_try") 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); }; } &&
14358          { ac_try='test -s conftest.$ac_objext'
14359   { (case "(($ac_try" in
14360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361   *) ac_try_echo=$ac_try;;
14362 esac
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364   (eval "$ac_try") 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }; then
14368   ac_cv_header_time=yes
14369 else
14370   echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373         ac_cv_header_time=no
14374 fi
14375
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 fi
14378 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14379 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14380 if test $ac_cv_header_time = yes; then
14381
14382 cat >>confdefs.h <<\_ACEOF
14383 #define TIME_WITH_SYS_TIME 1
14384 _ACEOF
14385
14386 fi
14387
14388
14389
14390
14391
14392
14393
14394
14395 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14396 do
14397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14399   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402   echo $ECHO_N "(cached) $ECHO_C" >&6
14403 fi
14404 ac_res=`eval echo '${'$as_ac_Header'}'`
14405                { echo "$as_me:$LINENO: result: $ac_res" >&5
14406 echo "${ECHO_T}$ac_res" >&6; }
14407 else
14408   # Is the header compilable?
14409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14411 cat >conftest.$ac_ext <<_ACEOF
14412 /* confdefs.h.  */
14413 _ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h.  */
14417 $ac_includes_default
14418 #include <$ac_header>
14419 _ACEOF
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424   *) ac_try_echo=$ac_try;;
14425 esac
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427   (eval "$ac_compile") 2>conftest.er1
14428   ac_status=$?
14429   grep -v '^ *+' conftest.er1 >conftest.err
14430   rm -f conftest.er1
14431   cat conftest.err >&5
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); } &&
14434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435   { (case "(($ac_try" in
14436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437   *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440   (eval "$ac_try") 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); }; } &&
14444          { ac_try='test -s conftest.$ac_objext'
14445   { (case "(($ac_try" in
14446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447   *) ac_try_echo=$ac_try;;
14448 esac
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450   (eval "$ac_try") 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; }; then
14454   ac_header_compiler=yes
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459         ac_header_compiler=no
14460 fi
14461
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14464 echo "${ECHO_T}$ac_header_compiler" >&6; }
14465
14466 # Is the header present?
14467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14469 cat >conftest.$ac_ext <<_ACEOF
14470 /* confdefs.h.  */
14471 _ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h.  */
14475 #include <$ac_header>
14476 _ACEOF
14477 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14484   ac_status=$?
14485   grep -v '^ *+' conftest.er1 >conftest.err
14486   rm -f conftest.er1
14487   cat conftest.err >&5
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); } >/dev/null; then
14490   if test -s conftest.err; then
14491     ac_cpp_err=$ac_c_preproc_warn_flag
14492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14493   else
14494     ac_cpp_err=
14495   fi
14496 else
14497   ac_cpp_err=yes
14498 fi
14499 if test -z "$ac_cpp_err"; then
14500   ac_header_preproc=yes
14501 else
14502   echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505   ac_header_preproc=no
14506 fi
14507
14508 rm -f conftest.err conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14510 echo "${ECHO_T}$ac_header_preproc" >&6; }
14511
14512 # So?  What about this header?
14513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14514   yes:no: )
14515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14519     ac_header_preproc=yes
14520     ;;
14521   no:yes:* )
14522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14534     ( cat <<\_ASBOX
14535 ## ------------------------------------ ##
14536 ## Report this to http://llvm.org/bugs/ ##
14537 ## ------------------------------------ ##
14538 _ASBOX
14539      ) | sed "s/^/$as_me: WARNING:     /" >&2
14540     ;;
14541 esac
14542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14545   echo $ECHO_N "(cached) $ECHO_C" >&6
14546 else
14547   eval "$as_ac_Header=\$ac_header_preproc"
14548 fi
14549 ac_res=`eval echo '${'$as_ac_Header'}'`
14550                { echo "$as_me:$LINENO: result: $ac_res" >&5
14551 echo "${ECHO_T}$ac_res" >&6; }
14552
14553 fi
14554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14555   cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14557 _ACEOF
14558
14559 fi
14560
14561 done
14562
14563
14564
14565
14566
14567
14568
14569 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14570 do
14571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14573   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14576   echo $ECHO_N "(cached) $ECHO_C" >&6
14577 fi
14578 ac_res=`eval echo '${'$as_ac_Header'}'`
14579                { echo "$as_me:$LINENO: result: $ac_res" >&5
14580 echo "${ECHO_T}$ac_res" >&6; }
14581 else
14582   # Is the header compilable?
14583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14585 cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h.  */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h.  */
14591 $ac_includes_default
14592 #include <$ac_header>
14593 _ACEOF
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598   *) ac_try_echo=$ac_try;;
14599 esac
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601   (eval "$ac_compile") 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609   { (case "(($ac_try" in
14610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611   *) ac_try_echo=$ac_try;;
14612 esac
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614   (eval "$ac_try") 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; } &&
14618          { ac_try='test -s conftest.$ac_objext'
14619   { (case "(($ac_try" in
14620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621   *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624   (eval "$ac_try") 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; }; then
14628   ac_header_compiler=yes
14629 else
14630   echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633         ac_header_compiler=no
14634 fi
14635
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14638 echo "${ECHO_T}$ac_header_compiler" >&6; }
14639
14640 # Is the header present?
14641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14643 cat >conftest.$ac_ext <<_ACEOF
14644 /* confdefs.h.  */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h.  */
14649 #include <$ac_header>
14650 _ACEOF
14651 if { (ac_try="$ac_cpp conftest.$ac_ext"
14652 case "(($ac_try" in
14653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654   *) ac_try_echo=$ac_try;;
14655 esac
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14658   ac_status=$?
14659   grep -v '^ *+' conftest.er1 >conftest.err
14660   rm -f conftest.er1
14661   cat conftest.err >&5
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } >/dev/null; then
14664   if test -s conftest.err; then
14665     ac_cpp_err=$ac_c_preproc_warn_flag
14666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14667   else
14668     ac_cpp_err=
14669   fi
14670 else
14671   ac_cpp_err=yes
14672 fi
14673 if test -z "$ac_cpp_err"; then
14674   ac_header_preproc=yes
14675 else
14676   echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679   ac_header_preproc=no
14680 fi
14681
14682 rm -f conftest.err conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14684 echo "${ECHO_T}$ac_header_preproc" >&6; }
14685
14686 # So?  What about this header?
14687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14688   yes:no: )
14689     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14693     ac_header_preproc=yes
14694     ;;
14695   no:yes:* )
14696     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14698     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14699 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14700     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14702     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14703 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14706     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14708     ( cat <<\_ASBOX
14709 ## ------------------------------------ ##
14710 ## Report this to http://llvm.org/bugs/ ##
14711 ## ------------------------------------ ##
14712 _ASBOX
14713      ) | sed "s/^/$as_me: WARNING:     /" >&2
14714     ;;
14715 esac
14716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14719   echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721   eval "$as_ac_Header=\$ac_header_preproc"
14722 fi
14723 ac_res=`eval echo '${'$as_ac_Header'}'`
14724                { echo "$as_me:$LINENO: result: $ac_res" >&5
14725 echo "${ECHO_T}$ac_res" >&6; }
14726
14727 fi
14728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14729   cat >>confdefs.h <<_ACEOF
14730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14731 _ACEOF
14732
14733 fi
14734
14735 done
14736
14737
14738
14739 for ac_header in utime.h windows.h
14740 do
14741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14743   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746   echo $ECHO_N "(cached) $ECHO_C" >&6
14747 fi
14748 ac_res=`eval echo '${'$as_ac_Header'}'`
14749                { echo "$as_me:$LINENO: result: $ac_res" >&5
14750 echo "${ECHO_T}$ac_res" >&6; }
14751 else
14752   # Is the header compilable?
14753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14755 cat >conftest.$ac_ext <<_ACEOF
14756 /* confdefs.h.  */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h.  */
14761 $ac_includes_default
14762 #include <$ac_header>
14763 _ACEOF
14764 rm -f conftest.$ac_objext
14765 if { (ac_try="$ac_compile"
14766 case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_compile") 2>conftest.er1
14772   ac_status=$?
14773   grep -v '^ *+' conftest.er1 >conftest.err
14774   rm -f conftest.er1
14775   cat conftest.err >&5
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } &&
14778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779   { (case "(($ac_try" in
14780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781   *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784   (eval "$ac_try") 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; } &&
14788          { ac_try='test -s conftest.$ac_objext'
14789   { (case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_try") 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; }; then
14798   ac_header_compiler=yes
14799 else
14800   echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803         ac_header_compiler=no
14804 fi
14805
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14808 echo "${ECHO_T}$ac_header_compiler" >&6; }
14809
14810 # Is the header present?
14811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819 #include <$ac_header>
14820 _ACEOF
14821 if { (ac_try="$ac_cpp conftest.$ac_ext"
14822 case "(($ac_try" in
14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824   *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14828   ac_status=$?
14829   grep -v '^ *+' conftest.er1 >conftest.err
14830   rm -f conftest.er1
14831   cat conftest.err >&5
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } >/dev/null; then
14834   if test -s conftest.err; then
14835     ac_cpp_err=$ac_c_preproc_warn_flag
14836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14837   else
14838     ac_cpp_err=
14839   fi
14840 else
14841   ac_cpp_err=yes
14842 fi
14843 if test -z "$ac_cpp_err"; then
14844   ac_header_preproc=yes
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849   ac_header_preproc=no
14850 fi
14851
14852 rm -f conftest.err conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854 echo "${ECHO_T}$ac_header_preproc" >&6; }
14855
14856 # So?  What about this header?
14857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14858   yes:no: )
14859     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14863     ac_header_preproc=yes
14864     ;;
14865   no:yes:* )
14866     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14868     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14869 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14870     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14872     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14873 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14876     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14878     ( cat <<\_ASBOX
14879 ## ------------------------------------ ##
14880 ## Report this to http://llvm.org/bugs/ ##
14881 ## ------------------------------------ ##
14882 _ASBOX
14883      ) | sed "s/^/$as_me: WARNING:     /" >&2
14884     ;;
14885 esac
14886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14889   echo $ECHO_N "(cached) $ECHO_C" >&6
14890 else
14891   eval "$as_ac_Header=\$ac_header_preproc"
14892 fi
14893 ac_res=`eval echo '${'$as_ac_Header'}'`
14894                { echo "$as_me:$LINENO: result: $ac_res" >&5
14895 echo "${ECHO_T}$ac_res" >&6; }
14896
14897 fi
14898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14899   cat >>confdefs.h <<_ACEOF
14900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14901 _ACEOF
14902
14903 fi
14904
14905 done
14906
14907
14908
14909
14910
14911
14912 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14913 do
14914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14916   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919   echo $ECHO_N "(cached) $ECHO_C" >&6
14920 fi
14921 ac_res=`eval echo '${'$as_ac_Header'}'`
14922                { echo "$as_me:$LINENO: result: $ac_res" >&5
14923 echo "${ECHO_T}$ac_res" >&6; }
14924 else
14925   # Is the header compilable?
14926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14928 cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h.  */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h.  */
14934 $ac_includes_default
14935 #include <$ac_header>
14936 _ACEOF
14937 rm -f conftest.$ac_objext
14938 if { (ac_try="$ac_compile"
14939 case "(($ac_try" in
14940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941   *) ac_try_echo=$ac_try;;
14942 esac
14943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944   (eval "$ac_compile") 2>conftest.er1
14945   ac_status=$?
14946   grep -v '^ *+' conftest.er1 >conftest.err
14947   rm -f conftest.er1
14948   cat conftest.err >&5
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); } &&
14951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14952   { (case "(($ac_try" in
14953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954   *) ac_try_echo=$ac_try;;
14955 esac
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957   (eval "$ac_try") 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; } &&
14961          { ac_try='test -s conftest.$ac_objext'
14962   { (case "(($ac_try" in
14963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14964   *) ac_try_echo=$ac_try;;
14965 esac
14966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14967   (eval "$ac_try") 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); }; }; then
14971   ac_header_compiler=yes
14972 else
14973   echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14975
14976         ac_header_compiler=no
14977 fi
14978
14979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14981 echo "${ECHO_T}$ac_header_compiler" >&6; }
14982
14983 # Is the header present?
14984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h.  */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h.  */
14992 #include <$ac_header>
14993 _ACEOF
14994 if { (ac_try="$ac_cpp conftest.$ac_ext"
14995 case "(($ac_try" in
14996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997   *) ac_try_echo=$ac_try;;
14998 esac
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15001   ac_status=$?
15002   grep -v '^ *+' conftest.er1 >conftest.err
15003   rm -f conftest.er1
15004   cat conftest.err >&5
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); } >/dev/null; then
15007   if test -s conftest.err; then
15008     ac_cpp_err=$ac_c_preproc_warn_flag
15009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15010   else
15011     ac_cpp_err=
15012   fi
15013 else
15014   ac_cpp_err=yes
15015 fi
15016 if test -z "$ac_cpp_err"; then
15017   ac_header_preproc=yes
15018 else
15019   echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022   ac_header_preproc=no
15023 fi
15024
15025 rm -f conftest.err conftest.$ac_ext
15026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15027 echo "${ECHO_T}$ac_header_preproc" >&6; }
15028
15029 # So?  What about this header?
15030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15031   yes:no: )
15032     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15036     ac_header_preproc=yes
15037     ;;
15038   no:yes:* )
15039     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15041     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15042 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15043     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15045     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15046 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15047     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15049     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15051     ( cat <<\_ASBOX
15052 ## ------------------------------------ ##
15053 ## Report this to http://llvm.org/bugs/ ##
15054 ## ------------------------------------ ##
15055 _ASBOX
15056      ) | sed "s/^/$as_me: WARNING:     /" >&2
15057     ;;
15058 esac
15059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15062   echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064   eval "$as_ac_Header=\$ac_header_preproc"
15065 fi
15066 ac_res=`eval echo '${'$as_ac_Header'}'`
15067                { echo "$as_me:$LINENO: result: $ac_res" >&5
15068 echo "${ECHO_T}$ac_res" >&6; }
15069
15070 fi
15071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072   cat >>confdefs.h <<_ACEOF
15073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15074 _ACEOF
15075
15076 fi
15077
15078 done
15079
15080
15081
15082
15083
15084 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15085 do
15086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15088   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15091   echo $ECHO_N "(cached) $ECHO_C" >&6
15092 fi
15093 ac_res=`eval echo '${'$as_ac_Header'}'`
15094                { echo "$as_me:$LINENO: result: $ac_res" >&5
15095 echo "${ECHO_T}$ac_res" >&6; }
15096 else
15097   # Is the header compilable?
15098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15100 cat >conftest.$ac_ext <<_ACEOF
15101 /* confdefs.h.  */
15102 _ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h.  */
15106 $ac_includes_default
15107 #include <$ac_header>
15108 _ACEOF
15109 rm -f conftest.$ac_objext
15110 if { (ac_try="$ac_compile"
15111 case "(($ac_try" in
15112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113   *) ac_try_echo=$ac_try;;
15114 esac
15115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116   (eval "$ac_compile") 2>conftest.er1
15117   ac_status=$?
15118   grep -v '^ *+' conftest.er1 >conftest.err
15119   rm -f conftest.er1
15120   cat conftest.err >&5
15121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122   (exit $ac_status); } &&
15123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15124   { (case "(($ac_try" in
15125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126   *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129   (eval "$ac_try") 2>&5
15130   ac_status=$?
15131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132   (exit $ac_status); }; } &&
15133          { ac_try='test -s conftest.$ac_objext'
15134   { (case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_try") 2>&5
15140   ac_status=$?
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); }; }; then
15143   ac_header_compiler=yes
15144 else
15145   echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15147
15148         ac_header_compiler=no
15149 fi
15150
15151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15153 echo "${ECHO_T}$ac_header_compiler" >&6; }
15154
15155 # Is the header present?
15156 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15158 cat >conftest.$ac_ext <<_ACEOF
15159 /* confdefs.h.  */
15160 _ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h.  */
15164 #include <$ac_header>
15165 _ACEOF
15166 if { (ac_try="$ac_cpp conftest.$ac_ext"
15167 case "(($ac_try" in
15168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169   *) ac_try_echo=$ac_try;;
15170 esac
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15173   ac_status=$?
15174   grep -v '^ *+' conftest.er1 >conftest.err
15175   rm -f conftest.er1
15176   cat conftest.err >&5
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); } >/dev/null; then
15179   if test -s conftest.err; then
15180     ac_cpp_err=$ac_c_preproc_warn_flag
15181     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15182   else
15183     ac_cpp_err=
15184   fi
15185 else
15186   ac_cpp_err=yes
15187 fi
15188 if test -z "$ac_cpp_err"; then
15189   ac_header_preproc=yes
15190 else
15191   echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194   ac_header_preproc=no
15195 fi
15196
15197 rm -f conftest.err conftest.$ac_ext
15198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15199 echo "${ECHO_T}$ac_header_preproc" >&6; }
15200
15201 # So?  What about this header?
15202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15203   yes:no: )
15204     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15208     ac_header_preproc=yes
15209     ;;
15210   no:yes:* )
15211     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15213     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15214 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15215     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15217     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15218 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15221     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15223     ( cat <<\_ASBOX
15224 ## ------------------------------------ ##
15225 ## Report this to http://llvm.org/bugs/ ##
15226 ## ------------------------------------ ##
15227 _ASBOX
15228      ) | sed "s/^/$as_me: WARNING:     /" >&2
15229     ;;
15230 esac
15231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15234   echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236   eval "$as_ac_Header=\$ac_header_preproc"
15237 fi
15238 ac_res=`eval echo '${'$as_ac_Header'}'`
15239                { echo "$as_me:$LINENO: result: $ac_res" >&5
15240 echo "${ECHO_T}$ac_res" >&6; }
15241
15242 fi
15243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15244   cat >>confdefs.h <<_ACEOF
15245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15246 _ACEOF
15247
15248 fi
15249
15250 done
15251
15252
15253 for ac_header in valgrind/valgrind.h
15254 do
15255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15257   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15260   echo $ECHO_N "(cached) $ECHO_C" >&6
15261 fi
15262 ac_res=`eval echo '${'$as_ac_Header'}'`
15263                { echo "$as_me:$LINENO: result: $ac_res" >&5
15264 echo "${ECHO_T}$ac_res" >&6; }
15265 else
15266   # Is the header compilable?
15267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15269 cat >conftest.$ac_ext <<_ACEOF
15270 /* confdefs.h.  */
15271 _ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h.  */
15275 $ac_includes_default
15276 #include <$ac_header>
15277 _ACEOF
15278 rm -f conftest.$ac_objext
15279 if { (ac_try="$ac_compile"
15280 case "(($ac_try" in
15281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282   *) ac_try_echo=$ac_try;;
15283 esac
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285   (eval "$ac_compile") 2>conftest.er1
15286   ac_status=$?
15287   grep -v '^ *+' conftest.er1 >conftest.err
15288   rm -f conftest.er1
15289   cat conftest.err >&5
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); } &&
15292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293   { (case "(($ac_try" in
15294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295   *) ac_try_echo=$ac_try;;
15296 esac
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298   (eval "$ac_try") 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; } &&
15302          { ac_try='test -s conftest.$ac_objext'
15303   { (case "(($ac_try" in
15304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305   *) ac_try_echo=$ac_try;;
15306 esac
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308   (eval "$ac_try") 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); }; }; then
15312   ac_header_compiler=yes
15313 else
15314   echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317         ac_header_compiler=no
15318 fi
15319
15320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15322 echo "${ECHO_T}$ac_header_compiler" >&6; }
15323
15324 # Is the header present?
15325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15327 cat >conftest.$ac_ext <<_ACEOF
15328 /* confdefs.h.  */
15329 _ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h.  */
15333 #include <$ac_header>
15334 _ACEOF
15335 if { (ac_try="$ac_cpp conftest.$ac_ext"
15336 case "(($ac_try" in
15337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338   *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15342   ac_status=$?
15343   grep -v '^ *+' conftest.er1 >conftest.err
15344   rm -f conftest.er1
15345   cat conftest.err >&5
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); } >/dev/null; then
15348   if test -s conftest.err; then
15349     ac_cpp_err=$ac_c_preproc_warn_flag
15350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15351   else
15352     ac_cpp_err=
15353   fi
15354 else
15355   ac_cpp_err=yes
15356 fi
15357 if test -z "$ac_cpp_err"; then
15358   ac_header_preproc=yes
15359 else
15360   echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15362
15363   ac_header_preproc=no
15364 fi
15365
15366 rm -f conftest.err conftest.$ac_ext
15367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15368 echo "${ECHO_T}$ac_header_preproc" >&6; }
15369
15370 # So?  What about this header?
15371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15372   yes:no: )
15373     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15377     ac_header_preproc=yes
15378     ;;
15379   no:yes:* )
15380     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15382     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15383 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15384     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15386     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15387 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15390     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15392     ( cat <<\_ASBOX
15393 ## ------------------------------------ ##
15394 ## Report this to http://llvm.org/bugs/ ##
15395 ## ------------------------------------ ##
15396 _ASBOX
15397      ) | sed "s/^/$as_me: WARNING:     /" >&2
15398     ;;
15399 esac
15400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15403   echo $ECHO_N "(cached) $ECHO_C" >&6
15404 else
15405   eval "$as_ac_Header=\$ac_header_preproc"
15406 fi
15407 ac_res=`eval echo '${'$as_ac_Header'}'`
15408                { echo "$as_me:$LINENO: result: $ac_res" >&5
15409 echo "${ECHO_T}$ac_res" >&6; }
15410
15411 fi
15412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15413   cat >>confdefs.h <<_ACEOF
15414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15415 _ACEOF
15416
15417 fi
15418
15419 done
15420
15421
15422 for ac_header in fenv.h
15423 do
15424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429   echo $ECHO_N "(cached) $ECHO_C" >&6
15430 fi
15431 ac_res=`eval echo '${'$as_ac_Header'}'`
15432                { echo "$as_me:$LINENO: result: $ac_res" >&5
15433 echo "${ECHO_T}$ac_res" >&6; }
15434 else
15435   # Is the header compilable?
15436 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15438 cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h.  */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h.  */
15444 $ac_includes_default
15445 #include <$ac_header>
15446 _ACEOF
15447 rm -f conftest.$ac_objext
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451   *) ac_try_echo=$ac_try;;
15452 esac
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454   (eval "$ac_compile") 2>conftest.er1
15455   ac_status=$?
15456   grep -v '^ *+' conftest.er1 >conftest.err
15457   rm -f conftest.er1
15458   cat conftest.err >&5
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); } &&
15461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15462   { (case "(($ac_try" in
15463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464   *) ac_try_echo=$ac_try;;
15465 esac
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467   (eval "$ac_try") 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; } &&
15471          { ac_try='test -s conftest.$ac_objext'
15472   { (case "(($ac_try" in
15473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474   *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477   (eval "$ac_try") 2>&5
15478   ac_status=$?
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); }; }; then
15481   ac_header_compiler=yes
15482 else
15483   echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486         ac_header_compiler=no
15487 fi
15488
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15491 echo "${ECHO_T}$ac_header_compiler" >&6; }
15492
15493 # Is the header present?
15494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h.  */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h.  */
15502 #include <$ac_header>
15503 _ACEOF
15504 if { (ac_try="$ac_cpp conftest.$ac_ext"
15505 case "(($ac_try" in
15506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507   *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15511   ac_status=$?
15512   grep -v '^ *+' conftest.er1 >conftest.err
15513   rm -f conftest.er1
15514   cat conftest.err >&5
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); } >/dev/null; then
15517   if test -s conftest.err; then
15518     ac_cpp_err=$ac_c_preproc_warn_flag
15519     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15520   else
15521     ac_cpp_err=
15522   fi
15523 else
15524   ac_cpp_err=yes
15525 fi
15526 if test -z "$ac_cpp_err"; then
15527   ac_header_preproc=yes
15528 else
15529   echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532   ac_header_preproc=no
15533 fi
15534
15535 rm -f conftest.err conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15537 echo "${ECHO_T}$ac_header_preproc" >&6; }
15538
15539 # So?  What about this header?
15540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15541   yes:no: )
15542     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15546     ac_header_preproc=yes
15547     ;;
15548   no:yes:* )
15549     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15551     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15552 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15553     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15555     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15556 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15559     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15561     ( cat <<\_ASBOX
15562 ## ------------------------------------ ##
15563 ## Report this to http://llvm.org/bugs/ ##
15564 ## ------------------------------------ ##
15565 _ASBOX
15566      ) | sed "s/^/$as_me: WARNING:     /" >&2
15567     ;;
15568 esac
15569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574   eval "$as_ac_Header=\$ac_header_preproc"
15575 fi
15576 ac_res=`eval echo '${'$as_ac_Header'}'`
15577                { echo "$as_me:$LINENO: result: $ac_res" >&5
15578 echo "${ECHO_T}$ac_res" >&6; }
15579
15580 fi
15581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582   cat >>confdefs.h <<_ACEOF
15583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15584 _ACEOF
15585
15586 fi
15587
15588 done
15589
15590 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15591
15592 for ac_header in pthread.h
15593 do
15594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15599   echo $ECHO_N "(cached) $ECHO_C" >&6
15600 fi
15601 ac_res=`eval echo '${'$as_ac_Header'}'`
15602                { echo "$as_me:$LINENO: result: $ac_res" >&5
15603 echo "${ECHO_T}$ac_res" >&6; }
15604 else
15605   # Is the header compilable?
15606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15608 cat >conftest.$ac_ext <<_ACEOF
15609 /* confdefs.h.  */
15610 _ACEOF
15611 cat confdefs.h >>conftest.$ac_ext
15612 cat >>conftest.$ac_ext <<_ACEOF
15613 /* end confdefs.h.  */
15614 $ac_includes_default
15615 #include <$ac_header>
15616 _ACEOF
15617 rm -f conftest.$ac_objext
15618 if { (ac_try="$ac_compile"
15619 case "(($ac_try" in
15620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621   *) ac_try_echo=$ac_try;;
15622 esac
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624   (eval "$ac_compile") 2>conftest.er1
15625   ac_status=$?
15626   grep -v '^ *+' conftest.er1 >conftest.err
15627   rm -f conftest.er1
15628   cat conftest.err >&5
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); } &&
15631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15632   { (case "(($ac_try" in
15633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634   *) ac_try_echo=$ac_try;;
15635 esac
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637   (eval "$ac_try") 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; } &&
15641          { ac_try='test -s conftest.$ac_objext'
15642   { (case "(($ac_try" in
15643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644   *) ac_try_echo=$ac_try;;
15645 esac
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647   (eval "$ac_try") 2>&5
15648   ac_status=$?
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); }; }; then
15651   ac_header_compiler=yes
15652 else
15653   echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15655
15656         ac_header_compiler=no
15657 fi
15658
15659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15661 echo "${ECHO_T}$ac_header_compiler" >&6; }
15662
15663 # Is the header present?
15664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15666 cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h.  */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h.  */
15672 #include <$ac_header>
15673 _ACEOF
15674 if { (ac_try="$ac_cpp conftest.$ac_ext"
15675 case "(($ac_try" in
15676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677   *) ac_try_echo=$ac_try;;
15678 esac
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15681   ac_status=$?
15682   grep -v '^ *+' conftest.er1 >conftest.err
15683   rm -f conftest.er1
15684   cat conftest.err >&5
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); } >/dev/null; then
15687   if test -s conftest.err; then
15688     ac_cpp_err=$ac_c_preproc_warn_flag
15689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15690   else
15691     ac_cpp_err=
15692   fi
15693 else
15694   ac_cpp_err=yes
15695 fi
15696 if test -z "$ac_cpp_err"; then
15697   ac_header_preproc=yes
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702   ac_header_preproc=no
15703 fi
15704
15705 rm -f conftest.err conftest.$ac_ext
15706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15707 echo "${ECHO_T}$ac_header_preproc" >&6; }
15708
15709 # So?  What about this header?
15710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15711   yes:no: )
15712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15716     ac_header_preproc=yes
15717     ;;
15718   no:yes:* )
15719     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15721     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15722 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15723     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15725     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15726 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15729     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15731     ( cat <<\_ASBOX
15732 ## ------------------------------------ ##
15733 ## Report this to http://llvm.org/bugs/ ##
15734 ## ------------------------------------ ##
15735 _ASBOX
15736      ) | sed "s/^/$as_me: WARNING:     /" >&2
15737     ;;
15738 esac
15739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15742   echo $ECHO_N "(cached) $ECHO_C" >&6
15743 else
15744   eval "$as_ac_Header=\$ac_header_preproc"
15745 fi
15746 ac_res=`eval echo '${'$as_ac_Header'}'`
15747                { echo "$as_me:$LINENO: result: $ac_res" >&5
15748 echo "${ECHO_T}$ac_res" >&6; }
15749
15750 fi
15751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15752   cat >>confdefs.h <<_ACEOF
15753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15754 _ACEOF
15755  HAVE_PTHREAD=1
15756
15757 else
15758   HAVE_PTHREAD=0
15759
15760 fi
15761
15762 done
15763
15764 else
15765   HAVE_PTHREAD=0
15766
15767 fi
15768
15769 if test "$llvm_cv_enable_libffi" = "yes" ; then
15770
15771
15772 for ac_header in ffi.h ffi/ffi.h
15773 do
15774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15776   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15779   echo $ECHO_N "(cached) $ECHO_C" >&6
15780 fi
15781 ac_res=`eval echo '${'$as_ac_Header'}'`
15782                { echo "$as_me:$LINENO: result: $ac_res" >&5
15783 echo "${ECHO_T}$ac_res" >&6; }
15784 else
15785   # Is the header compilable?
15786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15788 cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h.  */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h.  */
15794 $ac_includes_default
15795 #include <$ac_header>
15796 _ACEOF
15797 rm -f conftest.$ac_objext
15798 if { (ac_try="$ac_compile"
15799 case "(($ac_try" in
15800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801   *) ac_try_echo=$ac_try;;
15802 esac
15803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15804   (eval "$ac_compile") 2>conftest.er1
15805   ac_status=$?
15806   grep -v '^ *+' conftest.er1 >conftest.err
15807   rm -f conftest.er1
15808   cat conftest.err >&5
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); } &&
15811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15812   { (case "(($ac_try" in
15813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814   *) ac_try_echo=$ac_try;;
15815 esac
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817   (eval "$ac_try") 2>&5
15818   ac_status=$?
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); }; } &&
15821          { ac_try='test -s conftest.$ac_objext'
15822   { (case "(($ac_try" in
15823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824   *) ac_try_echo=$ac_try;;
15825 esac
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827   (eval "$ac_try") 2>&5
15828   ac_status=$?
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); }; }; then
15831   ac_header_compiler=yes
15832 else
15833   echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15835
15836         ac_header_compiler=no
15837 fi
15838
15839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15841 echo "${ECHO_T}$ac_header_compiler" >&6; }
15842
15843 # Is the header present?
15844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15846 cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h.  */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h.  */
15852 #include <$ac_header>
15853 _ACEOF
15854 if { (ac_try="$ac_cpp conftest.$ac_ext"
15855 case "(($ac_try" in
15856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857   *) ac_try_echo=$ac_try;;
15858 esac
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15861   ac_status=$?
15862   grep -v '^ *+' conftest.er1 >conftest.err
15863   rm -f conftest.er1
15864   cat conftest.err >&5
15865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866   (exit $ac_status); } >/dev/null; then
15867   if test -s conftest.err; then
15868     ac_cpp_err=$ac_c_preproc_warn_flag
15869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15870   else
15871     ac_cpp_err=
15872   fi
15873 else
15874   ac_cpp_err=yes
15875 fi
15876 if test -z "$ac_cpp_err"; then
15877   ac_header_preproc=yes
15878 else
15879   echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15881
15882   ac_header_preproc=no
15883 fi
15884
15885 rm -f conftest.err conftest.$ac_ext
15886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15887 echo "${ECHO_T}$ac_header_preproc" >&6; }
15888
15889 # So?  What about this header?
15890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15891   yes:no: )
15892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15896     ac_header_preproc=yes
15897     ;;
15898   no:yes:* )
15899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15901     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15902 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15903     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15905     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15906 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15909     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15911     ( cat <<\_ASBOX
15912 ## ------------------------------------ ##
15913 ## Report this to http://llvm.org/bugs/ ##
15914 ## ------------------------------------ ##
15915 _ASBOX
15916      ) | sed "s/^/$as_me: WARNING:     /" >&2
15917     ;;
15918 esac
15919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15922   echo $ECHO_N "(cached) $ECHO_C" >&6
15923 else
15924   eval "$as_ac_Header=\$ac_header_preproc"
15925 fi
15926 ac_res=`eval echo '${'$as_ac_Header'}'`
15927                { echo "$as_me:$LINENO: result: $ac_res" >&5
15928 echo "${ECHO_T}$ac_res" >&6; }
15929
15930 fi
15931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15932   cat >>confdefs.h <<_ACEOF
15933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15934 _ACEOF
15935
15936 fi
15937
15938 done
15939
15940 fi
15941
15942
15943 for ac_header in CrashReporterClient.h
15944 do
15945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15947   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950   echo $ECHO_N "(cached) $ECHO_C" >&6
15951 fi
15952 ac_res=`eval echo '${'$as_ac_Header'}'`
15953                { echo "$as_me:$LINENO: result: $ac_res" >&5
15954 echo "${ECHO_T}$ac_res" >&6; }
15955 else
15956   # Is the header compilable?
15957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h.  */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h.  */
15965 $ac_includes_default
15966 #include <$ac_header>
15967 _ACEOF
15968 rm -f conftest.$ac_objext
15969 if { (ac_try="$ac_compile"
15970 case "(($ac_try" in
15971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972   *) ac_try_echo=$ac_try;;
15973 esac
15974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15975   (eval "$ac_compile") 2>conftest.er1
15976   ac_status=$?
15977   grep -v '^ *+' conftest.er1 >conftest.err
15978   rm -f conftest.er1
15979   cat conftest.err >&5
15980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981   (exit $ac_status); } &&
15982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15983   { (case "(($ac_try" in
15984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985   *) ac_try_echo=$ac_try;;
15986 esac
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988   (eval "$ac_try") 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); }; } &&
15992          { ac_try='test -s conftest.$ac_objext'
15993   { (case "(($ac_try" in
15994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995   *) ac_try_echo=$ac_try;;
15996 esac
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998   (eval "$ac_try") 2>&5
15999   ac_status=$?
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); }; }; then
16002   ac_header_compiler=yes
16003 else
16004   echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16006
16007         ac_header_compiler=no
16008 fi
16009
16010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16012 echo "${ECHO_T}$ac_header_compiler" >&6; }
16013
16014 # Is the header present?
16015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16017 cat >conftest.$ac_ext <<_ACEOF
16018 /* confdefs.h.  */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h.  */
16023 #include <$ac_header>
16024 _ACEOF
16025 if { (ac_try="$ac_cpp conftest.$ac_ext"
16026 case "(($ac_try" in
16027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028   *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16032   ac_status=$?
16033   grep -v '^ *+' conftest.er1 >conftest.err
16034   rm -f conftest.er1
16035   cat conftest.err >&5
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } >/dev/null; then
16038   if test -s conftest.err; then
16039     ac_cpp_err=$ac_c_preproc_warn_flag
16040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16041   else
16042     ac_cpp_err=
16043   fi
16044 else
16045   ac_cpp_err=yes
16046 fi
16047 if test -z "$ac_cpp_err"; then
16048   ac_header_preproc=yes
16049 else
16050   echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053   ac_header_preproc=no
16054 fi
16055
16056 rm -f conftest.err conftest.$ac_ext
16057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16058 echo "${ECHO_T}$ac_header_preproc" >&6; }
16059
16060 # So?  What about this header?
16061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16062   yes:no: )
16063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16067     ac_header_preproc=yes
16068     ;;
16069   no:yes:* )
16070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16072     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16073 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16074     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16076     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16077 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16080     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16082     ( cat <<\_ASBOX
16083 ## ------------------------------------ ##
16084 ## Report this to http://llvm.org/bugs/ ##
16085 ## ------------------------------------ ##
16086 _ASBOX
16087      ) | sed "s/^/$as_me: WARNING:     /" >&2
16088     ;;
16089 esac
16090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16093   echo $ECHO_N "(cached) $ECHO_C" >&6
16094 else
16095   eval "$as_ac_Header=\$ac_header_preproc"
16096 fi
16097 ac_res=`eval echo '${'$as_ac_Header'}'`
16098                { echo "$as_me:$LINENO: result: $ac_res" >&5
16099 echo "${ECHO_T}$ac_res" >&6; }
16100
16101 fi
16102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16103   cat >>confdefs.h <<_ACEOF
16104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16105 _ACEOF
16106
16107 fi
16108
16109 done
16110
16111
16112 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16113 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h.  */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h.  */
16120 extern const char *__crashreporter_info__;
16121       int main() {
16122         __crashreporter_info__ = "test";
16123         return 0;
16124       }
16125
16126 _ACEOF
16127 rm -f conftest.$ac_objext conftest$ac_exeext
16128 if { (ac_try="$ac_link"
16129 case "(($ac_try" in
16130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131   *) ac_try_echo=$ac_try;;
16132 esac
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134   (eval "$ac_link") 2>conftest.er1
16135   ac_status=$?
16136   grep -v '^ *+' conftest.er1 >conftest.err
16137   rm -f conftest.er1
16138   cat conftest.err >&5
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); } &&
16141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16142   { (case "(($ac_try" in
16143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144   *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147   (eval "$ac_try") 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }; } &&
16151          { ac_try='test -s conftest$ac_exeext'
16152   { (case "(($ac_try" in
16153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16154   *) ac_try_echo=$ac_try;;
16155 esac
16156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16157   (eval "$ac_try") 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; }; then
16161   { echo "$as_me:$LINENO: result: yes" >&5
16162 echo "${ECHO_T}yes" >&6; }
16163
16164 cat >>confdefs.h <<\_ACEOF
16165 #define HAVE_CRASHREPORTER_INFO 1
16166 _ACEOF
16167
16168 else
16169   echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16171
16172         { echo "$as_me:$LINENO: result: no" >&5
16173 echo "${ECHO_T}no" >&6; }
16174
16175 cat >>confdefs.h <<\_ACEOF
16176 #define HAVE_CRASHREPORTER_INFO 0
16177 _ACEOF
16178
16179 fi
16180
16181 rm -f core conftest.err conftest.$ac_objext \
16182       conftest$ac_exeext conftest.$ac_ext
16183
16184
16185
16186
16187   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16188 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16189 if test "${ac_cv_huge_val_sanity+set}" = set; then
16190   echo $ECHO_N "(cached) $ECHO_C" >&6
16191 else
16192
16193     ac_ext=cpp
16194 ac_cpp='$CXXCPP $CPPFLAGS'
16195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16198
16199     ac_save_CXXFLAGS=$CXXFLAGS
16200     CXXFLAGS="$CXXFLAGS -pedantic"
16201     if test "$cross_compiling" = yes; then
16202   ac_cv_huge_val_sanity=yes
16203 else
16204   cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h.  */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h.  */
16210 #include <math.h>
16211 int
16212 main ()
16213 {
16214 double x = HUGE_VAL; return x != x;
16215   ;
16216   return 0;
16217 }
16218 _ACEOF
16219 rm -f conftest$ac_exeext
16220 if { (ac_try="$ac_link"
16221 case "(($ac_try" in
16222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223   *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226   (eval "$ac_link") 2>&5
16227   ac_status=$?
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16230   { (case "(($ac_try" in
16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232   *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235   (eval "$ac_try") 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; }; then
16239   ac_cv_huge_val_sanity=yes
16240 else
16241   echo "$as_me: program exited with status $ac_status" >&5
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16244
16245 ( exit $ac_status )
16246 ac_cv_huge_val_sanity=no
16247 fi
16248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16249 fi
16250
16251
16252     CXXFLAGS=$ac_save_CXXFLAGS
16253     ac_ext=c
16254 ac_cpp='$CPP $CPPFLAGS'
16255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16258
16259
16260 fi
16261 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16262 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16263   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16264
16265
16266 { echo "$as_me:$LINENO: checking for pid_t" >&5
16267 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16268 if test "${ac_cv_type_pid_t+set}" = set; then
16269   echo $ECHO_N "(cached) $ECHO_C" >&6
16270 else
16271   cat >conftest.$ac_ext <<_ACEOF
16272 /* confdefs.h.  */
16273 _ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h.  */
16277 $ac_includes_default
16278 typedef pid_t ac__type_new_;
16279 int
16280 main ()
16281 {
16282 if ((ac__type_new_ *) 0)
16283   return 0;
16284 if (sizeof (ac__type_new_))
16285   return 0;
16286   ;
16287   return 0;
16288 }
16289 _ACEOF
16290 rm -f conftest.$ac_objext
16291 if { (ac_try="$ac_compile"
16292 case "(($ac_try" in
16293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294   *) ac_try_echo=$ac_try;;
16295 esac
16296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297   (eval "$ac_compile") 2>conftest.er1
16298   ac_status=$?
16299   grep -v '^ *+' conftest.er1 >conftest.err
16300   rm -f conftest.er1
16301   cat conftest.err >&5
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); } &&
16304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305   { (case "(($ac_try" in
16306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307   *) ac_try_echo=$ac_try;;
16308 esac
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310   (eval "$ac_try") 2>&5
16311   ac_status=$?
16312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); }; } &&
16314          { ac_try='test -s conftest.$ac_objext'
16315   { (case "(($ac_try" in
16316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317   *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320   (eval "$ac_try") 2>&5
16321   ac_status=$?
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); }; }; then
16324   ac_cv_type_pid_t=yes
16325 else
16326   echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16328
16329         ac_cv_type_pid_t=no
16330 fi
16331
16332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 fi
16334 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16335 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16336 if test $ac_cv_type_pid_t = yes; then
16337   :
16338 else
16339
16340 cat >>confdefs.h <<_ACEOF
16341 #define pid_t int
16342 _ACEOF
16343
16344 fi
16345
16346 { echo "$as_me:$LINENO: checking for size_t" >&5
16347 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16348 if test "${ac_cv_type_size_t+set}" = set; then
16349   echo $ECHO_N "(cached) $ECHO_C" >&6
16350 else
16351   cat >conftest.$ac_ext <<_ACEOF
16352 /* confdefs.h.  */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h.  */
16357 $ac_includes_default
16358 typedef size_t ac__type_new_;
16359 int
16360 main ()
16361 {
16362 if ((ac__type_new_ *) 0)
16363   return 0;
16364 if (sizeof (ac__type_new_))
16365   return 0;
16366   ;
16367   return 0;
16368 }
16369 _ACEOF
16370 rm -f conftest.$ac_objext
16371 if { (ac_try="$ac_compile"
16372 case "(($ac_try" in
16373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374   *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377   (eval "$ac_compile") 2>conftest.er1
16378   ac_status=$?
16379   grep -v '^ *+' conftest.er1 >conftest.err
16380   rm -f conftest.er1
16381   cat conftest.err >&5
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); } &&
16384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16385   { (case "(($ac_try" in
16386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387   *) ac_try_echo=$ac_try;;
16388 esac
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390   (eval "$ac_try") 2>&5
16391   ac_status=$?
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); }; } &&
16394          { ac_try='test -s conftest.$ac_objext'
16395   { (case "(($ac_try" in
16396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16397   *) ac_try_echo=$ac_try;;
16398 esac
16399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16400   (eval "$ac_try") 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); }; }; then
16404   ac_cv_type_size_t=yes
16405 else
16406   echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16408
16409         ac_cv_type_size_t=no
16410 fi
16411
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413 fi
16414 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16415 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16416 if test $ac_cv_type_size_t = yes; then
16417   :
16418 else
16419
16420 cat >>confdefs.h <<_ACEOF
16421 #define size_t unsigned int
16422 _ACEOF
16423
16424 fi
16425
16426
16427 cat >>confdefs.h <<_ACEOF
16428 #define RETSIGTYPE void
16429 _ACEOF
16430
16431 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16432 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16433 if test "${ac_cv_struct_tm+set}" = set; then
16434   echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436   cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h.  */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h.  */
16442 #include <sys/types.h>
16443 #include <time.h>
16444
16445 int
16446 main ()
16447 {
16448 struct tm *tp; tp->tm_sec;
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext
16454 if { (ac_try="$ac_compile"
16455 case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_compile") 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } &&
16467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468   { (case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_try") 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); }; } &&
16477          { ac_try='test -s conftest.$ac_objext'
16478   { (case "(($ac_try" in
16479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480   *) ac_try_echo=$ac_try;;
16481 esac
16482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483   (eval "$ac_try") 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); }; }; then
16487   ac_cv_struct_tm=time.h
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492         ac_cv_struct_tm=sys/time.h
16493 fi
16494
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496 fi
16497 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16498 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16499 if test $ac_cv_struct_tm = sys/time.h; then
16500
16501 cat >>confdefs.h <<\_ACEOF
16502 #define TM_IN_SYS_TIME 1
16503 _ACEOF
16504
16505 fi
16506
16507 { echo "$as_me:$LINENO: checking for int64_t" >&5
16508 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16509 if test "${ac_cv_type_int64_t+set}" = set; then
16510   echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512   cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h.  */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h.  */
16518 $ac_includes_default
16519 typedef int64_t ac__type_new_;
16520 int
16521 main ()
16522 {
16523 if ((ac__type_new_ *) 0)
16524   return 0;
16525 if (sizeof (ac__type_new_))
16526   return 0;
16527   ;
16528   return 0;
16529 }
16530 _ACEOF
16531 rm -f conftest.$ac_objext
16532 if { (ac_try="$ac_compile"
16533 case "(($ac_try" in
16534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535   *) ac_try_echo=$ac_try;;
16536 esac
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538   (eval "$ac_compile") 2>conftest.er1
16539   ac_status=$?
16540   grep -v '^ *+' conftest.er1 >conftest.err
16541   rm -f conftest.er1
16542   cat conftest.err >&5
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); } &&
16545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16546   { (case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551   (eval "$ac_try") 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); }; } &&
16555          { ac_try='test -s conftest.$ac_objext'
16556   { (case "(($ac_try" in
16557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558   *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561   (eval "$ac_try") 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); }; }; then
16565   ac_cv_type_int64_t=yes
16566 else
16567   echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16569
16570         ac_cv_type_int64_t=no
16571 fi
16572
16573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16574 fi
16575 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16576 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16577 if test $ac_cv_type_int64_t = yes; then
16578
16579 cat >>confdefs.h <<_ACEOF
16580 #define HAVE_INT64_T 1
16581 _ACEOF
16582
16583
16584 else
16585   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16586 echo "$as_me: error: Type int64_t required but not found" >&2;}
16587    { (exit 1); exit 1; }; }
16588 fi
16589
16590 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16591 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16592 if test "${ac_cv_type_uint64_t+set}" = set; then
16593   echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595   cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h.  */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h.  */
16601 $ac_includes_default
16602 typedef uint64_t ac__type_new_;
16603 int
16604 main ()
16605 {
16606 if ((ac__type_new_ *) 0)
16607   return 0;
16608 if (sizeof (ac__type_new_))
16609   return 0;
16610   ;
16611   return 0;
16612 }
16613 _ACEOF
16614 rm -f conftest.$ac_objext
16615 if { (ac_try="$ac_compile"
16616 case "(($ac_try" in
16617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618   *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621   (eval "$ac_compile") 2>conftest.er1
16622   ac_status=$?
16623   grep -v '^ *+' conftest.er1 >conftest.err
16624   rm -f conftest.er1
16625   cat conftest.err >&5
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); } &&
16628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16629   { (case "(($ac_try" in
16630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631   *) ac_try_echo=$ac_try;;
16632 esac
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634   (eval "$ac_try") 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); }; } &&
16638          { ac_try='test -s conftest.$ac_objext'
16639   { (case "(($ac_try" in
16640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641   *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644   (eval "$ac_try") 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   ac_cv_type_uint64_t=yes
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653         ac_cv_type_uint64_t=no
16654 fi
16655
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657 fi
16658 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16659 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16660 if test $ac_cv_type_uint64_t = yes; then
16661
16662 cat >>confdefs.h <<_ACEOF
16663 #define HAVE_UINT64_T 1
16664 _ACEOF
16665
16666
16667 else
16668   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16669 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16670 if test "${ac_cv_type_u_int64_t+set}" = set; then
16671   echo $ECHO_N "(cached) $ECHO_C" >&6
16672 else
16673   cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h.  */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h.  */
16679 $ac_includes_default
16680 typedef u_int64_t ac__type_new_;
16681 int
16682 main ()
16683 {
16684 if ((ac__type_new_ *) 0)
16685   return 0;
16686 if (sizeof (ac__type_new_))
16687   return 0;
16688   ;
16689   return 0;
16690 }
16691 _ACEOF
16692 rm -f conftest.$ac_objext
16693 if { (ac_try="$ac_compile"
16694 case "(($ac_try" in
16695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696   *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699   (eval "$ac_compile") 2>conftest.er1
16700   ac_status=$?
16701   grep -v '^ *+' conftest.er1 >conftest.err
16702   rm -f conftest.er1
16703   cat conftest.err >&5
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); } &&
16706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707   { (case "(($ac_try" in
16708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709   *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712   (eval "$ac_try") 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; } &&
16716          { ac_try='test -s conftest.$ac_objext'
16717   { (case "(($ac_try" in
16718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719   *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722   (eval "$ac_try") 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; }; then
16726   ac_cv_type_u_int64_t=yes
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731         ac_cv_type_u_int64_t=no
16732 fi
16733
16734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16735 fi
16736 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16737 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16738 if test $ac_cv_type_u_int64_t = yes; then
16739
16740 cat >>confdefs.h <<_ACEOF
16741 #define HAVE_U_INT64_T 1
16742 _ACEOF
16743
16744
16745 else
16746   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16747 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16748    { (exit 1); exit 1; }; }
16749 fi
16750
16751 fi
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16763 do
16764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16768   echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770   cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16778 #define $ac_func innocuous_$ac_func
16779
16780 /* System header to define __stub macros and hopefully few prototypes,
16781     which can conflict with char $ac_func (); below.
16782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16783     <limits.h> exists even on freestanding compilers.  */
16784
16785 #ifdef __STDC__
16786 # include <limits.h>
16787 #else
16788 # include <assert.h>
16789 #endif
16790
16791 #undef $ac_func
16792
16793 /* Override any GCC internal prototype to avoid an error.
16794    Use char because int might match the return type of a GCC
16795    builtin and then its argument prototype would still apply.  */
16796 #ifdef __cplusplus
16797 extern "C"
16798 #endif
16799 char $ac_func ();
16800 /* The GNU C library defines this for functions which it implements
16801     to always fail with ENOSYS.  Some functions are actually named
16802     something starting with __ and the normal name is an alias.  */
16803 #if defined __stub_$ac_func || defined __stub___$ac_func
16804 choke me
16805 #endif
16806
16807 int
16808 main ()
16809 {
16810 return $ac_func ();
16811   ;
16812   return 0;
16813 }
16814 _ACEOF
16815 rm -f conftest.$ac_objext conftest$ac_exeext
16816 if { (ac_try="$ac_link"
16817 case "(($ac_try" in
16818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819   *) ac_try_echo=$ac_try;;
16820 esac
16821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822   (eval "$ac_link") 2>conftest.er1
16823   ac_status=$?
16824   grep -v '^ *+' conftest.er1 >conftest.err
16825   rm -f conftest.er1
16826   cat conftest.err >&5
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); } &&
16829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16830   { (case "(($ac_try" in
16831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832   *) ac_try_echo=$ac_try;;
16833 esac
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835   (eval "$ac_try") 2>&5
16836   ac_status=$?
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); }; } &&
16839          { ac_try='test -s conftest$ac_exeext'
16840   { (case "(($ac_try" in
16841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842   *) ac_try_echo=$ac_try;;
16843 esac
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845   (eval "$ac_try") 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); }; }; then
16849   eval "$as_ac_var=yes"
16850 else
16851   echo "$as_me: failed program was:" >&5
16852 sed 's/^/| /' conftest.$ac_ext >&5
16853
16854         eval "$as_ac_var=no"
16855 fi
16856
16857 rm -f core conftest.err conftest.$ac_objext \
16858       conftest$ac_exeext conftest.$ac_ext
16859 fi
16860 ac_res=`eval echo '${'$as_ac_var'}'`
16861                { echo "$as_me:$LINENO: result: $ac_res" >&5
16862 echo "${ECHO_T}$ac_res" >&6; }
16863 if test `eval echo '${'$as_ac_var'}'` = yes; then
16864   cat >>confdefs.h <<_ACEOF
16865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16866 _ACEOF
16867
16868 fi
16869 done
16870
16871
16872
16873
16874
16875 for ac_func in powf fmodf strtof round
16876 do
16877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16881   echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883   cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h.  */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h.  */
16889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16891 #define $ac_func innocuous_$ac_func
16892
16893 /* System header to define __stub macros and hopefully few prototypes,
16894     which can conflict with char $ac_func (); below.
16895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16896     <limits.h> exists even on freestanding compilers.  */
16897
16898 #ifdef __STDC__
16899 # include <limits.h>
16900 #else
16901 # include <assert.h>
16902 #endif
16903
16904 #undef $ac_func
16905
16906 /* Override any GCC internal prototype to avoid an error.
16907    Use char because int might match the return type of a GCC
16908    builtin and then its argument prototype would still apply.  */
16909 #ifdef __cplusplus
16910 extern "C"
16911 #endif
16912 char $ac_func ();
16913 /* The GNU C library defines this for functions which it implements
16914     to always fail with ENOSYS.  Some functions are actually named
16915     something starting with __ and the normal name is an alias.  */
16916 #if defined __stub_$ac_func || defined __stub___$ac_func
16917 choke me
16918 #endif
16919
16920 int
16921 main ()
16922 {
16923 return $ac_func ();
16924   ;
16925   return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (ac_try="$ac_link"
16930 case "(($ac_try" in
16931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932   *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935   (eval "$ac_link") 2>conftest.er1
16936   ac_status=$?
16937   grep -v '^ *+' conftest.er1 >conftest.err
16938   rm -f conftest.er1
16939   cat conftest.err >&5
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); } &&
16942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16943   { (case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948   (eval "$ac_try") 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; } &&
16952          { ac_try='test -s conftest$ac_exeext'
16953   { (case "(($ac_try" in
16954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955   *) ac_try_echo=$ac_try;;
16956 esac
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958   (eval "$ac_try") 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); }; }; then
16962   eval "$as_ac_var=yes"
16963 else
16964   echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16966
16967         eval "$as_ac_var=no"
16968 fi
16969
16970 rm -f core conftest.err conftest.$ac_objext \
16971       conftest$ac_exeext conftest.$ac_ext
16972 fi
16973 ac_res=`eval echo '${'$as_ac_var'}'`
16974                { echo "$as_me:$LINENO: result: $ac_res" >&5
16975 echo "${ECHO_T}$ac_res" >&6; }
16976 if test `eval echo '${'$as_ac_var'}'` = yes; then
16977   cat >>confdefs.h <<_ACEOF
16978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16979 _ACEOF
16980
16981 fi
16982 done
16983
16984
16985
16986
16987
16988
16989 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16990 do
16991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16995   echo $ECHO_N "(cached) $ECHO_C" >&6
16996 else
16997   cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h.  */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h.  */
17003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17005 #define $ac_func innocuous_$ac_func
17006
17007 /* System header to define __stub macros and hopefully few prototypes,
17008     which can conflict with char $ac_func (); below.
17009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17010     <limits.h> exists even on freestanding compilers.  */
17011
17012 #ifdef __STDC__
17013 # include <limits.h>
17014 #else
17015 # include <assert.h>
17016 #endif
17017
17018 #undef $ac_func
17019
17020 /* Override any GCC internal prototype to avoid an error.
17021    Use char because int might match the return type of a GCC
17022    builtin and then its argument prototype would still apply.  */
17023 #ifdef __cplusplus
17024 extern "C"
17025 #endif
17026 char $ac_func ();
17027 /* The GNU C library defines this for functions which it implements
17028     to always fail with ENOSYS.  Some functions are actually named
17029     something starting with __ and the normal name is an alias.  */
17030 #if defined __stub_$ac_func || defined __stub___$ac_func
17031 choke me
17032 #endif
17033
17034 int
17035 main ()
17036 {
17037 return $ac_func ();
17038   ;
17039   return 0;
17040 }
17041 _ACEOF
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (ac_try="$ac_link"
17044 case "(($ac_try" in
17045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046   *) ac_try_echo=$ac_try;;
17047 esac
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049   (eval "$ac_link") 2>conftest.er1
17050   ac_status=$?
17051   grep -v '^ *+' conftest.er1 >conftest.err
17052   rm -f conftest.er1
17053   cat conftest.err >&5
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); } &&
17056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17057   { (case "(($ac_try" in
17058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059   *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062   (eval "$ac_try") 2>&5
17063   ac_status=$?
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; } &&
17066          { ac_try='test -s conftest$ac_exeext'
17067   { (case "(($ac_try" in
17068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069   *) ac_try_echo=$ac_try;;
17070 esac
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072   (eval "$ac_try") 2>&5
17073   ac_status=$?
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); }; }; then
17076   eval "$as_ac_var=yes"
17077 else
17078   echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17080
17081         eval "$as_ac_var=no"
17082 fi
17083
17084 rm -f core conftest.err conftest.$ac_objext \
17085       conftest$ac_exeext conftest.$ac_ext
17086 fi
17087 ac_res=`eval echo '${'$as_ac_var'}'`
17088                { echo "$as_me:$LINENO: result: $ac_res" >&5
17089 echo "${ECHO_T}$ac_res" >&6; }
17090 if test `eval echo '${'$as_ac_var'}'` = yes; then
17091   cat >>confdefs.h <<_ACEOF
17092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17093 _ACEOF
17094
17095 fi
17096 done
17097
17098
17099
17100
17101 for ac_func in isatty mkdtemp mkstemp
17102 do
17103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17107   echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109   cat >conftest.$ac_ext <<_ACEOF
17110 /* confdefs.h.  */
17111 _ACEOF
17112 cat confdefs.h >>conftest.$ac_ext
17113 cat >>conftest.$ac_ext <<_ACEOF
17114 /* end confdefs.h.  */
17115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17117 #define $ac_func innocuous_$ac_func
17118
17119 /* System header to define __stub macros and hopefully few prototypes,
17120     which can conflict with char $ac_func (); below.
17121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17122     <limits.h> exists even on freestanding compilers.  */
17123
17124 #ifdef __STDC__
17125 # include <limits.h>
17126 #else
17127 # include <assert.h>
17128 #endif
17129
17130 #undef $ac_func
17131
17132 /* Override any GCC internal prototype to avoid an error.
17133    Use char because int might match the return type of a GCC
17134    builtin and then its argument prototype would still apply.  */
17135 #ifdef __cplusplus
17136 extern "C"
17137 #endif
17138 char $ac_func ();
17139 /* The GNU C library defines this for functions which it implements
17140     to always fail with ENOSYS.  Some functions are actually named
17141     something starting with __ and the normal name is an alias.  */
17142 #if defined __stub_$ac_func || defined __stub___$ac_func
17143 choke me
17144 #endif
17145
17146 int
17147 main ()
17148 {
17149 return $ac_func ();
17150   ;
17151   return 0;
17152 }
17153 _ACEOF
17154 rm -f conftest.$ac_objext conftest$ac_exeext
17155 if { (ac_try="$ac_link"
17156 case "(($ac_try" in
17157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158   *) ac_try_echo=$ac_try;;
17159 esac
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161   (eval "$ac_link") 2>conftest.er1
17162   ac_status=$?
17163   grep -v '^ *+' conftest.er1 >conftest.err
17164   rm -f conftest.er1
17165   cat conftest.err >&5
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); } &&
17168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17169   { (case "(($ac_try" in
17170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171   *) ac_try_echo=$ac_try;;
17172 esac
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174   (eval "$ac_try") 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); }; } &&
17178          { ac_try='test -s conftest$ac_exeext'
17179   { (case "(($ac_try" in
17180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181   *) ac_try_echo=$ac_try;;
17182 esac
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184   (eval "$ac_try") 2>&5
17185   ac_status=$?
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); }; }; then
17188   eval "$as_ac_var=yes"
17189 else
17190   echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17192
17193         eval "$as_ac_var=no"
17194 fi
17195
17196 rm -f core conftest.err conftest.$ac_objext \
17197       conftest$ac_exeext conftest.$ac_ext
17198 fi
17199 ac_res=`eval echo '${'$as_ac_var'}'`
17200                { echo "$as_me:$LINENO: result: $ac_res" >&5
17201 echo "${ECHO_T}$ac_res" >&6; }
17202 if test `eval echo '${'$as_ac_var'}'` = yes; then
17203   cat >>confdefs.h <<_ACEOF
17204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17205 _ACEOF
17206
17207 fi
17208 done
17209
17210
17211
17212
17213
17214
17215
17216
17217 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17218 do
17219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225   cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h.  */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h.  */
17231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17233 #define $ac_func innocuous_$ac_func
17234
17235 /* System header to define __stub macros and hopefully few prototypes,
17236     which can conflict with char $ac_func (); below.
17237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238     <limits.h> exists even on freestanding compilers.  */
17239
17240 #ifdef __STDC__
17241 # include <limits.h>
17242 #else
17243 # include <assert.h>
17244 #endif
17245
17246 #undef $ac_func
17247
17248 /* Override any GCC internal prototype to avoid an error.
17249    Use char because int might match the return type of a GCC
17250    builtin and then its argument prototype would still apply.  */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 char $ac_func ();
17255 /* The GNU C library defines this for functions which it implements
17256     to always fail with ENOSYS.  Some functions are actually named
17257     something starting with __ and the normal name is an alias.  */
17258 #if defined __stub_$ac_func || defined __stub___$ac_func
17259 choke me
17260 #endif
17261
17262 int
17263 main ()
17264 {
17265 return $ac_func ();
17266   ;
17267   return 0;
17268 }
17269 _ACEOF
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (ac_try="$ac_link"
17272 case "(($ac_try" in
17273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274   *) ac_try_echo=$ac_try;;
17275 esac
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277   (eval "$ac_link") 2>conftest.er1
17278   ac_status=$?
17279   grep -v '^ *+' conftest.er1 >conftest.err
17280   rm -f conftest.er1
17281   cat conftest.err >&5
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); } &&
17284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17285   { (case "(($ac_try" in
17286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287   *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290   (eval "$ac_try") 2>&5
17291   ac_status=$?
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); }; } &&
17294          { ac_try='test -s conftest$ac_exeext'
17295   { (case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_try") 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; }; then
17304   eval "$as_ac_var=yes"
17305 else
17306   echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309         eval "$as_ac_var=no"
17310 fi
17311
17312 rm -f core conftest.err conftest.$ac_objext \
17313       conftest$ac_exeext conftest.$ac_ext
17314 fi
17315 ac_res=`eval echo '${'$as_ac_var'}'`
17316                { echo "$as_me:$LINENO: result: $ac_res" >&5
17317 echo "${ECHO_T}$ac_res" >&6; }
17318 if test `eval echo '${'$as_ac_var'}'` = yes; then
17319   cat >>confdefs.h <<_ACEOF
17320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17321 _ACEOF
17322
17323 fi
17324 done
17325
17326
17327
17328
17329
17330 for ac_func in strerror strerror_r setenv arc4random
17331 do
17332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17336   echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338   cat >conftest.$ac_ext <<_ACEOF
17339 /* confdefs.h.  */
17340 _ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h.  */
17344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17346 #define $ac_func innocuous_$ac_func
17347
17348 /* System header to define __stub macros and hopefully few prototypes,
17349     which can conflict with char $ac_func (); below.
17350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17351     <limits.h> exists even on freestanding compilers.  */
17352
17353 #ifdef __STDC__
17354 # include <limits.h>
17355 #else
17356 # include <assert.h>
17357 #endif
17358
17359 #undef $ac_func
17360
17361 /* Override any GCC internal prototype to avoid an error.
17362    Use char because int might match the return type of a GCC
17363    builtin and then its argument prototype would still apply.  */
17364 #ifdef __cplusplus
17365 extern "C"
17366 #endif
17367 char $ac_func ();
17368 /* The GNU C library defines this for functions which it implements
17369     to always fail with ENOSYS.  Some functions are actually named
17370     something starting with __ and the normal name is an alias.  */
17371 #if defined __stub_$ac_func || defined __stub___$ac_func
17372 choke me
17373 #endif
17374
17375 int
17376 main ()
17377 {
17378 return $ac_func ();
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387   *) ac_try_echo=$ac_try;;
17388 esac
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390   (eval "$ac_link") 2>conftest.er1
17391   ac_status=$?
17392   grep -v '^ *+' conftest.er1 >conftest.err
17393   rm -f conftest.er1
17394   cat conftest.err >&5
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); } &&
17397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17398   { (case "(($ac_try" in
17399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400   *) ac_try_echo=$ac_try;;
17401 esac
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403   (eval "$ac_try") 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; } &&
17407          { ac_try='test -s conftest$ac_exeext'
17408   { (case "(($ac_try" in
17409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410   *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413   (eval "$ac_try") 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); }; }; then
17417   eval "$as_ac_var=yes"
17418 else
17419   echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422         eval "$as_ac_var=no"
17423 fi
17424
17425 rm -f core conftest.err conftest.$ac_objext \
17426       conftest$ac_exeext conftest.$ac_ext
17427 fi
17428 ac_res=`eval echo '${'$as_ac_var'}'`
17429                { echo "$as_me:$LINENO: result: $ac_res" >&5
17430 echo "${ECHO_T}$ac_res" >&6; }
17431 if test `eval echo '${'$as_ac_var'}'` = yes; then
17432   cat >>confdefs.h <<_ACEOF
17433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17434 _ACEOF
17435
17436 fi
17437 done
17438
17439
17440
17441
17442
17443 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17444 do
17445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17449   echo $ECHO_N "(cached) $ECHO_C" >&6
17450 else
17451   cat >conftest.$ac_ext <<_ACEOF
17452 /* confdefs.h.  */
17453 _ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h.  */
17457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17459 #define $ac_func innocuous_$ac_func
17460
17461 /* System header to define __stub macros and hopefully few prototypes,
17462     which can conflict with char $ac_func (); below.
17463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17464     <limits.h> exists even on freestanding compilers.  */
17465
17466 #ifdef __STDC__
17467 # include <limits.h>
17468 #else
17469 # include <assert.h>
17470 #endif
17471
17472 #undef $ac_func
17473
17474 /* Override any GCC internal prototype to avoid an error.
17475    Use char because int might match the return type of a GCC
17476    builtin and then its argument prototype would still apply.  */
17477 #ifdef __cplusplus
17478 extern "C"
17479 #endif
17480 char $ac_func ();
17481 /* The GNU C library defines this for functions which it implements
17482     to always fail with ENOSYS.  Some functions are actually named
17483     something starting with __ and the normal name is an alias.  */
17484 #if defined __stub_$ac_func || defined __stub___$ac_func
17485 choke me
17486 #endif
17487
17488 int
17489 main ()
17490 {
17491 return $ac_func ();
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500   *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503   (eval "$ac_link") 2>conftest.er1
17504   ac_status=$?
17505   grep -v '^ *+' conftest.er1 >conftest.err
17506   rm -f conftest.er1
17507   cat conftest.err >&5
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); } &&
17510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17511   { (case "(($ac_try" in
17512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513   *) ac_try_echo=$ac_try;;
17514 esac
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516   (eval "$ac_try") 2>&5
17517   ac_status=$?
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); }; } &&
17520          { ac_try='test -s conftest$ac_exeext'
17521   { (case "(($ac_try" in
17522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523   *) ac_try_echo=$ac_try;;
17524 esac
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526   (eval "$ac_try") 2>&5
17527   ac_status=$?
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); }; }; then
17530   eval "$as_ac_var=yes"
17531 else
17532   echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17534
17535         eval "$as_ac_var=no"
17536 fi
17537
17538 rm -f core conftest.err conftest.$ac_objext \
17539       conftest$ac_exeext conftest.$ac_ext
17540 fi
17541 ac_res=`eval echo '${'$as_ac_var'}'`
17542                { echo "$as_me:$LINENO: result: $ac_res" >&5
17543 echo "${ECHO_T}$ac_res" >&6; }
17544 if test `eval echo '${'$as_ac_var'}'` = yes; then
17545   cat >>confdefs.h <<_ACEOF
17546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17547 _ACEOF
17548
17549 fi
17550 done
17551
17552
17553
17554
17555
17556
17557 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17558 do
17559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563   echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565   cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h.  */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h.  */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17573 #define $ac_func innocuous_$ac_func
17574
17575 /* System header to define __stub macros and hopefully few prototypes,
17576     which can conflict with char $ac_func (); below.
17577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578     <limits.h> exists even on freestanding compilers.  */
17579
17580 #ifdef __STDC__
17581 # include <limits.h>
17582 #else
17583 # include <assert.h>
17584 #endif
17585
17586 #undef $ac_func
17587
17588 /* Override any GCC internal prototype to avoid an error.
17589    Use char because int might match the return type of a GCC
17590    builtin and then its argument prototype would still apply.  */
17591 #ifdef __cplusplus
17592 extern "C"
17593 #endif
17594 char $ac_func ();
17595 /* The GNU C library defines this for functions which it implements
17596     to always fail with ENOSYS.  Some functions are actually named
17597     something starting with __ and the normal name is an alias.  */
17598 #if defined __stub_$ac_func || defined __stub___$ac_func
17599 choke me
17600 #endif
17601
17602 int
17603 main ()
17604 {
17605 return $ac_func ();
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_link") 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } &&
17624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625   { (case "(($ac_try" in
17626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627   *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630   (eval "$ac_try") 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; } &&
17634          { ac_try='test -s conftest$ac_exeext'
17635   { (case "(($ac_try" in
17636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637   *) ac_try_echo=$ac_try;;
17638 esac
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640   (eval "$ac_try") 2>&5
17641   ac_status=$?
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); }; }; then
17644   eval "$as_ac_var=yes"
17645 else
17646   echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649         eval "$as_ac_var=no"
17650 fi
17651
17652 rm -f core conftest.err conftest.$ac_objext \
17653       conftest$ac_exeext conftest.$ac_ext
17654 fi
17655 ac_res=`eval echo '${'$as_ac_var'}'`
17656                { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659   cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17661 _ACEOF
17662
17663 fi
17664 done
17665
17666 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17667 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17668 if test "${llvm_cv_c_printf_a+set}" = set; then
17669   echo $ECHO_N "(cached) $ECHO_C" >&6
17670 else
17671   ac_ext=c
17672 ac_cpp='$CPP $CPPFLAGS'
17673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17676
17677  if test "$cross_compiling" = yes; then
17678   llvmac_cv_c_printf_a=no
17679 else
17680   cat >conftest.$ac_ext <<_ACEOF
17681
17682   /* confdefs.h.  */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h.  */
17687
17688 #include <stdio.h>
17689 #include <stdlib.h>
17690
17691 int
17692 main ()
17693 {
17694
17695 volatile double A, B;
17696 char Buffer[100];
17697 A = 1;
17698 A /= 10.0;
17699 sprintf(Buffer, "%a", A);
17700 B = atof(Buffer);
17701 if (A != B)
17702   return (1);
17703 if (A != 0x1.999999999999ap-4)
17704   return (1);
17705 return (0);
17706   ;
17707   return 0;
17708 }
17709 _ACEOF
17710 rm -f conftest$ac_exeext
17711 if { (ac_try="$ac_link"
17712 case "(($ac_try" in
17713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714   *) ac_try_echo=$ac_try;;
17715 esac
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717   (eval "$ac_link") 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17721   { (case "(($ac_try" in
17722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723   *) ac_try_echo=$ac_try;;
17724 esac
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726   (eval "$ac_try") 2>&5
17727   ac_status=$?
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); }; }; then
17730   llvm_cv_c_printf_a=yes
17731 else
17732   echo "$as_me: program exited with status $ac_status" >&5
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17735
17736 ( exit $ac_status )
17737 llvmac_cv_c_printf_a=no
17738 fi
17739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17740 fi
17741
17742
17743  ac_ext=c
17744 ac_cpp='$CPP $CPPFLAGS'
17745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17748
17749 fi
17750 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17751 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17752  if test "$llvm_cv_c_printf_a" = "yes"; then
17753
17754 cat >>confdefs.h <<\_ACEOF
17755 #define HAVE_PRINTF_A 1
17756 _ACEOF
17757
17758  fi
17759
17760
17761 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17762 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17763 if test "${ac_cv_func_rand48+set}" = set; then
17764   echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766   ac_ext=cpp
17767 ac_cpp='$CXXCPP $CPPFLAGS'
17768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17771
17772    cat >conftest.$ac_ext <<_ACEOF
17773 /* confdefs.h.  */
17774 _ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h.  */
17778 #include <stdlib.h>
17779 int
17780 main ()
17781 {
17782 srand48(0);lrand48();drand48();
17783   ;
17784   return 0;
17785 }
17786 _ACEOF
17787 rm -f conftest.$ac_objext
17788 if { (ac_try="$ac_compile"
17789 case "(($ac_try" in
17790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791   *) ac_try_echo=$ac_try;;
17792 esac
17793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794   (eval "$ac_compile") 2>conftest.er1
17795   ac_status=$?
17796   grep -v '^ *+' conftest.er1 >conftest.err
17797   rm -f conftest.er1
17798   cat conftest.err >&5
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); } &&
17801          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17802   { (case "(($ac_try" in
17803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804   *) ac_try_echo=$ac_try;;
17805 esac
17806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807   (eval "$ac_try") 2>&5
17808   ac_status=$?
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); }; } &&
17811          { ac_try='test -s conftest.$ac_objext'
17812   { (case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_try") 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); }; }; then
17821   ac_cv_func_rand48=yes
17822 else
17823   echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17825
17826         ac_cv_func_rand48=no
17827 fi
17828
17829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17830   ac_ext=c
17831 ac_cpp='$CPP $CPPFLAGS'
17832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17835
17836 fi
17837 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17838 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17839
17840 if test "$ac_cv_func_rand48" = "yes" ; then
17841
17842 cat >>confdefs.h <<\_ACEOF
17843 #define HAVE_RAND48 1
17844 _ACEOF
17845
17846 fi
17847
17848
17849 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17850 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17851 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17852   echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854   cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860 $ac_includes_default
17861 int
17862 main ()
17863 {
17864 #ifndef strerror_s
17865   char *p = (char *) strerror_s;
17866   return !p;
17867 #endif
17868
17869   ;
17870   return 0;
17871 }
17872 _ACEOF
17873 rm -f conftest.$ac_objext
17874 if { (ac_try="$ac_compile"
17875 case "(($ac_try" in
17876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877   *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880   (eval "$ac_compile") 2>conftest.er1
17881   ac_status=$?
17882   grep -v '^ *+' conftest.er1 >conftest.err
17883   rm -f conftest.er1
17884   cat conftest.err >&5
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); } &&
17887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17888   { (case "(($ac_try" in
17889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890   *) ac_try_echo=$ac_try;;
17891 esac
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893   (eval "$ac_try") 2>&5
17894   ac_status=$?
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); }; } &&
17897          { ac_try='test -s conftest.$ac_objext'
17898   { (case "(($ac_try" in
17899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900   *) ac_try_echo=$ac_try;;
17901 esac
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903   (eval "$ac_try") 2>&5
17904   ac_status=$?
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); }; }; then
17907   ac_cv_have_decl_strerror_s=yes
17908 else
17909   echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17911
17912         ac_cv_have_decl_strerror_s=no
17913 fi
17914
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 fi
17917 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17918 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17919 if test $ac_cv_have_decl_strerror_s = yes; then
17920
17921 cat >>confdefs.h <<_ACEOF
17922 #define HAVE_DECL_STRERROR_S 1
17923 _ACEOF
17924
17925
17926 else
17927   cat >>confdefs.h <<_ACEOF
17928 #define HAVE_DECL_STRERROR_S 0
17929 _ACEOF
17930
17931
17932 fi
17933
17934
17935
17936 if test "$llvm_cv_os_type" = "MingW" ; then
17937   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17938 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17939 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17940   echo $ECHO_N "(cached) $ECHO_C" >&6
17941 else
17942   ac_check_lib_save_LIBS=$LIBS
17943 LIBS="-lgcc  $LIBS"
17944 cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h.  */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h.  */
17950
17951 /* Override any GCC internal prototype to avoid an error.
17952    Use char because int might match the return type of a GCC
17953    builtin and then its argument prototype would still apply.  */
17954 #ifdef __cplusplus
17955 extern "C"
17956 #endif
17957 char _alloca ();
17958 int
17959 main ()
17960 {
17961 return _alloca ();
17962   ;
17963   return 0;
17964 }
17965 _ACEOF
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (ac_try="$ac_link"
17968 case "(($ac_try" in
17969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970   *) ac_try_echo=$ac_try;;
17971 esac
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973   (eval "$ac_link") 2>conftest.er1
17974   ac_status=$?
17975   grep -v '^ *+' conftest.er1 >conftest.err
17976   rm -f conftest.er1
17977   cat conftest.err >&5
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); } &&
17980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17981   { (case "(($ac_try" in
17982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983   *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986   (eval "$ac_try") 2>&5
17987   ac_status=$?
17988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); }; } &&
17990          { ac_try='test -s conftest$ac_exeext'
17991   { (case "(($ac_try" in
17992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993   *) ac_try_echo=$ac_try;;
17994 esac
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996   (eval "$ac_try") 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); }; }; then
18000   ac_cv_lib_gcc__alloca=yes
18001 else
18002   echo "$as_me: failed program was:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18004
18005         ac_cv_lib_gcc__alloca=no
18006 fi
18007
18008 rm -f core conftest.err conftest.$ac_objext \
18009       conftest$ac_exeext conftest.$ac_ext
18010 LIBS=$ac_check_lib_save_LIBS
18011 fi
18012 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18013 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18014 if test $ac_cv_lib_gcc__alloca = yes; then
18015
18016 cat >>confdefs.h <<\_ACEOF
18017 #define HAVE__ALLOCA 1
18018 _ACEOF
18019
18020 fi
18021
18022   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18023 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18024 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18025   echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027   ac_check_lib_save_LIBS=$LIBS
18028 LIBS="-lgcc  $LIBS"
18029 cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h.  */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h.  */
18035
18036 /* Override any GCC internal prototype to avoid an error.
18037    Use char because int might match the return type of a GCC
18038    builtin and then its argument prototype would still apply.  */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 char __alloca ();
18043 int
18044 main ()
18045 {
18046 return __alloca ();
18047   ;
18048   return 0;
18049 }
18050 _ACEOF
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055   *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058   (eval "$ac_link") 2>conftest.er1
18059   ac_status=$?
18060   grep -v '^ *+' conftest.er1 >conftest.err
18061   rm -f conftest.er1
18062   cat conftest.err >&5
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); } &&
18065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066   { (case "(($ac_try" in
18067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068   *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071   (eval "$ac_try") 2>&5
18072   ac_status=$?
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); }; } &&
18075          { ac_try='test -s conftest$ac_exeext'
18076   { (case "(($ac_try" in
18077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078   *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081   (eval "$ac_try") 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); }; }; then
18085   ac_cv_lib_gcc___alloca=yes
18086 else
18087   echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18089
18090         ac_cv_lib_gcc___alloca=no
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext \
18094       conftest$ac_exeext conftest.$ac_ext
18095 LIBS=$ac_check_lib_save_LIBS
18096 fi
18097 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18098 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18099 if test $ac_cv_lib_gcc___alloca = yes; then
18100
18101 cat >>confdefs.h <<\_ACEOF
18102 #define HAVE___ALLOCA 1
18103 _ACEOF
18104
18105 fi
18106
18107   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18108 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18109 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18110   echo $ECHO_N "(cached) $ECHO_C" >&6
18111 else
18112   ac_check_lib_save_LIBS=$LIBS
18113 LIBS="-lgcc  $LIBS"
18114 cat >conftest.$ac_ext <<_ACEOF
18115 /* confdefs.h.  */
18116 _ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h.  */
18120
18121 /* Override any GCC internal prototype to avoid an error.
18122    Use char because int might match the return type of a GCC
18123    builtin and then its argument prototype would still apply.  */
18124 #ifdef __cplusplus
18125 extern "C"
18126 #endif
18127 char __chkstk ();
18128 int
18129 main ()
18130 {
18131 return __chkstk ();
18132   ;
18133   return 0;
18134 }
18135 _ACEOF
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140   *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143   (eval "$ac_link") 2>conftest.er1
18144   ac_status=$?
18145   grep -v '^ *+' conftest.er1 >conftest.err
18146   rm -f conftest.er1
18147   cat conftest.err >&5
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); } &&
18150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18151   { (case "(($ac_try" in
18152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153   *) ac_try_echo=$ac_try;;
18154 esac
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156   (eval "$ac_try") 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); }; } &&
18160          { ac_try='test -s conftest$ac_exeext'
18161   { (case "(($ac_try" in
18162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163   *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166   (eval "$ac_try") 2>&5
18167   ac_status=$?
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); }; }; then
18170   ac_cv_lib_gcc___chkstk=yes
18171 else
18172   echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18174
18175         ac_cv_lib_gcc___chkstk=no
18176 fi
18177
18178 rm -f core conftest.err conftest.$ac_objext \
18179       conftest$ac_exeext conftest.$ac_ext
18180 LIBS=$ac_check_lib_save_LIBS
18181 fi
18182 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18183 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18184 if test $ac_cv_lib_gcc___chkstk = yes; then
18185
18186 cat >>confdefs.h <<\_ACEOF
18187 #define HAVE___CHKSTK 1
18188 _ACEOF
18189
18190 fi
18191
18192   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18193 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18194 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18195   echo $ECHO_N "(cached) $ECHO_C" >&6
18196 else
18197   ac_check_lib_save_LIBS=$LIBS
18198 LIBS="-lgcc  $LIBS"
18199 cat >conftest.$ac_ext <<_ACEOF
18200 /* confdefs.h.  */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h.  */
18205
18206 /* Override any GCC internal prototype to avoid an error.
18207    Use char because int might match the return type of a GCC
18208    builtin and then its argument prototype would still apply.  */
18209 #ifdef __cplusplus
18210 extern "C"
18211 #endif
18212 char ___chkstk ();
18213 int
18214 main ()
18215 {
18216 return ___chkstk ();
18217   ;
18218   return 0;
18219 }
18220 _ACEOF
18221 rm -f conftest.$ac_objext conftest$ac_exeext
18222 if { (ac_try="$ac_link"
18223 case "(($ac_try" in
18224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225   *) ac_try_echo=$ac_try;;
18226 esac
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228   (eval "$ac_link") 2>conftest.er1
18229   ac_status=$?
18230   grep -v '^ *+' conftest.er1 >conftest.err
18231   rm -f conftest.er1
18232   cat conftest.err >&5
18233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); } &&
18235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18236   { (case "(($ac_try" in
18237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238   *) ac_try_echo=$ac_try;;
18239 esac
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241   (eval "$ac_try") 2>&5
18242   ac_status=$?
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); }; } &&
18245          { ac_try='test -s conftest$ac_exeext'
18246   { (case "(($ac_try" in
18247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248   *) ac_try_echo=$ac_try;;
18249 esac
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251   (eval "$ac_try") 2>&5
18252   ac_status=$?
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); }; }; then
18255   ac_cv_lib_gcc____chkstk=yes
18256 else
18257   echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18259
18260         ac_cv_lib_gcc____chkstk=no
18261 fi
18262
18263 rm -f core conftest.err conftest.$ac_objext \
18264       conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18266 fi
18267 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18268 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18269 if test $ac_cv_lib_gcc____chkstk = yes; then
18270
18271 cat >>confdefs.h <<\_ACEOF
18272 #define HAVE____CHKSTK 1
18273 _ACEOF
18274
18275 fi
18276
18277
18278   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18279 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18280 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18281   echo $ECHO_N "(cached) $ECHO_C" >&6
18282 else
18283   ac_check_lib_save_LIBS=$LIBS
18284 LIBS="-lgcc  $LIBS"
18285 cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h.  */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h.  */
18291
18292 /* Override any GCC internal prototype to avoid an error.
18293    Use char because int might match the return type of a GCC
18294    builtin and then its argument prototype would still apply.  */
18295 #ifdef __cplusplus
18296 extern "C"
18297 #endif
18298 char __ashldi3 ();
18299 int
18300 main ()
18301 {
18302 return __ashldi3 ();
18303   ;
18304   return 0;
18305 }
18306 _ACEOF
18307 rm -f conftest.$ac_objext conftest$ac_exeext
18308 if { (ac_try="$ac_link"
18309 case "(($ac_try" in
18310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311   *) ac_try_echo=$ac_try;;
18312 esac
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314   (eval "$ac_link") 2>conftest.er1
18315   ac_status=$?
18316   grep -v '^ *+' conftest.er1 >conftest.err
18317   rm -f conftest.er1
18318   cat conftest.err >&5
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); } &&
18321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18322   { (case "(($ac_try" in
18323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324   *) ac_try_echo=$ac_try;;
18325 esac
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327   (eval "$ac_try") 2>&5
18328   ac_status=$?
18329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); }; } &&
18331          { ac_try='test -s conftest$ac_exeext'
18332   { (case "(($ac_try" in
18333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334   *) ac_try_echo=$ac_try;;
18335 esac
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337   (eval "$ac_try") 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; }; then
18341   ac_cv_lib_gcc___ashldi3=yes
18342 else
18343   echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18345
18346         ac_cv_lib_gcc___ashldi3=no
18347 fi
18348
18349 rm -f core conftest.err conftest.$ac_objext \
18350       conftest$ac_exeext conftest.$ac_ext
18351 LIBS=$ac_check_lib_save_LIBS
18352 fi
18353 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18354 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18355 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18356
18357 cat >>confdefs.h <<\_ACEOF
18358 #define HAVE___ASHLDI3 1
18359 _ACEOF
18360
18361 fi
18362
18363   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18364 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18365 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18366   echo $ECHO_N "(cached) $ECHO_C" >&6
18367 else
18368   ac_check_lib_save_LIBS=$LIBS
18369 LIBS="-lgcc  $LIBS"
18370 cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h.  */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h.  */
18376
18377 /* Override any GCC internal prototype to avoid an error.
18378    Use char because int might match the return type of a GCC
18379    builtin and then its argument prototype would still apply.  */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 char __ashrdi3 ();
18384 int
18385 main ()
18386 {
18387 return __ashrdi3 ();
18388   ;
18389   return 0;
18390 }
18391 _ACEOF
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (ac_try="$ac_link"
18394 case "(($ac_try" in
18395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396   *) ac_try_echo=$ac_try;;
18397 esac
18398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18399   (eval "$ac_link") 2>conftest.er1
18400   ac_status=$?
18401   grep -v '^ *+' conftest.er1 >conftest.err
18402   rm -f conftest.er1
18403   cat conftest.err >&5
18404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405   (exit $ac_status); } &&
18406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18407   { (case "(($ac_try" in
18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409   *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412   (eval "$ac_try") 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; } &&
18416          { ac_try='test -s conftest$ac_exeext'
18417   { (case "(($ac_try" in
18418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419   *) ac_try_echo=$ac_try;;
18420 esac
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422   (eval "$ac_try") 2>&5
18423   ac_status=$?
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); }; }; then
18426   ac_cv_lib_gcc___ashrdi3=yes
18427 else
18428   echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18430
18431         ac_cv_lib_gcc___ashrdi3=no
18432 fi
18433
18434 rm -f core conftest.err conftest.$ac_objext \
18435       conftest$ac_exeext conftest.$ac_ext
18436 LIBS=$ac_check_lib_save_LIBS
18437 fi
18438 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18439 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18440 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18441
18442 cat >>confdefs.h <<\_ACEOF
18443 #define HAVE___ASHRDI3 1
18444 _ACEOF
18445
18446 fi
18447
18448   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18449 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18450 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453   ac_check_lib_save_LIBS=$LIBS
18454 LIBS="-lgcc  $LIBS"
18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h.  */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h.  */
18461
18462 /* Override any GCC internal prototype to avoid an error.
18463    Use char because int might match the return type of a GCC
18464    builtin and then its argument prototype would still apply.  */
18465 #ifdef __cplusplus
18466 extern "C"
18467 #endif
18468 char __divdi3 ();
18469 int
18470 main ()
18471 {
18472 return __divdi3 ();
18473   ;
18474   return 0;
18475 }
18476 _ACEOF
18477 rm -f conftest.$ac_objext conftest$ac_exeext
18478 if { (ac_try="$ac_link"
18479 case "(($ac_try" in
18480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481   *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484   (eval "$ac_link") 2>conftest.er1
18485   ac_status=$?
18486   grep -v '^ *+' conftest.er1 >conftest.err
18487   rm -f conftest.er1
18488   cat conftest.err >&5
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); } &&
18491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492   { (case "(($ac_try" in
18493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494   *) ac_try_echo=$ac_try;;
18495 esac
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497   (eval "$ac_try") 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; } &&
18501          { ac_try='test -s conftest$ac_exeext'
18502   { (case "(($ac_try" in
18503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504   *) ac_try_echo=$ac_try;;
18505 esac
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507   (eval "$ac_try") 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; }; then
18511   ac_cv_lib_gcc___divdi3=yes
18512 else
18513   echo "$as_me: failed program was:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18515
18516         ac_cv_lib_gcc___divdi3=no
18517 fi
18518
18519 rm -f core conftest.err conftest.$ac_objext \
18520       conftest$ac_exeext conftest.$ac_ext
18521 LIBS=$ac_check_lib_save_LIBS
18522 fi
18523 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18524 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18525 if test $ac_cv_lib_gcc___divdi3 = yes; then
18526
18527 cat >>confdefs.h <<\_ACEOF
18528 #define HAVE___DIVDI3 1
18529 _ACEOF
18530
18531 fi
18532
18533   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18534 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18535 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18536   echo $ECHO_N "(cached) $ECHO_C" >&6
18537 else
18538   ac_check_lib_save_LIBS=$LIBS
18539 LIBS="-lgcc  $LIBS"
18540 cat >conftest.$ac_ext <<_ACEOF
18541 /* confdefs.h.  */
18542 _ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h.  */
18546
18547 /* Override any GCC internal prototype to avoid an error.
18548    Use char because int might match the return type of a GCC
18549    builtin and then its argument prototype would still apply.  */
18550 #ifdef __cplusplus
18551 extern "C"
18552 #endif
18553 char __fixdfdi ();
18554 int
18555 main ()
18556 {
18557 return __fixdfdi ();
18558   ;
18559   return 0;
18560 }
18561 _ACEOF
18562 rm -f conftest.$ac_objext conftest$ac_exeext
18563 if { (ac_try="$ac_link"
18564 case "(($ac_try" in
18565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566   *) ac_try_echo=$ac_try;;
18567 esac
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569   (eval "$ac_link") 2>conftest.er1
18570   ac_status=$?
18571   grep -v '^ *+' conftest.er1 >conftest.err
18572   rm -f conftest.er1
18573   cat conftest.err >&5
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); } &&
18576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18577   { (case "(($ac_try" in
18578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579   *) ac_try_echo=$ac_try;;
18580 esac
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582   (eval "$ac_try") 2>&5
18583   ac_status=$?
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); }; } &&
18586          { ac_try='test -s conftest$ac_exeext'
18587   { (case "(($ac_try" in
18588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589   *) ac_try_echo=$ac_try;;
18590 esac
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592   (eval "$ac_try") 2>&5
18593   ac_status=$?
18594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); }; }; then
18596   ac_cv_lib_gcc___fixdfdi=yes
18597 else
18598   echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.$ac_ext >&5
18600
18601         ac_cv_lib_gcc___fixdfdi=no
18602 fi
18603
18604 rm -f core conftest.err conftest.$ac_objext \
18605       conftest$ac_exeext conftest.$ac_ext
18606 LIBS=$ac_check_lib_save_LIBS
18607 fi
18608 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18609 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18610 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18611
18612 cat >>confdefs.h <<\_ACEOF
18613 #define HAVE___FIXDFDI 1
18614 _ACEOF
18615
18616 fi
18617
18618   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18619 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18620 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18621   echo $ECHO_N "(cached) $ECHO_C" >&6
18622 else
18623   ac_check_lib_save_LIBS=$LIBS
18624 LIBS="-lgcc  $LIBS"
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18631
18632 /* Override any GCC internal prototype to avoid an error.
18633    Use char because int might match the return type of a GCC
18634    builtin and then its argument prototype would still apply.  */
18635 #ifdef __cplusplus
18636 extern "C"
18637 #endif
18638 char __fixsfdi ();
18639 int
18640 main ()
18641 {
18642 return __fixsfdi ();
18643   ;
18644   return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_link") 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } &&
18661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18662   { (case "(($ac_try" in
18663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664   *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667   (eval "$ac_try") 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; } &&
18671          { ac_try='test -s conftest$ac_exeext'
18672   { (case "(($ac_try" in
18673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674   *) ac_try_echo=$ac_try;;
18675 esac
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677   (eval "$ac_try") 2>&5
18678   ac_status=$?
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); }; }; then
18681   ac_cv_lib_gcc___fixsfdi=yes
18682 else
18683   echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18685
18686         ac_cv_lib_gcc___fixsfdi=no
18687 fi
18688
18689 rm -f core conftest.err conftest.$ac_objext \
18690       conftest$ac_exeext conftest.$ac_ext
18691 LIBS=$ac_check_lib_save_LIBS
18692 fi
18693 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18694 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18695 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18696
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE___FIXSFDI 1
18699 _ACEOF
18700
18701 fi
18702
18703   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18704 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18705 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18706   echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708   ac_check_lib_save_LIBS=$LIBS
18709 LIBS="-lgcc  $LIBS"
18710 cat >conftest.$ac_ext <<_ACEOF
18711 /* confdefs.h.  */
18712 _ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h.  */
18716
18717 /* Override any GCC internal prototype to avoid an error.
18718    Use char because int might match the return type of a GCC
18719    builtin and then its argument prototype would still apply.  */
18720 #ifdef __cplusplus
18721 extern "C"
18722 #endif
18723 char __floatdidf ();
18724 int
18725 main ()
18726 {
18727 return __floatdidf ();
18728   ;
18729   return 0;
18730 }
18731 _ACEOF
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (ac_try="$ac_link"
18734 case "(($ac_try" in
18735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736   *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739   (eval "$ac_link") 2>conftest.er1
18740   ac_status=$?
18741   grep -v '^ *+' conftest.er1 >conftest.err
18742   rm -f conftest.er1
18743   cat conftest.err >&5
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); } &&
18746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18747   { (case "(($ac_try" in
18748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749   *) ac_try_echo=$ac_try;;
18750 esac
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752   (eval "$ac_try") 2>&5
18753   ac_status=$?
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); }; } &&
18756          { ac_try='test -s conftest$ac_exeext'
18757   { (case "(($ac_try" in
18758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759   *) ac_try_echo=$ac_try;;
18760 esac
18761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762   (eval "$ac_try") 2>&5
18763   ac_status=$?
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); }; }; then
18766   ac_cv_lib_gcc___floatdidf=yes
18767 else
18768   echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18770
18771         ac_cv_lib_gcc___floatdidf=no
18772 fi
18773
18774 rm -f core conftest.err conftest.$ac_objext \
18775       conftest$ac_exeext conftest.$ac_ext
18776 LIBS=$ac_check_lib_save_LIBS
18777 fi
18778 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18779 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18780 if test $ac_cv_lib_gcc___floatdidf = yes; then
18781
18782 cat >>confdefs.h <<\_ACEOF
18783 #define HAVE___FLOATDIDF 1
18784 _ACEOF
18785
18786 fi
18787
18788   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18789 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18790 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18791   echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793   ac_check_lib_save_LIBS=$LIBS
18794 LIBS="-lgcc  $LIBS"
18795 cat >conftest.$ac_ext <<_ACEOF
18796 /* confdefs.h.  */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h.  */
18801
18802 /* Override any GCC internal prototype to avoid an error.
18803    Use char because int might match the return type of a GCC
18804    builtin and then its argument prototype would still apply.  */
18805 #ifdef __cplusplus
18806 extern "C"
18807 #endif
18808 char __lshrdi3 ();
18809 int
18810 main ()
18811 {
18812 return __lshrdi3 ();
18813   ;
18814   return 0;
18815 }
18816 _ACEOF
18817 rm -f conftest.$ac_objext conftest$ac_exeext
18818 if { (ac_try="$ac_link"
18819 case "(($ac_try" in
18820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821   *) ac_try_echo=$ac_try;;
18822 esac
18823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824   (eval "$ac_link") 2>conftest.er1
18825   ac_status=$?
18826   grep -v '^ *+' conftest.er1 >conftest.err
18827   rm -f conftest.er1
18828   cat conftest.err >&5
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); } &&
18831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18832   { (case "(($ac_try" in
18833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834   *) ac_try_echo=$ac_try;;
18835 esac
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837   (eval "$ac_try") 2>&5
18838   ac_status=$?
18839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840   (exit $ac_status); }; } &&
18841          { ac_try='test -s conftest$ac_exeext'
18842   { (case "(($ac_try" in
18843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844   *) ac_try_echo=$ac_try;;
18845 esac
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847   (eval "$ac_try") 2>&5
18848   ac_status=$?
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); }; }; then
18851   ac_cv_lib_gcc___lshrdi3=yes
18852 else
18853   echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856         ac_cv_lib_gcc___lshrdi3=no
18857 fi
18858
18859 rm -f core conftest.err conftest.$ac_objext \
18860       conftest$ac_exeext conftest.$ac_ext
18861 LIBS=$ac_check_lib_save_LIBS
18862 fi
18863 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18864 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18865 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18866
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE___LSHRDI3 1
18869 _ACEOF
18870
18871 fi
18872
18873   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18874 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18875 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18876   echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878   ac_check_lib_save_LIBS=$LIBS
18879 LIBS="-lgcc  $LIBS"
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886
18887 /* Override any GCC internal prototype to avoid an error.
18888    Use char because int might match the return type of a GCC
18889    builtin and then its argument prototype would still apply.  */
18890 #ifdef __cplusplus
18891 extern "C"
18892 #endif
18893 char __moddi3 ();
18894 int
18895 main ()
18896 {
18897 return __moddi3 ();
18898   ;
18899   return 0;
18900 }
18901 _ACEOF
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (ac_try="$ac_link"
18904 case "(($ac_try" in
18905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906   *) ac_try_echo=$ac_try;;
18907 esac
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909   (eval "$ac_link") 2>conftest.er1
18910   ac_status=$?
18911   grep -v '^ *+' conftest.er1 >conftest.err
18912   rm -f conftest.er1
18913   cat conftest.err >&5
18914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915   (exit $ac_status); } &&
18916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18917   { (case "(($ac_try" in
18918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919   *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922   (eval "$ac_try") 2>&5
18923   ac_status=$?
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); }; } &&
18926          { ac_try='test -s conftest$ac_exeext'
18927   { (case "(($ac_try" in
18928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929   *) ac_try_echo=$ac_try;;
18930 esac
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932   (eval "$ac_try") 2>&5
18933   ac_status=$?
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); }; }; then
18936   ac_cv_lib_gcc___moddi3=yes
18937 else
18938   echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18940
18941         ac_cv_lib_gcc___moddi3=no
18942 fi
18943
18944 rm -f core conftest.err conftest.$ac_objext \
18945       conftest$ac_exeext conftest.$ac_ext
18946 LIBS=$ac_check_lib_save_LIBS
18947 fi
18948 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18949 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18950 if test $ac_cv_lib_gcc___moddi3 = yes; then
18951
18952 cat >>confdefs.h <<\_ACEOF
18953 #define HAVE___MODDI3 1
18954 _ACEOF
18955
18956 fi
18957
18958   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18959 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18960 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18961   echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963   ac_check_lib_save_LIBS=$LIBS
18964 LIBS="-lgcc  $LIBS"
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h.  */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h.  */
18971
18972 /* Override any GCC internal prototype to avoid an error.
18973    Use char because int might match the return type of a GCC
18974    builtin and then its argument prototype would still apply.  */
18975 #ifdef __cplusplus
18976 extern "C"
18977 #endif
18978 char __udivdi3 ();
18979 int
18980 main ()
18981 {
18982 return __udivdi3 ();
18983   ;
18984   return 0;
18985 }
18986 _ACEOF
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if { (ac_try="$ac_link"
18989 case "(($ac_try" in
18990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991   *) ac_try_echo=$ac_try;;
18992 esac
18993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994   (eval "$ac_link") 2>conftest.er1
18995   ac_status=$?
18996   grep -v '^ *+' conftest.er1 >conftest.err
18997   rm -f conftest.er1
18998   cat conftest.err >&5
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); } &&
19001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19002   { (case "(($ac_try" in
19003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004   *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007   (eval "$ac_try") 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); }; } &&
19011          { ac_try='test -s conftest$ac_exeext'
19012   { (case "(($ac_try" in
19013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014   *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017   (eval "$ac_try") 2>&5
19018   ac_status=$?
19019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020   (exit $ac_status); }; }; then
19021   ac_cv_lib_gcc___udivdi3=yes
19022 else
19023   echo "$as_me: failed program was:" >&5
19024 sed 's/^/| /' conftest.$ac_ext >&5
19025
19026         ac_cv_lib_gcc___udivdi3=no
19027 fi
19028
19029 rm -f core conftest.err conftest.$ac_objext \
19030       conftest$ac_exeext conftest.$ac_ext
19031 LIBS=$ac_check_lib_save_LIBS
19032 fi
19033 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19034 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19035 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19036
19037 cat >>confdefs.h <<\_ACEOF
19038 #define HAVE___UDIVDI3 1
19039 _ACEOF
19040
19041 fi
19042
19043   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19044 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19045 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   ac_check_lib_save_LIBS=$LIBS
19049 LIBS="-lgcc  $LIBS"
19050 cat >conftest.$ac_ext <<_ACEOF
19051 /* confdefs.h.  */
19052 _ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h.  */
19056
19057 /* Override any GCC internal prototype to avoid an error.
19058    Use char because int might match the return type of a GCC
19059    builtin and then its argument prototype would still apply.  */
19060 #ifdef __cplusplus
19061 extern "C"
19062 #endif
19063 char __umoddi3 ();
19064 int
19065 main ()
19066 {
19067 return __umoddi3 ();
19068   ;
19069   return 0;
19070 }
19071 _ACEOF
19072 rm -f conftest.$ac_objext conftest$ac_exeext
19073 if { (ac_try="$ac_link"
19074 case "(($ac_try" in
19075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076   *) ac_try_echo=$ac_try;;
19077 esac
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079   (eval "$ac_link") 2>conftest.er1
19080   ac_status=$?
19081   grep -v '^ *+' conftest.er1 >conftest.err
19082   rm -f conftest.er1
19083   cat conftest.err >&5
19084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085   (exit $ac_status); } &&
19086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19087   { (case "(($ac_try" in
19088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089   *) ac_try_echo=$ac_try;;
19090 esac
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092   (eval "$ac_try") 2>&5
19093   ac_status=$?
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); }; } &&
19096          { ac_try='test -s conftest$ac_exeext'
19097   { (case "(($ac_try" in
19098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099   *) ac_try_echo=$ac_try;;
19100 esac
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102   (eval "$ac_try") 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; }; then
19106   ac_cv_lib_gcc___umoddi3=yes
19107 else
19108   echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19110
19111         ac_cv_lib_gcc___umoddi3=no
19112 fi
19113
19114 rm -f core conftest.err conftest.$ac_objext \
19115       conftest$ac_exeext conftest.$ac_ext
19116 LIBS=$ac_check_lib_save_LIBS
19117 fi
19118 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19119 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19120 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19121
19122 cat >>confdefs.h <<\_ACEOF
19123 #define HAVE___UMODDI3 1
19124 _ACEOF
19125
19126 fi
19127
19128
19129   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19130 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19131 if test "${ac_cv_lib_gcc___main+set}" = set; then
19132   echo $ECHO_N "(cached) $ECHO_C" >&6
19133 else
19134   ac_check_lib_save_LIBS=$LIBS
19135 LIBS="-lgcc  $LIBS"
19136 cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h.  */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h.  */
19142
19143 /* Override any GCC internal prototype to avoid an error.
19144    Use char because int might match the return type of a GCC
19145    builtin and then its argument prototype would still apply.  */
19146 #ifdef __cplusplus
19147 extern "C"
19148 #endif
19149 char __main ();
19150 int
19151 main ()
19152 {
19153 return __main ();
19154   ;
19155   return 0;
19156 }
19157 _ACEOF
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (ac_try="$ac_link"
19160 case "(($ac_try" in
19161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162   *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165   (eval "$ac_link") 2>conftest.er1
19166   ac_status=$?
19167   grep -v '^ *+' conftest.er1 >conftest.err
19168   rm -f conftest.er1
19169   cat conftest.err >&5
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); } &&
19172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19173   { (case "(($ac_try" in
19174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175   *) ac_try_echo=$ac_try;;
19176 esac
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178   (eval "$ac_try") 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; } &&
19182          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19192   ac_cv_lib_gcc___main=yes
19193 else
19194   echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19196
19197         ac_cv_lib_gcc___main=no
19198 fi
19199
19200 rm -f core conftest.err conftest.$ac_objext \
19201       conftest$ac_exeext conftest.$ac_ext
19202 LIBS=$ac_check_lib_save_LIBS
19203 fi
19204 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19205 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19206 if test $ac_cv_lib_gcc___main = yes; then
19207
19208 cat >>confdefs.h <<\_ACEOF
19209 #define HAVE___MAIN 1
19210 _ACEOF
19211
19212 fi
19213
19214   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19215 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19216 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19217   echo $ECHO_N "(cached) $ECHO_C" >&6
19218 else
19219   ac_check_lib_save_LIBS=$LIBS
19220 LIBS="-lgcc  $LIBS"
19221 cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h.  */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h.  */
19227
19228 /* Override any GCC internal prototype to avoid an error.
19229    Use char because int might match the return type of a GCC
19230    builtin and then its argument prototype would still apply.  */
19231 #ifdef __cplusplus
19232 extern "C"
19233 #endif
19234 char __cmpdi2 ();
19235 int
19236 main ()
19237 {
19238 return __cmpdi2 ();
19239   ;
19240   return 0;
19241 }
19242 _ACEOF
19243 rm -f conftest.$ac_objext conftest$ac_exeext
19244 if { (ac_try="$ac_link"
19245 case "(($ac_try" in
19246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247   *) ac_try_echo=$ac_try;;
19248 esac
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250   (eval "$ac_link") 2>conftest.er1
19251   ac_status=$?
19252   grep -v '^ *+' conftest.er1 >conftest.err
19253   rm -f conftest.er1
19254   cat conftest.err >&5
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); } &&
19257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19258   { (case "(($ac_try" in
19259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260   *) ac_try_echo=$ac_try;;
19261 esac
19262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263   (eval "$ac_try") 2>&5
19264   ac_status=$?
19265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); }; } &&
19267          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19277   ac_cv_lib_gcc___cmpdi2=yes
19278 else
19279   echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19281
19282         ac_cv_lib_gcc___cmpdi2=no
19283 fi
19284
19285 rm -f core conftest.err conftest.$ac_objext \
19286       conftest$ac_exeext conftest.$ac_ext
19287 LIBS=$ac_check_lib_save_LIBS
19288 fi
19289 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19290 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19291 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19292
19293 cat >>confdefs.h <<\_ACEOF
19294 #define HAVE___CMPDI2 1
19295 _ACEOF
19296
19297 fi
19298
19299 fi
19300
19301 if test "$llvm_cv_os_type" = "MingW" ; then
19302   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19303 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19304   cat >conftest.$ac_ext <<_ACEOF
19305 #include <windows.h>
19306 #include <imagehlp.h>
19307 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19308 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19309 _ACEOF
19310 rm -f conftest.$ac_objext
19311 if { (ac_try="$ac_compile"
19312 case "(($ac_try" in
19313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314   *) ac_try_echo=$ac_try;;
19315 esac
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317   (eval "$ac_compile") 2>conftest.er1
19318   ac_status=$?
19319   grep -v '^ *+' conftest.er1 >conftest.err
19320   rm -f conftest.er1
19321   cat conftest.err >&5
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); } &&
19324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19325   { (case "(($ac_try" in
19326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327   *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330   (eval "$ac_try") 2>&5
19331   ac_status=$?
19332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); }; } &&
19334          { ac_try='test -s conftest.$ac_objext'
19335   { (case "(($ac_try" in
19336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337   *) ac_try_echo=$ac_try;;
19338 esac
19339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19340   (eval "$ac_try") 2>&5
19341   ac_status=$?
19342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343   (exit $ac_status); }; }; then
19344
19345   { echo "$as_me:$LINENO: result: yes" >&5
19346 echo "${ECHO_T}yes" >&6; }
19347   llvm_cv_win32_elmcb_pcstr="PCSTR"
19348
19349 else
19350   echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19352
19353
19354   { echo "$as_me:$LINENO: result: no" >&5
19355 echo "${ECHO_T}no" >&6; }
19356   llvm_cv_win32_elmcb_pcstr="PSTR"
19357
19358 fi
19359
19360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19361
19362 cat >>confdefs.h <<_ACEOF
19363 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19364 _ACEOF
19365
19366 fi
19367
19368
19369 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19370 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19371 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19372   echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374   ac_ext=cpp
19375 ac_cpp='$CXXCPP $CPPFLAGS'
19376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19379
19380    cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h.  */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h.  */
19386 #include <math.h>
19387 int
19388 main ()
19389 {
19390 float f; isnan(f);
19391   ;
19392   return 0;
19393 }
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399   *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402   (eval "$ac_compile") 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } &&
19409          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19410   { (case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415   (eval "$ac_try") 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); }; } &&
19419          { ac_try='test -s conftest.$ac_objext'
19420   { (case "(($ac_try" in
19421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422   *) ac_try_echo=$ac_try;;
19423 esac
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425   (eval "$ac_try") 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; }; then
19429   ac_cv_func_isnan_in_math_h=yes
19430 else
19431   echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434         ac_cv_func_isnan_in_math_h=no
19435 fi
19436
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438   ac_ext=c
19439 ac_cpp='$CPP $CPPFLAGS'
19440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19443
19444 fi
19445 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19446 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19447
19448
19449 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19450
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_ISNAN_IN_MATH_H 1
19453 _ACEOF
19454
19455 fi
19456
19457 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19458 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19459 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19460   echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462   ac_ext=cpp
19463 ac_cpp='$CXXCPP $CPPFLAGS'
19464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19467
19468    cat >conftest.$ac_ext <<_ACEOF
19469 /* confdefs.h.  */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h.  */
19474 #include <cmath>
19475 int
19476 main ()
19477 {
19478 float f; isnan(f);
19479   ;
19480   return 0;
19481 }
19482 _ACEOF
19483 rm -f conftest.$ac_objext
19484 if { (ac_try="$ac_compile"
19485 case "(($ac_try" in
19486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487   *) ac_try_echo=$ac_try;;
19488 esac
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490   (eval "$ac_compile") 2>conftest.er1
19491   ac_status=$?
19492   grep -v '^ *+' conftest.er1 >conftest.err
19493   rm -f conftest.er1
19494   cat conftest.err >&5
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); } &&
19497          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19498   { (case "(($ac_try" in
19499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500   *) ac_try_echo=$ac_try;;
19501 esac
19502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19503   (eval "$ac_try") 2>&5
19504   ac_status=$?
19505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506   (exit $ac_status); }; } &&
19507          { ac_try='test -s conftest.$ac_objext'
19508   { (case "(($ac_try" in
19509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510   *) ac_try_echo=$ac_try;;
19511 esac
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513   (eval "$ac_try") 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; }; then
19517   ac_cv_func_isnan_in_cmath=yes
19518 else
19519   echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522         ac_cv_func_isnan_in_cmath=no
19523 fi
19524
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526   ac_ext=c
19527 ac_cpp='$CPP $CPPFLAGS'
19528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19531
19532 fi
19533 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19534 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19535
19536 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19537
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_ISNAN_IN_CMATH 1
19540 _ACEOF
19541
19542 fi
19543
19544 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19545 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19546 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19547   echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549   ac_ext=cpp
19550 ac_cpp='$CXXCPP $CPPFLAGS'
19551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19554
19555    cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h.  */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h.  */
19561 #include <cmath>
19562 int
19563 main ()
19564 {
19565 float f; std::isnan(f);
19566   ;
19567   return 0;
19568 }
19569 _ACEOF
19570 rm -f conftest.$ac_objext
19571 if { (ac_try="$ac_compile"
19572 case "(($ac_try" in
19573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574   *) ac_try_echo=$ac_try;;
19575 esac
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577   (eval "$ac_compile") 2>conftest.er1
19578   ac_status=$?
19579   grep -v '^ *+' conftest.er1 >conftest.err
19580   rm -f conftest.er1
19581   cat conftest.err >&5
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); } &&
19584          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19585   { (case "(($ac_try" in
19586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587   *) ac_try_echo=$ac_try;;
19588 esac
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590   (eval "$ac_try") 2>&5
19591   ac_status=$?
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); }; } &&
19594          { ac_try='test -s conftest.$ac_objext'
19595   { (case "(($ac_try" in
19596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597   *) ac_try_echo=$ac_try;;
19598 esac
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600   (eval "$ac_try") 2>&5
19601   ac_status=$?
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); }; }; then
19604   ac_cv_func_std_isnan_in_cmath=yes
19605 else
19606   echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19608
19609         ac_cv_func_std_isnan_in_cmath=no
19610 fi
19611
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19613   ac_ext=c
19614 ac_cpp='$CPP $CPPFLAGS'
19615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19618
19619 fi
19620 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19621 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19622
19623 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19624
19625 cat >>confdefs.h <<\_ACEOF
19626 #define HAVE_STD_ISNAN_IN_CMATH 1
19627 _ACEOF
19628
19629 fi
19630
19631
19632 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19633 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19634 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19635   echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637   ac_ext=cpp
19638 ac_cpp='$CXXCPP $CPPFLAGS'
19639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19642
19643    cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h.  */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h.  */
19649 #include <math.h>
19650 int
19651 main ()
19652 {
19653 float f; isinf(f);
19654   ;
19655   return 0;
19656 }
19657 _ACEOF
19658 rm -f conftest.$ac_objext
19659 if { (ac_try="$ac_compile"
19660 case "(($ac_try" in
19661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662   *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665   (eval "$ac_compile") 2>conftest.er1
19666   ac_status=$?
19667   grep -v '^ *+' conftest.er1 >conftest.err
19668   rm -f conftest.er1
19669   cat conftest.err >&5
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); } &&
19672          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19673   { (case "(($ac_try" in
19674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675   *) ac_try_echo=$ac_try;;
19676 esac
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678   (eval "$ac_try") 2>&5
19679   ac_status=$?
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); }; } &&
19682          { ac_try='test -s conftest.$ac_objext'
19683   { (case "(($ac_try" in
19684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685   *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688   (eval "$ac_try") 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; }; then
19692   ac_cv_func_isinf_in_math_h=yes
19693 else
19694   echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697         ac_cv_func_isinf_in_math_h=no
19698 fi
19699
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19701   ac_ext=c
19702 ac_cpp='$CPP $CPPFLAGS'
19703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19706
19707 fi
19708 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19709 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19710
19711 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19712
19713 cat >>confdefs.h <<\_ACEOF
19714 #define HAVE_ISINF_IN_MATH_H 1
19715 _ACEOF
19716
19717 fi
19718
19719 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19720 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19721 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724   ac_ext=cpp
19725 ac_cpp='$CXXCPP $CPPFLAGS'
19726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19729
19730    cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736 #include <cmath>
19737 int
19738 main ()
19739 {
19740 float f; isinf(f);
19741   ;
19742   return 0;
19743 }
19744 _ACEOF
19745 rm -f conftest.$ac_objext
19746 if { (ac_try="$ac_compile"
19747 case "(($ac_try" in
19748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749   *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752   (eval "$ac_compile") 2>conftest.er1
19753   ac_status=$?
19754   grep -v '^ *+' conftest.er1 >conftest.err
19755   rm -f conftest.er1
19756   cat conftest.err >&5
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); } &&
19759          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19760   { (case "(($ac_try" in
19761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762   *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765   (eval "$ac_try") 2>&5
19766   ac_status=$?
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); }; } &&
19769          { ac_try='test -s conftest.$ac_objext'
19770   { (case "(($ac_try" in
19771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19772   *) ac_try_echo=$ac_try;;
19773 esac
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775   (eval "$ac_try") 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); }; }; then
19779   ac_cv_func_isinf_in_cmath=yes
19780 else
19781   echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19783
19784         ac_cv_func_isinf_in_cmath=no
19785 fi
19786
19787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19788   ac_ext=c
19789 ac_cpp='$CPP $CPPFLAGS'
19790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19793
19794 fi
19795 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19796 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19797
19798 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19799
19800 cat >>confdefs.h <<\_ACEOF
19801 #define HAVE_ISINF_IN_CMATH 1
19802 _ACEOF
19803
19804 fi
19805
19806 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19807 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19808 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19809   echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811   ac_ext=cpp
19812 ac_cpp='$CXXCPP $CPPFLAGS'
19813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19816
19817    cat >conftest.$ac_ext <<_ACEOF
19818 /* confdefs.h.  */
19819 _ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h.  */
19823 #include <cmath>
19824 int
19825 main ()
19826 {
19827 float f; std::isinf(f);
19828   ;
19829   return 0;
19830 }
19831 _ACEOF
19832 rm -f conftest.$ac_objext
19833 if { (ac_try="$ac_compile"
19834 case "(($ac_try" in
19835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836   *) ac_try_echo=$ac_try;;
19837 esac
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839   (eval "$ac_compile") 2>conftest.er1
19840   ac_status=$?
19841   grep -v '^ *+' conftest.er1 >conftest.err
19842   rm -f conftest.er1
19843   cat conftest.err >&5
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); } &&
19846          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19847   { (case "(($ac_try" in
19848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849   *) ac_try_echo=$ac_try;;
19850 esac
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852   (eval "$ac_try") 2>&5
19853   ac_status=$?
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); }; } &&
19856          { ac_try='test -s conftest.$ac_objext'
19857   { (case "(($ac_try" in
19858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859   *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862   (eval "$ac_try") 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); }; }; then
19866   ac_cv_func_std_isinf_in_cmath=yes
19867 else
19868   echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871         ac_cv_func_std_isinf_in_cmath=no
19872 fi
19873
19874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19875   ac_ext=c
19876 ac_cpp='$CPP $CPPFLAGS'
19877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19880
19881 fi
19882 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19883 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19884
19885 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19886
19887 cat >>confdefs.h <<\_ACEOF
19888 #define HAVE_STD_ISINF_IN_CMATH 1
19889 _ACEOF
19890
19891 fi
19892
19893 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19894 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19895 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19896   echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898   ac_ext=cpp
19899 ac_cpp='$CXXCPP $CPPFLAGS'
19900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19903
19904    cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910 #include <ieeefp.h>
19911 int
19912 main ()
19913 {
19914 float f; finite(f);
19915   ;
19916   return 0;
19917 }
19918 _ACEOF
19919 rm -f conftest.$ac_objext
19920 if { (ac_try="$ac_compile"
19921 case "(($ac_try" in
19922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923   *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926   (eval "$ac_compile") 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } &&
19933          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19934   { (case "(($ac_try" in
19935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936   *) ac_try_echo=$ac_try;;
19937 esac
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939   (eval "$ac_try") 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; } &&
19943          { ac_try='test -s conftest.$ac_objext'
19944   { (case "(($ac_try" in
19945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946   *) ac_try_echo=$ac_try;;
19947 esac
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949   (eval "$ac_try") 2>&5
19950   ac_status=$?
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); }; }; then
19953   ac_cv_func_finite_in_ieeefp_h=yes
19954 else
19955   echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19957
19958         ac_cv_func_finite_in_ieeefp_h=no
19959 fi
19960
19961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19962   ac_ext=c
19963 ac_cpp='$CPP $CPPFLAGS'
19964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19967
19968 fi
19969 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19970 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19971
19972 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19973
19974 cat >>confdefs.h <<\_ACEOF
19975 #define HAVE_FINITE_IN_IEEEFP_H 1
19976 _ACEOF
19977
19978 fi
19979
19980
19981
19982 if test "$llvm_cv_platform_type" = "Unix" ; then
19983
19984
19985 for ac_header in stdlib.h unistd.h
19986 do
19987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19989   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19992   echo $ECHO_N "(cached) $ECHO_C" >&6
19993 fi
19994 ac_res=`eval echo '${'$as_ac_Header'}'`
19995                { echo "$as_me:$LINENO: result: $ac_res" >&5
19996 echo "${ECHO_T}$ac_res" >&6; }
19997 else
19998   # Is the header compilable?
19999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h.  */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h.  */
20007 $ac_includes_default
20008 #include <$ac_header>
20009 _ACEOF
20010 rm -f conftest.$ac_objext
20011 if { (ac_try="$ac_compile"
20012 case "(($ac_try" in
20013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014   *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017   (eval "$ac_compile") 2>conftest.er1
20018   ac_status=$?
20019   grep -v '^ *+' conftest.er1 >conftest.err
20020   rm -f conftest.er1
20021   cat conftest.err >&5
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); } &&
20024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20025   { (case "(($ac_try" in
20026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027   *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030   (eval "$ac_try") 2>&5
20031   ac_status=$?
20032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033   (exit $ac_status); }; } &&
20034          { ac_try='test -s conftest.$ac_objext'
20035   { (case "(($ac_try" in
20036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037   *) ac_try_echo=$ac_try;;
20038 esac
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040   (eval "$ac_try") 2>&5
20041   ac_status=$?
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); }; }; then
20044   ac_header_compiler=yes
20045 else
20046   echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20048
20049         ac_header_compiler=no
20050 fi
20051
20052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20054 echo "${ECHO_T}$ac_header_compiler" >&6; }
20055
20056 # Is the header present?
20057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20059 cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065 #include <$ac_header>
20066 _ACEOF
20067 if { (ac_try="$ac_cpp conftest.$ac_ext"
20068 case "(($ac_try" in
20069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070   *) ac_try_echo=$ac_try;;
20071 esac
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20074   ac_status=$?
20075   grep -v '^ *+' conftest.er1 >conftest.err
20076   rm -f conftest.er1
20077   cat conftest.err >&5
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); } >/dev/null; then
20080   if test -s conftest.err; then
20081     ac_cpp_err=$ac_c_preproc_warn_flag
20082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20083   else
20084     ac_cpp_err=
20085   fi
20086 else
20087   ac_cpp_err=yes
20088 fi
20089 if test -z "$ac_cpp_err"; then
20090   ac_header_preproc=yes
20091 else
20092   echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20094
20095   ac_header_preproc=no
20096 fi
20097
20098 rm -f conftest.err conftest.$ac_ext
20099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20100 echo "${ECHO_T}$ac_header_preproc" >&6; }
20101
20102 # So?  What about this header?
20103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20104   yes:no: )
20105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20109     ac_header_preproc=yes
20110     ;;
20111   no:yes:* )
20112     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20114     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20115 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20116     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20118     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20119 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20122     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20124     ( cat <<\_ASBOX
20125 ## ------------------------------------ ##
20126 ## Report this to http://llvm.org/bugs/ ##
20127 ## ------------------------------------ ##
20128 _ASBOX
20129      ) | sed "s/^/$as_me: WARNING:     /" >&2
20130     ;;
20131 esac
20132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20135   echo $ECHO_N "(cached) $ECHO_C" >&6
20136 else
20137   eval "$as_ac_Header=\$ac_header_preproc"
20138 fi
20139 ac_res=`eval echo '${'$as_ac_Header'}'`
20140                { echo "$as_me:$LINENO: result: $ac_res" >&5
20141 echo "${ECHO_T}$ac_res" >&6; }
20142
20143 fi
20144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20145   cat >>confdefs.h <<_ACEOF
20146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20147 _ACEOF
20148
20149 fi
20150
20151 done
20152
20153
20154 for ac_func in getpagesize
20155 do
20156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20160   echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162   cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h.  */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h.  */
20168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20170 #define $ac_func innocuous_$ac_func
20171
20172 /* System header to define __stub macros and hopefully few prototypes,
20173     which can conflict with char $ac_func (); below.
20174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20175     <limits.h> exists even on freestanding compilers.  */
20176
20177 #ifdef __STDC__
20178 # include <limits.h>
20179 #else
20180 # include <assert.h>
20181 #endif
20182
20183 #undef $ac_func
20184
20185 /* Override any GCC internal prototype to avoid an error.
20186    Use char because int might match the return type of a GCC
20187    builtin and then its argument prototype would still apply.  */
20188 #ifdef __cplusplus
20189 extern "C"
20190 #endif
20191 char $ac_func ();
20192 /* The GNU C library defines this for functions which it implements
20193     to always fail with ENOSYS.  Some functions are actually named
20194     something starting with __ and the normal name is an alias.  */
20195 #if defined __stub_$ac_func || defined __stub___$ac_func
20196 choke me
20197 #endif
20198
20199 int
20200 main ()
20201 {
20202 return $ac_func ();
20203   ;
20204   return 0;
20205 }
20206 _ACEOF
20207 rm -f conftest.$ac_objext conftest$ac_exeext
20208 if { (ac_try="$ac_link"
20209 case "(($ac_try" in
20210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211   *) ac_try_echo=$ac_try;;
20212 esac
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214   (eval "$ac_link") 2>conftest.er1
20215   ac_status=$?
20216   grep -v '^ *+' conftest.er1 >conftest.err
20217   rm -f conftest.er1
20218   cat conftest.err >&5
20219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220   (exit $ac_status); } &&
20221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20222   { (case "(($ac_try" in
20223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224   *) ac_try_echo=$ac_try;;
20225 esac
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227   (eval "$ac_try") 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); }; } &&
20231          { ac_try='test -s conftest$ac_exeext'
20232   { (case "(($ac_try" in
20233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234   *) ac_try_echo=$ac_try;;
20235 esac
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237   (eval "$ac_try") 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); }; }; then
20241   eval "$as_ac_var=yes"
20242 else
20243   echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20245
20246         eval "$as_ac_var=no"
20247 fi
20248
20249 rm -f core conftest.err conftest.$ac_objext \
20250       conftest$ac_exeext conftest.$ac_ext
20251 fi
20252 ac_res=`eval echo '${'$as_ac_var'}'`
20253                { echo "$as_me:$LINENO: result: $ac_res" >&5
20254 echo "${ECHO_T}$ac_res" >&6; }
20255 if test `eval echo '${'$as_ac_var'}'` = yes; then
20256   cat >>confdefs.h <<_ACEOF
20257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20258 _ACEOF
20259
20260 fi
20261 done
20262
20263 { echo "$as_me:$LINENO: checking for working mmap" >&5
20264 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20265 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20266   echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268   if test "$cross_compiling" = yes; then
20269   ac_cv_func_mmap_fixed_mapped=no
20270 else
20271   cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h.  */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h.  */
20277 $ac_includes_default
20278 /* malloc might have been renamed as rpl_malloc. */
20279 #undef malloc
20280
20281 /* Thanks to Mike Haertel and Jim Avera for this test.
20282    Here is a matrix of mmap possibilities:
20283         mmap private not fixed
20284         mmap private fixed at somewhere currently unmapped
20285         mmap private fixed at somewhere already mapped
20286         mmap shared not fixed
20287         mmap shared fixed at somewhere currently unmapped
20288         mmap shared fixed at somewhere already mapped
20289    For private mappings, we should verify that changes cannot be read()
20290    back from the file, nor mmap's back from the file at a different
20291    address.  (There have been systems where private was not correctly
20292    implemented like the infamous i386 svr4.0, and systems where the
20293    VM page cache was not coherent with the file system buffer cache
20294    like early versions of FreeBSD and possibly contemporary NetBSD.)
20295    For shared mappings, we should conversely verify that changes get
20296    propagated back to all the places they're supposed to be.
20297
20298    Grep wants private fixed already mapped.
20299    The main things grep needs to know about mmap are:
20300    * does it exist and is it safe to write into the mmap'd area
20301    * how to use it (BSD variants)  */
20302
20303 #include <fcntl.h>
20304 #include <sys/mman.h>
20305
20306 #if !STDC_HEADERS && !HAVE_STDLIB_H
20307 char *malloc ();
20308 #endif
20309
20310 /* This mess was copied from the GNU getpagesize.h.  */
20311 #if !HAVE_GETPAGESIZE
20312 /* Assume that all systems that can run configure have sys/param.h.  */
20313 # if !HAVE_SYS_PARAM_H
20314 #  define HAVE_SYS_PARAM_H 1
20315 # endif
20316
20317 # ifdef _SC_PAGESIZE
20318 #  define getpagesize() sysconf(_SC_PAGESIZE)
20319 # else /* no _SC_PAGESIZE */
20320 #  if HAVE_SYS_PARAM_H
20321 #   include <sys/param.h>
20322 #   ifdef EXEC_PAGESIZE
20323 #    define getpagesize() EXEC_PAGESIZE
20324 #   else /* no EXEC_PAGESIZE */
20325 #    ifdef NBPG
20326 #     define getpagesize() NBPG * CLSIZE
20327 #     ifndef CLSIZE
20328 #      define CLSIZE 1
20329 #     endif /* no CLSIZE */
20330 #    else /* no NBPG */
20331 #     ifdef NBPC
20332 #      define getpagesize() NBPC
20333 #     else /* no NBPC */
20334 #      ifdef PAGESIZE
20335 #       define getpagesize() PAGESIZE
20336 #      endif /* PAGESIZE */
20337 #     endif /* no NBPC */
20338 #    endif /* no NBPG */
20339 #   endif /* no EXEC_PAGESIZE */
20340 #  else /* no HAVE_SYS_PARAM_H */
20341 #   define getpagesize() 8192   /* punt totally */
20342 #  endif /* no HAVE_SYS_PARAM_H */
20343 # endif /* no _SC_PAGESIZE */
20344
20345 #endif /* no HAVE_GETPAGESIZE */
20346
20347 int
20348 main ()
20349 {
20350   char *data, *data2, *data3;
20351   int i, pagesize;
20352   int fd;
20353
20354   pagesize = getpagesize ();
20355
20356   /* First, make a file with some known garbage in it. */
20357   data = (char *) malloc (pagesize);
20358   if (!data)
20359     return 1;
20360   for (i = 0; i < pagesize; ++i)
20361     *(data + i) = rand ();
20362   umask (0);
20363   fd = creat ("conftest.mmap", 0600);
20364   if (fd < 0)
20365     return 1;
20366   if (write (fd, data, pagesize) != pagesize)
20367     return 1;
20368   close (fd);
20369
20370   /* Next, try to mmap the file at a fixed address which already has
20371      something else allocated at it.  If we can, also make sure that
20372      we see the same garbage.  */
20373   fd = open ("conftest.mmap", O_RDWR);
20374   if (fd < 0)
20375     return 1;
20376   data2 = (char *) malloc (2 * pagesize);
20377   if (!data2)
20378     return 1;
20379   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20380   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20381                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20382     return 1;
20383   for (i = 0; i < pagesize; ++i)
20384     if (*(data + i) != *(data2 + i))
20385       return 1;
20386
20387   /* Finally, make sure that changes to the mapped area do not
20388      percolate back to the file as seen by read().  (This is a bug on
20389      some variants of i386 svr4.0.)  */
20390   for (i = 0; i < pagesize; ++i)
20391     *(data2 + i) = *(data2 + i) + 1;
20392   data3 = (char *) malloc (pagesize);
20393   if (!data3)
20394     return 1;
20395   if (read (fd, data3, pagesize) != pagesize)
20396     return 1;
20397   for (i = 0; i < pagesize; ++i)
20398     if (*(data + i) != *(data3 + i))
20399       return 1;
20400   close (fd);
20401   return 0;
20402 }
20403 _ACEOF
20404 rm -f conftest$ac_exeext
20405 if { (ac_try="$ac_link"
20406 case "(($ac_try" in
20407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408   *) ac_try_echo=$ac_try;;
20409 esac
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411   (eval "$ac_link") 2>&5
20412   ac_status=$?
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20415   { (case "(($ac_try" in
20416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417   *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420   (eval "$ac_try") 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; }; then
20424   ac_cv_func_mmap_fixed_mapped=yes
20425 else
20426   echo "$as_me: program exited with status $ac_status" >&5
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430 ( exit $ac_status )
20431 ac_cv_func_mmap_fixed_mapped=no
20432 fi
20433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20434 fi
20435
20436
20437 fi
20438 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20439 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20440 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20441
20442 cat >>confdefs.h <<\_ACEOF
20443 #define HAVE_MMAP 1
20444 _ACEOF
20445
20446 fi
20447 rm -f conftest.mmap
20448
20449   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20450 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20451 if test "${ac_cv_func_mmap_file+set}" = set; then
20452   echo $ECHO_N "(cached) $ECHO_C" >&6
20453 else
20454    ac_ext=c
20455 ac_cpp='$CPP $CPPFLAGS'
20456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20459
20460   if test "$cross_compiling" = yes; then
20461   ac_cv_func_mmap_file=no
20462 else
20463   cat >conftest.$ac_ext <<_ACEOF
20464
20465     /* confdefs.h.  */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h.  */
20470
20471 #include <sys/types.h>
20472 #include <sys/mman.h>
20473 #include <fcntl.h>
20474
20475 int
20476 main ()
20477 {
20478
20479   int fd;
20480   fd = creat ("foo",0777);
20481   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20482   unlink ("foo");
20483   return (fd != (int) MAP_FAILED);
20484   ;
20485   return 0;
20486 }
20487 _ACEOF
20488 rm -f conftest$ac_exeext
20489 if { (ac_try="$ac_link"
20490 case "(($ac_try" in
20491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492   *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495   (eval "$ac_link") 2>&5
20496   ac_status=$?
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20499   { (case "(($ac_try" in
20500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501   *) ac_try_echo=$ac_try;;
20502 esac
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504   (eval "$ac_try") 2>&5
20505   ac_status=$?
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); }; }; then
20508   ac_cv_func_mmap_file=yes
20509 else
20510   echo "$as_me: program exited with status $ac_status" >&5
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514 ( exit $ac_status )
20515 ac_cv_func_mmap_file=no
20516 fi
20517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20518 fi
20519
20520
20521   ac_ext=c
20522 ac_cpp='$CPP $CPPFLAGS'
20523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20526
20527
20528 fi
20529 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20530 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20531 if test "$ac_cv_func_mmap_file" = yes; then
20532
20533 cat >>confdefs.h <<\_ACEOF
20534 #define HAVE_MMAP_FILE
20535 _ACEOF
20536
20537    MMAP_FILE=yes
20538
20539 fi
20540
20541   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20542 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20543 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20544   echo $ECHO_N "(cached) $ECHO_C" >&6
20545 else
20546   if test "$llvm_cv_os_type" = "Interix" ; then
20547    ac_cv_need_dev_zero_for_mmap=yes
20548  else
20549    ac_cv_need_dev_zero_for_mmap=no
20550  fi
20551
20552 fi
20553 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20554 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20555 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20556
20557 cat >>confdefs.h <<\_ACEOF
20558 #define NEED_DEV_ZERO_FOR_MMAP 1
20559 _ACEOF
20560
20561 fi
20562
20563   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20564   then
20565     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20566 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20567   fi
20568   if test "$ac_cv_func_mmap_file" = "no"
20569   then
20570     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20571 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20572   fi
20573 fi
20574
20575 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20576 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20577 ac_ext=cpp
20578 ac_cpp='$CXXCPP $CPPFLAGS'
20579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20582
20583 cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589 int main() {
20590         volatile unsigned long val = 1;
20591         __sync_synchronize();
20592         __sync_val_compare_and_swap(&val, 1, 0);
20593         __sync_add_and_fetch(&val, 1);
20594         __sync_sub_and_fetch(&val, 1);
20595         return 0;
20596       }
20597
20598 _ACEOF
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (ac_try="$ac_link"
20601 case "(($ac_try" in
20602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603   *) ac_try_echo=$ac_try;;
20604 esac
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606   (eval "$ac_link") 2>conftest.er1
20607   ac_status=$?
20608   grep -v '^ *+' conftest.er1 >conftest.err
20609   rm -f conftest.er1
20610   cat conftest.err >&5
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); } &&
20613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20614   { (case "(($ac_try" in
20615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616   *) ac_try_echo=$ac_try;;
20617 esac
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619   (eval "$ac_try") 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); }; } &&
20623          { ac_try='test -s conftest$ac_exeext'
20624   { (case "(($ac_try" in
20625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626   *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629   (eval "$ac_try") 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); }; }; then
20633   ac_ext=c
20634 ac_cpp='$CPP $CPPFLAGS'
20635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20638
20639   { echo "$as_me:$LINENO: result: yes" >&5
20640 echo "${ECHO_T}yes" >&6; }
20641
20642 cat >>confdefs.h <<\_ACEOF
20643 #define LLVM_HAS_ATOMICS 1
20644 _ACEOF
20645
20646 else
20647   echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20649
20650         { echo "$as_me:$LINENO: result: no" >&5
20651 echo "${ECHO_T}no" >&6; }
20652
20653 cat >>confdefs.h <<\_ACEOF
20654 #define LLVM_HAS_ATOMICS 0
20655 _ACEOF
20656
20657   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20658 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20659 fi
20660
20661 rm -f core conftest.err conftest.$ac_objext \
20662       conftest$ac_exeext conftest.$ac_ext
20663
20664
20665 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20666   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20667 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20668 if test "${llvm_cv_linux_mixed+set}" = set; then
20669   echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20671    ac_ext=c
20672 ac_cpp='$CPP $CPPFLAGS'
20673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20676
20677   cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683 #ifndef __x86_64__
20684        error: Not x86-64 even if uname says so!
20685       #endif
20686
20687 int
20688 main ()
20689 {
20690
20691   ;
20692   return 0;
20693 }
20694 _ACEOF
20695 rm -f conftest.$ac_objext
20696 if { (ac_try="$ac_compile"
20697 case "(($ac_try" in
20698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699   *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702   (eval "$ac_compile") 2>conftest.er1
20703   ac_status=$?
20704   grep -v '^ *+' conftest.er1 >conftest.err
20705   rm -f conftest.er1
20706   cat conftest.err >&5
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); } &&
20709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20710   { (case "(($ac_try" in
20711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20712   *) ac_try_echo=$ac_try;;
20713 esac
20714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20715   (eval "$ac_try") 2>&5
20716   ac_status=$?
20717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718   (exit $ac_status); }; } &&
20719          { ac_try='test -s conftest.$ac_objext'
20720   { (case "(($ac_try" in
20721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722   *) ac_try_echo=$ac_try;;
20723 esac
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725   (eval "$ac_try") 2>&5
20726   ac_status=$?
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); }; }; then
20729   llvm_cv_linux_mixed=no
20730 else
20731   echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20733
20734         llvm_cv_linux_mixed=yes
20735 fi
20736
20737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738   ac_ext=c
20739 ac_cpp='$CPP $CPPFLAGS'
20740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20743
20744
20745 fi
20746 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20747 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20748
20749   if test "$llvm_cv_linux_mixed" = "yes"; then
20750     llvm_cv_target_arch="x86"
20751     ARCH="x86"
20752   fi
20753 fi
20754
20755
20756 for ac_func in __dso_handle
20757 do
20758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20762   echo $ECHO_N "(cached) $ECHO_C" >&6
20763 else
20764   cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h.  */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h.  */
20770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20772 #define $ac_func innocuous_$ac_func
20773
20774 /* System header to define __stub macros and hopefully few prototypes,
20775     which can conflict with char $ac_func (); below.
20776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20777     <limits.h> exists even on freestanding compilers.  */
20778
20779 #ifdef __STDC__
20780 # include <limits.h>
20781 #else
20782 # include <assert.h>
20783 #endif
20784
20785 #undef $ac_func
20786
20787 /* Override any GCC internal prototype to avoid an error.
20788    Use char because int might match the return type of a GCC
20789    builtin and then its argument prototype would still apply.  */
20790 #ifdef __cplusplus
20791 extern "C"
20792 #endif
20793 char $ac_func ();
20794 /* The GNU C library defines this for functions which it implements
20795     to always fail with ENOSYS.  Some functions are actually named
20796     something starting with __ and the normal name is an alias.  */
20797 #if defined __stub_$ac_func || defined __stub___$ac_func
20798 choke me
20799 #endif
20800
20801 int
20802 main ()
20803 {
20804 return $ac_func ();
20805   ;
20806   return 0;
20807 }
20808 _ACEOF
20809 rm -f conftest.$ac_objext conftest$ac_exeext
20810 if { (ac_try="$ac_link"
20811 case "(($ac_try" in
20812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813   *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816   (eval "$ac_link") 2>conftest.er1
20817   ac_status=$?
20818   grep -v '^ *+' conftest.er1 >conftest.err
20819   rm -f conftest.er1
20820   cat conftest.err >&5
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); } &&
20823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20824   { (case "(($ac_try" in
20825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826   *) ac_try_echo=$ac_try;;
20827 esac
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829   (eval "$ac_try") 2>&5
20830   ac_status=$?
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); }; } &&
20833          { ac_try='test -s conftest$ac_exeext'
20834   { (case "(($ac_try" in
20835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836   *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839   (eval "$ac_try") 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); }; }; then
20843   eval "$as_ac_var=yes"
20844 else
20845   echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848         eval "$as_ac_var=no"
20849 fi
20850
20851 rm -f core conftest.err conftest.$ac_objext \
20852       conftest$ac_exeext conftest.$ac_ext
20853 fi
20854 ac_res=`eval echo '${'$as_ac_var'}'`
20855                { echo "$as_me:$LINENO: result: $ac_res" >&5
20856 echo "${ECHO_T}$ac_res" >&6; }
20857 if test `eval echo '${'$as_ac_var'}'` = yes; then
20858   cat >>confdefs.h <<_ACEOF
20859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20860 _ACEOF
20861
20862 fi
20863 done
20864
20865
20866 SHLIBEXT=$libltdl_cv_shlibext
20867
20868
20869 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20870
20871
20872 if test "${prefix}" = "NONE" ; then
20873   prefix="/usr/local"
20874 fi
20875 eval LLVM_PREFIX="${prefix}";
20876 eval LLVM_BINDIR="${prefix}/bin";
20877 eval LLVM_LIBDIR="${prefix}/lib";
20878 eval LLVM_DATADIR="${prefix}/share/llvm";
20879 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20880 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20881 eval LLVM_INCLUDEDIR="${prefix}/include";
20882 eval LLVM_INFODIR="${prefix}/info";
20883 eval LLVM_MANDIR="${prefix}/man";
20884 LLVM_CONFIGTIME=`date`
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20897   LLVM_CONFIGTIME="(timestamp not enabled)"
20898 fi
20899
20900
20901 cat >>confdefs.h <<_ACEOF
20902 #define LLVM_PREFIX "$LLVM_PREFIX"
20903 _ACEOF
20904
20905
20906 cat >>confdefs.h <<_ACEOF
20907 #define LLVM_BINDIR "$LLVM_BINDIR"
20908 _ACEOF
20909
20910
20911 cat >>confdefs.h <<_ACEOF
20912 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20913 _ACEOF
20914
20915
20916 cat >>confdefs.h <<_ACEOF
20917 #define LLVM_DATADIR "$LLVM_DATADIR"
20918 _ACEOF
20919
20920
20921 cat >>confdefs.h <<_ACEOF
20922 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20923 _ACEOF
20924
20925
20926 cat >>confdefs.h <<_ACEOF
20927 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20928 _ACEOF
20929
20930
20931 cat >>confdefs.h <<_ACEOF
20932 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20933 _ACEOF
20934
20935
20936 cat >>confdefs.h <<_ACEOF
20937 #define LLVM_INFODIR "$LLVM_INFODIR"
20938 _ACEOF
20939
20940
20941 cat >>confdefs.h <<_ACEOF
20942 #define LLVM_MANDIR "$LLVM_MANDIR"
20943 _ACEOF
20944
20945
20946 cat >>confdefs.h <<_ACEOF
20947 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20948 _ACEOF
20949
20950
20951 cat >>confdefs.h <<_ACEOF
20952 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20953 _ACEOF
20954
20955
20956 if test "$BINDINGS_TO_BUILD" = auto ; then
20957   BINDINGS_TO_BUILD=""
20958   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20959     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20960   fi
20961 fi
20962 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20963
20964
20965 ALL_BINDINGS=ocaml
20966
20967
20968 binding_prereqs_failed=0
20969 for a_binding in $BINDINGS_TO_BUILD ; do
20970   case "$a_binding" in
20971   ocaml)
20972     if test "x$OCAMLC" = x ; then
20973       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20974 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20975       binding_prereqs_failed=1
20976     fi
20977     if test "x$OCAMLDEP" = x ; then
20978       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20979 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20980       binding_prereqs_failed=1
20981     fi
20982     if test "x$OCAMLOPT" = x ; then
20983       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20984 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20985           fi
20986     if test "x$with_ocaml_libdir" != xauto ; then
20987       OCAML_LIBDIR=$with_ocaml_libdir
20988
20989     else
20990       ocaml_stdlib="`"$OCAMLC" -where`"
20991       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20992       then
20993         # ocaml stdlib is beneath our prefix; use stdlib
20994         OCAML_LIBDIR=$ocaml_stdlib
20995
20996       else
20997         # ocaml stdlib is outside our prefix; use libdir/ocaml
20998         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20999
21000       fi
21001     fi
21002     ;;
21003   esac
21004 done
21005 if test "$binding_prereqs_failed" = 1 ; then
21006   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21007 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21008    { (exit 1); exit 1; }; }
21009 fi
21010
21011 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21012 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21013 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21014   echo $ECHO_N "(cached) $ECHO_C" >&6
21015 else
21016    ac_ext=cpp
21017 ac_cpp='$CXXCPP $CPPFLAGS'
21018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21021
21022   oldcxxflags="$CXXFLAGS"
21023   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21024   cat >conftest.$ac_ext <<_ACEOF
21025 /* confdefs.h.  */
21026 _ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h.  */
21030 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21031 int
21032 main ()
21033 {
21034 X<int>().f();
21035   ;
21036   return 0;
21037 }
21038 _ACEOF
21039 rm -f conftest.$ac_objext
21040 if { (ac_try="$ac_compile"
21041 case "(($ac_try" in
21042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043   *) ac_try_echo=$ac_try;;
21044 esac
21045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046   (eval "$ac_compile") 2>conftest.er1
21047   ac_status=$?
21048   grep -v '^ *+' conftest.er1 >conftest.err
21049   rm -f conftest.er1
21050   cat conftest.err >&5
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); } &&
21053          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21054   { (case "(($ac_try" in
21055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056   *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059   (eval "$ac_try") 2>&5
21060   ac_status=$?
21061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); }; } &&
21063          { ac_try='test -s conftest.$ac_objext'
21064   { (case "(($ac_try" in
21065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066   *) ac_try_echo=$ac_try;;
21067 esac
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069   (eval "$ac_try") 2>&5
21070   ac_status=$?
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); }; }; then
21073   llvm_cv_cxx_visibility_inlines_hidden=yes
21074 else
21075   echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21077
21078         llvm_cv_cxx_visibility_inlines_hidden=no
21079 fi
21080
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082   CXXFLAGS="$oldcxxflags"
21083   ac_ext=c
21084 ac_cpp='$CPP $CPPFLAGS'
21085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21088
21089
21090 fi
21091 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21092 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21093 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21094   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21095
21096 else
21097   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21098
21099 fi
21100
21101
21102 if test "$llvm_cv_link_use_r" = "yes" ; then
21103   RPATH="-Wl,-R"
21104 else
21105   RPATH="-Wl,-rpath"
21106 fi
21107
21108
21109 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21110   RDYNAMIC="-Wl,-export-dynamic"
21111 else
21112   RDYNAMIC=""
21113 fi
21114
21115
21116
21117 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21118
21119
21120
21121
21122
21123
21124 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21125
21126 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21127
21128 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21129
21130 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21131
21132 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21133
21134
21135 ac_config_files="$ac_config_files Makefile.config"
21136
21137
21138 ac_config_files="$ac_config_files llvm.spec"
21139
21140
21141 ac_config_files="$ac_config_files docs/doxygen.cfg"
21142
21143
21144 if test "${clang_src_root}" = ""; then
21145   clang_src_root="$srcdir/tools/clang"
21146 fi
21147 if test -f ${clang_src_root}/README.txt; then
21148     configh="include/clang/Config/config.h"
21149   doxy="docs/doxygen.cfg"
21150   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21151
21152   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21153
21154 fi
21155
21156 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21157
21158
21159 ac_config_commands="$ac_config_commands setup"
21160
21161 ac_config_commands="$ac_config_commands Makefile"
21162
21163
21164 ac_config_commands="$ac_config_commands Makefile.common"
21165
21166
21167 ac_config_commands="$ac_config_commands examples/Makefile"
21168
21169
21170 ac_config_commands="$ac_config_commands lib/Makefile"
21171
21172
21173 ac_config_commands="$ac_config_commands runtime/Makefile"
21174
21175
21176 ac_config_commands="$ac_config_commands test/Makefile"
21177
21178
21179 ac_config_commands="$ac_config_commands test/Makefile.tests"
21180
21181
21182 ac_config_commands="$ac_config_commands unittests/Makefile"
21183
21184
21185 ac_config_commands="$ac_config_commands tools/Makefile"
21186
21187
21188 ac_config_commands="$ac_config_commands utils/Makefile"
21189
21190
21191 ac_config_commands="$ac_config_commands projects/Makefile"
21192
21193
21194 ac_config_commands="$ac_config_commands bindings/Makefile"
21195
21196
21197 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21198
21199
21200
21201 cat >confcache <<\_ACEOF
21202 # This file is a shell script that caches the results of configure
21203 # tests run on this system so they can be shared between configure
21204 # scripts and configure runs, see configure's option --config-cache.
21205 # It is not useful on other systems.  If it contains results you don't
21206 # want to keep, you may remove or edit it.
21207 #
21208 # config.status only pays attention to the cache file if you give it
21209 # the --recheck option to rerun configure.
21210 #
21211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21213 # following values.
21214
21215 _ACEOF
21216
21217 # The following way of writing the cache mishandles newlines in values,
21218 # but we know of no workaround that is simple, portable, and efficient.
21219 # So, we kill variables containing newlines.
21220 # Ultrix sh set writes to stderr and can't be redirected directly,
21221 # and sets the high bit in the cache file unless we assign to the vars.
21222 (
21223   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21224     eval ac_val=\$$ac_var
21225     case $ac_val in #(
21226     *${as_nl}*)
21227       case $ac_var in #(
21228       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21229 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21230       esac
21231       case $ac_var in #(
21232       _ | IFS | as_nl) ;; #(
21233       *) $as_unset $ac_var ;;
21234       esac ;;
21235     esac
21236   done
21237
21238   (set) 2>&1 |
21239     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21240     *${as_nl}ac_space=\ *)
21241       # `set' does not quote correctly, so add quotes (double-quote
21242       # substitution turns \\\\ into \\, and sed turns \\ into \).
21243       sed -n \
21244         "s/'/'\\\\''/g;
21245           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21246       ;; #(
21247     *)
21248       # `set' quotes correctly as required by POSIX, so do not add quotes.
21249       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21250       ;;
21251     esac |
21252     sort
21253 ) |
21254   sed '
21255      /^ac_cv_env_/b end
21256      t clear
21257      :clear
21258      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21259      t end
21260      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21261      :end' >>confcache
21262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21263   if test -w "$cache_file"; then
21264     test "x$cache_file" != "x/dev/null" &&
21265       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21266 echo "$as_me: updating cache $cache_file" >&6;}
21267     cat confcache >$cache_file
21268   else
21269     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21270 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21271   fi
21272 fi
21273 rm -f confcache
21274
21275 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21276 # Let make expand exec_prefix.
21277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21278
21279 DEFS=-DHAVE_CONFIG_H
21280
21281 ac_libobjs=
21282 ac_ltlibobjs=
21283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21284   # 1. Remove the extension, and $U if already installed.
21285   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21286   ac_i=`echo "$ac_i" | sed "$ac_script"`
21287   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21288   #    will be set to the directory where LIBOBJS objects are built.
21289   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21290   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21291 done
21292 LIBOBJS=$ac_libobjs
21293
21294 LTLIBOBJS=$ac_ltlibobjs
21295
21296
21297 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21298   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21299 Usually this means the macro was only invoked conditionally." >&5
21300 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21301 Usually this means the macro was only invoked conditionally." >&2;}
21302    { (exit 1); exit 1; }; }
21303 fi
21304 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21305   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21306 Usually this means the macro was only invoked conditionally." >&5
21307 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21308 Usually this means the macro was only invoked conditionally." >&2;}
21309    { (exit 1); exit 1; }; }
21310 fi
21311
21312 : ${CONFIG_STATUS=./config.status}
21313 ac_clean_files_save=$ac_clean_files
21314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21315 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21316 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21317 cat >$CONFIG_STATUS <<_ACEOF
21318 #! $SHELL
21319 # Generated by $as_me.
21320 # Run this file to recreate the current configuration.
21321 # Compiler output produced by configure, useful for debugging
21322 # configure, is in config.log if it exists.
21323
21324 debug=false
21325 ac_cs_recheck=false
21326 ac_cs_silent=false
21327 SHELL=\${CONFIG_SHELL-$SHELL}
21328 _ACEOF
21329
21330 cat >>$CONFIG_STATUS <<\_ACEOF
21331 ## --------------------- ##
21332 ## M4sh Initialization.  ##
21333 ## --------------------- ##
21334
21335 # Be Bourne compatible
21336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21337   emulate sh
21338   NULLCMD=:
21339   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21340   # is contrary to our usage.  Disable this feature.
21341   alias -g '${1+"$@"}'='"$@"'
21342   setopt NO_GLOB_SUBST
21343 else
21344   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21345 fi
21346 BIN_SH=xpg4; export BIN_SH # for Tru64
21347 DUALCASE=1; export DUALCASE # for MKS sh
21348
21349
21350 # PATH needs CR
21351 # Avoid depending upon Character Ranges.
21352 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21353 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21354 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21355 as_cr_digits='0123456789'
21356 as_cr_alnum=$as_cr_Letters$as_cr_digits
21357
21358 # The user is always right.
21359 if test "${PATH_SEPARATOR+set}" != set; then
21360   echo "#! /bin/sh" >conf$$.sh
21361   echo  "exit 0"   >>conf$$.sh
21362   chmod +x conf$$.sh
21363   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21364     PATH_SEPARATOR=';'
21365   else
21366     PATH_SEPARATOR=:
21367   fi
21368   rm -f conf$$.sh
21369 fi
21370
21371 # Support unset when possible.
21372 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21373   as_unset=unset
21374 else
21375   as_unset=false
21376 fi
21377
21378
21379 # IFS
21380 # We need space, tab and new line, in precisely that order.  Quoting is
21381 # there to prevent editors from complaining about space-tab.
21382 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21383 # splitting by setting IFS to empty value.)
21384 as_nl='
21385 '
21386 IFS=" ""        $as_nl"
21387
21388 # Find who we are.  Look in the path if we contain no directory separator.
21389 case $0 in
21390   *[\\/]* ) as_myself=$0 ;;
21391   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21392 for as_dir in $PATH
21393 do
21394   IFS=$as_save_IFS
21395   test -z "$as_dir" && as_dir=.
21396   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21397 done
21398 IFS=$as_save_IFS
21399
21400      ;;
21401 esac
21402 # We did not find ourselves, most probably we were run as `sh COMMAND'
21403 # in which case we are not to be found in the path.
21404 if test "x$as_myself" = x; then
21405   as_myself=$0
21406 fi
21407 if test ! -f "$as_myself"; then
21408   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21409   { (exit 1); exit 1; }
21410 fi
21411
21412 # Work around bugs in pre-3.0 UWIN ksh.
21413 for as_var in ENV MAIL MAILPATH
21414 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21415 done
21416 PS1='$ '
21417 PS2='> '
21418 PS4='+ '
21419
21420 # NLS nuisances.
21421 for as_var in \
21422   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21423   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21424   LC_TELEPHONE LC_TIME
21425 do
21426   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21427     eval $as_var=C; export $as_var
21428   else
21429     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21430   fi
21431 done
21432
21433 # Required to use basename.
21434 if expr a : '\(a\)' >/dev/null 2>&1 &&
21435    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21436   as_expr=expr
21437 else
21438   as_expr=false
21439 fi
21440
21441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21442   as_basename=basename
21443 else
21444   as_basename=false
21445 fi
21446
21447
21448 # Name of the executable.
21449 as_me=`$as_basename -- "$0" ||
21450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21451          X"$0" : 'X\(//\)$' \| \
21452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21453 echo X/"$0" |
21454     sed '/^.*\/\([^/][^/]*\)\/*$/{
21455             s//\1/
21456             q
21457           }
21458           /^X\/\(\/\/\)$/{
21459             s//\1/
21460             q
21461           }
21462           /^X\/\(\/\).*/{
21463             s//\1/
21464             q
21465           }
21466           s/.*/./; q'`
21467
21468 # CDPATH.
21469 $as_unset CDPATH
21470
21471
21472
21473   as_lineno_1=$LINENO
21474   as_lineno_2=$LINENO
21475   test "x$as_lineno_1" != "x$as_lineno_2" &&
21476   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21477
21478   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21479   # uniformly replaced by the line number.  The first 'sed' inserts a
21480   # line-number line after each line using $LINENO; the second 'sed'
21481   # does the real work.  The second script uses 'N' to pair each
21482   # line-number line with the line containing $LINENO, and appends
21483   # trailing '-' during substitution so that $LINENO is not a special
21484   # case at line end.
21485   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21486   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21487   # E. McMahon (1931-1989) for sed's syntax.  :-)
21488   sed -n '
21489     p
21490     /[$]LINENO/=
21491   ' <$as_myself |
21492     sed '
21493       s/[$]LINENO.*/&-/
21494       t lineno
21495       b
21496       :lineno
21497       N
21498       :loop
21499       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21500       t loop
21501       s/-\n.*//
21502     ' >$as_me.lineno &&
21503   chmod +x "$as_me.lineno" ||
21504     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21505    { (exit 1); exit 1; }; }
21506
21507   # Don't try to exec as it changes $[0], causing all sort of problems
21508   # (the dirname of $[0] is not the place where we might find the
21509   # original and so on.  Autoconf is especially sensitive to this).
21510   . "./$as_me.lineno"
21511   # Exit status is that of the last command.
21512   exit
21513 }
21514
21515
21516 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21517   as_dirname=dirname
21518 else
21519   as_dirname=false
21520 fi
21521
21522 ECHO_C= ECHO_N= ECHO_T=
21523 case `echo -n x` in
21524 -n*)
21525   case `echo 'x\c'` in
21526   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21527   *)   ECHO_C='\c';;
21528   esac;;
21529 *)
21530   ECHO_N='-n';;
21531 esac
21532
21533 if expr a : '\(a\)' >/dev/null 2>&1 &&
21534    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21535   as_expr=expr
21536 else
21537   as_expr=false
21538 fi
21539
21540 rm -f conf$$ conf$$.exe conf$$.file
21541 if test -d conf$$.dir; then
21542   rm -f conf$$.dir/conf$$.file
21543 else
21544   rm -f conf$$.dir
21545   mkdir conf$$.dir
21546 fi
21547 echo >conf$$.file
21548 if ln -s conf$$.file conf$$ 2>/dev/null; then
21549   as_ln_s='ln -s'
21550   # ... but there are two gotchas:
21551   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21552   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21553   # In both cases, we have to default to `cp -p'.
21554   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21555     as_ln_s='cp -p'
21556 elif ln conf$$.file conf$$ 2>/dev/null; then
21557   as_ln_s=ln
21558 else
21559   as_ln_s='cp -p'
21560 fi
21561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21562 rmdir conf$$.dir 2>/dev/null
21563
21564 if mkdir -p . 2>/dev/null; then
21565   as_mkdir_p=:
21566 else
21567   test -d ./-p && rmdir ./-p
21568   as_mkdir_p=false
21569 fi
21570
21571 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21572 # systems may use methods other than mode bits to determine executability.
21573 cat >conf$$.file <<_ASEOF
21574 #! /bin/sh
21575 exit 0
21576 _ASEOF
21577 chmod +x conf$$.file
21578 if test -x conf$$.file >/dev/null 2>&1; then
21579   as_executable_p="test -x"
21580 else
21581   as_executable_p=:
21582 fi
21583 rm -f conf$$.file
21584
21585 # Sed expression to map a string onto a valid CPP name.
21586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21587
21588 # Sed expression to map a string onto a valid variable name.
21589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21590
21591
21592 exec 6>&1
21593
21594 # Save the log message, to keep $[0] and so on meaningful, and to
21595 # report actual input values of CONFIG_FILES etc. instead of their
21596 # values after options handling.
21597 ac_log="
21598 This file was extended by LLVM $as_me 3.2svn, which was
21599 generated by GNU Autoconf 2.60.  Invocation command line was
21600
21601   CONFIG_FILES    = $CONFIG_FILES
21602   CONFIG_HEADERS  = $CONFIG_HEADERS
21603   CONFIG_LINKS    = $CONFIG_LINKS
21604   CONFIG_COMMANDS = $CONFIG_COMMANDS
21605   $ $0 $@
21606
21607 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21608 "
21609
21610 _ACEOF
21611
21612 cat >>$CONFIG_STATUS <<_ACEOF
21613 # Files that config.status was made for.
21614 config_files="$ac_config_files"
21615 config_headers="$ac_config_headers"
21616 config_commands="$ac_config_commands"
21617
21618 _ACEOF
21619
21620 cat >>$CONFIG_STATUS <<\_ACEOF
21621 ac_cs_usage="\
21622 \`$as_me' instantiates files from templates according to the
21623 current configuration.
21624
21625 Usage: $0 [OPTIONS] [FILE]...
21626
21627   -h, --help       print this help, then exit
21628   -V, --version    print version number, then exit
21629   -q, --quiet      do not print progress messages
21630   -d, --debug      don't remove temporary files
21631       --recheck    update $as_me by reconfiguring in the same conditions
21632   --file=FILE[:TEMPLATE]
21633                    instantiate the configuration file FILE
21634   --header=FILE[:TEMPLATE]
21635                    instantiate the configuration header FILE
21636
21637 Configuration files:
21638 $config_files
21639
21640 Configuration headers:
21641 $config_headers
21642
21643 Configuration commands:
21644 $config_commands
21645
21646 Report bugs to <bug-autoconf@gnu.org>."
21647
21648 _ACEOF
21649 cat >>$CONFIG_STATUS <<_ACEOF
21650 ac_cs_version="\\
21651 LLVM config.status 3.2svn
21652 configured by $0, generated by GNU Autoconf 2.60,
21653   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21654
21655 Copyright (C) 2006 Free Software Foundation, Inc.
21656 This config.status script is free software; the Free Software Foundation
21657 gives unlimited permission to copy, distribute and modify it."
21658
21659 ac_pwd='$ac_pwd'
21660 srcdir='$srcdir'
21661 INSTALL='$INSTALL'
21662 _ACEOF
21663
21664 cat >>$CONFIG_STATUS <<\_ACEOF
21665 # If no file are specified by the user, then we need to provide default
21666 # value.  By we need to know if files were specified by the user.
21667 ac_need_defaults=:
21668 while test $# != 0
21669 do
21670   case $1 in
21671   --*=*)
21672     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21673     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21674     ac_shift=:
21675     ;;
21676   *)
21677     ac_option=$1
21678     ac_optarg=$2
21679     ac_shift=shift
21680     ;;
21681   esac
21682
21683   case $ac_option in
21684   # Handling of the options.
21685   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21686     ac_cs_recheck=: ;;
21687   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21688     echo "$ac_cs_version"; exit ;;
21689   --debug | --debu | --deb | --de | --d | -d )
21690     debug=: ;;
21691   --file | --fil | --fi | --f )
21692     $ac_shift
21693     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21694     ac_need_defaults=false;;
21695   --header | --heade | --head | --hea )
21696     $ac_shift
21697     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21698     ac_need_defaults=false;;
21699   --he | --h)
21700     # Conflict between --help and --header
21701     { echo "$as_me: error: ambiguous option: $1
21702 Try \`$0 --help' for more information." >&2
21703    { (exit 1); exit 1; }; };;
21704   --help | --hel | -h )
21705     echo "$ac_cs_usage"; exit ;;
21706   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21707   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21708     ac_cs_silent=: ;;
21709
21710   # This is an error.
21711   -*) { echo "$as_me: error: unrecognized option: $1
21712 Try \`$0 --help' for more information." >&2
21713    { (exit 1); exit 1; }; } ;;
21714
21715   *) ac_config_targets="$ac_config_targets $1"
21716      ac_need_defaults=false ;;
21717
21718   esac
21719   shift
21720 done
21721
21722 ac_configure_extra_args=
21723
21724 if $ac_cs_silent; then
21725   exec 6>/dev/null
21726   ac_configure_extra_args="$ac_configure_extra_args --silent"
21727 fi
21728
21729 _ACEOF
21730 cat >>$CONFIG_STATUS <<_ACEOF
21731 if \$ac_cs_recheck; then
21732   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21733   CONFIG_SHELL=$SHELL
21734   export CONFIG_SHELL
21735   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21736 fi
21737
21738 _ACEOF
21739 cat >>$CONFIG_STATUS <<\_ACEOF
21740 exec 5>>config.log
21741 {
21742   echo
21743   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21744 ## Running $as_me. ##
21745 _ASBOX
21746   echo "$ac_log"
21747 } >&5
21748
21749 _ACEOF
21750 cat >>$CONFIG_STATUS <<_ACEOF
21751 #
21752 # INIT-COMMANDS
21753 #
21754 llvm_src="${srcdir}"
21755
21756 _ACEOF
21757
21758 cat >>$CONFIG_STATUS <<\_ACEOF
21759
21760 # Handling of arguments.
21761 for ac_config_target in $ac_config_targets
21762 do
21763   case $ac_config_target in
21764     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21765     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21766     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21767     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21768     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21769     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21770     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21771     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21772     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21773     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21774     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21775     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21776     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21777     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21778     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21779     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21780     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21781     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21782     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21783     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21784     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21785     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21786     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21787     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21788     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21789     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21790     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21791
21792   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21793 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21794    { (exit 1); exit 1; }; };;
21795   esac
21796 done
21797
21798
21799 # If the user did not use the arguments to specify the items to instantiate,
21800 # then the envvar interface is used.  Set only those that are not.
21801 # We use the long form for the default assignment because of an extremely
21802 # bizarre bug on SunOS 4.1.3.
21803 if $ac_need_defaults; then
21804   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21805   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21806   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21807 fi
21808
21809 # Have a temporary directory for convenience.  Make it in the build tree
21810 # simply because there is no reason against having it here, and in addition,
21811 # creating and moving files from /tmp can sometimes cause problems.
21812 # Hook for its removal unless debugging.
21813 # Note that there is a small window in which the directory will not be cleaned:
21814 # after its creation but before its name has been assigned to `$tmp'.
21815 $debug ||
21816 {
21817   tmp=
21818   trap 'exit_status=$?
21819   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21820 ' 0
21821   trap '{ (exit 1); exit 1; }' 1 2 13 15
21822 }
21823 # Create a (secure) tmp directory for tmp files.
21824
21825 {
21826   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21827   test -n "$tmp" && test -d "$tmp"
21828 }  ||
21829 {
21830   tmp=./conf$$-$RANDOM
21831   (umask 077 && mkdir "$tmp")
21832 } ||
21833 {
21834    echo "$me: cannot create a temporary directory in ." >&2
21835    { (exit 1); exit 1; }
21836 }
21837
21838 #
21839 # Set up the sed scripts for CONFIG_FILES section.
21840 #
21841
21842 # No need to generate the scripts if there are no CONFIG_FILES.
21843 # This happens for instance when ./config.status config.h
21844 if test -n "$CONFIG_FILES"; then
21845
21846 _ACEOF
21847
21848
21849
21850 ac_delim='%!_!# '
21851 for ac_last_try in false false false false false :; do
21852   cat >conf$$subs.sed <<_ACEOF
21853 SHELL!$SHELL$ac_delim
21854 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21855 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21856 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21857 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21858 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21859 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21860 exec_prefix!$exec_prefix$ac_delim
21861 prefix!$prefix$ac_delim
21862 program_transform_name!$program_transform_name$ac_delim
21863 bindir!$bindir$ac_delim
21864 sbindir!$sbindir$ac_delim
21865 libexecdir!$libexecdir$ac_delim
21866 datarootdir!$datarootdir$ac_delim
21867 datadir!$datadir$ac_delim
21868 sysconfdir!$sysconfdir$ac_delim
21869 sharedstatedir!$sharedstatedir$ac_delim
21870 localstatedir!$localstatedir$ac_delim
21871 includedir!$includedir$ac_delim
21872 oldincludedir!$oldincludedir$ac_delim
21873 docdir!$docdir$ac_delim
21874 infodir!$infodir$ac_delim
21875 htmldir!$htmldir$ac_delim
21876 dvidir!$dvidir$ac_delim
21877 pdfdir!$pdfdir$ac_delim
21878 psdir!$psdir$ac_delim
21879 libdir!$libdir$ac_delim
21880 localedir!$localedir$ac_delim
21881 mandir!$mandir$ac_delim
21882 DEFS!$DEFS$ac_delim
21883 ECHO_C!$ECHO_C$ac_delim
21884 ECHO_N!$ECHO_N$ac_delim
21885 ECHO_T!$ECHO_T$ac_delim
21886 LIBS!$LIBS$ac_delim
21887 build_alias!$build_alias$ac_delim
21888 host_alias!$host_alias$ac_delim
21889 target_alias!$target_alias$ac_delim
21890 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21891 CC!$CC$ac_delim
21892 CFLAGS!$CFLAGS$ac_delim
21893 LDFLAGS!$LDFLAGS$ac_delim
21894 CPPFLAGS!$CPPFLAGS$ac_delim
21895 ac_ct_CC!$ac_ct_CC$ac_delim
21896 EXEEXT!$EXEEXT$ac_delim
21897 OBJEXT!$OBJEXT$ac_delim
21898 CXX!$CXX$ac_delim
21899 CXXFLAGS!$CXXFLAGS$ac_delim
21900 ac_ct_CXX!$ac_ct_CXX$ac_delim
21901 CPP!$CPP$ac_delim
21902 subdirs!$subdirs$ac_delim
21903 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21904 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21905 build!$build$ac_delim
21906 build_cpu!$build_cpu$ac_delim
21907 build_vendor!$build_vendor$ac_delim
21908 build_os!$build_os$ac_delim
21909 host!$host$ac_delim
21910 host_cpu!$host_cpu$ac_delim
21911 host_vendor!$host_vendor$ac_delim
21912 host_os!$host_os$ac_delim
21913 target!$target$ac_delim
21914 target_cpu!$target_cpu$ac_delim
21915 target_vendor!$target_vendor$ac_delim
21916 target_os!$target_os$ac_delim
21917 OS!$OS$ac_delim
21918 HOST_OS!$HOST_OS$ac_delim
21919 TARGET_OS!$TARGET_OS$ac_delim
21920 LINKALL!$LINKALL$ac_delim
21921 NOLINKALL!$NOLINKALL$ac_delim
21922 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21923 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21924 ARCH!$ARCH$ac_delim
21925 HOST_ARCH!$HOST_ARCH$ac_delim
21926 ENDIAN!$ENDIAN$ac_delim
21927 GREP!$GREP$ac_delim
21928 EGREP!$EGREP$ac_delim
21929 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21930 BUILD_CC!$BUILD_CC$ac_delim
21931 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21932 BUILD_CXX!$BUILD_CXX$ac_delim
21933 CVSBUILD!$CVSBUILD$ac_delim
21934 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21935 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21936 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21937 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21938 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21939 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21940 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21941 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21942 JIT!$JIT$ac_delim
21943 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21944 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21945 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21946 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21947 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21948 ENABLE_PIC!$ENABLE_PIC$ac_delim
21949 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21950 _ACEOF
21951
21952   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21953     break
21954   elif $ac_last_try; then
21955     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21956 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21957    { (exit 1); exit 1; }; }
21958   else
21959     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21960   fi
21961 done
21962
21963 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21964 if test -n "$ac_eof"; then
21965   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21966   ac_eof=`expr $ac_eof + 1`
21967 fi
21968
21969 cat >>$CONFIG_STATUS <<_ACEOF
21970 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21972 _ACEOF
21973 sed '
21974 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21975 s/^/s,@/; s/!/@,|#_!!_#|/
21976 :n
21977 t n
21978 s/'"$ac_delim"'$/,g/; t
21979 s/$/\\/; p
21980 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21981 ' >>$CONFIG_STATUS <conf$$subs.sed
21982 rm -f conf$$subs.sed
21983 cat >>$CONFIG_STATUS <<_ACEOF
21984 CEOF$ac_eof
21985 _ACEOF
21986
21987
21988 ac_delim='%!_!# '
21989 for ac_last_try in false false false false false :; do
21990   cat >conf$$subs.sed <<_ACEOF
21991 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21992 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21993 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21994 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21995 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21996 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21997 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21998 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21999 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22000 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22001 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22002 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22003 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22004 NM!$NM$ac_delim
22005 ifGNUmake!$ifGNUmake$ac_delim
22006 LN_S!$LN_S$ac_delim
22007 CMP!$CMP$ac_delim
22008 CP!$CP$ac_delim
22009 DATE!$DATE$ac_delim
22010 FIND!$FIND$ac_delim
22011 MKDIR!$MKDIR$ac_delim
22012 MV!$MV$ac_delim
22013 RANLIB!$RANLIB$ac_delim
22014 AR!$AR$ac_delim
22015 RM!$RM$ac_delim
22016 SED!$SED$ac_delim
22017 TAR!$TAR$ac_delim
22018 BINPWD!$BINPWD$ac_delim
22019 GRAPHVIZ!$GRAPHVIZ$ac_delim
22020 DOT!$DOT$ac_delim
22021 FDP!$FDP$ac_delim
22022 NEATO!$NEATO$ac_delim
22023 TWOPI!$TWOPI$ac_delim
22024 CIRCO!$CIRCO$ac_delim
22025 GV!$GV$ac_delim
22026 DOTTY!$DOTTY$ac_delim
22027 XDOT_PY!$XDOT_PY$ac_delim
22028 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22029 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22030 INSTALL_DATA!$INSTALL_DATA$ac_delim
22031 BZIP2!$BZIP2$ac_delim
22032 CAT!$CAT$ac_delim
22033 DOXYGEN!$DOXYGEN$ac_delim
22034 GROFF!$GROFF$ac_delim
22035 GZIPBIN!$GZIPBIN$ac_delim
22036 PDFROFF!$PDFROFF$ac_delim
22037 ZIP!$ZIP$ac_delim
22038 OCAMLC!$OCAMLC$ac_delim
22039 OCAMLOPT!$OCAMLOPT$ac_delim
22040 OCAMLDEP!$OCAMLDEP$ac_delim
22041 OCAMLDOC!$OCAMLDOC$ac_delim
22042 GAS!$GAS$ac_delim
22043 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22044 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22045 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22046 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22047 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22048 LIBADD_DL!$LIBADD_DL$ac_delim
22049 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22050 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22051 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22052 USE_UDIS86!$USE_UDIS86$ac_delim
22053 USE_OPROFILE!$USE_OPROFILE$ac_delim
22054 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22055 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22056 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22057 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22058 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22059 MMAP_FILE!$MMAP_FILE$ac_delim
22060 SHLIBEXT!$SHLIBEXT$ac_delim
22061 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22062 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22063 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22064 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22065 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22066 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22067 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22068 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22069 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22070 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22071 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22072 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22073 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22074 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22075 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22076 RPATH!$RPATH$ac_delim
22077 RDYNAMIC!$RDYNAMIC$ac_delim
22078 LIBOBJS!$LIBOBJS$ac_delim
22079 LTLIBOBJS!$LTLIBOBJS$ac_delim
22080 _ACEOF
22081
22082   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22083     break
22084   elif $ac_last_try; then
22085     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22086 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22087    { (exit 1); exit 1; }; }
22088   else
22089     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22090   fi
22091 done
22092
22093 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22094 if test -n "$ac_eof"; then
22095   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22096   ac_eof=`expr $ac_eof + 1`
22097 fi
22098
22099 cat >>$CONFIG_STATUS <<_ACEOF
22100 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22101 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22102 _ACEOF
22103 sed '
22104 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22105 s/^/s,@/; s/!/@,|#_!!_#|/
22106 :n
22107 t n
22108 s/'"$ac_delim"'$/,g/; t
22109 s/$/\\/; p
22110 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22111 ' >>$CONFIG_STATUS <conf$$subs.sed
22112 rm -f conf$$subs.sed
22113 cat >>$CONFIG_STATUS <<_ACEOF
22114 :end
22115 s/|#_!!_#|//g
22116 CEOF$ac_eof
22117 _ACEOF
22118
22119
22120 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22121 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22122 # trailing colons and then remove the whole line if VPATH becomes empty
22123 # (actually we leave an empty line to preserve line numbers).
22124 if test "x$srcdir" = x.; then
22125   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22126 s/:*\$(srcdir):*/:/
22127 s/:*\${srcdir}:*/:/
22128 s/:*@srcdir@:*/:/
22129 s/^\([^=]*=[     ]*\):*/\1/
22130 s/:*$//
22131 s/^[^=]*=[       ]*$//
22132 }'
22133 fi
22134
22135 cat >>$CONFIG_STATUS <<\_ACEOF
22136 fi # test -n "$CONFIG_FILES"
22137
22138
22139 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22140 do
22141   case $ac_tag in
22142   :[FHLC]) ac_mode=$ac_tag; continue;;
22143   esac
22144   case $ac_mode$ac_tag in
22145   :[FHL]*:*);;
22146   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22147 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22148    { (exit 1); exit 1; }; };;
22149   :[FH]-) ac_tag=-:-;;
22150   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22151   esac
22152   ac_save_IFS=$IFS
22153   IFS=:
22154   set x $ac_tag
22155   IFS=$ac_save_IFS
22156   shift
22157   ac_file=$1
22158   shift
22159
22160   case $ac_mode in
22161   :L) ac_source=$1;;
22162   :[FH])
22163     ac_file_inputs=
22164     for ac_f
22165     do
22166       case $ac_f in
22167       -) ac_f="$tmp/stdin";;
22168       *) # Look for the file first in the build tree, then in the source tree
22169          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22170          # because $ac_f cannot contain `:'.
22171          test -f "$ac_f" ||
22172            case $ac_f in
22173            [\\/$]*) false;;
22174            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22175            esac ||
22176            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22177 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22178    { (exit 1); exit 1; }; };;
22179       esac
22180       ac_file_inputs="$ac_file_inputs $ac_f"
22181     done
22182
22183     # Let's still pretend it is `configure' which instantiates (i.e., don't
22184     # use $as_me), people would be surprised to read:
22185     #    /* config.h.  Generated by config.status.  */
22186     configure_input="Generated from "`IFS=:
22187           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22188     if test x"$ac_file" != x-; then
22189       configure_input="$ac_file.  $configure_input"
22190       { echo "$as_me:$LINENO: creating $ac_file" >&5
22191 echo "$as_me: creating $ac_file" >&6;}
22192     fi
22193
22194     case $ac_tag in
22195     *:-:* | *:-) cat >"$tmp/stdin";;
22196     esac
22197     ;;
22198   esac
22199
22200   ac_dir=`$as_dirname -- "$ac_file" ||
22201 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22202          X"$ac_file" : 'X\(//\)[^/]' \| \
22203          X"$ac_file" : 'X\(//\)$' \| \
22204          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22205 echo X"$ac_file" |
22206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22207             s//\1/
22208             q
22209           }
22210           /^X\(\/\/\)[^/].*/{
22211             s//\1/
22212             q
22213           }
22214           /^X\(\/\/\)$/{
22215             s//\1/
22216             q
22217           }
22218           /^X\(\/\).*/{
22219             s//\1/
22220             q
22221           }
22222           s/.*/./; q'`
22223   { as_dir="$ac_dir"
22224   case $as_dir in #(
22225   -*) as_dir=./$as_dir;;
22226   esac
22227   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22228     as_dirs=
22229     while :; do
22230       case $as_dir in #(
22231       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22232       *) as_qdir=$as_dir;;
22233       esac
22234       as_dirs="'$as_qdir' $as_dirs"
22235       as_dir=`$as_dirname -- "$as_dir" ||
22236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22237          X"$as_dir" : 'X\(//\)[^/]' \| \
22238          X"$as_dir" : 'X\(//\)$' \| \
22239          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22240 echo X"$as_dir" |
22241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22242             s//\1/
22243             q
22244           }
22245           /^X\(\/\/\)[^/].*/{
22246             s//\1/
22247             q
22248           }
22249           /^X\(\/\/\)$/{
22250             s//\1/
22251             q
22252           }
22253           /^X\(\/\).*/{
22254             s//\1/
22255             q
22256           }
22257           s/.*/./; q'`
22258       test -d "$as_dir" && break
22259     done
22260     test -z "$as_dirs" || eval "mkdir $as_dirs"
22261   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22262 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22263    { (exit 1); exit 1; }; }; }
22264   ac_builddir=.
22265
22266 case "$ac_dir" in
22267 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22268 *)
22269   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22270   # A ".." for each directory in $ac_dir_suffix.
22271   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22272   case $ac_top_builddir_sub in
22273   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22274   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22275   esac ;;
22276 esac
22277 ac_abs_top_builddir=$ac_pwd
22278 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22279 # for backward compatibility:
22280 ac_top_builddir=$ac_top_build_prefix
22281
22282 case $srcdir in
22283   .)  # We are building in place.
22284     ac_srcdir=.
22285     ac_top_srcdir=$ac_top_builddir_sub
22286     ac_abs_top_srcdir=$ac_pwd ;;
22287   [\\/]* | ?:[\\/]* )  # Absolute name.
22288     ac_srcdir=$srcdir$ac_dir_suffix;
22289     ac_top_srcdir=$srcdir
22290     ac_abs_top_srcdir=$srcdir ;;
22291   *) # Relative name.
22292     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22293     ac_top_srcdir=$ac_top_build_prefix$srcdir
22294     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22295 esac
22296 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22297
22298
22299   case $ac_mode in
22300   :F)
22301   #
22302   # CONFIG_FILE
22303   #
22304
22305   case $INSTALL in
22306   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22307   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22308   esac
22309 _ACEOF
22310
22311 cat >>$CONFIG_STATUS <<\_ACEOF
22312 # If the template does not know about datarootdir, expand it.
22313 # FIXME: This hack should be removed a few years after 2.60.
22314 ac_datarootdir_hack=; ac_datarootdir_seen=
22315
22316 case `sed -n '/datarootdir/ {
22317   p
22318   q
22319 }
22320 /@datadir@/p
22321 /@docdir@/p
22322 /@infodir@/p
22323 /@localedir@/p
22324 /@mandir@/p
22325 ' $ac_file_inputs` in
22326 *datarootdir*) ac_datarootdir_seen=yes;;
22327 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22328   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22329 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22330 _ACEOF
22331 cat >>$CONFIG_STATUS <<_ACEOF
22332   ac_datarootdir_hack='
22333   s&@datadir@&$datadir&g
22334   s&@docdir@&$docdir&g
22335   s&@infodir@&$infodir&g
22336   s&@localedir@&$localedir&g
22337   s&@mandir@&$mandir&g
22338     s&\\\${datarootdir}&$datarootdir&g' ;;
22339 esac
22340 _ACEOF
22341
22342 # Neutralize VPATH when `$srcdir' = `.'.
22343 # Shell code in configure.ac might set extrasub.
22344 # FIXME: do we really want to maintain this feature?
22345 cat >>$CONFIG_STATUS <<_ACEOF
22346   sed "$ac_vpsub
22347 $extrasub
22348 _ACEOF
22349 cat >>$CONFIG_STATUS <<\_ACEOF
22350 :t
22351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22352 s&@configure_input@&$configure_input&;t t
22353 s&@top_builddir@&$ac_top_builddir_sub&;t t
22354 s&@srcdir@&$ac_srcdir&;t t
22355 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22356 s&@top_srcdir@&$ac_top_srcdir&;t t
22357 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22358 s&@builddir@&$ac_builddir&;t t
22359 s&@abs_builddir@&$ac_abs_builddir&;t t
22360 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22361 s&@INSTALL@&$ac_INSTALL&;t t
22362 $ac_datarootdir_hack
22363 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22364
22365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22366   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22367   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22368   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22369 which seems to be undefined.  Please make sure it is defined." >&5
22370 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22371 which seems to be undefined.  Please make sure it is defined." >&2;}
22372
22373   rm -f "$tmp/stdin"
22374   case $ac_file in
22375   -) cat "$tmp/out"; rm -f "$tmp/out";;
22376   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22377   esac
22378  ;;
22379   :H)
22380   #
22381   # CONFIG_HEADER
22382   #
22383 _ACEOF
22384
22385 # Transform confdefs.h into a sed script `conftest.defines', that
22386 # substitutes the proper values into config.h.in to produce config.h.
22387 rm -f conftest.defines conftest.tail
22388 # First, append a space to every undef/define line, to ease matching.
22389 echo 's/$/ /' >conftest.defines
22390 # Then, protect against being on the right side of a sed subst, or in
22391 # an unquoted here document, in config.status.  If some macros were
22392 # called several times there might be several #defines for the same
22393 # symbol, which is useless.  But do not sort them, since the last
22394 # AC_DEFINE must be honored.
22395 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22396 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22397 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22398 # PARAMS is the parameter list in the macro definition--in most cases, it's
22399 # just an empty string.
22400 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22401 ac_dB='\\)[      (].*,\\1define\\2'
22402 ac_dC=' '
22403 ac_dD=' ,'
22404
22405 uniq confdefs.h |
22406   sed -n '
22407         t rset
22408         :rset
22409         s/^[     ]*#[    ]*define[       ][      ]*//
22410         t ok
22411         d
22412         :ok
22413         s/[\\&,]/\\&/g
22414         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22415         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22416   ' >>conftest.defines
22417
22418 # Remove the space that was appended to ease matching.
22419 # Then replace #undef with comments.  This is necessary, for
22420 # example, in the case of _POSIX_SOURCE, which is predefined and required
22421 # on some systems where configure will not decide to define it.
22422 # (The regexp can be short, since the line contains either #define or #undef.)
22423 echo 's/ $//
22424 s,^[     #]*u.*,/* & */,' >>conftest.defines
22425
22426 # Break up conftest.defines:
22427 ac_max_sed_lines=50
22428
22429 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22430 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22431 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22432 # et cetera.
22433 ac_in='$ac_file_inputs'
22434 ac_out='"$tmp/out1"'
22435 ac_nxt='"$tmp/out2"'
22436
22437 while :
22438 do
22439   # Write a here document:
22440     cat >>$CONFIG_STATUS <<_ACEOF
22441     # First, check the format of the line:
22442     cat >"\$tmp/defines.sed" <<\\CEOF
22443 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22444 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22445 b
22446 :def
22447 _ACEOF
22448   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22449   echo 'CEOF
22450     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22451   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22452   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22453   grep . conftest.tail >/dev/null || break
22454   rm -f conftest.defines
22455   mv conftest.tail conftest.defines
22456 done
22457 rm -f conftest.defines conftest.tail
22458
22459 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22460 cat >>$CONFIG_STATUS <<\_ACEOF
22461   if test x"$ac_file" != x-; then
22462     echo "/* $configure_input  */" >"$tmp/config.h"
22463     cat "$ac_result" >>"$tmp/config.h"
22464     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22465       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22466 echo "$as_me: $ac_file is unchanged" >&6;}
22467     else
22468       rm -f $ac_file
22469       mv "$tmp/config.h" $ac_file
22470     fi
22471   else
22472     echo "/* $configure_input  */"
22473     cat "$ac_result"
22474   fi
22475   rm -f "$tmp/out12"
22476  ;;
22477
22478   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22479 echo "$as_me: executing $ac_file commands" >&6;}
22480  ;;
22481   esac
22482
22483
22484   case $ac_file$ac_mode in
22485     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22486    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22487     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22488    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22489     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22490    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22491     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22492    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22493     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22494    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22495     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22496    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22497     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22498    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22499     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22500    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22501     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22502    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22503     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22504    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22505     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22506    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22507     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22508    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22509     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22510    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22511
22512   esac
22513 done # for ac_tag
22514
22515
22516 { (exit 0); exit 0; }
22517 _ACEOF
22518 chmod +x $CONFIG_STATUS
22519 ac_clean_files=$ac_clean_files_save
22520
22521
22522 # configure is writing to config.log, and then calls config.status.
22523 # config.status does its own redirection, appending to config.log.
22524 # Unfortunately, on DOS this fails, as config.log is still kept open
22525 # by configure, so config.status won't be able to write to it; its
22526 # output is simply discarded.  So we exec the FD to /dev/null,
22527 # effectively closing config.log, so it can be properly (re)opened and
22528 # appended to by config.status.  When coming back to configure, we
22529 # need to make the FD available again.
22530 if test "$no_create" != yes; then
22531   ac_cs_success=:
22532   ac_config_status_args=
22533   test "$silent" = yes &&
22534     ac_config_status_args="$ac_config_status_args --quiet"
22535   exec 5>/dev/null
22536   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22537   exec 5>>config.log
22538   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22539   # would make configure fail if this is the last instruction.
22540   $ac_cs_success || { (exit 1); exit 1; }
22541 fi
22542
22543 #
22544 # CONFIG_SUBDIRS section.
22545 #
22546 if test "$no_recursion" != yes; then
22547
22548   # Remove --cache-file and --srcdir arguments so they do not pile up.
22549   ac_sub_configure_args=
22550   ac_prev=
22551   eval "set x $ac_configure_args"
22552   shift
22553   for ac_arg
22554   do
22555     if test -n "$ac_prev"; then
22556       ac_prev=
22557       continue
22558     fi
22559     case $ac_arg in
22560     -cache-file | --cache-file | --cache-fil | --cache-fi \
22561     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22562       ac_prev=cache_file ;;
22563     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22564     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22565     | --c=*)
22566       ;;
22567     --config-cache | -C)
22568       ;;
22569     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22570       ac_prev=srcdir ;;
22571     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22572       ;;
22573     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22574       ac_prev=prefix ;;
22575     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22576       ;;
22577     *)
22578       case $ac_arg in
22579       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22580       esac
22581       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22582     esac
22583   done
22584
22585   # Always prepend --prefix to ensure using the same prefix
22586   # in subdir configurations.
22587   ac_arg="--prefix=$prefix"
22588   case $ac_arg in
22589   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22590   esac
22591   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22592
22593   ac_popdir=`pwd`
22594   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22595
22596     # Do not complain, so a configure script can configure whichever
22597     # parts of a large source tree are present.
22598     test -d "$srcdir/$ac_dir" || continue
22599
22600     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22601     echo "$as_me:$LINENO: $ac_msg" >&5
22602     echo "$ac_msg" >&6
22603     { as_dir="$ac_dir"
22604   case $as_dir in #(
22605   -*) as_dir=./$as_dir;;
22606   esac
22607   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22608     as_dirs=
22609     while :; do
22610       case $as_dir in #(
22611       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22612       *) as_qdir=$as_dir;;
22613       esac
22614       as_dirs="'$as_qdir' $as_dirs"
22615       as_dir=`$as_dirname -- "$as_dir" ||
22616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22617          X"$as_dir" : 'X\(//\)[^/]' \| \
22618          X"$as_dir" : 'X\(//\)$' \| \
22619          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22620 echo X"$as_dir" |
22621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22622             s//\1/
22623             q
22624           }
22625           /^X\(\/\/\)[^/].*/{
22626             s//\1/
22627             q
22628           }
22629           /^X\(\/\/\)$/{
22630             s//\1/
22631             q
22632           }
22633           /^X\(\/\).*/{
22634             s//\1/
22635             q
22636           }
22637           s/.*/./; q'`
22638       test -d "$as_dir" && break
22639     done
22640     test -z "$as_dirs" || eval "mkdir $as_dirs"
22641   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22642 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22643    { (exit 1); exit 1; }; }; }
22644     ac_builddir=.
22645
22646 case "$ac_dir" in
22647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22648 *)
22649   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22650   # A ".." for each directory in $ac_dir_suffix.
22651   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22652   case $ac_top_builddir_sub in
22653   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22654   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22655   esac ;;
22656 esac
22657 ac_abs_top_builddir=$ac_pwd
22658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22659 # for backward compatibility:
22660 ac_top_builddir=$ac_top_build_prefix
22661
22662 case $srcdir in
22663   .)  # We are building in place.
22664     ac_srcdir=.
22665     ac_top_srcdir=$ac_top_builddir_sub
22666     ac_abs_top_srcdir=$ac_pwd ;;
22667   [\\/]* | ?:[\\/]* )  # Absolute name.
22668     ac_srcdir=$srcdir$ac_dir_suffix;
22669     ac_top_srcdir=$srcdir
22670     ac_abs_top_srcdir=$srcdir ;;
22671   *) # Relative name.
22672     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22673     ac_top_srcdir=$ac_top_build_prefix$srcdir
22674     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22675 esac
22676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22677
22678
22679     cd "$ac_dir"
22680
22681     # Check for guested configure; otherwise get Cygnus style configure.
22682     if test -f "$ac_srcdir/configure.gnu"; then
22683       ac_sub_configure=$ac_srcdir/configure.gnu
22684     elif test -f "$ac_srcdir/configure"; then
22685       ac_sub_configure=$ac_srcdir/configure
22686     elif test -f "$ac_srcdir/configure.in"; then
22687       # This should be Cygnus configure.
22688       ac_sub_configure=$ac_aux_dir/configure
22689     else
22690       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22691 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22692       ac_sub_configure=
22693     fi
22694
22695     # The recursion is here.
22696     if test -n "$ac_sub_configure"; then
22697       # Make the cache file name correct relative to the subdirectory.
22698       case $cache_file in
22699       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22700       *) # Relative name.
22701         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22702       esac
22703
22704       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22705 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22706       # The eval makes quoting arguments work.
22707       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22708            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22709         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22710 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22711    { (exit 1); exit 1; }; }
22712     fi
22713
22714     cd "$ac_popdir"
22715   done
22716 fi
22717