Fix a problem in the target detection for Debian GNU/kFreeBSD
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 CLANG_SRC_ROOT
712 BINUTILS_INCDIR
713 INTERNAL_PREFIX
714 NM
715 ifGNUmake
716 LN_S
717 CMP
718 CP
719 DATE
720 FIND
721 MKDIR
722 MV
723 RANLIB
724 AR
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 USE_INTEL_JITEVENTS
769 INTEL_JITEVENTS_INCDIR
770 INTEL_JITEVENTS_LIBDIR
771 HAVE_PTHREAD
772 HUGE_VAL_SANITY
773 MMAP_FILE
774 SHLIBEXT
775 SHLIBPATH_VAR
776 LLVM_PREFIX
777 LLVM_BINDIR
778 LLVM_LIBDIR
779 LLVM_DATADIR
780 LLVM_DOCSDIR
781 LLVM_ETCDIR
782 LLVM_INCLUDEDIR
783 LLVM_INFODIR
784 LLVM_MANDIR
785 LLVM_CONFIGTIME
786 BINDINGS_TO_BUILD
787 ALL_BINDINGS
788 OCAML_LIBDIR
789 ENABLE_VISIBILITY_INLINES_HIDDEN
790 RPATH
791 RDYNAMIC
792 LIBOBJS
793 LTLIBOBJS'
794 ac_subst_files=''
795       ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 CPPFLAGS
802 CXX
803 CXXFLAGS
804 CCC
805 CPP'
806 ac_subdirs_all='projects/llvm-gcc
807 projects/test-suite
808 projects/llvm-test
809 projects/poolalloc
810 projects/llvm-poolalloc
811 projects/sample
812 projects/privbracket
813 projects/llvm-stacker
814 projects/llvm-reopt
815 projects/llvm-java
816 projects/llvm-tv
817 projects/safecode
818 projects/llvm-kernel
819 tools/polly'
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871   # If the previous option needs an argument, assign it.
872   if test -n "$ac_prev"; then
873     eval $ac_prev=\$ac_option
874     ac_prev=
875     continue
876   fi
877
878   case $ac_option in
879   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880   *)    ac_optarg=yes ;;
881   esac
882
883   # Accept the important Cygnus configure options, so we can diagnose typos.
884
885   case $ac_dashdash$ac_option in
886   --)
887     ac_dashdash=yes ;;
888
889   -bindir | --bindir | --bindi | --bind | --bin | --bi)
890     ac_prev=bindir ;;
891   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892     bindir=$ac_optarg ;;
893
894   -build | --build | --buil | --bui | --bu)
895     ac_prev=build_alias ;;
896   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897     build_alias=$ac_optarg ;;
898
899   -cache-file | --cache-file | --cache-fil | --cache-fi \
900   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901     ac_prev=cache_file ;;
902   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904     cache_file=$ac_optarg ;;
905
906   --config-cache | -C)
907     cache_file=config.cache ;;
908
909   -datadir | --datadir | --datadi | --datad)
910     ac_prev=datadir ;;
911   -datadir=* | --datadir=* | --datadi=* | --datad=*)
912     datadir=$ac_optarg ;;
913
914   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915   | --dataroo | --dataro | --datar)
916     ac_prev=datarootdir ;;
917   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919     datarootdir=$ac_optarg ;;
920
921   -disable-* | --disable-*)
922     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923     # Reject names that are not valid shell variable names.
924     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926    { (exit 1); exit 1; }; }
927     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928     eval enable_$ac_feature=no ;;
929
930   -docdir | --docdir | --docdi | --doc | --do)
931     ac_prev=docdir ;;
932   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933     docdir=$ac_optarg ;;
934
935   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936     ac_prev=dvidir ;;
937   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938     dvidir=$ac_optarg ;;
939
940   -enable-* | --enable-*)
941     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945    { (exit 1); exit 1; }; }
946     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947     eval enable_$ac_feature=\$ac_optarg ;;
948
949   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951   | --exec | --exe | --ex)
952     ac_prev=exec_prefix ;;
953   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955   | --exec=* | --exe=* | --ex=*)
956     exec_prefix=$ac_optarg ;;
957
958   -gas | --gas | --ga | --g)
959     # Obsolete; use --with-gas.
960     with_gas=yes ;;
961
962   -help | --help | --hel | --he | -h)
963     ac_init_help=long ;;
964   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965     ac_init_help=recursive ;;
966   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967     ac_init_help=short ;;
968
969   -host | --host | --hos | --ho)
970     ac_prev=host_alias ;;
971   -host=* | --host=* | --hos=* | --ho=*)
972     host_alias=$ac_optarg ;;
973
974   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975     ac_prev=htmldir ;;
976   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977   | --ht=*)
978     htmldir=$ac_optarg ;;
979
980   -includedir | --includedir | --includedi | --included | --include \
981   | --includ | --inclu | --incl | --inc)
982     ac_prev=includedir ;;
983   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984   | --includ=* | --inclu=* | --incl=* | --inc=*)
985     includedir=$ac_optarg ;;
986
987   -infodir | --infodir | --infodi | --infod | --info | --inf)
988     ac_prev=infodir ;;
989   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990     infodir=$ac_optarg ;;
991
992   -libdir | --libdir | --libdi | --libd)
993     ac_prev=libdir ;;
994   -libdir=* | --libdir=* | --libdi=* | --libd=*)
995     libdir=$ac_optarg ;;
996
997   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998   | --libexe | --libex | --libe)
999     ac_prev=libexecdir ;;
1000   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001   | --libexe=* | --libex=* | --libe=*)
1002     libexecdir=$ac_optarg ;;
1003
1004   -localedir | --localedir | --localedi | --localed | --locale)
1005     ac_prev=localedir ;;
1006   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007     localedir=$ac_optarg ;;
1008
1009   -localstatedir | --localstatedir | --localstatedi | --localstated \
1010   | --localstate | --localstat | --localsta | --localst | --locals)
1011     ac_prev=localstatedir ;;
1012   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014     localstatedir=$ac_optarg ;;
1015
1016   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017     ac_prev=mandir ;;
1018   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019     mandir=$ac_optarg ;;
1020
1021   -nfp | --nfp | --nf)
1022     # Obsolete; use --without-fp.
1023     with_fp=no ;;
1024
1025   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026   | --no-cr | --no-c | -n)
1027     no_create=yes ;;
1028
1029   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031     no_recursion=yes ;;
1032
1033   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035   | --oldin | --oldi | --old | --ol | --o)
1036     ac_prev=oldincludedir ;;
1037   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040     oldincludedir=$ac_optarg ;;
1041
1042   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043     ac_prev=prefix ;;
1044   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045     prefix=$ac_optarg ;;
1046
1047   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048   | --program-pre | --program-pr | --program-p)
1049     ac_prev=program_prefix ;;
1050   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052     program_prefix=$ac_optarg ;;
1053
1054   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055   | --program-suf | --program-su | --program-s)
1056     ac_prev=program_suffix ;;
1057   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059     program_suffix=$ac_optarg ;;
1060
1061   -program-transform-name | --program-transform-name \
1062   | --program-transform-nam | --program-transform-na \
1063   | --program-transform-n | --program-transform- \
1064   | --program-transform | --program-transfor \
1065   | --program-transfo | --program-transf \
1066   | --program-trans | --program-tran \
1067   | --progr-tra | --program-tr | --program-t)
1068     ac_prev=program_transform_name ;;
1069   -program-transform-name=* | --program-transform-name=* \
1070   | --program-transform-nam=* | --program-transform-na=* \
1071   | --program-transform-n=* | --program-transform-=* \
1072   | --program-transform=* | --program-transfor=* \
1073   | --program-transfo=* | --program-transf=* \
1074   | --program-trans=* | --program-tran=* \
1075   | --progr-tra=* | --program-tr=* | --program-t=*)
1076     program_transform_name=$ac_optarg ;;
1077
1078   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079     ac_prev=pdfdir ;;
1080   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081     pdfdir=$ac_optarg ;;
1082
1083   -psdir | --psdir | --psdi | --psd | --ps)
1084     ac_prev=psdir ;;
1085   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086     psdir=$ac_optarg ;;
1087
1088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089   | -silent | --silent | --silen | --sile | --sil)
1090     silent=yes ;;
1091
1092   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093     ac_prev=sbindir ;;
1094   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095   | --sbi=* | --sb=*)
1096     sbindir=$ac_optarg ;;
1097
1098   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100   | --sharedst | --shareds | --shared | --share | --shar \
1101   | --sha | --sh)
1102     ac_prev=sharedstatedir ;;
1103   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106   | --sha=* | --sh=*)
1107     sharedstatedir=$ac_optarg ;;
1108
1109   -site | --site | --sit)
1110     ac_prev=site ;;
1111   -site=* | --site=* | --sit=*)
1112     site=$ac_optarg ;;
1113
1114   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115     ac_prev=srcdir ;;
1116   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117     srcdir=$ac_optarg ;;
1118
1119   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120   | --syscon | --sysco | --sysc | --sys | --sy)
1121     ac_prev=sysconfdir ;;
1122   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124     sysconfdir=$ac_optarg ;;
1125
1126   -target | --target | --targe | --targ | --tar | --ta | --t)
1127     ac_prev=target_alias ;;
1128   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129     target_alias=$ac_optarg ;;
1130
1131   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132     verbose=yes ;;
1133
1134   -version | --version | --versio | --versi | --vers | -V)
1135     ac_init_version=: ;;
1136
1137   -with-* | --with-*)
1138     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid package name: $ac_package" >&2
1142    { (exit 1); exit 1; }; }
1143     ac_package=`echo $ac_package| sed 's/-/_/g'`
1144     eval with_$ac_package=\$ac_optarg ;;
1145
1146   -without-* | --without-*)
1147     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid package name: $ac_package" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_package=`echo $ac_package | sed 's/-/_/g'`
1153     eval with_$ac_package=no ;;
1154
1155   --x)
1156     # Obsolete; use --with-x.
1157     with_x=yes ;;
1158
1159   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160   | --x-incl | --x-inc | --x-in | --x-i)
1161     ac_prev=x_includes ;;
1162   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164     x_includes=$ac_optarg ;;
1165
1166   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168     ac_prev=x_libraries ;;
1169   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171     x_libraries=$ac_optarg ;;
1172
1173   -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175    { (exit 1); exit 1; }; }
1176     ;;
1177
1178   *=*)
1179     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183    { (exit 1); exit 1; }; }
1184     eval $ac_envvar=\$ac_optarg
1185     export $ac_envvar ;;
1186
1187   *)
1188     # FIXME: should be removed in autoconf 3.0.
1189     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193     ;;
1194
1195   esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200   { echo "$as_me: error: missing argument to $ac_option" >&2
1201    { (exit 1); exit 1; }; }
1202 fi
1203
1204 # Be sure to have absolute directory names.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   case $ac_val in
1212     [\\/$]* | ?:[\\/]* )  continue;;
1213     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214   esac
1215   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216    { (exit 1); exit 1; }; }
1217 done
1218
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1222 build=$build_alias
1223 host=$host_alias
1224 target=$target_alias
1225
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228   if test "x$build_alias" = x; then
1229     cross_compiling=maybe
1230     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231     If a cross compiler is detected then cross compile mode will be used." >&2
1232   elif test "x$build_alias" != "x$host_alias"; then
1233     cross_compiling=yes
1234   fi
1235 fi
1236
1237 ac_tool_prefix=
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240 test "$silent" = yes && exec 6>/dev/null
1241
1242
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246   { echo "$as_me: error: Working directory cannot be determined" >&2
1247    { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249   { echo "$as_me: error: pwd does not report name of working directory" >&2
1250    { (exit 1); exit 1; }; }
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255   ac_srcdir_defaulted=yes
1256   # Try the directory containing this script, then the parent directory.
1257   ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259          X"$0" : 'X\(//\)[^/]' \| \
1260          X"$0" : 'X\(//\)$' \| \
1261          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262 echo X"$0" |
1263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)[^/].*/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\).*/{
1276             s//\1/
1277             q
1278           }
1279           s/.*/./; q'`
1280   srcdir=$ac_confdir
1281   if test ! -r "$srcdir/$ac_unique_file"; then
1282     srcdir=..
1283   fi
1284 else
1285   ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290    { (exit 1); exit 1; }; }
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295    { (exit 1); exit 1; }; }
1296         pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299   srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_env_${ac_var}_value=\$${ac_var}
1310   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318   # Omit some internal or obsolete options to make the list less imposing.
1319   # This message is too long to be a string in the A/UX 3.1 sh.
1320   cat <<_ACEOF
1321 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331   -h, --help              display this help and exit
1332       --help=short        display options specific to this package
1333       --help=recursive    display the short help of all the included packages
1334   -V, --version           display version information and exit
1335   -q, --quiet, --silent   do not print \`checking...' messages
1336       --cache-file=FILE   cache test results in FILE [disabled]
1337   -C, --config-cache      alias for \`--cache-file=config.cache'
1338   -n, --no-create         do not create output files
1339       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342   --prefix=PREFIX         install architecture-independent files in PREFIX
1343                           [$ac_default_prefix]
1344   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                           [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355   --bindir=DIR           user executables [EPREFIX/bin]
1356   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1357   --libexecdir=DIR       program executables [EPREFIX/libexec]
1358   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1359   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1360   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1361   --libdir=DIR           object code libraries [EPREFIX/lib]
1362   --includedir=DIR       C header files [PREFIX/include]
1363   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1364   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1365   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1366   --infodir=DIR          info documentation [DATAROOTDIR/info]
1367   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1368   --mandir=DIR           man documentation [DATAROOTDIR/man]
1369   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1370   --htmldir=DIR          html documentation [DOCDIR]
1371   --dvidir=DIR           dvi documentation [DOCDIR]
1372   --pdfdir=DIR           pdf documentation [DOCDIR]
1373   --psdir=DIR            ps documentation [DOCDIR]
1374 _ACEOF
1375
1376   cat <<\_ACEOF
1377
1378 System types:
1379   --build=BUILD     configure for building on BUILD [guessed]
1380   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381   --target=TARGET   configure for building compilers for TARGET [HOST]
1382 _ACEOF
1383 fi
1384
1385 if test -n "$ac_init_help"; then
1386   case $ac_init_help in
1387      short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1388    esac
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394   --enable-polly          Use polly if available (default is YES)
1395   --enable-libcpp         Use libc++ if available (default is NO)
1396   --enable-optimized      Compile with optimizations enabled (default is NO)
1397   --enable-profiling      Compile with profiling enabled (default is NO)
1398   --enable-assertions     Compile with assertion checks enabled (default is
1399                           YES)
1400   --enable-expensive-checks
1401                           Compile with expensive debug checks enabled (default
1402                           is NO)
1403   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1404                           NO)
1405   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1406                           optimization is on and YES if it's off)
1407   --enable-jit            Enable Just In Time Compiling (default is YES)
1408   --enable-docs           Build documents (default is YES)
1409   --enable-doxygen        Build doxygen documentation (default is NO)
1410   --enable-threads        Use threads if available (default is YES)
1411   --enable-pthreads       Use pthreads if available (default is YES)
1412   --enable-pic            Build LLVM with Position Independent Code (default
1413                           is YES)
1414   --enable-shared         Build a shared library and link tools against it
1415                           (default is NO)
1416   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1417                           Win32 DLL (default is NO)
1418   --enable-timestamps     Enable embedding timestamp information in build
1419                           (default is YES)
1420   --enable-targets        Build specific host targets: all or
1421                           target1,target2,... Valid targets are: host, x86,
1422                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1423                           xcore, msp430, ptx, cbe, and cpp (default=all)
1424   --enable-bindings       Build specific language bindings:
1425                           all,auto,none,{binding-name} (default=auto)
1426   --enable-libffi         Check for the presence of libffi (default is NO)
1427   --enable-ltdl-install   install libltdl
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432   --with-optimize-option  Select the compiler options to use for optimized
1433                           builds
1434   --with-extra-options    Specify additional options to compile LLVM with
1435   --with-extra-ld-options Specify additional options to link LLVM with
1436   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1437                           is stdlib)
1438   --with-clang-srcdir     Directory to the out-of-tree Clang source
1439   --with-clang-resource-dir
1440                           Relative directory from the Clang binary for
1441                           resource files
1442   --with-c-include-dirs   Colon separated list of directories clang will
1443                           search for headers
1444   --with-gcc-toolchain    Directory where gcc is installed.
1445   --with-binutils-include Specify path to binutils/include/ containing
1446                           plugin-api.h file for gold plugin.
1447   --with-bug-report-url   Specify the URL where bug reports should be
1448                           submitted (default=http://llvm.org/bugs/)
1449   --with-internal-prefix  Installation directory for internal files
1450   --with-tclinclude       directory where tcl headers are
1451   --with-udis86=<path>    Use udis86 external x86 disassembler library
1452   --with-oprofile=<prefix>
1453                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1454   --with-intel-jitevents=<vtune-amplifier-dir>
1455                           Specify location of run-time support library for
1456                           Intel JIT API
1457                           (default=/opt/intel/vtune_amplifier_xe_2011)
1458
1459 Some influential environment variables:
1460   CC          C compiler command
1461   CFLAGS      C compiler flags
1462   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463               nonstandard directory <lib dir>
1464   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465               you have headers in a nonstandard directory <include dir>
1466   CXX         C++ compiler command
1467   CXXFLAGS    C++ compiler flags
1468   CPP         C preprocessor
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <http://llvm.org/bugs/>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" || continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 LLVM configure 3.1svn
1535 generated by GNU Autoconf 2.60
1536
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541
1542 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1543 _ACEOF
1544   exit
1545 fi
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1549
1550 It was created by LLVM $as_me 3.1svn, which was
1551 generated by GNU Autoconf 2.60.  Invocation command line was
1552
1553   $ $0 $@
1554
1555 _ACEOF
1556 exec 5>>config.log
1557 {
1558 cat <<_ASUNAME
1559 ## --------- ##
1560 ## Platform. ##
1561 ## --------- ##
1562
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1571
1572 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1573 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1576 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1577 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1578 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1579
1580 _ASUNAME
1581
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   echo "PATH: $as_dir"
1588 done
1589 IFS=$as_save_IFS
1590
1591 } >&5
1592
1593 cat >&5 <<_ACEOF
1594
1595
1596 ## ----------- ##
1597 ## Core tests. ##
1598 ## ----------- ##
1599
1600 _ACEOF
1601
1602
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_configure_args=
1609 ac_configure_args0=
1610 ac_configure_args1=
1611 ac_must_keep_next=false
1612 for ac_pass in 1 2
1613 do
1614   for ac_arg
1615   do
1616     case $ac_arg in
1617     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619     | -silent | --silent | --silen | --sile | --sil)
1620       continue ;;
1621     *\'*)
1622       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623     esac
1624     case $ac_pass in
1625     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626     2)
1627       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628       if test $ac_must_keep_next = true; then
1629         ac_must_keep_next=false # Got value, back to normal.
1630       else
1631         case $ac_arg in
1632           *=* | --config-cache | -C | -disable-* | --disable-* \
1633           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635           | -with-* | --with-* | -without-* | --without-* | --x)
1636             case "$ac_configure_args0 " in
1637               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638             esac
1639             ;;
1640           -* ) ac_must_keep_next=true ;;
1641         esac
1642       fi
1643       ac_configure_args="$ac_configure_args '$ac_arg'"
1644       ;;
1645     esac
1646   done
1647 done
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log.  We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657   # Save into config.log some information that might help in debugging.
1658   {
1659     echo
1660
1661     cat <<\_ASBOX
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1665 _ASBOX
1666     echo
1667     # The following way of writing the cache mishandles newlines in values,
1668 (
1669   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670     eval ac_val=\$$ac_var
1671     case $ac_val in #(
1672     *${as_nl}*)
1673       case $ac_var in #(
1674       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676       esac
1677       case $ac_var in #(
1678       _ | IFS | as_nl) ;; #(
1679       *) $as_unset $ac_var ;;
1680       esac ;;
1681     esac
1682   done
1683   (set) 2>&1 |
1684     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685     *${as_nl}ac_space=\ *)
1686       sed -n \
1687         "s/'\''/'\''\\\\'\'''\''/g;
1688           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689       ;; #(
1690     *)
1691       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1692       ;;
1693     esac |
1694     sort
1695 )
1696     echo
1697
1698     cat <<\_ASBOX
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1702 _ASBOX
1703     echo
1704     for ac_var in $ac_subst_vars
1705     do
1706       eval ac_val=\$$ac_var
1707       case $ac_val in
1708       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709       esac
1710       echo "$ac_var='\''$ac_val'\''"
1711     done | sort
1712     echo
1713
1714     if test -n "$ac_subst_files"; then
1715       cat <<\_ASBOX
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1719 _ASBOX
1720       echo
1721       for ac_var in $ac_subst_files
1722       do
1723         eval ac_val=\$$ac_var
1724         case $ac_val in
1725         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726         esac
1727         echo "$ac_var='\''$ac_val'\''"
1728       done | sort
1729       echo
1730     fi
1731
1732     if test -s confdefs.h; then
1733       cat <<\_ASBOX
1734 ## ----------- ##
1735 ## confdefs.h. ##
1736 ## ----------- ##
1737 _ASBOX
1738       echo
1739       cat confdefs.h
1740       echo
1741     fi
1742     test "$ac_signal" != 0 &&
1743       echo "$as_me: caught signal $ac_signal"
1744     echo "$as_me: exit $exit_status"
1745   } >&5
1746   rm -f core *.core core.conftest.* &&
1747     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748     exit $exit_status
1749 ' 0
1750 for ac_signal in 1 2 13 15; do
1751   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 done
1753 ac_signal=0
1754
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1757
1758 # Predefined preprocessor variables.
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 _ACEOF
1763
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 _ACEOF
1768
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 _ACEOF
1783
1784
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788   set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 else
1792   set x "$ac_default_prefix/share/config.site" \
1793         "$ac_default_prefix/etc/config.site"
1794 fi
1795 shift
1796 for ac_site_file
1797 do
1798   if test -r "$ac_site_file"; then
1799     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801     sed 's/^/| /' "$ac_site_file" >&5
1802     . "$ac_site_file"
1803   fi
1804 done
1805
1806 if test -r "$cache_file"; then
1807   # Some versions of bash will fail to source /dev/null (special
1808   # files actually), so we avoid doing that.
1809   if test -f "$cache_file"; then
1810     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1812     case $cache_file in
1813       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814       *)                      . "./$cache_file";;
1815     esac
1816   fi
1817 else
1818   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1820   >$cache_file
1821 fi
1822
1823 # Check that the precious variables saved in the cache have kept the same
1824 # value.
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828   eval ac_new_set=\$ac_env_${ac_var}_set
1829   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830   eval ac_new_val=\$ac_env_${ac_var}_value
1831   case $ac_old_set,$ac_new_set in
1832     set,)
1833       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835       ac_cache_corrupted=: ;;
1836     ,set)
1837       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839       ac_cache_corrupted=: ;;
1840     ,);;
1841     *)
1842       if test "x$ac_old_val" != "x$ac_new_val"; then
1843         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1846 echo "$as_me:   former value:  $ac_old_val" >&2;}
1847         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1848 echo "$as_me:   current value: $ac_new_val" >&2;}
1849         ac_cache_corrupted=:
1850       fi;;
1851   esac
1852   # Pass precious variables to config.status.
1853   if test "$ac_new_set" = set; then
1854     case $ac_new_val in
1855     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856     *) ac_arg=$ac_var=$ac_new_val ;;
1857     esac
1858     case " $ac_configure_args " in
1859       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1860       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861     esac
1862   fi
1863 done
1864 if $ac_cache_corrupted; then
1865   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869    { (exit 1); exit 1; }; }
1870 fi
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896 ac_ext=c
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
1904 cat >>confdefs.h <<\_ACEOF
1905 #define LLVM_VERSION_MAJOR 3
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<\_ACEOF
1910 #define LLVM_VERSION_MINOR 1
1911 _ACEOF
1912
1913
1914 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1915
1916
1917
1918
1919
1920
1921
1922 ac_aux_dir=
1923 for ac_dir in autoconf "$srcdir"/autoconf; do
1924   if test -f "$ac_dir/install-sh"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/install-sh -c"
1927     break
1928   elif test -f "$ac_dir/install.sh"; then
1929     ac_aux_dir=$ac_dir
1930     ac_install_sh="$ac_aux_dir/install.sh -c"
1931     break
1932   elif test -f "$ac_dir/shtool"; then
1933     ac_aux_dir=$ac_dir
1934     ac_install_sh="$ac_aux_dir/shtool install -c"
1935     break
1936   fi
1937 done
1938 if test -z "$ac_aux_dir"; then
1939   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941    { (exit 1); exit 1; }; }
1942 fi
1943
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1951
1952
1953
1954 if test ${srcdir} != "." ; then
1955   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1956     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958    { (exit 1); exit 1; }; }
1959   fi
1960 fi
1961
1962 ac_ext=c
1963 ac_cpp='$CPP $CPPFLAGS'
1964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 if test -n "$ac_tool_prefix"; then
1968   for ac_prog in clang llvm-gcc gcc
1969   do
1970     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   if test -n "$CC"; then
1978   ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985   for ac_exec_ext in '' $ac_executable_extensions; do
1986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1987     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989     break 2
1990   fi
1991 done
1992 done
1993 IFS=$as_save_IFS
1994
1995 fi
1996 fi
1997 CC=$ac_cv_prog_CC
1998 if test -n "$CC"; then
1999   { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2001 else
2002   { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2004 fi
2005
2006
2007     test -n "$CC" && break
2008   done
2009 fi
2010 if test -z "$CC"; then
2011   ac_ct_CC=$CC
2012   for ac_prog in clang llvm-gcc gcc
2013 do
2014   # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$ac_ct_CC"; then
2022   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2031     ac_cv_prog_ac_ct_CC="$ac_prog"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037 IFS=$as_save_IFS
2038
2039 fi
2040 fi
2041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042 if test -n "$ac_ct_CC"; then
2043   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044 echo "${ECHO_T}$ac_ct_CC" >&6; }
2045 else
2046   { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2048 fi
2049
2050
2051   test -n "$ac_ct_CC" && break
2052 done
2053
2054   if test "x$ac_ct_CC" = x; then
2055     CC=""
2056   else
2057     case $cross_compiling:$ac_tool_warned in
2058 yes:)
2059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet.  If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&5
2062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2063 whose name does not start with the host triplet.  If you think this
2064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2065 ac_tool_warned=yes ;;
2066 esac
2067     CC=$ac_ct_CC
2068   fi
2069 fi
2070
2071
2072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&2;}
2076    { (exit 1); exit 1; }; }
2077
2078 # Provide some information about the compiler.
2079 echo "$as_me:$LINENO: checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (ac_try="$ac_compiler --version >&5"
2082 case "(($ac_try" in
2083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084   *) ac_try_echo=$ac_try;;
2085 esac
2086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2087   (eval "$ac_compiler --version >&5") 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }
2091 { (ac_try="$ac_compiler -v >&5"
2092 case "(($ac_try" in
2093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094   *) ac_try_echo=$ac_try;;
2095 esac
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097   (eval "$ac_compiler -v >&5") 2>&5
2098   ac_status=$?
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); }
2101 { (ac_try="$ac_compiler -V >&5"
2102 case "(($ac_try" in
2103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104   *) ac_try_echo=$ac_try;;
2105 esac
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107   (eval "$ac_compiler -V >&5") 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }
2111
2112 cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h.  */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h.  */
2118
2119 int
2120 main ()
2121 {
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 ac_clean_files_save=$ac_clean_files
2128 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2129 # Try to create an executable without -o first, disregard a.out.
2130 # It will help us diagnose broken compilers, and finding out an intuition
2131 # of exeext.
2132 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2133 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2134 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135 #
2136 # List of possible output files, starting from the most likely.
2137 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2138 # only as a last resort.  b.out is created by i960 compilers.
2139 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2140 #
2141 # The IRIX 6 linker writes into existing files which may not be
2142 # executable, retaining their permissions.  Remove them first so a
2143 # subsequent execution test works.
2144 ac_rmfiles=
2145 for ac_file in $ac_files
2146 do
2147   case $ac_file in
2148     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2149     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2150   esac
2151 done
2152 rm -f $ac_rmfiles
2153
2154 if { (ac_try="$ac_link_default"
2155 case "(($ac_try" in
2156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157   *) ac_try_echo=$ac_try;;
2158 esac
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160   (eval "$ac_link_default") 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; then
2164   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2165 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2166 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2167 # so that the user can short-circuit this test for compilers unknown to
2168 # Autoconf.
2169 for ac_file in $ac_files
2170 do
2171   test -f "$ac_file" || continue
2172   case $ac_file in
2173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2174         ;;
2175     [ab].out )
2176         # We found the default executable, but exeext='' is most
2177         # certainly right.
2178         break;;
2179     *.* )
2180         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2181         then :; else
2182            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183         fi
2184         # We set ac_cv_exeext here because the later test for it is not
2185         # safe: cross compilers may not add the suffix if given an `-o'
2186         # argument, so we may need to know it at that point already.
2187         # Even if this section looks crufty: it has the advantage of
2188         # actually working.
2189         break;;
2190     * )
2191         break;;
2192   esac
2193 done
2194 test "$ac_cv_exeext" = no && ac_cv_exeext=
2195
2196 else
2197   echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&2;}
2204    { (exit 77); exit 77; }; }
2205 fi
2206
2207 ac_exeext=$ac_cv_exeext
2208 { echo "$as_me:$LINENO: result: $ac_file" >&5
2209 echo "${ECHO_T}$ac_file" >&6; }
2210
2211 # Check that the compiler produces executables we can run.  If not, either
2212 # the compiler is broken, or we cross compile.
2213 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216 # If not cross compiling, check that we can run a simple program.
2217 if test "$cross_compiling" != yes; then
2218   if { ac_try='./$ac_file'
2219   { (case "(($ac_try" in
2220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221   *) ac_try_echo=$ac_try;;
2222 esac
2223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224   (eval "$ac_try") 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); }; }; then
2228     cross_compiling=no
2229   else
2230     if test "$cross_compiling" = maybe; then
2231         cross_compiling=yes
2232     else
2233         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&2;}
2239    { (exit 1); exit 1; }; }
2240     fi
2241   fi
2242 fi
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6; }
2245
2246 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247 ac_clean_files=$ac_clean_files_save
2248 # Check that the compiler produces executables we can run.  If not, either
2249 # the compiler is broken, or we cross compile.
2250 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2252 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253 echo "${ECHO_T}$cross_compiling" >&6; }
2254
2255 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2257 if { (ac_try="$ac_link"
2258 case "(($ac_try" in
2259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260   *) ac_try_echo=$ac_try;;
2261 esac
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263   (eval "$ac_link") 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; then
2267   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 # `rm'.
2271 for ac_file in conftest.exe conftest conftest.*; do
2272   test -f "$ac_file" || continue
2273   case $ac_file in
2274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2275     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276           break;;
2277     * ) break;;
2278   esac
2279 done
2280 else
2281   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&2;}
2285    { (exit 1); exit 1; }; }
2286 fi
2287
2288 rm -f conftest$ac_cv_exeext
2289 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2291
2292 rm -f conftest.$ac_ext
2293 EXEEXT=$ac_cv_exeext
2294 ac_exeext=$EXEEXT
2295 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2297 if test "${ac_cv_objext+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h.  */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h.  */
2306
2307 int
2308 main ()
2309 {
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.o conftest.obj
2316 if { (ac_try="$ac_compile"
2317 case "(($ac_try" in
2318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319   *) ac_try_echo=$ac_try;;
2320 esac
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322   (eval "$ac_compile") 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; then
2326   for ac_file in conftest.o conftest.obj conftest.*; do
2327   test -f "$ac_file" || continue;
2328   case $ac_file in
2329     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2330     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2331        break;;
2332   esac
2333 done
2334 else
2335   echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&2;}
2342    { (exit 1); exit 1; }; }
2343 fi
2344
2345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 fi
2347 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2348 echo "${ECHO_T}$ac_cv_objext" >&6; }
2349 OBJEXT=$ac_cv_objext
2350 ac_objext=$OBJEXT
2351 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2352 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2353 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   cat >conftest.$ac_ext <<_ACEOF
2357 /* confdefs.h.  */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h.  */
2362
2363 int
2364 main ()
2365 {
2366 #ifndef __GNUC__
2367        choke me
2368 #endif
2369
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (ac_try="$ac_compile"
2376 case "(($ac_try" in
2377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378   *) ac_try_echo=$ac_try;;
2379 esac
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381   (eval "$ac_compile") 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } &&
2388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389   { (case "(($ac_try" in
2390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391   *) ac_try_echo=$ac_try;;
2392 esac
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394   (eval "$ac_try") 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; } &&
2398          { ac_try='test -s conftest.$ac_objext'
2399   { (case "(($ac_try" in
2400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401   *) ac_try_echo=$ac_try;;
2402 esac
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404   (eval "$ac_try") 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; }; then
2408   ac_compiler_gnu=yes
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413         ac_compiler_gnu=no
2414 fi
2415
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2418
2419 fi
2420 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2421 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2422 GCC=`test $ac_compiler_gnu = yes && echo yes`
2423 ac_test_CFLAGS=${CFLAGS+set}
2424 ac_save_CFLAGS=$CFLAGS
2425 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_cc_g+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   ac_save_c_werror_flag=$ac_c_werror_flag
2431    ac_c_werror_flag=yes
2432    ac_cv_prog_cc_g=no
2433    CFLAGS="-g"
2434    cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h.  */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h.  */
2440
2441 int
2442 main ()
2443 {
2444
2445   ;
2446   return 0;
2447 }
2448 _ACEOF
2449 rm -f conftest.$ac_objext
2450 if { (ac_try="$ac_compile"
2451 case "(($ac_try" in
2452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453   *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456   (eval "$ac_compile") 2>conftest.er1
2457   ac_status=$?
2458   grep -v '^ *+' conftest.er1 >conftest.err
2459   rm -f conftest.er1
2460   cat conftest.err >&5
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); } &&
2463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2464   { (case "(($ac_try" in
2465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466   *) ac_try_echo=$ac_try;;
2467 esac
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469   (eval "$ac_try") 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; } &&
2473          { ac_try='test -s conftest.$ac_objext'
2474   { (case "(($ac_try" in
2475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476   *) ac_try_echo=$ac_try;;
2477 esac
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479   (eval "$ac_try") 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; }; then
2483   ac_cv_prog_cc_g=yes
2484 else
2485   echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2487
2488         CFLAGS=""
2489       cat >conftest.$ac_ext <<_ACEOF
2490 /* confdefs.h.  */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h.  */
2495
2496 int
2497 main ()
2498 {
2499
2500   ;
2501   return 0;
2502 }
2503 _ACEOF
2504 rm -f conftest.$ac_objext
2505 if { (ac_try="$ac_compile"
2506 case "(($ac_try" in
2507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508   *) ac_try_echo=$ac_try;;
2509 esac
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511   (eval "$ac_compile") 2>conftest.er1
2512   ac_status=$?
2513   grep -v '^ *+' conftest.er1 >conftest.err
2514   rm -f conftest.er1
2515   cat conftest.err >&5
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); } &&
2518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2519   { (case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524   (eval "$ac_try") 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; } &&
2528          { ac_try='test -s conftest.$ac_objext'
2529   { (case "(($ac_try" in
2530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531   *) ac_try_echo=$ac_try;;
2532 esac
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534   (eval "$ac_try") 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }; }; then
2538   :
2539 else
2540   echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2542
2543         ac_c_werror_flag=$ac_save_c_werror_flag
2544          CFLAGS="-g"
2545          cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h.  */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h.  */
2551
2552 int
2553 main ()
2554 {
2555
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2562 case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_compile") 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } &&
2574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2575   { (case "(($ac_try" in
2576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577   *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580   (eval "$ac_try") 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; } &&
2584          { ac_try='test -s conftest.$ac_objext'
2585   { (case "(($ac_try" in
2586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587   *) ac_try_echo=$ac_try;;
2588 esac
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590   (eval "$ac_try") 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   ac_cv_prog_cc_g=yes
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599
2600 fi
2601
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 fi
2607
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609    ac_c_werror_flag=$ac_save_c_werror_flag
2610 fi
2611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2613 if test "$ac_test_CFLAGS" = set; then
2614   CFLAGS=$ac_save_CFLAGS
2615 elif test $ac_cv_prog_cc_g = yes; then
2616   if test "$GCC" = yes; then
2617     CFLAGS="-g -O2"
2618   else
2619     CFLAGS="-g"
2620   fi
2621 else
2622   if test "$GCC" = yes; then
2623     CFLAGS="-O2"
2624   else
2625     CFLAGS=
2626   fi
2627 fi
2628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_cc_c89+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   ac_cv_prog_cc_c89=no
2634 ac_save_CC=$CC
2635 cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641 #include <stdarg.h>
2642 #include <stdio.h>
2643 #include <sys/types.h>
2644 #include <sys/stat.h>
2645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2646 struct buf { int x; };
2647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648 static char *e (p, i)
2649      char **p;
2650      int i;
2651 {
2652   return p[i];
2653 }
2654 static char *f (char * (*g) (char **, int), char **p, ...)
2655 {
2656   char *s;
2657   va_list v;
2658   va_start (v,p);
2659   s = g (p, va_arg (v,int));
2660   va_end (v);
2661   return s;
2662 }
2663
2664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2665    function prototypes and stuff, but not '\xHH' hex character constants.
2666    These don't provoke an error unfortunately, instead are silently treated
2667    as 'x'.  The following induces an error, until -std is added to get
2668    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2669    array size at least.  It's necessary to write '\x00'==0 to get something
2670    that's true only with -std.  */
2671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672
2673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674    inside strings and character constants.  */
2675 #define FOO(x) 'x'
2676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677
2678 int test (int i, double x);
2679 struct s1 {int (*f) (int a);};
2680 struct s2 {int (*f) (double a);};
2681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2682 int argc;
2683 char **argv;
2684 int
2685 main ()
2686 {
2687 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 do
2695   CC="$ac_save_CC $ac_arg"
2696   rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compile") 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2711   { (case "(($ac_try" in
2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713   *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716   (eval "$ac_try") 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; } &&
2720          { ac_try='test -s conftest.$ac_objext'
2721   { (case "(($ac_try" in
2722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723   *) ac_try_echo=$ac_try;;
2724 esac
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726   (eval "$ac_try") 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; }; then
2730   ac_cv_prog_cc_c89=$ac_arg
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735
2736 fi
2737
2738 rm -f core conftest.err conftest.$ac_objext
2739   test "x$ac_cv_prog_cc_c89" != "xno" && break
2740 done
2741 rm -f conftest.$ac_ext
2742 CC=$ac_save_CC
2743
2744 fi
2745 # AC_CACHE_VAL
2746 case "x$ac_cv_prog_cc_c89" in
2747   x)
2748     { echo "$as_me:$LINENO: result: none needed" >&5
2749 echo "${ECHO_T}none needed" >&6; } ;;
2750   xno)
2751     { echo "$as_me:$LINENO: result: unsupported" >&5
2752 echo "${ECHO_T}unsupported" >&6; } ;;
2753   *)
2754     CC="$CC $ac_cv_prog_cc_c89"
2755     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2757 esac
2758
2759
2760 ac_ext=c
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766 ac_ext=cpp
2767 ac_cpp='$CXXCPP $CPPFLAGS'
2768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2771 if test -z "$CXX"; then
2772   if test -n "$CCC"; then
2773     CXX=$CCC
2774   else
2775     if test -n "$ac_tool_prefix"; then
2776   for ac_prog in clang++ llvm-g++ g++
2777   do
2778     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_CXX+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785   if test -n "$CXX"; then
2786   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793   for ac_exec_ext in '' $ac_executable_extensions; do
2794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2795     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804 fi
2805 CXX=$ac_cv_prog_CXX
2806 if test -n "$CXX"; then
2807   { echo "$as_me:$LINENO: result: $CXX" >&5
2808 echo "${ECHO_T}$CXX" >&6; }
2809 else
2810   { echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6; }
2812 fi
2813
2814
2815     test -n "$CXX" && break
2816   done
2817 fi
2818 if test -z "$CXX"; then
2819   ac_ct_CXX=$CXX
2820   for ac_prog in clang++ llvm-g++ g++
2821 do
2822   # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   if test -n "$ac_ct_CXX"; then
2830   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837   for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_ac_ct_CXX="$ac_prog"
2840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2850 if test -n "$ac_ct_CXX"; then
2851   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2852 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2853 else
2854   { echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6; }
2856 fi
2857
2858
2859   test -n "$ac_ct_CXX" && break
2860 done
2861
2862   if test "x$ac_ct_CXX" = x; then
2863     CXX="g++"
2864   else
2865     case $cross_compiling:$ac_tool_warned in
2866 yes:)
2867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet.  If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&5
2870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871 whose name does not start with the host triplet.  If you think this
2872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873 ac_tool_warned=yes ;;
2874 esac
2875     CXX=$ac_ct_CXX
2876   fi
2877 fi
2878
2879   fi
2880 fi
2881 # Provide some information about the compiler.
2882 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2883 ac_compiler=`set X $ac_compile; echo $2`
2884 { (ac_try="$ac_compiler --version >&5"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_compiler --version >&5") 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }
2894 { (ac_try="$ac_compiler -v >&5"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compiler -v >&5") 2>&5
2901   ac_status=$?
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); }
2904 { (ac_try="$ac_compiler -V >&5"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compiler -V >&5") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }
2914
2915 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2916 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2917 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926
2927 int
2928 main ()
2929 {
2930 #ifndef __GNUC__
2931        choke me
2932 #endif
2933
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_compile") 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } &&
2952          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2953   { (case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_try") 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; } &&
2962          { ac_try='test -s conftest.$ac_objext'
2963   { (case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_try") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; }; then
2972   ac_compiler_gnu=yes
2973 else
2974   echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977         ac_compiler_gnu=no
2978 fi
2979
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2982
2983 fi
2984 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2985 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2986 GXX=`test $ac_compiler_gnu = yes && echo yes`
2987 ac_test_CXXFLAGS=${CXXFLAGS+set}
2988 ac_save_CXXFLAGS=$CXXFLAGS
2989 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2990 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2991 if test "${ac_cv_prog_cxx_g+set}" = set; then
2992   echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2995    ac_cxx_werror_flag=yes
2996    ac_cv_prog_cxx_g=no
2997    CXXFLAGS="-g"
2998    cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h.  */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h.  */
3004
3005 int
3006 main ()
3007 {
3008
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3015 case "(($ac_try" in
3016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017   *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020   (eval "$ac_compile") 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3028   { (case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_try") 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; } &&
3037          { ac_try='test -s conftest.$ac_objext'
3038   { (case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_try") 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; }; then
3047   ac_cv_prog_cxx_g=yes
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052         CXXFLAGS=""
3053       cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059
3060 int
3061 main ()
3062 {
3063
3064   ;
3065   return 0;
3066 }
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3070 case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075   (eval "$ac_compile") 2>conftest.er1
3076   ac_status=$?
3077   grep -v '^ *+' conftest.er1 >conftest.err
3078   rm -f conftest.er1
3079   cat conftest.err >&5
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); } &&
3082          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3083   { (case "(($ac_try" in
3084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085   *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088   (eval "$ac_try") 2>&5
3089   ac_status=$?
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); }; } &&
3092          { ac_try='test -s conftest.$ac_objext'
3093   { (case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098   (eval "$ac_try") 2>&5
3099   ac_status=$?
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); }; }; then
3102   :
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3108          CXXFLAGS="-g"
3109          cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h.  */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h.  */
3115
3116 int
3117 main ()
3118 {
3119
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_compile") 2>conftest.er1
3132   ac_status=$?
3133   grep -v '^ *+' conftest.er1 >conftest.err
3134   rm -f conftest.er1
3135   cat conftest.err >&5
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); } &&
3138          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3139   { (case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_try") 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; } &&
3148          { ac_try='test -s conftest.$ac_objext'
3149   { (case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_try") 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; }; then
3158   ac_cv_prog_cxx_g=yes
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163
3164 fi
3165
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 fi
3168
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 fi
3171
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174 fi
3175 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3176 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3177 if test "$ac_test_CXXFLAGS" = set; then
3178   CXXFLAGS=$ac_save_CXXFLAGS
3179 elif test $ac_cv_prog_cxx_g = yes; then
3180   if test "$GXX" = yes; then
3181     CXXFLAGS="-g -O2"
3182   else
3183     CXXFLAGS="-g"
3184   fi
3185 else
3186   if test "$GXX" = yes; then
3187     CXXFLAGS="-O2"
3188   else
3189     CXXFLAGS=
3190   fi
3191 fi
3192 ac_ext=c
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197
3198 ac_ext=c
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3204 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3205 # On Suns, sometimes $CPP names a directory.
3206 if test -n "$CPP" && test -d "$CPP"; then
3207   CPP=
3208 fi
3209 if test -z "$CPP"; then
3210   if test "${ac_cv_prog_CPP+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213       # Double quotes because CPP needs to be expanded
3214     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215     do
3216       ac_preproc_ok=false
3217 for ac_c_preproc_warn_flag in '' yes
3218 do
3219   # Use a header file that comes with gcc, so configuring glibc
3220   # with a fresh cross-compiler works.
3221   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222   # <limits.h> exists even on freestanding compilers.
3223   # On the NeXT, cc -E runs the code through the compiler's parser,
3224   # not just through cpp. "Syntax error" is here to catch this case.
3225   cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231 #ifdef __STDC__
3232 # include <limits.h>
3233 #else
3234 # include <assert.h>
3235 #endif
3236                      Syntax error
3237 _ACEOF
3238 if { (ac_try="$ac_cpp conftest.$ac_ext"
3239 case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245   ac_status=$?
3246   grep -v '^ *+' conftest.er1 >conftest.err
3247   rm -f conftest.er1
3248   cat conftest.err >&5
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); } >/dev/null; then
3251   if test -s conftest.err; then
3252     ac_cpp_err=$ac_c_preproc_warn_flag
3253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254   else
3255     ac_cpp_err=
3256   fi
3257 else
3258   ac_cpp_err=yes
3259 fi
3260 if test -z "$ac_cpp_err"; then
3261   :
3262 else
3263   echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266   # Broken: fails on valid input.
3267 continue
3268 fi
3269
3270 rm -f conftest.err conftest.$ac_ext
3271
3272   # OK, works on sane cases.  Now check whether nonexistent headers
3273   # can be detected and how.
3274   cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280 #include <ac_nonexistent.h>
3281 _ACEOF
3282 if { (ac_try="$ac_cpp conftest.$ac_ext"
3283 case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289   ac_status=$?
3290   grep -v '^ *+' conftest.er1 >conftest.err
3291   rm -f conftest.er1
3292   cat conftest.err >&5
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } >/dev/null; then
3295   if test -s conftest.err; then
3296     ac_cpp_err=$ac_c_preproc_warn_flag
3297     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3298   else
3299     ac_cpp_err=
3300   fi
3301 else
3302   ac_cpp_err=yes
3303 fi
3304 if test -z "$ac_cpp_err"; then
3305   # Broken: success on invalid input.
3306 continue
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311   # Passes both tests.
3312 ac_preproc_ok=:
3313 break
3314 fi
3315
3316 rm -f conftest.err conftest.$ac_ext
3317
3318 done
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3322   break
3323 fi
3324
3325     done
3326     ac_cv_prog_CPP=$CPP
3327
3328 fi
3329   CPP=$ac_cv_prog_CPP
3330 else
3331   ac_cv_prog_CPP=$CPP
3332 fi
3333 { echo "$as_me:$LINENO: result: $CPP" >&5
3334 echo "${ECHO_T}$CPP" >&6; }
3335 ac_preproc_ok=false
3336 for ac_c_preproc_warn_flag in '' yes
3337 do
3338   # Use a header file that comes with gcc, so configuring glibc
3339   # with a fresh cross-compiler works.
3340   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341   # <limits.h> exists even on freestanding compilers.
3342   # On the NeXT, cc -E runs the code through the compiler's parser,
3343   # not just through cpp. "Syntax error" is here to catch this case.
3344   cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h.  */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h.  */
3350 #ifdef __STDC__
3351 # include <limits.h>
3352 #else
3353 # include <assert.h>
3354 #endif
3355                      Syntax error
3356 _ACEOF
3357 if { (ac_try="$ac_cpp conftest.$ac_ext"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } >/dev/null; then
3370   if test -s conftest.err; then
3371     ac_cpp_err=$ac_c_preproc_warn_flag
3372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3373   else
3374     ac_cpp_err=
3375   fi
3376 else
3377   ac_cpp_err=yes
3378 fi
3379 if test -z "$ac_cpp_err"; then
3380   :
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385   # Broken: fails on valid input.
3386 continue
3387 fi
3388
3389 rm -f conftest.err conftest.$ac_ext
3390
3391   # OK, works on sane cases.  Now check whether nonexistent headers
3392   # can be detected and how.
3393   cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399 #include <ac_nonexistent.h>
3400 _ACEOF
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } >/dev/null; then
3414   if test -s conftest.err; then
3415     ac_cpp_err=$ac_c_preproc_warn_flag
3416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417   else
3418     ac_cpp_err=
3419   fi
3420 else
3421   ac_cpp_err=yes
3422 fi
3423 if test -z "$ac_cpp_err"; then
3424   # Broken: success on invalid input.
3425 continue
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430   # Passes both tests.
3431 ac_preproc_ok=:
3432 break
3433 fi
3434
3435 rm -f conftest.err conftest.$ac_ext
3436
3437 done
3438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439 rm -f conftest.err conftest.$ac_ext
3440 if $ac_preproc_ok; then
3441   :
3442 else
3443   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444 See \`config.log' for more details." >&5
3445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&2;}
3447    { (exit 1); exit 1; }; }
3448 fi
3449
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
3456
3457
3458
3459 if test -d ${srcdir}/projects/llvm-gcc ; then
3460   subdirs="$subdirs projects/llvm-gcc"
3461
3462 fi
3463
3464 if test -d ${srcdir}/projects/test-suite ; then
3465   subdirs="$subdirs projects/test-suite"
3466
3467 fi
3468
3469 if test -d ${srcdir}/projects/llvm-test ; then
3470   subdirs="$subdirs projects/llvm-test"
3471
3472 fi
3473
3474 if test -d ${srcdir}/projects/poolalloc ; then
3475   subdirs="$subdirs projects/poolalloc"
3476
3477 fi
3478
3479 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3480   subdirs="$subdirs projects/llvm-poolalloc"
3481
3482 fi
3483
3484 for i in `ls ${srcdir}/projects`
3485 do
3486   if test -d ${srcdir}/projects/${i} ; then
3487     case ${i} in
3488       sample)       subdirs="$subdirs projects/sample"
3489     ;;
3490       privbracket)  subdirs="$subdirs projects/privbracket"
3491  ;;
3492       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3493  ;;
3494       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3495 ;;
3496       llvm-java)    subdirs="$subdirs projects/llvm-java"
3497  ;;
3498       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3499    ;;
3500       safecode)     subdirs="$subdirs projects/safecode"
3501  ;;
3502       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3503  ;;
3504       compiler-rt)       ;;
3505       llvm-gcc)       ;;
3506       test-suite)     ;;
3507       llvm-test)      ;;
3508       poolalloc)      ;;
3509       llvm-poolalloc) ;;
3510       *)
3511         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3512 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3513         ;;
3514     esac
3515   fi
3516 done
3517
3518 # Check whether --enable-polly was given.
3519 if test "${enable_polly+set}" = set; then
3520   enableval=$enable_polly;
3521 else
3522   enableval=default
3523 fi
3524
3525 case "$enableval" in
3526   yes) ENABLE_POLLY=1
3527  ;;
3528   no)  ENABLE_POLLY=0
3529  ;;
3530   default) ENABLE_POLLY=1
3531  ;;
3532   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3533 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3534    { (exit 1); exit 1; }; } ;;
3535 esac
3536
3537
3538 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3539   LLVM_HAS_POLLY=1
3540
3541   subdirs="$subdirs tools/polly"
3542
3543 fi
3544
3545
3546 # Make sure we can run config.sub.
3547 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550    { (exit 1); exit 1; }; }
3551
3552 { echo "$as_me:$LINENO: checking build system type" >&5
3553 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554 if test "${ac_cv_build+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   ac_build_alias=$build_alias
3558 test "x$ac_build_alias" = x &&
3559   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560 test "x$ac_build_alias" = x &&
3561   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563    { (exit 1); exit 1; }; }
3564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567    { (exit 1); exit 1; }; }
3568
3569 fi
3570 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571 echo "${ECHO_T}$ac_cv_build" >&6; }
3572 case $ac_cv_build in
3573 *-*-*) ;;
3574 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575 echo "$as_me: error: invalid value of canonical build" >&2;}
3576    { (exit 1); exit 1; }; };;
3577 esac
3578 build=$ac_cv_build
3579 ac_save_IFS=$IFS; IFS='-'
3580 set x $ac_cv_build
3581 shift
3582 build_cpu=$1
3583 build_vendor=$2
3584 shift; shift
3585 # Remember, the first character of IFS is used to create $*,
3586 # except with old shells:
3587 build_os=$*
3588 IFS=$ac_save_IFS
3589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
3592 { echo "$as_me:$LINENO: checking host system type" >&5
3593 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594 if test "${ac_cv_host+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   if test "x$host_alias" = x; then
3598   ac_cv_host=$ac_cv_build
3599 else
3600   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603    { (exit 1); exit 1; }; }
3604 fi
3605
3606 fi
3607 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608 echo "${ECHO_T}$ac_cv_host" >&6; }
3609 case $ac_cv_host in
3610 *-*-*) ;;
3611 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612 echo "$as_me: error: invalid value of canonical host" >&2;}
3613    { (exit 1); exit 1; }; };;
3614 esac
3615 host=$ac_cv_host
3616 ac_save_IFS=$IFS; IFS='-'
3617 set x $ac_cv_host
3618 shift
3619 host_cpu=$1
3620 host_vendor=$2
3621 shift; shift
3622 # Remember, the first character of IFS is used to create $*,
3623 # except with old shells:
3624 host_os=$*
3625 IFS=$ac_save_IFS
3626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627
3628
3629 { echo "$as_me:$LINENO: checking target system type" >&5
3630 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3631 if test "${ac_cv_target+set}" = set; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   if test "x$target_alias" = x; then
3635   ac_cv_target=$ac_cv_host
3636 else
3637   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3638     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3639 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3640    { (exit 1); exit 1; }; }
3641 fi
3642
3643 fi
3644 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3645 echo "${ECHO_T}$ac_cv_target" >&6; }
3646 case $ac_cv_target in
3647 *-*-*) ;;
3648 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3649 echo "$as_me: error: invalid value of canonical target" >&2;}
3650    { (exit 1); exit 1; }; };;
3651 esac
3652 target=$ac_cv_target
3653 ac_save_IFS=$IFS; IFS='-'
3654 set x $ac_cv_target
3655 shift
3656 target_cpu=$1
3657 target_vendor=$2
3658 shift; shift
3659 # Remember, the first character of IFS is used to create $*,
3660 # except with old shells:
3661 target_os=$*
3662 IFS=$ac_save_IFS
3663 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3664
3665
3666 # The aliases save the names the user supplied, while $host etc.
3667 # will get canonicalized.
3668 test -n "$target_alias" &&
3669   test "$program_prefix$program_suffix$program_transform_name" = \
3670     NONENONEs,x,x, &&
3671   program_prefix=${target_alias}-
3672
3673 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3674 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3675 if test "${llvm_cv_os_type+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   case $host in
3679   *-*-aix*)
3680     llvm_cv_link_all_option="-Wl,--whole-archive"
3681     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682     llvm_cv_os_type="AIX"
3683     llvm_cv_platform_type="Unix" ;;
3684   *-*-irix*)
3685     llvm_cv_link_all_option="-Wl,--whole-archive"
3686     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687     llvm_cv_os_type="IRIX"
3688     llvm_cv_platform_type="Unix" ;;
3689   *-*-cygwin*)
3690     llvm_cv_link_all_option="-Wl,--whole-archive"
3691     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692     llvm_cv_os_type="Cygwin"
3693     llvm_cv_platform_type="Unix" ;;
3694   *-*-darwin*)
3695     llvm_cv_link_all_option="-Wl,-all_load"
3696     llvm_cv_no_link_all_option="-Wl,-noall_load"
3697     llvm_cv_os_type="Darwin"
3698     llvm_cv_platform_type="Unix" ;;
3699   *-*-minix*)
3700     llvm_cv_link_all_option="-Wl,-all_load"
3701     llvm_cv_no_link_all_option="-Wl,-noall_load"
3702     llvm_cv_os_type="Minix"
3703     llvm_cv_platform_type="Unix" ;;
3704   *-*-freebsd* | *-*-kfreebsd-gnu)
3705     llvm_cv_link_all_option="-Wl,--whole-archive"
3706     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3707     llvm_cv_os_type="FreeBSD"
3708     llvm_cv_platform_type="Unix" ;;
3709   *-*-openbsd*)
3710     llvm_cv_link_all_option="-Wl,--whole-archive"
3711     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712     llvm_cv_os_type="OpenBSD"
3713     llvm_cv_platform_type="Unix" ;;
3714   *-*-netbsd*)
3715     llvm_cv_link_all_option="-Wl,--whole-archive"
3716     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717     llvm_cv_os_type="NetBSD"
3718     llvm_cv_platform_type="Unix" ;;
3719   *-*-dragonfly*)
3720     llvm_cv_link_all_option="-Wl,--whole-archive"
3721     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722     llvm_cv_os_type="DragonFly"
3723     llvm_cv_platform_type="Unix" ;;
3724   *-*-hpux*)
3725     llvm_cv_link_all_option="-Wl,--whole-archive"
3726     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727     llvm_cv_os_type="HP-UX"
3728     llvm_cv_platform_type="Unix" ;;
3729   *-*-interix*)
3730     llvm_cv_link_all_option="-Wl,--whole-archive"
3731     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732     llvm_cv_os_type="Interix"
3733     llvm_cv_platform_type="Unix" ;;
3734   *-*-linux*)
3735     llvm_cv_link_all_option="-Wl,--whole-archive"
3736     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3737     llvm_cv_os_type="Linux"
3738     llvm_cv_platform_type="Unix" ;;
3739   *-*-gnu*)
3740     llvm_cv_link_all_option="-Wl,--whole-archive"
3741     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3742     llvm_cv_os_type="GNU"
3743     llvm_cv_platform_type="Unix" ;;
3744   *-*-solaris*)
3745     llvm_cv_link_all_option="-Wl,-z,allextract"
3746     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3747     llvm_cv_os_type="SunOS"
3748     llvm_cv_platform_type="Unix" ;;
3749   *-*-auroraux*)
3750     llvm_cv_link_all_option="-Wl,-z,allextract"
3751     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3752     llvm_cv_os_type="AuroraUX"
3753     llvm_cv_platform_type="Unix" ;;
3754   *-*-win32*)
3755     llvm_cv_link_all_option="-Wl,--whole-archive"
3756     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3757     llvm_cv_os_type="Win32"
3758     llvm_cv_platform_type="Win32" ;;
3759   *-*-mingw*)
3760     llvm_cv_link_all_option="-Wl,--whole-archive"
3761     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3762     llvm_cv_os_type="MingW"
3763     llvm_cv_platform_type="Win32" ;;
3764   *-*-haiku*)
3765     llvm_cv_link_all_option="-Wl,--whole-archive"
3766     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3767     llvm_cv_os_type="Haiku"
3768     llvm_cv_platform_type="Unix" ;;
3769   *-unknown-eabi*)
3770     llvm_cv_link_all_option="-Wl,--whole-archive"
3771     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3772     llvm_cv_os_type="Freestanding"
3773     llvm_cv_platform_type="Unix" ;;
3774   *-unknown-elf*)
3775     llvm_cv_link_all_option="-Wl,--whole-archive"
3776     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3777     llvm_cv_os_type="Freestanding"
3778     llvm_cv_platform_type="Unix" ;;
3779   *)
3780     llvm_cv_link_all_option=""
3781     llvm_cv_no_link_all_option=""
3782     llvm_cv_os_type="Unknown"
3783     llvm_cv_platform_type="Unknown" ;;
3784 esac
3785 fi
3786 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3787 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3788
3789 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3790 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3791 if test "${llvm_cv_target_os_type+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   case $target in
3795   *-*-aix*)
3796     llvm_cv_target_os_type="AIX" ;;
3797   *-*-irix*)
3798     llvm_cv_target_os_type="IRIX" ;;
3799   *-*-cygwin*)
3800     llvm_cv_target_os_type="Cygwin" ;;
3801   *-*-darwin*)
3802     llvm_cv_target_os_type="Darwin" ;;
3803   *-*-minix*)
3804     llvm_cv_target_os_type="Minix" ;;
3805   *-*-freebsd*| *-*-kfreebsd-gnu)
3806     llvm_cv_target_os_type="FreeBSD" ;;
3807   *-*-openbsd*)
3808     llvm_cv_target_os_type="OpenBSD" ;;
3809   *-*-netbsd*)
3810     llvm_cv_target_os_type="NetBSD" ;;
3811   *-*-dragonfly*)
3812     llvm_cv_target_os_type="DragonFly" ;;
3813   *-*-hpux*)
3814     llvm_cv_target_os_type="HP-UX" ;;
3815   *-*-interix*)
3816     llvm_cv_target_os_type="Interix" ;;
3817   *-*-linux*)
3818     llvm_cv_target_os_type="Linux" ;;
3819   *-*-solaris*)
3820     llvm_cv_target_os_type="SunOS" ;;
3821   *-*-auroraux*)
3822     llvm_cv_target_os_type="AuroraUX" ;;
3823   *-*-win32*)
3824     llvm_cv_target_os_type="Win32" ;;
3825   *-*-mingw*)
3826     llvm_cv_target_os_type="MingW" ;;
3827   *-*-haiku*)
3828     llvm_cv_target_os_type="Haiku" ;;
3829   *-*-rtems*)
3830     llvm_cv_target_os_type="RTEMS" ;;
3831   *-*-nacl*)
3832     llvm_cv_target_os_type="NativeClient" ;;
3833   *-unknown-eabi*)
3834     llvm_cv_target_os_type="Freestanding" ;;
3835   *)
3836     llvm_cv_target_os_type="Unknown" ;;
3837 esac
3838 fi
3839 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3840 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3841
3842 if test "$llvm_cv_os_type" = "Unknown" ; then
3843   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3844 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3845    { (exit 1); exit 1; }; }
3846 fi
3847
3848 OS=$llvm_cv_os_type
3849
3850 HOST_OS=$llvm_cv_os_type
3851
3852 TARGET_OS=$llvm_cv_target_os_type
3853
3854
3855 LINKALL=$llvm_cv_link_all_option
3856
3857 NOLINKALL=$llvm_cv_no_link_all_option
3858
3859
3860 case $llvm_cv_platform_type in
3861   Unix)
3862
3863 cat >>confdefs.h <<\_ACEOF
3864 #define LLVM_ON_UNIX 1
3865 _ACEOF
3866
3867     LLVM_ON_UNIX=1
3868
3869     LLVM_ON_WIN32=0
3870
3871     ;;
3872   Win32)
3873
3874 cat >>confdefs.h <<\_ACEOF
3875 #define LLVM_ON_WIN32 1
3876 _ACEOF
3877
3878     LLVM_ON_UNIX=0
3879
3880     LLVM_ON_WIN32=1
3881
3882     ;;
3883 esac
3884
3885 { echo "$as_me:$LINENO: checking target architecture" >&5
3886 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3887 if test "${llvm_cv_target_arch+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   case $target in
3891   i?86-*)                 llvm_cv_target_arch="x86" ;;
3892   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3893   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3894   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3895   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3896   mips-*)                 llvm_cv_target_arch="Mips" ;;
3897   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3898   xcore-*)                llvm_cv_target_arch="XCore" ;;
3899   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3900   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3901   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3902   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3903   *)                      llvm_cv_target_arch="Unknown" ;;
3904 esac
3905 fi
3906 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3907 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3908
3909 if test "$llvm_cv_target_arch" = "Unknown" ; then
3910   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3911 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3912 fi
3913
3914 case "$llvm_cv_target_arch" in
3915     x86)     LLVM_NATIVE_ARCH="X86" ;;
3916     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3917     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3918 esac
3919
3920 ARCH=$llvm_cv_target_arch
3921
3922
3923
3924
3925 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3926 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3927 if test "${ac_cv_path_GREP+set}" = set; then
3928   echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930   # Extract the first word of "grep ggrep" to use in msg output
3931 if test -z "$GREP"; then
3932 set dummy grep ggrep; ac_prog_name=$2
3933 if test "${ac_cv_path_GREP+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   ac_path_GREP_found=false
3937 # Loop through the user's path and test for each of PROGNAME-LIST
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3940 do
3941   IFS=$as_save_IFS
3942   test -z "$as_dir" && as_dir=.
3943   for ac_prog in grep ggrep; do
3944   for ac_exec_ext in '' $ac_executable_extensions; do
3945     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3946     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3947     # Check for GNU ac_path_GREP and select it if it is found.
3948   # Check for GNU $ac_path_GREP
3949 case `"$ac_path_GREP" --version 2>&1` in
3950 *GNU*)
3951   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3952 *)
3953   ac_count=0
3954   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3955   while :
3956   do
3957     cat "conftest.in" "conftest.in" >"conftest.tmp"
3958     mv "conftest.tmp" "conftest.in"
3959     cp "conftest.in" "conftest.nl"
3960     echo 'GREP' >> "conftest.nl"
3961     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3962     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3963     ac_count=`expr $ac_count + 1`
3964     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3965       # Best one so far, save it but keep looking for a better one
3966       ac_cv_path_GREP="$ac_path_GREP"
3967       ac_path_GREP_max=$ac_count
3968     fi
3969     # 10*(2^10) chars as input seems more than enough
3970     test $ac_count -gt 10 && break
3971   done
3972   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3973 esac
3974
3975
3976     $ac_path_GREP_found && break 3
3977   done
3978 done
3979
3980 done
3981 IFS=$as_save_IFS
3982
3983
3984 fi
3985
3986 GREP="$ac_cv_path_GREP"
3987 if test -z "$GREP"; then
3988   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3989 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3990    { (exit 1); exit 1; }; }
3991 fi
3992
3993 else
3994   ac_cv_path_GREP=$GREP
3995 fi
3996
3997
3998 fi
3999 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4000 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4001  GREP="$ac_cv_path_GREP"
4002
4003
4004 { echo "$as_me:$LINENO: checking for egrep" >&5
4005 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4006 if test "${ac_cv_path_EGREP+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4010    then ac_cv_path_EGREP="$GREP -E"
4011    else
4012      # Extract the first word of "egrep" to use in msg output
4013 if test -z "$EGREP"; then
4014 set dummy egrep; ac_prog_name=$2
4015 if test "${ac_cv_path_EGREP+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   ac_path_EGREP_found=false
4019 # Loop through the user's path and test for each of PROGNAME-LIST
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 do
4023   IFS=$as_save_IFS
4024   test -z "$as_dir" && as_dir=.
4025   for ac_prog in egrep; do
4026   for ac_exec_ext in '' $ac_executable_extensions; do
4027     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4028     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4029     # Check for GNU ac_path_EGREP and select it if it is found.
4030   # Check for GNU $ac_path_EGREP
4031 case `"$ac_path_EGREP" --version 2>&1` in
4032 *GNU*)
4033   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4034 *)
4035   ac_count=0
4036   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4037   while :
4038   do
4039     cat "conftest.in" "conftest.in" >"conftest.tmp"
4040     mv "conftest.tmp" "conftest.in"
4041     cp "conftest.in" "conftest.nl"
4042     echo 'EGREP' >> "conftest.nl"
4043     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045     ac_count=`expr $ac_count + 1`
4046     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4047       # Best one so far, save it but keep looking for a better one
4048       ac_cv_path_EGREP="$ac_path_EGREP"
4049       ac_path_EGREP_max=$ac_count
4050     fi
4051     # 10*(2^10) chars as input seems more than enough
4052     test $ac_count -gt 10 && break
4053   done
4054   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055 esac
4056
4057
4058     $ac_path_EGREP_found && break 3
4059   done
4060 done
4061
4062 done
4063 IFS=$as_save_IFS
4064
4065
4066 fi
4067
4068 EGREP="$ac_cv_path_EGREP"
4069 if test -z "$EGREP"; then
4070   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4071 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4072    { (exit 1); exit 1; }; }
4073 fi
4074
4075 else
4076   ac_cv_path_EGREP=$EGREP
4077 fi
4078
4079
4080    fi
4081 fi
4082 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4083 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4084  EGREP="$ac_cv_path_EGREP"
4085
4086
4087 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4088 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4089 if test "${ac_cv_header_stdc+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h.  */
4098 #include <stdlib.h>
4099 #include <stdarg.h>
4100 #include <string.h>
4101 #include <float.h>
4102
4103 int
4104 main ()
4105 {
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118   (eval "$ac_compile") 2>conftest.er1
4119   ac_status=$?
4120   grep -v '^ *+' conftest.er1 >conftest.err
4121   rm -f conftest.er1
4122   cat conftest.err >&5
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); } &&
4125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126   { (case "(($ac_try" in
4127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128   *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131   (eval "$ac_try") 2>&5
4132   ac_status=$?
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); }; } &&
4135          { ac_try='test -s conftest.$ac_objext'
4136   { (case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_try") 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; }; then
4145   ac_cv_header_stdc=yes
4146 else
4147   echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150         ac_cv_header_stdc=no
4151 fi
4152
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154
4155 if test $ac_cv_header_stdc = yes; then
4156   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4157   cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h.  */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h.  */
4163 #include <string.h>
4164
4165 _ACEOF
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167   $EGREP "memchr" >/dev/null 2>&1; then
4168   :
4169 else
4170   ac_cv_header_stdc=no
4171 fi
4172 rm -f conftest*
4173
4174 fi
4175
4176 if test $ac_cv_header_stdc = yes; then
4177   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4178   cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h.  */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h.  */
4184 #include <stdlib.h>
4185
4186 _ACEOF
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188   $EGREP "free" >/dev/null 2>&1; then
4189   :
4190 else
4191   ac_cv_header_stdc=no
4192 fi
4193 rm -f conftest*
4194
4195 fi
4196
4197 if test $ac_cv_header_stdc = yes; then
4198   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4199   if test "$cross_compiling" = yes; then
4200   :
4201 else
4202   cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h.  */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h.  */
4208 #include <ctype.h>
4209 #include <stdlib.h>
4210 #if ((' ' & 0x0FF) == 0x020)
4211 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4212 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4213 #else
4214 # define ISLOWER(c) \
4215                    (('a' <= (c) && (c) <= 'i') \
4216                      || ('j' <= (c) && (c) <= 'r') \
4217                      || ('s' <= (c) && (c) <= 'z'))
4218 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4219 #endif
4220
4221 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4222 int
4223 main ()
4224 {
4225   int i;
4226   for (i = 0; i < 256; i++)
4227     if (XOR (islower (i), ISLOWER (i))
4228         || toupper (i) != TOUPPER (i))
4229       return 2;
4230   return 0;
4231 }
4232 _ACEOF
4233 rm -f conftest$ac_exeext
4234 if { (ac_try="$ac_link"
4235 case "(($ac_try" in
4236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237   *) ac_try_echo=$ac_try;;
4238 esac
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240   (eval "$ac_link") 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4244   { (case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249   (eval "$ac_try") 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; }; then
4253   :
4254 else
4255   echo "$as_me: program exited with status $ac_status" >&5
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 ( exit $ac_status )
4260 ac_cv_header_stdc=no
4261 fi
4262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4263 fi
4264
4265
4266 fi
4267 fi
4268 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4269 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4270 if test $ac_cv_header_stdc = yes; then
4271
4272 cat >>confdefs.h <<\_ACEOF
4273 #define STDC_HEADERS 1
4274 _ACEOF
4275
4276 fi
4277
4278 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4289                   inttypes.h stdint.h unistd.h
4290 do
4291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4295   echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297   cat >conftest.$ac_ext <<_ACEOF
4298 /* confdefs.h.  */
4299 _ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h.  */
4303 $ac_includes_default
4304
4305 #include <$ac_header>
4306 _ACEOF
4307 rm -f conftest.$ac_objext
4308 if { (ac_try="$ac_compile"
4309 case "(($ac_try" in
4310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311   *) ac_try_echo=$ac_try;;
4312 esac
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314   (eval "$ac_compile") 2>conftest.er1
4315   ac_status=$?
4316   grep -v '^ *+' conftest.er1 >conftest.err
4317   rm -f conftest.er1
4318   cat conftest.err >&5
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); } &&
4321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4322   { (case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327   (eval "$ac_try") 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); }; } &&
4331          { ac_try='test -s conftest.$ac_objext'
4332   { (case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337   (eval "$ac_try") 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; }; then
4341   eval "$as_ac_Header=yes"
4342 else
4343   echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346         eval "$as_ac_Header=no"
4347 fi
4348
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 fi
4351 ac_res=`eval echo '${'$as_ac_Header'}'`
4352                { echo "$as_me:$LINENO: result: $ac_res" >&5
4353 echo "${ECHO_T}$ac_res" >&6; }
4354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4355   cat >>confdefs.h <<_ACEOF
4356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4357 _ACEOF
4358
4359 fi
4360
4361 done
4362
4363
4364 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4365 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4366 if test "${ac_cv_c_bigendian+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   # See if sys/param.h defines the BYTE_ORDER macro.
4370 cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 #include <sys/types.h>
4377 #include <sys/param.h>
4378
4379 int
4380 main ()
4381 {
4382 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4383  bogus endian macros
4384 #endif
4385
4386   ;
4387   return 0;
4388 }
4389 _ACEOF
4390 rm -f conftest.$ac_objext
4391 if { (ac_try="$ac_compile"
4392 case "(($ac_try" in
4393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394   *) ac_try_echo=$ac_try;;
4395 esac
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397   (eval "$ac_compile") 2>conftest.er1
4398   ac_status=$?
4399   grep -v '^ *+' conftest.er1 >conftest.err
4400   rm -f conftest.er1
4401   cat conftest.err >&5
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); } &&
4404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4405   { (case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410   (eval "$ac_try") 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; } &&
4414          { ac_try='test -s conftest.$ac_objext'
4415   { (case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420   (eval "$ac_try") 2>&5
4421   ac_status=$?
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); }; }; then
4424   # It does; now see whether it defined to BIG_ENDIAN or not.
4425 cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h.  */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h.  */
4431 #include <sys/types.h>
4432 #include <sys/param.h>
4433
4434 int
4435 main ()
4436 {
4437 #if BYTE_ORDER != BIG_ENDIAN
4438  not big endian
4439 #endif
4440
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 rm -f conftest.$ac_objext
4446 if { (ac_try="$ac_compile"
4447 case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452   (eval "$ac_compile") 2>conftest.er1
4453   ac_status=$?
4454   grep -v '^ *+' conftest.er1 >conftest.err
4455   rm -f conftest.er1
4456   cat conftest.err >&5
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } &&
4459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4460   { (case "(($ac_try" in
4461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462   *) ac_try_echo=$ac_try;;
4463 esac
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465   (eval "$ac_try") 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; } &&
4469          { ac_try='test -s conftest.$ac_objext'
4470   { (case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_try") 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; }; then
4479   ac_cv_c_bigendian=yes
4480 else
4481   echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484         ac_cv_c_bigendian=no
4485 fi
4486
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 else
4489   echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492         # It does not; compile a test program.
4493 if test "$cross_compiling" = yes; then
4494   # try to guess the endianness by grepping values into an object file
4495   ac_cv_c_bigendian=unknown
4496   cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h.  */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h.  */
4502 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4503 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4504 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4505 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4506 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4507 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4508 int
4509 main ()
4510 {
4511  _ascii (); _ebcdic ();
4512   ;
4513   return 0;
4514 }
4515 _ACEOF
4516 rm -f conftest.$ac_objext
4517 if { (ac_try="$ac_compile"
4518 case "(($ac_try" in
4519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520   *) ac_try_echo=$ac_try;;
4521 esac
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523   (eval "$ac_compile") 2>conftest.er1
4524   ac_status=$?
4525   grep -v '^ *+' conftest.er1 >conftest.err
4526   rm -f conftest.er1
4527   cat conftest.err >&5
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); } &&
4530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4531   { (case "(($ac_try" in
4532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533   *) ac_try_echo=$ac_try;;
4534 esac
4535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536   (eval "$ac_try") 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; } &&
4540          { ac_try='test -s conftest.$ac_objext'
4541   { (case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546   (eval "$ac_try") 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; }; then
4550   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4551   ac_cv_c_bigendian=yes
4552 fi
4553 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4554   if test "$ac_cv_c_bigendian" = unknown; then
4555     ac_cv_c_bigendian=no
4556   else
4557     # finding both strings is unlikely to happen, but who knows?
4558     ac_cv_c_bigendian=unknown
4559   fi
4560 fi
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565
4566 fi
4567
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 else
4570   cat >conftest.$ac_ext <<_ACEOF
4571 /* confdefs.h.  */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h.  */
4576 $ac_includes_default
4577 int
4578 main ()
4579 {
4580
4581   /* Are we little or big endian?  From Harbison&Steele.  */
4582   union
4583   {
4584     long int l;
4585     char c[sizeof (long int)];
4586   } u;
4587   u.l = 1;
4588   return u.c[sizeof (long int) - 1] == 1;
4589
4590   ;
4591   return 0;
4592 }
4593 _ACEOF
4594 rm -f conftest$ac_exeext
4595 if { (ac_try="$ac_link"
4596 case "(($ac_try" in
4597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598   *) ac_try_echo=$ac_try;;
4599 esac
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601   (eval "$ac_link") 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4605   { (case "(($ac_try" in
4606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607   *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610   (eval "$ac_try") 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }; }; then
4614   ac_cv_c_bigendian=no
4615 else
4616   echo "$as_me: program exited with status $ac_status" >&5
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 ( exit $ac_status )
4621 ac_cv_c_bigendian=yes
4622 fi
4623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4624 fi
4625
4626
4627 fi
4628
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 fi
4631 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4632 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4633 case $ac_cv_c_bigendian in
4634   yes)
4635     ENDIAN=big
4636  ;;
4637   no)
4638     ENDIAN=little
4639  ;;
4640   *)
4641     { { echo "$as_me:$LINENO: error: unknown endianness
4642 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4643 echo "$as_me: error: unknown endianness
4644 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4645    { (exit 1); exit 1; }; } ;;
4646 esac
4647
4648
4649 if test "$cross_compiling" = yes; then
4650   LLVM_CROSS_COMPILING=1
4651
4652
4653 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4654 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4655 if test "${ac_cv_build_exeext+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4659   ac_cv_build_exeext=.exe
4660 else
4661   ac_build_prefix=${build_alias}-
4662
4663   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4664 set dummy ${ac_build_prefix}gcc; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   if test -n "$BUILD_CC"; then
4671   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676   IFS=$as_save_IFS
4677   test -z "$as_dir" && as_dir=.
4678   for ac_exec_ext in '' $ac_executable_extensions; do
4679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4680     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682     break 2
4683   fi
4684 done
4685 done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
4690 BUILD_CC=$ac_cv_prog_BUILD_CC
4691 if test -n "$BUILD_CC"; then
4692   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4693 echo "${ECHO_T}$BUILD_CC" >&6; }
4694 else
4695   { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4697 fi
4698
4699
4700   if test -z "$BUILD_CC"; then
4701      # Extract the first word of "gcc", so it can be a program name with args.
4702 set dummy gcc; ac_word=$2
4703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   if test -n "$BUILD_CC"; then
4709   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716   for ac_exec_ext in '' $ac_executable_extensions; do
4717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4718     ac_cv_prog_BUILD_CC="gcc"
4719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723 done
4724 IFS=$as_save_IFS
4725
4726 fi
4727 fi
4728 BUILD_CC=$ac_cv_prog_BUILD_CC
4729 if test -n "$BUILD_CC"; then
4730   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4731 echo "${ECHO_T}$BUILD_CC" >&6; }
4732 else
4733   { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4735 fi
4736
4737
4738      if test -z "$BUILD_CC"; then
4739        # Extract the first word of "cc", so it can be a program name with args.
4740 set dummy cc; ac_word=$2
4741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4743 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   if test -n "$BUILD_CC"; then
4747   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4748 else
4749   ac_prog_rejected=no
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4758        ac_prog_rejected=yes
4759        continue
4760      fi
4761     ac_cv_prog_BUILD_CC="cc"
4762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763     break 2
4764   fi
4765 done
4766 done
4767 IFS=$as_save_IFS
4768
4769 if test $ac_prog_rejected = yes; then
4770   # We found a bogon in the path, so make sure we never use it.
4771   set dummy $ac_cv_prog_BUILD_CC
4772   shift
4773   if test $# != 0; then
4774     # We chose a different compiler from the bogus one.
4775     # However, it has the same basename, so the bogon will be chosen
4776     # first if we set BUILD_CC to just the basename; use the full file name.
4777     shift
4778     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4779   fi
4780 fi
4781 fi
4782 fi
4783 BUILD_CC=$ac_cv_prog_BUILD_CC
4784 if test -n "$BUILD_CC"; then
4785   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4786 echo "${ECHO_T}$BUILD_CC" >&6; }
4787 else
4788   { echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6; }
4790 fi
4791
4792
4793      fi
4794   fi
4795   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4796 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4797    { (exit 1); exit 1; }; }
4798   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4799   rm -f conftest*
4800   echo 'int main () { return 0; }' > conftest.$ac_ext
4801   ac_cv_build_exeext=
4802   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4803   (eval $ac_build_link) 2>&5
4804   ac_status=$?
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); }; then
4807     for file in conftest.*; do
4808       case $file in
4809       *.c | *.o | *.obj | *.dSYM) ;;
4810       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4811       esac
4812     done
4813   else
4814     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4815 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4816    { (exit 1); exit 1; }; }
4817   fi
4818   rm -f conftest*
4819   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4820 fi
4821 fi
4822
4823 BUILD_EXEEXT=""
4824 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4825 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4826 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4827 ac_build_exeext=$BUILD_EXEEXT
4828
4829   ac_build_prefix=${build_alias}-
4830   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4831 set dummy ${ac_build_prefix}g++; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   if test -n "$BUILD_CXX"; then
4838   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843   IFS=$as_save_IFS
4844   test -z "$as_dir" && as_dir=.
4845   for ac_exec_ext in '' $ac_executable_extensions; do
4846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4847     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849     break 2
4850   fi
4851 done
4852 done
4853 IFS=$as_save_IFS
4854
4855 fi
4856 fi
4857 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4858 if test -n "$BUILD_CXX"; then
4859   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4860 echo "${ECHO_T}$BUILD_CXX" >&6; }
4861 else
4862   { echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6; }
4864 fi
4865
4866
4867   if test -z "$BUILD_CXX"; then
4868      # Extract the first word of "g++", so it can be a program name with args.
4869 set dummy g++; ac_word=$2
4870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4872 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   if test -n "$BUILD_CXX"; then
4876   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881   IFS=$as_save_IFS
4882   test -z "$as_dir" && as_dir=.
4883   for ac_exec_ext in '' $ac_executable_extensions; do
4884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4885     ac_cv_prog_BUILD_CXX="g++"
4886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887     break 2
4888   fi
4889 done
4890 done
4891 IFS=$as_save_IFS
4892
4893 fi
4894 fi
4895 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4896 if test -n "$BUILD_CXX"; then
4897   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4898 echo "${ECHO_T}$BUILD_CXX" >&6; }
4899 else
4900   { echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6; }
4902 fi
4903
4904
4905      if test -z "$BUILD_CXX"; then
4906        # Extract the first word of "c++", so it can be a program name with args.
4907 set dummy c++; ac_word=$2
4908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4910 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913   if test -n "$BUILD_CXX"; then
4914   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4915 else
4916   ac_prog_rejected=no
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922   for ac_exec_ext in '' $ac_executable_extensions; do
4923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4924     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4925        ac_prog_rejected=yes
4926        continue
4927      fi
4928     ac_cv_prog_BUILD_CXX="c++"
4929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930     break 2
4931   fi
4932 done
4933 done
4934 IFS=$as_save_IFS
4935
4936 if test $ac_prog_rejected = yes; then
4937   # We found a bogon in the path, so make sure we never use it.
4938   set dummy $ac_cv_prog_BUILD_CXX
4939   shift
4940   if test $# != 0; then
4941     # We chose a different compiler from the bogus one.
4942     # However, it has the same basename, so the bogon will be chosen
4943     # first if we set BUILD_CXX to just the basename; use the full file name.
4944     shift
4945     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4946   fi
4947 fi
4948 fi
4949 fi
4950 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4951 if test -n "$BUILD_CXX"; then
4952   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4953 echo "${ECHO_T}$BUILD_CXX" >&6; }
4954 else
4955   { echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6; }
4957 fi
4958
4959
4960      fi
4961   fi
4962 else
4963   LLVM_CROSS_COMPILING=0
4964
4965 fi
4966
4967 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4968   cvsbuild="yes"
4969   optimize="no"
4970   CVSBUILD=CVSBUILD=1
4971
4972 else
4973   cvsbuild="no"
4974   optimize="yes"
4975 fi
4976
4977
4978 # Check whether --enable-libcpp was given.
4979 if test "${enable_libcpp+set}" = set; then
4980   enableval=$enable_libcpp;
4981 else
4982   enableval=default
4983 fi
4984
4985 case "$enableval" in
4986   yes) ENABLE_LIBCPP=1
4987  ;;
4988   no)  ENABLE_LIBCPP=0
4989  ;;
4990   default) ENABLE_LIBCPP=0
4991 ;;
4992   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4993 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4994    { (exit 1); exit 1; }; } ;;
4995 esac
4996
4997 # Check whether --enable-optimized was given.
4998 if test "${enable_optimized+set}" = set; then
4999   enableval=$enable_optimized;
5000 else
5001   enableval=$optimize
5002 fi
5003
5004 if test ${enableval} = "no" ; then
5005   ENABLE_OPTIMIZED=
5006
5007 else
5008   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5009
5010 fi
5011
5012 # Check whether --enable-profiling was given.
5013 if test "${enable_profiling+set}" = set; then
5014   enableval=$enable_profiling;
5015 else
5016   enableval="no"
5017 fi
5018
5019 if test ${enableval} = "no" ; then
5020   ENABLE_PROFILING=
5021
5022 else
5023   ENABLE_PROFILING=ENABLE_PROFILING=1
5024
5025 fi
5026
5027 # Check whether --enable-assertions was given.
5028 if test "${enable_assertions+set}" = set; then
5029   enableval=$enable_assertions;
5030 else
5031   enableval="yes"
5032 fi
5033
5034 if test ${enableval} = "yes" ; then
5035   DISABLE_ASSERTIONS=
5036
5037 else
5038   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5039
5040 fi
5041
5042 # Check whether --enable-expensive-checks was given.
5043 if test "${enable_expensive_checks+set}" = set; then
5044   enableval=$enable_expensive_checks;
5045 else
5046   enableval="no"
5047 fi
5048
5049 if test ${enableval} = "yes" ; then
5050   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5051
5052   EXPENSIVE_CHECKS=yes
5053
5054 else
5055   ENABLE_EXPENSIVE_CHECKS=
5056
5057   EXPENSIVE_CHECKS=no
5058
5059 fi
5060
5061 # Check whether --enable-debug-runtime was given.
5062 if test "${enable_debug_runtime+set}" = set; then
5063   enableval=$enable_debug_runtime;
5064 else
5065   enableval=no
5066 fi
5067
5068 if test ${enableval} = "no" ; then
5069   DEBUG_RUNTIME=
5070
5071 else
5072   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5073
5074 fi
5075
5076 # Check whether --enable-debug-symbols was given.
5077 if test "${enable_debug_symbols+set}" = set; then
5078   enableval=$enable_debug_symbols;
5079 else
5080   enableval=no
5081 fi
5082
5083 if test ${enableval} = "no" ; then
5084   DEBUG_SYMBOLS=
5085
5086 else
5087   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5088
5089 fi
5090
5091 # Check whether --enable-jit was given.
5092 if test "${enable_jit+set}" = set; then
5093   enableval=$enable_jit;
5094 else
5095   enableval=default
5096 fi
5097
5098 if test ${enableval} = "no"
5099 then
5100   JIT=
5101
5102 else
5103   case "$llvm_cv_target_arch" in
5104     x86)         TARGET_HAS_JIT=1
5105  ;;
5106     Sparc)       TARGET_HAS_JIT=0
5107  ;;
5108     PowerPC)     TARGET_HAS_JIT=1
5109  ;;
5110     x86_64)      TARGET_HAS_JIT=1
5111  ;;
5112     ARM)         TARGET_HAS_JIT=1
5113  ;;
5114     Mips)        TARGET_HAS_JIT=1
5115  ;;
5116     XCore)       TARGET_HAS_JIT=0
5117  ;;
5118     MSP430)      TARGET_HAS_JIT=0
5119  ;;
5120     Hexagon)     TARGET_HAS_JIT=0
5121  ;;
5122     MBlaze)      TARGET_HAS_JIT=0
5123  ;;
5124     PTX)         TARGET_HAS_JIT=0
5125  ;;
5126     *)           TARGET_HAS_JIT=0
5127  ;;
5128   esac
5129 fi
5130
5131 # Check whether --enable-docs was given.
5132 if test "${enable_docs+set}" = set; then
5133   enableval=$enable_docs;
5134 else
5135   enableval=default
5136 fi
5137
5138 case "$enableval" in
5139   yes) ENABLE_DOCS=1
5140  ;;
5141   no)  ENABLE_DOCS=0
5142  ;;
5143   default) ENABLE_DOCS=1
5144  ;;
5145   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5146 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5147    { (exit 1); exit 1; }; } ;;
5148 esac
5149
5150 # Check whether --enable-doxygen was given.
5151 if test "${enable_doxygen+set}" = set; then
5152   enableval=$enable_doxygen;
5153 else
5154   enableval=default
5155 fi
5156
5157 case "$enableval" in
5158   yes) ENABLE_DOXYGEN=1
5159  ;;
5160   no)  ENABLE_DOXYGEN=0
5161  ;;
5162   default) ENABLE_DOXYGEN=0
5163  ;;
5164   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5165 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5166    { (exit 1); exit 1; }; } ;;
5167 esac
5168
5169 # Check whether --enable-threads was given.
5170 if test "${enable_threads+set}" = set; then
5171   enableval=$enable_threads;
5172 else
5173   enableval=default
5174 fi
5175
5176 case "$enableval" in
5177   yes) LLVM_ENABLE_THREADS=1
5178  ;;
5179   no)  LLVM_ENABLE_THREADS=0
5180  ;;
5181   default) LLVM_ENABLE_THREADS=1
5182  ;;
5183   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5185    { (exit 1); exit 1; }; } ;;
5186 esac
5187
5188 cat >>confdefs.h <<_ACEOF
5189 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5190 _ACEOF
5191
5192
5193 # Check whether --enable-pthreads was given.
5194 if test "${enable_pthreads+set}" = set; then
5195   enableval=$enable_pthreads;
5196 else
5197   enableval=default
5198 fi
5199
5200 case "$enableval" in
5201   yes) ENABLE_PTHREADS=1
5202  ;;
5203   no)  ENABLE_PTHREADS=0
5204  ;;
5205   default) ENABLE_PTHREADS=1
5206  ;;
5207   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5209    { (exit 1); exit 1; }; } ;;
5210 esac
5211
5212 # Check whether --enable-pic was given.
5213 if test "${enable_pic+set}" = set; then
5214   enableval=$enable_pic;
5215 else
5216   enableval=default
5217 fi
5218
5219 case "$enableval" in
5220   yes) ENABLE_PIC=1
5221  ;;
5222   no)  ENABLE_PIC=0
5223  ;;
5224   default) ENABLE_PIC=1
5225  ;;
5226   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5227 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5228    { (exit 1); exit 1; }; } ;;
5229 esac
5230
5231 cat >>confdefs.h <<_ACEOF
5232 #define ENABLE_PIC $ENABLE_PIC
5233 _ACEOF
5234
5235
5236 # Check whether --enable-shared was given.
5237 if test "${enable_shared+set}" = set; then
5238   enableval=$enable_shared;
5239 else
5240   enableval=default
5241 fi
5242
5243 case "$enableval" in
5244   yes) ENABLE_SHARED=1
5245  ;;
5246   no)  ENABLE_SHARED=0
5247  ;;
5248   default) ENABLE_SHARED=0
5249  ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254
5255 # Check whether --enable-embed-stdcxx was given.
5256 if test "${enable_embed_stdcxx+set}" = set; then
5257   enableval=$enable_embed_stdcxx;
5258 else
5259   enableval=default
5260 fi
5261
5262 case "$enableval" in
5263   yes) ENABLE_EMBED_STDCXX=1
5264  ;;
5265   no)  ENABLE_EMBED_STDCXX=0
5266  ;;
5267   default) ENABLE_EMBED_STDCXX=0
5268  ;;
5269   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273
5274 # Check whether --enable-timestamps was given.
5275 if test "${enable_timestamps+set}" = set; then
5276   enableval=$enable_timestamps;
5277 else
5278   enableval=default
5279 fi
5280
5281 case "$enableval" in
5282   yes) ENABLE_TIMESTAMPS=1
5283  ;;
5284   no)  ENABLE_TIMESTAMPS=0
5285  ;;
5286   default) ENABLE_TIMESTAMPS=1
5287  ;;
5288   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5289 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5290    { (exit 1); exit 1; }; } ;;
5291 esac
5292
5293 cat >>confdefs.h <<_ACEOF
5294 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5295 _ACEOF
5296
5297
5298 TARGETS_TO_BUILD=""
5299 # Check whether --enable-targets was given.
5300 if test "${enable_targets+set}" = set; then
5301   enableval=$enable_targets;
5302 else
5303   enableval=all
5304 fi
5305
5306 if test "$enableval" = host-only ; then
5307   enableval=host
5308 fi
5309 case "$enableval" in
5310   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX Hexagon" ;;
5311   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5312       case "$a_target" in
5313         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5314         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5315         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5316         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5317         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5318         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5319         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5320         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5321         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5322         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5323         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5324         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5325         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5326         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5327         host) case "$llvm_cv_target_arch" in
5328             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5331             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5332             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5333             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5335             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5336             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5338             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5339             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5340             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5341 echo "$as_me: error: Can not set target to build" >&2;}
5342    { (exit 1); exit 1; }; } ;;
5343           esac ;;
5344         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5345 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5346    { (exit 1); exit 1; }; } ;;
5347       esac
5348   done
5349   ;;
5350 esac
5351 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5352
5353
5354 for a_target in $TARGETS_TO_BUILD; do
5355   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5356
5357 cat >>confdefs.h <<_ACEOF
5358 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5359 _ACEOF
5360
5361     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5362     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5363     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5364     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5365     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5366       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5367     fi
5368     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5369       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5370     fi
5371
5372 cat >>confdefs.h <<_ACEOF
5373 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5374 _ACEOF
5375
5376
5377 cat >>confdefs.h <<_ACEOF
5378 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5379 _ACEOF
5380
5381
5382 cat >>confdefs.h <<_ACEOF
5383 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5384 _ACEOF
5385
5386
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5389 _ACEOF
5390
5391     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5392
5393 cat >>confdefs.h <<_ACEOF
5394 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5395 _ACEOF
5396
5397     fi
5398     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5402 _ACEOF
5403
5404     fi
5405   fi
5406 done
5407
5408 LLVM_ENUM_TARGETS=""
5409 LLVM_ENUM_ASM_PRINTERS=""
5410 LLVM_ENUM_ASM_PARSERS=""
5411 LLVM_ENUM_DISASSEMBLERS=""
5412 for target_to_build in $TARGETS_TO_BUILD; do
5413   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5414   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5415     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5416   fi
5417   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5418     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5419   fi
5420   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5421     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5422   fi
5423 done
5424
5425
5426
5427
5428
5429
5430 # Check whether --with-optimize-option was given.
5431 if test "${with_optimize_option+set}" = set; then
5432   withval=$with_optimize_option;
5433 else
5434   withval=default
5435 fi
5436
5437 { echo "$as_me:$LINENO: checking optimization flags" >&5
5438 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5439 case "$withval" in
5440   default)
5441     case "$llvm_cv_os_type" in
5442     FreeBSD) optimize_option=-O2 ;;
5443     MingW) optimize_option=-O2 ;;
5444     *)     optimize_option=-O3 ;;
5445     esac ;;
5446   *) optimize_option="$withval" ;;
5447 esac
5448 OPTIMIZE_OPTION=$optimize_option
5449
5450 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5451 echo "${ECHO_T}$optimize_option" >&6; }
5452
5453
5454 # Check whether --with-extra-options was given.
5455 if test "${with_extra_options+set}" = set; then
5456   withval=$with_extra_options;
5457 else
5458   withval=default
5459 fi
5460
5461 case "$withval" in
5462   default) EXTRA_OPTIONS= ;;
5463   *) EXTRA_OPTIONS=$withval ;;
5464 esac
5465 EXTRA_OPTIONS=$EXTRA_OPTIONS
5466
5467
5468
5469 # Check whether --with-extra-ld-options was given.
5470 if test "${with_extra_ld_options+set}" = set; then
5471   withval=$with_extra_ld_options;
5472 else
5473   withval=default
5474 fi
5475
5476 case "$withval" in
5477   default) EXTRA_LD_OPTIONS= ;;
5478   *) EXTRA_LD_OPTIONS=$withval ;;
5479 esac
5480 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5481
5482
5483 # Check whether --enable-bindings was given.
5484 if test "${enable_bindings+set}" = set; then
5485   enableval=$enable_bindings;
5486 else
5487   enableval=default
5488 fi
5489
5490 BINDINGS_TO_BUILD=""
5491 case "$enableval" in
5492   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5493   all ) BINDINGS_TO_BUILD="ocaml" ;;
5494   none | no) BINDINGS_TO_BUILD="" ;;
5495   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5496       case "$a_binding" in
5497         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5498         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5499 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5500    { (exit 1); exit 1; }; } ;;
5501       esac
5502   done
5503   ;;
5504 esac
5505
5506
5507 # Check whether --with-ocaml-libdir was given.
5508 if test "${with_ocaml_libdir+set}" = set; then
5509   withval=$with_ocaml_libdir;
5510 else
5511   withval=auto
5512 fi
5513
5514 case "$withval" in
5515   auto) with_ocaml_libdir="$withval" ;;
5516   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5517   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5518 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5519    { (exit 1); exit 1; }; } ;;
5520 esac
5521
5522
5523 # Check whether --with-clang-srcdir was given.
5524 if test "${with_clang_srcdir+set}" = set; then
5525   withval=$with_clang_srcdir;
5526 else
5527   withval="-"
5528 fi
5529
5530 case "$withval" in
5531   -) clang_src_root="" ;;
5532   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5533   *) clang_src_root="$ac_pwd/$withval" ;;
5534 esac
5535 CLANG_SRC_ROOT=$clang_src_root
5536
5537
5538
5539 # Check whether --with-clang-resource-dir was given.
5540 if test "${with_clang_resource_dir+set}" = set; then
5541   withval=$with_clang_resource_dir;
5542 else
5543   withval=""
5544 fi
5545
5546
5547 cat >>confdefs.h <<_ACEOF
5548 #define CLANG_RESOURCE_DIR "$withval"
5549 _ACEOF
5550
5551
5552
5553 # Check whether --with-c-include-dirs was given.
5554 if test "${with_c_include_dirs+set}" = set; then
5555   withval=$with_c_include_dirs;
5556 else
5557   withval=""
5558 fi
5559
5560
5561 cat >>confdefs.h <<_ACEOF
5562 #define C_INCLUDE_DIRS "$withval"
5563 _ACEOF
5564
5565
5566 # Clang normally uses the system c++ headers and libraries. With this option,
5567 # clang will use the ones provided by a gcc installation instead. This option should
5568 # be passed the same value that was used with --prefix when configuring gcc.
5569
5570 # Check whether --with-gcc-toolchain was given.
5571 if test "${with_gcc_toolchain+set}" = set; then
5572   withval=$with_gcc_toolchain;
5573 else
5574   withval=""
5575 fi
5576
5577
5578 cat >>confdefs.h <<_ACEOF
5579 #define GCC_INSTALL_PREFIX "$withval"
5580 _ACEOF
5581
5582
5583
5584 # Check whether --with-binutils-include was given.
5585 if test "${with_binutils_include+set}" = set; then
5586   withval=$with_binutils_include;
5587 else
5588   withval=default
5589 fi
5590
5591 case "$withval" in
5592   default) WITH_BINUTILS_INCDIR=default ;;
5593   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5594   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5595 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5596    { (exit 1); exit 1; }; } ;;
5597 esac
5598 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5599   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5600
5601   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5602      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5603      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5604 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5605    { (exit 1); exit 1; }; };
5606   fi
5607 fi
5608
5609
5610 # Check whether --with-bug-report-url was given.
5611 if test "${with_bug_report_url+set}" = set; then
5612   withval=$with_bug_report_url;
5613 else
5614   withval="http://llvm.org/bugs/"
5615 fi
5616
5617
5618 cat >>confdefs.h <<_ACEOF
5619 #define BUG_REPORT_URL "$withval"
5620 _ACEOF
5621
5622
5623 # Check whether --enable-libffi was given.
5624 if test "${enable_libffi+set}" = set; then
5625   enableval=$enable_libffi; case "$enableval" in
5626     yes) llvm_cv_enable_libffi="yes" ;;
5627     no)  llvm_cv_enable_libffi="no"  ;;
5628     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5629 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5630    { (exit 1); exit 1; }; } ;;
5631   esac
5632 else
5633   llvm_cv_enable_libffi=no
5634 fi
5635
5636
5637
5638 # Check whether --with-internal-prefix was given.
5639 if test "${with_internal_prefix+set}" = set; then
5640   withval=$with_internal_prefix;
5641 else
5642   withval=""
5643 fi
5644
5645 INTERNAL_PREFIX=$withval
5646
5647
5648
5649 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5650 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5651 if test "${lt_cv_path_NM+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   if test -n "$NM"; then
5655   # Let the user override the test.
5656   lt_cv_path_NM="$NM"
5657 else
5658   lt_nm_to_check="${ac_tool_prefix}nm"
5659   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5660     lt_nm_to_check="$lt_nm_to_check nm"
5661   fi
5662   for lt_tmp_nm in $lt_nm_to_check; do
5663     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5664     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5665       IFS="$lt_save_ifs"
5666       test -z "$ac_dir" && ac_dir=.
5667       tmp_nm="$ac_dir/$lt_tmp_nm"
5668       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5669         # Check to see if the nm accepts a BSD-compat flag.
5670         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5671         #   nm: unknown option "B" ignored
5672         # Tru64's nm complains that /dev/null is an invalid object file
5673         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5674         */dev/null* | *'Invalid file or object type'*)
5675           lt_cv_path_NM="$tmp_nm -B"
5676           break
5677           ;;
5678         *)
5679           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5680           */dev/null*)
5681             lt_cv_path_NM="$tmp_nm -p"
5682             break
5683             ;;
5684           *)
5685             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5686             continue # so that we can try to find one that supports BSD flags
5687             ;;
5688           esac
5689           ;;
5690         esac
5691       fi
5692     done
5693     IFS="$lt_save_ifs"
5694   done
5695   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5696 fi
5697 fi
5698 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5699 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5700 NM="$lt_cv_path_NM"
5701
5702
5703
5704 { echo "$as_me:$LINENO: checking for GNU make" >&5
5705 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5706 if test "${llvm_cv_gnu_make_command+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   llvm_cv_gnu_make_command=''
5710  for a in "$MAKE" make gmake gnumake ; do
5711   if test -z "$a" ; then continue ; fi ;
5712   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5713   then
5714    llvm_cv_gnu_make_command=$a ;
5715    break;
5716   fi
5717  done
5718 fi
5719 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5720 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5721  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5722    ifGNUmake='' ;
5723  else
5724    ifGNUmake='#' ;
5725    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5726 echo "${ECHO_T}\"Not found\"" >&6; };
5727  fi
5728
5729
5730 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5731 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5732 LN_S=$as_ln_s
5733 if test "$LN_S" = "ln -s"; then
5734   { echo "$as_me:$LINENO: result: yes" >&5
5735 echo "${ECHO_T}yes" >&6; }
5736 else
5737   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5738 echo "${ECHO_T}no, using $LN_S" >&6; }
5739 fi
5740
5741 # Extract the first word of "cmp", so it can be a program name with args.
5742 set dummy cmp; ac_word=$2
5743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5745 if test "${ac_cv_path_CMP+set}" = set; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   case $CMP in
5749   [\\/]* | ?:[\\/]*)
5750   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5751   ;;
5752   *)
5753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758   for ac_exec_ext in '' $ac_executable_extensions; do
5759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5760     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765 done
5766 IFS=$as_save_IFS
5767
5768   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5769   ;;
5770 esac
5771 fi
5772 CMP=$ac_cv_path_CMP
5773 if test -n "$CMP"; then
5774   { echo "$as_me:$LINENO: result: $CMP" >&5
5775 echo "${ECHO_T}$CMP" >&6; }
5776 else
5777   { echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6; }
5779 fi
5780
5781
5782 # Extract the first word of "cp", so it can be a program name with args.
5783 set dummy cp; ac_word=$2
5784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5786 if test "${ac_cv_path_CP+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   case $CP in
5790   [\\/]* | ?:[\\/]*)
5791   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5792   ;;
5793   *)
5794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797   IFS=$as_save_IFS
5798   test -z "$as_dir" && as_dir=.
5799   for ac_exec_ext in '' $ac_executable_extensions; do
5800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5801     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803     break 2
5804   fi
5805 done
5806 done
5807 IFS=$as_save_IFS
5808
5809   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5810   ;;
5811 esac
5812 fi
5813 CP=$ac_cv_path_CP
5814 if test -n "$CP"; then
5815   { echo "$as_me:$LINENO: result: $CP" >&5
5816 echo "${ECHO_T}$CP" >&6; }
5817 else
5818   { echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6; }
5820 fi
5821
5822
5823 # Extract the first word of "date", so it can be a program name with args.
5824 set dummy date; ac_word=$2
5825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827 if test "${ac_cv_path_DATE+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   case $DATE in
5831   [\\/]* | ?:[\\/]*)
5832   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5833   ;;
5834   *)
5835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840   for ac_exec_ext in '' $ac_executable_extensions; do
5841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5842     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847 done
5848 IFS=$as_save_IFS
5849
5850   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5851   ;;
5852 esac
5853 fi
5854 DATE=$ac_cv_path_DATE
5855 if test -n "$DATE"; then
5856   { echo "$as_me:$LINENO: result: $DATE" >&5
5857 echo "${ECHO_T}$DATE" >&6; }
5858 else
5859   { echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6; }
5861 fi
5862
5863
5864 # Extract the first word of "find", so it can be a program name with args.
5865 set dummy find; ac_word=$2
5866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868 if test "${ac_cv_path_FIND+set}" = set; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   case $FIND in
5872   [\\/]* | ?:[\\/]*)
5873   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5874   ;;
5875   *)
5876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881   for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888 done
5889 IFS=$as_save_IFS
5890
5891   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5892   ;;
5893 esac
5894 fi
5895 FIND=$ac_cv_path_FIND
5896 if test -n "$FIND"; then
5897   { echo "$as_me:$LINENO: result: $FIND" >&5
5898 echo "${ECHO_T}$FIND" >&6; }
5899 else
5900   { echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6; }
5902 fi
5903
5904
5905 # Extract the first word of "grep", so it can be a program name with args.
5906 set dummy grep; ac_word=$2
5907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5909 if test "${ac_cv_path_GREP+set}" = set; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912   case $GREP in
5913   [\\/]* | ?:[\\/]*)
5914   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5915   ;;
5916   *)
5917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922   for ac_exec_ext in '' $ac_executable_extensions; do
5923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5924     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5933   ;;
5934 esac
5935 fi
5936 GREP=$ac_cv_path_GREP
5937 if test -n "$GREP"; then
5938   { echo "$as_me:$LINENO: result: $GREP" >&5
5939 echo "${ECHO_T}$GREP" >&6; }
5940 else
5941   { echo "$as_me:$LINENO: result: no" >&5
5942 echo "${ECHO_T}no" >&6; }
5943 fi
5944
5945
5946 # Extract the first word of "mkdir", so it can be a program name with args.
5947 set dummy mkdir; ac_word=$2
5948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5950 if test "${ac_cv_path_MKDIR+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   case $MKDIR in
5954   [\\/]* | ?:[\\/]*)
5955   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5956   ;;
5957   *)
5958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963   for ac_exec_ext in '' $ac_executable_extensions; do
5964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5965     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5974   ;;
5975 esac
5976 fi
5977 MKDIR=$ac_cv_path_MKDIR
5978 if test -n "$MKDIR"; then
5979   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5980 echo "${ECHO_T}$MKDIR" >&6; }
5981 else
5982   { echo "$as_me:$LINENO: result: no" >&5
5983 echo "${ECHO_T}no" >&6; }
5984 fi
5985
5986
5987 # Extract the first word of "mv", so it can be a program name with args.
5988 set dummy mv; ac_word=$2
5989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991 if test "${ac_cv_path_MV+set}" = set; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   case $MV in
5995   [\\/]* | ?:[\\/]*)
5996   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5997   ;;
5998   *)
5999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002   IFS=$as_save_IFS
6003   test -z "$as_dir" && as_dir=.
6004   for ac_exec_ext in '' $ac_executable_extensions; do
6005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6006     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008     break 2
6009   fi
6010 done
6011 done
6012 IFS=$as_save_IFS
6013
6014   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6015   ;;
6016 esac
6017 fi
6018 MV=$ac_cv_path_MV
6019 if test -n "$MV"; then
6020   { echo "$as_me:$LINENO: result: $MV" >&5
6021 echo "${ECHO_T}$MV" >&6; }
6022 else
6023   { echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6; }
6025 fi
6026
6027
6028 if test -n "$ac_tool_prefix"; then
6029   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6033 if test "${ac_cv_prog_RANLIB+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   if test -n "$RANLIB"; then
6037   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044   for ac_exec_ext in '' $ac_executable_extensions; do
6045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6046     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 RANLIB=$ac_cv_prog_RANLIB
6057 if test -n "$RANLIB"; then
6058   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6059 echo "${ECHO_T}$RANLIB" >&6; }
6060 else
6061   { echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6; }
6063 fi
6064
6065
6066 fi
6067 if test -z "$ac_cv_prog_RANLIB"; then
6068   ac_ct_RANLIB=$RANLIB
6069   # Extract the first word of "ranlib", so it can be a program name with args.
6070 set dummy ranlib; ac_word=$2
6071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6074   echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076   if test -n "$ac_ct_RANLIB"; then
6077   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084   for ac_exec_ext in '' $ac_executable_extensions; do
6085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6086     ac_cv_prog_ac_ct_RANLIB="ranlib"
6087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091 done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6097 if test -n "$ac_ct_RANLIB"; then
6098   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6100 else
6101   { echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6; }
6103 fi
6104
6105   if test "x$ac_ct_RANLIB" = x; then
6106     RANLIB=":"
6107   else
6108     case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6111 whose name does not start with the host triplet.  If you think this
6112 configuration is useful to you, please write to autoconf@gnu.org." >&5
6113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6114 whose name does not start with the host triplet.  If you think this
6115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6116 ac_tool_warned=yes ;;
6117 esac
6118     RANLIB=$ac_ct_RANLIB
6119   fi
6120 else
6121   RANLIB="$ac_cv_prog_RANLIB"
6122 fi
6123
6124 if test -n "$ac_tool_prefix"; then
6125   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6126 set dummy ${ac_tool_prefix}ar; ac_word=$2
6127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6129 if test "${ac_cv_prog_AR+set}" = set; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   if test -n "$AR"; then
6133   ac_cv_prog_AR="$AR" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138   IFS=$as_save_IFS
6139   test -z "$as_dir" && as_dir=.
6140   for ac_exec_ext in '' $ac_executable_extensions; do
6141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6142     ac_cv_prog_AR="${ac_tool_prefix}ar"
6143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144     break 2
6145   fi
6146 done
6147 done
6148 IFS=$as_save_IFS
6149
6150 fi
6151 fi
6152 AR=$ac_cv_prog_AR
6153 if test -n "$AR"; then
6154   { echo "$as_me:$LINENO: result: $AR" >&5
6155 echo "${ECHO_T}$AR" >&6; }
6156 else
6157   { echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6; }
6159 fi
6160
6161
6162 fi
6163 if test -z "$ac_cv_prog_AR"; then
6164   ac_ct_AR=$AR
6165   # Extract the first word of "ar", so it can be a program name with args.
6166 set dummy ar; ac_word=$2
6167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6170   echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172   if test -n "$ac_ct_AR"; then
6173   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178   IFS=$as_save_IFS
6179   test -z "$as_dir" && as_dir=.
6180   for ac_exec_ext in '' $ac_executable_extensions; do
6181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6182     ac_cv_prog_ac_ct_AR="ar"
6183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184     break 2
6185   fi
6186 done
6187 done
6188 IFS=$as_save_IFS
6189
6190 fi
6191 fi
6192 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6193 if test -n "$ac_ct_AR"; then
6194   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6195 echo "${ECHO_T}$ac_ct_AR" >&6; }
6196 else
6197   { echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6; }
6199 fi
6200
6201   if test "x$ac_ct_AR" = x; then
6202     AR="false"
6203   else
6204     case $cross_compiling:$ac_tool_warned in
6205 yes:)
6206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6207 whose name does not start with the host triplet.  If you think this
6208 configuration is useful to you, please write to autoconf@gnu.org." >&5
6209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6210 whose name does not start with the host triplet.  If you think this
6211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6212 ac_tool_warned=yes ;;
6213 esac
6214     AR=$ac_ct_AR
6215   fi
6216 else
6217   AR="$ac_cv_prog_AR"
6218 fi
6219
6220 # Extract the first word of "rm", so it can be a program name with args.
6221 set dummy rm; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_path_RM+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   case $RM in
6228   [\\/]* | ?:[\\/]*)
6229   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6230   ;;
6231   *)
6232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237   for ac_exec_ext in '' $ac_executable_extensions; do
6238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6248   ;;
6249 esac
6250 fi
6251 RM=$ac_cv_path_RM
6252 if test -n "$RM"; then
6253   { echo "$as_me:$LINENO: result: $RM" >&5
6254 echo "${ECHO_T}$RM" >&6; }
6255 else
6256   { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6258 fi
6259
6260
6261 # Extract the first word of "sed", so it can be a program name with args.
6262 set dummy sed; ac_word=$2
6263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265 if test "${ac_cv_path_SED+set}" = set; then
6266   echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268   case $SED in
6269   [\\/]* | ?:[\\/]*)
6270   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6271   ;;
6272   *)
6273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278   for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6289   ;;
6290 esac
6291 fi
6292 SED=$ac_cv_path_SED
6293 if test -n "$SED"; then
6294   { echo "$as_me:$LINENO: result: $SED" >&5
6295 echo "${ECHO_T}$SED" >&6; }
6296 else
6297   { echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6; }
6299 fi
6300
6301
6302 # Extract the first word of "tar", so it can be a program name with args.
6303 set dummy tar; ac_word=$2
6304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306 if test "${ac_cv_path_TAR+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   case $TAR in
6310   [\\/]* | ?:[\\/]*)
6311   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6312   ;;
6313   *)
6314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319   for ac_exec_ext in '' $ac_executable_extensions; do
6320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6321     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6330   ;;
6331 esac
6332 fi
6333 TAR=$ac_cv_path_TAR
6334 if test -n "$TAR"; then
6335   { echo "$as_me:$LINENO: result: $TAR" >&5
6336 echo "${ECHO_T}$TAR" >&6; }
6337 else
6338   { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6340 fi
6341
6342
6343 # Extract the first word of "pwd", so it can be a program name with args.
6344 set dummy pwd; ac_word=$2
6345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347 if test "${ac_cv_path_BINPWD+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350   case $BINPWD in
6351   [\\/]* | ?:[\\/]*)
6352   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6353   ;;
6354   *)
6355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360   for ac_exec_ext in '' $ac_executable_extensions; do
6361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6362     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6371   ;;
6372 esac
6373 fi
6374 BINPWD=$ac_cv_path_BINPWD
6375 if test -n "$BINPWD"; then
6376   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6377 echo "${ECHO_T}$BINPWD" >&6; }
6378 else
6379   { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6381 fi
6382
6383
6384
6385 # Extract the first word of "Graphviz", so it can be a program name with args.
6386 set dummy Graphviz; ac_word=$2
6387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6389 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6390   echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392   case $GRAPHVIZ in
6393   [\\/]* | ?:[\\/]*)
6394   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6395   ;;
6396   *)
6397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402   for ac_exec_ext in '' $ac_executable_extensions; do
6403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6404     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409 done
6410 IFS=$as_save_IFS
6411
6412   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6413   ;;
6414 esac
6415 fi
6416 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6417 if test -n "$GRAPHVIZ"; then
6418   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6419 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6420 else
6421   { echo "$as_me:$LINENO: result: no" >&5
6422 echo "${ECHO_T}no" >&6; }
6423 fi
6424
6425
6426 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6427
6428 cat >>confdefs.h <<\_ACEOF
6429 #define HAVE_GRAPHVIZ 1
6430 _ACEOF
6431
6432     if test "$llvm_cv_os_type" = "MingW" ; then
6433     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6434   fi
6435
6436 cat >>confdefs.h <<_ACEOF
6437 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6438 _ACEOF
6439
6440 fi
6441 # Extract the first word of "dot", so it can be a program name with args.
6442 set dummy dot; ac_word=$2
6443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445 if test "${ac_cv_path_DOT+set}" = set; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448   case $DOT in
6449   [\\/]* | ?:[\\/]*)
6450   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6451   ;;
6452   *)
6453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458   for ac_exec_ext in '' $ac_executable_extensions; do
6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6460     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6469   ;;
6470 esac
6471 fi
6472 DOT=$ac_cv_path_DOT
6473 if test -n "$DOT"; then
6474   { echo "$as_me:$LINENO: result: $DOT" >&5
6475 echo "${ECHO_T}$DOT" >&6; }
6476 else
6477   { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6479 fi
6480
6481
6482 if test "$DOT" != "echo dot" ; then
6483
6484 cat >>confdefs.h <<\_ACEOF
6485 #define HAVE_DOT 1
6486 _ACEOF
6487
6488     if test "$llvm_cv_os_type" = "MingW" ; then
6489     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6490   fi
6491
6492 cat >>confdefs.h <<_ACEOF
6493 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6494 _ACEOF
6495
6496 fi
6497 # Extract the first word of "fdp", so it can be a program name with args.
6498 set dummy fdp; ac_word=$2
6499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6501 if test "${ac_cv_path_FDP+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504   case $FDP in
6505   [\\/]* | ?:[\\/]*)
6506   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6507   ;;
6508   *)
6509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514   for ac_exec_ext in '' $ac_executable_extensions; do
6515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6516     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521 done
6522 IFS=$as_save_IFS
6523
6524   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6525   ;;
6526 esac
6527 fi
6528 FDP=$ac_cv_path_FDP
6529 if test -n "$FDP"; then
6530   { echo "$as_me:$LINENO: result: $FDP" >&5
6531 echo "${ECHO_T}$FDP" >&6; }
6532 else
6533   { echo "$as_me:$LINENO: result: no" >&5
6534 echo "${ECHO_T}no" >&6; }
6535 fi
6536
6537
6538 if test "$FDP" != "echo fdp" ; then
6539
6540 cat >>confdefs.h <<\_ACEOF
6541 #define HAVE_FDP 1
6542 _ACEOF
6543
6544     if test "$llvm_cv_os_type" = "MingW" ; then
6545     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6546   fi
6547
6548 cat >>confdefs.h <<_ACEOF
6549 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6550 _ACEOF
6551
6552 fi
6553 # Extract the first word of "neato", so it can be a program name with args.
6554 set dummy neato; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_path_NEATO+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560   case $NEATO in
6561   [\\/]* | ?:[\\/]*)
6562   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6563   ;;
6564   *)
6565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570   for ac_exec_ext in '' $ac_executable_extensions; do
6571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6572     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6581   ;;
6582 esac
6583 fi
6584 NEATO=$ac_cv_path_NEATO
6585 if test -n "$NEATO"; then
6586   { echo "$as_me:$LINENO: result: $NEATO" >&5
6587 echo "${ECHO_T}$NEATO" >&6; }
6588 else
6589   { echo "$as_me:$LINENO: result: no" >&5
6590 echo "${ECHO_T}no" >&6; }
6591 fi
6592
6593
6594 if test "$NEATO" != "echo neato" ; then
6595
6596 cat >>confdefs.h <<\_ACEOF
6597 #define HAVE_NEATO 1
6598 _ACEOF
6599
6600     if test "$llvm_cv_os_type" = "MingW" ; then
6601     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6602   fi
6603
6604 cat >>confdefs.h <<_ACEOF
6605 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6606 _ACEOF
6607
6608 fi
6609 # Extract the first word of "twopi", so it can be a program name with args.
6610 set dummy twopi; ac_word=$2
6611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6613 if test "${ac_cv_path_TWOPI+set}" = set; then
6614   echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616   case $TWOPI in
6617   [\\/]* | ?:[\\/]*)
6618   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6619   ;;
6620   *)
6621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626   for ac_exec_ext in '' $ac_executable_extensions; do
6627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6628     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633 done
6634 IFS=$as_save_IFS
6635
6636   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6637   ;;
6638 esac
6639 fi
6640 TWOPI=$ac_cv_path_TWOPI
6641 if test -n "$TWOPI"; then
6642   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6643 echo "${ECHO_T}$TWOPI" >&6; }
6644 else
6645   { echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6; }
6647 fi
6648
6649
6650 if test "$TWOPI" != "echo twopi" ; then
6651
6652 cat >>confdefs.h <<\_ACEOF
6653 #define HAVE_TWOPI 1
6654 _ACEOF
6655
6656     if test "$llvm_cv_os_type" = "MingW" ; then
6657     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6658   fi
6659
6660 cat >>confdefs.h <<_ACEOF
6661 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6662 _ACEOF
6663
6664 fi
6665 # Extract the first word of "circo", so it can be a program name with args.
6666 set dummy circo; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_path_CIRCO+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   case $CIRCO in
6673   [\\/]* | ?:[\\/]*)
6674   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6675   ;;
6676   *)
6677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682   for ac_exec_ext in '' $ac_executable_extensions; do
6683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686     break 2
6687   fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6693   ;;
6694 esac
6695 fi
6696 CIRCO=$ac_cv_path_CIRCO
6697 if test -n "$CIRCO"; then
6698   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6699 echo "${ECHO_T}$CIRCO" >&6; }
6700 else
6701   { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6703 fi
6704
6705
6706 if test "$CIRCO" != "echo circo" ; then
6707
6708 cat >>confdefs.h <<\_ACEOF
6709 #define HAVE_CIRCO 1
6710 _ACEOF
6711
6712     if test "$llvm_cv_os_type" = "MingW" ; then
6713     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6714   fi
6715
6716 cat >>confdefs.h <<_ACEOF
6717 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6718 _ACEOF
6719
6720 fi
6721 for ac_prog in gv gsview32
6722 do
6723   # Extract the first word of "$ac_prog", so it can be a program name with args.
6724 set dummy $ac_prog; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_GV+set}" = set; then
6728   echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730   case $GV in
6731   [\\/]* | ?:[\\/]*)
6732   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6733   ;;
6734   *)
6735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740   for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750   ;;
6751 esac
6752 fi
6753 GV=$ac_cv_path_GV
6754 if test -n "$GV"; then
6755   { echo "$as_me:$LINENO: result: $GV" >&5
6756 echo "${ECHO_T}$GV" >&6; }
6757 else
6758   { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6760 fi
6761
6762
6763   test -n "$GV" && break
6764 done
6765 test -n "$GV" || GV="echo gv"
6766
6767 if test "$GV" != "echo gv" ; then
6768
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_GV 1
6771 _ACEOF
6772
6773     if test "$llvm_cv_os_type" = "MingW" ; then
6774     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6775   fi
6776
6777 cat >>confdefs.h <<_ACEOF
6778 #define LLVM_PATH_GV "$GV${EXEEXT}"
6779 _ACEOF
6780
6781 fi
6782 # Extract the first word of "dotty", so it can be a program name with args.
6783 set dummy dotty; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_DOTTY+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   case $DOTTY in
6790   [\\/]* | ?:[\\/]*)
6791   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6792   ;;
6793   *)
6794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799   for ac_exec_ext in '' $ac_executable_extensions; do
6800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6810   ;;
6811 esac
6812 fi
6813 DOTTY=$ac_cv_path_DOTTY
6814 if test -n "$DOTTY"; then
6815   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6816 echo "${ECHO_T}$DOTTY" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823 if test "$DOTTY" != "echo dotty" ; then
6824
6825 cat >>confdefs.h <<\_ACEOF
6826 #define HAVE_DOTTY 1
6827 _ACEOF
6828
6829     if test "$llvm_cv_os_type" = "MingW" ; then
6830     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6831   fi
6832
6833 cat >>confdefs.h <<_ACEOF
6834 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6835 _ACEOF
6836
6837 fi
6838 # Extract the first word of "xdot.py", so it can be a program name with args.
6839 set dummy xdot.py; ac_word=$2
6840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6842 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6843   echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845   case $XDOT_PY in
6846   [\\/]* | ?:[\\/]*)
6847   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6848   ;;
6849   *)
6850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853   IFS=$as_save_IFS
6854   test -z "$as_dir" && as_dir=.
6855   for ac_exec_ext in '' $ac_executable_extensions; do
6856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6857     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859     break 2
6860   fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6866   ;;
6867 esac
6868 fi
6869 XDOT_PY=$ac_cv_path_XDOT_PY
6870 if test -n "$XDOT_PY"; then
6871   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6872 echo "${ECHO_T}$XDOT_PY" >&6; }
6873 else
6874   { echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6; }
6876 fi
6877
6878
6879 if test "$XDOT_PY" != "echo xdot.py" ; then
6880
6881 cat >>confdefs.h <<\_ACEOF
6882 #define HAVE_XDOT_PY 1
6883 _ACEOF
6884
6885     if test "$llvm_cv_os_type" = "MingW" ; then
6886     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6887   fi
6888
6889 cat >>confdefs.h <<_ACEOF
6890 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6891 _ACEOF
6892
6893 fi
6894
6895 # Find a good install program.  We prefer a C program (faster),
6896 # so one script is as good as another.  But avoid the broken or
6897 # incompatible versions:
6898 # SysV /etc/install, /usr/sbin/install
6899 # SunOS /usr/etc/install
6900 # IRIX /sbin/install
6901 # AIX /bin/install
6902 # AmigaOS /C/install, which installs bootblocks on floppy discs
6903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6906 # OS/2's system install, which has a completely different semantic
6907 # ./install, which can be erroneously created by make from ./install.sh.
6908 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6909 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6910 if test -z "$INSTALL"; then
6911 if test "${ac_cv_path_install+set}" = set; then
6912   echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919   # Account for people who put trailing slashes in PATH elements.
6920 case $as_dir/ in
6921   ./ | .// | /cC/* | \
6922   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6923   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6924   /usr/ucb/* ) ;;
6925   *)
6926     # OSF1 and SCO ODT 3.0 have their own names for install.
6927     # Don't use installbsd from OSF since it installs stuff as root
6928     # by default.
6929     for ac_prog in ginstall scoinst install; do
6930       for ac_exec_ext in '' $ac_executable_extensions; do
6931         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6932           if test $ac_prog = install &&
6933             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6934             # AIX install.  It has an incompatible calling convention.
6935             :
6936           elif test $ac_prog = install &&
6937             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6938             # program-specific install script used by HP pwplus--don't use.
6939             :
6940           else
6941             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6942             break 3
6943           fi
6944         fi
6945       done
6946     done
6947     ;;
6948 esac
6949 done
6950 IFS=$as_save_IFS
6951
6952
6953 fi
6954   if test "${ac_cv_path_install+set}" = set; then
6955     INSTALL=$ac_cv_path_install
6956   else
6957     # As a last resort, use the slow shell script.  Don't cache a
6958     # value for INSTALL within a source directory, because that will
6959     # break other packages using the cache if that directory is
6960     # removed, or if the value is a relative name.
6961     INSTALL=$ac_install_sh
6962   fi
6963 fi
6964 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6965 echo "${ECHO_T}$INSTALL" >&6; }
6966
6967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6968 # It thinks the first close brace ends the variable substitution.
6969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6970
6971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6972
6973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6974
6975 case "$INSTALL" in
6976  [\\/$]* | ?:[\\/]* ) ;;
6977  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6978 esac
6979
6980 # Extract the first word of "bzip2", so it can be a program name with args.
6981 set dummy bzip2; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_path_BZIP2+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   case $BZIP2 in
6988   [\\/]* | ?:[\\/]*)
6989   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6990   ;;
6991   *)
6992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997   for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007   ;;
7008 esac
7009 fi
7010 BZIP2=$ac_cv_path_BZIP2
7011 if test -n "$BZIP2"; then
7012   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7013 echo "${ECHO_T}$BZIP2" >&6; }
7014 else
7015   { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7017 fi
7018
7019
7020 # Extract the first word of "cat", so it can be a program name with args.
7021 set dummy cat; ac_word=$2
7022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024 if test "${ac_cv_path_CAT+set}" = set; then
7025   echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027   case $CAT in
7028   [\\/]* | ?:[\\/]*)
7029   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7030   ;;
7031   *)
7032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037   for ac_exec_ext in '' $ac_executable_extensions; do
7038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7039     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047   ;;
7048 esac
7049 fi
7050 CAT=$ac_cv_path_CAT
7051 if test -n "$CAT"; then
7052   { echo "$as_me:$LINENO: result: $CAT" >&5
7053 echo "${ECHO_T}$CAT" >&6; }
7054 else
7055   { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7057 fi
7058
7059
7060 # Extract the first word of "doxygen", so it can be a program name with args.
7061 set dummy doxygen; ac_word=$2
7062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7065   echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067   case $DOXYGEN in
7068   [\\/]* | ?:[\\/]*)
7069   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7070   ;;
7071   *)
7072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075   IFS=$as_save_IFS
7076   test -z "$as_dir" && as_dir=.
7077   for ac_exec_ext in '' $ac_executable_extensions; do
7078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7079     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081     break 2
7082   fi
7083 done
7084 done
7085 IFS=$as_save_IFS
7086
7087   ;;
7088 esac
7089 fi
7090 DOXYGEN=$ac_cv_path_DOXYGEN
7091 if test -n "$DOXYGEN"; then
7092   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7093 echo "${ECHO_T}$DOXYGEN" >&6; }
7094 else
7095   { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7097 fi
7098
7099
7100 # Extract the first word of "groff", so it can be a program name with args.
7101 set dummy groff; ac_word=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_path_GROFF+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   case $GROFF in
7108   [\\/]* | ?:[\\/]*)
7109   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7110   ;;
7111   *)
7112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7114 do
7115   IFS=$as_save_IFS
7116   test -z "$as_dir" && as_dir=.
7117   for ac_exec_ext in '' $ac_executable_extensions; do
7118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7119     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121     break 2
7122   fi
7123 done
7124 done
7125 IFS=$as_save_IFS
7126
7127   ;;
7128 esac
7129 fi
7130 GROFF=$ac_cv_path_GROFF
7131 if test -n "$GROFF"; then
7132   { echo "$as_me:$LINENO: result: $GROFF" >&5
7133 echo "${ECHO_T}$GROFF" >&6; }
7134 else
7135   { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139
7140 # Extract the first word of "gzip", so it can be a program name with args.
7141 set dummy gzip; ac_word=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7145   echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147   case $GZIPBIN in
7148   [\\/]* | ?:[\\/]*)
7149   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7150   ;;
7151   *)
7152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155   IFS=$as_save_IFS
7156   test -z "$as_dir" && as_dir=.
7157   for ac_exec_ext in '' $ac_executable_extensions; do
7158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7159     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161     break 2
7162   fi
7163 done
7164 done
7165 IFS=$as_save_IFS
7166
7167   ;;
7168 esac
7169 fi
7170 GZIPBIN=$ac_cv_path_GZIPBIN
7171 if test -n "$GZIPBIN"; then
7172   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7173 echo "${ECHO_T}$GZIPBIN" >&6; }
7174 else
7175   { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7177 fi
7178
7179
7180 # Extract the first word of "pod2html", so it can be a program name with args.
7181 set dummy pod2html; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_path_POD2HTML+set}" = set; then
7185   echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187   case $POD2HTML in
7188   [\\/]* | ?:[\\/]*)
7189   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7190   ;;
7191   *)
7192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197   for ac_exec_ext in '' $ac_executable_extensions; do
7198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7199     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204 done
7205 IFS=$as_save_IFS
7206
7207   ;;
7208 esac
7209 fi
7210 POD2HTML=$ac_cv_path_POD2HTML
7211 if test -n "$POD2HTML"; then
7212   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7213 echo "${ECHO_T}$POD2HTML" >&6; }
7214 else
7215   { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7217 fi
7218
7219
7220 # Extract the first word of "pod2man", so it can be a program name with args.
7221 set dummy pod2man; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_POD2MAN+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   case $POD2MAN in
7228   [\\/]* | ?:[\\/]*)
7229   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7230   ;;
7231   *)
7232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237   for ac_exec_ext in '' $ac_executable_extensions; do
7238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244 done
7245 IFS=$as_save_IFS
7246
7247   ;;
7248 esac
7249 fi
7250 POD2MAN=$ac_cv_path_POD2MAN
7251 if test -n "$POD2MAN"; then
7252   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7253 echo "${ECHO_T}$POD2MAN" >&6; }
7254 else
7255   { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7257 fi
7258
7259
7260 # Extract the first word of "pdfroff", so it can be a program name with args.
7261 set dummy pdfroff; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_PDFROFF+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   case $PDFROFF in
7268   [\\/]* | ?:[\\/]*)
7269   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7270   ;;
7271   *)
7272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287   ;;
7288 esac
7289 fi
7290 PDFROFF=$ac_cv_path_PDFROFF
7291 if test -n "$PDFROFF"; then
7292   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7293 echo "${ECHO_T}$PDFROFF" >&6; }
7294 else
7295   { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7297 fi
7298
7299
7300 # Extract the first word of "runtest", so it can be a program name with args.
7301 set dummy runtest; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_RUNTEST+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   case $RUNTEST in
7308   [\\/]* | ?:[\\/]*)
7309   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7310   ;;
7311   *)
7312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317   for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327   ;;
7328 esac
7329 fi
7330 RUNTEST=$ac_cv_path_RUNTEST
7331 if test -n "$RUNTEST"; then
7332   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7333 echo "${ECHO_T}$RUNTEST" >&6; }
7334 else
7335   { echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6; }
7337 fi
7338
7339
7340
7341 no_itcl=true
7342 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7343 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7344
7345 # Check whether --with-tclinclude was given.
7346 if test "${with_tclinclude+set}" = set; then
7347   withval=$with_tclinclude; with_tclinclude=${withval}
7348 else
7349   with_tclinclude=''
7350 fi
7351
7352 if test "${ac_cv_path_tclsh+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355
7356 if test x"${with_tclinclude}" != x ; then
7357   if test -f ${with_tclinclude}/tclsh ; then
7358     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7359   elif test -f ${with_tclinclude}/src/tclsh ; then
7360     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7361   else
7362     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7363 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7364    { (exit 1); exit 1; }; }
7365   fi
7366 fi
7367 fi
7368
7369
7370 if test x"${ac_cv_path_tclsh}" = x ; then
7371   { echo "$as_me:$LINENO: result: none" >&5
7372 echo "${ECHO_T}none" >&6; }
7373   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7374 do
7375   # Extract the first word of "$ac_prog", so it can be a program name with args.
7376 set dummy $ac_prog; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_TCLSH+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382   case $TCLSH in
7383   [\\/]* | ?:[\\/]*)
7384   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7385   ;;
7386   *)
7387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392   for ac_exec_ext in '' $ac_executable_extensions; do
7393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402   ;;
7403 esac
7404 fi
7405 TCLSH=$ac_cv_path_TCLSH
7406 if test -n "$TCLSH"; then
7407   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7408 echo "${ECHO_T}$TCLSH" >&6; }
7409 else
7410   { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7412 fi
7413
7414
7415   test -n "$TCLSH" && break
7416 done
7417
7418   if test x"${TCLSH}" = x ; then
7419     ac_cv_path_tclsh='';
7420   else
7421     ac_cv_path_tclsh="${TCLSH}";
7422   fi
7423 else
7424   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7425 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7426   TCLSH="${ac_cv_path_tclsh}"
7427
7428 fi
7429
7430 # Extract the first word of "zip", so it can be a program name with args.
7431 set dummy zip; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_ZIP+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   case $ZIP in
7438   [\\/]* | ?:[\\/]*)
7439   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7440   ;;
7441   *)
7442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454 done
7455 IFS=$as_save_IFS
7456
7457   ;;
7458 esac
7459 fi
7460 ZIP=$ac_cv_path_ZIP
7461 if test -n "$ZIP"; then
7462   { echo "$as_me:$LINENO: result: $ZIP" >&5
7463 echo "${ECHO_T}$ZIP" >&6; }
7464 else
7465   { echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6; }
7467 fi
7468
7469
7470 for ac_prog in ocamlc
7471 do
7472   # Extract the first word of "$ac_prog", so it can be a program name with args.
7473 set dummy $ac_prog; ac_word=$2
7474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7476 if test "${ac_cv_path_OCAMLC+set}" = set; then
7477   echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479   case $OCAMLC in
7480   [\\/]* | ?:[\\/]*)
7481   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7482   ;;
7483   *)
7484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489   for ac_exec_ext in '' $ac_executable_extensions; do
7490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7491     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496 done
7497 IFS=$as_save_IFS
7498
7499   ;;
7500 esac
7501 fi
7502 OCAMLC=$ac_cv_path_OCAMLC
7503 if test -n "$OCAMLC"; then
7504   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7505 echo "${ECHO_T}$OCAMLC" >&6; }
7506 else
7507   { echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6; }
7509 fi
7510
7511
7512   test -n "$OCAMLC" && break
7513 done
7514
7515 for ac_prog in ocamlopt
7516 do
7517   # Extract the first word of "$ac_prog", so it can be a program name with args.
7518 set dummy $ac_prog; ac_word=$2
7519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524   case $OCAMLOPT in
7525   [\\/]* | ?:[\\/]*)
7526   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7527   ;;
7528   *)
7529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7531 do
7532   IFS=$as_save_IFS
7533   test -z "$as_dir" && as_dir=.
7534   for ac_exec_ext in '' $ac_executable_extensions; do
7535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7536     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538     break 2
7539   fi
7540 done
7541 done
7542 IFS=$as_save_IFS
7543
7544   ;;
7545 esac
7546 fi
7547 OCAMLOPT=$ac_cv_path_OCAMLOPT
7548 if test -n "$OCAMLOPT"; then
7549   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7550 echo "${ECHO_T}$OCAMLOPT" >&6; }
7551 else
7552   { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7554 fi
7555
7556
7557   test -n "$OCAMLOPT" && break
7558 done
7559
7560 for ac_prog in ocamldep
7561 do
7562   # Extract the first word of "$ac_prog", so it can be a program name with args.
7563 set dummy $ac_prog; ac_word=$2
7564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7566 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7567   echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569   case $OCAMLDEP in
7570   [\\/]* | ?:[\\/]*)
7571   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7572   ;;
7573   *)
7574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577   IFS=$as_save_IFS
7578   test -z "$as_dir" && as_dir=.
7579   for ac_exec_ext in '' $ac_executable_extensions; do
7580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7581     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583     break 2
7584   fi
7585 done
7586 done
7587 IFS=$as_save_IFS
7588
7589   ;;
7590 esac
7591 fi
7592 OCAMLDEP=$ac_cv_path_OCAMLDEP
7593 if test -n "$OCAMLDEP"; then
7594   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7595 echo "${ECHO_T}$OCAMLDEP" >&6; }
7596 else
7597   { echo "$as_me:$LINENO: result: no" >&5
7598 echo "${ECHO_T}no" >&6; }
7599 fi
7600
7601
7602   test -n "$OCAMLDEP" && break
7603 done
7604
7605 for ac_prog in ocamldoc
7606 do
7607   # Extract the first word of "$ac_prog", so it can be a program name with args.
7608 set dummy $ac_prog; ac_word=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614   case $OCAMLDOC in
7615   [\\/]* | ?:[\\/]*)
7616   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7617   ;;
7618   *)
7619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7621 do
7622   IFS=$as_save_IFS
7623   test -z "$as_dir" && as_dir=.
7624   for ac_exec_ext in '' $ac_executable_extensions; do
7625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7626     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628     break 2
7629   fi
7630 done
7631 done
7632 IFS=$as_save_IFS
7633
7634   ;;
7635 esac
7636 fi
7637 OCAMLDOC=$ac_cv_path_OCAMLDOC
7638 if test -n "$OCAMLDOC"; then
7639   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7640 echo "${ECHO_T}$OCAMLDOC" >&6; }
7641 else
7642   { echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6; }
7644 fi
7645
7646
7647   test -n "$OCAMLDOC" && break
7648 done
7649
7650 for ac_prog in gas as
7651 do
7652   # Extract the first word of "$ac_prog", so it can be a program name with args.
7653 set dummy $ac_prog; ac_word=$2
7654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7656 if test "${ac_cv_path_GAS+set}" = set; then
7657   echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659   case $GAS in
7660   [\\/]* | ?:[\\/]*)
7661   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7662   ;;
7663   *)
7664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667   IFS=$as_save_IFS
7668   test -z "$as_dir" && as_dir=.
7669   for ac_exec_ext in '' $ac_executable_extensions; do
7670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7671     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7673     break 2
7674   fi
7675 done
7676 done
7677 IFS=$as_save_IFS
7678
7679   ;;
7680 esac
7681 fi
7682 GAS=$ac_cv_path_GAS
7683 if test -n "$GAS"; then
7684   { echo "$as_me:$LINENO: result: $GAS" >&5
7685 echo "${ECHO_T}$GAS" >&6; }
7686 else
7687   { echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6; }
7689 fi
7690
7691
7692   test -n "$GAS" && break
7693 done
7694
7695
7696 { echo "$as_me:$LINENO: checking for linker version" >&5
7697 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7698 if test "${llvm_cv_link_version+set}" = set; then
7699   echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701
7702    version_string="$(ld -v 2>&1 | head -1)"
7703
7704    # Check for ld64.
7705    if (echo "$version_string" | grep -q "ld64"); then
7706      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7707    else
7708      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7709    fi
7710
7711 fi
7712 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7713 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7714
7715 cat >>confdefs.h <<_ACEOF
7716 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7717 _ACEOF
7718
7719
7720
7721 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7722 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7723 if test "${llvm_cv_link_use_r+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726    ac_ext=c
7727 ac_cpp='$CPP $CPPFLAGS'
7728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7731
7732   oldcflags="$CFLAGS"
7733   CFLAGS="$CFLAGS -Wl,-R."
7734   cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h.  */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h.  */
7740
7741 int
7742 main ()
7743 {
7744
7745   ;
7746   return 0;
7747 }
7748 _ACEOF
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (ac_try="$ac_link"
7751 case "(($ac_try" in
7752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753   *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756   (eval "$ac_link") 2>conftest.er1
7757   ac_status=$?
7758   grep -v '^ *+' conftest.er1 >conftest.err
7759   rm -f conftest.er1
7760   cat conftest.err >&5
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); } &&
7763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7764   { (case "(($ac_try" in
7765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766   *) ac_try_echo=$ac_try;;
7767 esac
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769   (eval "$ac_try") 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; } &&
7773          { ac_try='test -s conftest$ac_exeext'
7774   { (case "(($ac_try" in
7775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776   *) ac_try_echo=$ac_try;;
7777 esac
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779   (eval "$ac_try") 2>&5
7780   ac_status=$?
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); }; }; then
7783   llvm_cv_link_use_r=yes
7784 else
7785   echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7787
7788         llvm_cv_link_use_r=no
7789 fi
7790
7791 rm -f core conftest.err conftest.$ac_objext \
7792       conftest$ac_exeext conftest.$ac_ext
7793   CFLAGS="$oldcflags"
7794   ac_ext=c
7795 ac_cpp='$CPP $CPPFLAGS'
7796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799
7800
7801 fi
7802 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7803 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7804 if test "$llvm_cv_link_use_r" = yes ; then
7805
7806 cat >>confdefs.h <<\_ACEOF
7807 #define HAVE_LINK_R 1
7808 _ACEOF
7809
7810   fi
7811
7812
7813 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7814 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7815 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7816   echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818    ac_ext=c
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824   oldcflags="$CFLAGS"
7825   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7826   cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832
7833 int
7834 main ()
7835 {
7836
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext conftest$ac_exeext
7842 if { (ac_try="$ac_link"
7843 case "(($ac_try" in
7844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845   *) ac_try_echo=$ac_try;;
7846 esac
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848   (eval "$ac_link") 2>conftest.er1
7849   ac_status=$?
7850   grep -v '^ *+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
7852   cat conftest.err >&5
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } &&
7855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7856   { (case "(($ac_try" in
7857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858   *) ac_try_echo=$ac_try;;
7859 esac
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861   (eval "$ac_try") 2>&5
7862   ac_status=$?
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); }; } &&
7865          { ac_try='test -s conftest$ac_exeext'
7866   { (case "(($ac_try" in
7867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868   *) ac_try_echo=$ac_try;;
7869 esac
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871   (eval "$ac_try") 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; }; then
7875   llvm_cv_link_use_export_dynamic=yes
7876 else
7877   echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880         llvm_cv_link_use_export_dynamic=no
7881 fi
7882
7883 rm -f core conftest.err conftest.$ac_objext \
7884       conftest$ac_exeext conftest.$ac_ext
7885   CFLAGS="$oldcflags"
7886   ac_ext=c
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891
7892
7893 fi
7894 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7895 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7896 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7897
7898 cat >>confdefs.h <<\_ACEOF
7899 #define HAVE_LINK_EXPORT_DYNAMIC 1
7900 _ACEOF
7901
7902   fi
7903
7904
7905 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7906 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7907 if test "${llvm_cv_link_use_version_script+set}" = set; then
7908   echo $ECHO_N "(cached) $ECHO_C" >&6
7909 else
7910    ac_ext=c
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915
7916   oldcflags="$CFLAGS"
7917
7918   # The following code is from the autoconf manual,
7919   # "11.13: Limitations of Usual Tools".
7920   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7921   # Use mktemp if possible; otherwise fall back on mkdir,
7922   # with $RANDOM to make collisions less likely.
7923   : ${TMPDIR=/tmp}
7924   {
7925     tmp=`
7926       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7927     ` &&
7928     test -n "$tmp" && test -d "$tmp"
7929   } || {
7930     tmp=$TMPDIR/foo$$-$RANDOM
7931     (umask 077 && mkdir "$tmp")
7932   } || exit $?
7933
7934   echo "{" > "$tmp/export.map"
7935   echo "  global: main;" >> "$tmp/export.map"
7936   echo "  local: *;" >> "$tmp/export.map"
7937   echo "};" >> "$tmp/export.map"
7938
7939   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7940   cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h.  */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h.  */
7946
7947 int
7948 main ()
7949 {
7950
7951   ;
7952   return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7957 case "(($ac_try" in
7958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959   *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962   (eval "$ac_link") 2>conftest.er1
7963   ac_status=$?
7964   grep -v '^ *+' conftest.er1 >conftest.err
7965   rm -f conftest.er1
7966   cat conftest.err >&5
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7970   { (case "(($ac_try" in
7971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972   *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975   (eval "$ac_try") 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; } &&
7979          { ac_try='test -s conftest$ac_exeext'
7980   { (case "(($ac_try" in
7981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982   *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985   (eval "$ac_try") 2>&5
7986   ac_status=$?
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); }; }; then
7989   llvm_cv_link_use_version_script=yes
7990 else
7991   echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994         llvm_cv_link_use_version_script=no
7995 fi
7996
7997 rm -f core conftest.err conftest.$ac_objext \
7998       conftest$ac_exeext conftest.$ac_ext
7999   rm "$tmp/export.map"
8000   rmdir "$tmp"
8001   CFLAGS="$oldcflags"
8002   ac_ext=c
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007
8008
8009 fi
8010 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8011 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8012 if test "$llvm_cv_link_use_version_script" = yes ; then
8013   HAVE_LINK_VERSION_SCRIPT=1
8014
8015   fi
8016
8017
8018
8019
8020 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8021 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8022 if test "${ac_cv_c_const+set}" = set; then
8023   echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025   cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h.  */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h.  */
8031
8032 int
8033 main ()
8034 {
8035 /* FIXME: Include the comments suggested by Paul. */
8036 #ifndef __cplusplus
8037   /* Ultrix mips cc rejects this.  */
8038   typedef int charset[2];
8039   const charset x;
8040   /* SunOS 4.1.1 cc rejects this.  */
8041   char const *const *ccp;
8042   char **p;
8043   /* NEC SVR4.0.2 mips cc rejects this.  */
8044   struct point {int x, y;};
8045   static struct point const zero = {0,0};
8046   /* AIX XL C 1.02.0.0 rejects this.
8047      It does not let you subtract one const X* pointer from another in
8048      an arm of an if-expression whose if-part is not a constant
8049      expression */
8050   const char *g = "string";
8051   ccp = &g + (g ? g-g : 0);
8052   /* HPUX 7.0 cc rejects these. */
8053   ++ccp;
8054   p = (char**) ccp;
8055   ccp = (char const *const *) p;
8056   { /* SCO 3.2v4 cc rejects this.  */
8057     char *t;
8058     char const *s = 0 ? (char *) 0 : (char const *) 0;
8059
8060     *t++ = 0;
8061     if (s) return 0;
8062   }
8063   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8064     int x[] = {25, 17};
8065     const int *foo = &x[0];
8066     ++foo;
8067   }
8068   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8069     typedef const int *iptr;
8070     iptr p = 0;
8071     ++p;
8072   }
8073   { /* AIX XL C 1.02.0.0 rejects this saying
8074        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8075     struct s { int j; const int *ap[3]; };
8076     struct s *b; b->j = 5;
8077   }
8078   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8079     const int foo = 10;
8080     if (!foo) return 0;
8081   }
8082   return !x[0] && !zero.x;
8083 #endif
8084
8085   ;
8086   return 0;
8087 }
8088 _ACEOF
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8091 case "(($ac_try" in
8092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093   *) ac_try_echo=$ac_try;;
8094 esac
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096   (eval "$ac_compile") 2>conftest.er1
8097   ac_status=$?
8098   grep -v '^ *+' conftest.er1 >conftest.err
8099   rm -f conftest.er1
8100   cat conftest.err >&5
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); } &&
8103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8104   { (case "(($ac_try" in
8105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106   *) ac_try_echo=$ac_try;;
8107 esac
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109   (eval "$ac_try") 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; } &&
8113          { ac_try='test -s conftest.$ac_objext'
8114   { (case "(($ac_try" in
8115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116   *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119   (eval "$ac_try") 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); }; }; then
8123   ac_cv_c_const=yes
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128         ac_cv_c_const=no
8129 fi
8130
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 fi
8133 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8134 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8135 if test $ac_cv_c_const = no; then
8136
8137 cat >>confdefs.h <<\_ACEOF
8138 #define const
8139 _ACEOF
8140
8141 fi
8142
8143
8144
8145
8146
8147
8148 ac_header_dirent=no
8149 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8150   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8151 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8152 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8154   echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156   cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h.  */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h.  */
8162 #include <sys/types.h>
8163 #include <$ac_hdr>
8164
8165 int
8166 main ()
8167 {
8168 if ((DIR *) 0)
8169 return 0;
8170   ;
8171   return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest.$ac_objext
8175 if { (ac_try="$ac_compile"
8176 case "(($ac_try" in
8177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178   *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181   (eval "$ac_compile") 2>conftest.er1
8182   ac_status=$?
8183   grep -v '^ *+' conftest.er1 >conftest.err
8184   rm -f conftest.er1
8185   cat conftest.err >&5
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } &&
8188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8189   { (case "(($ac_try" in
8190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191   *) ac_try_echo=$ac_try;;
8192 esac
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194   (eval "$ac_try") 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; } &&
8198          { ac_try='test -s conftest.$ac_objext'
8199   { (case "(($ac_try" in
8200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201   *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204   (eval "$ac_try") 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; }; then
8208   eval "$as_ac_Header=yes"
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213         eval "$as_ac_Header=no"
8214 fi
8215
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 fi
8218 ac_res=`eval echo '${'$as_ac_Header'}'`
8219                { echo "$as_me:$LINENO: result: $ac_res" >&5
8220 echo "${ECHO_T}$ac_res" >&6; }
8221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8222   cat >>confdefs.h <<_ACEOF
8223 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8224 _ACEOF
8225
8226 ac_header_dirent=$ac_hdr; break
8227 fi
8228
8229 done
8230 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8231 if test $ac_header_dirent = dirent.h; then
8232   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8233 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8234 if test "${ac_cv_search_opendir+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   ac_func_search_save_LIBS=$LIBS
8238 cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h.  */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h.  */
8244
8245 /* Override any GCC internal prototype to avoid an error.
8246    Use char because int might match the return type of a GCC
8247    builtin and then its argument prototype would still apply.  */
8248 #ifdef __cplusplus
8249 extern "C"
8250 #endif
8251 char opendir ();
8252 int
8253 main ()
8254 {
8255 return opendir ();
8256   ;
8257   return 0;
8258 }
8259 _ACEOF
8260 for ac_lib in '' dir; do
8261   if test -z "$ac_lib"; then
8262     ac_res="none required"
8263   else
8264     ac_res=-l$ac_lib
8265     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8266   fi
8267   rm -f conftest.$ac_objext conftest$ac_exeext
8268 if { (ac_try="$ac_link"
8269 case "(($ac_try" in
8270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271   *) ac_try_echo=$ac_try;;
8272 esac
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274   (eval "$ac_link") 2>conftest.er1
8275   ac_status=$?
8276   grep -v '^ *+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } &&
8281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8282   { (case "(($ac_try" in
8283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284   *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287   (eval "$ac_try") 2>&5
8288   ac_status=$?
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); }; } &&
8291          { ac_try='test -s conftest$ac_exeext'
8292   { (case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297   (eval "$ac_try") 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; }; then
8301   ac_cv_search_opendir=$ac_res
8302 else
8303   echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306
8307 fi
8308
8309 rm -f core conftest.err conftest.$ac_objext \
8310       conftest$ac_exeext
8311   if test "${ac_cv_search_opendir+set}" = set; then
8312   break
8313 fi
8314 done
8315 if test "${ac_cv_search_opendir+set}" = set; then
8316   :
8317 else
8318   ac_cv_search_opendir=no
8319 fi
8320 rm conftest.$ac_ext
8321 LIBS=$ac_func_search_save_LIBS
8322 fi
8323 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8324 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8325 ac_res=$ac_cv_search_opendir
8326 if test "$ac_res" != no; then
8327   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8328
8329 fi
8330
8331 else
8332   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8333 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8334 if test "${ac_cv_search_opendir+set}" = set; then
8335   echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337   ac_func_search_save_LIBS=$LIBS
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h.  */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h.  */
8344
8345 /* Override any GCC internal prototype to avoid an error.
8346    Use char because int might match the return type of a GCC
8347    builtin and then its argument prototype would still apply.  */
8348 #ifdef __cplusplus
8349 extern "C"
8350 #endif
8351 char opendir ();
8352 int
8353 main ()
8354 {
8355 return opendir ();
8356   ;
8357   return 0;
8358 }
8359 _ACEOF
8360 for ac_lib in '' x; do
8361   if test -z "$ac_lib"; then
8362     ac_res="none required"
8363   else
8364     ac_res=-l$ac_lib
8365     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8366   fi
8367   rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (ac_try="$ac_link"
8369 case "(($ac_try" in
8370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371   *) ac_try_echo=$ac_try;;
8372 esac
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374   (eval "$ac_link") 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382   { (case "(($ac_try" in
8383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384   *) ac_try_echo=$ac_try;;
8385 esac
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387   (eval "$ac_try") 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); }; } &&
8391          { ac_try='test -s conftest$ac_exeext'
8392   { (case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_try") 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; }; then
8401   ac_cv_search_opendir=$ac_res
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406
8407 fi
8408
8409 rm -f core conftest.err conftest.$ac_objext \
8410       conftest$ac_exeext
8411   if test "${ac_cv_search_opendir+set}" = set; then
8412   break
8413 fi
8414 done
8415 if test "${ac_cv_search_opendir+set}" = set; then
8416   :
8417 else
8418   ac_cv_search_opendir=no
8419 fi
8420 rm conftest.$ac_ext
8421 LIBS=$ac_func_search_save_LIBS
8422 fi
8423 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8424 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8425 ac_res=$ac_cv_search_opendir
8426 if test "$ac_res" != no; then
8427   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8428
8429 fi
8430
8431 fi
8432
8433
8434 for ac_header in dlfcn.h
8435 do
8436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8438   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8441   echo $ECHO_N "(cached) $ECHO_C" >&6
8442 fi
8443 ac_res=`eval echo '${'$as_ac_Header'}'`
8444                { echo "$as_me:$LINENO: result: $ac_res" >&5
8445 echo "${ECHO_T}$ac_res" >&6; }
8446 else
8447   # Is the header compilable?
8448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8450 cat >conftest.$ac_ext <<_ACEOF
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456 $ac_includes_default
8457 #include <$ac_header>
8458 _ACEOF
8459 rm -f conftest.$ac_objext
8460 if { (ac_try="$ac_compile"
8461 case "(($ac_try" in
8462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463   *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466   (eval "$ac_compile") 2>conftest.er1
8467   ac_status=$?
8468   grep -v '^ *+' conftest.er1 >conftest.err
8469   rm -f conftest.er1
8470   cat conftest.err >&5
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } &&
8473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8474   { (case "(($ac_try" in
8475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476   *) ac_try_echo=$ac_try;;
8477 esac
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479   (eval "$ac_try") 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; } &&
8483          { ac_try='test -s conftest.$ac_objext'
8484   { (case "(($ac_try" in
8485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486   *) ac_try_echo=$ac_try;;
8487 esac
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489   (eval "$ac_try") 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; }; then
8493   ac_header_compiler=yes
8494 else
8495   echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498         ac_header_compiler=no
8499 fi
8500
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8503 echo "${ECHO_T}$ac_header_compiler" >&6; }
8504
8505 # Is the header present?
8506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8508 cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514 #include <$ac_header>
8515 _ACEOF
8516 if { (ac_try="$ac_cpp conftest.$ac_ext"
8517 case "(($ac_try" in
8518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519   *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8523   ac_status=$?
8524   grep -v '^ *+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); } >/dev/null; then
8529   if test -s conftest.err; then
8530     ac_cpp_err=$ac_c_preproc_warn_flag
8531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8532   else
8533     ac_cpp_err=
8534   fi
8535 else
8536   ac_cpp_err=yes
8537 fi
8538 if test -z "$ac_cpp_err"; then
8539   ac_header_preproc=yes
8540 else
8541   echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8543
8544   ac_header_preproc=no
8545 fi
8546
8547 rm -f conftest.err conftest.$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8549 echo "${ECHO_T}$ac_header_preproc" >&6; }
8550
8551 # So?  What about this header?
8552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8553   yes:no: )
8554     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8558     ac_header_preproc=yes
8559     ;;
8560   no:yes:* )
8561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8563     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8564 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8565     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8567     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8568 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8571     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8573     ( cat <<\_ASBOX
8574 ## ------------------------------------ ##
8575 ## Report this to http://llvm.org/bugs/ ##
8576 ## ------------------------------------ ##
8577 _ASBOX
8578      ) | sed "s/^/$as_me: WARNING:     /" >&2
8579     ;;
8580 esac
8581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8584   echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586   eval "$as_ac_Header=\$ac_header_preproc"
8587 fi
8588 ac_res=`eval echo '${'$as_ac_Header'}'`
8589                { echo "$as_me:$LINENO: result: $ac_res" >&5
8590 echo "${ECHO_T}$ac_res" >&6; }
8591
8592 fi
8593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8594   cat >>confdefs.h <<_ACEOF
8595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8596 _ACEOF
8597
8598 fi
8599
8600 done
8601
8602 # Check whether --enable-ltdl-install was given.
8603 if test "${enable_ltdl_install+set}" = set; then
8604   enableval=$enable_ltdl_install;
8605 fi
8606
8607
8608
8609
8610 if test x"${enable_ltdl_install-no}" != xno; then
8611   INSTALL_LTDL_TRUE=
8612   INSTALL_LTDL_FALSE='#'
8613 else
8614   INSTALL_LTDL_TRUE='#'
8615   INSTALL_LTDL_FALSE=
8616 fi
8617
8618
8619
8620 if test x"${enable_ltdl_convenience-no}" != xno; then
8621   CONVENIENCE_LTDL_TRUE=
8622   CONVENIENCE_LTDL_FALSE='#'
8623 else
8624   CONVENIENCE_LTDL_TRUE='#'
8625   CONVENIENCE_LTDL_FALSE=
8626 fi
8627
8628
8629 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8630 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8631 library_names_spec=
8632 libname_spec='lib$name'
8633 soname_spec=
8634 shrext_cmds=".so"
8635 postinstall_cmds=
8636 postuninstall_cmds=
8637 finish_cmds=
8638 finish_eval=
8639 shlibpath_var=
8640 shlibpath_overrides_runpath=unknown
8641 version_type=none
8642 dynamic_linker="$host_os ld.so"
8643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8644 if test "$GCC" = yes; then
8645   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8646   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8647     # if the path contains ";" then we assume it to be the separator
8648     # otherwise default to the standard path separator (i.e. ":") - it is
8649     # assumed that no part of a normal pathname contains ";" but that should
8650     # okay in the real world where ";" in dirpaths is itself problematic.
8651     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8652   else
8653     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8654   fi
8655 else
8656   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8657 fi
8658 need_lib_prefix=unknown
8659 hardcode_into_libs=no
8660
8661 # when you set need_version to no, make sure it does not cause -set_version
8662 # flags to be left without arguments
8663 need_version=unknown
8664
8665 case $host_os in
8666 aix3*)
8667   version_type=linux
8668   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8669   shlibpath_var=LIBPATH
8670
8671   # AIX 3 has no versioning support, so we append a major version to the name.
8672   soname_spec='${libname}${release}${shared_ext}$major'
8673   ;;
8674
8675 aix4* | aix5*)
8676   version_type=linux
8677   need_lib_prefix=no
8678   need_version=no
8679   hardcode_into_libs=yes
8680   if test "$host_cpu" = ia64; then
8681     # AIX 5 supports IA64
8682     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8683     shlibpath_var=LD_LIBRARY_PATH
8684   else
8685     # With GCC up to 2.95.x, collect2 would create an import file
8686     # for dependence libraries.  The import file would start with
8687     # the line `#! .'.  This would cause the generated library to
8688     # depend on `.', always an invalid library.  This was fixed in
8689     # development snapshots of GCC prior to 3.0.
8690     case $host_os in
8691       aix4 | aix4.[01] | aix4.[01].*)
8692       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8693            echo ' yes '
8694            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8695         :
8696       else
8697         can_build_shared=no
8698       fi
8699       ;;
8700     esac
8701     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8702     # soname into executable. Probably we can add versioning support to
8703     # collect2, so additional links can be useful in future.
8704     if test "$aix_use_runtimelinking" = yes; then
8705       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8706       # instead of lib<name>.a to let people know that these are not
8707       # typical AIX shared libraries.
8708       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709     else
8710       # We preserve .a as extension for shared libraries through AIX4.2
8711       # and later when we are not doing run time linking.
8712       library_names_spec='${libname}${release}.a $libname.a'
8713       soname_spec='${libname}${release}${shared_ext}$major'
8714     fi
8715     shlibpath_var=LIBPATH
8716   fi
8717   ;;
8718
8719 amigaos*)
8720   library_names_spec='$libname.ixlibrary $libname.a'
8721   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8722   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'
8723   ;;
8724
8725 beos*)
8726   library_names_spec='${libname}${shared_ext}'
8727   dynamic_linker="$host_os ld.so"
8728   shlibpath_var=LIBRARY_PATH
8729   ;;
8730
8731 bsdi[45]*)
8732   version_type=linux
8733   need_version=no
8734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735   soname_spec='${libname}${release}${shared_ext}$major'
8736   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8737   shlibpath_var=LD_LIBRARY_PATH
8738   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8739   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8740   # the default ld.so.conf also contains /usr/contrib/lib and
8741   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8742   # libtool to hard-code these into programs
8743   ;;
8744
8745 cygwin* | mingw* | pw32*)
8746   version_type=windows
8747   shrext_cmds=".dll"
8748   need_version=no
8749   need_lib_prefix=no
8750
8751   case $GCC,$host_os in
8752   yes,cygwin* | yes,mingw* | yes,pw32*)
8753     library_names_spec='$libname.dll.a'
8754     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8755     postinstall_cmds='base_file=`basename \${file}`~
8756       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8757       dldir=$destdir/`dirname \$dlpath`~
8758       test -d \$dldir || mkdir -p \$dldir~
8759       $install_prog $dir/$dlname \$dldir/$dlname~
8760       chmod a+x \$dldir/$dlname'
8761     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8762       dlpath=$dir/\$dldll~
8763        $rm \$dlpath'
8764     shlibpath_overrides_runpath=yes
8765
8766     case $host_os in
8767     cygwin*)
8768       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8769       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8770       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8771       ;;
8772     mingw*)
8773       # MinGW DLLs use traditional 'lib' prefix
8774       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8775       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8776       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8777         # It is most probably a Windows format PATH printed by
8778         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8779         # path with ; separators, and with drive letters. We can handle the
8780         # drive letters (cygwin fileutils understands them), so leave them,
8781         # especially as we might pass files found there to a mingw objdump,
8782         # which wouldn't understand a cygwinified path. Ahh.
8783         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8784       else
8785         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8786       fi
8787       ;;
8788     pw32*)
8789       # pw32 DLLs use 'pw' prefix rather than 'lib'
8790       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8791       ;;
8792     esac
8793     ;;
8794
8795   *)
8796     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8797     ;;
8798   esac
8799   dynamic_linker='Win32 ld.exe'
8800   # FIXME: first we should search . and the directory the executable is in
8801   shlibpath_var=PATH
8802   ;;
8803
8804 darwin* | rhapsody*)
8805   dynamic_linker="$host_os dyld"
8806   version_type=darwin
8807   need_lib_prefix=no
8808   need_version=no
8809   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8810   soname_spec='${libname}${release}${major}$shared_ext'
8811   shlibpath_overrides_runpath=yes
8812   shlibpath_var=DYLD_LIBRARY_PATH
8813   shrext_cmds='.dylib'
8814   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8815   if test "$GCC" = yes; then
8816     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"`
8817   else
8818     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8819   fi
8820   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8821   ;;
8822
8823 dgux*)
8824   version_type=linux
8825   need_lib_prefix=no
8826   need_version=no
8827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8828   soname_spec='${libname}${release}${shared_ext}$major'
8829   shlibpath_var=LD_LIBRARY_PATH
8830   ;;
8831
8832 freebsd1.*)
8833   dynamic_linker=no
8834   ;;
8835
8836 kfreebsd*-gnu)
8837   version_type=linux
8838   need_lib_prefix=no
8839   need_version=no
8840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8841   soname_spec='${libname}${release}${shared_ext}$major'
8842   shlibpath_var=LD_LIBRARY_PATH
8843   shlibpath_overrides_runpath=no
8844   hardcode_into_libs=yes
8845   dynamic_linker='GNU ld.so'
8846   ;;
8847
8848 freebsd* | dragonfly*)
8849   # DragonFly does not have aout.  When/if they implement a new
8850   # versioning mechanism, adjust this.
8851   if test -x /usr/bin/objformat; then
8852     objformat=`/usr/bin/objformat`
8853   else
8854     case $host_os in
8855     freebsd[123].*) objformat=aout ;;
8856     *) objformat=elf ;;
8857     esac
8858   fi
8859   version_type=freebsd-$objformat
8860   case $version_type in
8861     freebsd-elf*)
8862       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8863       need_version=no
8864       need_lib_prefix=no
8865       ;;
8866     freebsd-*)
8867       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8868       need_version=yes
8869       ;;
8870   esac
8871   shlibpath_var=LD_LIBRARY_PATH
8872   case $host_os in
8873   freebsd2.*)
8874     shlibpath_overrides_runpath=yes
8875     ;;
8876   freebsd3.[01]* | freebsdelf3.[01]*)
8877     shlibpath_overrides_runpath=yes
8878     hardcode_into_libs=yes
8879     ;;
8880   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8881   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8882     shlibpath_overrides_runpath=no
8883     hardcode_into_libs=yes
8884     ;;
8885   freebsd*) # from 4.6 on
8886     shlibpath_overrides_runpath=yes
8887     hardcode_into_libs=yes
8888     ;;
8889   esac
8890   ;;
8891
8892 gnu*)
8893   version_type=linux
8894   need_lib_prefix=no
8895   need_version=no
8896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8897   soname_spec='${libname}${release}${shared_ext}$major'
8898   shlibpath_var=LD_LIBRARY_PATH
8899   hardcode_into_libs=yes
8900   ;;
8901
8902 hpux9* | hpux10* | hpux11*)
8903   # Give a soname corresponding to the major version so that dld.sl refuses to
8904   # link against other versions.
8905   version_type=sunos
8906   need_lib_prefix=no
8907   need_version=no
8908   case $host_cpu in
8909   ia64*)
8910     shrext_cmds='.so'
8911     hardcode_into_libs=yes
8912     dynamic_linker="$host_os dld.so"
8913     shlibpath_var=LD_LIBRARY_PATH
8914     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8916     soname_spec='${libname}${release}${shared_ext}$major'
8917     if test "X$HPUX_IA64_MODE" = X32; then
8918       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8919     else
8920       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8921     fi
8922     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8923     ;;
8924    hppa*64*)
8925      shrext_cmds='.sl'
8926      hardcode_into_libs=yes
8927      dynamic_linker="$host_os dld.sl"
8928      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8929      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8930      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931      soname_spec='${libname}${release}${shared_ext}$major'
8932      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8933      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8934      ;;
8935    *)
8936     shrext_cmds='.sl'
8937     dynamic_linker="$host_os dld.sl"
8938     shlibpath_var=SHLIB_PATH
8939     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941     soname_spec='${libname}${release}${shared_ext}$major'
8942     ;;
8943   esac
8944   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8945   postinstall_cmds='chmod 555 $lib'
8946   ;;
8947
8948 interix3*)
8949   version_type=linux
8950   need_lib_prefix=no
8951   need_version=no
8952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8953   soname_spec='${libname}${release}${shared_ext}$major'
8954   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8955   shlibpath_var=LD_LIBRARY_PATH
8956   shlibpath_overrides_runpath=no
8957   hardcode_into_libs=yes
8958   ;;
8959
8960 irix5* | irix6* | nonstopux*)
8961   case $host_os in
8962     nonstopux*) version_type=nonstopux ;;
8963     *)
8964         if test "$lt_cv_prog_gnu_ld" = yes; then
8965                 version_type=linux
8966         else
8967                 version_type=irix
8968         fi ;;
8969   esac
8970   need_lib_prefix=no
8971   need_version=no
8972   soname_spec='${libname}${release}${shared_ext}$major'
8973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8974   case $host_os in
8975   irix5* | nonstopux*)
8976     libsuff= shlibsuff=
8977     ;;
8978   *)
8979     case $LD in # libtool.m4 will add one of these switches to LD
8980     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8981       libsuff= shlibsuff= libmagic=32-bit;;
8982     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8983       libsuff=32 shlibsuff=N32 libmagic=N32;;
8984     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8985       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8986     *) libsuff= shlibsuff= libmagic=never-match;;
8987     esac
8988     ;;
8989   esac
8990   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8991   shlibpath_overrides_runpath=no
8992   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8993   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8994   hardcode_into_libs=yes
8995   ;;
8996
8997 # No shared lib support for Linux oldld, aout, or coff.
8998 linux*oldld* | linux*aout* | linux*coff*)
8999   dynamic_linker=no
9000   ;;
9001
9002 # This must be Linux ELF.
9003 linux*)
9004   version_type=linux
9005   need_lib_prefix=no
9006   need_version=no
9007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008   soname_spec='${libname}${release}${shared_ext}$major'
9009   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9010   shlibpath_var=LD_LIBRARY_PATH
9011   shlibpath_overrides_runpath=no
9012   # This implies no fast_install, which is unacceptable.
9013   # Some rework will be needed to allow for fast_install
9014   # before this can be enabled.
9015   hardcode_into_libs=yes
9016
9017   # Append ld.so.conf contents to the search path
9018   if test -f /etc/ld.so.conf; then
9019     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' ' '`
9020     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9021   fi
9022
9023   # We used to test for /lib/ld.so.1 and disable shared libraries on
9024   # powerpc, because MkLinux only supported shared libraries with the
9025   # GNU dynamic linker.  Since this was broken with cross compilers,
9026   # most powerpc-linux boxes support dynamic linking these days and
9027   # people can always --disable-shared, the test was removed, and we
9028   # assume the GNU/Linux dynamic linker is in use.
9029   dynamic_linker='GNU/Linux ld.so'
9030   ;;
9031
9032 knetbsd*-gnu)
9033   version_type=linux
9034   need_lib_prefix=no
9035   need_version=no
9036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9037   soname_spec='${libname}${release}${shared_ext}$major'
9038   shlibpath_var=LD_LIBRARY_PATH
9039   shlibpath_overrides_runpath=no
9040   hardcode_into_libs=yes
9041   dynamic_linker='GNU ld.so'
9042   ;;
9043
9044 netbsd*)
9045   version_type=sunos
9046   need_lib_prefix=no
9047   need_version=no
9048   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9050     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9051     dynamic_linker='NetBSD (a.out) ld.so'
9052   else
9053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054     soname_spec='${libname}${release}${shared_ext}$major'
9055     dynamic_linker='NetBSD ld.elf_so'
9056   fi
9057   shlibpath_var=LD_LIBRARY_PATH
9058   shlibpath_overrides_runpath=yes
9059   hardcode_into_libs=yes
9060   ;;
9061
9062 newsos6)
9063   version_type=linux
9064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065   shlibpath_var=LD_LIBRARY_PATH
9066   shlibpath_overrides_runpath=yes
9067   ;;
9068
9069 nto-qnx*)
9070   version_type=linux
9071   need_lib_prefix=no
9072   need_version=no
9073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074   soname_spec='${libname}${release}${shared_ext}$major'
9075   shlibpath_var=LD_LIBRARY_PATH
9076   shlibpath_overrides_runpath=yes
9077   ;;
9078
9079 openbsd*)
9080   version_type=sunos
9081   sys_lib_dlsearch_path_spec="/usr/lib"
9082   need_lib_prefix=no
9083   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9084   case $host_os in
9085     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9086     *)                         need_version=no  ;;
9087   esac
9088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9089   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9090   shlibpath_var=LD_LIBRARY_PATH
9091   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9092     case $host_os in
9093       openbsd2.[89] | openbsd2.[89].*)
9094         shlibpath_overrides_runpath=no
9095         ;;
9096       *)
9097         shlibpath_overrides_runpath=yes
9098         ;;
9099       esac
9100   else
9101     shlibpath_overrides_runpath=yes
9102   fi
9103   ;;
9104
9105 os2*)
9106   libname_spec='$name'
9107   shrext_cmds=".dll"
9108   need_lib_prefix=no
9109   library_names_spec='$libname${shared_ext} $libname.a'
9110   dynamic_linker='OS/2 ld.exe'
9111   shlibpath_var=LIBPATH
9112   ;;
9113
9114 osf3* | osf4* | osf5*)
9115   version_type=osf
9116   need_lib_prefix=no
9117   need_version=no
9118   soname_spec='${libname}${release}${shared_ext}$major'
9119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9122   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9123   ;;
9124
9125 solaris*)
9126   version_type=linux
9127   need_lib_prefix=no
9128   need_version=no
9129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130   soname_spec='${libname}${release}${shared_ext}$major'
9131   shlibpath_var=LD_LIBRARY_PATH
9132   shlibpath_overrides_runpath=yes
9133   hardcode_into_libs=yes
9134   # ldd complains unless libraries are executable
9135   postinstall_cmds='chmod +x $lib'
9136   ;;
9137
9138 sunos4*)
9139   version_type=sunos
9140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9141   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9142   shlibpath_var=LD_LIBRARY_PATH
9143   shlibpath_overrides_runpath=yes
9144   if test "$with_gnu_ld" = yes; then
9145     need_lib_prefix=no
9146   fi
9147   need_version=yes
9148   ;;
9149
9150 sysv4 | sysv4.3*)
9151   version_type=linux
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   case $host_vendor in
9156     sni)
9157       shlibpath_overrides_runpath=no
9158       need_lib_prefix=no
9159       export_dynamic_flag_spec='${wl}-Blargedynsym'
9160       runpath_var=LD_RUN_PATH
9161       ;;
9162     siemens)
9163       need_lib_prefix=no
9164       ;;
9165     motorola)
9166       need_lib_prefix=no
9167       need_version=no
9168       shlibpath_overrides_runpath=no
9169       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9170       ;;
9171   esac
9172   ;;
9173
9174 sysv4*MP*)
9175   if test -d /usr/nec ;then
9176     version_type=linux
9177     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9178     soname_spec='$libname${shared_ext}.$major'
9179     shlibpath_var=LD_LIBRARY_PATH
9180   fi
9181   ;;
9182
9183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9184   version_type=freebsd-elf
9185   need_lib_prefix=no
9186   need_version=no
9187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9188   soname_spec='${libname}${release}${shared_ext}$major'
9189   shlibpath_var=LD_LIBRARY_PATH
9190   hardcode_into_libs=yes
9191   if test "$with_gnu_ld" = yes; then
9192     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9193     shlibpath_overrides_runpath=no
9194   else
9195     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9196     shlibpath_overrides_runpath=yes
9197     case $host_os in
9198       sco3.2v5*)
9199         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9200         ;;
9201     esac
9202   fi
9203   sys_lib_dlsearch_path_spec='/usr/lib'
9204   ;;
9205
9206 uts4*)
9207   version_type=linux
9208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209   soname_spec='${libname}${release}${shared_ext}$major'
9210   shlibpath_var=LD_LIBRARY_PATH
9211   ;;
9212
9213 *)
9214   dynamic_linker=no
9215   ;;
9216 esac
9217 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9218 echo "${ECHO_T}$dynamic_linker" >&6; }
9219 test "$dynamic_linker" = no && can_build_shared=no
9220
9221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9222 if test "$GCC" = yes; then
9223   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9224 fi
9225
9226
9227 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9228 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9229 if test "${libltdl_cv_shlibext+set}" = set; then
9230   echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232
9233 module=yes
9234 eval libltdl_cv_shlibext=$shrext_cmds
9235
9236 fi
9237 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9238 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9239 if test -n "$libltdl_cv_shlibext"; then
9240
9241 cat >>confdefs.h <<_ACEOF
9242 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9243 _ACEOF
9244
9245 fi
9246
9247
9248 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9249 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9250 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9251   echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253   libltdl_cv_shlibpath_var="$shlibpath_var"
9254 fi
9255 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9256 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9257 if test -n "$libltdl_cv_shlibpath_var"; then
9258
9259 cat >>confdefs.h <<_ACEOF
9260 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9261 _ACEOF
9262
9263 fi
9264
9265
9266 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9267 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9268 if test "${libltdl_cv_sys_search_path+set}" = set; then
9269   echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9272 fi
9273 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9274 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9275 if test -n "$libltdl_cv_sys_search_path"; then
9276   sys_search_path=
9277   for dir in $libltdl_cv_sys_search_path; do
9278     if test -z "$sys_search_path"; then
9279       sys_search_path="$dir"
9280     else
9281       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9282     fi
9283   done
9284
9285 cat >>confdefs.h <<_ACEOF
9286 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9287 _ACEOF
9288
9289 fi
9290
9291 { echo "$as_me:$LINENO: checking for objdir" >&5
9292 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9293 if test "${libltdl_cv_objdir+set}" = set; then
9294   echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296   libltdl_cv_objdir="$objdir"
9297   if test -n "$objdir"; then
9298     :
9299   else
9300     rm -f .libs 2>/dev/null
9301     mkdir .libs 2>/dev/null
9302     if test -d .libs; then
9303       libltdl_cv_objdir=.libs
9304     else
9305       # MS-DOS does not allow filenames that begin with a dot.
9306       libltdl_cv_objdir=_libs
9307     fi
9308   rmdir .libs 2>/dev/null
9309   fi
9310
9311 fi
9312 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9313 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9314
9315 cat >>confdefs.h <<_ACEOF
9316 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9317 _ACEOF
9318
9319
9320
9321
9322
9323
9324 # Check for command to grab the raw symbol name followed by C symbol from nm.
9325 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9326 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9327 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9328   echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330
9331 # These are sane defaults that work on at least a few old systems.
9332 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9333
9334 # Character class describing NM global symbol codes.
9335 symcode='[BCDEGRST]'
9336
9337 # Regexp to match symbols that can be accessed directly from C.
9338 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9339
9340 # Transform an extracted symbol line into a proper C declaration
9341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9342
9343 # Transform an extracted symbol line into symbol name and symbol address
9344 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'"
9345
9346 # Define system-specific variables.
9347 case $host_os in
9348 aix*)
9349   symcode='[BCDT]'
9350   ;;
9351 cygwin* | mingw* | pw32*)
9352   symcode='[ABCDGISTW]'
9353   ;;
9354 hpux*) # Its linker distinguishes data from code symbols
9355   if test "$host_cpu" = ia64; then
9356     symcode='[ABCDEGRST]'
9357   fi
9358   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9359   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'"
9360   ;;
9361 linux*)
9362   if test "$host_cpu" = ia64; then
9363     symcode='[ABCDGIRSTW]'
9364     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9365     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'"
9366   fi
9367   ;;
9368 irix* | nonstopux*)
9369   symcode='[BCDEGRST]'
9370   ;;
9371 osf*)
9372   symcode='[BCDEGQRST]'
9373   ;;
9374 solaris*)
9375   symcode='[BDRT]'
9376   ;;
9377 sco3.2v5*)
9378   symcode='[DT]'
9379   ;;
9380 sysv4.2uw2*)
9381   symcode='[DT]'
9382   ;;
9383 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9384   symcode='[ABDT]'
9385   ;;
9386 sysv4)
9387   symcode='[DFNSTU]'
9388   ;;
9389 esac
9390
9391 # Handle CRLF in mingw tool chain
9392 opt_cr=
9393 case $build_os in
9394 mingw*)
9395   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9396   ;;
9397 esac
9398
9399 # If we're using GNU nm, then use its standard symbol codes.
9400 case `$NM -V 2>&1` in
9401 *GNU* | *'with BFD'*)
9402   symcode='[ABCDGIRSTW]' ;;
9403 esac
9404
9405 # Try without a prefix undercore, then with it.
9406 for ac_symprfx in "" "_"; do
9407
9408   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9409   symxfrm="\\1 $ac_symprfx\\2 \\2"
9410
9411   # Write the raw and C identifiers.
9412   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9413
9414   # Check to see that the pipe works correctly.
9415   pipe_works=no
9416
9417   rm -f conftest*
9418   cat > conftest.$ac_ext <<EOF
9419 #ifdef __cplusplus
9420 extern "C" {
9421 #endif
9422 char nm_test_var;
9423 void nm_test_func(){}
9424 #ifdef __cplusplus
9425 }
9426 #endif
9427 int main(){nm_test_var='a';nm_test_func();return(0);}
9428 EOF
9429
9430   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9431   (eval $ac_compile) 2>&5
9432   ac_status=$?
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); }; then
9435     # Now try to grab the symbols.
9436     nlist=conftest.nm
9437     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9438   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); } && test -s "$nlist"; then
9442       # Try sorting and uniquifying the output.
9443       if sort "$nlist" | uniq > "$nlist"T; then
9444         mv -f "$nlist"T "$nlist"
9445       else
9446         rm -f "$nlist"T
9447       fi
9448
9449       # Make sure that we snagged all the symbols we need.
9450       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9451         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9452           cat <<EOF > conftest.$ac_ext
9453 #ifdef __cplusplus
9454 extern "C" {
9455 #endif
9456
9457 EOF
9458           # Now generate the symbol file.
9459           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9460
9461           cat <<EOF >> conftest.$ac_ext
9462 #if defined (__STDC__) && __STDC__
9463 # define lt_ptr_t void *
9464 #else
9465 # define lt_ptr_t char *
9466 # define const
9467 #endif
9468
9469 /* The mapping between symbol names and symbols. */
9470 const struct {
9471   const char *name;
9472   lt_ptr_t address;
9473 }
9474 lt_preloaded_symbols[] =
9475 {
9476 EOF
9477           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9478           cat <<\EOF >> conftest.$ac_ext
9479   {0, (lt_ptr_t) 0}
9480 };
9481
9482 #ifdef __cplusplus
9483 }
9484 #endif
9485 EOF
9486           # Now try linking the two files.
9487           mv conftest.$ac_objext conftstm.$ac_objext
9488           lt_save_LIBS="$LIBS"
9489           lt_save_CFLAGS="$CFLAGS"
9490           LIBS="conftstm.$ac_objext"
9491           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9492           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493   (eval $ac_link) 2>&5
9494   ac_status=$?
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9497             pipe_works=yes
9498           fi
9499           LIBS="$lt_save_LIBS"
9500           CFLAGS="$lt_save_CFLAGS"
9501         else
9502           echo "cannot find nm_test_func in $nlist" >&5
9503         fi
9504       else
9505         echo "cannot find nm_test_var in $nlist" >&5
9506       fi
9507     else
9508       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9509     fi
9510   else
9511     echo "$progname: failed program was:" >&5
9512     cat conftest.$ac_ext >&5
9513   fi
9514   rm -f conftest* conftst*
9515
9516   # Do not use the global_symbol_pipe unless it works.
9517   if test "$pipe_works" = yes; then
9518     break
9519   else
9520     lt_cv_sys_global_symbol_pipe=
9521   fi
9522 done
9523
9524 fi
9525
9526 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9527   lt_cv_sys_global_symbol_to_cdecl=
9528 fi
9529 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9530   { echo "$as_me:$LINENO: result: failed" >&5
9531 echo "${ECHO_T}failed" >&6; }
9532 else
9533   { echo "$as_me:$LINENO: result: ok" >&5
9534 echo "${ECHO_T}ok" >&6; }
9535 fi
9536
9537
9538 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9539 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9540 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9544     libltdl_cv_preloaded_symbols=yes
9545   else
9546     libltdl_cv_preloaded_symbols=no
9547   fi
9548
9549 fi
9550 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9551 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9552 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9553
9554 cat >>confdefs.h <<\_ACEOF
9555 #define HAVE_PRELOADED_SYMBOLS 1
9556 _ACEOF
9557
9558 fi
9559
9560 LIBADD_DL=
9561
9562 ac_ext=c
9563 ac_cpp='$CPP $CPPFLAGS'
9564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9567
9568
9569 { echo "$as_me:$LINENO: checking for shl_load" >&5
9570 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9571 if test "${ac_cv_func_shl_load+set}" = set; then
9572   echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574   cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h.  */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h.  */
9580 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9582 #define shl_load innocuous_shl_load
9583
9584 /* System header to define __stub macros and hopefully few prototypes,
9585     which can conflict with char shl_load (); below.
9586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9587     <limits.h> exists even on freestanding compilers.  */
9588
9589 #ifdef __STDC__
9590 # include <limits.h>
9591 #else
9592 # include <assert.h>
9593 #endif
9594
9595 #undef shl_load
9596
9597 /* Override any GCC internal prototype to avoid an error.
9598    Use char because int might match the return type of a GCC
9599    builtin and then its argument prototype would still apply.  */
9600 #ifdef __cplusplus
9601 extern "C"
9602 #endif
9603 char shl_load ();
9604 /* The GNU C library defines this for functions which it implements
9605     to always fail with ENOSYS.  Some functions are actually named
9606     something starting with __ and the normal name is an alias.  */
9607 #if defined __stub_shl_load || defined __stub___shl_load
9608 choke me
9609 #endif
9610
9611 int
9612 main ()
9613 {
9614 return shl_load ();
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (ac_try="$ac_link"
9621 case "(($ac_try" in
9622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623   *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626   (eval "$ac_link") 2>conftest.er1
9627   ac_status=$?
9628   grep -v '^ *+' conftest.er1 >conftest.err
9629   rm -f conftest.er1
9630   cat conftest.err >&5
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } &&
9633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9634   { (case "(($ac_try" in
9635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636   *) ac_try_echo=$ac_try;;
9637 esac
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639   (eval "$ac_try") 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; } &&
9643          { ac_try='test -s conftest$ac_exeext'
9644   { (case "(($ac_try" in
9645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646   *) ac_try_echo=$ac_try;;
9647 esac
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649   (eval "$ac_try") 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; }; then
9653   ac_cv_func_shl_load=yes
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658         ac_cv_func_shl_load=no
9659 fi
9660
9661 rm -f core conftest.err conftest.$ac_objext \
9662       conftest$ac_exeext conftest.$ac_ext
9663 fi
9664 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9665 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9666 if test $ac_cv_func_shl_load = yes; then
9667
9668 cat >>confdefs.h <<\_ACEOF
9669 #define HAVE_SHL_LOAD 1
9670 _ACEOF
9671
9672 else
9673   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9674 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9675 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9676   echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678   ac_check_lib_save_LIBS=$LIBS
9679 LIBS="-ldld  $LIBS"
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686
9687 /* Override any GCC internal prototype to avoid an error.
9688    Use char because int might match the return type of a GCC
9689    builtin and then its argument prototype would still apply.  */
9690 #ifdef __cplusplus
9691 extern "C"
9692 #endif
9693 char shl_load ();
9694 int
9695 main ()
9696 {
9697 return shl_load ();
9698   ;
9699   return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9704 case "(($ac_try" in
9705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706   *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709   (eval "$ac_link") 2>conftest.er1
9710   ac_status=$?
9711   grep -v '^ *+' conftest.er1 >conftest.err
9712   rm -f conftest.er1
9713   cat conftest.err >&5
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } &&
9716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717   { (case "(($ac_try" in
9718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719   *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722   (eval "$ac_try") 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; } &&
9726          { ac_try='test -s conftest$ac_exeext'
9727   { (case "(($ac_try" in
9728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729   *) ac_try_echo=$ac_try;;
9730 esac
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732   (eval "$ac_try") 2>&5
9733   ac_status=$?
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); }; }; then
9736   ac_cv_lib_dld_shl_load=yes
9737 else
9738   echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9740
9741         ac_cv_lib_dld_shl_load=no
9742 fi
9743
9744 rm -f core conftest.err conftest.$ac_objext \
9745       conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_check_lib_save_LIBS
9747 fi
9748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9749 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9750 if test $ac_cv_lib_dld_shl_load = yes; then
9751
9752 cat >>confdefs.h <<\_ACEOF
9753 #define HAVE_SHL_LOAD 1
9754 _ACEOF
9755
9756         LIBADD_DL="$LIBADD_DL -ldld"
9757 else
9758   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9759 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9760 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   ac_check_lib_save_LIBS=$LIBS
9764 LIBS="-ldl  $LIBS"
9765 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h.  */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h.  */
9771
9772 /* Override any GCC internal prototype to avoid an error.
9773    Use char because int might match the return type of a GCC
9774    builtin and then its argument prototype would still apply.  */
9775 #ifdef __cplusplus
9776 extern "C"
9777 #endif
9778 char dlopen ();
9779 int
9780 main ()
9781 {
9782 return dlopen ();
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (ac_try="$ac_link"
9789 case "(($ac_try" in
9790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791   *) ac_try_echo=$ac_try;;
9792 esac
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794   (eval "$ac_link") 2>conftest.er1
9795   ac_status=$?
9796   grep -v '^ *+' conftest.er1 >conftest.err
9797   rm -f conftest.er1
9798   cat conftest.err >&5
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); } &&
9801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9802   { (case "(($ac_try" in
9803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804   *) ac_try_echo=$ac_try;;
9805 esac
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807   (eval "$ac_try") 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; } &&
9811          { ac_try='test -s conftest$ac_exeext'
9812   { (case "(($ac_try" in
9813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814   *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817   (eval "$ac_try") 2>&5
9818   ac_status=$?
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); }; }; then
9821   ac_cv_lib_dl_dlopen=yes
9822 else
9823   echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9825
9826         ac_cv_lib_dl_dlopen=no
9827 fi
9828
9829 rm -f core conftest.err conftest.$ac_objext \
9830       conftest$ac_exeext conftest.$ac_ext
9831 LIBS=$ac_check_lib_save_LIBS
9832 fi
9833 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9834 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9835 if test $ac_cv_lib_dl_dlopen = yes; then
9836
9837 cat >>confdefs.h <<\_ACEOF
9838 #define HAVE_LIBDL 1
9839 _ACEOF
9840
9841                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9842 else
9843   cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849 #if HAVE_DLFCN_H
9850 #  include <dlfcn.h>
9851 #endif
9852
9853 int
9854 main ()
9855 {
9856 dlopen(0, 0);
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9863 case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868   (eval "$ac_link") 2>conftest.er1
9869   ac_status=$?
9870   grep -v '^ *+' conftest.er1 >conftest.err
9871   rm -f conftest.er1
9872   cat conftest.err >&5
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9876   { (case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_try") 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; } &&
9885          { ac_try='test -s conftest$ac_exeext'
9886   { (case "(($ac_try" in
9887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9888   *) ac_try_echo=$ac_try;;
9889 esac
9890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9891   (eval "$ac_try") 2>&5
9892   ac_status=$?
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); }; }; then
9895
9896 cat >>confdefs.h <<\_ACEOF
9897 #define HAVE_LIBDL 1
9898 _ACEOF
9899  libltdl_cv_func_dlopen="yes"
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9905 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9906 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9907   echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909   ac_check_lib_save_LIBS=$LIBS
9910 LIBS="-lsvld  $LIBS"
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h.  */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h.  */
9917
9918 /* Override any GCC internal prototype to avoid an error.
9919    Use char because int might match the return type of a GCC
9920    builtin and then its argument prototype would still apply.  */
9921 #ifdef __cplusplus
9922 extern "C"
9923 #endif
9924 char dlopen ();
9925 int
9926 main ()
9927 {
9928 return dlopen ();
9929   ;
9930   return 0;
9931 }
9932 _ACEOF
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (ac_try="$ac_link"
9935 case "(($ac_try" in
9936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937   *) ac_try_echo=$ac_try;;
9938 esac
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940   (eval "$ac_link") 2>conftest.er1
9941   ac_status=$?
9942   grep -v '^ *+' conftest.er1 >conftest.err
9943   rm -f conftest.er1
9944   cat conftest.err >&5
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); } &&
9947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9948   { (case "(($ac_try" in
9949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950   *) ac_try_echo=$ac_try;;
9951 esac
9952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953   (eval "$ac_try") 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; } &&
9957          { ac_try='test -s conftest$ac_exeext'
9958   { (case "(($ac_try" in
9959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960   *) ac_try_echo=$ac_try;;
9961 esac
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963   (eval "$ac_try") 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   ac_cv_lib_svld_dlopen=yes
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972         ac_cv_lib_svld_dlopen=no
9973 fi
9974
9975 rm -f core conftest.err conftest.$ac_objext \
9976       conftest$ac_exeext conftest.$ac_ext
9977 LIBS=$ac_check_lib_save_LIBS
9978 fi
9979 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9980 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9981 if test $ac_cv_lib_svld_dlopen = yes; then
9982
9983 cat >>confdefs.h <<\_ACEOF
9984 #define HAVE_LIBDL 1
9985 _ACEOF
9986
9987                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9988 else
9989   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9990 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9991 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   ac_check_lib_save_LIBS=$LIBS
9995 LIBS="-ldld  $LIBS"
9996 cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h.  */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h.  */
10002
10003 /* Override any GCC internal prototype to avoid an error.
10004    Use char because int might match the return type of a GCC
10005    builtin and then its argument prototype would still apply.  */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 char dld_link ();
10010 int
10011 main ()
10012 {
10013 return dld_link ();
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (ac_try="$ac_link"
10020 case "(($ac_try" in
10021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022   *) ac_try_echo=$ac_try;;
10023 esac
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025   (eval "$ac_link") 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10033   { (case "(($ac_try" in
10034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035   *) ac_try_echo=$ac_try;;
10036 esac
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038   (eval "$ac_try") 2>&5
10039   ac_status=$?
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); }; } &&
10042          { ac_try='test -s conftest$ac_exeext'
10043   { (case "(($ac_try" in
10044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045   *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048   (eval "$ac_try") 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; }; then
10052   ac_cv_lib_dld_dld_link=yes
10053 else
10054   echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057         ac_cv_lib_dld_dld_link=no
10058 fi
10059
10060 rm -f core conftest.err conftest.$ac_objext \
10061       conftest$ac_exeext conftest.$ac_ext
10062 LIBS=$ac_check_lib_save_LIBS
10063 fi
10064 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10065 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10066 if test $ac_cv_lib_dld_dld_link = yes; then
10067
10068 cat >>confdefs.h <<\_ACEOF
10069 #define HAVE_DLD 1
10070 _ACEOF
10071
10072                 LIBADD_DL="$LIBADD_DL -ldld"
10073 else
10074   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10075 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10076 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079   cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h.  */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h.  */
10085 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10087 #define _dyld_func_lookup innocuous__dyld_func_lookup
10088
10089 /* System header to define __stub macros and hopefully few prototypes,
10090     which can conflict with char _dyld_func_lookup (); below.
10091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10092     <limits.h> exists even on freestanding compilers.  */
10093
10094 #ifdef __STDC__
10095 # include <limits.h>
10096 #else
10097 # include <assert.h>
10098 #endif
10099
10100 #undef _dyld_func_lookup
10101
10102 /* Override any GCC internal prototype to avoid an error.
10103    Use char because int might match the return type of a GCC
10104    builtin and then its argument prototype would still apply.  */
10105 #ifdef __cplusplus
10106 extern "C"
10107 #endif
10108 char _dyld_func_lookup ();
10109 /* The GNU C library defines this for functions which it implements
10110     to always fail with ENOSYS.  Some functions are actually named
10111     something starting with __ and the normal name is an alias.  */
10112 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10113 choke me
10114 #endif
10115
10116 int
10117 main ()
10118 {
10119 return _dyld_func_lookup ();
10120   ;
10121   return 0;
10122 }
10123 _ACEOF
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (ac_try="$ac_link"
10126 case "(($ac_try" in
10127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128   *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131   (eval "$ac_link") 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } &&
10138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139   { (case "(($ac_try" in
10140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141   *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144   (eval "$ac_try") 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; } &&
10148          { ac_try='test -s conftest$ac_exeext'
10149   { (case "(($ac_try" in
10150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151   *) ac_try_echo=$ac_try;;
10152 esac
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154   (eval "$ac_try") 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; }; then
10158   ac_cv_func__dyld_func_lookup=yes
10159 else
10160   echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163         ac_cv_func__dyld_func_lookup=no
10164 fi
10165
10166 rm -f core conftest.err conftest.$ac_objext \
10167       conftest$ac_exeext conftest.$ac_ext
10168 fi
10169 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10170 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10171 if test $ac_cv_func__dyld_func_lookup = yes; then
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_DYLD 1
10175 _ACEOF
10176
10177 fi
10178
10179
10180 fi
10181
10182
10183 fi
10184
10185
10186 fi
10187
10188 rm -f core conftest.err conftest.$ac_objext \
10189       conftest$ac_exeext conftest.$ac_ext
10190
10191 fi
10192
10193
10194 fi
10195
10196
10197 fi
10198
10199
10200 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10201 then
10202   lt_save_LIBS="$LIBS"
10203   LIBS="$LIBS $LIBADD_DL"
10204
10205 for ac_func in dlerror
10206 do
10207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10211   echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213   cat >conftest.$ac_ext <<_ACEOF
10214 /* confdefs.h.  */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h.  */
10219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10221 #define $ac_func innocuous_$ac_func
10222
10223 /* System header to define __stub macros and hopefully few prototypes,
10224     which can conflict with char $ac_func (); below.
10225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10226     <limits.h> exists even on freestanding compilers.  */
10227
10228 #ifdef __STDC__
10229 # include <limits.h>
10230 #else
10231 # include <assert.h>
10232 #endif
10233
10234 #undef $ac_func
10235
10236 /* Override any GCC internal prototype to avoid an error.
10237    Use char because int might match the return type of a GCC
10238    builtin and then its argument prototype would still apply.  */
10239 #ifdef __cplusplus
10240 extern "C"
10241 #endif
10242 char $ac_func ();
10243 /* The GNU C library defines this for functions which it implements
10244     to always fail with ENOSYS.  Some functions are actually named
10245     something starting with __ and the normal name is an alias.  */
10246 #if defined __stub_$ac_func || defined __stub___$ac_func
10247 choke me
10248 #endif
10249
10250 int
10251 main ()
10252 {
10253 return $ac_func ();
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262   *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265   (eval "$ac_link") 2>conftest.er1
10266   ac_status=$?
10267   grep -v '^ *+' conftest.er1 >conftest.err
10268   rm -f conftest.er1
10269   cat conftest.err >&5
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } &&
10272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273   { (case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_try") 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; } &&
10282          { ac_try='test -s conftest$ac_exeext'
10283   { (case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288   (eval "$ac_try") 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); }; }; then
10292   eval "$as_ac_var=yes"
10293 else
10294   echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297         eval "$as_ac_var=no"
10298 fi
10299
10300 rm -f core conftest.err conftest.$ac_objext \
10301       conftest$ac_exeext conftest.$ac_ext
10302 fi
10303 ac_res=`eval echo '${'$as_ac_var'}'`
10304                { echo "$as_me:$LINENO: result: $ac_res" >&5
10305 echo "${ECHO_T}$ac_res" >&6; }
10306 if test `eval echo '${'$as_ac_var'}'` = yes; then
10307   cat >>confdefs.h <<_ACEOF
10308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10309 _ACEOF
10310
10311 fi
10312 done
10313
10314   LIBS="$lt_save_LIBS"
10315 fi
10316 ac_ext=c
10317 ac_cpp='$CPP $CPPFLAGS'
10318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10321
10322
10323
10324 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10325 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10326 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10327   echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329   ac_cv_sys_symbol_underscore=no
10330   cat > conftest.$ac_ext <<EOF
10331 void nm_test_func(){}
10332 int main(){nm_test_func;return 0;}
10333 EOF
10334   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10335   (eval $ac_compile) 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); }; then
10339     # Now try to grab the symbols.
10340     ac_nlist=conftest.nm
10341     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10342   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } && test -s "$ac_nlist"; then
10346       # See whether the symbols have a leading underscore.
10347       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10348         ac_cv_sys_symbol_underscore=yes
10349       else
10350         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10351           :
10352         else
10353           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10354         fi
10355       fi
10356     else
10357       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10358     fi
10359   else
10360     echo "configure: failed program was:" >&5
10361     cat conftest.c >&5
10362   fi
10363   rm -rf conftest*
10364
10365 fi
10366 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10367 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10368
10369
10370 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10371   if test x"$libltdl_cv_func_dlopen" = xyes ||
10372      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10373         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10374 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10375 if test "${libltdl_cv_need_uscore+set}" = set; then
10376   echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378   libltdl_cv_need_uscore=unknown
10379           save_LIBS="$LIBS"
10380           LIBS="$LIBS $LIBADD_DL"
10381           if test "$cross_compiling" = yes; then :
10382   libltdl_cv_need_uscore=cross
10383 else
10384   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10385   lt_status=$lt_dlunknown
10386   cat > conftest.$ac_ext <<EOF
10387 #line 10387 "configure"
10388 #include "confdefs.h"
10389
10390 #if HAVE_DLFCN_H
10391 #include <dlfcn.h>
10392 #endif
10393
10394 #include <stdio.h>
10395
10396 #ifdef RTLD_GLOBAL
10397 #  define LT_DLGLOBAL           RTLD_GLOBAL
10398 #else
10399 #  ifdef DL_GLOBAL
10400 #    define LT_DLGLOBAL         DL_GLOBAL
10401 #  else
10402 #    define LT_DLGLOBAL         0
10403 #  endif
10404 #endif
10405
10406 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10407    find out it does not work in some platform. */
10408 #ifndef LT_DLLAZY_OR_NOW
10409 #  ifdef RTLD_LAZY
10410 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10411 #  else
10412 #    ifdef DL_LAZY
10413 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10414 #    else
10415 #      ifdef RTLD_NOW
10416 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10417 #      else
10418 #        ifdef DL_NOW
10419 #          define LT_DLLAZY_OR_NOW      DL_NOW
10420 #        else
10421 #          define LT_DLLAZY_OR_NOW      0
10422 #        endif
10423 #      endif
10424 #    endif
10425 #  endif
10426 #endif
10427
10428 #ifdef __cplusplus
10429 extern "C" void exit (int);
10430 #endif
10431
10432 void fnord() { int i=42;}
10433 int main ()
10434 {
10435   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10436   int status = $lt_dlunknown;
10437
10438   if (self)
10439     {
10440       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10441       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10442       /* dlclose (self); */
10443     }
10444   else
10445     puts (dlerror ());
10446
10447     exit (status);
10448 }
10449 EOF
10450   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10451   (eval $ac_link) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10455     (./conftest; exit; ) >&5 2>/dev/null
10456     lt_status=$?
10457     case x$lt_status in
10458       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10459       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10460       x$lt_dlunknown|x*)  ;;
10461     esac
10462   else :
10463     # compilation failed
10464
10465   fi
10466 fi
10467 rm -fr conftest*
10468
10469           LIBS="$save_LIBS"
10470
10471 fi
10472 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10473 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10474   fi
10475 fi
10476
10477 if test x"$libltdl_cv_need_uscore" = xyes; then
10478
10479 cat >>confdefs.h <<\_ACEOF
10480 #define NEED_USCORE 1
10481 _ACEOF
10482
10483 fi
10484
10485
10486 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10487 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10488 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10489   echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491   # PORTME does your system automatically load deplibs for dlopen?
10492   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10493   # For now, we just catch OSes we know something about -- in the
10494   # future, we'll try test this programmatically.
10495   libltdl_cv_sys_dlopen_deplibs=unknown
10496   case "$host_os" in
10497   aix3*|aix4.1.*|aix4.2.*)
10498     # Unknown whether this is true for these versions of AIX, but
10499     # we want this `case' here to explicitly catch those versions.
10500     libltdl_cv_sys_dlopen_deplibs=unknown
10501     ;;
10502   aix[45]*)
10503     libltdl_cv_sys_dlopen_deplibs=yes
10504     ;;
10505   darwin*)
10506     # Assuming the user has installed a libdl from somewhere, this is true
10507     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10508     libltdl_cv_sys_dlopen_deplibs=yes
10509     ;;
10510   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10511     # GNU and its variants, using gnu ld.so (Glibc)
10512     libltdl_cv_sys_dlopen_deplibs=yes
10513     ;;
10514   hpux10*|hpux11*)
10515     libltdl_cv_sys_dlopen_deplibs=yes
10516     ;;
10517   interix*)
10518     libltdl_cv_sys_dlopen_deplibs=yes
10519     ;;
10520   irix[12345]*|irix6.[01]*)
10521     # Catch all versions of IRIX before 6.2, and indicate that we don't
10522     # know how it worked for any of those versions.
10523     libltdl_cv_sys_dlopen_deplibs=unknown
10524     ;;
10525   irix*)
10526     # The case above catches anything before 6.2, and it's known that
10527     # at 6.2 and later dlopen does load deplibs.
10528     libltdl_cv_sys_dlopen_deplibs=yes
10529     ;;
10530   netbsd*)
10531     libltdl_cv_sys_dlopen_deplibs=yes
10532     ;;
10533   openbsd*)
10534     libltdl_cv_sys_dlopen_deplibs=yes
10535     ;;
10536   osf[1234]*)
10537     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10538     # it did *not* use an RPATH in a shared library to find objects the
10539     # library depends on, so we explicitly say `no'.
10540     libltdl_cv_sys_dlopen_deplibs=no
10541     ;;
10542   osf5.0|osf5.0a|osf5.1)
10543     # dlopen *does* load deplibs and with the right loader patch applied
10544     # it even uses RPATH in a shared library to search for shared objects
10545     # that the library depends on, but there's no easy way to know if that
10546     # patch is installed.  Since this is the case, all we can really
10547     # say is unknown -- it depends on the patch being installed.  If
10548     # it is, this changes to `yes'.  Without it, it would be `no'.
10549     libltdl_cv_sys_dlopen_deplibs=unknown
10550     ;;
10551   osf*)
10552     # the two cases above should catch all versions of osf <= 5.1.  Read
10553     # the comments above for what we know about them.
10554     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10555     # is used to find them so we can finally say `yes'.
10556     libltdl_cv_sys_dlopen_deplibs=yes
10557     ;;
10558   solaris*)
10559     libltdl_cv_sys_dlopen_deplibs=yes
10560     ;;
10561   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10562     libltdl_cv_sys_dlopen_deplibs=yes
10563     ;;
10564   esac
10565
10566 fi
10567 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10568 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10569 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10570
10571 cat >>confdefs.h <<\_ACEOF
10572 #define LTDL_DLOPEN_DEPLIBS 1
10573 _ACEOF
10574
10575 fi
10576
10577
10578 for ac_header in argz.h
10579 do
10580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10582   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10585   echo $ECHO_N "(cached) $ECHO_C" >&6
10586 fi
10587 ac_res=`eval echo '${'$as_ac_Header'}'`
10588                { echo "$as_me:$LINENO: result: $ac_res" >&5
10589 echo "${ECHO_T}$ac_res" >&6; }
10590 else
10591   # Is the header compilable?
10592 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10594 cat >conftest.$ac_ext <<_ACEOF
10595 /* confdefs.h.  */
10596 _ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h.  */
10600 $ac_includes_default
10601 #include <$ac_header>
10602 _ACEOF
10603 rm -f conftest.$ac_objext
10604 if { (ac_try="$ac_compile"
10605 case "(($ac_try" in
10606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607   *) ac_try_echo=$ac_try;;
10608 esac
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610   (eval "$ac_compile") 2>conftest.er1
10611   ac_status=$?
10612   grep -v '^ *+' conftest.er1 >conftest.err
10613   rm -f conftest.er1
10614   cat conftest.err >&5
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } &&
10617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10618   { (case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623   (eval "$ac_try") 2>&5
10624   ac_status=$?
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); }; } &&
10627          { ac_try='test -s conftest.$ac_objext'
10628   { (case "(($ac_try" in
10629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630   *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633   (eval "$ac_try") 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; }; then
10637   ac_header_compiler=yes
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642         ac_header_compiler=no
10643 fi
10644
10645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10647 echo "${ECHO_T}$ac_header_compiler" >&6; }
10648
10649 # Is the header present?
10650 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10652 cat >conftest.$ac_ext <<_ACEOF
10653 /* confdefs.h.  */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h.  */
10658 #include <$ac_header>
10659 _ACEOF
10660 if { (ac_try="$ac_cpp conftest.$ac_ext"
10661 case "(($ac_try" in
10662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663   *) ac_try_echo=$ac_try;;
10664 esac
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } >/dev/null; then
10673   if test -s conftest.err; then
10674     ac_cpp_err=$ac_c_preproc_warn_flag
10675     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10676   else
10677     ac_cpp_err=
10678   fi
10679 else
10680   ac_cpp_err=yes
10681 fi
10682 if test -z "$ac_cpp_err"; then
10683   ac_header_preproc=yes
10684 else
10685   echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688   ac_header_preproc=no
10689 fi
10690
10691 rm -f conftest.err conftest.$ac_ext
10692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10693 echo "${ECHO_T}$ac_header_preproc" >&6; }
10694
10695 # So?  What about this header?
10696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10697   yes:no: )
10698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10702     ac_header_preproc=yes
10703     ;;
10704   no:yes:* )
10705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10707     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10708 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10709     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10711     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10712 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10715     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10717     ( cat <<\_ASBOX
10718 ## ------------------------------------ ##
10719 ## Report this to http://llvm.org/bugs/ ##
10720 ## ------------------------------------ ##
10721 _ASBOX
10722      ) | sed "s/^/$as_me: WARNING:     /" >&2
10723     ;;
10724 esac
10725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10728   echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730   eval "$as_ac_Header=\$ac_header_preproc"
10731 fi
10732 ac_res=`eval echo '${'$as_ac_Header'}'`
10733                { echo "$as_me:$LINENO: result: $ac_res" >&5
10734 echo "${ECHO_T}$ac_res" >&6; }
10735
10736 fi
10737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10738   cat >>confdefs.h <<_ACEOF
10739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10740 _ACEOF
10741
10742 fi
10743
10744 done
10745
10746
10747 { echo "$as_me:$LINENO: checking for error_t" >&5
10748 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10749 if test "${ac_cv_type_error_t+set}" = set; then
10750   echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752   cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758 #if HAVE_ARGZ_H
10759 #  include <argz.h>
10760 #endif
10761
10762 typedef error_t ac__type_new_;
10763 int
10764 main ()
10765 {
10766 if ((ac__type_new_ *) 0)
10767   return 0;
10768 if (sizeof (ac__type_new_))
10769   return 0;
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext
10775 if { (ac_try="$ac_compile"
10776 case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781   (eval "$ac_compile") 2>conftest.er1
10782   ac_status=$?
10783   grep -v '^ *+' conftest.er1 >conftest.err
10784   rm -f conftest.er1
10785   cat conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789   { (case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794   (eval "$ac_try") 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; } &&
10798          { ac_try='test -s conftest.$ac_objext'
10799   { (case "(($ac_try" in
10800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801   *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804   (eval "$ac_try") 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   ac_cv_type_error_t=yes
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813         ac_cv_type_error_t=no
10814 fi
10815
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 fi
10818 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10819 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10820 if test $ac_cv_type_error_t = yes; then
10821
10822 cat >>confdefs.h <<_ACEOF
10823 #define HAVE_ERROR_T 1
10824 _ACEOF
10825
10826
10827 else
10828
10829 cat >>confdefs.h <<\_ACEOF
10830 #define error_t int
10831 _ACEOF
10832
10833 fi
10834
10835
10836
10837
10838
10839
10840
10841 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10842 do
10843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10847   echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849   cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h.  */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h.  */
10855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10857 #define $ac_func innocuous_$ac_func
10858
10859 /* System header to define __stub macros and hopefully few prototypes,
10860     which can conflict with char $ac_func (); below.
10861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10862     <limits.h> exists even on freestanding compilers.  */
10863
10864 #ifdef __STDC__
10865 # include <limits.h>
10866 #else
10867 # include <assert.h>
10868 #endif
10869
10870 #undef $ac_func
10871
10872 /* Override any GCC internal prototype to avoid an error.
10873    Use char because int might match the return type of a GCC
10874    builtin and then its argument prototype would still apply.  */
10875 #ifdef __cplusplus
10876 extern "C"
10877 #endif
10878 char $ac_func ();
10879 /* The GNU C library defines this for functions which it implements
10880     to always fail with ENOSYS.  Some functions are actually named
10881     something starting with __ and the normal name is an alias.  */
10882 #if defined __stub_$ac_func || defined __stub___$ac_func
10883 choke me
10884 #endif
10885
10886 int
10887 main ()
10888 {
10889 return $ac_func ();
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (ac_try="$ac_link"
10896 case "(($ac_try" in
10897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898   *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901   (eval "$ac_link") 2>conftest.er1
10902   ac_status=$?
10903   grep -v '^ *+' conftest.er1 >conftest.err
10904   rm -f conftest.er1
10905   cat conftest.err >&5
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); } &&
10908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10909   { (case "(($ac_try" in
10910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911   *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914   (eval "$ac_try") 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); }; } &&
10918          { ac_try='test -s conftest$ac_exeext'
10919   { (case "(($ac_try" in
10920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921   *) ac_try_echo=$ac_try;;
10922 esac
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924   (eval "$ac_try") 2>&5
10925   ac_status=$?
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); }; }; then
10928   eval "$as_ac_var=yes"
10929 else
10930   echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10932
10933         eval "$as_ac_var=no"
10934 fi
10935
10936 rm -f core conftest.err conftest.$ac_objext \
10937       conftest$ac_exeext conftest.$ac_ext
10938 fi
10939 ac_res=`eval echo '${'$as_ac_var'}'`
10940                { echo "$as_me:$LINENO: result: $ac_res" >&5
10941 echo "${ECHO_T}$ac_res" >&6; }
10942 if test `eval echo '${'$as_ac_var'}'` = yes; then
10943   cat >>confdefs.h <<_ACEOF
10944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10945 _ACEOF
10946
10947 fi
10948 done
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10978                   stdio.h unistd.h
10979 do
10980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10982   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10985   echo $ECHO_N "(cached) $ECHO_C" >&6
10986 fi
10987 ac_res=`eval echo '${'$as_ac_Header'}'`
10988                { echo "$as_me:$LINENO: result: $ac_res" >&5
10989 echo "${ECHO_T}$ac_res" >&6; }
10990 else
10991   # Is the header compilable?
10992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 $ac_includes_default
11001 #include <$ac_header>
11002 _ACEOF
11003 rm -f conftest.$ac_objext
11004 if { (ac_try="$ac_compile"
11005 case "(($ac_try" in
11006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007   *) ac_try_echo=$ac_try;;
11008 esac
11009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010   (eval "$ac_compile") 2>conftest.er1
11011   ac_status=$?
11012   grep -v '^ *+' conftest.er1 >conftest.err
11013   rm -f conftest.er1
11014   cat conftest.err >&5
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } &&
11017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11018   { (case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023   (eval "$ac_try") 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; } &&
11027          { ac_try='test -s conftest.$ac_objext'
11028   { (case "(($ac_try" in
11029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030   *) ac_try_echo=$ac_try;;
11031 esac
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033   (eval "$ac_try") 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); }; }; then
11037   ac_header_compiler=yes
11038 else
11039   echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042         ac_header_compiler=no
11043 fi
11044
11045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11047 echo "${ECHO_T}$ac_header_compiler" >&6; }
11048
11049 # Is the header present?
11050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h.  */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h.  */
11058 #include <$ac_header>
11059 _ACEOF
11060 if { (ac_try="$ac_cpp conftest.$ac_ext"
11061 case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11067   ac_status=$?
11068   grep -v '^ *+' conftest.er1 >conftest.err
11069   rm -f conftest.er1
11070   cat conftest.err >&5
11071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); } >/dev/null; then
11073   if test -s conftest.err; then
11074     ac_cpp_err=$ac_c_preproc_warn_flag
11075     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11076   else
11077     ac_cpp_err=
11078   fi
11079 else
11080   ac_cpp_err=yes
11081 fi
11082 if test -z "$ac_cpp_err"; then
11083   ac_header_preproc=yes
11084 else
11085   echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088   ac_header_preproc=no
11089 fi
11090
11091 rm -f conftest.err conftest.$ac_ext
11092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11093 echo "${ECHO_T}$ac_header_preproc" >&6; }
11094
11095 # So?  What about this header?
11096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11097   yes:no: )
11098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11102     ac_header_preproc=yes
11103     ;;
11104   no:yes:* )
11105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11117     ( cat <<\_ASBOX
11118 ## ------------------------------------ ##
11119 ## Report this to http://llvm.org/bugs/ ##
11120 ## ------------------------------------ ##
11121 _ASBOX
11122      ) | sed "s/^/$as_me: WARNING:     /" >&2
11123     ;;
11124 esac
11125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11128   echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130   eval "$as_ac_Header=\$ac_header_preproc"
11131 fi
11132 ac_res=`eval echo '${'$as_ac_Header'}'`
11133                { echo "$as_me:$LINENO: result: $ac_res" >&5
11134 echo "${ECHO_T}$ac_res" >&6; }
11135
11136 fi
11137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11138   cat >>confdefs.h <<_ACEOF
11139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11140 _ACEOF
11141
11142 fi
11143
11144 done
11145
11146
11147
11148
11149
11150 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11151 do
11152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 fi
11159 ac_res=`eval echo '${'$as_ac_Header'}'`
11160                { echo "$as_me:$LINENO: result: $ac_res" >&5
11161 echo "${ECHO_T}$ac_res" >&6; }
11162 else
11163   # Is the header compilable?
11164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11166 cat >conftest.$ac_ext <<_ACEOF
11167 /* confdefs.h.  */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h.  */
11172 $ac_includes_default
11173 #include <$ac_header>
11174 _ACEOF
11175 rm -f conftest.$ac_objext
11176 if { (ac_try="$ac_compile"
11177 case "(($ac_try" in
11178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179   *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182   (eval "$ac_compile") 2>conftest.er1
11183   ac_status=$?
11184   grep -v '^ *+' conftest.er1 >conftest.err
11185   rm -f conftest.er1
11186   cat conftest.err >&5
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } &&
11189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11190   { (case "(($ac_try" in
11191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192   *) ac_try_echo=$ac_try;;
11193 esac
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195   (eval "$ac_try") 2>&5
11196   ac_status=$?
11197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198   (exit $ac_status); }; } &&
11199          { ac_try='test -s conftest.$ac_objext'
11200   { (case "(($ac_try" in
11201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202   *) ac_try_echo=$ac_try;;
11203 esac
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205   (eval "$ac_try") 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); }; }; then
11209   ac_header_compiler=yes
11210 else
11211   echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214         ac_header_compiler=no
11215 fi
11216
11217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11219 echo "${ECHO_T}$ac_header_compiler" >&6; }
11220
11221 # Is the header present?
11222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11224 cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h.  */
11226 _ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h.  */
11230 #include <$ac_header>
11231 _ACEOF
11232 if { (ac_try="$ac_cpp conftest.$ac_ext"
11233 case "(($ac_try" in
11234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235   *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11239   ac_status=$?
11240   grep -v '^ *+' conftest.er1 >conftest.err
11241   rm -f conftest.er1
11242   cat conftest.err >&5
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); } >/dev/null; then
11245   if test -s conftest.err; then
11246     ac_cpp_err=$ac_c_preproc_warn_flag
11247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11248   else
11249     ac_cpp_err=
11250   fi
11251 else
11252   ac_cpp_err=yes
11253 fi
11254 if test -z "$ac_cpp_err"; then
11255   ac_header_preproc=yes
11256 else
11257   echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11259
11260   ac_header_preproc=no
11261 fi
11262
11263 rm -f conftest.err conftest.$ac_ext
11264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11265 echo "${ECHO_T}$ac_header_preproc" >&6; }
11266
11267 # So?  What about this header?
11268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11269   yes:no: )
11270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11274     ac_header_preproc=yes
11275     ;;
11276   no:yes:* )
11277     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11279     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11280 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11281     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11283     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11284 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11287     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11289     ( cat <<\_ASBOX
11290 ## ------------------------------------ ##
11291 ## Report this to http://llvm.org/bugs/ ##
11292 ## ------------------------------------ ##
11293 _ASBOX
11294      ) | sed "s/^/$as_me: WARNING:     /" >&2
11295     ;;
11296 esac
11297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   eval "$as_ac_Header=\$ac_header_preproc"
11303 fi
11304 ac_res=`eval echo '${'$as_ac_Header'}'`
11305                { echo "$as_me:$LINENO: result: $ac_res" >&5
11306 echo "${ECHO_T}$ac_res" >&6; }
11307
11308 fi
11309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11310   cat >>confdefs.h <<_ACEOF
11311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11312 _ACEOF
11313
11314 fi
11315
11316 done
11317
11318
11319
11320 for ac_header in string.h strings.h
11321 do
11322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11327   echo $ECHO_N "(cached) $ECHO_C" >&6
11328 fi
11329 ac_res=`eval echo '${'$as_ac_Header'}'`
11330                { echo "$as_me:$LINENO: result: $ac_res" >&5
11331 echo "${ECHO_T}$ac_res" >&6; }
11332 else
11333   # Is the header compilable?
11334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h.  */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h.  */
11342 $ac_includes_default
11343 #include <$ac_header>
11344 _ACEOF
11345 rm -f conftest.$ac_objext
11346 if { (ac_try="$ac_compile"
11347 case "(($ac_try" in
11348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349   *) ac_try_echo=$ac_try;;
11350 esac
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352   (eval "$ac_compile") 2>conftest.er1
11353   ac_status=$?
11354   grep -v '^ *+' conftest.er1 >conftest.err
11355   rm -f conftest.er1
11356   cat conftest.err >&5
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); } &&
11359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11360   { (case "(($ac_try" in
11361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362   *) ac_try_echo=$ac_try;;
11363 esac
11364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365   (eval "$ac_try") 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; } &&
11369          { ac_try='test -s conftest.$ac_objext'
11370   { (case "(($ac_try" in
11371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372   *) ac_try_echo=$ac_try;;
11373 esac
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375   (eval "$ac_try") 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; }; then
11379   ac_header_compiler=yes
11380 else
11381   echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384         ac_header_compiler=no
11385 fi
11386
11387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11389 echo "${ECHO_T}$ac_header_compiler" >&6; }
11390
11391 # Is the header present?
11392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h.  */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h.  */
11400 #include <$ac_header>
11401 _ACEOF
11402 if { (ac_try="$ac_cpp conftest.$ac_ext"
11403 case "(($ac_try" in
11404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405   *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11409   ac_status=$?
11410   grep -v '^ *+' conftest.er1 >conftest.err
11411   rm -f conftest.er1
11412   cat conftest.err >&5
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } >/dev/null; then
11415   if test -s conftest.err; then
11416     ac_cpp_err=$ac_c_preproc_warn_flag
11417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11418   else
11419     ac_cpp_err=
11420   fi
11421 else
11422   ac_cpp_err=yes
11423 fi
11424 if test -z "$ac_cpp_err"; then
11425   ac_header_preproc=yes
11426 else
11427   echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430   ac_header_preproc=no
11431 fi
11432
11433 rm -f conftest.err conftest.$ac_ext
11434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11435 echo "${ECHO_T}$ac_header_preproc" >&6; }
11436
11437 # So?  What about this header?
11438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11439   yes:no: )
11440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11444     ac_header_preproc=yes
11445     ;;
11446   no:yes:* )
11447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11459     ( cat <<\_ASBOX
11460 ## ------------------------------------ ##
11461 ## Report this to http://llvm.org/bugs/ ##
11462 ## ------------------------------------ ##
11463 _ASBOX
11464      ) | sed "s/^/$as_me: WARNING:     /" >&2
11465     ;;
11466 esac
11467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472   eval "$as_ac_Header=\$ac_header_preproc"
11473 fi
11474 ac_res=`eval echo '${'$as_ac_Header'}'`
11475                { echo "$as_me:$LINENO: result: $ac_res" >&5
11476 echo "${ECHO_T}$ac_res" >&6; }
11477
11478 fi
11479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11480   cat >>confdefs.h <<_ACEOF
11481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11482 _ACEOF
11483  break
11484 fi
11485
11486 done
11487
11488
11489
11490
11491 for ac_func in strchr index
11492 do
11493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11497   echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499   cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h.  */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h.  */
11505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11506    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11507 #define $ac_func innocuous_$ac_func
11508
11509 /* System header to define __stub macros and hopefully few prototypes,
11510     which can conflict with char $ac_func (); below.
11511     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11512     <limits.h> exists even on freestanding compilers.  */
11513
11514 #ifdef __STDC__
11515 # include <limits.h>
11516 #else
11517 # include <assert.h>
11518 #endif
11519
11520 #undef $ac_func
11521
11522 /* Override any GCC internal prototype to avoid an error.
11523    Use char because int might match the return type of a GCC
11524    builtin and then its argument prototype would still apply.  */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char $ac_func ();
11529 /* The GNU C library defines this for functions which it implements
11530     to always fail with ENOSYS.  Some functions are actually named
11531     something starting with __ and the normal name is an alias.  */
11532 #if defined __stub_$ac_func || defined __stub___$ac_func
11533 choke me
11534 #endif
11535
11536 int
11537 main ()
11538 {
11539 return $ac_func ();
11540   ;
11541   return 0;
11542 }
11543 _ACEOF
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (ac_try="$ac_link"
11546 case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551   (eval "$ac_link") 2>conftest.er1
11552   ac_status=$?
11553   grep -v '^ *+' conftest.er1 >conftest.err
11554   rm -f conftest.er1
11555   cat conftest.err >&5
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); } &&
11558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11559   { (case "(($ac_try" in
11560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561   *) ac_try_echo=$ac_try;;
11562 esac
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564   (eval "$ac_try") 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; } &&
11568          { ac_try='test -s conftest$ac_exeext'
11569   { (case "(($ac_try" in
11570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571   *) ac_try_echo=$ac_try;;
11572 esac
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574   (eval "$ac_try") 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); }; }; then
11578   eval "$as_ac_var=yes"
11579 else
11580   echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583         eval "$as_ac_var=no"
11584 fi
11585
11586 rm -f core conftest.err conftest.$ac_objext \
11587       conftest$ac_exeext conftest.$ac_ext
11588 fi
11589 ac_res=`eval echo '${'$as_ac_var'}'`
11590                { echo "$as_me:$LINENO: result: $ac_res" >&5
11591 echo "${ECHO_T}$ac_res" >&6; }
11592 if test `eval echo '${'$as_ac_var'}'` = yes; then
11593   cat >>confdefs.h <<_ACEOF
11594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11595 _ACEOF
11596  break
11597 fi
11598 done
11599
11600
11601
11602 for ac_func in strrchr rindex
11603 do
11604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11608   echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610   cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h.  */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h.  */
11616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11618 #define $ac_func innocuous_$ac_func
11619
11620 /* System header to define __stub macros and hopefully few prototypes,
11621     which can conflict with char $ac_func (); below.
11622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11623     <limits.h> exists even on freestanding compilers.  */
11624
11625 #ifdef __STDC__
11626 # include <limits.h>
11627 #else
11628 # include <assert.h>
11629 #endif
11630
11631 #undef $ac_func
11632
11633 /* Override any GCC internal prototype to avoid an error.
11634    Use char because int might match the return type of a GCC
11635    builtin and then its argument prototype would still apply.  */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char $ac_func ();
11640 /* The GNU C library defines this for functions which it implements
11641     to always fail with ENOSYS.  Some functions are actually named
11642     something starting with __ and the normal name is an alias.  */
11643 #if defined __stub_$ac_func || defined __stub___$ac_func
11644 choke me
11645 #endif
11646
11647 int
11648 main ()
11649 {
11650 return $ac_func ();
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (ac_try="$ac_link"
11657 case "(($ac_try" in
11658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659   *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662   (eval "$ac_link") 2>conftest.er1
11663   ac_status=$?
11664   grep -v '^ *+' conftest.er1 >conftest.err
11665   rm -f conftest.er1
11666   cat conftest.err >&5
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); } &&
11669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11670   { (case "(($ac_try" in
11671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672   *) ac_try_echo=$ac_try;;
11673 esac
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675   (eval "$ac_try") 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; } &&
11679          { ac_try='test -s conftest$ac_exeext'
11680   { (case "(($ac_try" in
11681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682   *) ac_try_echo=$ac_try;;
11683 esac
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685   (eval "$ac_try") 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; }; then
11689   eval "$as_ac_var=yes"
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694         eval "$as_ac_var=no"
11695 fi
11696
11697 rm -f core conftest.err conftest.$ac_objext \
11698       conftest$ac_exeext conftest.$ac_ext
11699 fi
11700 ac_res=`eval echo '${'$as_ac_var'}'`
11701                { echo "$as_me:$LINENO: result: $ac_res" >&5
11702 echo "${ECHO_T}$ac_res" >&6; }
11703 if test `eval echo '${'$as_ac_var'}'` = yes; then
11704   cat >>confdefs.h <<_ACEOF
11705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11706 _ACEOF
11707  break
11708 fi
11709 done
11710
11711
11712
11713 for ac_func in memcpy bcopy
11714 do
11715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h.  */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h.  */
11727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11729 #define $ac_func innocuous_$ac_func
11730
11731 /* System header to define __stub macros and hopefully few prototypes,
11732     which can conflict with char $ac_func (); below.
11733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11734     <limits.h> exists even on freestanding compilers.  */
11735
11736 #ifdef __STDC__
11737 # include <limits.h>
11738 #else
11739 # include <assert.h>
11740 #endif
11741
11742 #undef $ac_func
11743
11744 /* Override any GCC internal prototype to avoid an error.
11745    Use char because int might match the return type of a GCC
11746    builtin and then its argument prototype would still apply.  */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char $ac_func ();
11751 /* The GNU C library defines this for functions which it implements
11752     to always fail with ENOSYS.  Some functions are actually named
11753     something starting with __ and the normal name is an alias.  */
11754 #if defined __stub_$ac_func || defined __stub___$ac_func
11755 choke me
11756 #endif
11757
11758 int
11759 main ()
11760 {
11761 return $ac_func ();
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (ac_try="$ac_link"
11768 case "(($ac_try" in
11769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770   *) ac_try_echo=$ac_try;;
11771 esac
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773   (eval "$ac_link") 2>conftest.er1
11774   ac_status=$?
11775   grep -v '^ *+' conftest.er1 >conftest.err
11776   rm -f conftest.er1
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } &&
11780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11781   { (case "(($ac_try" in
11782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783   *) ac_try_echo=$ac_try;;
11784 esac
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786   (eval "$ac_try") 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; } &&
11790          { ac_try='test -s conftest$ac_exeext'
11791   { (case "(($ac_try" in
11792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793   *) ac_try_echo=$ac_try;;
11794 esac
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796   (eval "$ac_try") 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; }; then
11800   eval "$as_ac_var=yes"
11801 else
11802   echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805         eval "$as_ac_var=no"
11806 fi
11807
11808 rm -f core conftest.err conftest.$ac_objext \
11809       conftest$ac_exeext conftest.$ac_ext
11810 fi
11811 ac_res=`eval echo '${'$as_ac_var'}'`
11812                { echo "$as_me:$LINENO: result: $ac_res" >&5
11813 echo "${ECHO_T}$ac_res" >&6; }
11814 if test `eval echo '${'$as_ac_var'}'` = yes; then
11815   cat >>confdefs.h <<_ACEOF
11816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11817 _ACEOF
11818  break
11819 fi
11820 done
11821
11822
11823
11824 for ac_func in memmove strcmp
11825 do
11826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11830   echo $ECHO_N "(cached) $ECHO_C" >&6
11831 else
11832   cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h.  */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h.  */
11838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11840 #define $ac_func innocuous_$ac_func
11841
11842 /* System header to define __stub macros and hopefully few prototypes,
11843     which can conflict with char $ac_func (); below.
11844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11845     <limits.h> exists even on freestanding compilers.  */
11846
11847 #ifdef __STDC__
11848 # include <limits.h>
11849 #else
11850 # include <assert.h>
11851 #endif
11852
11853 #undef $ac_func
11854
11855 /* Override any GCC internal prototype to avoid an error.
11856    Use char because int might match the return type of a GCC
11857    builtin and then its argument prototype would still apply.  */
11858 #ifdef __cplusplus
11859 extern "C"
11860 #endif
11861 char $ac_func ();
11862 /* The GNU C library defines this for functions which it implements
11863     to always fail with ENOSYS.  Some functions are actually named
11864     something starting with __ and the normal name is an alias.  */
11865 #if defined __stub_$ac_func || defined __stub___$ac_func
11866 choke me
11867 #endif
11868
11869 int
11870 main ()
11871 {
11872 return $ac_func ();
11873   ;
11874   return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (ac_try="$ac_link"
11879 case "(($ac_try" in
11880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881   *) ac_try_echo=$ac_try;;
11882 esac
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884   (eval "$ac_link") 2>conftest.er1
11885   ac_status=$?
11886   grep -v '^ *+' conftest.er1 >conftest.err
11887   rm -f conftest.er1
11888   cat conftest.err >&5
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } &&
11891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11892   { (case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_try") 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; } &&
11901          { ac_try='test -s conftest$ac_exeext'
11902   { (case "(($ac_try" in
11903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904   *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907   (eval "$ac_try") 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; }; then
11911   eval "$as_ac_var=yes"
11912 else
11913   echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916         eval "$as_ac_var=no"
11917 fi
11918
11919 rm -f core conftest.err conftest.$ac_objext \
11920       conftest$ac_exeext conftest.$ac_ext
11921 fi
11922 ac_res=`eval echo '${'$as_ac_var'}'`
11923                { echo "$as_me:$LINENO: result: $ac_res" >&5
11924 echo "${ECHO_T}$ac_res" >&6; }
11925 if test `eval echo '${'$as_ac_var'}'` = yes; then
11926   cat >>confdefs.h <<_ACEOF
11927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11928 _ACEOF
11929
11930 fi
11931 done
11932
11933
11934
11935
11936 for ac_func in closedir opendir readdir
11937 do
11938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11942   echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944   cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h.  */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h.  */
11950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11952 #define $ac_func innocuous_$ac_func
11953
11954 /* System header to define __stub macros and hopefully few prototypes,
11955     which can conflict with char $ac_func (); below.
11956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11957     <limits.h> exists even on freestanding compilers.  */
11958
11959 #ifdef __STDC__
11960 # include <limits.h>
11961 #else
11962 # include <assert.h>
11963 #endif
11964
11965 #undef $ac_func
11966
11967 /* Override any GCC internal prototype to avoid an error.
11968    Use char because int might match the return type of a GCC
11969    builtin and then its argument prototype would still apply.  */
11970 #ifdef __cplusplus
11971 extern "C"
11972 #endif
11973 char $ac_func ();
11974 /* The GNU C library defines this for functions which it implements
11975     to always fail with ENOSYS.  Some functions are actually named
11976     something starting with __ and the normal name is an alias.  */
11977 #if defined __stub_$ac_func || defined __stub___$ac_func
11978 choke me
11979 #endif
11980
11981 int
11982 main ()
11983 {
11984 return $ac_func ();
11985   ;
11986   return 0;
11987 }
11988 _ACEOF
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (ac_try="$ac_link"
11991 case "(($ac_try" in
11992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993   *) ac_try_echo=$ac_try;;
11994 esac
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996   (eval "$ac_link") 2>conftest.er1
11997   ac_status=$?
11998   grep -v '^ *+' conftest.er1 >conftest.err
11999   rm -f conftest.er1
12000   cat conftest.err >&5
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); } &&
12003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12004   { (case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009   (eval "$ac_try") 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); }; } &&
12013          { ac_try='test -s conftest$ac_exeext'
12014   { (case "(($ac_try" in
12015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016   *) ac_try_echo=$ac_try;;
12017 esac
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019   (eval "$ac_try") 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); }; }; then
12023   eval "$as_ac_var=yes"
12024 else
12025   echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028         eval "$as_ac_var=no"
12029 fi
12030
12031 rm -f core conftest.err conftest.$ac_objext \
12032       conftest$ac_exeext conftest.$ac_ext
12033 fi
12034 ac_res=`eval echo '${'$as_ac_var'}'`
12035                { echo "$as_me:$LINENO: result: $ac_res" >&5
12036 echo "${ECHO_T}$ac_res" >&6; }
12037 if test `eval echo '${'$as_ac_var'}'` = yes; then
12038   cat >>confdefs.h <<_ACEOF
12039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12040 _ACEOF
12041
12042 fi
12043 done
12044
12045
12046
12047 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12048 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12049
12050 ICC=no
12051 IXX=no
12052 case $CC in
12053   icc*|icpc*)
12054     ICC=yes
12055     IXX=yes
12056     ;;
12057    *)
12058     ;;
12059 esac
12060
12061 if test "$GCC" != "yes" && test "$ICC" != "yes"
12062 then
12063   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12064 echo "$as_me: error: gcc|icc required but not found" >&2;}
12065    { (exit 1); exit 1; }; }
12066 fi
12067
12068 if test "$GXX" != "yes" && test "$IXX" != "yes"
12069 then
12070   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12071 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12072    { (exit 1); exit 1; }; }
12073 fi
12074
12075 if test "$GCC" = "yes"
12076 then
12077   cat >conftest.$ac_ext <<_ACEOF
12078 #if !defined(__GNUC__) || __GNUC__ < 3
12079 #error Unsupported GCC version
12080 #endif
12081
12082 _ACEOF
12083 rm -f conftest.$ac_objext
12084 if { (ac_try="$ac_compile"
12085 case "(($ac_try" in
12086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087   *) ac_try_echo=$ac_try;;
12088 esac
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090   (eval "$ac_compile") 2>conftest.er1
12091   ac_status=$?
12092   grep -v '^ *+' conftest.er1 >conftest.err
12093   rm -f conftest.er1
12094   cat conftest.err >&5
12095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096   (exit $ac_status); } &&
12097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12098   { (case "(($ac_try" in
12099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100   *) ac_try_echo=$ac_try;;
12101 esac
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103   (eval "$ac_try") 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; } &&
12107          { ac_try='test -s conftest.$ac_objext'
12108   { (case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113   (eval "$ac_try") 2>&5
12114   ac_status=$?
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); }; }; then
12117   :
12118 else
12119   echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12121
12122         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12123 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12124    { (exit 1); exit 1; }; }
12125 fi
12126
12127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12128 fi
12129
12130 if test -z "$llvm_cv_gnu_make_command"
12131 then
12132   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12133 echo "$as_me: error: GNU Make required but not found" >&2;}
12134    { (exit 1); exit 1; }; }
12135 fi
12136
12137 { echo "$as_me:$LINENO: result: ok" >&5
12138 echo "${ECHO_T}ok" >&6; }
12139
12140 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12141 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12142 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12143
12144 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12145
12146 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12147
12148 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12149 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12150
12151
12152
12153 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12154 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12155 if test "${ac_cv_lib_m_sin+set}" = set; then
12156   echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158   ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lm  $LIBS"
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h.  */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h.  */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168    Use char because int might match the return type of a GCC
12169    builtin and then its argument prototype would still apply.  */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char sin ();
12174 int
12175 main ()
12176 {
12177 return sin ();
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186   *) ac_try_echo=$ac_try;;
12187 esac
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189   (eval "$ac_link") 2>conftest.er1
12190   ac_status=$?
12191   grep -v '^ *+' conftest.er1 >conftest.err
12192   rm -f conftest.er1
12193   cat conftest.err >&5
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } &&
12196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12197   { (case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_try") 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; } &&
12206          { ac_try='test -s conftest$ac_exeext'
12207   { (case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_try") 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }; }; then
12216   ac_cv_lib_m_sin=yes
12217 else
12218   echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12220
12221         ac_cv_lib_m_sin=no
12222 fi
12223
12224 rm -f core conftest.err conftest.$ac_objext \
12225       conftest$ac_exeext conftest.$ac_ext
12226 LIBS=$ac_check_lib_save_LIBS
12227 fi
12228 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12229 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12230 if test $ac_cv_lib_m_sin = yes; then
12231   cat >>confdefs.h <<_ACEOF
12232 #define HAVE_LIBM 1
12233 _ACEOF
12234
12235   LIBS="-lm $LIBS"
12236
12237 fi
12238
12239 if test "$llvm_cv_os_type" = "MingW" ; then
12240
12241 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12242 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12243 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246   ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-limagehlp  $LIBS"
12248 cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h.  */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h.  */
12254
12255
12256 int
12257 main ()
12258 {
12259 return main ();
12260   ;
12261   return 0;
12262 }
12263 _ACEOF
12264 rm -f conftest.$ac_objext conftest$ac_exeext
12265 if { (ac_try="$ac_link"
12266 case "(($ac_try" in
12267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268   *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271   (eval "$ac_link") 2>conftest.er1
12272   ac_status=$?
12273   grep -v '^ *+' conftest.er1 >conftest.err
12274   rm -f conftest.er1
12275   cat conftest.err >&5
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } &&
12278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12279   { (case "(($ac_try" in
12280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281   *) ac_try_echo=$ac_try;;
12282 esac
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284   (eval "$ac_try") 2>&5
12285   ac_status=$?
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); }; } &&
12288          { ac_try='test -s conftest$ac_exeext'
12289   { (case "(($ac_try" in
12290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291   *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294   (eval "$ac_try") 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); }; }; then
12298   ac_cv_lib_imagehlp_main=yes
12299 else
12300   echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12302
12303         ac_cv_lib_imagehlp_main=no
12304 fi
12305
12306 rm -f core conftest.err conftest.$ac_objext \
12307       conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12309 fi
12310 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12311 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12312 if test $ac_cv_lib_imagehlp_main = yes; then
12313   cat >>confdefs.h <<_ACEOF
12314 #define HAVE_LIBIMAGEHLP 1
12315 _ACEOF
12316
12317   LIBS="-limagehlp $LIBS"
12318
12319 fi
12320
12321
12322 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12323 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12324 if test "${ac_cv_lib_psapi_main+set}" = set; then
12325   echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327   ac_check_lib_save_LIBS=$LIBS
12328 LIBS="-lpsapi  $LIBS"
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h.  */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h.  */
12335
12336
12337 int
12338 main ()
12339 {
12340 return main ();
12341   ;
12342   return 0;
12343 }
12344 _ACEOF
12345 rm -f conftest.$ac_objext conftest$ac_exeext
12346 if { (ac_try="$ac_link"
12347 case "(($ac_try" in
12348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349   *) ac_try_echo=$ac_try;;
12350 esac
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352   (eval "$ac_link") 2>conftest.er1
12353   ac_status=$?
12354   grep -v '^ *+' conftest.er1 >conftest.err
12355   rm -f conftest.er1
12356   cat conftest.err >&5
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } &&
12359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12360   { (case "(($ac_try" in
12361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362   *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365   (eval "$ac_try") 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }; } &&
12369          { ac_try='test -s conftest$ac_exeext'
12370   { (case "(($ac_try" in
12371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372   *) ac_try_echo=$ac_try;;
12373 esac
12374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375   (eval "$ac_try") 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; }; then
12379   ac_cv_lib_psapi_main=yes
12380 else
12381   echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384         ac_cv_lib_psapi_main=no
12385 fi
12386
12387 rm -f core conftest.err conftest.$ac_objext \
12388       conftest$ac_exeext conftest.$ac_ext
12389 LIBS=$ac_check_lib_save_LIBS
12390 fi
12391 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12392 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12393 if test $ac_cv_lib_psapi_main = yes; then
12394   cat >>confdefs.h <<_ACEOF
12395 #define HAVE_LIBPSAPI 1
12396 _ACEOF
12397
12398   LIBS="-lpsapi $LIBS"
12399
12400 fi
12401
12402 fi
12403
12404 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12405 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12406 if test "${ac_cv_search_dlopen+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409   ac_func_search_save_LIBS=$LIBS
12410 cat >conftest.$ac_ext <<_ACEOF
12411 /* confdefs.h.  */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h.  */
12416
12417 /* Override any GCC internal prototype to avoid an error.
12418    Use char because int might match the return type of a GCC
12419    builtin and then its argument prototype would still apply.  */
12420 #ifdef __cplusplus
12421 extern "C"
12422 #endif
12423 char dlopen ();
12424 int
12425 main ()
12426 {
12427 return dlopen ();
12428   ;
12429   return 0;
12430 }
12431 _ACEOF
12432 for ac_lib in '' dl; do
12433   if test -z "$ac_lib"; then
12434     ac_res="none required"
12435   else
12436     ac_res=-l$ac_lib
12437     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12438   fi
12439   rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (ac_try="$ac_link"
12441 case "(($ac_try" in
12442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443   *) ac_try_echo=$ac_try;;
12444 esac
12445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446   (eval "$ac_link") 2>conftest.er1
12447   ac_status=$?
12448   grep -v '^ *+' conftest.er1 >conftest.err
12449   rm -f conftest.er1
12450   cat conftest.err >&5
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); } &&
12453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12454   { (case "(($ac_try" in
12455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456   *) ac_try_echo=$ac_try;;
12457 esac
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459   (eval "$ac_try") 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); }; } &&
12463          { ac_try='test -s conftest$ac_exeext'
12464   { (case "(($ac_try" in
12465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466   *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469   (eval "$ac_try") 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); }; }; then
12473   ac_cv_search_dlopen=$ac_res
12474 else
12475   echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12477
12478
12479 fi
12480
12481 rm -f core conftest.err conftest.$ac_objext \
12482       conftest$ac_exeext
12483   if test "${ac_cv_search_dlopen+set}" = set; then
12484   break
12485 fi
12486 done
12487 if test "${ac_cv_search_dlopen+set}" = set; then
12488   :
12489 else
12490   ac_cv_search_dlopen=no
12491 fi
12492 rm conftest.$ac_ext
12493 LIBS=$ac_func_search_save_LIBS
12494 fi
12495 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12496 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12497 ac_res=$ac_cv_search_dlopen
12498 if test "$ac_res" != no; then
12499   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12500
12501 cat >>confdefs.h <<\_ACEOF
12502 #define HAVE_DLOPEN 1
12503 _ACEOF
12504
12505 else
12506   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12507 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12508 fi
12509
12510
12511 if test "$llvm_cv_enable_libffi" = "yes" ; then
12512   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12513 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12514 if test "${ac_cv_search_ffi_call+set}" = set; then
12515   echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517   ac_func_search_save_LIBS=$LIBS
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h.  */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h.  */
12524
12525 /* Override any GCC internal prototype to avoid an error.
12526    Use char because int might match the return type of a GCC
12527    builtin and then its argument prototype would still apply.  */
12528 #ifdef __cplusplus
12529 extern "C"
12530 #endif
12531 char ffi_call ();
12532 int
12533 main ()
12534 {
12535 return ffi_call ();
12536   ;
12537   return 0;
12538 }
12539 _ACEOF
12540 for ac_lib in '' ffi; do
12541   if test -z "$ac_lib"; then
12542     ac_res="none required"
12543   else
12544     ac_res=-l$ac_lib
12545     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12546   fi
12547   rm -f conftest.$ac_objext conftest$ac_exeext
12548 if { (ac_try="$ac_link"
12549 case "(($ac_try" in
12550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551   *) ac_try_echo=$ac_try;;
12552 esac
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554   (eval "$ac_link") 2>conftest.er1
12555   ac_status=$?
12556   grep -v '^ *+' conftest.er1 >conftest.err
12557   rm -f conftest.er1
12558   cat conftest.err >&5
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); } &&
12561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12562   { (case "(($ac_try" in
12563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12564   *) ac_try_echo=$ac_try;;
12565 esac
12566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12567   (eval "$ac_try") 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; } &&
12571          { ac_try='test -s conftest$ac_exeext'
12572   { (case "(($ac_try" in
12573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574   *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577   (eval "$ac_try") 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); }; }; then
12581   ac_cv_search_ffi_call=$ac_res
12582 else
12583   echo "$as_me: failed program was:" >&5
12584 sed 's/^/| /' conftest.$ac_ext >&5
12585
12586
12587 fi
12588
12589 rm -f core conftest.err conftest.$ac_objext \
12590       conftest$ac_exeext
12591   if test "${ac_cv_search_ffi_call+set}" = set; then
12592   break
12593 fi
12594 done
12595 if test "${ac_cv_search_ffi_call+set}" = set; then
12596   :
12597 else
12598   ac_cv_search_ffi_call=no
12599 fi
12600 rm conftest.$ac_ext
12601 LIBS=$ac_func_search_save_LIBS
12602 fi
12603 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12604 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12605 ac_res=$ac_cv_search_ffi_call
12606 if test "$ac_res" != no; then
12607   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12608
12609 cat >>confdefs.h <<\_ACEOF
12610 #define HAVE_FFI_CALL 1
12611 _ACEOF
12612
12613 else
12614   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12615 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12616    { (exit 1); exit 1; }; }
12617 fi
12618
12619 fi
12620
12621 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12622 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12623 if test "${ac_cv_search_mallinfo+set}" = set; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626   ac_func_search_save_LIBS=$LIBS
12627 cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h.  */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h.  */
12633
12634 /* Override any GCC internal prototype to avoid an error.
12635    Use char because int might match the return type of a GCC
12636    builtin and then its argument prototype would still apply.  */
12637 #ifdef __cplusplus
12638 extern "C"
12639 #endif
12640 char mallinfo ();
12641 int
12642 main ()
12643 {
12644 return mallinfo ();
12645   ;
12646   return 0;
12647 }
12648 _ACEOF
12649 for ac_lib in '' malloc; do
12650   if test -z "$ac_lib"; then
12651     ac_res="none required"
12652   else
12653     ac_res=-l$ac_lib
12654     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12655   fi
12656   rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660   *) ac_try_echo=$ac_try;;
12661 esac
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663   (eval "$ac_link") 2>conftest.er1
12664   ac_status=$?
12665   grep -v '^ *+' conftest.er1 >conftest.err
12666   rm -f conftest.er1
12667   cat conftest.err >&5
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); } &&
12670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671   { (case "(($ac_try" in
12672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673   *) ac_try_echo=$ac_try;;
12674 esac
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676   (eval "$ac_try") 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); }; } &&
12680          { ac_try='test -s conftest$ac_exeext'
12681   { (case "(($ac_try" in
12682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683   *) ac_try_echo=$ac_try;;
12684 esac
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686   (eval "$ac_try") 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; }; then
12690   ac_cv_search_mallinfo=$ac_res
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695
12696 fi
12697
12698 rm -f core conftest.err conftest.$ac_objext \
12699       conftest$ac_exeext
12700   if test "${ac_cv_search_mallinfo+set}" = set; then
12701   break
12702 fi
12703 done
12704 if test "${ac_cv_search_mallinfo+set}" = set; then
12705   :
12706 else
12707   ac_cv_search_mallinfo=no
12708 fi
12709 rm conftest.$ac_ext
12710 LIBS=$ac_func_search_save_LIBS
12711 fi
12712 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12713 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12714 ac_res=$ac_cv_search_mallinfo
12715 if test "$ac_res" != no; then
12716   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12717
12718 cat >>confdefs.h <<\_ACEOF
12719 #define HAVE_MALLINFO 1
12720 _ACEOF
12721
12722 fi
12723
12724
12725 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12726
12727 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12728 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12729 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12730   echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732   ac_check_lib_save_LIBS=$LIBS
12733 LIBS="-lpthread  $LIBS"
12734 cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h.  */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h.  */
12740
12741 /* Override any GCC internal prototype to avoid an error.
12742    Use char because int might match the return type of a GCC
12743    builtin and then its argument prototype would still apply.  */
12744 #ifdef __cplusplus
12745 extern "C"
12746 #endif
12747 char pthread_mutex_init ();
12748 int
12749 main ()
12750 {
12751 return pthread_mutex_init ();
12752   ;
12753   return 0;
12754 }
12755 _ACEOF
12756 rm -f conftest.$ac_objext conftest$ac_exeext
12757 if { (ac_try="$ac_link"
12758 case "(($ac_try" in
12759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760   *) ac_try_echo=$ac_try;;
12761 esac
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763   (eval "$ac_link") 2>conftest.er1
12764   ac_status=$?
12765   grep -v '^ *+' conftest.er1 >conftest.err
12766   rm -f conftest.er1
12767   cat conftest.err >&5
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); } &&
12770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771   { (case "(($ac_try" in
12772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773   *) ac_try_echo=$ac_try;;
12774 esac
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776   (eval "$ac_try") 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); }; } &&
12780          { ac_try='test -s conftest$ac_exeext'
12781   { (case "(($ac_try" in
12782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783   *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786   (eval "$ac_try") 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); }; }; then
12790   ac_cv_lib_pthread_pthread_mutex_init=yes
12791 else
12792   echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12794
12795         ac_cv_lib_pthread_pthread_mutex_init=no
12796 fi
12797
12798 rm -f core conftest.err conftest.$ac_objext \
12799       conftest$ac_exeext conftest.$ac_ext
12800 LIBS=$ac_check_lib_save_LIBS
12801 fi
12802 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12803 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12804 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12805   cat >>confdefs.h <<_ACEOF
12806 #define HAVE_LIBPTHREAD 1
12807 _ACEOF
12808
12809   LIBS="-lpthread $LIBS"
12810
12811 fi
12812
12813   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12814 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12815 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12816   echo $ECHO_N "(cached) $ECHO_C" >&6
12817 else
12818   ac_func_search_save_LIBS=$LIBS
12819 cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h.  */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h.  */
12825
12826 /* Override any GCC internal prototype to avoid an error.
12827    Use char because int might match the return type of a GCC
12828    builtin and then its argument prototype would still apply.  */
12829 #ifdef __cplusplus
12830 extern "C"
12831 #endif
12832 char pthread_mutex_lock ();
12833 int
12834 main ()
12835 {
12836 return pthread_mutex_lock ();
12837   ;
12838   return 0;
12839 }
12840 _ACEOF
12841 for ac_lib in '' pthread; do
12842   if test -z "$ac_lib"; then
12843     ac_res="none required"
12844   else
12845     ac_res=-l$ac_lib
12846     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12847   fi
12848   rm -f conftest.$ac_objext conftest$ac_exeext
12849 if { (ac_try="$ac_link"
12850 case "(($ac_try" in
12851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852   *) ac_try_echo=$ac_try;;
12853 esac
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855   (eval "$ac_link") 2>conftest.er1
12856   ac_status=$?
12857   grep -v '^ *+' conftest.er1 >conftest.err
12858   rm -f conftest.er1
12859   cat conftest.err >&5
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); } &&
12862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12863   { (case "(($ac_try" in
12864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865   *) ac_try_echo=$ac_try;;
12866 esac
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868   (eval "$ac_try") 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }; } &&
12872          { ac_try='test -s conftest$ac_exeext'
12873   { (case "(($ac_try" in
12874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875   *) ac_try_echo=$ac_try;;
12876 esac
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878   (eval "$ac_try") 2>&5
12879   ac_status=$?
12880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881   (exit $ac_status); }; }; then
12882   ac_cv_search_pthread_mutex_lock=$ac_res
12883 else
12884   echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12886
12887
12888 fi
12889
12890 rm -f core conftest.err conftest.$ac_objext \
12891       conftest$ac_exeext
12892   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12893   break
12894 fi
12895 done
12896 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12897   :
12898 else
12899   ac_cv_search_pthread_mutex_lock=no
12900 fi
12901 rm conftest.$ac_ext
12902 LIBS=$ac_func_search_save_LIBS
12903 fi
12904 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12905 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12906 ac_res=$ac_cv_search_pthread_mutex_lock
12907 if test "$ac_res" != no; then
12908   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12909
12910 cat >>confdefs.h <<\_ACEOF
12911 #define HAVE_PTHREAD_MUTEX_LOCK 1
12912 _ACEOF
12913
12914 fi
12915
12916   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12917 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12918 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12919   echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921   ac_func_search_save_LIBS=$LIBS
12922 cat >conftest.$ac_ext <<_ACEOF
12923 /* confdefs.h.  */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h.  */
12928
12929 /* Override any GCC internal prototype to avoid an error.
12930    Use char because int might match the return type of a GCC
12931    builtin and then its argument prototype would still apply.  */
12932 #ifdef __cplusplus
12933 extern "C"
12934 #endif
12935 char pthread_rwlock_init ();
12936 int
12937 main ()
12938 {
12939 return pthread_rwlock_init ();
12940   ;
12941   return 0;
12942 }
12943 _ACEOF
12944 for ac_lib in '' pthread; do
12945   if test -z "$ac_lib"; then
12946     ac_res="none required"
12947   else
12948     ac_res=-l$ac_lib
12949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12950   fi
12951   rm -f conftest.$ac_objext conftest$ac_exeext
12952 if { (ac_try="$ac_link"
12953 case "(($ac_try" in
12954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955   *) ac_try_echo=$ac_try;;
12956 esac
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958   (eval "$ac_link") 2>conftest.er1
12959   ac_status=$?
12960   grep -v '^ *+' conftest.er1 >conftest.err
12961   rm -f conftest.er1
12962   cat conftest.err >&5
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); } &&
12965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12966   { (case "(($ac_try" in
12967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968   *) ac_try_echo=$ac_try;;
12969 esac
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971   (eval "$ac_try") 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); }; } &&
12975          { ac_try='test -s conftest$ac_exeext'
12976   { (case "(($ac_try" in
12977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978   *) ac_try_echo=$ac_try;;
12979 esac
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981   (eval "$ac_try") 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; }; then
12985   ac_cv_search_pthread_rwlock_init=$ac_res
12986 else
12987   echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12989
12990
12991 fi
12992
12993 rm -f core conftest.err conftest.$ac_objext \
12994       conftest$ac_exeext
12995   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12996   break
12997 fi
12998 done
12999 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13000   :
13001 else
13002   ac_cv_search_pthread_rwlock_init=no
13003 fi
13004 rm conftest.$ac_ext
13005 LIBS=$ac_func_search_save_LIBS
13006 fi
13007 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13008 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13009 ac_res=$ac_cv_search_pthread_rwlock_init
13010 if test "$ac_res" != no; then
13011   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13012
13013 cat >>confdefs.h <<\_ACEOF
13014 #define HAVE_PTHREAD_RWLOCK_INIT 1
13015 _ACEOF
13016
13017 fi
13018
13019   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13020 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13021 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13022   echo $ECHO_N "(cached) $ECHO_C" >&6
13023 else
13024   ac_func_search_save_LIBS=$LIBS
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h.  */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h.  */
13031
13032 /* Override any GCC internal prototype to avoid an error.
13033    Use char because int might match the return type of a GCC
13034    builtin and then its argument prototype would still apply.  */
13035 #ifdef __cplusplus
13036 extern "C"
13037 #endif
13038 char pthread_getspecific ();
13039 int
13040 main ()
13041 {
13042 return pthread_getspecific ();
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 for ac_lib in '' pthread; do
13048   if test -z "$ac_lib"; then
13049     ac_res="none required"
13050   else
13051     ac_res=-l$ac_lib
13052     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13053   fi
13054   rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (ac_try="$ac_link"
13056 case "(($ac_try" in
13057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058   *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061   (eval "$ac_link") 2>conftest.er1
13062   ac_status=$?
13063   grep -v '^ *+' conftest.er1 >conftest.err
13064   rm -f conftest.er1
13065   cat conftest.err >&5
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); } &&
13068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069   { (case "(($ac_try" in
13070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071   *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074   (eval "$ac_try") 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); }; } &&
13078          { ac_try='test -s conftest$ac_exeext'
13079   { (case "(($ac_try" in
13080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081   *) ac_try_echo=$ac_try;;
13082 esac
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084   (eval "$ac_try") 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); }; }; then
13088   ac_cv_search_pthread_getspecific=$ac_res
13089 else
13090   echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13092
13093
13094 fi
13095
13096 rm -f core conftest.err conftest.$ac_objext \
13097       conftest$ac_exeext
13098   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13099   break
13100 fi
13101 done
13102 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13103   :
13104 else
13105   ac_cv_search_pthread_getspecific=no
13106 fi
13107 rm conftest.$ac_ext
13108 LIBS=$ac_func_search_save_LIBS
13109 fi
13110 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13111 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13112 ac_res=$ac_cv_search_pthread_getspecific
13113 if test "$ac_res" != no; then
13114   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13115
13116 cat >>confdefs.h <<\_ACEOF
13117 #define HAVE_PTHREAD_GETSPECIFIC 1
13118 _ACEOF
13119
13120 fi
13121
13122 fi
13123
13124
13125 # Check whether --with-udis86 was given.
13126 if test "${with_udis86+set}" = set; then
13127   withval=$with_udis86;
13128       USE_UDIS86=1
13129
13130       case "$withval" in
13131         /usr/lib|yes) ;;
13132         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13133       esac
13134
13135 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13136 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13137 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13138   echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140   ac_check_lib_save_LIBS=$LIBS
13141 LIBS="-ludis86  $LIBS"
13142 cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h.  */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h.  */
13148
13149 /* Override any GCC internal prototype to avoid an error.
13150    Use char because int might match the return type of a GCC
13151    builtin and then its argument prototype would still apply.  */
13152 #ifdef __cplusplus
13153 extern "C"
13154 #endif
13155 char ud_init ();
13156 int
13157 main ()
13158 {
13159 return ud_init ();
13160   ;
13161   return 0;
13162 }
13163 _ACEOF
13164 rm -f conftest.$ac_objext conftest$ac_exeext
13165 if { (ac_try="$ac_link"
13166 case "(($ac_try" in
13167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168   *) ac_try_echo=$ac_try;;
13169 esac
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171   (eval "$ac_link") 2>conftest.er1
13172   ac_status=$?
13173   grep -v '^ *+' conftest.er1 >conftest.err
13174   rm -f conftest.er1
13175   cat conftest.err >&5
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); } &&
13178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13179   { (case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_try") 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); }; } &&
13188          { ac_try='test -s conftest$ac_exeext'
13189   { (case "(($ac_try" in
13190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191   *) ac_try_echo=$ac_try;;
13192 esac
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194   (eval "$ac_try") 2>&5
13195   ac_status=$?
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); }; }; then
13198   ac_cv_lib_udis86_ud_init=yes
13199 else
13200   echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13202
13203         ac_cv_lib_udis86_ud_init=no
13204 fi
13205
13206 rm -f core conftest.err conftest.$ac_objext \
13207       conftest$ac_exeext conftest.$ac_ext
13208 LIBS=$ac_check_lib_save_LIBS
13209 fi
13210 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13211 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13212 if test $ac_cv_lib_udis86_ud_init = yes; then
13213   cat >>confdefs.h <<_ACEOF
13214 #define HAVE_LIBUDIS86 1
13215 _ACEOF
13216
13217   LIBS="-ludis86 $LIBS"
13218
13219 else
13220
13221         echo "Error! You need to have libudis86 around."
13222         exit -1
13223
13224 fi
13225
13226
13227 else
13228   USE_UDIS86=0
13229
13230 fi
13231
13232
13233 cat >>confdefs.h <<_ACEOF
13234 #define USE_UDIS86 $USE_UDIS86
13235 _ACEOF
13236
13237
13238
13239 # Check whether --with-oprofile was given.
13240 if test "${with_oprofile+set}" = set; then
13241   withval=$with_oprofile;
13242       USE_OPROFILE=1
13243
13244       case "$withval" in
13245         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13246         no) llvm_cv_oppath=
13247             USE_OPROFILE=0
13248  ;;
13249         *) llvm_cv_oppath="${withval}/lib/oprofile"
13250            CPPFLAGS="-I${withval}/include";;
13251       esac
13252       case $llvm_cv_os_type in
13253         Linux)
13254           if test -n "$llvm_cv_oppath" ; then
13255             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13256                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13257 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13258 if test "${ac_cv_search_bfd_init+set}" = set; then
13259   echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261   ac_func_search_save_LIBS=$LIBS
13262 cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h.  */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h.  */
13268
13269 /* Override any GCC internal prototype to avoid an error.
13270    Use char because int might match the return type of a GCC
13271    builtin and then its argument prototype would still apply.  */
13272 #ifdef __cplusplus
13273 extern "C"
13274 #endif
13275 char bfd_init ();
13276 int
13277 main ()
13278 {
13279 return bfd_init ();
13280   ;
13281   return 0;
13282 }
13283 _ACEOF
13284 for ac_lib in '' bfd; do
13285   if test -z "$ac_lib"; then
13286     ac_res="none required"
13287   else
13288     ac_res=-l$ac_lib
13289     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13290   fi
13291   rm -f conftest.$ac_objext conftest$ac_exeext
13292 if { (ac_try="$ac_link"
13293 case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298   (eval "$ac_link") 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } &&
13305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13306   { (case "(($ac_try" in
13307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308   *) ac_try_echo=$ac_try;;
13309 esac
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311   (eval "$ac_try") 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; } &&
13315          { ac_try='test -s conftest$ac_exeext'
13316   { (case "(($ac_try" in
13317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318   *) ac_try_echo=$ac_try;;
13319 esac
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321   (eval "$ac_try") 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   ac_cv_search_bfd_init=$ac_res
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330
13331 fi
13332
13333 rm -f core conftest.err conftest.$ac_objext \
13334       conftest$ac_exeext
13335   if test "${ac_cv_search_bfd_init+set}" = set; then
13336   break
13337 fi
13338 done
13339 if test "${ac_cv_search_bfd_init+set}" = set; then
13340   :
13341 else
13342   ac_cv_search_bfd_init=no
13343 fi
13344 rm conftest.$ac_ext
13345 LIBS=$ac_func_search_save_LIBS
13346 fi
13347 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13348 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13349 ac_res=$ac_cv_search_bfd_init
13350 if test "$ac_res" != no; then
13351   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13352
13353 fi
13354
13355             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13356 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13357 if test "${ac_cv_search_op_open_agent+set}" = set; then
13358   echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360   ac_func_search_save_LIBS=$LIBS
13361 cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h.  */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h.  */
13367
13368 /* Override any GCC internal prototype to avoid an error.
13369    Use char because int might match the return type of a GCC
13370    builtin and then its argument prototype would still apply.  */
13371 #ifdef __cplusplus
13372 extern "C"
13373 #endif
13374 char op_open_agent ();
13375 int
13376 main ()
13377 {
13378 return op_open_agent ();
13379   ;
13380   return 0;
13381 }
13382 _ACEOF
13383 for ac_lib in '' opagent; do
13384   if test -z "$ac_lib"; then
13385     ac_res="none required"
13386   else
13387     ac_res=-l$ac_lib
13388     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13389   fi
13390   rm -f conftest.$ac_objext conftest$ac_exeext
13391 if { (ac_try="$ac_link"
13392 case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_link") 2>conftest.er1
13398   ac_status=$?
13399   grep -v '^ *+' conftest.er1 >conftest.err
13400   rm -f conftest.er1
13401   cat conftest.err >&5
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); } &&
13404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13405   { (case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_try") 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; } &&
13414          { ac_try='test -s conftest$ac_exeext'
13415   { (case "(($ac_try" in
13416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417   *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420   (eval "$ac_try") 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; }; then
13424   ac_cv_search_op_open_agent=$ac_res
13425 else
13426   echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13428
13429
13430 fi
13431
13432 rm -f core conftest.err conftest.$ac_objext \
13433       conftest$ac_exeext
13434   if test "${ac_cv_search_op_open_agent+set}" = set; then
13435   break
13436 fi
13437 done
13438 if test "${ac_cv_search_op_open_agent+set}" = set; then
13439   :
13440 else
13441   ac_cv_search_op_open_agent=no
13442 fi
13443 rm conftest.$ac_ext
13444 LIBS=$ac_func_search_save_LIBS
13445 fi
13446 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13447 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13448 ac_res=$ac_cv_search_op_open_agent
13449 if test "$ac_res" != no; then
13450   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13451
13452 else
13453
13454               echo "Error! You need to have libopagent around."
13455               exit -1
13456
13457 fi
13458
13459             if test "${ac_cv_header_opagent_h+set}" = set; then
13460   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13461 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13462 if test "${ac_cv_header_opagent_h+set}" = set; then
13463   echo $ECHO_N "(cached) $ECHO_C" >&6
13464 fi
13465 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13466 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13467 else
13468   # Is the header compilable?
13469 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13470 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13471 cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h.  */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h.  */
13477 $ac_includes_default
13478 #include <opagent.h>
13479 _ACEOF
13480 rm -f conftest.$ac_objext
13481 if { (ac_try="$ac_compile"
13482 case "(($ac_try" in
13483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484   *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487   (eval "$ac_compile") 2>conftest.er1
13488   ac_status=$?
13489   grep -v '^ *+' conftest.er1 >conftest.err
13490   rm -f conftest.er1
13491   cat conftest.err >&5
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); } &&
13494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13495   { (case "(($ac_try" in
13496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497   *) ac_try_echo=$ac_try;;
13498 esac
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500   (eval "$ac_try") 2>&5
13501   ac_status=$?
13502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503   (exit $ac_status); }; } &&
13504          { ac_try='test -s conftest.$ac_objext'
13505   { (case "(($ac_try" in
13506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507   *) ac_try_echo=$ac_try;;
13508 esac
13509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510   (eval "$ac_try") 2>&5
13511   ac_status=$?
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); }; }; then
13514   ac_header_compiler=yes
13515 else
13516   echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13518
13519         ac_header_compiler=no
13520 fi
13521
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13524 echo "${ECHO_T}$ac_header_compiler" >&6; }
13525
13526 # Is the header present?
13527 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13528 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13529 cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h.  */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h.  */
13535 #include <opagent.h>
13536 _ACEOF
13537 if { (ac_try="$ac_cpp conftest.$ac_ext"
13538 case "(($ac_try" in
13539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540   *) ac_try_echo=$ac_try;;
13541 esac
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13544   ac_status=$?
13545   grep -v '^ *+' conftest.er1 >conftest.err
13546   rm -f conftest.er1
13547   cat conftest.err >&5
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); } >/dev/null; then
13550   if test -s conftest.err; then
13551     ac_cpp_err=$ac_c_preproc_warn_flag
13552     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13553   else
13554     ac_cpp_err=
13555   fi
13556 else
13557   ac_cpp_err=yes
13558 fi
13559 if test -z "$ac_cpp_err"; then
13560   ac_header_preproc=yes
13561 else
13562   echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565   ac_header_preproc=no
13566 fi
13567
13568 rm -f conftest.err conftest.$ac_ext
13569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13570 echo "${ECHO_T}$ac_header_preproc" >&6; }
13571
13572 # So?  What about this header?
13573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13574   yes:no: )
13575     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13576 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13577     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13578 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13579     ac_header_preproc=yes
13580     ;;
13581   no:yes:* )
13582     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13583 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13584     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13585 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13586     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13587 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13588     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13589 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13590     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13591 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13592     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13593 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13594     ( cat <<\_ASBOX
13595 ## ------------------------------------ ##
13596 ## Report this to http://llvm.org/bugs/ ##
13597 ## ------------------------------------ ##
13598 _ASBOX
13599      ) | sed "s/^/$as_me: WARNING:     /" >&2
13600     ;;
13601 esac
13602 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13603 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13604 if test "${ac_cv_header_opagent_h+set}" = set; then
13605   echo $ECHO_N "(cached) $ECHO_C" >&6
13606 else
13607   ac_cv_header_opagent_h=$ac_header_preproc
13608 fi
13609 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13610 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13611
13612 fi
13613 if test $ac_cv_header_opagent_h = yes; then
13614   :
13615 else
13616
13617               echo "Error! You need to have opagent.h around."
13618               exit -1
13619
13620 fi
13621
13622
13623           fi ;;
13624         *)
13625           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13626 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13627    { (exit 1); exit 1; }; } ;;
13628       esac
13629
13630 else
13631
13632       USE_OPROFILE=0
13633
13634
13635 fi
13636
13637
13638 cat >>confdefs.h <<_ACEOF
13639 #define LLVM_USE_OPROFILE $USE_OPROFILE
13640 _ACEOF
13641
13642
13643
13644 # Check whether --with-intel-jitevents was given.
13645 if test "${with_intel_jitevents+set}" = set; then
13646   withval=$with_intel_jitevents;
13647       case $llvm_cv_os_type in
13648         Linux|Win32|Cygwin|MingW) ;;
13649         *)
13650           { { echo "$as_me:$LINENO: error:
13651             Intel JIT API support is available on Linux and Windows only.\"" >&5
13652 echo "$as_me: error:
13653             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13654    { (exit 1); exit 1; }; } ;;
13655       esac
13656
13657       USE_INTEL_JITEVENTS=1
13658
13659       case "$llvm_cv_target_arch" in
13660         x86)    llvm_intel_jitevents_archdir="lib32";;
13661         x86_64) llvm_intel_jitevents_archdir="lib64";;
13662         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13663                 exit -1;;
13664       esac
13665       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13666       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13667       case "$withval" in
13668         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13669                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13670         *) ;;
13671       esac
13672
13673
13674
13675
13676       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13677       CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13678
13679       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13680 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13681 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684   ac_func_search_save_LIBS=$LIBS
13685 cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691
13692 /* Override any GCC internal prototype to avoid an error.
13693    Use char because int might match the return type of a GCC
13694    builtin and then its argument prototype would still apply.  */
13695 #ifdef __cplusplus
13696 extern "C"
13697 #endif
13698 char iJIT_IsProfilingActive ();
13699 int
13700 main ()
13701 {
13702 return iJIT_IsProfilingActive ();
13703   ;
13704   return 0;
13705 }
13706 _ACEOF
13707 for ac_lib in '' jitprofiling; do
13708   if test -z "$ac_lib"; then
13709     ac_res="none required"
13710   else
13711     ac_res=-l$ac_lib
13712     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13713   fi
13714   rm -f conftest.$ac_objext conftest$ac_exeext
13715 if { (ac_try="$ac_link"
13716 case "(($ac_try" in
13717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718   *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721   (eval "$ac_link") 2>conftest.er1
13722   ac_status=$?
13723   grep -v '^ *+' conftest.er1 >conftest.err
13724   rm -f conftest.er1
13725   cat conftest.err >&5
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); } &&
13728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13729   { (case "(($ac_try" in
13730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731   *) ac_try_echo=$ac_try;;
13732 esac
13733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734   (eval "$ac_try") 2>&5
13735   ac_status=$?
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); }; } &&
13738          { ac_try='test -s conftest$ac_exeext'
13739   { (case "(($ac_try" in
13740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741   *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744   (eval "$ac_try") 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; }; then
13748   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13749 else
13750   echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13752
13753
13754 fi
13755
13756 rm -f core conftest.err conftest.$ac_objext \
13757       conftest$ac_exeext
13758   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13759   break
13760 fi
13761 done
13762 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13763   :
13764 else
13765   ac_cv_search_iJIT_IsProfilingActive=no
13766 fi
13767 rm conftest.$ac_ext
13768 LIBS=$ac_func_search_save_LIBS
13769 fi
13770 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13771 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13772 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13773 if test "$ac_res" != no; then
13774   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13775
13776 else
13777
13778         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13779         exit -1
13780
13781 fi
13782
13783       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13784   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13785 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13786 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13787   echo $ECHO_N "(cached) $ECHO_C" >&6
13788 fi
13789 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13790 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13791 else
13792   # Is the header compilable?
13793 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13794 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13795 cat >conftest.$ac_ext <<_ACEOF
13796 /* confdefs.h.  */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h.  */
13801 $ac_includes_default
13802 #include <jitprofiling.h>
13803 _ACEOF
13804 rm -f conftest.$ac_objext
13805 if { (ac_try="$ac_compile"
13806 case "(($ac_try" in
13807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808   *) ac_try_echo=$ac_try;;
13809 esac
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811   (eval "$ac_compile") 2>conftest.er1
13812   ac_status=$?
13813   grep -v '^ *+' conftest.er1 >conftest.err
13814   rm -f conftest.er1
13815   cat conftest.err >&5
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); } &&
13818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13819   { (case "(($ac_try" in
13820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821   *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824   (eval "$ac_try") 2>&5
13825   ac_status=$?
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); }; } &&
13828          { ac_try='test -s conftest.$ac_objext'
13829   { (case "(($ac_try" in
13830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831   *) ac_try_echo=$ac_try;;
13832 esac
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834   (eval "$ac_try") 2>&5
13835   ac_status=$?
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); }; }; then
13838   ac_header_compiler=yes
13839 else
13840   echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843         ac_header_compiler=no
13844 fi
13845
13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13848 echo "${ECHO_T}$ac_header_compiler" >&6; }
13849
13850 # Is the header present?
13851 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13852 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13853 cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h.  */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h.  */
13859 #include <jitprofiling.h>
13860 _ACEOF
13861 if { (ac_try="$ac_cpp conftest.$ac_ext"
13862 case "(($ac_try" in
13863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864   *) ac_try_echo=$ac_try;;
13865 esac
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13868   ac_status=$?
13869   grep -v '^ *+' conftest.er1 >conftest.err
13870   rm -f conftest.er1
13871   cat conftest.err >&5
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } >/dev/null; then
13874   if test -s conftest.err; then
13875     ac_cpp_err=$ac_c_preproc_warn_flag
13876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13877   else
13878     ac_cpp_err=
13879   fi
13880 else
13881   ac_cpp_err=yes
13882 fi
13883 if test -z "$ac_cpp_err"; then
13884   ac_header_preproc=yes
13885 else
13886   echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13888
13889   ac_header_preproc=no
13890 fi
13891
13892 rm -f conftest.err conftest.$ac_ext
13893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13894 echo "${ECHO_T}$ac_header_preproc" >&6; }
13895
13896 # So?  What about this header?
13897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13898   yes:no: )
13899     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13900 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13901     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13902 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13903     ac_header_preproc=yes
13904     ;;
13905   no:yes:* )
13906     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13907 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13908     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13909 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13910     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13911 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13912     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13913 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13914     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13915 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13916     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13917 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13918     ( cat <<\_ASBOX
13919 ## ------------------------------------ ##
13920 ## Report this to http://llvm.org/bugs/ ##
13921 ## ------------------------------------ ##
13922 _ASBOX
13923      ) | sed "s/^/$as_me: WARNING:     /" >&2
13924     ;;
13925 esac
13926 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13927 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13928 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13929   echo $ECHO_N "(cached) $ECHO_C" >&6
13930 else
13931   ac_cv_header_jitprofiling_h=$ac_header_preproc
13932 fi
13933 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13934 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13935
13936 fi
13937 if test $ac_cv_header_jitprofiling_h = yes; then
13938   :
13939 else
13940
13941         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13942         exit -1
13943
13944 fi
13945
13946
13947
13948
13949 else
13950
13951       USE_INTEL_JITEVENTS=0
13952
13953
13954 fi
13955
13956
13957 cat >>confdefs.h <<_ACEOF
13958 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13959 _ACEOF
13960
13961
13962
13963
13964
13965
13966
13967
13968 ac_header_dirent=no
13969 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13970   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13971 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13972 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13974   echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976   cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h.  */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h.  */
13982 #include <sys/types.h>
13983 #include <$ac_hdr>
13984
13985 int
13986 main ()
13987 {
13988 if ((DIR *) 0)
13989 return 0;
13990   ;
13991   return 0;
13992 }
13993 _ACEOF
13994 rm -f conftest.$ac_objext
13995 if { (ac_try="$ac_compile"
13996 case "(($ac_try" in
13997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998   *) ac_try_echo=$ac_try;;
13999 esac
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001   (eval "$ac_compile") 2>conftest.er1
14002   ac_status=$?
14003   grep -v '^ *+' conftest.er1 >conftest.err
14004   rm -f conftest.er1
14005   cat conftest.err >&5
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } &&
14008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14009   { (case "(($ac_try" in
14010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011   *) ac_try_echo=$ac_try;;
14012 esac
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014   (eval "$ac_try") 2>&5
14015   ac_status=$?
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); }; } &&
14018          { ac_try='test -s conftest.$ac_objext'
14019   { (case "(($ac_try" in
14020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021   *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024   (eval "$ac_try") 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; }; then
14028   eval "$as_ac_Header=yes"
14029 else
14030   echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14032
14033         eval "$as_ac_Header=no"
14034 fi
14035
14036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14037 fi
14038 ac_res=`eval echo '${'$as_ac_Header'}'`
14039                { echo "$as_me:$LINENO: result: $ac_res" >&5
14040 echo "${ECHO_T}$ac_res" >&6; }
14041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14042   cat >>confdefs.h <<_ACEOF
14043 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14044 _ACEOF
14045
14046 ac_header_dirent=$ac_hdr; break
14047 fi
14048
14049 done
14050 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14051 if test $ac_header_dirent = dirent.h; then
14052   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14053 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14054 if test "${ac_cv_search_opendir+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   ac_func_search_save_LIBS=$LIBS
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064
14065 /* Override any GCC internal prototype to avoid an error.
14066    Use char because int might match the return type of a GCC
14067    builtin and then its argument prototype would still apply.  */
14068 #ifdef __cplusplus
14069 extern "C"
14070 #endif
14071 char opendir ();
14072 int
14073 main ()
14074 {
14075 return opendir ();
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 for ac_lib in '' dir; do
14081   if test -z "$ac_lib"; then
14082     ac_res="none required"
14083   else
14084     ac_res=-l$ac_lib
14085     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14086   fi
14087   rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (ac_try="$ac_link"
14089 case "(($ac_try" in
14090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091   *) ac_try_echo=$ac_try;;
14092 esac
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094   (eval "$ac_link") 2>conftest.er1
14095   ac_status=$?
14096   grep -v '^ *+' conftest.er1 >conftest.err
14097   rm -f conftest.er1
14098   cat conftest.err >&5
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14102   { (case "(($ac_try" in
14103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104   *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107   (eval "$ac_try") 2>&5
14108   ac_status=$?
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); }; } &&
14111          { ac_try='test -s conftest$ac_exeext'
14112   { (case "(($ac_try" in
14113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114   *) ac_try_echo=$ac_try;;
14115 esac
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117   (eval "$ac_try") 2>&5
14118   ac_status=$?
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); }; }; then
14121   ac_cv_search_opendir=$ac_res
14122 else
14123   echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14125
14126
14127 fi
14128
14129 rm -f core conftest.err conftest.$ac_objext \
14130       conftest$ac_exeext
14131   if test "${ac_cv_search_opendir+set}" = set; then
14132   break
14133 fi
14134 done
14135 if test "${ac_cv_search_opendir+set}" = set; then
14136   :
14137 else
14138   ac_cv_search_opendir=no
14139 fi
14140 rm conftest.$ac_ext
14141 LIBS=$ac_func_search_save_LIBS
14142 fi
14143 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14144 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14145 ac_res=$ac_cv_search_opendir
14146 if test "$ac_res" != no; then
14147   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14148
14149 fi
14150
14151 else
14152   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14153 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14154 if test "${ac_cv_search_opendir+set}" = set; then
14155   echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157   ac_func_search_save_LIBS=$LIBS
14158 cat >conftest.$ac_ext <<_ACEOF
14159 /* confdefs.h.  */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h.  */
14164
14165 /* Override any GCC internal prototype to avoid an error.
14166    Use char because int might match the return type of a GCC
14167    builtin and then its argument prototype would still apply.  */
14168 #ifdef __cplusplus
14169 extern "C"
14170 #endif
14171 char opendir ();
14172 int
14173 main ()
14174 {
14175 return opendir ();
14176   ;
14177   return 0;
14178 }
14179 _ACEOF
14180 for ac_lib in '' x; do
14181   if test -z "$ac_lib"; then
14182     ac_res="none required"
14183   else
14184     ac_res=-l$ac_lib
14185     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14186   fi
14187   rm -f conftest.$ac_objext conftest$ac_exeext
14188 if { (ac_try="$ac_link"
14189 case "(($ac_try" in
14190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191   *) ac_try_echo=$ac_try;;
14192 esac
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194   (eval "$ac_link") 2>conftest.er1
14195   ac_status=$?
14196   grep -v '^ *+' conftest.er1 >conftest.err
14197   rm -f conftest.er1
14198   cat conftest.err >&5
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); } &&
14201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14202   { (case "(($ac_try" in
14203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204   *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207   (eval "$ac_try") 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; } &&
14211          { ac_try='test -s conftest$ac_exeext'
14212   { (case "(($ac_try" in
14213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214   *) ac_try_echo=$ac_try;;
14215 esac
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217   (eval "$ac_try") 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; }; then
14221   ac_cv_search_opendir=$ac_res
14222 else
14223   echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226
14227 fi
14228
14229 rm -f core conftest.err conftest.$ac_objext \
14230       conftest$ac_exeext
14231   if test "${ac_cv_search_opendir+set}" = set; then
14232   break
14233 fi
14234 done
14235 if test "${ac_cv_search_opendir+set}" = set; then
14236   :
14237 else
14238   ac_cv_search_opendir=no
14239 fi
14240 rm conftest.$ac_ext
14241 LIBS=$ac_func_search_save_LIBS
14242 fi
14243 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14244 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14245 ac_res=$ac_cv_search_opendir
14246 if test "$ac_res" != no; then
14247   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14248
14249 fi
14250
14251 fi
14252
14253 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14254 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14255 if test "${ac_cv_header_mmap_anon+set}" = set; then
14256   echo $ECHO_N "(cached) $ECHO_C" >&6
14257 else
14258    ac_ext=c
14259 ac_cpp='$CPP $CPPFLAGS'
14260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14263
14264   cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h.  */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h.  */
14270 #include <sys/mman.h>
14271 #include <unistd.h>
14272 #include <fcntl.h>
14273 int
14274 main ()
14275 {
14276 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14277   ;
14278   return 0;
14279 }
14280 _ACEOF
14281 rm -f conftest.$ac_objext
14282 if { (ac_try="$ac_compile"
14283 case "(($ac_try" in
14284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285   *) ac_try_echo=$ac_try;;
14286 esac
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288   (eval "$ac_compile") 2>conftest.er1
14289   ac_status=$?
14290   grep -v '^ *+' conftest.er1 >conftest.err
14291   rm -f conftest.er1
14292   cat conftest.err >&5
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); } &&
14295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14296   { (case "(($ac_try" in
14297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298   *) ac_try_echo=$ac_try;;
14299 esac
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301   (eval "$ac_try") 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); }; } &&
14305          { ac_try='test -s conftest.$ac_objext'
14306   { (case "(($ac_try" in
14307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308   *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311   (eval "$ac_try") 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); }; }; then
14315   ac_cv_header_mmap_anon=yes
14316 else
14317   echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14319
14320         ac_cv_header_mmap_anon=no
14321 fi
14322
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324   ac_ext=c
14325 ac_cpp='$CPP $CPPFLAGS'
14326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14329
14330
14331 fi
14332 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14333 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14334 if test "$ac_cv_header_mmap_anon" = yes; then
14335
14336 cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_MMAP_ANONYMOUS 1
14338 _ACEOF
14339
14340 fi
14341
14342 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14343 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14344 if test "${ac_cv_header_stat_broken+set}" = set; then
14345   echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347   cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h.  */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h.  */
14353 #include <sys/types.h>
14354 #include <sys/stat.h>
14355
14356 #if defined S_ISBLK && defined S_IFDIR
14357 # if S_ISBLK (S_IFDIR)
14358 You lose.
14359 # endif
14360 #endif
14361
14362 #if defined S_ISBLK && defined S_IFCHR
14363 # if S_ISBLK (S_IFCHR)
14364 You lose.
14365 # endif
14366 #endif
14367
14368 #if defined S_ISLNK && defined S_IFREG
14369 # if S_ISLNK (S_IFREG)
14370 You lose.
14371 # endif
14372 #endif
14373
14374 #if defined S_ISSOCK && defined S_IFREG
14375 # if S_ISSOCK (S_IFREG)
14376 You lose.
14377 # endif
14378 #endif
14379
14380 _ACEOF
14381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14382   $EGREP "You lose" >/dev/null 2>&1; then
14383   ac_cv_header_stat_broken=yes
14384 else
14385   ac_cv_header_stat_broken=no
14386 fi
14387 rm -f conftest*
14388
14389 fi
14390 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14391 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14392 if test $ac_cv_header_stat_broken = yes; then
14393
14394 cat >>confdefs.h <<\_ACEOF
14395 #define STAT_MACROS_BROKEN 1
14396 _ACEOF
14397
14398 fi
14399
14400 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14401 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14402 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14403   echo $ECHO_N "(cached) $ECHO_C" >&6
14404 else
14405   cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h.  */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h.  */
14411 #include <sys/types.h>
14412 #include <sys/wait.h>
14413 #ifndef WEXITSTATUS
14414 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14415 #endif
14416 #ifndef WIFEXITED
14417 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14418 #endif
14419
14420 int
14421 main ()
14422 {
14423   int s;
14424   wait (&s);
14425   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14426   ;
14427   return 0;
14428 }
14429 _ACEOF
14430 rm -f conftest.$ac_objext
14431 if { (ac_try="$ac_compile"
14432 case "(($ac_try" in
14433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434   *) ac_try_echo=$ac_try;;
14435 esac
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437   (eval "$ac_compile") 2>conftest.er1
14438   ac_status=$?
14439   grep -v '^ *+' conftest.er1 >conftest.err
14440   rm -f conftest.er1
14441   cat conftest.err >&5
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); } &&
14444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14454          { ac_try='test -s conftest.$ac_objext'
14455   { (case "(($ac_try" in
14456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457   *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460   (eval "$ac_try") 2>&5
14461   ac_status=$?
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); }; }; then
14464   ac_cv_header_sys_wait_h=yes
14465 else
14466   echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14468
14469         ac_cv_header_sys_wait_h=no
14470 fi
14471
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 fi
14474 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14475 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14476 if test $ac_cv_header_sys_wait_h = yes; then
14477
14478 cat >>confdefs.h <<\_ACEOF
14479 #define HAVE_SYS_WAIT_H 1
14480 _ACEOF
14481
14482 fi
14483
14484 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14485 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14486 if test "${ac_cv_header_time+set}" = set; then
14487   echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489   cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h.  */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h.  */
14495 #include <sys/types.h>
14496 #include <sys/time.h>
14497 #include <time.h>
14498
14499 int
14500 main ()
14501 {
14502 if ((struct tm *) 0)
14503 return 0;
14504   ;
14505   return 0;
14506 }
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (ac_try="$ac_compile"
14510 case "(($ac_try" in
14511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512   *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515   (eval "$ac_compile") 2>conftest.er1
14516   ac_status=$?
14517   grep -v '^ *+' conftest.er1 >conftest.err
14518   rm -f conftest.er1
14519   cat conftest.err >&5
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); } &&
14522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14523   { (case "(($ac_try" in
14524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525   *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528   (eval "$ac_try") 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; } &&
14532          { ac_try='test -s conftest.$ac_objext'
14533   { (case "(($ac_try" in
14534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535   *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538   (eval "$ac_try") 2>&5
14539   ac_status=$?
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); }; }; then
14542   ac_cv_header_time=yes
14543 else
14544   echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547         ac_cv_header_time=no
14548 fi
14549
14550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14551 fi
14552 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14553 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14554 if test $ac_cv_header_time = yes; then
14555
14556 cat >>confdefs.h <<\_ACEOF
14557 #define TIME_WITH_SYS_TIME 1
14558 _ACEOF
14559
14560 fi
14561
14562
14563
14564
14565
14566
14567
14568
14569 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.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
14740
14741
14742
14743 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14744 do
14745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14747   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14750   echo $ECHO_N "(cached) $ECHO_C" >&6
14751 fi
14752 ac_res=`eval echo '${'$as_ac_Header'}'`
14753                { echo "$as_me:$LINENO: result: $ac_res" >&5
14754 echo "${ECHO_T}$ac_res" >&6; }
14755 else
14756   # Is the header compilable?
14757 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14759 cat >conftest.$ac_ext <<_ACEOF
14760 /* confdefs.h.  */
14761 _ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h.  */
14765 $ac_includes_default
14766 #include <$ac_header>
14767 _ACEOF
14768 rm -f conftest.$ac_objext
14769 if { (ac_try="$ac_compile"
14770 case "(($ac_try" in
14771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772   *) ac_try_echo=$ac_try;;
14773 esac
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775   (eval "$ac_compile") 2>conftest.er1
14776   ac_status=$?
14777   grep -v '^ *+' conftest.er1 >conftest.err
14778   rm -f conftest.er1
14779   cat conftest.err >&5
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); } &&
14782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14783   { (case "(($ac_try" in
14784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785   *) ac_try_echo=$ac_try;;
14786 esac
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788   (eval "$ac_try") 2>&5
14789   ac_status=$?
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); }; } &&
14792          { ac_try='test -s conftest.$ac_objext'
14793   { (case "(($ac_try" in
14794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795   *) ac_try_echo=$ac_try;;
14796 esac
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798   (eval "$ac_try") 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; }; then
14802   ac_header_compiler=yes
14803 else
14804   echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14806
14807         ac_header_compiler=no
14808 fi
14809
14810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14812 echo "${ECHO_T}$ac_header_compiler" >&6; }
14813
14814 # Is the header present?
14815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h.  */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h.  */
14823 #include <$ac_header>
14824 _ACEOF
14825 if { (ac_try="$ac_cpp conftest.$ac_ext"
14826 case "(($ac_try" in
14827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14828   *) ac_try_echo=$ac_try;;
14829 esac
14830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14832   ac_status=$?
14833   grep -v '^ *+' conftest.er1 >conftest.err
14834   rm -f conftest.er1
14835   cat conftest.err >&5
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); } >/dev/null; then
14838   if test -s conftest.err; then
14839     ac_cpp_err=$ac_c_preproc_warn_flag
14840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14841   else
14842     ac_cpp_err=
14843   fi
14844 else
14845   ac_cpp_err=yes
14846 fi
14847 if test -z "$ac_cpp_err"; then
14848   ac_header_preproc=yes
14849 else
14850   echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14852
14853   ac_header_preproc=no
14854 fi
14855
14856 rm -f conftest.err conftest.$ac_ext
14857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14858 echo "${ECHO_T}$ac_header_preproc" >&6; }
14859
14860 # So?  What about this header?
14861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14862   yes:no: )
14863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14867     ac_header_preproc=yes
14868     ;;
14869   no:yes:* )
14870     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14872     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14873 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14874     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14876     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14877 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14880     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14882     ( cat <<\_ASBOX
14883 ## ------------------------------------ ##
14884 ## Report this to http://llvm.org/bugs/ ##
14885 ## ------------------------------------ ##
14886 _ASBOX
14887      ) | sed "s/^/$as_me: WARNING:     /" >&2
14888     ;;
14889 esac
14890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14893   echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895   eval "$as_ac_Header=\$ac_header_preproc"
14896 fi
14897 ac_res=`eval echo '${'$as_ac_Header'}'`
14898                { echo "$as_me:$LINENO: result: $ac_res" >&5
14899 echo "${ECHO_T}$ac_res" >&6; }
14900
14901 fi
14902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14903   cat >>confdefs.h <<_ACEOF
14904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14905 _ACEOF
14906
14907 fi
14908
14909 done
14910
14911
14912
14913 for ac_header in utime.h windows.h
14914 do
14915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14917   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 fi
14922 ac_res=`eval echo '${'$as_ac_Header'}'`
14923                { echo "$as_me:$LINENO: result: $ac_res" >&5
14924 echo "${ECHO_T}$ac_res" >&6; }
14925 else
14926   # Is the header compilable?
14927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935 $ac_includes_default
14936 #include <$ac_header>
14937 _ACEOF
14938 rm -f conftest.$ac_objext
14939 if { (ac_try="$ac_compile"
14940 case "(($ac_try" in
14941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942   *) ac_try_echo=$ac_try;;
14943 esac
14944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945   (eval "$ac_compile") 2>conftest.er1
14946   ac_status=$?
14947   grep -v '^ *+' conftest.er1 >conftest.err
14948   rm -f conftest.er1
14949   cat conftest.err >&5
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); } &&
14952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14953   { (case "(($ac_try" in
14954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955   *) ac_try_echo=$ac_try;;
14956 esac
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958   (eval "$ac_try") 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); }; } &&
14962          { ac_try='test -s conftest.$ac_objext'
14963   { (case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968   (eval "$ac_try") 2>&5
14969   ac_status=$?
14970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971   (exit $ac_status); }; }; then
14972   ac_header_compiler=yes
14973 else
14974   echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14976
14977         ac_header_compiler=no
14978 fi
14979
14980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14982 echo "${ECHO_T}$ac_header_compiler" >&6; }
14983
14984 # Is the header present?
14985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14987 cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h.  */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h.  */
14993 #include <$ac_header>
14994 _ACEOF
14995 if { (ac_try="$ac_cpp conftest.$ac_ext"
14996 case "(($ac_try" in
14997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998   *) ac_try_echo=$ac_try;;
14999 esac
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15002   ac_status=$?
15003   grep -v '^ *+' conftest.er1 >conftest.err
15004   rm -f conftest.er1
15005   cat conftest.err >&5
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); } >/dev/null; then
15008   if test -s conftest.err; then
15009     ac_cpp_err=$ac_c_preproc_warn_flag
15010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15011   else
15012     ac_cpp_err=
15013   fi
15014 else
15015   ac_cpp_err=yes
15016 fi
15017 if test -z "$ac_cpp_err"; then
15018   ac_header_preproc=yes
15019 else
15020   echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15022
15023   ac_header_preproc=no
15024 fi
15025
15026 rm -f conftest.err conftest.$ac_ext
15027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15028 echo "${ECHO_T}$ac_header_preproc" >&6; }
15029
15030 # So?  What about this header?
15031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15032   yes:no: )
15033     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15037     ac_header_preproc=yes
15038     ;;
15039   no:yes:* )
15040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15042     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15043 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15044     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15046     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15047 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15050     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15052     ( cat <<\_ASBOX
15053 ## ------------------------------------ ##
15054 ## Report this to http://llvm.org/bugs/ ##
15055 ## ------------------------------------ ##
15056 _ASBOX
15057      ) | sed "s/^/$as_me: WARNING:     /" >&2
15058     ;;
15059 esac
15060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15063   echo $ECHO_N "(cached) $ECHO_C" >&6
15064 else
15065   eval "$as_ac_Header=\$ac_header_preproc"
15066 fi
15067 ac_res=`eval echo '${'$as_ac_Header'}'`
15068                { echo "$as_me:$LINENO: result: $ac_res" >&5
15069 echo "${ECHO_T}$ac_res" >&6; }
15070
15071 fi
15072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15073   cat >>confdefs.h <<_ACEOF
15074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15075 _ACEOF
15076
15077 fi
15078
15079 done
15080
15081
15082
15083
15084
15085
15086 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15087 do
15088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15090   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15093   echo $ECHO_N "(cached) $ECHO_C" >&6
15094 fi
15095 ac_res=`eval echo '${'$as_ac_Header'}'`
15096                { echo "$as_me:$LINENO: result: $ac_res" >&5
15097 echo "${ECHO_T}$ac_res" >&6; }
15098 else
15099   # Is the header compilable?
15100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15102 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h.  */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h.  */
15108 $ac_includes_default
15109 #include <$ac_header>
15110 _ACEOF
15111 rm -f conftest.$ac_objext
15112 if { (ac_try="$ac_compile"
15113 case "(($ac_try" in
15114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115   *) ac_try_echo=$ac_try;;
15116 esac
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118   (eval "$ac_compile") 2>conftest.er1
15119   ac_status=$?
15120   grep -v '^ *+' conftest.er1 >conftest.err
15121   rm -f conftest.er1
15122   cat conftest.err >&5
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); } &&
15125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15126   { (case "(($ac_try" in
15127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128   *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131   (eval "$ac_try") 2>&5
15132   ac_status=$?
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); }; } &&
15135          { ac_try='test -s conftest.$ac_objext'
15136   { (case "(($ac_try" in
15137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138   *) ac_try_echo=$ac_try;;
15139 esac
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141   (eval "$ac_try") 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); }; }; then
15145   ac_header_compiler=yes
15146 else
15147   echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150         ac_header_compiler=no
15151 fi
15152
15153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15155 echo "${ECHO_T}$ac_header_compiler" >&6; }
15156
15157 # Is the header present?
15158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15160 cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h.  */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h.  */
15166 #include <$ac_header>
15167 _ACEOF
15168 if { (ac_try="$ac_cpp conftest.$ac_ext"
15169 case "(($ac_try" in
15170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171   *) ac_try_echo=$ac_try;;
15172 esac
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15175   ac_status=$?
15176   grep -v '^ *+' conftest.er1 >conftest.err
15177   rm -f conftest.er1
15178   cat conftest.err >&5
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); } >/dev/null; then
15181   if test -s conftest.err; then
15182     ac_cpp_err=$ac_c_preproc_warn_flag
15183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15184   else
15185     ac_cpp_err=
15186   fi
15187 else
15188   ac_cpp_err=yes
15189 fi
15190 if test -z "$ac_cpp_err"; then
15191   ac_header_preproc=yes
15192 else
15193   echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15195
15196   ac_header_preproc=no
15197 fi
15198
15199 rm -f conftest.err conftest.$ac_ext
15200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15201 echo "${ECHO_T}$ac_header_preproc" >&6; }
15202
15203 # So?  What about this header?
15204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15205   yes:no: )
15206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15210     ac_header_preproc=yes
15211     ;;
15212   no:yes:* )
15213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15215     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15216 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15219     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15220 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15225     ( cat <<\_ASBOX
15226 ## ------------------------------------ ##
15227 ## Report this to http://llvm.org/bugs/ ##
15228 ## ------------------------------------ ##
15229 _ASBOX
15230      ) | sed "s/^/$as_me: WARNING:     /" >&2
15231     ;;
15232 esac
15233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15236   echo $ECHO_N "(cached) $ECHO_C" >&6
15237 else
15238   eval "$as_ac_Header=\$ac_header_preproc"
15239 fi
15240 ac_res=`eval echo '${'$as_ac_Header'}'`
15241                { echo "$as_me:$LINENO: result: $ac_res" >&5
15242 echo "${ECHO_T}$ac_res" >&6; }
15243
15244 fi
15245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15246   cat >>confdefs.h <<_ACEOF
15247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15248 _ACEOF
15249
15250 fi
15251
15252 done
15253
15254
15255
15256
15257
15258 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15259 do
15260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15262   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15265   echo $ECHO_N "(cached) $ECHO_C" >&6
15266 fi
15267 ac_res=`eval echo '${'$as_ac_Header'}'`
15268                { echo "$as_me:$LINENO: result: $ac_res" >&5
15269 echo "${ECHO_T}$ac_res" >&6; }
15270 else
15271   # Is the header compilable?
15272 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15274 cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h.  */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h.  */
15280 $ac_includes_default
15281 #include <$ac_header>
15282 _ACEOF
15283 rm -f conftest.$ac_objext
15284 if { (ac_try="$ac_compile"
15285 case "(($ac_try" in
15286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287   *) ac_try_echo=$ac_try;;
15288 esac
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290   (eval "$ac_compile") 2>conftest.er1
15291   ac_status=$?
15292   grep -v '^ *+' conftest.er1 >conftest.err
15293   rm -f conftest.er1
15294   cat conftest.err >&5
15295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296   (exit $ac_status); } &&
15297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15298   { (case "(($ac_try" in
15299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300   *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303   (eval "$ac_try") 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; } &&
15307          { ac_try='test -s conftest.$ac_objext'
15308   { (case "(($ac_try" in
15309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310   *) ac_try_echo=$ac_try;;
15311 esac
15312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15313   (eval "$ac_try") 2>&5
15314   ac_status=$?
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); }; }; then
15317   ac_header_compiler=yes
15318 else
15319   echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322         ac_header_compiler=no
15323 fi
15324
15325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15327 echo "${ECHO_T}$ac_header_compiler" >&6; }
15328
15329 # Is the header present?
15330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h.  */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h.  */
15338 #include <$ac_header>
15339 _ACEOF
15340 if { (ac_try="$ac_cpp conftest.$ac_ext"
15341 case "(($ac_try" in
15342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343   *) ac_try_echo=$ac_try;;
15344 esac
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15347   ac_status=$?
15348   grep -v '^ *+' conftest.er1 >conftest.err
15349   rm -f conftest.er1
15350   cat conftest.err >&5
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); } >/dev/null; then
15353   if test -s conftest.err; then
15354     ac_cpp_err=$ac_c_preproc_warn_flag
15355     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15356   else
15357     ac_cpp_err=
15358   fi
15359 else
15360   ac_cpp_err=yes
15361 fi
15362 if test -z "$ac_cpp_err"; then
15363   ac_header_preproc=yes
15364 else
15365   echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15367
15368   ac_header_preproc=no
15369 fi
15370
15371 rm -f conftest.err conftest.$ac_ext
15372 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15373 echo "${ECHO_T}$ac_header_preproc" >&6; }
15374
15375 # So?  What about this header?
15376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15377   yes:no: )
15378     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15382     ac_header_preproc=yes
15383     ;;
15384   no:yes:* )
15385     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15387     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15388 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15389     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15391     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15392 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15395     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15397     ( cat <<\_ASBOX
15398 ## ------------------------------------ ##
15399 ## Report this to http://llvm.org/bugs/ ##
15400 ## ------------------------------------ ##
15401 _ASBOX
15402      ) | sed "s/^/$as_me: WARNING:     /" >&2
15403     ;;
15404 esac
15405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   eval "$as_ac_Header=\$ac_header_preproc"
15411 fi
15412 ac_res=`eval echo '${'$as_ac_Header'}'`
15413                { echo "$as_me:$LINENO: result: $ac_res" >&5
15414 echo "${ECHO_T}$ac_res" >&6; }
15415
15416 fi
15417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15418   cat >>confdefs.h <<_ACEOF
15419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15420 _ACEOF
15421
15422 fi
15423
15424 done
15425
15426
15427 for ac_header in valgrind/valgrind.h
15428 do
15429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15431   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15434   echo $ECHO_N "(cached) $ECHO_C" >&6
15435 fi
15436 ac_res=`eval echo '${'$as_ac_Header'}'`
15437                { echo "$as_me:$LINENO: result: $ac_res" >&5
15438 echo "${ECHO_T}$ac_res" >&6; }
15439 else
15440   # Is the header compilable?
15441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h.  */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h.  */
15449 $ac_includes_default
15450 #include <$ac_header>
15451 _ACEOF
15452 rm -f conftest.$ac_objext
15453 if { (ac_try="$ac_compile"
15454 case "(($ac_try" in
15455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456   *) ac_try_echo=$ac_try;;
15457 esac
15458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459   (eval "$ac_compile") 2>conftest.er1
15460   ac_status=$?
15461   grep -v '^ *+' conftest.er1 >conftest.err
15462   rm -f conftest.er1
15463   cat conftest.err >&5
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); } &&
15466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15467   { (case "(($ac_try" in
15468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469   *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472   (eval "$ac_try") 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); }; } &&
15476          { ac_try='test -s conftest.$ac_objext'
15477   { (case "(($ac_try" in
15478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479   *) ac_try_echo=$ac_try;;
15480 esac
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482   (eval "$ac_try") 2>&5
15483   ac_status=$?
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); }; }; then
15486   ac_header_compiler=yes
15487 else
15488   echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15490
15491         ac_header_compiler=no
15492 fi
15493
15494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15496 echo "${ECHO_T}$ac_header_compiler" >&6; }
15497
15498 # Is the header present?
15499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15501 cat >conftest.$ac_ext <<_ACEOF
15502 /* confdefs.h.  */
15503 _ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h.  */
15507 #include <$ac_header>
15508 _ACEOF
15509 if { (ac_try="$ac_cpp conftest.$ac_ext"
15510 case "(($ac_try" in
15511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512   *) ac_try_echo=$ac_try;;
15513 esac
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15516   ac_status=$?
15517   grep -v '^ *+' conftest.er1 >conftest.err
15518   rm -f conftest.er1
15519   cat conftest.err >&5
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); } >/dev/null; then
15522   if test -s conftest.err; then
15523     ac_cpp_err=$ac_c_preproc_warn_flag
15524     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15525   else
15526     ac_cpp_err=
15527   fi
15528 else
15529   ac_cpp_err=yes
15530 fi
15531 if test -z "$ac_cpp_err"; then
15532   ac_header_preproc=yes
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537   ac_header_preproc=no
15538 fi
15539
15540 rm -f conftest.err conftest.$ac_ext
15541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15542 echo "${ECHO_T}$ac_header_preproc" >&6; }
15543
15544 # So?  What about this header?
15545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15546   yes:no: )
15547     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15551     ac_header_preproc=yes
15552     ;;
15553   no:yes:* )
15554     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15556     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15557 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15558     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15560     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15561 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15564     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15566     ( cat <<\_ASBOX
15567 ## ------------------------------------ ##
15568 ## Report this to http://llvm.org/bugs/ ##
15569 ## ------------------------------------ ##
15570 _ASBOX
15571      ) | sed "s/^/$as_me: WARNING:     /" >&2
15572     ;;
15573 esac
15574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15577   echo $ECHO_N "(cached) $ECHO_C" >&6
15578 else
15579   eval "$as_ac_Header=\$ac_header_preproc"
15580 fi
15581 ac_res=`eval echo '${'$as_ac_Header'}'`
15582                { echo "$as_me:$LINENO: result: $ac_res" >&5
15583 echo "${ECHO_T}$ac_res" >&6; }
15584
15585 fi
15586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15587   cat >>confdefs.h <<_ACEOF
15588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15589 _ACEOF
15590
15591 fi
15592
15593 done
15594
15595
15596 for ac_header in fenv.h
15597 do
15598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15600   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15603   echo $ECHO_N "(cached) $ECHO_C" >&6
15604 fi
15605 ac_res=`eval echo '${'$as_ac_Header'}'`
15606                { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608 else
15609   # Is the header compilable?
15610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15612 cat >conftest.$ac_ext <<_ACEOF
15613 /* confdefs.h.  */
15614 _ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h.  */
15618 $ac_includes_default
15619 #include <$ac_header>
15620 _ACEOF
15621 rm -f conftest.$ac_objext
15622 if { (ac_try="$ac_compile"
15623 case "(($ac_try" in
15624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625   *) ac_try_echo=$ac_try;;
15626 esac
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628   (eval "$ac_compile") 2>conftest.er1
15629   ac_status=$?
15630   grep -v '^ *+' conftest.er1 >conftest.err
15631   rm -f conftest.er1
15632   cat conftest.err >&5
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); } &&
15635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15636   { (case "(($ac_try" in
15637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638   *) ac_try_echo=$ac_try;;
15639 esac
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641   (eval "$ac_try") 2>&5
15642   ac_status=$?
15643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644   (exit $ac_status); }; } &&
15645          { ac_try='test -s conftest.$ac_objext'
15646   { (case "(($ac_try" in
15647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15648   *) ac_try_echo=$ac_try;;
15649 esac
15650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15651   (eval "$ac_try") 2>&5
15652   ac_status=$?
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); }; }; then
15655   ac_header_compiler=yes
15656 else
15657   echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15659
15660         ac_header_compiler=no
15661 fi
15662
15663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15665 echo "${ECHO_T}$ac_header_compiler" >&6; }
15666
15667 # Is the header present?
15668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15670 cat >conftest.$ac_ext <<_ACEOF
15671 /* confdefs.h.  */
15672 _ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h.  */
15676 #include <$ac_header>
15677 _ACEOF
15678 if { (ac_try="$ac_cpp conftest.$ac_ext"
15679 case "(($ac_try" in
15680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681   *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15685   ac_status=$?
15686   grep -v '^ *+' conftest.er1 >conftest.err
15687   rm -f conftest.er1
15688   cat conftest.err >&5
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); } >/dev/null; then
15691   if test -s conftest.err; then
15692     ac_cpp_err=$ac_c_preproc_warn_flag
15693     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15694   else
15695     ac_cpp_err=
15696   fi
15697 else
15698   ac_cpp_err=yes
15699 fi
15700 if test -z "$ac_cpp_err"; then
15701   ac_header_preproc=yes
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706   ac_header_preproc=no
15707 fi
15708
15709 rm -f conftest.err conftest.$ac_ext
15710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15711 echo "${ECHO_T}$ac_header_preproc" >&6; }
15712
15713 # So?  What about this header?
15714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15715   yes:no: )
15716     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15720     ac_header_preproc=yes
15721     ;;
15722   no:yes:* )
15723     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15725     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15726 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15727     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15729     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15730 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15733     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15735     ( cat <<\_ASBOX
15736 ## ------------------------------------ ##
15737 ## Report this to http://llvm.org/bugs/ ##
15738 ## ------------------------------------ ##
15739 _ASBOX
15740      ) | sed "s/^/$as_me: WARNING:     /" >&2
15741     ;;
15742 esac
15743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748   eval "$as_ac_Header=\$ac_header_preproc"
15749 fi
15750 ac_res=`eval echo '${'$as_ac_Header'}'`
15751                { echo "$as_me:$LINENO: result: $ac_res" >&5
15752 echo "${ECHO_T}$ac_res" >&6; }
15753
15754 fi
15755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15756   cat >>confdefs.h <<_ACEOF
15757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15758 _ACEOF
15759
15760 fi
15761
15762 done
15763
15764 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15765
15766 for ac_header in pthread.h
15767 do
15768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15770   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15773   echo $ECHO_N "(cached) $ECHO_C" >&6
15774 fi
15775 ac_res=`eval echo '${'$as_ac_Header'}'`
15776                { echo "$as_me:$LINENO: result: $ac_res" >&5
15777 echo "${ECHO_T}$ac_res" >&6; }
15778 else
15779   # Is the header compilable?
15780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15782 cat >conftest.$ac_ext <<_ACEOF
15783 /* confdefs.h.  */
15784 _ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h.  */
15788 $ac_includes_default
15789 #include <$ac_header>
15790 _ACEOF
15791 rm -f conftest.$ac_objext
15792 if { (ac_try="$ac_compile"
15793 case "(($ac_try" in
15794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795   *) ac_try_echo=$ac_try;;
15796 esac
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798   (eval "$ac_compile") 2>conftest.er1
15799   ac_status=$?
15800   grep -v '^ *+' conftest.er1 >conftest.err
15801   rm -f conftest.er1
15802   cat conftest.err >&5
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } &&
15805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15806   { (case "(($ac_try" in
15807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808   *) ac_try_echo=$ac_try;;
15809 esac
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811   (eval "$ac_try") 2>&5
15812   ac_status=$?
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); }; } &&
15815          { ac_try='test -s conftest.$ac_objext'
15816   { (case "(($ac_try" in
15817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818   *) ac_try_echo=$ac_try;;
15819 esac
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821   (eval "$ac_try") 2>&5
15822   ac_status=$?
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); }; }; then
15825   ac_header_compiler=yes
15826 else
15827   echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15829
15830         ac_header_compiler=no
15831 fi
15832
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15835 echo "${ECHO_T}$ac_header_compiler" >&6; }
15836
15837 # Is the header present?
15838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15840 cat >conftest.$ac_ext <<_ACEOF
15841 /* confdefs.h.  */
15842 _ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h.  */
15846 #include <$ac_header>
15847 _ACEOF
15848 if { (ac_try="$ac_cpp conftest.$ac_ext"
15849 case "(($ac_try" in
15850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851   *) ac_try_echo=$ac_try;;
15852 esac
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15855   ac_status=$?
15856   grep -v '^ *+' conftest.er1 >conftest.err
15857   rm -f conftest.er1
15858   cat conftest.err >&5
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); } >/dev/null; then
15861   if test -s conftest.err; then
15862     ac_cpp_err=$ac_c_preproc_warn_flag
15863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15864   else
15865     ac_cpp_err=
15866   fi
15867 else
15868   ac_cpp_err=yes
15869 fi
15870 if test -z "$ac_cpp_err"; then
15871   ac_header_preproc=yes
15872 else
15873   echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876   ac_header_preproc=no
15877 fi
15878
15879 rm -f conftest.err conftest.$ac_ext
15880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15881 echo "${ECHO_T}$ac_header_preproc" >&6; }
15882
15883 # So?  What about this header?
15884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15885   yes:no: )
15886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15890     ac_header_preproc=yes
15891     ;;
15892   no:yes:* )
15893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15905     ( cat <<\_ASBOX
15906 ## ------------------------------------ ##
15907 ## Report this to http://llvm.org/bugs/ ##
15908 ## ------------------------------------ ##
15909 _ASBOX
15910      ) | sed "s/^/$as_me: WARNING:     /" >&2
15911     ;;
15912 esac
15913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15916   echo $ECHO_N "(cached) $ECHO_C" >&6
15917 else
15918   eval "$as_ac_Header=\$ac_header_preproc"
15919 fi
15920 ac_res=`eval echo '${'$as_ac_Header'}'`
15921                { echo "$as_me:$LINENO: result: $ac_res" >&5
15922 echo "${ECHO_T}$ac_res" >&6; }
15923
15924 fi
15925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15926   cat >>confdefs.h <<_ACEOF
15927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15928 _ACEOF
15929  HAVE_PTHREAD=1
15930
15931 else
15932   HAVE_PTHREAD=0
15933
15934 fi
15935
15936 done
15937
15938 else
15939   HAVE_PTHREAD=0
15940
15941 fi
15942
15943 if test "$llvm_cv_enable_libffi" = "yes" ; then
15944
15945
15946 for ac_header in ffi.h ffi/ffi.h
15947 do
15948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15953   echo $ECHO_N "(cached) $ECHO_C" >&6
15954 fi
15955 ac_res=`eval echo '${'$as_ac_Header'}'`
15956                { echo "$as_me:$LINENO: result: $ac_res" >&5
15957 echo "${ECHO_T}$ac_res" >&6; }
15958 else
15959   # Is the header compilable?
15960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968 $ac_includes_default
15969 #include <$ac_header>
15970 _ACEOF
15971 rm -f conftest.$ac_objext
15972 if { (ac_try="$ac_compile"
15973 case "(($ac_try" in
15974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975   *) ac_try_echo=$ac_try;;
15976 esac
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978   (eval "$ac_compile") 2>conftest.er1
15979   ac_status=$?
15980   grep -v '^ *+' conftest.er1 >conftest.err
15981   rm -f conftest.er1
15982   cat conftest.err >&5
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); } &&
15985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15986   { (case "(($ac_try" in
15987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988   *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991   (eval "$ac_try") 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; } &&
15995          { ac_try='test -s conftest.$ac_objext'
15996   { (case "(($ac_try" in
15997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998   *) ac_try_echo=$ac_try;;
15999 esac
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001   (eval "$ac_try") 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; }; then
16005   ac_header_compiler=yes
16006 else
16007   echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010         ac_header_compiler=no
16011 fi
16012
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16015 echo "${ECHO_T}$ac_header_compiler" >&6; }
16016
16017 # Is the header present?
16018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16020 cat >conftest.$ac_ext <<_ACEOF
16021 /* confdefs.h.  */
16022 _ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h.  */
16026 #include <$ac_header>
16027 _ACEOF
16028 if { (ac_try="$ac_cpp conftest.$ac_ext"
16029 case "(($ac_try" in
16030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031   *) ac_try_echo=$ac_try;;
16032 esac
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16035   ac_status=$?
16036   grep -v '^ *+' conftest.er1 >conftest.err
16037   rm -f conftest.er1
16038   cat conftest.err >&5
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); } >/dev/null; then
16041   if test -s conftest.err; then
16042     ac_cpp_err=$ac_c_preproc_warn_flag
16043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16044   else
16045     ac_cpp_err=
16046   fi
16047 else
16048   ac_cpp_err=yes
16049 fi
16050 if test -z "$ac_cpp_err"; then
16051   ac_header_preproc=yes
16052 else
16053   echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056   ac_header_preproc=no
16057 fi
16058
16059 rm -f conftest.err conftest.$ac_ext
16060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16061 echo "${ECHO_T}$ac_header_preproc" >&6; }
16062
16063 # So?  What about this header?
16064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16065   yes:no: )
16066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16070     ac_header_preproc=yes
16071     ;;
16072   no:yes:* )
16073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16075     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16076 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16077     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16079     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16080 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16083     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16085     ( cat <<\_ASBOX
16086 ## ------------------------------------ ##
16087 ## Report this to http://llvm.org/bugs/ ##
16088 ## ------------------------------------ ##
16089 _ASBOX
16090      ) | sed "s/^/$as_me: WARNING:     /" >&2
16091     ;;
16092 esac
16093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16096   echo $ECHO_N "(cached) $ECHO_C" >&6
16097 else
16098   eval "$as_ac_Header=\$ac_header_preproc"
16099 fi
16100 ac_res=`eval echo '${'$as_ac_Header'}'`
16101                { echo "$as_me:$LINENO: result: $ac_res" >&5
16102 echo "${ECHO_T}$ac_res" >&6; }
16103
16104 fi
16105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16106   cat >>confdefs.h <<_ACEOF
16107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16108 _ACEOF
16109
16110 fi
16111
16112 done
16113
16114 fi
16115
16116
16117 for ac_header in CrashReporterClient.h
16118 do
16119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16121   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16124   echo $ECHO_N "(cached) $ECHO_C" >&6
16125 fi
16126 ac_res=`eval echo '${'$as_ac_Header'}'`
16127                { echo "$as_me:$LINENO: result: $ac_res" >&5
16128 echo "${ECHO_T}$ac_res" >&6; }
16129 else
16130   # Is the header compilable?
16131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16133 cat >conftest.$ac_ext <<_ACEOF
16134 /* confdefs.h.  */
16135 _ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h.  */
16139 $ac_includes_default
16140 #include <$ac_header>
16141 _ACEOF
16142 rm -f conftest.$ac_objext
16143 if { (ac_try="$ac_compile"
16144 case "(($ac_try" in
16145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146   *) ac_try_echo=$ac_try;;
16147 esac
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149   (eval "$ac_compile") 2>conftest.er1
16150   ac_status=$?
16151   grep -v '^ *+' conftest.er1 >conftest.err
16152   rm -f conftest.er1
16153   cat conftest.err >&5
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); } &&
16156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16157   { (case "(($ac_try" in
16158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159   *) ac_try_echo=$ac_try;;
16160 esac
16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162   (eval "$ac_try") 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); }; } &&
16166          { ac_try='test -s conftest.$ac_objext'
16167   { (case "(($ac_try" in
16168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169   *) ac_try_echo=$ac_try;;
16170 esac
16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172   (eval "$ac_try") 2>&5
16173   ac_status=$?
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); }; }; then
16176   ac_header_compiler=yes
16177 else
16178   echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16180
16181         ac_header_compiler=no
16182 fi
16183
16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16186 echo "${ECHO_T}$ac_header_compiler" >&6; }
16187
16188 # Is the header present?
16189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16191 cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h.  */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h.  */
16197 #include <$ac_header>
16198 _ACEOF
16199 if { (ac_try="$ac_cpp conftest.$ac_ext"
16200 case "(($ac_try" in
16201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202   *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16206   ac_status=$?
16207   grep -v '^ *+' conftest.er1 >conftest.err
16208   rm -f conftest.er1
16209   cat conftest.err >&5
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } >/dev/null; then
16212   if test -s conftest.err; then
16213     ac_cpp_err=$ac_c_preproc_warn_flag
16214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16215   else
16216     ac_cpp_err=
16217   fi
16218 else
16219   ac_cpp_err=yes
16220 fi
16221 if test -z "$ac_cpp_err"; then
16222   ac_header_preproc=yes
16223 else
16224   echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227   ac_header_preproc=no
16228 fi
16229
16230 rm -f conftest.err conftest.$ac_ext
16231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16232 echo "${ECHO_T}$ac_header_preproc" >&6; }
16233
16234 # So?  What about this header?
16235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16236   yes:no: )
16237     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16241     ac_header_preproc=yes
16242     ;;
16243   no:yes:* )
16244     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16246     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16247 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16248     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16250     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16251 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16254     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16256     ( cat <<\_ASBOX
16257 ## ------------------------------------ ##
16258 ## Report this to http://llvm.org/bugs/ ##
16259 ## ------------------------------------ ##
16260 _ASBOX
16261      ) | sed "s/^/$as_me: WARNING:     /" >&2
16262     ;;
16263 esac
16264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16267   echo $ECHO_N "(cached) $ECHO_C" >&6
16268 else
16269   eval "$as_ac_Header=\$ac_header_preproc"
16270 fi
16271 ac_res=`eval echo '${'$as_ac_Header'}'`
16272                { echo "$as_me:$LINENO: result: $ac_res" >&5
16273 echo "${ECHO_T}$ac_res" >&6; }
16274
16275 fi
16276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16277   cat >>confdefs.h <<_ACEOF
16278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16279 _ACEOF
16280
16281 fi
16282
16283 done
16284
16285
16286 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16287 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294 extern const char *__crashreporter_info__;
16295       int main() {
16296         __crashreporter_info__ = "test";
16297         return 0;
16298       }
16299
16300 _ACEOF
16301 rm -f conftest.$ac_objext conftest$ac_exeext
16302 if { (ac_try="$ac_link"
16303 case "(($ac_try" in
16304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305   *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308   (eval "$ac_link") 2>conftest.er1
16309   ac_status=$?
16310   grep -v '^ *+' conftest.er1 >conftest.err
16311   rm -f conftest.er1
16312   cat conftest.err >&5
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); } &&
16315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16316   { (case "(($ac_try" in
16317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318   *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321   (eval "$ac_try") 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; } &&
16325          { ac_try='test -s conftest$ac_exeext'
16326   { (case "(($ac_try" in
16327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328   *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331   (eval "$ac_try") 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; }; then
16335   { echo "$as_me:$LINENO: result: yes" >&5
16336 echo "${ECHO_T}yes" >&6; }
16337
16338 cat >>confdefs.h <<\_ACEOF
16339 #define HAVE_CRASHREPORTER_INFO 1
16340 _ACEOF
16341
16342 else
16343   echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.$ac_ext >&5
16345
16346         { echo "$as_me:$LINENO: result: no" >&5
16347 echo "${ECHO_T}no" >&6; }
16348
16349 cat >>confdefs.h <<\_ACEOF
16350 #define HAVE_CRASHREPORTER_INFO 0
16351 _ACEOF
16352
16353 fi
16354
16355 rm -f core conftest.err conftest.$ac_objext \
16356       conftest$ac_exeext conftest.$ac_ext
16357
16358
16359
16360
16361   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16362 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16363 if test "${ac_cv_huge_val_sanity+set}" = set; then
16364   echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366
16367     ac_ext=cpp
16368 ac_cpp='$CXXCPP $CPPFLAGS'
16369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16372
16373     ac_save_CXXFLAGS=$CXXFLAGS
16374     CXXFLAGS="$CXXFLAGS -pedantic"
16375     if test "$cross_compiling" = yes; then
16376   ac_cv_huge_val_sanity=yes
16377 else
16378   cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h.  */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h.  */
16384 #include <math.h>
16385 int
16386 main ()
16387 {
16388 double x = HUGE_VAL; return x != x;
16389   ;
16390   return 0;
16391 }
16392 _ACEOF
16393 rm -f conftest$ac_exeext
16394 if { (ac_try="$ac_link"
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_link") 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16404   { (case "(($ac_try" in
16405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406   *) ac_try_echo=$ac_try;;
16407 esac
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409   (eval "$ac_try") 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }; }; then
16413   ac_cv_huge_val_sanity=yes
16414 else
16415   echo "$as_me: program exited with status $ac_status" >&5
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 ( exit $ac_status )
16420 ac_cv_huge_val_sanity=no
16421 fi
16422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16423 fi
16424
16425
16426     CXXFLAGS=$ac_save_CXXFLAGS
16427     ac_ext=c
16428 ac_cpp='$CPP $CPPFLAGS'
16429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16432
16433
16434 fi
16435 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16436 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16437   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16438
16439
16440 { echo "$as_me:$LINENO: checking for pid_t" >&5
16441 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16442 if test "${ac_cv_type_pid_t+set}" = set; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445   cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h.  */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h.  */
16451 $ac_includes_default
16452 typedef pid_t ac__type_new_;
16453 int
16454 main ()
16455 {
16456 if ((ac__type_new_ *) 0)
16457   return 0;
16458 if (sizeof (ac__type_new_))
16459   return 0;
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
16464 rm -f conftest.$ac_objext
16465 if { (ac_try="$ac_compile"
16466 case "(($ac_try" in
16467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468   *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471   (eval "$ac_compile") 2>conftest.er1
16472   ac_status=$?
16473   grep -v '^ *+' conftest.er1 >conftest.err
16474   rm -f conftest.er1
16475   cat conftest.err >&5
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } &&
16478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16479   { (case "(($ac_try" in
16480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481   *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484   (eval "$ac_try") 2>&5
16485   ac_status=$?
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); }; } &&
16488          { ac_try='test -s conftest.$ac_objext'
16489   { (case "(($ac_try" in
16490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491   *) ac_try_echo=$ac_try;;
16492 esac
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494   (eval "$ac_try") 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); }; }; then
16498   ac_cv_type_pid_t=yes
16499 else
16500   echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16502
16503         ac_cv_type_pid_t=no
16504 fi
16505
16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 fi
16508 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16509 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16510 if test $ac_cv_type_pid_t = yes; then
16511   :
16512 else
16513
16514 cat >>confdefs.h <<_ACEOF
16515 #define pid_t int
16516 _ACEOF
16517
16518 fi
16519
16520 { echo "$as_me:$LINENO: checking for size_t" >&5
16521 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16522 if test "${ac_cv_type_size_t+set}" = set; then
16523   echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525   cat >conftest.$ac_ext <<_ACEOF
16526 /* confdefs.h.  */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h.  */
16531 $ac_includes_default
16532 typedef size_t ac__type_new_;
16533 int
16534 main ()
16535 {
16536 if ((ac__type_new_ *) 0)
16537   return 0;
16538 if (sizeof (ac__type_new_))
16539   return 0;
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16552   ac_status=$?
16553   grep -v '^ *+' conftest.er1 >conftest.err
16554   rm -f conftest.er1
16555   cat conftest.err >&5
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); } &&
16558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16559   { (case "(($ac_try" in
16560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561   *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564   (eval "$ac_try") 2>&5
16565   ac_status=$?
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); }; } &&
16568          { ac_try='test -s conftest.$ac_objext'
16569   { (case "(($ac_try" in
16570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571   *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574   (eval "$ac_try") 2>&5
16575   ac_status=$?
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); }; }; then
16578   ac_cv_type_size_t=yes
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583         ac_cv_type_size_t=no
16584 fi
16585
16586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16587 fi
16588 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16589 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16590 if test $ac_cv_type_size_t = yes; then
16591   :
16592 else
16593
16594 cat >>confdefs.h <<_ACEOF
16595 #define size_t unsigned int
16596 _ACEOF
16597
16598 fi
16599
16600
16601 cat >>confdefs.h <<_ACEOF
16602 #define RETSIGTYPE void
16603 _ACEOF
16604
16605 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16606 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16607 if test "${ac_cv_struct_tm+set}" = set; then
16608   echo $ECHO_N "(cached) $ECHO_C" >&6
16609 else
16610   cat >conftest.$ac_ext <<_ACEOF
16611 /* confdefs.h.  */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h.  */
16616 #include <sys/types.h>
16617 #include <time.h>
16618
16619 int
16620 main ()
16621 {
16622 struct tm *tp; tp->tm_sec;
16623   ;
16624   return 0;
16625 }
16626 _ACEOF
16627 rm -f conftest.$ac_objext
16628 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16635   ac_status=$?
16636   grep -v '^ *+' conftest.er1 >conftest.err
16637   rm -f conftest.er1
16638   cat conftest.err >&5
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); } &&
16641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16642   { (case "(($ac_try" in
16643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644   *) ac_try_echo=$ac_try;;
16645 esac
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647   (eval "$ac_try") 2>&5
16648   ac_status=$?
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); }; } &&
16651          { ac_try='test -s conftest.$ac_objext'
16652   { (case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657   (eval "$ac_try") 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); }; }; then
16661   ac_cv_struct_tm=time.h
16662 else
16663   echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666         ac_cv_struct_tm=sys/time.h
16667 fi
16668
16669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16670 fi
16671 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16672 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16673 if test $ac_cv_struct_tm = sys/time.h; then
16674
16675 cat >>confdefs.h <<\_ACEOF
16676 #define TM_IN_SYS_TIME 1
16677 _ACEOF
16678
16679 fi
16680
16681 { echo "$as_me:$LINENO: checking for int64_t" >&5
16682 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16683 if test "${ac_cv_type_int64_t+set}" = set; then
16684   echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686   cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h.  */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h.  */
16692 $ac_includes_default
16693 typedef int64_t ac__type_new_;
16694 int
16695 main ()
16696 {
16697 if ((ac__type_new_ *) 0)
16698   return 0;
16699 if (sizeof (ac__type_new_))
16700   return 0;
16701   ;
16702   return 0;
16703 }
16704 _ACEOF
16705 rm -f conftest.$ac_objext
16706 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16713   ac_status=$?
16714   grep -v '^ *+' conftest.er1 >conftest.err
16715   rm -f conftest.er1
16716   cat conftest.err >&5
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } &&
16719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16720   { (case "(($ac_try" in
16721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722   *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725   (eval "$ac_try") 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; } &&
16729          { ac_try='test -s conftest.$ac_objext'
16730   { (case "(($ac_try" in
16731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732   *) ac_try_echo=$ac_try;;
16733 esac
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735   (eval "$ac_try") 2>&5
16736   ac_status=$?
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); }; }; then
16739   ac_cv_type_int64_t=yes
16740 else
16741   echo "$as_me: failed program was:" >&5
16742 sed 's/^/| /' conftest.$ac_ext >&5
16743
16744         ac_cv_type_int64_t=no
16745 fi
16746
16747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16748 fi
16749 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16750 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16751 if test $ac_cv_type_int64_t = yes; then
16752
16753 cat >>confdefs.h <<_ACEOF
16754 #define HAVE_INT64_T 1
16755 _ACEOF
16756
16757
16758 else
16759   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16760 echo "$as_me: error: Type int64_t required but not found" >&2;}
16761    { (exit 1); exit 1; }; }
16762 fi
16763
16764 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16765 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16766 if test "${ac_cv_type_uint64_t+set}" = set; then
16767   echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769   cat >conftest.$ac_ext <<_ACEOF
16770 /* confdefs.h.  */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h.  */
16775 $ac_includes_default
16776 typedef uint64_t ac__type_new_;
16777 int
16778 main ()
16779 {
16780 if ((ac__type_new_ *) 0)
16781   return 0;
16782 if (sizeof (ac__type_new_))
16783   return 0;
16784   ;
16785   return 0;
16786 }
16787 _ACEOF
16788 rm -f conftest.$ac_objext
16789 if { (ac_try="$ac_compile"
16790 case "(($ac_try" in
16791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792   *) ac_try_echo=$ac_try;;
16793 esac
16794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795   (eval "$ac_compile") 2>conftest.er1
16796   ac_status=$?
16797   grep -v '^ *+' conftest.er1 >conftest.err
16798   rm -f conftest.er1
16799   cat conftest.err >&5
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); } &&
16802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16803   { (case "(($ac_try" in
16804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805   *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808   (eval "$ac_try") 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); }; } &&
16812          { ac_try='test -s conftest.$ac_objext'
16813   { (case "(($ac_try" in
16814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815   *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818   (eval "$ac_try") 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); }; }; then
16822   ac_cv_type_uint64_t=yes
16823 else
16824   echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16826
16827         ac_cv_type_uint64_t=no
16828 fi
16829
16830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831 fi
16832 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16833 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16834 if test $ac_cv_type_uint64_t = yes; then
16835
16836 cat >>confdefs.h <<_ACEOF
16837 #define HAVE_UINT64_T 1
16838 _ACEOF
16839
16840
16841 else
16842   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16843 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16844 if test "${ac_cv_type_u_int64_t+set}" = set; then
16845   echo $ECHO_N "(cached) $ECHO_C" >&6
16846 else
16847   cat >conftest.$ac_ext <<_ACEOF
16848 /* confdefs.h.  */
16849 _ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h.  */
16853 $ac_includes_default
16854 typedef u_int64_t ac__type_new_;
16855 int
16856 main ()
16857 {
16858 if ((ac__type_new_ *) 0)
16859   return 0;
16860 if (sizeof (ac__type_new_))
16861   return 0;
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 rm -f conftest.$ac_objext
16867 if { (ac_try="$ac_compile"
16868 case "(($ac_try" in
16869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870   *) ac_try_echo=$ac_try;;
16871 esac
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873   (eval "$ac_compile") 2>conftest.er1
16874   ac_status=$?
16875   grep -v '^ *+' conftest.er1 >conftest.err
16876   rm -f conftest.er1
16877   cat conftest.err >&5
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); } &&
16880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16881   { (case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_try") 2>&5
16887   ac_status=$?
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); }; } &&
16890          { ac_try='test -s conftest.$ac_objext'
16891   { (case "(($ac_try" in
16892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893   *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896   (eval "$ac_try") 2>&5
16897   ac_status=$?
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); }; }; then
16900   ac_cv_type_u_int64_t=yes
16901 else
16902   echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16904
16905         ac_cv_type_u_int64_t=no
16906 fi
16907
16908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16909 fi
16910 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16911 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16912 if test $ac_cv_type_u_int64_t = yes; then
16913
16914 cat >>confdefs.h <<_ACEOF
16915 #define HAVE_U_INT64_T 1
16916 _ACEOF
16917
16918
16919 else
16920   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16921 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16922    { (exit 1); exit 1; }; }
16923 fi
16924
16925 fi
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16937 do
16938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16942   echo $ECHO_N "(cached) $ECHO_C" >&6
16943 else
16944   cat >conftest.$ac_ext <<_ACEOF
16945 /* confdefs.h.  */
16946 _ACEOF
16947 cat confdefs.h >>conftest.$ac_ext
16948 cat >>conftest.$ac_ext <<_ACEOF
16949 /* end confdefs.h.  */
16950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16952 #define $ac_func innocuous_$ac_func
16953
16954 /* System header to define __stub macros and hopefully few prototypes,
16955     which can conflict with char $ac_func (); below.
16956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16957     <limits.h> exists even on freestanding compilers.  */
16958
16959 #ifdef __STDC__
16960 # include <limits.h>
16961 #else
16962 # include <assert.h>
16963 #endif
16964
16965 #undef $ac_func
16966
16967 /* Override any GCC internal prototype to avoid an error.
16968    Use char because int might match the return type of a GCC
16969    builtin and then its argument prototype would still apply.  */
16970 #ifdef __cplusplus
16971 extern "C"
16972 #endif
16973 char $ac_func ();
16974 /* The GNU C library defines this for functions which it implements
16975     to always fail with ENOSYS.  Some functions are actually named
16976     something starting with __ and the normal name is an alias.  */
16977 #if defined __stub_$ac_func || defined __stub___$ac_func
16978 choke me
16979 #endif
16980
16981 int
16982 main ()
16983 {
16984 return $ac_func ();
16985   ;
16986   return 0;
16987 }
16988 _ACEOF
16989 rm -f conftest.$ac_objext conftest$ac_exeext
16990 if { (ac_try="$ac_link"
16991 case "(($ac_try" in
16992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993   *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996   (eval "$ac_link") 2>conftest.er1
16997   ac_status=$?
16998   grep -v '^ *+' conftest.er1 >conftest.err
16999   rm -f conftest.er1
17000   cat conftest.err >&5
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); } &&
17003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17004   { (case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009   (eval "$ac_try") 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); }; } &&
17013          { ac_try='test -s conftest$ac_exeext'
17014   { (case "(($ac_try" in
17015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016   *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019   (eval "$ac_try") 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); }; }; then
17023   eval "$as_ac_var=yes"
17024 else
17025   echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028         eval "$as_ac_var=no"
17029 fi
17030
17031 rm -f core conftest.err conftest.$ac_objext \
17032       conftest$ac_exeext conftest.$ac_ext
17033 fi
17034 ac_res=`eval echo '${'$as_ac_var'}'`
17035                { echo "$as_me:$LINENO: result: $ac_res" >&5
17036 echo "${ECHO_T}$ac_res" >&6; }
17037 if test `eval echo '${'$as_ac_var'}'` = yes; then
17038   cat >>confdefs.h <<_ACEOF
17039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17040 _ACEOF
17041
17042 fi
17043 done
17044
17045
17046
17047
17048
17049 for ac_func in powf fmodf strtof round
17050 do
17051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17055   echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057   cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17065 #define $ac_func innocuous_$ac_func
17066
17067 /* System header to define __stub macros and hopefully few prototypes,
17068     which can conflict with char $ac_func (); below.
17069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17070     <limits.h> exists even on freestanding compilers.  */
17071
17072 #ifdef __STDC__
17073 # include <limits.h>
17074 #else
17075 # include <assert.h>
17076 #endif
17077
17078 #undef $ac_func
17079
17080 /* Override any GCC internal prototype to avoid an error.
17081    Use char because int might match the return type of a GCC
17082    builtin and then its argument prototype would still apply.  */
17083 #ifdef __cplusplus
17084 extern "C"
17085 #endif
17086 char $ac_func ();
17087 /* The GNU C library defines this for functions which it implements
17088     to always fail with ENOSYS.  Some functions are actually named
17089     something starting with __ and the normal name is an alias.  */
17090 #if defined __stub_$ac_func || defined __stub___$ac_func
17091 choke me
17092 #endif
17093
17094 int
17095 main ()
17096 {
17097 return $ac_func ();
17098   ;
17099   return 0;
17100 }
17101 _ACEOF
17102 rm -f conftest.$ac_objext conftest$ac_exeext
17103 if { (ac_try="$ac_link"
17104 case "(($ac_try" in
17105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106   *) ac_try_echo=$ac_try;;
17107 esac
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109   (eval "$ac_link") 2>conftest.er1
17110   ac_status=$?
17111   grep -v '^ *+' conftest.er1 >conftest.err
17112   rm -f conftest.er1
17113   cat conftest.err >&5
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); } &&
17116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17117   { (case "(($ac_try" in
17118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119   *) ac_try_echo=$ac_try;;
17120 esac
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122   (eval "$ac_try") 2>&5
17123   ac_status=$?
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); }; } &&
17126          { ac_try='test -s conftest$ac_exeext'
17127   { (case "(($ac_try" in
17128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129   *) ac_try_echo=$ac_try;;
17130 esac
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132   (eval "$ac_try") 2>&5
17133   ac_status=$?
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); }; }; then
17136   eval "$as_ac_var=yes"
17137 else
17138   echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17140
17141         eval "$as_ac_var=no"
17142 fi
17143
17144 rm -f core conftest.err conftest.$ac_objext \
17145       conftest$ac_exeext conftest.$ac_ext
17146 fi
17147 ac_res=`eval echo '${'$as_ac_var'}'`
17148                { echo "$as_me:$LINENO: result: $ac_res" >&5
17149 echo "${ECHO_T}$ac_res" >&6; }
17150 if test `eval echo '${'$as_ac_var'}'` = yes; then
17151   cat >>confdefs.h <<_ACEOF
17152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17153 _ACEOF
17154
17155 fi
17156 done
17157
17158
17159
17160
17161
17162
17163 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17164 do
17165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17169   echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171   cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h.  */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h.  */
17177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17179 #define $ac_func innocuous_$ac_func
17180
17181 /* System header to define __stub macros and hopefully few prototypes,
17182     which can conflict with char $ac_func (); below.
17183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17184     <limits.h> exists even on freestanding compilers.  */
17185
17186 #ifdef __STDC__
17187 # include <limits.h>
17188 #else
17189 # include <assert.h>
17190 #endif
17191
17192 #undef $ac_func
17193
17194 /* Override any GCC internal prototype to avoid an error.
17195    Use char because int might match the return type of a GCC
17196    builtin and then its argument prototype would still apply.  */
17197 #ifdef __cplusplus
17198 extern "C"
17199 #endif
17200 char $ac_func ();
17201 /* The GNU C library defines this for functions which it implements
17202     to always fail with ENOSYS.  Some functions are actually named
17203     something starting with __ and the normal name is an alias.  */
17204 #if defined __stub_$ac_func || defined __stub___$ac_func
17205 choke me
17206 #endif
17207
17208 int
17209 main ()
17210 {
17211 return $ac_func ();
17212   ;
17213   return 0;
17214 }
17215 _ACEOF
17216 rm -f conftest.$ac_objext conftest$ac_exeext
17217 if { (ac_try="$ac_link"
17218 case "(($ac_try" in
17219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220   *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223   (eval "$ac_link") 2>conftest.er1
17224   ac_status=$?
17225   grep -v '^ *+' conftest.er1 >conftest.err
17226   rm -f conftest.er1
17227   cat conftest.err >&5
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); } &&
17230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17231   { (case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236   (eval "$ac_try") 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); }; } &&
17240          { ac_try='test -s conftest$ac_exeext'
17241   { (case "(($ac_try" in
17242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243   *) ac_try_echo=$ac_try;;
17244 esac
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246   (eval "$ac_try") 2>&5
17247   ac_status=$?
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); }; }; then
17250   eval "$as_ac_var=yes"
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255         eval "$as_ac_var=no"
17256 fi
17257
17258 rm -f core conftest.err conftest.$ac_objext \
17259       conftest$ac_exeext conftest.$ac_ext
17260 fi
17261 ac_res=`eval echo '${'$as_ac_var'}'`
17262                { echo "$as_me:$LINENO: result: $ac_res" >&5
17263 echo "${ECHO_T}$ac_res" >&6; }
17264 if test `eval echo '${'$as_ac_var'}'` = yes; then
17265   cat >>confdefs.h <<_ACEOF
17266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17267 _ACEOF
17268
17269 fi
17270 done
17271
17272
17273
17274
17275 for ac_func in isatty mkdtemp mkstemp
17276 do
17277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283   cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h.  */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h.  */
17289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17291 #define $ac_func innocuous_$ac_func
17292
17293 /* System header to define __stub macros and hopefully few prototypes,
17294     which can conflict with char $ac_func (); below.
17295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17296     <limits.h> exists even on freestanding compilers.  */
17297
17298 #ifdef __STDC__
17299 # include <limits.h>
17300 #else
17301 # include <assert.h>
17302 #endif
17303
17304 #undef $ac_func
17305
17306 /* Override any GCC internal prototype to avoid an error.
17307    Use char because int might match the return type of a GCC
17308    builtin and then its argument prototype would still apply.  */
17309 #ifdef __cplusplus
17310 extern "C"
17311 #endif
17312 char $ac_func ();
17313 /* The GNU C library defines this for functions which it implements
17314     to always fail with ENOSYS.  Some functions are actually named
17315     something starting with __ and the normal name is an alias.  */
17316 #if defined __stub_$ac_func || defined __stub___$ac_func
17317 choke me
17318 #endif
17319
17320 int
17321 main ()
17322 {
17323 return $ac_func ();
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332   *) ac_try_echo=$ac_try;;
17333 esac
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335   (eval "$ac_link") 2>conftest.er1
17336   ac_status=$?
17337   grep -v '^ *+' conftest.er1 >conftest.err
17338   rm -f conftest.er1
17339   cat conftest.err >&5
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); } &&
17342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343   { (case "(($ac_try" in
17344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345   *) ac_try_echo=$ac_try;;
17346 esac
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348   (eval "$ac_try") 2>&5
17349   ac_status=$?
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); }; } &&
17352          { ac_try='test -s conftest$ac_exeext'
17353   { (case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358   (eval "$ac_try") 2>&5
17359   ac_status=$?
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); }; }; then
17362   eval "$as_ac_var=yes"
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367         eval "$as_ac_var=no"
17368 fi
17369
17370 rm -f core conftest.err conftest.$ac_objext \
17371       conftest$ac_exeext conftest.$ac_ext
17372 fi
17373 ac_res=`eval echo '${'$as_ac_var'}'`
17374                { echo "$as_me:$LINENO: result: $ac_res" >&5
17375 echo "${ECHO_T}$ac_res" >&6; }
17376 if test `eval echo '${'$as_ac_var'}'` = yes; then
17377   cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17379 _ACEOF
17380
17381 fi
17382 done
17383
17384
17385
17386
17387
17388
17389
17390
17391 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17392 do
17393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17397   echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399   cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h.  */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h.  */
17405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17407 #define $ac_func innocuous_$ac_func
17408
17409 /* System header to define __stub macros and hopefully few prototypes,
17410     which can conflict with char $ac_func (); below.
17411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17412     <limits.h> exists even on freestanding compilers.  */
17413
17414 #ifdef __STDC__
17415 # include <limits.h>
17416 #else
17417 # include <assert.h>
17418 #endif
17419
17420 #undef $ac_func
17421
17422 /* Override any GCC internal prototype to avoid an error.
17423    Use char because int might match the return type of a GCC
17424    builtin and then its argument prototype would still apply.  */
17425 #ifdef __cplusplus
17426 extern "C"
17427 #endif
17428 char $ac_func ();
17429 /* The GNU C library defines this for functions which it implements
17430     to always fail with ENOSYS.  Some functions are actually named
17431     something starting with __ and the normal name is an alias.  */
17432 #if defined __stub_$ac_func || defined __stub___$ac_func
17433 choke me
17434 #endif
17435
17436 int
17437 main ()
17438 {
17439 return $ac_func ();
17440   ;
17441   return 0;
17442 }
17443 _ACEOF
17444 rm -f conftest.$ac_objext conftest$ac_exeext
17445 if { (ac_try="$ac_link"
17446 case "(($ac_try" in
17447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448   *) ac_try_echo=$ac_try;;
17449 esac
17450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451   (eval "$ac_link") 2>conftest.er1
17452   ac_status=$?
17453   grep -v '^ *+' conftest.er1 >conftest.err
17454   rm -f conftest.er1
17455   cat conftest.err >&5
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); } &&
17458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17459   { (case "(($ac_try" in
17460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461   *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464   (eval "$ac_try") 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); }; } &&
17468          { ac_try='test -s conftest$ac_exeext'
17469   { (case "(($ac_try" in
17470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471   *) ac_try_echo=$ac_try;;
17472 esac
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474   (eval "$ac_try") 2>&5
17475   ac_status=$?
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); }; }; then
17478   eval "$as_ac_var=yes"
17479 else
17480   echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17482
17483         eval "$as_ac_var=no"
17484 fi
17485
17486 rm -f core conftest.err conftest.$ac_objext \
17487       conftest$ac_exeext conftest.$ac_ext
17488 fi
17489 ac_res=`eval echo '${'$as_ac_var'}'`
17490                { echo "$as_me:$LINENO: result: $ac_res" >&5
17491 echo "${ECHO_T}$ac_res" >&6; }
17492 if test `eval echo '${'$as_ac_var'}'` = yes; then
17493   cat >>confdefs.h <<_ACEOF
17494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17495 _ACEOF
17496
17497 fi
17498 done
17499
17500
17501
17502
17503 for ac_func in strerror strerror_r setenv
17504 do
17505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17509   echo $ECHO_N "(cached) $ECHO_C" >&6
17510 else
17511   cat >conftest.$ac_ext <<_ACEOF
17512 /* confdefs.h.  */
17513 _ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h.  */
17517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17519 #define $ac_func innocuous_$ac_func
17520
17521 /* System header to define __stub macros and hopefully few prototypes,
17522     which can conflict with char $ac_func (); below.
17523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17524     <limits.h> exists even on freestanding compilers.  */
17525
17526 #ifdef __STDC__
17527 # include <limits.h>
17528 #else
17529 # include <assert.h>
17530 #endif
17531
17532 #undef $ac_func
17533
17534 /* Override any GCC internal prototype to avoid an error.
17535    Use char because int might match the return type of a GCC
17536    builtin and then its argument prototype would still apply.  */
17537 #ifdef __cplusplus
17538 extern "C"
17539 #endif
17540 char $ac_func ();
17541 /* The GNU C library defines this for functions which it implements
17542     to always fail with ENOSYS.  Some functions are actually named
17543     something starting with __ and the normal name is an alias.  */
17544 #if defined __stub_$ac_func || defined __stub___$ac_func
17545 choke me
17546 #endif
17547
17548 int
17549 main ()
17550 {
17551 return $ac_func ();
17552   ;
17553   return 0;
17554 }
17555 _ACEOF
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (ac_try="$ac_link"
17558 case "(($ac_try" in
17559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560   *) ac_try_echo=$ac_try;;
17561 esac
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563   (eval "$ac_link") 2>conftest.er1
17564   ac_status=$?
17565   grep -v '^ *+' conftest.er1 >conftest.err
17566   rm -f conftest.er1
17567   cat conftest.err >&5
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); } &&
17570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17571   { (case "(($ac_try" in
17572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573   *) ac_try_echo=$ac_try;;
17574 esac
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576   (eval "$ac_try") 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; } &&
17580          { ac_try='test -s conftest$ac_exeext'
17581   { (case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_try") 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; }; then
17590   eval "$as_ac_var=yes"
17591 else
17592   echo "$as_me: failed program was:" >&5
17593 sed 's/^/| /' conftest.$ac_ext >&5
17594
17595         eval "$as_ac_var=no"
17596 fi
17597
17598 rm -f core conftest.err conftest.$ac_objext \
17599       conftest$ac_exeext conftest.$ac_ext
17600 fi
17601 ac_res=`eval echo '${'$as_ac_var'}'`
17602                { echo "$as_me:$LINENO: result: $ac_res" >&5
17603 echo "${ECHO_T}$ac_res" >&6; }
17604 if test `eval echo '${'$as_ac_var'}'` = yes; then
17605   cat >>confdefs.h <<_ACEOF
17606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17607 _ACEOF
17608
17609 fi
17610 done
17611
17612
17613
17614
17615
17616 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17617 do
17618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624   cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17632 #define $ac_func innocuous_$ac_func
17633
17634 /* System header to define __stub macros and hopefully few prototypes,
17635     which can conflict with char $ac_func (); below.
17636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17637     <limits.h> exists even on freestanding compilers.  */
17638
17639 #ifdef __STDC__
17640 # include <limits.h>
17641 #else
17642 # include <assert.h>
17643 #endif
17644
17645 #undef $ac_func
17646
17647 /* Override any GCC internal prototype to avoid an error.
17648    Use char because int might match the return type of a GCC
17649    builtin and then its argument prototype would still apply.  */
17650 #ifdef __cplusplus
17651 extern "C"
17652 #endif
17653 char $ac_func ();
17654 /* The GNU C library defines this for functions which it implements
17655     to always fail with ENOSYS.  Some functions are actually named
17656     something starting with __ and the normal name is an alias.  */
17657 #if defined __stub_$ac_func || defined __stub___$ac_func
17658 choke me
17659 #endif
17660
17661 int
17662 main ()
17663 {
17664 return $ac_func ();
17665   ;
17666   return 0;
17667 }
17668 _ACEOF
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (ac_try="$ac_link"
17671 case "(($ac_try" in
17672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673   *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676   (eval "$ac_link") 2>conftest.er1
17677   ac_status=$?
17678   grep -v '^ *+' conftest.er1 >conftest.err
17679   rm -f conftest.er1
17680   cat conftest.err >&5
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); } &&
17683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17684   { (case "(($ac_try" in
17685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686   *) ac_try_echo=$ac_try;;
17687 esac
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689   (eval "$ac_try") 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; } &&
17693          { ac_try='test -s conftest$ac_exeext'
17694   { (case "(($ac_try" in
17695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696   *) ac_try_echo=$ac_try;;
17697 esac
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699   (eval "$ac_try") 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; }; then
17703   eval "$as_ac_var=yes"
17704 else
17705   echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708         eval "$as_ac_var=no"
17709 fi
17710
17711 rm -f core conftest.err conftest.$ac_objext \
17712       conftest$ac_exeext conftest.$ac_ext
17713 fi
17714 ac_res=`eval echo '${'$as_ac_var'}'`
17715                { echo "$as_me:$LINENO: result: $ac_res" >&5
17716 echo "${ECHO_T}$ac_res" >&6; }
17717 if test `eval echo '${'$as_ac_var'}'` = yes; then
17718   cat >>confdefs.h <<_ACEOF
17719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17720 _ACEOF
17721
17722 fi
17723 done
17724
17725
17726
17727
17728
17729
17730 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17731 do
17732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17733 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17736   echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738   cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h.  */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h.  */
17744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17746 #define $ac_func innocuous_$ac_func
17747
17748 /* System header to define __stub macros and hopefully few prototypes,
17749     which can conflict with char $ac_func (); below.
17750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17751     <limits.h> exists even on freestanding compilers.  */
17752
17753 #ifdef __STDC__
17754 # include <limits.h>
17755 #else
17756 # include <assert.h>
17757 #endif
17758
17759 #undef $ac_func
17760
17761 /* Override any GCC internal prototype to avoid an error.
17762    Use char because int might match the return type of a GCC
17763    builtin and then its argument prototype would still apply.  */
17764 #ifdef __cplusplus
17765 extern "C"
17766 #endif
17767 char $ac_func ();
17768 /* The GNU C library defines this for functions which it implements
17769     to always fail with ENOSYS.  Some functions are actually named
17770     something starting with __ and the normal name is an alias.  */
17771 #if defined __stub_$ac_func || defined __stub___$ac_func
17772 choke me
17773 #endif
17774
17775 int
17776 main ()
17777 {
17778 return $ac_func ();
17779   ;
17780   return 0;
17781 }
17782 _ACEOF
17783 rm -f conftest.$ac_objext conftest$ac_exeext
17784 if { (ac_try="$ac_link"
17785 case "(($ac_try" in
17786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787   *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790   (eval "$ac_link") 2>conftest.er1
17791   ac_status=$?
17792   grep -v '^ *+' conftest.er1 >conftest.err
17793   rm -f conftest.er1
17794   cat conftest.err >&5
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); } &&
17797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17798   { (case "(($ac_try" in
17799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800   *) ac_try_echo=$ac_try;;
17801 esac
17802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803   (eval "$ac_try") 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); }; } &&
17807          { ac_try='test -s conftest$ac_exeext'
17808   { (case "(($ac_try" in
17809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810   *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813   (eval "$ac_try") 2>&5
17814   ac_status=$?
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); }; }; then
17817   eval "$as_ac_var=yes"
17818 else
17819   echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17821
17822         eval "$as_ac_var=no"
17823 fi
17824
17825 rm -f core conftest.err conftest.$ac_objext \
17826       conftest$ac_exeext conftest.$ac_ext
17827 fi
17828 ac_res=`eval echo '${'$as_ac_var'}'`
17829                { echo "$as_me:$LINENO: result: $ac_res" >&5
17830 echo "${ECHO_T}$ac_res" >&6; }
17831 if test `eval echo '${'$as_ac_var'}'` = yes; then
17832   cat >>confdefs.h <<_ACEOF
17833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17834 _ACEOF
17835
17836 fi
17837 done
17838
17839 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17840 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17841 if test "${llvm_cv_c_printf_a+set}" = set; then
17842   echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844   ac_ext=c
17845 ac_cpp='$CPP $CPPFLAGS'
17846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17849
17850  if test "$cross_compiling" = yes; then
17851   llvmac_cv_c_printf_a=no
17852 else
17853   cat >conftest.$ac_ext <<_ACEOF
17854
17855   /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860
17861 #include <stdio.h>
17862 #include <stdlib.h>
17863
17864 int
17865 main ()
17866 {
17867
17868 volatile double A, B;
17869 char Buffer[100];
17870 A = 1;
17871 A /= 10.0;
17872 sprintf(Buffer, "%a", A);
17873 B = atof(Buffer);
17874 if (A != B)
17875   return (1);
17876 if (A != 0x1.999999999999ap-4)
17877   return (1);
17878 return (0);
17879   ;
17880   return 0;
17881 }
17882 _ACEOF
17883 rm -f conftest$ac_exeext
17884 if { (ac_try="$ac_link"
17885 case "(($ac_try" in
17886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887   *) ac_try_echo=$ac_try;;
17888 esac
17889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890   (eval "$ac_link") 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17894   { (case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899   (eval "$ac_try") 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; }; then
17903   llvm_cv_c_printf_a=yes
17904 else
17905   echo "$as_me: program exited with status $ac_status" >&5
17906 echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17908
17909 ( exit $ac_status )
17910 llvmac_cv_c_printf_a=no
17911 fi
17912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17913 fi
17914
17915
17916  ac_ext=c
17917 ac_cpp='$CPP $CPPFLAGS'
17918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17921
17922 fi
17923 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17924 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17925  if test "$llvm_cv_c_printf_a" = "yes"; then
17926
17927 cat >>confdefs.h <<\_ACEOF
17928 #define HAVE_PRINTF_A 1
17929 _ACEOF
17930
17931  fi
17932
17933
17934 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17935 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17936 if test "${ac_cv_func_rand48+set}" = set; then
17937   echo $ECHO_N "(cached) $ECHO_C" >&6
17938 else
17939   ac_ext=cpp
17940 ac_cpp='$CXXCPP $CPPFLAGS'
17941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17944
17945    cat >conftest.$ac_ext <<_ACEOF
17946 /* confdefs.h.  */
17947 _ACEOF
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h.  */
17951 #include <stdlib.h>
17952 int
17953 main ()
17954 {
17955 srand48(0);lrand48();drand48();
17956   ;
17957   return 0;
17958 }
17959 _ACEOF
17960 rm -f conftest.$ac_objext
17961 if { (ac_try="$ac_compile"
17962 case "(($ac_try" in
17963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964   *) ac_try_echo=$ac_try;;
17965 esac
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967   (eval "$ac_compile") 2>conftest.er1
17968   ac_status=$?
17969   grep -v '^ *+' conftest.er1 >conftest.err
17970   rm -f conftest.er1
17971   cat conftest.err >&5
17972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); } &&
17974          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17975   { (case "(($ac_try" in
17976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977   *) ac_try_echo=$ac_try;;
17978 esac
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980   (eval "$ac_try") 2>&5
17981   ac_status=$?
17982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); }; } &&
17984          { ac_try='test -s conftest.$ac_objext'
17985   { (case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_try") 2>&5
17991   ac_status=$?
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); }; }; then
17994   ac_cv_func_rand48=yes
17995 else
17996   echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999         ac_cv_func_rand48=no
18000 fi
18001
18002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18003   ac_ext=c
18004 ac_cpp='$CPP $CPPFLAGS'
18005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18008
18009 fi
18010 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18011 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18012
18013 if test "$ac_cv_func_rand48" = "yes" ; then
18014
18015 cat >>confdefs.h <<\_ACEOF
18016 #define HAVE_RAND48 1
18017 _ACEOF
18018
18019 fi
18020
18021
18022 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18023 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18024 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18025   echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027   cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033 $ac_includes_default
18034 int
18035 main ()
18036 {
18037 #ifndef strerror_s
18038   char *p = (char *) strerror_s;
18039   return !p;
18040 #endif
18041
18042   ;
18043   return 0;
18044 }
18045 _ACEOF
18046 rm -f conftest.$ac_objext
18047 if { (ac_try="$ac_compile"
18048 case "(($ac_try" in
18049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050   *) ac_try_echo=$ac_try;;
18051 esac
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053   (eval "$ac_compile") 2>conftest.er1
18054   ac_status=$?
18055   grep -v '^ *+' conftest.er1 >conftest.err
18056   rm -f conftest.er1
18057   cat conftest.err >&5
18058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059   (exit $ac_status); } &&
18060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18061   { (case "(($ac_try" in
18062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063   *) ac_try_echo=$ac_try;;
18064 esac
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066   (eval "$ac_try") 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; } &&
18070          { ac_try='test -s conftest.$ac_objext'
18071   { (case "(($ac_try" in
18072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073   *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076   (eval "$ac_try") 2>&5
18077   ac_status=$?
18078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079   (exit $ac_status); }; }; then
18080   ac_cv_have_decl_strerror_s=yes
18081 else
18082   echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18084
18085         ac_cv_have_decl_strerror_s=no
18086 fi
18087
18088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089 fi
18090 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18091 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18092 if test $ac_cv_have_decl_strerror_s = yes; then
18093
18094 cat >>confdefs.h <<_ACEOF
18095 #define HAVE_DECL_STRERROR_S 1
18096 _ACEOF
18097
18098
18099 else
18100   cat >>confdefs.h <<_ACEOF
18101 #define HAVE_DECL_STRERROR_S 0
18102 _ACEOF
18103
18104
18105 fi
18106
18107
18108
18109 if test "$llvm_cv_os_type" = "MingW" ; then
18110   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18111 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18112 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18113   echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115   ac_check_lib_save_LIBS=$LIBS
18116 LIBS="-lgcc  $LIBS"
18117 cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h.  */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h.  */
18123
18124 /* Override any GCC internal prototype to avoid an error.
18125    Use char because int might match the return type of a GCC
18126    builtin and then its argument prototype would still apply.  */
18127 #ifdef __cplusplus
18128 extern "C"
18129 #endif
18130 char _alloca ();
18131 int
18132 main ()
18133 {
18134 return _alloca ();
18135   ;
18136   return 0;
18137 }
18138 _ACEOF
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143   *) ac_try_echo=$ac_try;;
18144 esac
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146   (eval "$ac_link") 2>conftest.er1
18147   ac_status=$?
18148   grep -v '^ *+' conftest.er1 >conftest.err
18149   rm -f conftest.er1
18150   cat conftest.err >&5
18151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); } &&
18153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154   { (case "(($ac_try" in
18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156   *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159   (eval "$ac_try") 2>&5
18160   ac_status=$?
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); }; } &&
18163          { ac_try='test -s conftest$ac_exeext'
18164   { (case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169   (eval "$ac_try") 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; }; then
18173   ac_cv_lib_gcc__alloca=yes
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178         ac_cv_lib_gcc__alloca=no
18179 fi
18180
18181 rm -f core conftest.err conftest.$ac_objext \
18182       conftest$ac_exeext conftest.$ac_ext
18183 LIBS=$ac_check_lib_save_LIBS
18184 fi
18185 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18186 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18187 if test $ac_cv_lib_gcc__alloca = yes; then
18188
18189 cat >>confdefs.h <<\_ACEOF
18190 #define HAVE__ALLOCA 1
18191 _ACEOF
18192
18193 fi
18194
18195   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18196 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18197 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18198   echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200   ac_check_lib_save_LIBS=$LIBS
18201 LIBS="-lgcc  $LIBS"
18202 cat >conftest.$ac_ext <<_ACEOF
18203 /* confdefs.h.  */
18204 _ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h.  */
18208
18209 /* Override any GCC internal prototype to avoid an error.
18210    Use char because int might match the return type of a GCC
18211    builtin and then its argument prototype would still apply.  */
18212 #ifdef __cplusplus
18213 extern "C"
18214 #endif
18215 char __alloca ();
18216 int
18217 main ()
18218 {
18219 return __alloca ();
18220   ;
18221   return 0;
18222 }
18223 _ACEOF
18224 rm -f conftest.$ac_objext conftest$ac_exeext
18225 if { (ac_try="$ac_link"
18226 case "(($ac_try" in
18227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228   *) ac_try_echo=$ac_try;;
18229 esac
18230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231   (eval "$ac_link") 2>conftest.er1
18232   ac_status=$?
18233   grep -v '^ *+' conftest.er1 >conftest.err
18234   rm -f conftest.er1
18235   cat conftest.err >&5
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); } &&
18238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18239   { (case "(($ac_try" in
18240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241   *) ac_try_echo=$ac_try;;
18242 esac
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244   (eval "$ac_try") 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); }; } &&
18248          { ac_try='test -s conftest$ac_exeext'
18249   { (case "(($ac_try" in
18250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251   *) ac_try_echo=$ac_try;;
18252 esac
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254   (eval "$ac_try") 2>&5
18255   ac_status=$?
18256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257   (exit $ac_status); }; }; then
18258   ac_cv_lib_gcc___alloca=yes
18259 else
18260   echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263         ac_cv_lib_gcc___alloca=no
18264 fi
18265
18266 rm -f core conftest.err conftest.$ac_objext \
18267       conftest$ac_exeext conftest.$ac_ext
18268 LIBS=$ac_check_lib_save_LIBS
18269 fi
18270 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18271 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18272 if test $ac_cv_lib_gcc___alloca = yes; then
18273
18274 cat >>confdefs.h <<\_ACEOF
18275 #define HAVE___ALLOCA 1
18276 _ACEOF
18277
18278 fi
18279
18280   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18281 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18282 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18283   echo $ECHO_N "(cached) $ECHO_C" >&6
18284 else
18285   ac_check_lib_save_LIBS=$LIBS
18286 LIBS="-lgcc  $LIBS"
18287 cat >conftest.$ac_ext <<_ACEOF
18288 /* confdefs.h.  */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h.  */
18293
18294 /* Override any GCC internal prototype to avoid an error.
18295    Use char because int might match the return type of a GCC
18296    builtin and then its argument prototype would still apply.  */
18297 #ifdef __cplusplus
18298 extern "C"
18299 #endif
18300 char __chkstk ();
18301 int
18302 main ()
18303 {
18304 return __chkstk ();
18305   ;
18306   return 0;
18307 }
18308 _ACEOF
18309 rm -f conftest.$ac_objext conftest$ac_exeext
18310 if { (ac_try="$ac_link"
18311 case "(($ac_try" in
18312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313   *) ac_try_echo=$ac_try;;
18314 esac
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316   (eval "$ac_link") 2>conftest.er1
18317   ac_status=$?
18318   grep -v '^ *+' conftest.er1 >conftest.err
18319   rm -f conftest.er1
18320   cat conftest.err >&5
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); } &&
18323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18324   { (case "(($ac_try" in
18325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326   *) ac_try_echo=$ac_try;;
18327 esac
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329   (eval "$ac_try") 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); }; } &&
18333          { ac_try='test -s conftest$ac_exeext'
18334   { (case "(($ac_try" in
18335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336   *) ac_try_echo=$ac_try;;
18337 esac
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339   (eval "$ac_try") 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; }; then
18343   ac_cv_lib_gcc___chkstk=yes
18344 else
18345   echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18347
18348         ac_cv_lib_gcc___chkstk=no
18349 fi
18350
18351 rm -f core conftest.err conftest.$ac_objext \
18352       conftest$ac_exeext conftest.$ac_ext
18353 LIBS=$ac_check_lib_save_LIBS
18354 fi
18355 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18356 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18357 if test $ac_cv_lib_gcc___chkstk = yes; then
18358
18359 cat >>confdefs.h <<\_ACEOF
18360 #define HAVE___CHKSTK 1
18361 _ACEOF
18362
18363 fi
18364
18365   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18366 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18367 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18368   echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370   ac_check_lib_save_LIBS=$LIBS
18371 LIBS="-lgcc  $LIBS"
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h.  */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h.  */
18378
18379 /* Override any GCC internal prototype to avoid an error.
18380    Use char because int might match the return type of a GCC
18381    builtin and then its argument prototype would still apply.  */
18382 #ifdef __cplusplus
18383 extern "C"
18384 #endif
18385 char ___chkstk ();
18386 int
18387 main ()
18388 {
18389 return ___chkstk ();
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 rm -f conftest.$ac_objext conftest$ac_exeext
18395 if { (ac_try="$ac_link"
18396 case "(($ac_try" in
18397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18398   *) ac_try_echo=$ac_try;;
18399 esac
18400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18401   (eval "$ac_link") 2>conftest.er1
18402   ac_status=$?
18403   grep -v '^ *+' conftest.er1 >conftest.err
18404   rm -f conftest.er1
18405   cat conftest.err >&5
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); } &&
18408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18409   { (case "(($ac_try" in
18410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411   *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414   (eval "$ac_try") 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); }; } &&
18418          { ac_try='test -s conftest$ac_exeext'
18419   { (case "(($ac_try" in
18420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421   *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424   (eval "$ac_try") 2>&5
18425   ac_status=$?
18426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427   (exit $ac_status); }; }; then
18428   ac_cv_lib_gcc____chkstk=yes
18429 else
18430   echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18432
18433         ac_cv_lib_gcc____chkstk=no
18434 fi
18435
18436 rm -f core conftest.err conftest.$ac_objext \
18437       conftest$ac_exeext conftest.$ac_ext
18438 LIBS=$ac_check_lib_save_LIBS
18439 fi
18440 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18441 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18442 if test $ac_cv_lib_gcc____chkstk = yes; then
18443
18444 cat >>confdefs.h <<\_ACEOF
18445 #define HAVE____CHKSTK 1
18446 _ACEOF
18447
18448 fi
18449
18450
18451   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18452 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18453 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18454   echo $ECHO_N "(cached) $ECHO_C" >&6
18455 else
18456   ac_check_lib_save_LIBS=$LIBS
18457 LIBS="-lgcc  $LIBS"
18458 cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h.  */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h.  */
18464
18465 /* Override any GCC internal prototype to avoid an error.
18466    Use char because int might match the return type of a GCC
18467    builtin and then its argument prototype would still apply.  */
18468 #ifdef __cplusplus
18469 extern "C"
18470 #endif
18471 char __ashldi3 ();
18472 int
18473 main ()
18474 {
18475 return __ashldi3 ();
18476   ;
18477   return 0;
18478 }
18479 _ACEOF
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (ac_try="$ac_link"
18482 case "(($ac_try" in
18483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484   *) ac_try_echo=$ac_try;;
18485 esac
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487   (eval "$ac_link") 2>conftest.er1
18488   ac_status=$?
18489   grep -v '^ *+' conftest.er1 >conftest.err
18490   rm -f conftest.er1
18491   cat conftest.err >&5
18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493   (exit $ac_status); } &&
18494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18495   { (case "(($ac_try" in
18496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497   *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500   (eval "$ac_try") 2>&5
18501   ac_status=$?
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); }; } &&
18504          { ac_try='test -s conftest$ac_exeext'
18505   { (case "(($ac_try" in
18506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507   *) ac_try_echo=$ac_try;;
18508 esac
18509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510   (eval "$ac_try") 2>&5
18511   ac_status=$?
18512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513   (exit $ac_status); }; }; then
18514   ac_cv_lib_gcc___ashldi3=yes
18515 else
18516   echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18518
18519         ac_cv_lib_gcc___ashldi3=no
18520 fi
18521
18522 rm -f core conftest.err conftest.$ac_objext \
18523       conftest$ac_exeext conftest.$ac_ext
18524 LIBS=$ac_check_lib_save_LIBS
18525 fi
18526 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18527 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18528 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18529
18530 cat >>confdefs.h <<\_ACEOF
18531 #define HAVE___ASHLDI3 1
18532 _ACEOF
18533
18534 fi
18535
18536   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18537 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18538 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18539   echo $ECHO_N "(cached) $ECHO_C" >&6
18540 else
18541   ac_check_lib_save_LIBS=$LIBS
18542 LIBS="-lgcc  $LIBS"
18543 cat >conftest.$ac_ext <<_ACEOF
18544 /* confdefs.h.  */
18545 _ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h.  */
18549
18550 /* Override any GCC internal prototype to avoid an error.
18551    Use char because int might match the return type of a GCC
18552    builtin and then its argument prototype would still apply.  */
18553 #ifdef __cplusplus
18554 extern "C"
18555 #endif
18556 char __ashrdi3 ();
18557 int
18558 main ()
18559 {
18560 return __ashrdi3 ();
18561   ;
18562   return 0;
18563 }
18564 _ACEOF
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (ac_try="$ac_link"
18567 case "(($ac_try" in
18568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569   *) ac_try_echo=$ac_try;;
18570 esac
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572   (eval "$ac_link") 2>conftest.er1
18573   ac_status=$?
18574   grep -v '^ *+' conftest.er1 >conftest.err
18575   rm -f conftest.er1
18576   cat conftest.err >&5
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); } &&
18579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18580   { (case "(($ac_try" in
18581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582   *) ac_try_echo=$ac_try;;
18583 esac
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585   (eval "$ac_try") 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; } &&
18589          { ac_try='test -s conftest$ac_exeext'
18590   { (case "(($ac_try" in
18591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592   *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595   (eval "$ac_try") 2>&5
18596   ac_status=$?
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); }; }; then
18599   ac_cv_lib_gcc___ashrdi3=yes
18600 else
18601   echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18603
18604         ac_cv_lib_gcc___ashrdi3=no
18605 fi
18606
18607 rm -f core conftest.err conftest.$ac_objext \
18608       conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18610 fi
18611 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18612 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18613 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18614
18615 cat >>confdefs.h <<\_ACEOF
18616 #define HAVE___ASHRDI3 1
18617 _ACEOF
18618
18619 fi
18620
18621   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18622 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18623 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   ac_check_lib_save_LIBS=$LIBS
18627 LIBS="-lgcc  $LIBS"
18628 cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h.  */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h.  */
18634
18635 /* Override any GCC internal prototype to avoid an error.
18636    Use char because int might match the return type of a GCC
18637    builtin and then its argument prototype would still apply.  */
18638 #ifdef __cplusplus
18639 extern "C"
18640 #endif
18641 char __divdi3 ();
18642 int
18643 main ()
18644 {
18645 return __divdi3 ();
18646   ;
18647   return 0;
18648 }
18649 _ACEOF
18650 rm -f conftest.$ac_objext conftest$ac_exeext
18651 if { (ac_try="$ac_link"
18652 case "(($ac_try" in
18653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654   *) ac_try_echo=$ac_try;;
18655 esac
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657   (eval "$ac_link") 2>conftest.er1
18658   ac_status=$?
18659   grep -v '^ *+' conftest.er1 >conftest.err
18660   rm -f conftest.er1
18661   cat conftest.err >&5
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); } &&
18664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18665   { (case "(($ac_try" in
18666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667   *) ac_try_echo=$ac_try;;
18668 esac
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670   (eval "$ac_try") 2>&5
18671   ac_status=$?
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); }; } &&
18674          { ac_try='test -s conftest$ac_exeext'
18675   { (case "(($ac_try" in
18676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677   *) ac_try_echo=$ac_try;;
18678 esac
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680   (eval "$ac_try") 2>&5
18681   ac_status=$?
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); }; }; then
18684   ac_cv_lib_gcc___divdi3=yes
18685 else
18686   echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689         ac_cv_lib_gcc___divdi3=no
18690 fi
18691
18692 rm -f core conftest.err conftest.$ac_objext \
18693       conftest$ac_exeext conftest.$ac_ext
18694 LIBS=$ac_check_lib_save_LIBS
18695 fi
18696 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18697 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18698 if test $ac_cv_lib_gcc___divdi3 = yes; then
18699
18700 cat >>confdefs.h <<\_ACEOF
18701 #define HAVE___DIVDI3 1
18702 _ACEOF
18703
18704 fi
18705
18706   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18707 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18708 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18709   echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711   ac_check_lib_save_LIBS=$LIBS
18712 LIBS="-lgcc  $LIBS"
18713 cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h.  */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h.  */
18719
18720 /* Override any GCC internal prototype to avoid an error.
18721    Use char because int might match the return type of a GCC
18722    builtin and then its argument prototype would still apply.  */
18723 #ifdef __cplusplus
18724 extern "C"
18725 #endif
18726 char __fixdfdi ();
18727 int
18728 main ()
18729 {
18730 return __fixdfdi ();
18731   ;
18732   return 0;
18733 }
18734 _ACEOF
18735 rm -f conftest.$ac_objext conftest$ac_exeext
18736 if { (ac_try="$ac_link"
18737 case "(($ac_try" in
18738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739   *) ac_try_echo=$ac_try;;
18740 esac
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742   (eval "$ac_link") 2>conftest.er1
18743   ac_status=$?
18744   grep -v '^ *+' conftest.er1 >conftest.err
18745   rm -f conftest.er1
18746   cat conftest.err >&5
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); } &&
18749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18750   { (case "(($ac_try" in
18751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752   *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755   (eval "$ac_try") 2>&5
18756   ac_status=$?
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); }; } &&
18759          { ac_try='test -s conftest$ac_exeext'
18760   { (case "(($ac_try" in
18761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762   *) ac_try_echo=$ac_try;;
18763 esac
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765   (eval "$ac_try") 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; }; then
18769   ac_cv_lib_gcc___fixdfdi=yes
18770 else
18771   echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18773
18774         ac_cv_lib_gcc___fixdfdi=no
18775 fi
18776
18777 rm -f core conftest.err conftest.$ac_objext \
18778       conftest$ac_exeext conftest.$ac_ext
18779 LIBS=$ac_check_lib_save_LIBS
18780 fi
18781 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18782 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18783 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18784
18785 cat >>confdefs.h <<\_ACEOF
18786 #define HAVE___FIXDFDI 1
18787 _ACEOF
18788
18789 fi
18790
18791   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18792 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18793 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18794   echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796   ac_check_lib_save_LIBS=$LIBS
18797 LIBS="-lgcc  $LIBS"
18798 cat >conftest.$ac_ext <<_ACEOF
18799 /* confdefs.h.  */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h.  */
18804
18805 /* Override any GCC internal prototype to avoid an error.
18806    Use char because int might match the return type of a GCC
18807    builtin and then its argument prototype would still apply.  */
18808 #ifdef __cplusplus
18809 extern "C"
18810 #endif
18811 char __fixsfdi ();
18812 int
18813 main ()
18814 {
18815 return __fixsfdi ();
18816   ;
18817   return 0;
18818 }
18819 _ACEOF
18820 rm -f conftest.$ac_objext conftest$ac_exeext
18821 if { (ac_try="$ac_link"
18822 case "(($ac_try" in
18823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824   *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827   (eval "$ac_link") 2>conftest.er1
18828   ac_status=$?
18829   grep -v '^ *+' conftest.er1 >conftest.err
18830   rm -f conftest.er1
18831   cat conftest.err >&5
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); } &&
18834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18835   { (case "(($ac_try" in
18836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837   *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840   (eval "$ac_try") 2>&5
18841   ac_status=$?
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); }; } &&
18844          { ac_try='test -s conftest$ac_exeext'
18845   { (case "(($ac_try" in
18846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847   *) ac_try_echo=$ac_try;;
18848 esac
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850   (eval "$ac_try") 2>&5
18851   ac_status=$?
18852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853   (exit $ac_status); }; }; then
18854   ac_cv_lib_gcc___fixsfdi=yes
18855 else
18856   echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18858
18859         ac_cv_lib_gcc___fixsfdi=no
18860 fi
18861
18862 rm -f core conftest.err conftest.$ac_objext \
18863       conftest$ac_exeext conftest.$ac_ext
18864 LIBS=$ac_check_lib_save_LIBS
18865 fi
18866 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18867 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18868 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18869
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE___FIXSFDI 1
18872 _ACEOF
18873
18874 fi
18875
18876   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18877 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18878 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18879   echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881   ac_check_lib_save_LIBS=$LIBS
18882 LIBS="-lgcc  $LIBS"
18883 cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h.  */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h.  */
18889
18890 /* Override any GCC internal prototype to avoid an error.
18891    Use char because int might match the return type of a GCC
18892    builtin and then its argument prototype would still apply.  */
18893 #ifdef __cplusplus
18894 extern "C"
18895 #endif
18896 char __floatdidf ();
18897 int
18898 main ()
18899 {
18900 return __floatdidf ();
18901   ;
18902   return 0;
18903 }
18904 _ACEOF
18905 rm -f conftest.$ac_objext conftest$ac_exeext
18906 if { (ac_try="$ac_link"
18907 case "(($ac_try" in
18908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909   *) ac_try_echo=$ac_try;;
18910 esac
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912   (eval "$ac_link") 2>conftest.er1
18913   ac_status=$?
18914   grep -v '^ *+' conftest.er1 >conftest.err
18915   rm -f conftest.er1
18916   cat conftest.err >&5
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); } &&
18919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18920   { (case "(($ac_try" in
18921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922   *) ac_try_echo=$ac_try;;
18923 esac
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925   (eval "$ac_try") 2>&5
18926   ac_status=$?
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); }; } &&
18929          { ac_try='test -s conftest$ac_exeext'
18930   { (case "(($ac_try" in
18931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932   *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935   (eval "$ac_try") 2>&5
18936   ac_status=$?
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); }; }; then
18939   ac_cv_lib_gcc___floatdidf=yes
18940 else
18941   echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944         ac_cv_lib_gcc___floatdidf=no
18945 fi
18946
18947 rm -f core conftest.err conftest.$ac_objext \
18948       conftest$ac_exeext conftest.$ac_ext
18949 LIBS=$ac_check_lib_save_LIBS
18950 fi
18951 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18952 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18953 if test $ac_cv_lib_gcc___floatdidf = yes; then
18954
18955 cat >>confdefs.h <<\_ACEOF
18956 #define HAVE___FLOATDIDF 1
18957 _ACEOF
18958
18959 fi
18960
18961   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18962 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18963 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18964   echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966   ac_check_lib_save_LIBS=$LIBS
18967 LIBS="-lgcc  $LIBS"
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h.  */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h.  */
18974
18975 /* Override any GCC internal prototype to avoid an error.
18976    Use char because int might match the return type of a GCC
18977    builtin and then its argument prototype would still apply.  */
18978 #ifdef __cplusplus
18979 extern "C"
18980 #endif
18981 char __lshrdi3 ();
18982 int
18983 main ()
18984 {
18985 return __lshrdi3 ();
18986   ;
18987   return 0;
18988 }
18989 _ACEOF
18990 rm -f conftest.$ac_objext conftest$ac_exeext
18991 if { (ac_try="$ac_link"
18992 case "(($ac_try" in
18993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994   *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997   (eval "$ac_link") 2>conftest.er1
18998   ac_status=$?
18999   grep -v '^ *+' conftest.er1 >conftest.err
19000   rm -f conftest.er1
19001   cat conftest.err >&5
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); } &&
19004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19005   { (case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010   (eval "$ac_try") 2>&5
19011   ac_status=$?
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); }; } &&
19014          { ac_try='test -s conftest$ac_exeext'
19015   { (case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020   (eval "$ac_try") 2>&5
19021   ac_status=$?
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); }; }; then
19024   ac_cv_lib_gcc___lshrdi3=yes
19025 else
19026   echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19028
19029         ac_cv_lib_gcc___lshrdi3=no
19030 fi
19031
19032 rm -f core conftest.err conftest.$ac_objext \
19033       conftest$ac_exeext conftest.$ac_ext
19034 LIBS=$ac_check_lib_save_LIBS
19035 fi
19036 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19037 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19038 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19039
19040 cat >>confdefs.h <<\_ACEOF
19041 #define HAVE___LSHRDI3 1
19042 _ACEOF
19043
19044 fi
19045
19046   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19047 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19048 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19049   echo $ECHO_N "(cached) $ECHO_C" >&6
19050 else
19051   ac_check_lib_save_LIBS=$LIBS
19052 LIBS="-lgcc  $LIBS"
19053 cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h.  */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h.  */
19059
19060 /* Override any GCC internal prototype to avoid an error.
19061    Use char because int might match the return type of a GCC
19062    builtin and then its argument prototype would still apply.  */
19063 #ifdef __cplusplus
19064 extern "C"
19065 #endif
19066 char __moddi3 ();
19067 int
19068 main ()
19069 {
19070 return __moddi3 ();
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079   *) ac_try_echo=$ac_try;;
19080 esac
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082   (eval "$ac_link") 2>conftest.er1
19083   ac_status=$?
19084   grep -v '^ *+' conftest.er1 >conftest.err
19085   rm -f conftest.er1
19086   cat conftest.err >&5
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); } &&
19089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19090   { (case "(($ac_try" in
19091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092   *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095   (eval "$ac_try") 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); }; } &&
19099          { ac_try='test -s conftest$ac_exeext'
19100   { (case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105   (eval "$ac_try") 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); }; }; then
19109   ac_cv_lib_gcc___moddi3=yes
19110 else
19111   echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19113
19114         ac_cv_lib_gcc___moddi3=no
19115 fi
19116
19117 rm -f core conftest.err conftest.$ac_objext \
19118       conftest$ac_exeext conftest.$ac_ext
19119 LIBS=$ac_check_lib_save_LIBS
19120 fi
19121 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19122 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19123 if test $ac_cv_lib_gcc___moddi3 = yes; then
19124
19125 cat >>confdefs.h <<\_ACEOF
19126 #define HAVE___MODDI3 1
19127 _ACEOF
19128
19129 fi
19130
19131   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19132 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19133 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19134   echo $ECHO_N "(cached) $ECHO_C" >&6
19135 else
19136   ac_check_lib_save_LIBS=$LIBS
19137 LIBS="-lgcc  $LIBS"
19138 cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h.  */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h.  */
19144
19145 /* Override any GCC internal prototype to avoid an error.
19146    Use char because int might match the return type of a GCC
19147    builtin and then its argument prototype would still apply.  */
19148 #ifdef __cplusplus
19149 extern "C"
19150 #endif
19151 char __udivdi3 ();
19152 int
19153 main ()
19154 {
19155 return __udivdi3 ();
19156   ;
19157   return 0;
19158 }
19159 _ACEOF
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (ac_try="$ac_link"
19162 case "(($ac_try" in
19163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164   *) ac_try_echo=$ac_try;;
19165 esac
19166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19167   (eval "$ac_link") 2>conftest.er1
19168   ac_status=$?
19169   grep -v '^ *+' conftest.er1 >conftest.err
19170   rm -f conftest.er1
19171   cat conftest.err >&5
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); } &&
19174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19175   { (case "(($ac_try" in
19176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177   *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180   (eval "$ac_try") 2>&5
19181   ac_status=$?
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); }; } &&
19184          { ac_try='test -s conftest$ac_exeext'
19185   { (case "(($ac_try" in
19186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187   *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190   (eval "$ac_try") 2>&5
19191   ac_status=$?
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); }; }; then
19194   ac_cv_lib_gcc___udivdi3=yes
19195 else
19196   echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19198
19199         ac_cv_lib_gcc___udivdi3=no
19200 fi
19201
19202 rm -f core conftest.err conftest.$ac_objext \
19203       conftest$ac_exeext conftest.$ac_ext
19204 LIBS=$ac_check_lib_save_LIBS
19205 fi
19206 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19207 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19208 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19209
19210 cat >>confdefs.h <<\_ACEOF
19211 #define HAVE___UDIVDI3 1
19212 _ACEOF
19213
19214 fi
19215
19216   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19217 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19218 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19219   echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221   ac_check_lib_save_LIBS=$LIBS
19222 LIBS="-lgcc  $LIBS"
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h.  */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h.  */
19229
19230 /* Override any GCC internal prototype to avoid an error.
19231    Use char because int might match the return type of a GCC
19232    builtin and then its argument prototype would still apply.  */
19233 #ifdef __cplusplus
19234 extern "C"
19235 #endif
19236 char __umoddi3 ();
19237 int
19238 main ()
19239 {
19240 return __umoddi3 ();
19241   ;
19242   return 0;
19243 }
19244 _ACEOF
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (ac_try="$ac_link"
19247 case "(($ac_try" in
19248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249   *) ac_try_echo=$ac_try;;
19250 esac
19251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252   (eval "$ac_link") 2>conftest.er1
19253   ac_status=$?
19254   grep -v '^ *+' conftest.er1 >conftest.err
19255   rm -f conftest.er1
19256   cat conftest.err >&5
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); } &&
19259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19260   { (case "(($ac_try" in
19261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262   *) ac_try_echo=$ac_try;;
19263 esac
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265   (eval "$ac_try") 2>&5
19266   ac_status=$?
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); }; } &&
19269          { ac_try='test -s conftest$ac_exeext'
19270   { (case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_try") 2>&5
19276   ac_status=$?
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   (exit $ac_status); }; }; then
19279   ac_cv_lib_gcc___umoddi3=yes
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284         ac_cv_lib_gcc___umoddi3=no
19285 fi
19286
19287 rm -f core conftest.err conftest.$ac_objext \
19288       conftest$ac_exeext conftest.$ac_ext
19289 LIBS=$ac_check_lib_save_LIBS
19290 fi
19291 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19292 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19293 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19294
19295 cat >>confdefs.h <<\_ACEOF
19296 #define HAVE___UMODDI3 1
19297 _ACEOF
19298
19299 fi
19300
19301
19302   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19303 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19304 if test "${ac_cv_lib_gcc___main+set}" = set; then
19305   echo $ECHO_N "(cached) $ECHO_C" >&6
19306 else
19307   ac_check_lib_save_LIBS=$LIBS
19308 LIBS="-lgcc  $LIBS"
19309 cat >conftest.$ac_ext <<_ACEOF
19310 /* confdefs.h.  */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h.  */
19315
19316 /* Override any GCC internal prototype to avoid an error.
19317    Use char because int might match the return type of a GCC
19318    builtin and then its argument prototype would still apply.  */
19319 #ifdef __cplusplus
19320 extern "C"
19321 #endif
19322 char __main ();
19323 int
19324 main ()
19325 {
19326 return __main ();
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 rm -f conftest.$ac_objext conftest$ac_exeext
19332 if { (ac_try="$ac_link"
19333 case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338   (eval "$ac_link") 2>conftest.er1
19339   ac_status=$?
19340   grep -v '^ *+' conftest.er1 >conftest.err
19341   rm -f conftest.er1
19342   cat conftest.err >&5
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); } &&
19345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19346   { (case "(($ac_try" in
19347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19348   *) ac_try_echo=$ac_try;;
19349 esac
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351   (eval "$ac_try") 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; } &&
19355          { ac_try='test -s conftest$ac_exeext'
19356   { (case "(($ac_try" in
19357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358   *) ac_try_echo=$ac_try;;
19359 esac
19360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19361   (eval "$ac_try") 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; }; then
19365   ac_cv_lib_gcc___main=yes
19366 else
19367   echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370         ac_cv_lib_gcc___main=no
19371 fi
19372
19373 rm -f core conftest.err conftest.$ac_objext \
19374       conftest$ac_exeext conftest.$ac_ext
19375 LIBS=$ac_check_lib_save_LIBS
19376 fi
19377 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19378 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19379 if test $ac_cv_lib_gcc___main = yes; then
19380
19381 cat >>confdefs.h <<\_ACEOF
19382 #define HAVE___MAIN 1
19383 _ACEOF
19384
19385 fi
19386
19387   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19388 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19389 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19390   echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392   ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-lgcc  $LIBS"
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400
19401 /* Override any GCC internal prototype to avoid an error.
19402    Use char because int might match the return type of a GCC
19403    builtin and then its argument prototype would still apply.  */
19404 #ifdef __cplusplus
19405 extern "C"
19406 #endif
19407 char __cmpdi2 ();
19408 int
19409 main ()
19410 {
19411 return __cmpdi2 ();
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (ac_try="$ac_link"
19418 case "(($ac_try" in
19419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420   *) ac_try_echo=$ac_try;;
19421 esac
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423   (eval "$ac_link") 2>conftest.er1
19424   ac_status=$?
19425   grep -v '^ *+' conftest.er1 >conftest.err
19426   rm -f conftest.er1
19427   cat conftest.err >&5
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); } &&
19430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19431   { (case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_try") 2>&5
19437   ac_status=$?
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); }; } &&
19440          { ac_try='test -s conftest$ac_exeext'
19441   { (case "(($ac_try" in
19442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443   *) ac_try_echo=$ac_try;;
19444 esac
19445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446   (eval "$ac_try") 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; }; then
19450   ac_cv_lib_gcc___cmpdi2=yes
19451 else
19452   echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19454
19455         ac_cv_lib_gcc___cmpdi2=no
19456 fi
19457
19458 rm -f core conftest.err conftest.$ac_objext \
19459       conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19461 fi
19462 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19463 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19464 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19465
19466 cat >>confdefs.h <<\_ACEOF
19467 #define HAVE___CMPDI2 1
19468 _ACEOF
19469
19470 fi
19471
19472 fi
19473
19474 if test "$llvm_cv_os_type" = "MingW" ; then
19475   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19476 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19477   cat >conftest.$ac_ext <<_ACEOF
19478 #include <windows.h>
19479 #include <imagehlp.h>
19480 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19481 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
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_c_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
19518   { echo "$as_me:$LINENO: result: yes" >&5
19519 echo "${ECHO_T}yes" >&6; }
19520   llvm_cv_win32_elmcb_pcstr="PCSTR"
19521
19522 else
19523   echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526
19527   { echo "$as_me:$LINENO: result: no" >&5
19528 echo "${ECHO_T}no" >&6; }
19529   llvm_cv_win32_elmcb_pcstr="PSTR"
19530
19531 fi
19532
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19534
19535 cat >>confdefs.h <<_ACEOF
19536 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19537 _ACEOF
19538
19539 fi
19540
19541
19542 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19543 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19544 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547   ac_ext=cpp
19548 ac_cpp='$CXXCPP $CPPFLAGS'
19549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19552
19553    cat >conftest.$ac_ext <<_ACEOF
19554 /* confdefs.h.  */
19555 _ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h.  */
19559 #include <math.h>
19560 int
19561 main ()
19562 {
19563 float f; isnan(f);
19564   ;
19565   return 0;
19566 }
19567 _ACEOF
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_compile") 2>conftest.er1
19576   ac_status=$?
19577   grep -v '^ *+' conftest.er1 >conftest.err
19578   rm -f conftest.er1
19579   cat conftest.err >&5
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); } &&
19582          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19583   { (case "(($ac_try" in
19584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585   *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588   (eval "$ac_try") 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; } &&
19592          { ac_try='test -s conftest.$ac_objext'
19593   { (case "(($ac_try" in
19594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595   *) ac_try_echo=$ac_try;;
19596 esac
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598   (eval "$ac_try") 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; }; then
19602   ac_cv_func_isnan_in_math_h=yes
19603 else
19604   echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19606
19607         ac_cv_func_isnan_in_math_h=no
19608 fi
19609
19610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19611   ac_ext=c
19612 ac_cpp='$CPP $CPPFLAGS'
19613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19616
19617 fi
19618 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19619 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19620
19621
19622 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19623
19624 cat >>confdefs.h <<\_ACEOF
19625 #define HAVE_ISNAN_IN_MATH_H 1
19626 _ACEOF
19627
19628 fi
19629
19630 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19631 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19632 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19633   echo $ECHO_N "(cached) $ECHO_C" >&6
19634 else
19635   ac_ext=cpp
19636 ac_cpp='$CXXCPP $CPPFLAGS'
19637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19640
19641    cat >conftest.$ac_ext <<_ACEOF
19642 /* confdefs.h.  */
19643 _ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h.  */
19647 #include <cmath>
19648 int
19649 main ()
19650 {
19651 float f; isnan(f);
19652   ;
19653   return 0;
19654 }
19655 _ACEOF
19656 rm -f conftest.$ac_objext
19657 if { (ac_try="$ac_compile"
19658 case "(($ac_try" in
19659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660   *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663   (eval "$ac_compile") 2>conftest.er1
19664   ac_status=$?
19665   grep -v '^ *+' conftest.er1 >conftest.err
19666   rm -f conftest.er1
19667   cat conftest.err >&5
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } &&
19670          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19671   { (case "(($ac_try" in
19672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673   *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676   (eval "$ac_try") 2>&5
19677   ac_status=$?
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); }; } &&
19680          { ac_try='test -s conftest.$ac_objext'
19681   { (case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_try") 2>&5
19687   ac_status=$?
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); }; }; then
19690   ac_cv_func_isnan_in_cmath=yes
19691 else
19692   echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19694
19695         ac_cv_func_isnan_in_cmath=no
19696 fi
19697
19698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19699   ac_ext=c
19700 ac_cpp='$CPP $CPPFLAGS'
19701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19704
19705 fi
19706 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19707 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19708
19709 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19710
19711 cat >>confdefs.h <<\_ACEOF
19712 #define HAVE_ISNAN_IN_CMATH 1
19713 _ACEOF
19714
19715 fi
19716
19717 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19718 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19719 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19720   echo $ECHO_N "(cached) $ECHO_C" >&6
19721 else
19722   ac_ext=cpp
19723 ac_cpp='$CXXCPP $CPPFLAGS'
19724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19727
19728    cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734 #include <cmath>
19735 int
19736 main ()
19737 {
19738 float f; std::isnan(f);
19739   ;
19740   return 0;
19741 }
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (ac_try="$ac_compile"
19745 case "(($ac_try" in
19746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747   *) ac_try_echo=$ac_try;;
19748 esac
19749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19750   (eval "$ac_compile") 2>conftest.er1
19751   ac_status=$?
19752   grep -v '^ *+' conftest.er1 >conftest.err
19753   rm -f conftest.er1
19754   cat conftest.err >&5
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); } &&
19757          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19758   { (case "(($ac_try" in
19759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760   *) ac_try_echo=$ac_try;;
19761 esac
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763   (eval "$ac_try") 2>&5
19764   ac_status=$?
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); }; } &&
19767          { ac_try='test -s conftest.$ac_objext'
19768   { (case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_try") 2>&5
19774   ac_status=$?
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); }; }; then
19777   ac_cv_func_std_isnan_in_cmath=yes
19778 else
19779   echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19781
19782         ac_cv_func_std_isnan_in_cmath=no
19783 fi
19784
19785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19786   ac_ext=c
19787 ac_cpp='$CPP $CPPFLAGS'
19788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19791
19792 fi
19793 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19794 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19795
19796 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19797
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE_STD_ISNAN_IN_CMATH 1
19800 _ACEOF
19801
19802 fi
19803
19804
19805 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19806 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19807 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19808   echo $ECHO_N "(cached) $ECHO_C" >&6
19809 else
19810   ac_ext=cpp
19811 ac_cpp='$CXXCPP $CPPFLAGS'
19812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19815
19816    cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h.  */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h.  */
19822 #include <math.h>
19823 int
19824 main ()
19825 {
19826 float f; isinf(f);
19827   ;
19828   return 0;
19829 }
19830 _ACEOF
19831 rm -f conftest.$ac_objext
19832 if { (ac_try="$ac_compile"
19833 case "(($ac_try" in
19834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835   *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838   (eval "$ac_compile") 2>conftest.er1
19839   ac_status=$?
19840   grep -v '^ *+' conftest.er1 >conftest.err
19841   rm -f conftest.er1
19842   cat conftest.err >&5
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); } &&
19845          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19846   { (case "(($ac_try" in
19847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848   *) ac_try_echo=$ac_try;;
19849 esac
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851   (eval "$ac_try") 2>&5
19852   ac_status=$?
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); }; } &&
19855          { ac_try='test -s conftest.$ac_objext'
19856   { (case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_try") 2>&5
19862   ac_status=$?
19863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864   (exit $ac_status); }; }; then
19865   ac_cv_func_isinf_in_math_h=yes
19866 else
19867   echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870         ac_cv_func_isinf_in_math_h=no
19871 fi
19872
19873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19874   ac_ext=c
19875 ac_cpp='$CPP $CPPFLAGS'
19876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19879
19880 fi
19881 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19882 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19883
19884 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19885
19886 cat >>confdefs.h <<\_ACEOF
19887 #define HAVE_ISINF_IN_MATH_H 1
19888 _ACEOF
19889
19890 fi
19891
19892 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19893 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19894 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19895   echo $ECHO_N "(cached) $ECHO_C" >&6
19896 else
19897   ac_ext=cpp
19898 ac_cpp='$CXXCPP $CPPFLAGS'
19899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19902
19903    cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h.  */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h.  */
19909 #include <cmath>
19910 int
19911 main ()
19912 {
19913 float f; isinf(f);
19914   ;
19915   return 0;
19916 }
19917 _ACEOF
19918 rm -f conftest.$ac_objext
19919 if { (ac_try="$ac_compile"
19920 case "(($ac_try" in
19921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922   *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925   (eval "$ac_compile") 2>conftest.er1
19926   ac_status=$?
19927   grep -v '^ *+' conftest.er1 >conftest.err
19928   rm -f conftest.er1
19929   cat conftest.err >&5
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); } &&
19932          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19933   { (case "(($ac_try" in
19934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935   *) ac_try_echo=$ac_try;;
19936 esac
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938   (eval "$ac_try") 2>&5
19939   ac_status=$?
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); }; } &&
19942          { ac_try='test -s conftest.$ac_objext'
19943   { (case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948   (eval "$ac_try") 2>&5
19949   ac_status=$?
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); }; }; then
19952   ac_cv_func_isinf_in_cmath=yes
19953 else
19954   echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957         ac_cv_func_isinf_in_cmath=no
19958 fi
19959
19960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19961   ac_ext=c
19962 ac_cpp='$CPP $CPPFLAGS'
19963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19966
19967 fi
19968 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19969 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19970
19971 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19972
19973 cat >>confdefs.h <<\_ACEOF
19974 #define HAVE_ISINF_IN_CMATH 1
19975 _ACEOF
19976
19977 fi
19978
19979 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19980 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19981 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   ac_ext=cpp
19985 ac_cpp='$CXXCPP $CPPFLAGS'
19986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19989
19990    cat >conftest.$ac_ext <<_ACEOF
19991 /* confdefs.h.  */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h.  */
19996 #include <cmath>
19997 int
19998 main ()
19999 {
20000 float f; std::isinf(f);
20001   ;
20002   return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext
20006 if { (ac_try="$ac_compile"
20007 case "(($ac_try" in
20008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20009   *) ac_try_echo=$ac_try;;
20010 esac
20011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20012   (eval "$ac_compile") 2>conftest.er1
20013   ac_status=$?
20014   grep -v '^ *+' conftest.er1 >conftest.err
20015   rm -f conftest.er1
20016   cat conftest.err >&5
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); } &&
20019          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20020   { (case "(($ac_try" in
20021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022   *) ac_try_echo=$ac_try;;
20023 esac
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025   (eval "$ac_try") 2>&5
20026   ac_status=$?
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); }; } &&
20029          { ac_try='test -s conftest.$ac_objext'
20030   { (case "(($ac_try" in
20031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032   *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035   (eval "$ac_try") 2>&5
20036   ac_status=$?
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); }; }; then
20039   ac_cv_func_std_isinf_in_cmath=yes
20040 else
20041   echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044         ac_cv_func_std_isinf_in_cmath=no
20045 fi
20046
20047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20048   ac_ext=c
20049 ac_cpp='$CPP $CPPFLAGS'
20050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20053
20054 fi
20055 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20056 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20057
20058 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20059
20060 cat >>confdefs.h <<\_ACEOF
20061 #define HAVE_STD_ISINF_IN_CMATH 1
20062 _ACEOF
20063
20064 fi
20065
20066 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20067 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20068 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20069   echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071   ac_ext=cpp
20072 ac_cpp='$CXXCPP $CPPFLAGS'
20073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20076
20077    cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h.  */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h.  */
20083 #include <ieeefp.h>
20084 int
20085 main ()
20086 {
20087 float f; finite(f);
20088   ;
20089   return 0;
20090 }
20091 _ACEOF
20092 rm -f conftest.$ac_objext
20093 if { (ac_try="$ac_compile"
20094 case "(($ac_try" in
20095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096   *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099   (eval "$ac_compile") 2>conftest.er1
20100   ac_status=$?
20101   grep -v '^ *+' conftest.er1 >conftest.err
20102   rm -f conftest.er1
20103   cat conftest.err >&5
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); } &&
20106          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20107   { (case "(($ac_try" in
20108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109   *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112   (eval "$ac_try") 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; } &&
20116          { ac_try='test -s conftest.$ac_objext'
20117   { (case "(($ac_try" in
20118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119   *) ac_try_echo=$ac_try;;
20120 esac
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122   (eval "$ac_try") 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); }; }; then
20126   ac_cv_func_finite_in_ieeefp_h=yes
20127 else
20128   echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131         ac_cv_func_finite_in_ieeefp_h=no
20132 fi
20133
20134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20135   ac_ext=c
20136 ac_cpp='$CPP $CPPFLAGS'
20137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20140
20141 fi
20142 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20143 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20144
20145 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20146
20147 cat >>confdefs.h <<\_ACEOF
20148 #define HAVE_FINITE_IN_IEEEFP_H 1
20149 _ACEOF
20150
20151 fi
20152
20153
20154
20155 if test "$llvm_cv_platform_type" = "Unix" ; then
20156
20157
20158 for ac_header in stdlib.h unistd.h
20159 do
20160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20162   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20165   echo $ECHO_N "(cached) $ECHO_C" >&6
20166 fi
20167 ac_res=`eval echo '${'$as_ac_Header'}'`
20168                { echo "$as_me:$LINENO: result: $ac_res" >&5
20169 echo "${ECHO_T}$ac_res" >&6; }
20170 else
20171   # Is the header compilable?
20172 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20174 cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h.  */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h.  */
20180 $ac_includes_default
20181 #include <$ac_header>
20182 _ACEOF
20183 rm -f conftest.$ac_objext
20184 if { (ac_try="$ac_compile"
20185 case "(($ac_try" in
20186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187   *) ac_try_echo=$ac_try;;
20188 esac
20189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190   (eval "$ac_compile") 2>conftest.er1
20191   ac_status=$?
20192   grep -v '^ *+' conftest.er1 >conftest.err
20193   rm -f conftest.er1
20194   cat conftest.err >&5
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } &&
20197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20198   { (case "(($ac_try" in
20199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200   *) ac_try_echo=$ac_try;;
20201 esac
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203   (eval "$ac_try") 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); }; } &&
20207          { ac_try='test -s conftest.$ac_objext'
20208   { (case "(($ac_try" in
20209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210   *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213   (eval "$ac_try") 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; }; then
20217   ac_header_compiler=yes
20218 else
20219   echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20221
20222         ac_header_compiler=no
20223 fi
20224
20225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20227 echo "${ECHO_T}$ac_header_compiler" >&6; }
20228
20229 # Is the header present?
20230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 #include <$ac_header>
20239 _ACEOF
20240 if { (ac_try="$ac_cpp conftest.$ac_ext"
20241 case "(($ac_try" in
20242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243   *) ac_try_echo=$ac_try;;
20244 esac
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20247   ac_status=$?
20248   grep -v '^ *+' conftest.er1 >conftest.err
20249   rm -f conftest.er1
20250   cat conftest.err >&5
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); } >/dev/null; then
20253   if test -s conftest.err; then
20254     ac_cpp_err=$ac_c_preproc_warn_flag
20255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20256   else
20257     ac_cpp_err=
20258   fi
20259 else
20260   ac_cpp_err=yes
20261 fi
20262 if test -z "$ac_cpp_err"; then
20263   ac_header_preproc=yes
20264 else
20265   echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268   ac_header_preproc=no
20269 fi
20270
20271 rm -f conftest.err conftest.$ac_ext
20272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20273 echo "${ECHO_T}$ac_header_preproc" >&6; }
20274
20275 # So?  What about this header?
20276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20277   yes:no: )
20278     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20282     ac_header_preproc=yes
20283     ;;
20284   no:yes:* )
20285     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20287     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20288 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20289     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20291     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20292 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20295     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20297     ( cat <<\_ASBOX
20298 ## ------------------------------------ ##
20299 ## Report this to http://llvm.org/bugs/ ##
20300 ## ------------------------------------ ##
20301 _ASBOX
20302      ) | sed "s/^/$as_me: WARNING:     /" >&2
20303     ;;
20304 esac
20305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20308   echo $ECHO_N "(cached) $ECHO_C" >&6
20309 else
20310   eval "$as_ac_Header=\$ac_header_preproc"
20311 fi
20312 ac_res=`eval echo '${'$as_ac_Header'}'`
20313                { echo "$as_me:$LINENO: result: $ac_res" >&5
20314 echo "${ECHO_T}$ac_res" >&6; }
20315
20316 fi
20317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20318   cat >>confdefs.h <<_ACEOF
20319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20320 _ACEOF
20321
20322 fi
20323
20324 done
20325
20326
20327 for ac_func in getpagesize
20328 do
20329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20333   echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335   cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h.  */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h.  */
20341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20343 #define $ac_func innocuous_$ac_func
20344
20345 /* System header to define __stub macros and hopefully few prototypes,
20346     which can conflict with char $ac_func (); below.
20347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20348     <limits.h> exists even on freestanding compilers.  */
20349
20350 #ifdef __STDC__
20351 # include <limits.h>
20352 #else
20353 # include <assert.h>
20354 #endif
20355
20356 #undef $ac_func
20357
20358 /* Override any GCC internal prototype to avoid an error.
20359    Use char because int might match the return type of a GCC
20360    builtin and then its argument prototype would still apply.  */
20361 #ifdef __cplusplus
20362 extern "C"
20363 #endif
20364 char $ac_func ();
20365 /* The GNU C library defines this for functions which it implements
20366     to always fail with ENOSYS.  Some functions are actually named
20367     something starting with __ and the normal name is an alias.  */
20368 #if defined __stub_$ac_func || defined __stub___$ac_func
20369 choke me
20370 #endif
20371
20372 int
20373 main ()
20374 {
20375 return $ac_func ();
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384   *) ac_try_echo=$ac_try;;
20385 esac
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387   (eval "$ac_link") 2>conftest.er1
20388   ac_status=$?
20389   grep -v '^ *+' conftest.er1 >conftest.err
20390   rm -f conftest.er1
20391   cat conftest.err >&5
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); } &&
20394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20395   { (case "(($ac_try" in
20396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397   *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400   (eval "$ac_try") 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; } &&
20404          { ac_try='test -s conftest$ac_exeext'
20405   { (case "(($ac_try" in
20406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407   *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410   (eval "$ac_try") 2>&5
20411   ac_status=$?
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; }; then
20414   eval "$as_ac_var=yes"
20415 else
20416   echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419         eval "$as_ac_var=no"
20420 fi
20421
20422 rm -f core conftest.err conftest.$ac_objext \
20423       conftest$ac_exeext conftest.$ac_ext
20424 fi
20425 ac_res=`eval echo '${'$as_ac_var'}'`
20426                { echo "$as_me:$LINENO: result: $ac_res" >&5
20427 echo "${ECHO_T}$ac_res" >&6; }
20428 if test `eval echo '${'$as_ac_var'}'` = yes; then
20429   cat >>confdefs.h <<_ACEOF
20430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20431 _ACEOF
20432
20433 fi
20434 done
20435
20436 { echo "$as_me:$LINENO: checking for working mmap" >&5
20437 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20438 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20439   echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441   if test "$cross_compiling" = yes; then
20442   ac_cv_func_mmap_fixed_mapped=no
20443 else
20444   cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h.  */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h.  */
20450 $ac_includes_default
20451 /* malloc might have been renamed as rpl_malloc. */
20452 #undef malloc
20453
20454 /* Thanks to Mike Haertel and Jim Avera for this test.
20455    Here is a matrix of mmap possibilities:
20456         mmap private not fixed
20457         mmap private fixed at somewhere currently unmapped
20458         mmap private fixed at somewhere already mapped
20459         mmap shared not fixed
20460         mmap shared fixed at somewhere currently unmapped
20461         mmap shared fixed at somewhere already mapped
20462    For private mappings, we should verify that changes cannot be read()
20463    back from the file, nor mmap's back from the file at a different
20464    address.  (There have been systems where private was not correctly
20465    implemented like the infamous i386 svr4.0, and systems where the
20466    VM page cache was not coherent with the file system buffer cache
20467    like early versions of FreeBSD and possibly contemporary NetBSD.)
20468    For shared mappings, we should conversely verify that changes get
20469    propagated back to all the places they're supposed to be.
20470
20471    Grep wants private fixed already mapped.
20472    The main things grep needs to know about mmap are:
20473    * does it exist and is it safe to write into the mmap'd area
20474    * how to use it (BSD variants)  */
20475
20476 #include <fcntl.h>
20477 #include <sys/mman.h>
20478
20479 #if !STDC_HEADERS && !HAVE_STDLIB_H
20480 char *malloc ();
20481 #endif
20482
20483 /* This mess was copied from the GNU getpagesize.h.  */
20484 #if !HAVE_GETPAGESIZE
20485 /* Assume that all systems that can run configure have sys/param.h.  */
20486 # if !HAVE_SYS_PARAM_H
20487 #  define HAVE_SYS_PARAM_H 1
20488 # endif
20489
20490 # ifdef _SC_PAGESIZE
20491 #  define getpagesize() sysconf(_SC_PAGESIZE)
20492 # else /* no _SC_PAGESIZE */
20493 #  if HAVE_SYS_PARAM_H
20494 #   include <sys/param.h>
20495 #   ifdef EXEC_PAGESIZE
20496 #    define getpagesize() EXEC_PAGESIZE
20497 #   else /* no EXEC_PAGESIZE */
20498 #    ifdef NBPG
20499 #     define getpagesize() NBPG * CLSIZE
20500 #     ifndef CLSIZE
20501 #      define CLSIZE 1
20502 #     endif /* no CLSIZE */
20503 #    else /* no NBPG */
20504 #     ifdef NBPC
20505 #      define getpagesize() NBPC
20506 #     else /* no NBPC */
20507 #      ifdef PAGESIZE
20508 #       define getpagesize() PAGESIZE
20509 #      endif /* PAGESIZE */
20510 #     endif /* no NBPC */
20511 #    endif /* no NBPG */
20512 #   endif /* no EXEC_PAGESIZE */
20513 #  else /* no HAVE_SYS_PARAM_H */
20514 #   define getpagesize() 8192   /* punt totally */
20515 #  endif /* no HAVE_SYS_PARAM_H */
20516 # endif /* no _SC_PAGESIZE */
20517
20518 #endif /* no HAVE_GETPAGESIZE */
20519
20520 int
20521 main ()
20522 {
20523   char *data, *data2, *data3;
20524   int i, pagesize;
20525   int fd;
20526
20527   pagesize = getpagesize ();
20528
20529   /* First, make a file with some known garbage in it. */
20530   data = (char *) malloc (pagesize);
20531   if (!data)
20532     return 1;
20533   for (i = 0; i < pagesize; ++i)
20534     *(data + i) = rand ();
20535   umask (0);
20536   fd = creat ("conftest.mmap", 0600);
20537   if (fd < 0)
20538     return 1;
20539   if (write (fd, data, pagesize) != pagesize)
20540     return 1;
20541   close (fd);
20542
20543   /* Next, try to mmap the file at a fixed address which already has
20544      something else allocated at it.  If we can, also make sure that
20545      we see the same garbage.  */
20546   fd = open ("conftest.mmap", O_RDWR);
20547   if (fd < 0)
20548     return 1;
20549   data2 = (char *) malloc (2 * pagesize);
20550   if (!data2)
20551     return 1;
20552   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20553   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20554                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20555     return 1;
20556   for (i = 0; i < pagesize; ++i)
20557     if (*(data + i) != *(data2 + i))
20558       return 1;
20559
20560   /* Finally, make sure that changes to the mapped area do not
20561      percolate back to the file as seen by read().  (This is a bug on
20562      some variants of i386 svr4.0.)  */
20563   for (i = 0; i < pagesize; ++i)
20564     *(data2 + i) = *(data2 + i) + 1;
20565   data3 = (char *) malloc (pagesize);
20566   if (!data3)
20567     return 1;
20568   if (read (fd, data3, pagesize) != pagesize)
20569     return 1;
20570   for (i = 0; i < pagesize; ++i)
20571     if (*(data + i) != *(data3 + i))
20572       return 1;
20573   close (fd);
20574   return 0;
20575 }
20576 _ACEOF
20577 rm -f conftest$ac_exeext
20578 if { (ac_try="$ac_link"
20579 case "(($ac_try" in
20580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581   *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584   (eval "$ac_link") 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20588   { (case "(($ac_try" in
20589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590   *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593   (eval "$ac_try") 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; }; then
20597   ac_cv_func_mmap_fixed_mapped=yes
20598 else
20599   echo "$as_me: program exited with status $ac_status" >&5
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20602
20603 ( exit $ac_status )
20604 ac_cv_func_mmap_fixed_mapped=no
20605 fi
20606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20607 fi
20608
20609
20610 fi
20611 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20612 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20613 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20614
20615 cat >>confdefs.h <<\_ACEOF
20616 #define HAVE_MMAP 1
20617 _ACEOF
20618
20619 fi
20620 rm -f conftest.mmap
20621
20622   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20623 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20624 if test "${ac_cv_func_mmap_file+set}" = set; then
20625   echo $ECHO_N "(cached) $ECHO_C" >&6
20626 else
20627    ac_ext=c
20628 ac_cpp='$CPP $CPPFLAGS'
20629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20632
20633   if test "$cross_compiling" = yes; then
20634   ac_cv_func_mmap_file=no
20635 else
20636   cat >conftest.$ac_ext <<_ACEOF
20637
20638     /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643
20644 #include <sys/types.h>
20645 #include <sys/mman.h>
20646 #include <fcntl.h>
20647
20648 int
20649 main ()
20650 {
20651
20652   int fd;
20653   fd = creat ("foo",0777);
20654   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20655   unlink ("foo");
20656   return (fd != (int) MAP_FAILED);
20657   ;
20658   return 0;
20659 }
20660 _ACEOF
20661 rm -f conftest$ac_exeext
20662 if { (ac_try="$ac_link"
20663 case "(($ac_try" in
20664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665   *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668   (eval "$ac_link") 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20672   { (case "(($ac_try" in
20673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674   *) ac_try_echo=$ac_try;;
20675 esac
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677   (eval "$ac_try") 2>&5
20678   ac_status=$?
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); }; }; then
20681   ac_cv_func_mmap_file=yes
20682 else
20683   echo "$as_me: program exited with status $ac_status" >&5
20684 echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20686
20687 ( exit $ac_status )
20688 ac_cv_func_mmap_file=no
20689 fi
20690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20691 fi
20692
20693
20694   ac_ext=c
20695 ac_cpp='$CPP $CPPFLAGS'
20696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20699
20700
20701 fi
20702 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20703 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20704 if test "$ac_cv_func_mmap_file" = yes; then
20705
20706 cat >>confdefs.h <<\_ACEOF
20707 #define HAVE_MMAP_FILE
20708 _ACEOF
20709
20710    MMAP_FILE=yes
20711
20712 fi
20713
20714   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20715 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20716 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20717   echo $ECHO_N "(cached) $ECHO_C" >&6
20718 else
20719   if test "$llvm_cv_os_type" = "Interix" ; then
20720    ac_cv_need_dev_zero_for_mmap=yes
20721  else
20722    ac_cv_need_dev_zero_for_mmap=no
20723  fi
20724
20725 fi
20726 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20727 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20728 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20729
20730 cat >>confdefs.h <<\_ACEOF
20731 #define NEED_DEV_ZERO_FOR_MMAP 1
20732 _ACEOF
20733
20734 fi
20735
20736   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20737   then
20738     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20739 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20740   fi
20741   if test "$ac_cv_func_mmap_file" = "no"
20742   then
20743     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20744 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20745   fi
20746 fi
20747
20748 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20749 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20750 ac_ext=cpp
20751 ac_cpp='$CXXCPP $CPPFLAGS'
20752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20755
20756 cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h.  */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h.  */
20762 int main() {
20763         volatile unsigned long val = 1;
20764         __sync_synchronize();
20765         __sync_val_compare_and_swap(&val, 1, 0);
20766         __sync_add_and_fetch(&val, 1);
20767         __sync_sub_and_fetch(&val, 1);
20768         return 0;
20769       }
20770
20771 _ACEOF
20772 rm -f conftest.$ac_objext conftest$ac_exeext
20773 if { (ac_try="$ac_link"
20774 case "(($ac_try" in
20775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776   *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779   (eval "$ac_link") 2>conftest.er1
20780   ac_status=$?
20781   grep -v '^ *+' conftest.er1 >conftest.err
20782   rm -f conftest.er1
20783   cat conftest.err >&5
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); } &&
20786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20787   { (case "(($ac_try" in
20788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789   *) ac_try_echo=$ac_try;;
20790 esac
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792   (eval "$ac_try") 2>&5
20793   ac_status=$?
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); }; } &&
20796          { ac_try='test -s conftest$ac_exeext'
20797   { (case "(($ac_try" in
20798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799   *) ac_try_echo=$ac_try;;
20800 esac
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802   (eval "$ac_try") 2>&5
20803   ac_status=$?
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); }; }; then
20806   ac_ext=c
20807 ac_cpp='$CPP $CPPFLAGS'
20808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20811
20812   { echo "$as_me:$LINENO: result: yes" >&5
20813 echo "${ECHO_T}yes" >&6; }
20814
20815 cat >>confdefs.h <<\_ACEOF
20816 #define LLVM_HAS_ATOMICS 1
20817 _ACEOF
20818
20819 else
20820   echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20822
20823         { echo "$as_me:$LINENO: result: no" >&5
20824 echo "${ECHO_T}no" >&6; }
20825
20826 cat >>confdefs.h <<\_ACEOF
20827 #define LLVM_HAS_ATOMICS 0
20828 _ACEOF
20829
20830   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20831 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20832 fi
20833
20834 rm -f core conftest.err conftest.$ac_objext \
20835       conftest$ac_exeext conftest.$ac_ext
20836
20837
20838 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20839   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20840 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20841 if test "${llvm_cv_linux_mixed+set}" = set; then
20842   echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844    ac_ext=c
20845 ac_cpp='$CPP $CPPFLAGS'
20846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20849
20850   cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h.  */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h.  */
20856 #ifndef __x86_64__
20857        error: Not x86-64 even if uname says so!
20858       #endif
20859
20860 int
20861 main ()
20862 {
20863
20864   ;
20865   return 0;
20866 }
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_compile") 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } &&
20882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20883   { (case "(($ac_try" in
20884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885   *) ac_try_echo=$ac_try;;
20886 esac
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888   (eval "$ac_try") 2>&5
20889   ac_status=$?
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); }; } &&
20892          { ac_try='test -s conftest.$ac_objext'
20893   { (case "(($ac_try" in
20894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895   *) ac_try_echo=$ac_try;;
20896 esac
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898   (eval "$ac_try") 2>&5
20899   ac_status=$?
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); }; }; then
20902   llvm_cv_linux_mixed=no
20903 else
20904   echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20906
20907         llvm_cv_linux_mixed=yes
20908 fi
20909
20910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20911   ac_ext=c
20912 ac_cpp='$CPP $CPPFLAGS'
20913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20916
20917
20918 fi
20919 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20920 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20921
20922   if test "$llvm_cv_linux_mixed" = "yes"; then
20923     llvm_cv_target_arch="x86"
20924     ARCH="x86"
20925   fi
20926 fi
20927
20928
20929 for ac_func in __dso_handle
20930 do
20931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20935   echo $ECHO_N "(cached) $ECHO_C" >&6
20936 else
20937   cat >conftest.$ac_ext <<_ACEOF
20938 /* confdefs.h.  */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h.  */
20943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20945 #define $ac_func innocuous_$ac_func
20946
20947 /* System header to define __stub macros and hopefully few prototypes,
20948     which can conflict with char $ac_func (); below.
20949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20950     <limits.h> exists even on freestanding compilers.  */
20951
20952 #ifdef __STDC__
20953 # include <limits.h>
20954 #else
20955 # include <assert.h>
20956 #endif
20957
20958 #undef $ac_func
20959
20960 /* Override any GCC internal prototype to avoid an error.
20961    Use char because int might match the return type of a GCC
20962    builtin and then its argument prototype would still apply.  */
20963 #ifdef __cplusplus
20964 extern "C"
20965 #endif
20966 char $ac_func ();
20967 /* The GNU C library defines this for functions which it implements
20968     to always fail with ENOSYS.  Some functions are actually named
20969     something starting with __ and the normal name is an alias.  */
20970 #if defined __stub_$ac_func || defined __stub___$ac_func
20971 choke me
20972 #endif
20973
20974 int
20975 main ()
20976 {
20977 return $ac_func ();
20978   ;
20979   return 0;
20980 }
20981 _ACEOF
20982 rm -f conftest.$ac_objext conftest$ac_exeext
20983 if { (ac_try="$ac_link"
20984 case "(($ac_try" in
20985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986   *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989   (eval "$ac_link") 2>conftest.er1
20990   ac_status=$?
20991   grep -v '^ *+' conftest.er1 >conftest.err
20992   rm -f conftest.er1
20993   cat conftest.err >&5
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); } &&
20996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20997   { (case "(($ac_try" in
20998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999   *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002   (eval "$ac_try") 2>&5
21003   ac_status=$?
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); }; } &&
21006          { ac_try='test -s conftest$ac_exeext'
21007   { (case "(($ac_try" in
21008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009   *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012   (eval "$ac_try") 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); }; }; then
21016   eval "$as_ac_var=yes"
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021         eval "$as_ac_var=no"
21022 fi
21023
21024 rm -f core conftest.err conftest.$ac_objext \
21025       conftest$ac_exeext conftest.$ac_ext
21026 fi
21027 ac_res=`eval echo '${'$as_ac_var'}'`
21028                { echo "$as_me:$LINENO: result: $ac_res" >&5
21029 echo "${ECHO_T}$ac_res" >&6; }
21030 if test `eval echo '${'$as_ac_var'}'` = yes; then
21031   cat >>confdefs.h <<_ACEOF
21032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21033 _ACEOF
21034
21035 fi
21036 done
21037
21038
21039 SHLIBEXT=$libltdl_cv_shlibext
21040
21041
21042 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21043
21044
21045 if test "${prefix}" = "NONE" ; then
21046   prefix="/usr/local"
21047 fi
21048 eval LLVM_PREFIX="${prefix}";
21049 eval LLVM_BINDIR="${prefix}/bin";
21050 eval LLVM_LIBDIR="${prefix}/lib";
21051 eval LLVM_DATADIR="${prefix}/share/llvm";
21052 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21053 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21054 eval LLVM_INCLUDEDIR="${prefix}/include";
21055 eval LLVM_INFODIR="${prefix}/info";
21056 eval LLVM_MANDIR="${prefix}/man";
21057 LLVM_CONFIGTIME=`date`
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21070   LLVM_CONFIGTIME="(timestamp not enabled)"
21071 fi
21072
21073
21074 cat >>confdefs.h <<_ACEOF
21075 #define LLVM_PREFIX "$LLVM_PREFIX"
21076 _ACEOF
21077
21078
21079 cat >>confdefs.h <<_ACEOF
21080 #define LLVM_BINDIR "$LLVM_BINDIR"
21081 _ACEOF
21082
21083
21084 cat >>confdefs.h <<_ACEOF
21085 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21086 _ACEOF
21087
21088
21089 cat >>confdefs.h <<_ACEOF
21090 #define LLVM_DATADIR "$LLVM_DATADIR"
21091 _ACEOF
21092
21093
21094 cat >>confdefs.h <<_ACEOF
21095 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21096 _ACEOF
21097
21098
21099 cat >>confdefs.h <<_ACEOF
21100 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21101 _ACEOF
21102
21103
21104 cat >>confdefs.h <<_ACEOF
21105 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21106 _ACEOF
21107
21108
21109 cat >>confdefs.h <<_ACEOF
21110 #define LLVM_INFODIR "$LLVM_INFODIR"
21111 _ACEOF
21112
21113
21114 cat >>confdefs.h <<_ACEOF
21115 #define LLVM_MANDIR "$LLVM_MANDIR"
21116 _ACEOF
21117
21118
21119 cat >>confdefs.h <<_ACEOF
21120 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21121 _ACEOF
21122
21123
21124 cat >>confdefs.h <<_ACEOF
21125 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21126 _ACEOF
21127
21128
21129 if test "$BINDINGS_TO_BUILD" = auto ; then
21130   BINDINGS_TO_BUILD=""
21131   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21132     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21133   fi
21134 fi
21135 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21136
21137
21138 ALL_BINDINGS=ocaml
21139
21140
21141 binding_prereqs_failed=0
21142 for a_binding in $BINDINGS_TO_BUILD ; do
21143   case "$a_binding" in
21144   ocaml)
21145     if test "x$OCAMLC" = x ; then
21146       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21147 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21148       binding_prereqs_failed=1
21149     fi
21150     if test "x$OCAMLDEP" = x ; then
21151       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21152 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21153       binding_prereqs_failed=1
21154     fi
21155     if test "x$OCAMLOPT" = x ; then
21156       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21157 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21158           fi
21159     if test "x$with_ocaml_libdir" != xauto ; then
21160       OCAML_LIBDIR=$with_ocaml_libdir
21161
21162     else
21163       ocaml_stdlib="`"$OCAMLC" -where`"
21164       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21165       then
21166         # ocaml stdlib is beneath our prefix; use stdlib
21167         OCAML_LIBDIR=$ocaml_stdlib
21168
21169       else
21170         # ocaml stdlib is outside our prefix; use libdir/ocaml
21171         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21172
21173       fi
21174     fi
21175     ;;
21176   esac
21177 done
21178 if test "$binding_prereqs_failed" = 1 ; then
21179   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21180 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21181    { (exit 1); exit 1; }; }
21182 fi
21183
21184 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21185 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21186 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21187   echo $ECHO_N "(cached) $ECHO_C" >&6
21188 else
21189    ac_ext=cpp
21190 ac_cpp='$CXXCPP $CPPFLAGS'
21191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21194
21195   oldcxxflags="$CXXFLAGS"
21196   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21197   cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21204 int
21205 main ()
21206 {
21207 X<int>().f();
21208   ;
21209   return 0;
21210 }
21211 _ACEOF
21212 rm -f conftest.$ac_objext
21213 if { (ac_try="$ac_compile"
21214 case "(($ac_try" in
21215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216   *) ac_try_echo=$ac_try;;
21217 esac
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219   (eval "$ac_compile") 2>conftest.er1
21220   ac_status=$?
21221   grep -v '^ *+' conftest.er1 >conftest.err
21222   rm -f conftest.er1
21223   cat conftest.err >&5
21224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225   (exit $ac_status); } &&
21226          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21227   { (case "(($ac_try" in
21228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229   *) ac_try_echo=$ac_try;;
21230 esac
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232   (eval "$ac_try") 2>&5
21233   ac_status=$?
21234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235   (exit $ac_status); }; } &&
21236          { ac_try='test -s conftest.$ac_objext'
21237   { (case "(($ac_try" in
21238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239   *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242   (eval "$ac_try") 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); }; }; then
21246   llvm_cv_cxx_visibility_inlines_hidden=yes
21247 else
21248   echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21250
21251         llvm_cv_cxx_visibility_inlines_hidden=no
21252 fi
21253
21254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21255   CXXFLAGS="$oldcxxflags"
21256   ac_ext=c
21257 ac_cpp='$CPP $CPPFLAGS'
21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261
21262
21263 fi
21264 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21265 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21266 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21267   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21268
21269 else
21270   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21271
21272 fi
21273
21274
21275 if test "$llvm_cv_link_use_r" = "yes" ; then
21276   RPATH="-Wl,-R"
21277 else
21278   RPATH="-Wl,-rpath"
21279 fi
21280
21281
21282 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21283   RDYNAMIC="-Wl,-export-dynamic"
21284 else
21285   RDYNAMIC=""
21286 fi
21287
21288
21289
21290 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21291
21292
21293
21294
21295
21296
21297 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21298
21299 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21300
21301 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21302
21303 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21304
21305 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21306
21307
21308 ac_config_files="$ac_config_files Makefile.config"
21309
21310
21311 ac_config_files="$ac_config_files llvm.spec"
21312
21313
21314 ac_config_files="$ac_config_files docs/doxygen.cfg"
21315
21316
21317 if test "${clang_src_root}" = ""; then
21318   clang_src_root="$srcdir/tools/clang"
21319 fi
21320 if test -f ${clang_src_root}/README.txt; then
21321     configh="include/clang/Config/config.h"
21322   doxy="docs/doxygen.cfg"
21323   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21324
21325   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21326
21327 fi
21328
21329 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21330
21331
21332 ac_config_commands="$ac_config_commands setup"
21333
21334 ac_config_commands="$ac_config_commands Makefile"
21335
21336
21337 ac_config_commands="$ac_config_commands Makefile.common"
21338
21339
21340 ac_config_commands="$ac_config_commands examples/Makefile"
21341
21342
21343 ac_config_commands="$ac_config_commands lib/Makefile"
21344
21345
21346 ac_config_commands="$ac_config_commands runtime/Makefile"
21347
21348
21349 ac_config_commands="$ac_config_commands test/Makefile"
21350
21351
21352 ac_config_commands="$ac_config_commands test/Makefile.tests"
21353
21354
21355 ac_config_commands="$ac_config_commands unittests/Makefile"
21356
21357
21358 ac_config_commands="$ac_config_commands tools/Makefile"
21359
21360
21361 ac_config_commands="$ac_config_commands utils/Makefile"
21362
21363
21364 ac_config_commands="$ac_config_commands projects/Makefile"
21365
21366
21367 ac_config_commands="$ac_config_commands bindings/Makefile"
21368
21369
21370 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21371
21372
21373
21374 cat >confcache <<\_ACEOF
21375 # This file is a shell script that caches the results of configure
21376 # tests run on this system so they can be shared between configure
21377 # scripts and configure runs, see configure's option --config-cache.
21378 # It is not useful on other systems.  If it contains results you don't
21379 # want to keep, you may remove or edit it.
21380 #
21381 # config.status only pays attention to the cache file if you give it
21382 # the --recheck option to rerun configure.
21383 #
21384 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21385 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21386 # following values.
21387
21388 _ACEOF
21389
21390 # The following way of writing the cache mishandles newlines in values,
21391 # but we know of no workaround that is simple, portable, and efficient.
21392 # So, we kill variables containing newlines.
21393 # Ultrix sh set writes to stderr and can't be redirected directly,
21394 # and sets the high bit in the cache file unless we assign to the vars.
21395 (
21396   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21397     eval ac_val=\$$ac_var
21398     case $ac_val in #(
21399     *${as_nl}*)
21400       case $ac_var in #(
21401       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21402 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21403       esac
21404       case $ac_var in #(
21405       _ | IFS | as_nl) ;; #(
21406       *) $as_unset $ac_var ;;
21407       esac ;;
21408     esac
21409   done
21410
21411   (set) 2>&1 |
21412     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21413     *${as_nl}ac_space=\ *)
21414       # `set' does not quote correctly, so add quotes (double-quote
21415       # substitution turns \\\\ into \\, and sed turns \\ into \).
21416       sed -n \
21417         "s/'/'\\\\''/g;
21418           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21419       ;; #(
21420     *)
21421       # `set' quotes correctly as required by POSIX, so do not add quotes.
21422       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21423       ;;
21424     esac |
21425     sort
21426 ) |
21427   sed '
21428      /^ac_cv_env_/b end
21429      t clear
21430      :clear
21431      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21432      t end
21433      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21434      :end' >>confcache
21435 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21436   if test -w "$cache_file"; then
21437     test "x$cache_file" != "x/dev/null" &&
21438       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21439 echo "$as_me: updating cache $cache_file" >&6;}
21440     cat confcache >$cache_file
21441   else
21442     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21443 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21444   fi
21445 fi
21446 rm -f confcache
21447
21448 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21449 # Let make expand exec_prefix.
21450 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21451
21452 DEFS=-DHAVE_CONFIG_H
21453
21454 ac_libobjs=
21455 ac_ltlibobjs=
21456 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21457   # 1. Remove the extension, and $U if already installed.
21458   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21459   ac_i=`echo "$ac_i" | sed "$ac_script"`
21460   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21461   #    will be set to the directory where LIBOBJS objects are built.
21462   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21463   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21464 done
21465 LIBOBJS=$ac_libobjs
21466
21467 LTLIBOBJS=$ac_ltlibobjs
21468
21469
21470 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21471   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21472 Usually this means the macro was only invoked conditionally." >&5
21473 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21474 Usually this means the macro was only invoked conditionally." >&2;}
21475    { (exit 1); exit 1; }; }
21476 fi
21477 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21478   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21479 Usually this means the macro was only invoked conditionally." >&5
21480 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21481 Usually this means the macro was only invoked conditionally." >&2;}
21482    { (exit 1); exit 1; }; }
21483 fi
21484
21485 : ${CONFIG_STATUS=./config.status}
21486 ac_clean_files_save=$ac_clean_files
21487 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21488 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21489 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21490 cat >$CONFIG_STATUS <<_ACEOF
21491 #! $SHELL
21492 # Generated by $as_me.
21493 # Run this file to recreate the current configuration.
21494 # Compiler output produced by configure, useful for debugging
21495 # configure, is in config.log if it exists.
21496
21497 debug=false
21498 ac_cs_recheck=false
21499 ac_cs_silent=false
21500 SHELL=\${CONFIG_SHELL-$SHELL}
21501 _ACEOF
21502
21503 cat >>$CONFIG_STATUS <<\_ACEOF
21504 ## --------------------- ##
21505 ## M4sh Initialization.  ##
21506 ## --------------------- ##
21507
21508 # Be Bourne compatible
21509 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21510   emulate sh
21511   NULLCMD=:
21512   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21513   # is contrary to our usage.  Disable this feature.
21514   alias -g '${1+"$@"}'='"$@"'
21515   setopt NO_GLOB_SUBST
21516 else
21517   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21518 fi
21519 BIN_SH=xpg4; export BIN_SH # for Tru64
21520 DUALCASE=1; export DUALCASE # for MKS sh
21521
21522
21523 # PATH needs CR
21524 # Avoid depending upon Character Ranges.
21525 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21526 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21527 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21528 as_cr_digits='0123456789'
21529 as_cr_alnum=$as_cr_Letters$as_cr_digits
21530
21531 # The user is always right.
21532 if test "${PATH_SEPARATOR+set}" != set; then
21533   echo "#! /bin/sh" >conf$$.sh
21534   echo  "exit 0"   >>conf$$.sh
21535   chmod +x conf$$.sh
21536   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21537     PATH_SEPARATOR=';'
21538   else
21539     PATH_SEPARATOR=:
21540   fi
21541   rm -f conf$$.sh
21542 fi
21543
21544 # Support unset when possible.
21545 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21546   as_unset=unset
21547 else
21548   as_unset=false
21549 fi
21550
21551
21552 # IFS
21553 # We need space, tab and new line, in precisely that order.  Quoting is
21554 # there to prevent editors from complaining about space-tab.
21555 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21556 # splitting by setting IFS to empty value.)
21557 as_nl='
21558 '
21559 IFS=" ""        $as_nl"
21560
21561 # Find who we are.  Look in the path if we contain no directory separator.
21562 case $0 in
21563   *[\\/]* ) as_myself=$0 ;;
21564   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21565 for as_dir in $PATH
21566 do
21567   IFS=$as_save_IFS
21568   test -z "$as_dir" && as_dir=.
21569   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21570 done
21571 IFS=$as_save_IFS
21572
21573      ;;
21574 esac
21575 # We did not find ourselves, most probably we were run as `sh COMMAND'
21576 # in which case we are not to be found in the path.
21577 if test "x$as_myself" = x; then
21578   as_myself=$0
21579 fi
21580 if test ! -f "$as_myself"; then
21581   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21582   { (exit 1); exit 1; }
21583 fi
21584
21585 # Work around bugs in pre-3.0 UWIN ksh.
21586 for as_var in ENV MAIL MAILPATH
21587 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21588 done
21589 PS1='$ '
21590 PS2='> '
21591 PS4='+ '
21592
21593 # NLS nuisances.
21594 for as_var in \
21595   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21596   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21597   LC_TELEPHONE LC_TIME
21598 do
21599   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21600     eval $as_var=C; export $as_var
21601   else
21602     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21603   fi
21604 done
21605
21606 # Required to use basename.
21607 if expr a : '\(a\)' >/dev/null 2>&1 &&
21608    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21609   as_expr=expr
21610 else
21611   as_expr=false
21612 fi
21613
21614 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21615   as_basename=basename
21616 else
21617   as_basename=false
21618 fi
21619
21620
21621 # Name of the executable.
21622 as_me=`$as_basename -- "$0" ||
21623 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21624          X"$0" : 'X\(//\)$' \| \
21625          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21626 echo X/"$0" |
21627     sed '/^.*\/\([^/][^/]*\)\/*$/{
21628             s//\1/
21629             q
21630           }
21631           /^X\/\(\/\/\)$/{
21632             s//\1/
21633             q
21634           }
21635           /^X\/\(\/\).*/{
21636             s//\1/
21637             q
21638           }
21639           s/.*/./; q'`
21640
21641 # CDPATH.
21642 $as_unset CDPATH
21643
21644
21645
21646   as_lineno_1=$LINENO
21647   as_lineno_2=$LINENO
21648   test "x$as_lineno_1" != "x$as_lineno_2" &&
21649   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21650
21651   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21652   # uniformly replaced by the line number.  The first 'sed' inserts a
21653   # line-number line after each line using $LINENO; the second 'sed'
21654   # does the real work.  The second script uses 'N' to pair each
21655   # line-number line with the line containing $LINENO, and appends
21656   # trailing '-' during substitution so that $LINENO is not a special
21657   # case at line end.
21658   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21659   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21660   # E. McMahon (1931-1989) for sed's syntax.  :-)
21661   sed -n '
21662     p
21663     /[$]LINENO/=
21664   ' <$as_myself |
21665     sed '
21666       s/[$]LINENO.*/&-/
21667       t lineno
21668       b
21669       :lineno
21670       N
21671       :loop
21672       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21673       t loop
21674       s/-\n.*//
21675     ' >$as_me.lineno &&
21676   chmod +x "$as_me.lineno" ||
21677     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21678    { (exit 1); exit 1; }; }
21679
21680   # Don't try to exec as it changes $[0], causing all sort of problems
21681   # (the dirname of $[0] is not the place where we might find the
21682   # original and so on.  Autoconf is especially sensitive to this).
21683   . "./$as_me.lineno"
21684   # Exit status is that of the last command.
21685   exit
21686 }
21687
21688
21689 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21690   as_dirname=dirname
21691 else
21692   as_dirname=false
21693 fi
21694
21695 ECHO_C= ECHO_N= ECHO_T=
21696 case `echo -n x` in
21697 -n*)
21698   case `echo 'x\c'` in
21699   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21700   *)   ECHO_C='\c';;
21701   esac;;
21702 *)
21703   ECHO_N='-n';;
21704 esac
21705
21706 if expr a : '\(a\)' >/dev/null 2>&1 &&
21707    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21708   as_expr=expr
21709 else
21710   as_expr=false
21711 fi
21712
21713 rm -f conf$$ conf$$.exe conf$$.file
21714 if test -d conf$$.dir; then
21715   rm -f conf$$.dir/conf$$.file
21716 else
21717   rm -f conf$$.dir
21718   mkdir conf$$.dir
21719 fi
21720 echo >conf$$.file
21721 if ln -s conf$$.file conf$$ 2>/dev/null; then
21722   as_ln_s='ln -s'
21723   # ... but there are two gotchas:
21724   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21725   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21726   # In both cases, we have to default to `cp -p'.
21727   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21728     as_ln_s='cp -p'
21729 elif ln conf$$.file conf$$ 2>/dev/null; then
21730   as_ln_s=ln
21731 else
21732   as_ln_s='cp -p'
21733 fi
21734 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21735 rmdir conf$$.dir 2>/dev/null
21736
21737 if mkdir -p . 2>/dev/null; then
21738   as_mkdir_p=:
21739 else
21740   test -d ./-p && rmdir ./-p
21741   as_mkdir_p=false
21742 fi
21743
21744 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21745 # systems may use methods other than mode bits to determine executability.
21746 cat >conf$$.file <<_ASEOF
21747 #! /bin/sh
21748 exit 0
21749 _ASEOF
21750 chmod +x conf$$.file
21751 if test -x conf$$.file >/dev/null 2>&1; then
21752   as_executable_p="test -x"
21753 else
21754   as_executable_p=:
21755 fi
21756 rm -f conf$$.file
21757
21758 # Sed expression to map a string onto a valid CPP name.
21759 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21760
21761 # Sed expression to map a string onto a valid variable name.
21762 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21763
21764
21765 exec 6>&1
21766
21767 # Save the log message, to keep $[0] and so on meaningful, and to
21768 # report actual input values of CONFIG_FILES etc. instead of their
21769 # values after options handling.
21770 ac_log="
21771 This file was extended by LLVM $as_me 3.1svn, which was
21772 generated by GNU Autoconf 2.60.  Invocation command line was
21773
21774   CONFIG_FILES    = $CONFIG_FILES
21775   CONFIG_HEADERS  = $CONFIG_HEADERS
21776   CONFIG_LINKS    = $CONFIG_LINKS
21777   CONFIG_COMMANDS = $CONFIG_COMMANDS
21778   $ $0 $@
21779
21780 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21781 "
21782
21783 _ACEOF
21784
21785 cat >>$CONFIG_STATUS <<_ACEOF
21786 # Files that config.status was made for.
21787 config_files="$ac_config_files"
21788 config_headers="$ac_config_headers"
21789 config_commands="$ac_config_commands"
21790
21791 _ACEOF
21792
21793 cat >>$CONFIG_STATUS <<\_ACEOF
21794 ac_cs_usage="\
21795 \`$as_me' instantiates files from templates according to the
21796 current configuration.
21797
21798 Usage: $0 [OPTIONS] [FILE]...
21799
21800   -h, --help       print this help, then exit
21801   -V, --version    print version number, then exit
21802   -q, --quiet      do not print progress messages
21803   -d, --debug      don't remove temporary files
21804       --recheck    update $as_me by reconfiguring in the same conditions
21805   --file=FILE[:TEMPLATE]
21806                    instantiate the configuration file FILE
21807   --header=FILE[:TEMPLATE]
21808                    instantiate the configuration header FILE
21809
21810 Configuration files:
21811 $config_files
21812
21813 Configuration headers:
21814 $config_headers
21815
21816 Configuration commands:
21817 $config_commands
21818
21819 Report bugs to <bug-autoconf@gnu.org>."
21820
21821 _ACEOF
21822 cat >>$CONFIG_STATUS <<_ACEOF
21823 ac_cs_version="\\
21824 LLVM config.status 3.1svn
21825 configured by $0, generated by GNU Autoconf 2.60,
21826   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21827
21828 Copyright (C) 2006 Free Software Foundation, Inc.
21829 This config.status script is free software; the Free Software Foundation
21830 gives unlimited permission to copy, distribute and modify it."
21831
21832 ac_pwd='$ac_pwd'
21833 srcdir='$srcdir'
21834 INSTALL='$INSTALL'
21835 _ACEOF
21836
21837 cat >>$CONFIG_STATUS <<\_ACEOF
21838 # If no file are specified by the user, then we need to provide default
21839 # value.  By we need to know if files were specified by the user.
21840 ac_need_defaults=:
21841 while test $# != 0
21842 do
21843   case $1 in
21844   --*=*)
21845     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21846     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21847     ac_shift=:
21848     ;;
21849   *)
21850     ac_option=$1
21851     ac_optarg=$2
21852     ac_shift=shift
21853     ;;
21854   esac
21855
21856   case $ac_option in
21857   # Handling of the options.
21858   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21859     ac_cs_recheck=: ;;
21860   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21861     echo "$ac_cs_version"; exit ;;
21862   --debug | --debu | --deb | --de | --d | -d )
21863     debug=: ;;
21864   --file | --fil | --fi | --f )
21865     $ac_shift
21866     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21867     ac_need_defaults=false;;
21868   --header | --heade | --head | --hea )
21869     $ac_shift
21870     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21871     ac_need_defaults=false;;
21872   --he | --h)
21873     # Conflict between --help and --header
21874     { echo "$as_me: error: ambiguous option: $1
21875 Try \`$0 --help' for more information." >&2
21876    { (exit 1); exit 1; }; };;
21877   --help | --hel | -h )
21878     echo "$ac_cs_usage"; exit ;;
21879   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21880   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21881     ac_cs_silent=: ;;
21882
21883   # This is an error.
21884   -*) { echo "$as_me: error: unrecognized option: $1
21885 Try \`$0 --help' for more information." >&2
21886    { (exit 1); exit 1; }; } ;;
21887
21888   *) ac_config_targets="$ac_config_targets $1"
21889      ac_need_defaults=false ;;
21890
21891   esac
21892   shift
21893 done
21894
21895 ac_configure_extra_args=
21896
21897 if $ac_cs_silent; then
21898   exec 6>/dev/null
21899   ac_configure_extra_args="$ac_configure_extra_args --silent"
21900 fi
21901
21902 _ACEOF
21903 cat >>$CONFIG_STATUS <<_ACEOF
21904 if \$ac_cs_recheck; then
21905   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21906   CONFIG_SHELL=$SHELL
21907   export CONFIG_SHELL
21908   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21909 fi
21910
21911 _ACEOF
21912 cat >>$CONFIG_STATUS <<\_ACEOF
21913 exec 5>>config.log
21914 {
21915   echo
21916   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21917 ## Running $as_me. ##
21918 _ASBOX
21919   echo "$ac_log"
21920 } >&5
21921
21922 _ACEOF
21923 cat >>$CONFIG_STATUS <<_ACEOF
21924 #
21925 # INIT-COMMANDS
21926 #
21927 llvm_src="${srcdir}"
21928
21929 _ACEOF
21930
21931 cat >>$CONFIG_STATUS <<\_ACEOF
21932
21933 # Handling of arguments.
21934 for ac_config_target in $ac_config_targets
21935 do
21936   case $ac_config_target in
21937     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21938     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21939     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21940     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21941     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21942     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21943     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21944     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21945     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21946     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21947     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21948     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21949     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21950     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21951     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21952     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21953     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21954     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21955     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21956     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21957     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21958     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21959     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21960     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21961     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21962     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21963     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21964
21965   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21966 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21967    { (exit 1); exit 1; }; };;
21968   esac
21969 done
21970
21971
21972 # If the user did not use the arguments to specify the items to instantiate,
21973 # then the envvar interface is used.  Set only those that are not.
21974 # We use the long form for the default assignment because of an extremely
21975 # bizarre bug on SunOS 4.1.3.
21976 if $ac_need_defaults; then
21977   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21978   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21979   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21980 fi
21981
21982 # Have a temporary directory for convenience.  Make it in the build tree
21983 # simply because there is no reason against having it here, and in addition,
21984 # creating and moving files from /tmp can sometimes cause problems.
21985 # Hook for its removal unless debugging.
21986 # Note that there is a small window in which the directory will not be cleaned:
21987 # after its creation but before its name has been assigned to `$tmp'.
21988 $debug ||
21989 {
21990   tmp=
21991   trap 'exit_status=$?
21992   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21993 ' 0
21994   trap '{ (exit 1); exit 1; }' 1 2 13 15
21995 }
21996 # Create a (secure) tmp directory for tmp files.
21997
21998 {
21999   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22000   test -n "$tmp" && test -d "$tmp"
22001 }  ||
22002 {
22003   tmp=./conf$$-$RANDOM
22004   (umask 077 && mkdir "$tmp")
22005 } ||
22006 {
22007    echo "$me: cannot create a temporary directory in ." >&2
22008    { (exit 1); exit 1; }
22009 }
22010
22011 #
22012 # Set up the sed scripts for CONFIG_FILES section.
22013 #
22014
22015 # No need to generate the scripts if there are no CONFIG_FILES.
22016 # This happens for instance when ./config.status config.h
22017 if test -n "$CONFIG_FILES"; then
22018
22019 _ACEOF
22020
22021
22022
22023 ac_delim='%!_!# '
22024 for ac_last_try in false false false false false :; do
22025   cat >conf$$subs.sed <<_ACEOF
22026 SHELL!$SHELL$ac_delim
22027 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22028 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22029 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22030 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22031 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22032 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22033 exec_prefix!$exec_prefix$ac_delim
22034 prefix!$prefix$ac_delim
22035 program_transform_name!$program_transform_name$ac_delim
22036 bindir!$bindir$ac_delim
22037 sbindir!$sbindir$ac_delim
22038 libexecdir!$libexecdir$ac_delim
22039 datarootdir!$datarootdir$ac_delim
22040 datadir!$datadir$ac_delim
22041 sysconfdir!$sysconfdir$ac_delim
22042 sharedstatedir!$sharedstatedir$ac_delim
22043 localstatedir!$localstatedir$ac_delim
22044 includedir!$includedir$ac_delim
22045 oldincludedir!$oldincludedir$ac_delim
22046 docdir!$docdir$ac_delim
22047 infodir!$infodir$ac_delim
22048 htmldir!$htmldir$ac_delim
22049 dvidir!$dvidir$ac_delim
22050 pdfdir!$pdfdir$ac_delim
22051 psdir!$psdir$ac_delim
22052 libdir!$libdir$ac_delim
22053 localedir!$localedir$ac_delim
22054 mandir!$mandir$ac_delim
22055 DEFS!$DEFS$ac_delim
22056 ECHO_C!$ECHO_C$ac_delim
22057 ECHO_N!$ECHO_N$ac_delim
22058 ECHO_T!$ECHO_T$ac_delim
22059 LIBS!$LIBS$ac_delim
22060 build_alias!$build_alias$ac_delim
22061 host_alias!$host_alias$ac_delim
22062 target_alias!$target_alias$ac_delim
22063 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22064 CC!$CC$ac_delim
22065 CFLAGS!$CFLAGS$ac_delim
22066 LDFLAGS!$LDFLAGS$ac_delim
22067 CPPFLAGS!$CPPFLAGS$ac_delim
22068 ac_ct_CC!$ac_ct_CC$ac_delim
22069 EXEEXT!$EXEEXT$ac_delim
22070 OBJEXT!$OBJEXT$ac_delim
22071 CXX!$CXX$ac_delim
22072 CXXFLAGS!$CXXFLAGS$ac_delim
22073 ac_ct_CXX!$ac_ct_CXX$ac_delim
22074 CPP!$CPP$ac_delim
22075 subdirs!$subdirs$ac_delim
22076 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22077 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22078 build!$build$ac_delim
22079 build_cpu!$build_cpu$ac_delim
22080 build_vendor!$build_vendor$ac_delim
22081 build_os!$build_os$ac_delim
22082 host!$host$ac_delim
22083 host_cpu!$host_cpu$ac_delim
22084 host_vendor!$host_vendor$ac_delim
22085 host_os!$host_os$ac_delim
22086 target!$target$ac_delim
22087 target_cpu!$target_cpu$ac_delim
22088 target_vendor!$target_vendor$ac_delim
22089 target_os!$target_os$ac_delim
22090 OS!$OS$ac_delim
22091 HOST_OS!$HOST_OS$ac_delim
22092 TARGET_OS!$TARGET_OS$ac_delim
22093 LINKALL!$LINKALL$ac_delim
22094 NOLINKALL!$NOLINKALL$ac_delim
22095 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22096 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22097 ARCH!$ARCH$ac_delim
22098 ENDIAN!$ENDIAN$ac_delim
22099 GREP!$GREP$ac_delim
22100 EGREP!$EGREP$ac_delim
22101 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22102 BUILD_CC!$BUILD_CC$ac_delim
22103 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22104 BUILD_CXX!$BUILD_CXX$ac_delim
22105 CVSBUILD!$CVSBUILD$ac_delim
22106 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22107 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22108 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22109 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22110 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22111 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22112 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22113 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22114 JIT!$JIT$ac_delim
22115 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22116 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22117 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22118 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22119 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22120 ENABLE_PIC!$ENABLE_PIC$ac_delim
22121 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22122 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22123 _ACEOF
22124
22125   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22126     break
22127   elif $ac_last_try; then
22128     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22129 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22130    { (exit 1); exit 1; }; }
22131   else
22132     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22133   fi
22134 done
22135
22136 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22137 if test -n "$ac_eof"; then
22138   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22139   ac_eof=`expr $ac_eof + 1`
22140 fi
22141
22142 cat >>$CONFIG_STATUS <<_ACEOF
22143 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22144 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22145 _ACEOF
22146 sed '
22147 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22148 s/^/s,@/; s/!/@,|#_!!_#|/
22149 :n
22150 t n
22151 s/'"$ac_delim"'$/,g/; t
22152 s/$/\\/; p
22153 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22154 ' >>$CONFIG_STATUS <conf$$subs.sed
22155 rm -f conf$$subs.sed
22156 cat >>$CONFIG_STATUS <<_ACEOF
22157 CEOF$ac_eof
22158 _ACEOF
22159
22160
22161 ac_delim='%!_!# '
22162 for ac_last_try in false false false false false :; do
22163   cat >conf$$subs.sed <<_ACEOF
22164 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22165 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22166 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22167 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22168 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22169 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22170 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22171 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22172 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22173 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22174 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22175 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22176 NM!$NM$ac_delim
22177 ifGNUmake!$ifGNUmake$ac_delim
22178 LN_S!$LN_S$ac_delim
22179 CMP!$CMP$ac_delim
22180 CP!$CP$ac_delim
22181 DATE!$DATE$ac_delim
22182 FIND!$FIND$ac_delim
22183 MKDIR!$MKDIR$ac_delim
22184 MV!$MV$ac_delim
22185 RANLIB!$RANLIB$ac_delim
22186 AR!$AR$ac_delim
22187 RM!$RM$ac_delim
22188 SED!$SED$ac_delim
22189 TAR!$TAR$ac_delim
22190 BINPWD!$BINPWD$ac_delim
22191 GRAPHVIZ!$GRAPHVIZ$ac_delim
22192 DOT!$DOT$ac_delim
22193 FDP!$FDP$ac_delim
22194 NEATO!$NEATO$ac_delim
22195 TWOPI!$TWOPI$ac_delim
22196 CIRCO!$CIRCO$ac_delim
22197 GV!$GV$ac_delim
22198 DOTTY!$DOTTY$ac_delim
22199 XDOT_PY!$XDOT_PY$ac_delim
22200 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22201 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22202 INSTALL_DATA!$INSTALL_DATA$ac_delim
22203 BZIP2!$BZIP2$ac_delim
22204 CAT!$CAT$ac_delim
22205 DOXYGEN!$DOXYGEN$ac_delim
22206 GROFF!$GROFF$ac_delim
22207 GZIPBIN!$GZIPBIN$ac_delim
22208 POD2HTML!$POD2HTML$ac_delim
22209 POD2MAN!$POD2MAN$ac_delim
22210 PDFROFF!$PDFROFF$ac_delim
22211 RUNTEST!$RUNTEST$ac_delim
22212 TCLSH!$TCLSH$ac_delim
22213 ZIP!$ZIP$ac_delim
22214 OCAMLC!$OCAMLC$ac_delim
22215 OCAMLOPT!$OCAMLOPT$ac_delim
22216 OCAMLDEP!$OCAMLDEP$ac_delim
22217 OCAMLDOC!$OCAMLDOC$ac_delim
22218 GAS!$GAS$ac_delim
22219 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22220 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22221 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22222 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22223 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22224 LIBADD_DL!$LIBADD_DL$ac_delim
22225 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22226 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22227 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22228 USE_UDIS86!$USE_UDIS86$ac_delim
22229 USE_OPROFILE!$USE_OPROFILE$ac_delim
22230 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22231 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22232 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22233 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22234 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22235 MMAP_FILE!$MMAP_FILE$ac_delim
22236 SHLIBEXT!$SHLIBEXT$ac_delim
22237 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22238 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22239 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22240 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22241 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22242 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22243 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22244 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22245 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22246 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22247 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22248 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22249 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22250 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22251 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22252 RPATH!$RPATH$ac_delim
22253 RDYNAMIC!$RDYNAMIC$ac_delim
22254 LIBOBJS!$LIBOBJS$ac_delim
22255 LTLIBOBJS!$LTLIBOBJS$ac_delim
22256 _ACEOF
22257
22258   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22259     break
22260   elif $ac_last_try; then
22261     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22262 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22263    { (exit 1); exit 1; }; }
22264   else
22265     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22266   fi
22267 done
22268
22269 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22270 if test -n "$ac_eof"; then
22271   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22272   ac_eof=`expr $ac_eof + 1`
22273 fi
22274
22275 cat >>$CONFIG_STATUS <<_ACEOF
22276 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22278 _ACEOF
22279 sed '
22280 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22281 s/^/s,@/; s/!/@,|#_!!_#|/
22282 :n
22283 t n
22284 s/'"$ac_delim"'$/,g/; t
22285 s/$/\\/; p
22286 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22287 ' >>$CONFIG_STATUS <conf$$subs.sed
22288 rm -f conf$$subs.sed
22289 cat >>$CONFIG_STATUS <<_ACEOF
22290 :end
22291 s/|#_!!_#|//g
22292 CEOF$ac_eof
22293 _ACEOF
22294
22295
22296 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22297 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22298 # trailing colons and then remove the whole line if VPATH becomes empty
22299 # (actually we leave an empty line to preserve line numbers).
22300 if test "x$srcdir" = x.; then
22301   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22302 s/:*\$(srcdir):*/:/
22303 s/:*\${srcdir}:*/:/
22304 s/:*@srcdir@:*/:/
22305 s/^\([^=]*=[     ]*\):*/\1/
22306 s/:*$//
22307 s/^[^=]*=[       ]*$//
22308 }'
22309 fi
22310
22311 cat >>$CONFIG_STATUS <<\_ACEOF
22312 fi # test -n "$CONFIG_FILES"
22313
22314
22315 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22316 do
22317   case $ac_tag in
22318   :[FHLC]) ac_mode=$ac_tag; continue;;
22319   esac
22320   case $ac_mode$ac_tag in
22321   :[FHL]*:*);;
22322   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22323 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22324    { (exit 1); exit 1; }; };;
22325   :[FH]-) ac_tag=-:-;;
22326   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22327   esac
22328   ac_save_IFS=$IFS
22329   IFS=:
22330   set x $ac_tag
22331   IFS=$ac_save_IFS
22332   shift
22333   ac_file=$1
22334   shift
22335
22336   case $ac_mode in
22337   :L) ac_source=$1;;
22338   :[FH])
22339     ac_file_inputs=
22340     for ac_f
22341     do
22342       case $ac_f in
22343       -) ac_f="$tmp/stdin";;
22344       *) # Look for the file first in the build tree, then in the source tree
22345          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22346          # because $ac_f cannot contain `:'.
22347          test -f "$ac_f" ||
22348            case $ac_f in
22349            [\\/$]*) false;;
22350            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22351            esac ||
22352            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22353 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22354    { (exit 1); exit 1; }; };;
22355       esac
22356       ac_file_inputs="$ac_file_inputs $ac_f"
22357     done
22358
22359     # Let's still pretend it is `configure' which instantiates (i.e., don't
22360     # use $as_me), people would be surprised to read:
22361     #    /* config.h.  Generated by config.status.  */
22362     configure_input="Generated from "`IFS=:
22363           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22364     if test x"$ac_file" != x-; then
22365       configure_input="$ac_file.  $configure_input"
22366       { echo "$as_me:$LINENO: creating $ac_file" >&5
22367 echo "$as_me: creating $ac_file" >&6;}
22368     fi
22369
22370     case $ac_tag in
22371     *:-:* | *:-) cat >"$tmp/stdin";;
22372     esac
22373     ;;
22374   esac
22375
22376   ac_dir=`$as_dirname -- "$ac_file" ||
22377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378          X"$ac_file" : 'X\(//\)[^/]' \| \
22379          X"$ac_file" : 'X\(//\)$' \| \
22380          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22381 echo X"$ac_file" |
22382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22383             s//\1/
22384             q
22385           }
22386           /^X\(\/\/\)[^/].*/{
22387             s//\1/
22388             q
22389           }
22390           /^X\(\/\/\)$/{
22391             s//\1/
22392             q
22393           }
22394           /^X\(\/\).*/{
22395             s//\1/
22396             q
22397           }
22398           s/.*/./; q'`
22399   { as_dir="$ac_dir"
22400   case $as_dir in #(
22401   -*) as_dir=./$as_dir;;
22402   esac
22403   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22404     as_dirs=
22405     while :; do
22406       case $as_dir in #(
22407       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22408       *) as_qdir=$as_dir;;
22409       esac
22410       as_dirs="'$as_qdir' $as_dirs"
22411       as_dir=`$as_dirname -- "$as_dir" ||
22412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22413          X"$as_dir" : 'X\(//\)[^/]' \| \
22414          X"$as_dir" : 'X\(//\)$' \| \
22415          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22416 echo X"$as_dir" |
22417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22418             s//\1/
22419             q
22420           }
22421           /^X\(\/\/\)[^/].*/{
22422             s//\1/
22423             q
22424           }
22425           /^X\(\/\/\)$/{
22426             s//\1/
22427             q
22428           }
22429           /^X\(\/\).*/{
22430             s//\1/
22431             q
22432           }
22433           s/.*/./; q'`
22434       test -d "$as_dir" && break
22435     done
22436     test -z "$as_dirs" || eval "mkdir $as_dirs"
22437   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22438 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22439    { (exit 1); exit 1; }; }; }
22440   ac_builddir=.
22441
22442 case "$ac_dir" in
22443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22444 *)
22445   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22446   # A ".." for each directory in $ac_dir_suffix.
22447   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22448   case $ac_top_builddir_sub in
22449   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22450   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22451   esac ;;
22452 esac
22453 ac_abs_top_builddir=$ac_pwd
22454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22455 # for backward compatibility:
22456 ac_top_builddir=$ac_top_build_prefix
22457
22458 case $srcdir in
22459   .)  # We are building in place.
22460     ac_srcdir=.
22461     ac_top_srcdir=$ac_top_builddir_sub
22462     ac_abs_top_srcdir=$ac_pwd ;;
22463   [\\/]* | ?:[\\/]* )  # Absolute name.
22464     ac_srcdir=$srcdir$ac_dir_suffix;
22465     ac_top_srcdir=$srcdir
22466     ac_abs_top_srcdir=$srcdir ;;
22467   *) # Relative name.
22468     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22469     ac_top_srcdir=$ac_top_build_prefix$srcdir
22470     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22471 esac
22472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22473
22474
22475   case $ac_mode in
22476   :F)
22477   #
22478   # CONFIG_FILE
22479   #
22480
22481   case $INSTALL in
22482   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22483   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22484   esac
22485 _ACEOF
22486
22487 cat >>$CONFIG_STATUS <<\_ACEOF
22488 # If the template does not know about datarootdir, expand it.
22489 # FIXME: This hack should be removed a few years after 2.60.
22490 ac_datarootdir_hack=; ac_datarootdir_seen=
22491
22492 case `sed -n '/datarootdir/ {
22493   p
22494   q
22495 }
22496 /@datadir@/p
22497 /@docdir@/p
22498 /@infodir@/p
22499 /@localedir@/p
22500 /@mandir@/p
22501 ' $ac_file_inputs` in
22502 *datarootdir*) ac_datarootdir_seen=yes;;
22503 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22504   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22505 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22506 _ACEOF
22507 cat >>$CONFIG_STATUS <<_ACEOF
22508   ac_datarootdir_hack='
22509   s&@datadir@&$datadir&g
22510   s&@docdir@&$docdir&g
22511   s&@infodir@&$infodir&g
22512   s&@localedir@&$localedir&g
22513   s&@mandir@&$mandir&g
22514     s&\\\${datarootdir}&$datarootdir&g' ;;
22515 esac
22516 _ACEOF
22517
22518 # Neutralize VPATH when `$srcdir' = `.'.
22519 # Shell code in configure.ac might set extrasub.
22520 # FIXME: do we really want to maintain this feature?
22521 cat >>$CONFIG_STATUS <<_ACEOF
22522   sed "$ac_vpsub
22523 $extrasub
22524 _ACEOF
22525 cat >>$CONFIG_STATUS <<\_ACEOF
22526 :t
22527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22528 s&@configure_input@&$configure_input&;t t
22529 s&@top_builddir@&$ac_top_builddir_sub&;t t
22530 s&@srcdir@&$ac_srcdir&;t t
22531 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22532 s&@top_srcdir@&$ac_top_srcdir&;t t
22533 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22534 s&@builddir@&$ac_builddir&;t t
22535 s&@abs_builddir@&$ac_abs_builddir&;t t
22536 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22537 s&@INSTALL@&$ac_INSTALL&;t t
22538 $ac_datarootdir_hack
22539 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22540
22541 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22542   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22543   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22544   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22545 which seems to be undefined.  Please make sure it is defined." >&5
22546 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22547 which seems to be undefined.  Please make sure it is defined." >&2;}
22548
22549   rm -f "$tmp/stdin"
22550   case $ac_file in
22551   -) cat "$tmp/out"; rm -f "$tmp/out";;
22552   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22553   esac
22554  ;;
22555   :H)
22556   #
22557   # CONFIG_HEADER
22558   #
22559 _ACEOF
22560
22561 # Transform confdefs.h into a sed script `conftest.defines', that
22562 # substitutes the proper values into config.h.in to produce config.h.
22563 rm -f conftest.defines conftest.tail
22564 # First, append a space to every undef/define line, to ease matching.
22565 echo 's/$/ /' >conftest.defines
22566 # Then, protect against being on the right side of a sed subst, or in
22567 # an unquoted here document, in config.status.  If some macros were
22568 # called several times there might be several #defines for the same
22569 # symbol, which is useless.  But do not sort them, since the last
22570 # AC_DEFINE must be honored.
22571 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22572 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22573 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22574 # PARAMS is the parameter list in the macro definition--in most cases, it's
22575 # just an empty string.
22576 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22577 ac_dB='\\)[      (].*,\\1define\\2'
22578 ac_dC=' '
22579 ac_dD=' ,'
22580
22581 uniq confdefs.h |
22582   sed -n '
22583         t rset
22584         :rset
22585         s/^[     ]*#[    ]*define[       ][      ]*//
22586         t ok
22587         d
22588         :ok
22589         s/[\\&,]/\\&/g
22590         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22591         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22592   ' >>conftest.defines
22593
22594 # Remove the space that was appended to ease matching.
22595 # Then replace #undef with comments.  This is necessary, for
22596 # example, in the case of _POSIX_SOURCE, which is predefined and required
22597 # on some systems where configure will not decide to define it.
22598 # (The regexp can be short, since the line contains either #define or #undef.)
22599 echo 's/ $//
22600 s,^[     #]*u.*,/* & */,' >>conftest.defines
22601
22602 # Break up conftest.defines:
22603 ac_max_sed_lines=50
22604
22605 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22606 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22607 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22608 # et cetera.
22609 ac_in='$ac_file_inputs'
22610 ac_out='"$tmp/out1"'
22611 ac_nxt='"$tmp/out2"'
22612
22613 while :
22614 do
22615   # Write a here document:
22616     cat >>$CONFIG_STATUS <<_ACEOF
22617     # First, check the format of the line:
22618     cat >"\$tmp/defines.sed" <<\\CEOF
22619 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22620 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22621 b
22622 :def
22623 _ACEOF
22624   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22625   echo 'CEOF
22626     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22627   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22628   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22629   grep . conftest.tail >/dev/null || break
22630   rm -f conftest.defines
22631   mv conftest.tail conftest.defines
22632 done
22633 rm -f conftest.defines conftest.tail
22634
22635 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22636 cat >>$CONFIG_STATUS <<\_ACEOF
22637   if test x"$ac_file" != x-; then
22638     echo "/* $configure_input  */" >"$tmp/config.h"
22639     cat "$ac_result" >>"$tmp/config.h"
22640     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22641       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22642 echo "$as_me: $ac_file is unchanged" >&6;}
22643     else
22644       rm -f $ac_file
22645       mv "$tmp/config.h" $ac_file
22646     fi
22647   else
22648     echo "/* $configure_input  */"
22649     cat "$ac_result"
22650   fi
22651   rm -f "$tmp/out12"
22652  ;;
22653
22654   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22655 echo "$as_me: executing $ac_file commands" >&6;}
22656  ;;
22657   esac
22658
22659
22660   case $ac_file$ac_mode in
22661     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22662    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22663     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22664    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22665     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22666    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22667     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22668    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22669     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22670    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22671     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22672    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22673     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22674    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22675     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22676    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22677     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22678    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22679     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22680    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22681     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22682    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22683     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22684    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22685     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22686    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22687
22688   esac
22689 done # for ac_tag
22690
22691
22692 { (exit 0); exit 0; }
22693 _ACEOF
22694 chmod +x $CONFIG_STATUS
22695 ac_clean_files=$ac_clean_files_save
22696
22697
22698 # configure is writing to config.log, and then calls config.status.
22699 # config.status does its own redirection, appending to config.log.
22700 # Unfortunately, on DOS this fails, as config.log is still kept open
22701 # by configure, so config.status won't be able to write to it; its
22702 # output is simply discarded.  So we exec the FD to /dev/null,
22703 # effectively closing config.log, so it can be properly (re)opened and
22704 # appended to by config.status.  When coming back to configure, we
22705 # need to make the FD available again.
22706 if test "$no_create" != yes; then
22707   ac_cs_success=:
22708   ac_config_status_args=
22709   test "$silent" = yes &&
22710     ac_config_status_args="$ac_config_status_args --quiet"
22711   exec 5>/dev/null
22712   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22713   exec 5>>config.log
22714   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22715   # would make configure fail if this is the last instruction.
22716   $ac_cs_success || { (exit 1); exit 1; }
22717 fi
22718
22719 #
22720 # CONFIG_SUBDIRS section.
22721 #
22722 if test "$no_recursion" != yes; then
22723
22724   # Remove --cache-file and --srcdir arguments so they do not pile up.
22725   ac_sub_configure_args=
22726   ac_prev=
22727   eval "set x $ac_configure_args"
22728   shift
22729   for ac_arg
22730   do
22731     if test -n "$ac_prev"; then
22732       ac_prev=
22733       continue
22734     fi
22735     case $ac_arg in
22736     -cache-file | --cache-file | --cache-fil | --cache-fi \
22737     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22738       ac_prev=cache_file ;;
22739     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22740     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22741     | --c=*)
22742       ;;
22743     --config-cache | -C)
22744       ;;
22745     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22746       ac_prev=srcdir ;;
22747     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22748       ;;
22749     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22750       ac_prev=prefix ;;
22751     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22752       ;;
22753     *)
22754       case $ac_arg in
22755       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22756       esac
22757       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22758     esac
22759   done
22760
22761   # Always prepend --prefix to ensure using the same prefix
22762   # in subdir configurations.
22763   ac_arg="--prefix=$prefix"
22764   case $ac_arg in
22765   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22766   esac
22767   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22768
22769   ac_popdir=`pwd`
22770   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22771
22772     # Do not complain, so a configure script can configure whichever
22773     # parts of a large source tree are present.
22774     test -d "$srcdir/$ac_dir" || continue
22775
22776     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22777     echo "$as_me:$LINENO: $ac_msg" >&5
22778     echo "$ac_msg" >&6
22779     { as_dir="$ac_dir"
22780   case $as_dir in #(
22781   -*) as_dir=./$as_dir;;
22782   esac
22783   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22784     as_dirs=
22785     while :; do
22786       case $as_dir in #(
22787       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22788       *) as_qdir=$as_dir;;
22789       esac
22790       as_dirs="'$as_qdir' $as_dirs"
22791       as_dir=`$as_dirname -- "$as_dir" ||
22792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22793          X"$as_dir" : 'X\(//\)[^/]' \| \
22794          X"$as_dir" : 'X\(//\)$' \| \
22795          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22796 echo X"$as_dir" |
22797     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22798             s//\1/
22799             q
22800           }
22801           /^X\(\/\/\)[^/].*/{
22802             s//\1/
22803             q
22804           }
22805           /^X\(\/\/\)$/{
22806             s//\1/
22807             q
22808           }
22809           /^X\(\/\).*/{
22810             s//\1/
22811             q
22812           }
22813           s/.*/./; q'`
22814       test -d "$as_dir" && break
22815     done
22816     test -z "$as_dirs" || eval "mkdir $as_dirs"
22817   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22818 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22819    { (exit 1); exit 1; }; }; }
22820     ac_builddir=.
22821
22822 case "$ac_dir" in
22823 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22824 *)
22825   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22826   # A ".." for each directory in $ac_dir_suffix.
22827   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22828   case $ac_top_builddir_sub in
22829   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22830   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22831   esac ;;
22832 esac
22833 ac_abs_top_builddir=$ac_pwd
22834 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22835 # for backward compatibility:
22836 ac_top_builddir=$ac_top_build_prefix
22837
22838 case $srcdir in
22839   .)  # We are building in place.
22840     ac_srcdir=.
22841     ac_top_srcdir=$ac_top_builddir_sub
22842     ac_abs_top_srcdir=$ac_pwd ;;
22843   [\\/]* | ?:[\\/]* )  # Absolute name.
22844     ac_srcdir=$srcdir$ac_dir_suffix;
22845     ac_top_srcdir=$srcdir
22846     ac_abs_top_srcdir=$srcdir ;;
22847   *) # Relative name.
22848     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22849     ac_top_srcdir=$ac_top_build_prefix$srcdir
22850     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22851 esac
22852 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22853
22854
22855     cd "$ac_dir"
22856
22857     # Check for guested configure; otherwise get Cygnus style configure.
22858     if test -f "$ac_srcdir/configure.gnu"; then
22859       ac_sub_configure=$ac_srcdir/configure.gnu
22860     elif test -f "$ac_srcdir/configure"; then
22861       ac_sub_configure=$ac_srcdir/configure
22862     elif test -f "$ac_srcdir/configure.in"; then
22863       # This should be Cygnus configure.
22864       ac_sub_configure=$ac_aux_dir/configure
22865     else
22866       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22867 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22868       ac_sub_configure=
22869     fi
22870
22871     # The recursion is here.
22872     if test -n "$ac_sub_configure"; then
22873       # Make the cache file name correct relative to the subdirectory.
22874       case $cache_file in
22875       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22876       *) # Relative name.
22877         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22878       esac
22879
22880       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22881 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22882       # The eval makes quoting arguments work.
22883       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22884            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22885         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22886 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22887    { (exit 1); exit 1; }; }
22888     fi
22889
22890     cd "$ac_popdir"
22891   done
22892 fi
22893