Fix issue with bitwise and precedence.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 ENABLE_CBE_PRINTF_A
709 OPTIMIZE_OPTION
710 EXTRA_OPTIONS
711 EXTRA_LD_OPTIONS
712 CLANG_SRC_ROOT
713 BINUTILS_INCDIR
714 INTERNAL_PREFIX
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
745 CAT
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 NO_VARIADIC_MACROS
767 NO_MISSING_FIELD_INITIALIZERS
768 USE_UDIS86
769 USE_OPROFILE
770 HAVE_PTHREAD
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 SHLIBEXT
774 SHLIBPATH_VAR
775 LLVM_PREFIX
776 LLVM_BINDIR
777 LLVM_LIBDIR
778 LLVM_DATADIR
779 LLVM_DOCSDIR
780 LLVM_ETCDIR
781 LLVM_INCLUDEDIR
782 LLVM_INFODIR
783 LLVM_MANDIR
784 LLVM_CONFIGTIME
785 BINDINGS_TO_BUILD
786 ALL_BINDINGS
787 OCAML_LIBDIR
788 ENABLE_VISIBILITY_INLINES_HIDDEN
789 RPATH
790 RDYNAMIC
791 LIBOBJS
792 LTLIBOBJS'
793 ac_subst_files=''
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 CPPFLAGS
801 CXX
802 CXXFLAGS
803 CCC
804 CPP'
805 ac_subdirs_all='projects/llvm-gcc
806 projects/test-suite
807 projects/llvm-test
808 projects/poolalloc
809 projects/llvm-poolalloc
810 projects/sample
811 projects/privbracket
812 projects/llvm-stacker
813 projects/llvm-reopt
814 projects/llvm-java
815 projects/llvm-tv
816 projects/safecode
817 projects/llvm-kernel
818 tools/polly'
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870   # If the previous option needs an argument, assign it.
871   if test -n "$ac_prev"; then
872     eval $ac_prev=\$ac_option
873     ac_prev=
874     continue
875   fi
876
877   case $ac_option in
878   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925    { (exit 1); exit 1; }; }
926     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927     eval enable_$ac_feature=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944    { (exit 1); exit 1; }; }
945     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946     eval enable_$ac_feature=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092     ac_prev=sbindir ;;
1093   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094   | --sbi=* | --sb=*)
1095     sbindir=$ac_optarg ;;
1096
1097   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099   | --sharedst | --shareds | --shared | --share | --shar \
1100   | --sha | --sh)
1101     ac_prev=sharedstatedir ;;
1102   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105   | --sha=* | --sh=*)
1106     sharedstatedir=$ac_optarg ;;
1107
1108   -site | --site | --sit)
1109     ac_prev=site ;;
1110   -site=* | --site=* | --sit=*)
1111     site=$ac_optarg ;;
1112
1113   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114     ac_prev=srcdir ;;
1115   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116     srcdir=$ac_optarg ;;
1117
1118   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119   | --syscon | --sysco | --sysc | --sys | --sy)
1120     ac_prev=sysconfdir ;;
1121   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123     sysconfdir=$ac_optarg ;;
1124
1125   -target | --target | --targe | --targ | --tar | --ta | --t)
1126     ac_prev=target_alias ;;
1127   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128     target_alias=$ac_optarg ;;
1129
1130   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131     verbose=yes ;;
1132
1133   -version | --version | --versio | --versi | --vers | -V)
1134     ac_init_version=: ;;
1135
1136   -with-* | --with-*)
1137     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140       { echo "$as_me: error: invalid package name: $ac_package" >&2
1141    { (exit 1); exit 1; }; }
1142     ac_package=`echo $ac_package| sed 's/-/_/g'`
1143     eval with_$ac_package=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package | sed 's/-/_/g'`
1152     eval with_$ac_package=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174    { (exit 1); exit 1; }; }
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182    { (exit 1); exit 1; }; }
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   { echo "$as_me: error: missing argument to $ac_option" >&2
1200    { (exit 1); exit 1; }; }
1201 fi
1202
1203 # Be sure to have absolute directory names.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   case $ac_val in
1211     [\\/$]* | ?:[\\/]* )  continue;;
1212     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213   esac
1214   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215    { (exit 1); exit 1; }; }
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227   if test "x$build_alias" = x; then
1228     cross_compiling=maybe
1229     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230     If a cross compiler is detected then cross compile mode will be used." >&2
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   { echo "$as_me: error: Working directory cannot be determined" >&2
1246    { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   { echo "$as_me: error: pwd does not report name of working directory" >&2
1249    { (exit 1); exit 1; }; }
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254   ac_srcdir_defaulted=yes
1255   # Try the directory containing this script, then the parent directory.
1256   ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258          X"$0" : 'X\(//\)[^/]' \| \
1259          X"$0" : 'X\(//\)$' \| \
1260          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 echo X"$0" |
1262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)[^/].*/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\).*/{
1275             s//\1/
1276             q
1277           }
1278           s/.*/./; q'`
1279   srcdir=$ac_confdir
1280   if test ! -r "$srcdir/$ac_unique_file"; then
1281     srcdir=..
1282   fi
1283 else
1284   ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289    { (exit 1); exit 1; }; }
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294    { (exit 1); exit 1; }; }
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR           user executables [EPREFIX/bin]
1355   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR       program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR           object code libraries [EPREFIX/lib]
1361   --includedir=DIR       C header files [PREFIX/include]
1362   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR          info documentation [DATAROOTDIR/info]
1366   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR           man documentation [DATAROOTDIR/man]
1368   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1369   --htmldir=DIR          html documentation [DOCDIR]
1370   --dvidir=DIR           dvi documentation [DOCDIR]
1371   --pdfdir=DIR           pdf documentation [DOCDIR]
1372   --psdir=DIR            ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380   --target=TARGET   configure for building compilers for TARGET [HOST]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385   case $ac_init_help in
1386      short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1387    esac
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-polly          Use polly if available (default is YES)
1394   --enable-libcpp         Use libc++ if available (default is NO)
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-docs           Build documents (default is YES)
1408   --enable-doxygen        Build doxygen documentation (default is NO)
1409   --enable-threads        Use threads if available (default is YES)
1410   --enable-pthreads       Use pthreads if available (default is YES)
1411   --enable-pic            Build LLVM with Position Independent Code (default
1412                           is YES)
1413   --enable-shared         Build a shared library and link tools against it
1414                           (default is NO)
1415   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1416                           Win32 DLL (default is NO)
1417   --enable-timestamps     Enable embedding timestamp information in build
1418                           (default is YES)
1419   --enable-targets        Build specific host targets: all or
1420                           target1,target2,... Valid targets are: host, x86,
1421                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422                           xcore, msp430, ptx, cbe, and cpp (default=all)
1423   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1424                           %a (default is YES)
1425   --enable-bindings       Build specific language bindings:
1426                           all,auto,none,{binding-name} (default=auto)
1427   --enable-libffi         Check for the presence of libffi (default is NO)
1428   --enable-ltdl-install   install libltdl
1429
1430 Optional Packages:
1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433   --with-optimize-option  Select the compiler options to use for optimized
1434                           builds
1435   --with-extra-options    Specify additional options to compile LLVM with
1436   --with-extra-ld-options Specify additional options to link LLVM with
1437   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1438                           is stdlib)
1439   --with-clang-srcdir     Directory to the out-of-tree Clang source
1440   --with-clang-resource-dir
1441                           Relative directory from the Clang binary for
1442                           resource files
1443   --with-c-include-dirs   Colon separated list of directories clang will
1444                           search for headers
1445   --with-gcc-toolchain    Directory where gcc is installed.
1446   --with-binutils-include Specify path to binutils/include/ containing
1447                           plugin-api.h file for gold plugin.
1448   --with-bug-report-url   Specify the URL where bug reports should be
1449                           submitted (default=http://llvm.org/bugs/)
1450   --with-internal-prefix  Installation directory for internal files
1451   --with-tclinclude       directory where tcl headers are
1452   --with-udis86=<path>    Use udis86 external x86 disassembler library
1453   --with-oprofile=<prefix>
1454                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1455
1456 Some influential environment variables:
1457   CC          C compiler command
1458   CFLAGS      C compiler flags
1459   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460               nonstandard directory <lib dir>
1461   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1462               you have headers in a nonstandard directory <include dir>
1463   CXX         C++ compiler command
1464   CXXFLAGS    C++ compiler flags
1465   CPP         C preprocessor
1466
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1469
1470 Report bugs to <http://llvm.org/bugs/>.
1471 _ACEOF
1472 ac_status=$?
1473 fi
1474
1475 if test "$ac_init_help" = "recursive"; then
1476   # If there are subdirs, report their specific --help.
1477   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478     test -d "$ac_dir" || continue
1479     ac_builddir=.
1480
1481 case "$ac_dir" in
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *)
1484   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1485   # A ".." for each directory in $ac_dir_suffix.
1486   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1487   case $ac_top_builddir_sub in
1488   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490   esac ;;
1491 esac
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1496
1497 case $srcdir in
1498   .)  # We are building in place.
1499     ac_srcdir=.
1500     ac_top_srcdir=$ac_top_builddir_sub
1501     ac_abs_top_srcdir=$ac_pwd ;;
1502   [\\/]* | ?:[\\/]* )  # Absolute name.
1503     ac_srcdir=$srcdir$ac_dir_suffix;
1504     ac_top_srcdir=$srcdir
1505     ac_abs_top_srcdir=$srcdir ;;
1506   *) # Relative name.
1507     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508     ac_top_srcdir=$ac_top_build_prefix$srcdir
1509     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 esac
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512
1513     cd "$ac_dir" || { ac_status=$?; continue; }
1514     # Check for guested configure.
1515     if test -f "$ac_srcdir/configure.gnu"; then
1516       echo &&
1517       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518     elif test -f "$ac_srcdir/configure"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure" --help=recursive
1521     else
1522       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523     fi || ac_status=$?
1524     cd "$ac_pwd" || { ac_status=$?; break; }
1525   done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530   cat <<\_ACEOF
1531 LLVM configure 3.1svn
1532 generated by GNU Autoconf 2.60
1533
1534 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1535 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538
1539 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1540 _ACEOF
1541   exit
1542 fi
1543 cat >config.log <<_ACEOF
1544 This file contains any messages produced by compilers while
1545 running configure, to aid debugging if configure makes a mistake.
1546
1547 It was created by LLVM $as_me 3.1svn, which was
1548 generated by GNU Autoconf 2.60.  Invocation command line was
1549
1550   $ $0 $@
1551
1552 _ACEOF
1553 exec 5>>config.log
1554 {
1555 cat <<_ASUNAME
1556 ## --------- ##
1557 ## Platform. ##
1558 ## --------- ##
1559
1560 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565
1566 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1568
1569 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1570 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1571 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1572 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1573 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1574 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1575 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1576
1577 _ASUNAME
1578
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 for as_dir in $PATH
1581 do
1582   IFS=$as_save_IFS
1583   test -z "$as_dir" && as_dir=.
1584   echo "PATH: $as_dir"
1585 done
1586 IFS=$as_save_IFS
1587
1588 } >&5
1589
1590 cat >&5 <<_ACEOF
1591
1592
1593 ## ----------- ##
1594 ## Core tests. ##
1595 ## ----------- ##
1596
1597 _ACEOF
1598
1599
1600 # Keep a trace of the command line.
1601 # Strip out --no-create and --no-recursion so they do not pile up.
1602 # Strip out --silent because we don't want to record it for future runs.
1603 # Also quote any args containing shell meta-characters.
1604 # Make two passes to allow for proper duplicate-argument suppression.
1605 ac_configure_args=
1606 ac_configure_args0=
1607 ac_configure_args1=
1608 ac_must_keep_next=false
1609 for ac_pass in 1 2
1610 do
1611   for ac_arg
1612   do
1613     case $ac_arg in
1614     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616     | -silent | --silent | --silen | --sile | --sil)
1617       continue ;;
1618     *\'*)
1619       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1620     esac
1621     case $ac_pass in
1622     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1623     2)
1624       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1625       if test $ac_must_keep_next = true; then
1626         ac_must_keep_next=false # Got value, back to normal.
1627       else
1628         case $ac_arg in
1629           *=* | --config-cache | -C | -disable-* | --disable-* \
1630           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632           | -with-* | --with-* | -without-* | --without-* | --x)
1633             case "$ac_configure_args0 " in
1634               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1635             esac
1636             ;;
1637           -* ) ac_must_keep_next=true ;;
1638         esac
1639       fi
1640       ac_configure_args="$ac_configure_args '$ac_arg'"
1641       ;;
1642     esac
1643   done
1644 done
1645 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1647
1648 # When interrupted or exit'd, cleanup temporary files, and complete
1649 # config.log.  We remove comments because anyway the quotes in there
1650 # would cause problems or look ugly.
1651 # WARNING: Use '\'' to represent an apostrophe within the trap.
1652 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1653 trap 'exit_status=$?
1654   # Save into config.log some information that might help in debugging.
1655   {
1656     echo
1657
1658     cat <<\_ASBOX
1659 ## ---------------- ##
1660 ## Cache variables. ##
1661 ## ---------------- ##
1662 _ASBOX
1663     echo
1664     # The following way of writing the cache mishandles newlines in values,
1665 (
1666   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667     eval ac_val=\$$ac_var
1668     case $ac_val in #(
1669     *${as_nl}*)
1670       case $ac_var in #(
1671       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1673       esac
1674       case $ac_var in #(
1675       _ | IFS | as_nl) ;; #(
1676       *) $as_unset $ac_var ;;
1677       esac ;;
1678     esac
1679   done
1680   (set) 2>&1 |
1681     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682     *${as_nl}ac_space=\ *)
1683       sed -n \
1684         "s/'\''/'\''\\\\'\'''\''/g;
1685           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1686       ;; #(
1687     *)
1688       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1689       ;;
1690     esac |
1691     sort
1692 )
1693     echo
1694
1695     cat <<\_ASBOX
1696 ## ----------------- ##
1697 ## Output variables. ##
1698 ## ----------------- ##
1699 _ASBOX
1700     echo
1701     for ac_var in $ac_subst_vars
1702     do
1703       eval ac_val=\$$ac_var
1704       case $ac_val in
1705       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706       esac
1707       echo "$ac_var='\''$ac_val'\''"
1708     done | sort
1709     echo
1710
1711     if test -n "$ac_subst_files"; then
1712       cat <<\_ASBOX
1713 ## ------------------- ##
1714 ## File substitutions. ##
1715 ## ------------------- ##
1716 _ASBOX
1717       echo
1718       for ac_var in $ac_subst_files
1719       do
1720         eval ac_val=\$$ac_var
1721         case $ac_val in
1722         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723         esac
1724         echo "$ac_var='\''$ac_val'\''"
1725       done | sort
1726       echo
1727     fi
1728
1729     if test -s confdefs.h; then
1730       cat <<\_ASBOX
1731 ## ----------- ##
1732 ## confdefs.h. ##
1733 ## ----------- ##
1734 _ASBOX
1735       echo
1736       cat confdefs.h
1737       echo
1738     fi
1739     test "$ac_signal" != 0 &&
1740       echo "$as_me: caught signal $ac_signal"
1741     echo "$as_me: exit $exit_status"
1742   } >&5
1743   rm -f core *.core core.conftest.* &&
1744     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1745     exit $exit_status
1746 ' 0
1747 for ac_signal in 1 2 13 15; do
1748   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1749 done
1750 ac_signal=0
1751
1752 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1753 rm -f -r conftest* confdefs.h
1754
1755 # Predefined preprocessor variables.
1756
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_NAME "$PACKAGE_NAME"
1759 _ACEOF
1760
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_STRING "$PACKAGE_STRING"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1779 _ACEOF
1780
1781
1782 # Let the site file select an alternate cache file if it wants to.
1783 # Prefer explicitly selected file to automatically selected ones.
1784 if test -n "$CONFIG_SITE"; then
1785   set x "$CONFIG_SITE"
1786 elif test "x$prefix" != xNONE; then
1787   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1788 else
1789   set x "$ac_default_prefix/share/config.site" \
1790         "$ac_default_prefix/etc/config.site"
1791 fi
1792 shift
1793 for ac_site_file
1794 do
1795   if test -r "$ac_site_file"; then
1796     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797 echo "$as_me: loading site script $ac_site_file" >&6;}
1798     sed 's/^/| /' "$ac_site_file" >&5
1799     . "$ac_site_file"
1800   fi
1801 done
1802
1803 if test -r "$cache_file"; then
1804   # Some versions of bash will fail to source /dev/null (special
1805   # files actually), so we avoid doing that.
1806   if test -f "$cache_file"; then
1807     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808 echo "$as_me: loading cache $cache_file" >&6;}
1809     case $cache_file in
1810       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811       *)                      . "./$cache_file";;
1812     esac
1813   fi
1814 else
1815   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816 echo "$as_me: creating cache $cache_file" >&6;}
1817   >$cache_file
1818 fi
1819
1820 # Check that the precious variables saved in the cache have kept the same
1821 # value.
1822 ac_cache_corrupted=false
1823 for ac_var in $ac_precious_vars; do
1824   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825   eval ac_new_set=\$ac_env_${ac_var}_set
1826   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827   eval ac_new_val=\$ac_env_${ac_var}_value
1828   case $ac_old_set,$ac_new_set in
1829     set,)
1830       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1832       ac_cache_corrupted=: ;;
1833     ,set)
1834       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1836       ac_cache_corrupted=: ;;
1837     ,);;
1838     *)
1839       if test "x$ac_old_val" != "x$ac_new_val"; then
1840         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1843 echo "$as_me:   former value:  $ac_old_val" >&2;}
1844         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1845 echo "$as_me:   current value: $ac_new_val" >&2;}
1846         ac_cache_corrupted=:
1847       fi;;
1848   esac
1849   # Pass precious variables to config.status.
1850   if test "$ac_new_set" = set; then
1851     case $ac_new_val in
1852     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1853     *) ac_arg=$ac_var=$ac_new_val ;;
1854     esac
1855     case " $ac_configure_args " in
1856       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1857       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1858     esac
1859   fi
1860 done
1861 if $ac_cache_corrupted; then
1862   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866    { (exit 1); exit 1; }; }
1867 fi
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893 ac_ext=c
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898
1899
1900
1901 cat >>confdefs.h <<\_ACEOF
1902 #define LLVM_VERSION_MAJOR 3
1903 _ACEOF
1904
1905
1906 cat >>confdefs.h <<\_ACEOF
1907 #define LLVM_VERSION_MINOR 1
1908 _ACEOF
1909
1910
1911 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1912
1913
1914
1915
1916
1917
1918
1919 ac_aux_dir=
1920 for ac_dir in autoconf "$srcdir"/autoconf; do
1921   if test -f "$ac_dir/install-sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install-sh -c"
1924     break
1925   elif test -f "$ac_dir/install.sh"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/install.sh -c"
1928     break
1929   elif test -f "$ac_dir/shtool"; then
1930     ac_aux_dir=$ac_dir
1931     ac_install_sh="$ac_aux_dir/shtool install -c"
1932     break
1933   fi
1934 done
1935 if test -z "$ac_aux_dir"; then
1936   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1937 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1938    { (exit 1); exit 1; }; }
1939 fi
1940
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1948
1949
1950
1951 if test ${srcdir} != "." ; then
1952   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1953     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1954 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1955    { (exit 1); exit 1; }; }
1956   fi
1957 fi
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965   for ac_prog in clang llvm-gcc gcc
1966   do
1967     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$CC"; then
1975   ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1984     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990 IFS=$as_save_IFS
1991
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996   { echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6; }
1998 else
1999   { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2001 fi
2002
2003
2004     test -n "$CC" && break
2005   done
2006 fi
2007 if test -z "$CC"; then
2008   ac_ct_CC=$CC
2009   for ac_prog in clang llvm-gcc gcc
2010 do
2011   # Extract the first word of "$ac_prog", so it can be a program name with args.
2012 set dummy $ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$ac_ct_CC"; then
2019   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_ac_ct_CC="$ac_prog"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048   test -n "$ac_ct_CC" && break
2049 done
2050
2051   if test "x$ac_ct_CC" = x; then
2052     CC=""
2053   else
2054     case $cross_compiling:$ac_tool_warned in
2055 yes:)
2056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057 whose name does not start with the host triplet.  If you think this
2058 configuration is useful to you, please write to autoconf@gnu.org." >&5
2059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet.  If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2062 ac_tool_warned=yes ;;
2063 esac
2064     CC=$ac_ct_CC
2065   fi
2066 fi
2067
2068
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073    { (exit 1); exit 1; }; }
2074
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO: checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (ac_try="$ac_compiler --version >&5"
2079 case "(($ac_try" in
2080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081   *) ac_try_echo=$ac_try;;
2082 esac
2083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084   (eval "$ac_compiler --version >&5") 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); }
2088 { (ac_try="$ac_compiler -v >&5"
2089 case "(($ac_try" in
2090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091   *) ac_try_echo=$ac_try;;
2092 esac
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094   (eval "$ac_compiler -v >&5") 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }
2098 { (ac_try="$ac_compiler -V >&5"
2099 case "(($ac_try" in
2100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101   *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104   (eval "$ac_compiler -V >&5") 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }
2108
2109 cat >conftest.$ac_ext <<_ACEOF
2110 /* confdefs.h.  */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h.  */
2115
2116 int
2117 main ()
2118 {
2119
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 ac_clean_files_save=$ac_clean_files
2125 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2126 # Try to create an executable without -o first, disregard a.out.
2127 # It will help us diagnose broken compilers, and finding out an intuition
2128 # of exeext.
2129 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2131 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2132 #
2133 # List of possible output files, starting from the most likely.
2134 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135 # only as a last resort.  b.out is created by i960 compilers.
2136 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2137 #
2138 # The IRIX 6 linker writes into existing files which may not be
2139 # executable, retaining their permissions.  Remove them first so a
2140 # subsequent execution test works.
2141 ac_rmfiles=
2142 for ac_file in $ac_files
2143 do
2144   case $ac_file in
2145     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2146     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2147   esac
2148 done
2149 rm -f $ac_rmfiles
2150
2151 if { (ac_try="$ac_link_default"
2152 case "(($ac_try" in
2153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154   *) ac_try_echo=$ac_try;;
2155 esac
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157   (eval "$ac_link_default") 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; then
2161   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2164 # so that the user can short-circuit this test for compilers unknown to
2165 # Autoconf.
2166 for ac_file in $ac_files
2167 do
2168   test -f "$ac_file" || continue
2169   case $ac_file in
2170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2171         ;;
2172     [ab].out )
2173         # We found the default executable, but exeext='' is most
2174         # certainly right.
2175         break;;
2176     *.* )
2177         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2178         then :; else
2179            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2180         fi
2181         # We set ac_cv_exeext here because the later test for it is not
2182         # safe: cross compilers may not add the suffix if given an `-o'
2183         # argument, so we may need to know it at that point already.
2184         # Even if this section looks crufty: it has the advantage of
2185         # actually working.
2186         break;;
2187     * )
2188         break;;
2189   esac
2190 done
2191 test "$ac_cv_exeext" = no && ac_cv_exeext=
2192
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201    { (exit 77); exit 77; }; }
2202 fi
2203
2204 ac_exeext=$ac_cv_exeext
2205 { echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6; }
2207
2208 # Check that the compiler produces executables we can run.  If not, either
2209 # the compiler is broken, or we cross compile.
2210 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215   if { ac_try='./$ac_file'
2216   { (case "(($ac_try" in
2217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218   *) ac_try_echo=$ac_try;;
2219 esac
2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221   (eval "$ac_try") 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; }; then
2225     cross_compiling=no
2226   else
2227     if test "$cross_compiling" = maybe; then
2228         cross_compiling=yes
2229     else
2230         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&2;}
2236    { (exit 1); exit 1; }; }
2237     fi
2238   fi
2239 fi
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2242
2243 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244 ac_clean_files=$ac_clean_files_save
2245 # Check that the compiler produces executables we can run.  If not, either
2246 # the compiler is broken, or we cross compile.
2247 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2249 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250 echo "${ECHO_T}$cross_compiling" >&6; }
2251
2252 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2254 if { (ac_try="$ac_link"
2255 case "(($ac_try" in
2256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257   *) ac_try_echo=$ac_try;;
2258 esac
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260   (eval "$ac_link") 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; then
2264   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2267 # `rm'.
2268 for ac_file in conftest.exe conftest conftest.*; do
2269   test -f "$ac_file" || continue
2270   case $ac_file in
2271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2272     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273           break;;
2274     * ) break;;
2275   esac
2276 done
2277 else
2278   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282    { (exit 1); exit 1; }; }
2283 fi
2284
2285 rm -f conftest$ac_cv_exeext
2286 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2288
2289 rm -f conftest.$ac_ext
2290 EXEEXT=$ac_cv_exeext
2291 ac_exeext=$EXEEXT
2292 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2294 if test "${ac_cv_objext+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   cat >conftest.$ac_ext <<_ACEOF
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303
2304 int
2305 main ()
2306 {
2307
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.o conftest.obj
2313 if { (ac_try="$ac_compile"
2314 case "(($ac_try" in
2315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316   *) ac_try_echo=$ac_try;;
2317 esac
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319   (eval "$ac_compile") 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; then
2323   for ac_file in conftest.o conftest.obj conftest.*; do
2324   test -f "$ac_file" || continue;
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2327     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2328        break;;
2329   esac
2330 done
2331 else
2332   echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343 fi
2344 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6; }
2346 OBJEXT=$ac_cv_objext
2347 ac_objext=$OBJEXT
2348 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363 #ifndef __GNUC__
2364        choke me
2365 #endif
2366
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (ac_try="$ac_compile"
2373 case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378   (eval "$ac_compile") 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } &&
2385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386   { (case "(($ac_try" in
2387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388   *) ac_try_echo=$ac_try;;
2389 esac
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391   (eval "$ac_try") 2>&5
2392   ac_status=$?
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); }; } &&
2395          { ac_try='test -s conftest.$ac_objext'
2396   { (case "(($ac_try" in
2397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398   *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401   (eval "$ac_try") 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; }; then
2405   ac_compiler_gnu=yes
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410         ac_compiler_gnu=no
2411 fi
2412
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2415
2416 fi
2417 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419 GCC=`test $ac_compiler_gnu = yes && echo yes`
2420 ac_test_CFLAGS=${CFLAGS+set}
2421 ac_save_CFLAGS=$CFLAGS
2422 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425   echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427   ac_save_c_werror_flag=$ac_c_werror_flag
2428    ac_c_werror_flag=yes
2429    ac_cv_prog_cc_g=no
2430    CFLAGS="-g"
2431    cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h.  */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h.  */
2437
2438 int
2439 main ()
2440 {
2441
2442   ;
2443   return 0;
2444 }
2445 _ACEOF
2446 rm -f conftest.$ac_objext
2447 if { (ac_try="$ac_compile"
2448 case "(($ac_try" in
2449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450   *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453   (eval "$ac_compile") 2>conftest.er1
2454   ac_status=$?
2455   grep -v '^ *+' conftest.er1 >conftest.err
2456   rm -f conftest.er1
2457   cat conftest.err >&5
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); } &&
2460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461   { (case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466   (eval "$ac_try") 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; } &&
2470          { ac_try='test -s conftest.$ac_objext'
2471   { (case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_try") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; }; then
2480   ac_cv_prog_cc_g=yes
2481 else
2482   echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485         CFLAGS=""
2486       cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h.  */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h.  */
2492
2493 int
2494 main ()
2495 {
2496
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.$ac_objext
2502 if { (ac_try="$ac_compile"
2503 case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508   (eval "$ac_compile") 2>conftest.er1
2509   ac_status=$?
2510   grep -v '^ *+' conftest.er1 >conftest.err
2511   rm -f conftest.er1
2512   cat conftest.err >&5
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); } &&
2515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516   { (case "(($ac_try" in
2517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518   *) ac_try_echo=$ac_try;;
2519 esac
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521   (eval "$ac_try") 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; } &&
2525          { ac_try='test -s conftest.$ac_objext'
2526   { (case "(($ac_try" in
2527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528   *) ac_try_echo=$ac_try;;
2529 esac
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531   (eval "$ac_try") 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   :
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540         ac_c_werror_flag=$ac_save_c_werror_flag
2541          CFLAGS="-g"
2542          cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2559 case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_compile") 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572   { (case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_try") 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   ac_cv_prog_cc_g=yes
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596
2597 fi
2598
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 fi
2601
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606    ac_c_werror_flag=$ac_save_c_werror_flag
2607 fi
2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2610 if test "$ac_test_CFLAGS" = set; then
2611   CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613   if test "$GCC" = yes; then
2614     CFLAGS="-g -O2"
2615   else
2616     CFLAGS="-g"
2617   fi
2618 else
2619   if test "$GCC" = yes; then
2620     CFLAGS="-O2"
2621   else
2622     CFLAGS=
2623   fi
2624 fi
2625 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_cc_c89+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   ac_cv_prog_cc_c89=no
2631 ac_save_CC=$CC
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638 #include <stdarg.h>
2639 #include <stdio.h>
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2646      char **p;
2647      int i;
2648 {
2649   return p[i];
2650 }
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2652 {
2653   char *s;
2654   va_list v;
2655   va_start (v,p);
2656   s = g (p, va_arg (v,int));
2657   va_end (v);
2658   return s;
2659 }
2660
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2662    function prototypes and stuff, but not '\xHH' hex character constants.
2663    These don't provoke an error unfortunately, instead are silently treated
2664    as 'x'.  The following induces an error, until -std is added to get
2665    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2666    array size at least.  It's necessary to write '\x00'==0 to get something
2667    that's true only with -std.  */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2669
2670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671    inside strings and character constants.  */
2672 #define FOO(x) 'x'
2673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2674
2675 int test (int i, double x);
2676 struct s1 {int (*f) (int a);};
2677 struct s2 {int (*f) (double a);};
2678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2679 int argc;
2680 char **argv;
2681 int
2682 main ()
2683 {
2684 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2685   ;
2686   return 0;
2687 }
2688 _ACEOF
2689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2691 do
2692   CC="$ac_save_CC $ac_arg"
2693   rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compile") 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } &&
2707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708   { (case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713   (eval "$ac_try") 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   ac_cv_prog_cc_c89=$ac_arg
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732
2733 fi
2734
2735 rm -f core conftest.err conftest.$ac_objext
2736   test "x$ac_cv_prog_cc_c89" != "xno" && break
2737 done
2738 rm -f conftest.$ac_ext
2739 CC=$ac_save_CC
2740
2741 fi
2742 # AC_CACHE_VAL
2743 case "x$ac_cv_prog_cc_c89" in
2744   x)
2745     { echo "$as_me:$LINENO: result: none needed" >&5
2746 echo "${ECHO_T}none needed" >&6; } ;;
2747   xno)
2748     { echo "$as_me:$LINENO: result: unsupported" >&5
2749 echo "${ECHO_T}unsupported" >&6; } ;;
2750   *)
2751     CC="$CC $ac_cv_prog_cc_c89"
2752     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2753 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2754 esac
2755
2756
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762
2763 ac_ext=cpp
2764 ac_cpp='$CXXCPP $CPPFLAGS'
2765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2768 if test -z "$CXX"; then
2769   if test -n "$CCC"; then
2770     CXX=$CCC
2771   else
2772     if test -n "$ac_tool_prefix"; then
2773   for ac_prog in clang++ llvm-g++ g++
2774   do
2775     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_CXX+set}" = set; then
2780   echo $ECHO_N "(cached) $ECHO_C" >&6
2781 else
2782   if test -n "$CXX"; then
2783   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2787 do
2788   IFS=$as_save_IFS
2789   test -z "$as_dir" && as_dir=.
2790   for ac_exec_ext in '' $ac_executable_extensions; do
2791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 CXX=$ac_cv_prog_CXX
2803 if test -n "$CXX"; then
2804   { echo "$as_me:$LINENO: result: $CXX" >&5
2805 echo "${ECHO_T}$CXX" >&6; }
2806 else
2807   { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2809 fi
2810
2811
2812     test -n "$CXX" && break
2813   done
2814 fi
2815 if test -z "$CXX"; then
2816   ac_ct_CXX=$CXX
2817   for ac_prog in clang++ llvm-g++ g++
2818 do
2819   # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   if test -n "$ac_ct_CXX"; then
2827   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834   for ac_exec_ext in '' $ac_executable_extensions; do
2835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836     ac_cv_prog_ac_ct_CXX="$ac_prog"
2837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2847 if test -n "$ac_ct_CXX"; then
2848   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2849 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2850 else
2851   { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2853 fi
2854
2855
2856   test -n "$ac_ct_CXX" && break
2857 done
2858
2859   if test "x$ac_ct_CXX" = x; then
2860     CXX="g++"
2861   else
2862     case $cross_compiling:$ac_tool_warned in
2863 yes:)
2864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865 whose name does not start with the host triplet.  If you think this
2866 configuration is useful to you, please write to autoconf@gnu.org." >&5
2867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet.  If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870 ac_tool_warned=yes ;;
2871 esac
2872     CXX=$ac_ct_CXX
2873   fi
2874 fi
2875
2876   fi
2877 fi
2878 # Provide some information about the compiler.
2879 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2880 ac_compiler=`set X $ac_compile; echo $2`
2881 { (ac_try="$ac_compiler --version >&5"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887   (eval "$ac_compiler --version >&5") 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }
2891 { (ac_try="$ac_compiler -v >&5"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compiler -v >&5") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901 { (ac_try="$ac_compiler -V >&5"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compiler -V >&5") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911
2912 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2913 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2914 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2915   echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923
2924 int
2925 main ()
2926 {
2927 #ifndef __GNUC__
2928        choke me
2929 #endif
2930
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compile") 2>conftest.er1
2943   ac_status=$?
2944   grep -v '^ *+' conftest.er1 >conftest.err
2945   rm -f conftest.er1
2946   cat conftest.err >&5
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2950   { (case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_try") 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (case "(($ac_try" in
2961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962   *) ac_try_echo=$ac_try;;
2963 esac
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965   (eval "$ac_try") 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; }; then
2969   ac_compiler_gnu=yes
2970 else
2971   echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974         ac_compiler_gnu=no
2975 fi
2976
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2979
2980 fi
2981 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2982 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2983 GXX=`test $ac_compiler_gnu = yes && echo yes`
2984 ac_test_CXXFLAGS=${CXXFLAGS+set}
2985 ac_save_CXXFLAGS=$CXXFLAGS
2986 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2987 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_cxx_g+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2992    ac_cxx_werror_flag=yes
2993    ac_cv_prog_cxx_g=no
2994    CXXFLAGS="-g"
2995    cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3012 case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_compile") 2>conftest.er1
3018   ac_status=$?
3019   grep -v '^ *+' conftest.er1 >conftest.err
3020   rm -f conftest.er1
3021   cat conftest.err >&5
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); } &&
3024          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3025   { (case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030   (eval "$ac_try") 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); }; } &&
3034          { ac_try='test -s conftest.$ac_objext'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; }; then
3044   ac_cv_prog_cxx_g=yes
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049         CXXFLAGS=""
3050       cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056
3057 int
3058 main ()
3059 {
3060
3061   ;
3062   return 0;
3063 }
3064 _ACEOF
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3067 case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072   (eval "$ac_compile") 2>conftest.er1
3073   ac_status=$?
3074   grep -v '^ *+' conftest.er1 >conftest.err
3075   rm -f conftest.er1
3076   cat conftest.err >&5
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); } &&
3079          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3080   { (case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085   (eval "$ac_try") 2>&5
3086   ac_status=$?
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); }; } &&
3089          { ac_try='test -s conftest.$ac_objext'
3090   { (case "(($ac_try" in
3091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092   *) ac_try_echo=$ac_try;;
3093 esac
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; }; then
3099   :
3100 else
3101   echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3103
3104         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3105          CXXFLAGS="-g"
3106          cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3112
3113 int
3114 main ()
3115 {
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_compile") 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136   { (case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_try") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   ac_cv_prog_cxx_g=yes
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160
3161 fi
3162
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 fi
3165
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 fi
3168
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3171 fi
3172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3174 if test "$ac_test_CXXFLAGS" = set; then
3175   CXXFLAGS=$ac_save_CXXFLAGS
3176 elif test $ac_cv_prog_cxx_g = yes; then
3177   if test "$GXX" = yes; then
3178     CXXFLAGS="-g -O2"
3179   else
3180     CXXFLAGS="-g"
3181   fi
3182 else
3183   if test "$GXX" = yes; then
3184     CXXFLAGS="-O2"
3185   else
3186     CXXFLAGS=
3187   fi
3188 fi
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3202 # On Suns, sometimes $CPP names a directory.
3203 if test -n "$CPP" && test -d "$CPP"; then
3204   CPP=
3205 fi
3206 if test -z "$CPP"; then
3207   if test "${ac_cv_prog_CPP+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210       # Double quotes because CPP needs to be expanded
3211     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3212     do
3213       ac_preproc_ok=false
3214 for ac_c_preproc_warn_flag in '' yes
3215 do
3216   # Use a header file that comes with gcc, so configuring glibc
3217   # with a fresh cross-compiler works.
3218   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3219   # <limits.h> exists even on freestanding compilers.
3220   # On the NeXT, cc -E runs the code through the compiler's parser,
3221   # not just through cpp. "Syntax error" is here to catch this case.
3222   cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 #ifdef __STDC__
3229 # include <limits.h>
3230 #else
3231 # include <assert.h>
3232 #endif
3233                      Syntax error
3234 _ACEOF
3235 if { (ac_try="$ac_cpp conftest.$ac_ext"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } >/dev/null; then
3248   if test -s conftest.err; then
3249     ac_cpp_err=$ac_c_preproc_warn_flag
3250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3251   else
3252     ac_cpp_err=
3253   fi
3254 else
3255   ac_cpp_err=yes
3256 fi
3257 if test -z "$ac_cpp_err"; then
3258   :
3259 else
3260   echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263   # Broken: fails on valid input.
3264 continue
3265 fi
3266
3267 rm -f conftest.err conftest.$ac_ext
3268
3269   # OK, works on sane cases.  Now check whether nonexistent headers
3270   # can be detected and how.
3271   cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277 #include <ac_nonexistent.h>
3278 _ACEOF
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } >/dev/null; then
3292   if test -s conftest.err; then
3293     ac_cpp_err=$ac_c_preproc_warn_flag
3294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295   else
3296     ac_cpp_err=
3297   fi
3298 else
3299   ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302   # Broken: success on invalid input.
3303 continue
3304 else
3305   echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308   # Passes both tests.
3309 ac_preproc_ok=:
3310 break
3311 fi
3312
3313 rm -f conftest.err conftest.$ac_ext
3314
3315 done
3316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317 rm -f conftest.err conftest.$ac_ext
3318 if $ac_preproc_ok; then
3319   break
3320 fi
3321
3322     done
3323     ac_cv_prog_CPP=$CPP
3324
3325 fi
3326   CPP=$ac_cv_prog_CPP
3327 else
3328   ac_cv_prog_CPP=$CPP
3329 fi
3330 { echo "$as_me:$LINENO: result: $CPP" >&5
3331 echo "${ECHO_T}$CPP" >&6; }
3332 ac_preproc_ok=false
3333 for ac_c_preproc_warn_flag in '' yes
3334 do
3335   # Use a header file that comes with gcc, so configuring glibc
3336   # with a fresh cross-compiler works.
3337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338   # <limits.h> exists even on freestanding compilers.
3339   # On the NeXT, cc -E runs the code through the compiler's parser,
3340   # not just through cpp. "Syntax error" is here to catch this case.
3341   cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #ifdef __STDC__
3348 # include <limits.h>
3349 #else
3350 # include <assert.h>
3351 #endif
3352                      Syntax error
3353 _ACEOF
3354 if { (ac_try="$ac_cpp conftest.$ac_ext"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } >/dev/null; then
3367   if test -s conftest.err; then
3368     ac_cpp_err=$ac_c_preproc_warn_flag
3369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3370   else
3371     ac_cpp_err=
3372   fi
3373 else
3374   ac_cpp_err=yes
3375 fi
3376 if test -z "$ac_cpp_err"; then
3377   :
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382   # Broken: fails on valid input.
3383 continue
3384 fi
3385
3386 rm -f conftest.err conftest.$ac_ext
3387
3388   # OK, works on sane cases.  Now check whether nonexistent headers
3389   # can be detected and how.
3390   cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h.  */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h.  */
3396 #include <ac_nonexistent.h>
3397 _ACEOF
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } >/dev/null; then
3411   if test -s conftest.err; then
3412     ac_cpp_err=$ac_c_preproc_warn_flag
3413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414   else
3415     ac_cpp_err=
3416   fi
3417 else
3418   ac_cpp_err=yes
3419 fi
3420 if test -z "$ac_cpp_err"; then
3421   # Broken: success on invalid input.
3422 continue
3423 else
3424   echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427   # Passes both tests.
3428 ac_preproc_ok=:
3429 break
3430 fi
3431
3432 rm -f conftest.err conftest.$ac_ext
3433
3434 done
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3438   :
3439 else
3440   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&2;}
3444    { (exit 1); exit 1; }; }
3445 fi
3446
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
3453
3454
3455
3456 if test -d ${srcdir}/projects/llvm-gcc ; then
3457   subdirs="$subdirs projects/llvm-gcc"
3458
3459 fi
3460
3461 if test -d ${srcdir}/projects/test-suite ; then
3462   subdirs="$subdirs projects/test-suite"
3463
3464 fi
3465
3466 if test -d ${srcdir}/projects/llvm-test ; then
3467   subdirs="$subdirs projects/llvm-test"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/poolalloc ; then
3472   subdirs="$subdirs projects/poolalloc"
3473
3474 fi
3475
3476 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3477   subdirs="$subdirs projects/llvm-poolalloc"
3478
3479 fi
3480
3481 for i in `ls ${srcdir}/projects`
3482 do
3483   if test -d ${srcdir}/projects/${i} ; then
3484     case ${i} in
3485       sample)       subdirs="$subdirs projects/sample"
3486     ;;
3487       privbracket)  subdirs="$subdirs projects/privbracket"
3488  ;;
3489       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3490  ;;
3491       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3492 ;;
3493       llvm-java)    subdirs="$subdirs projects/llvm-java"
3494  ;;
3495       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3496    ;;
3497       safecode)     subdirs="$subdirs projects/safecode"
3498  ;;
3499       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3500  ;;
3501       compiler-rt)       ;;
3502       llvm-gcc)       ;;
3503       test-suite)     ;;
3504       llvm-test)      ;;
3505       poolalloc)      ;;
3506       llvm-poolalloc) ;;
3507       *)
3508         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3509 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3510         ;;
3511     esac
3512   fi
3513 done
3514
3515 # Check whether --enable-polly was given.
3516 if test "${enable_polly+set}" = set; then
3517   enableval=$enable_polly;
3518 else
3519   enableval=default
3520 fi
3521
3522 case "$enableval" in
3523   yes) ENABLE_POLLY=1
3524  ;;
3525   no)  ENABLE_POLLY=0
3526  ;;
3527   default) ENABLE_POLLY=1
3528  ;;
3529   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3530 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3531    { (exit 1); exit 1; }; } ;;
3532 esac
3533
3534
3535 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3536   LLVM_HAS_POLLY=1
3537
3538   subdirs="$subdirs tools/polly"
3539
3540 fi
3541
3542
3543 # Make sure we can run config.sub.
3544 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3545   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3546 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3547    { (exit 1); exit 1; }; }
3548
3549 { echo "$as_me:$LINENO: checking build system type" >&5
3550 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3551 if test "${ac_cv_build+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   ac_build_alias=$build_alias
3555 test "x$ac_build_alias" = x &&
3556   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3557 test "x$ac_build_alias" = x &&
3558   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3559 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3560    { (exit 1); exit 1; }; }
3561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3562   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3563 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3564    { (exit 1); exit 1; }; }
3565
3566 fi
3567 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3568 echo "${ECHO_T}$ac_cv_build" >&6; }
3569 case $ac_cv_build in
3570 *-*-*) ;;
3571 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3572 echo "$as_me: error: invalid value of canonical build" >&2;}
3573    { (exit 1); exit 1; }; };;
3574 esac
3575 build=$ac_cv_build
3576 ac_save_IFS=$IFS; IFS='-'
3577 set x $ac_cv_build
3578 shift
3579 build_cpu=$1
3580 build_vendor=$2
3581 shift; shift
3582 # Remember, the first character of IFS is used to create $*,
3583 # except with old shells:
3584 build_os=$*
3585 IFS=$ac_save_IFS
3586 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3587
3588
3589 { echo "$as_me:$LINENO: checking host system type" >&5
3590 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3591 if test "${ac_cv_host+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   if test "x$host_alias" = x; then
3595   ac_cv_host=$ac_cv_build
3596 else
3597   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3598     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3599 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3600    { (exit 1); exit 1; }; }
3601 fi
3602
3603 fi
3604 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3605 echo "${ECHO_T}$ac_cv_host" >&6; }
3606 case $ac_cv_host in
3607 *-*-*) ;;
3608 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3609 echo "$as_me: error: invalid value of canonical host" >&2;}
3610    { (exit 1); exit 1; }; };;
3611 esac
3612 host=$ac_cv_host
3613 ac_save_IFS=$IFS; IFS='-'
3614 set x $ac_cv_host
3615 shift
3616 host_cpu=$1
3617 host_vendor=$2
3618 shift; shift
3619 # Remember, the first character of IFS is used to create $*,
3620 # except with old shells:
3621 host_os=$*
3622 IFS=$ac_save_IFS
3623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3624
3625
3626 { echo "$as_me:$LINENO: checking target system type" >&5
3627 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3628 if test "${ac_cv_target+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   if test "x$target_alias" = x; then
3632   ac_cv_target=$ac_cv_host
3633 else
3634   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3635     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3636 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3637    { (exit 1); exit 1; }; }
3638 fi
3639
3640 fi
3641 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3642 echo "${ECHO_T}$ac_cv_target" >&6; }
3643 case $ac_cv_target in
3644 *-*-*) ;;
3645 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3646 echo "$as_me: error: invalid value of canonical target" >&2;}
3647    { (exit 1); exit 1; }; };;
3648 esac
3649 target=$ac_cv_target
3650 ac_save_IFS=$IFS; IFS='-'
3651 set x $ac_cv_target
3652 shift
3653 target_cpu=$1
3654 target_vendor=$2
3655 shift; shift
3656 # Remember, the first character of IFS is used to create $*,
3657 # except with old shells:
3658 target_os=$*
3659 IFS=$ac_save_IFS
3660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3661
3662
3663 # The aliases save the names the user supplied, while $host etc.
3664 # will get canonicalized.
3665 test -n "$target_alias" &&
3666   test "$program_prefix$program_suffix$program_transform_name" = \
3667     NONENONEs,x,x, &&
3668   program_prefix=${target_alias}-
3669
3670 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3671 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3672 if test "${llvm_cv_os_type+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   case $host in
3676   *-*-aix*)
3677     llvm_cv_link_all_option="-Wl,--whole-archive"
3678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679     llvm_cv_os_type="AIX"
3680     llvm_cv_platform_type="Unix" ;;
3681   *-*-irix*)
3682     llvm_cv_link_all_option="-Wl,--whole-archive"
3683     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684     llvm_cv_os_type="IRIX"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-cygwin*)
3687     llvm_cv_link_all_option="-Wl,--whole-archive"
3688     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689     llvm_cv_os_type="Cygwin"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-darwin*)
3692     llvm_cv_link_all_option="-Wl,-all_load"
3693     llvm_cv_no_link_all_option="-Wl,-noall_load"
3694     llvm_cv_os_type="Darwin"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-minix*)
3697     llvm_cv_link_all_option="-Wl,-all_load"
3698     llvm_cv_no_link_all_option="-Wl,-noall_load"
3699     llvm_cv_os_type="Minix"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-freebsd* | *-*-kfreebsd-gnu)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="FreeBSD"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-openbsd*)
3707     llvm_cv_link_all_option="-Wl,--whole-archive"
3708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709     llvm_cv_os_type="OpenBSD"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-netbsd*)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="NetBSD"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-dragonfly*)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="DragonFly"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-hpux*)
3722     llvm_cv_link_all_option="-Wl,--whole-archive"
3723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724     llvm_cv_os_type="HP-UX"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-interix*)
3727     llvm_cv_link_all_option="-Wl,--whole-archive"
3728     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729     llvm_cv_os_type="Interix"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-linux*)
3732     llvm_cv_link_all_option="-Wl,--whole-archive"
3733     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734     llvm_cv_os_type="Linux"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-gnu*)
3737     llvm_cv_link_all_option="-Wl,--whole-archive"
3738     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739     llvm_cv_os_type="GNU"
3740     llvm_cv_platform_type="Unix" ;;
3741   *-*-solaris*)
3742     llvm_cv_link_all_option="-Wl,-z,allextract"
3743     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3744     llvm_cv_os_type="SunOS"
3745     llvm_cv_platform_type="Unix" ;;
3746   *-*-auroraux*)
3747     llvm_cv_link_all_option="-Wl,-z,allextract"
3748     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3749     llvm_cv_os_type="AuroraUX"
3750     llvm_cv_platform_type="Unix" ;;
3751   *-*-win32*)
3752     llvm_cv_link_all_option="-Wl,--whole-archive"
3753     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754     llvm_cv_os_type="Win32"
3755     llvm_cv_platform_type="Win32" ;;
3756   *-*-mingw*)
3757     llvm_cv_link_all_option="-Wl,--whole-archive"
3758     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759     llvm_cv_os_type="MingW"
3760     llvm_cv_platform_type="Win32" ;;
3761   *-*-haiku*)
3762     llvm_cv_link_all_option="-Wl,--whole-archive"
3763     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764     llvm_cv_os_type="Haiku"
3765     llvm_cv_platform_type="Unix" ;;
3766   *-unknown-eabi*)
3767     llvm_cv_link_all_option="-Wl,--whole-archive"
3768     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769     llvm_cv_os_type="Freestanding"
3770     llvm_cv_platform_type="Unix" ;;
3771   *-unknown-elf*)
3772     llvm_cv_link_all_option="-Wl,--whole-archive"
3773     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774     llvm_cv_os_type="Freestanding"
3775     llvm_cv_platform_type="Unix" ;;
3776   *)
3777     llvm_cv_link_all_option=""
3778     llvm_cv_no_link_all_option=""
3779     llvm_cv_os_type="Unknown"
3780     llvm_cv_platform_type="Unknown" ;;
3781 esac
3782 fi
3783 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3784 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3785
3786 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3787 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3788 if test "${llvm_cv_target_os_type+set}" = set; then
3789   echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791   case $target in
3792   *-*-aix*)
3793     llvm_cv_target_os_type="AIX" ;;
3794   *-*-irix*)
3795     llvm_cv_target_os_type="IRIX" ;;
3796   *-*-cygwin*)
3797     llvm_cv_target_os_type="Cygwin" ;;
3798   *-*-darwin*)
3799     llvm_cv_target_os_type="Darwin" ;;
3800   *-*-minix*)
3801     llvm_cv_target_os_type="Minix" ;;
3802   *-*-freebsd*)
3803     llvm_cv_target_os_type="FreeBSD" ;;
3804   *-*-openbsd*)
3805     llvm_cv_target_os_type="OpenBSD" ;;
3806   *-*-netbsd*)
3807     llvm_cv_target_os_type="NetBSD" ;;
3808   *-*-dragonfly*)
3809     llvm_cv_target_os_type="DragonFly" ;;
3810   *-*-hpux*)
3811     llvm_cv_target_os_type="HP-UX" ;;
3812   *-*-interix*)
3813     llvm_cv_target_os_type="Interix" ;;
3814   *-*-linux*)
3815     llvm_cv_target_os_type="Linux" ;;
3816   *-*-solaris*)
3817     llvm_cv_target_os_type="SunOS" ;;
3818   *-*-auroraux*)
3819     llvm_cv_target_os_type="AuroraUX" ;;
3820   *-*-win32*)
3821     llvm_cv_target_os_type="Win32" ;;
3822   *-*-mingw*)
3823     llvm_cv_target_os_type="MingW" ;;
3824   *-*-haiku*)
3825     llvm_cv_target_os_type="Haiku" ;;
3826   *-*-rtems*)
3827     llvm_cv_target_os_type="RTEMS" ;;
3828   *-*-nacl*)
3829     llvm_cv_target_os_type="NativeClient" ;;
3830   *-unknown-eabi*)
3831     llvm_cv_target_os_type="Freestanding" ;;
3832   *)
3833     llvm_cv_target_os_type="Unknown" ;;
3834 esac
3835 fi
3836 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3837 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3838
3839 if test "$llvm_cv_os_type" = "Unknown" ; then
3840   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3841 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3842    { (exit 1); exit 1; }; }
3843 fi
3844
3845 OS=$llvm_cv_os_type
3846
3847 HOST_OS=$llvm_cv_os_type
3848
3849 TARGET_OS=$llvm_cv_target_os_type
3850
3851
3852 LINKALL=$llvm_cv_link_all_option
3853
3854 NOLINKALL=$llvm_cv_no_link_all_option
3855
3856
3857 case $llvm_cv_platform_type in
3858   Unix)
3859
3860 cat >>confdefs.h <<\_ACEOF
3861 #define LLVM_ON_UNIX 1
3862 _ACEOF
3863
3864     LLVM_ON_UNIX=1
3865
3866     LLVM_ON_WIN32=0
3867
3868     ;;
3869   Win32)
3870
3871 cat >>confdefs.h <<\_ACEOF
3872 #define LLVM_ON_WIN32 1
3873 _ACEOF
3874
3875     LLVM_ON_UNIX=0
3876
3877     LLVM_ON_WIN32=1
3878
3879     ;;
3880 esac
3881
3882 { echo "$as_me:$LINENO: checking target architecture" >&5
3883 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3884 if test "${llvm_cv_target_arch+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   case $target in
3888   i?86-*)                 llvm_cv_target_arch="x86" ;;
3889   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3890   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3891   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3892   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3893   mips-*)                 llvm_cv_target_arch="Mips" ;;
3894   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3895   xcore-*)                llvm_cv_target_arch="XCore" ;;
3896   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3897   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3898   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3899   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3900   *)                      llvm_cv_target_arch="Unknown" ;;
3901 esac
3902 fi
3903 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3904 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3905
3906 if test "$llvm_cv_target_arch" = "Unknown" ; then
3907   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3908 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3909 fi
3910
3911 case "$llvm_cv_target_arch" in
3912     x86)     LLVM_NATIVE_ARCH="X86" ;;
3913     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3914     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3915 esac
3916
3917 ARCH=$llvm_cv_target_arch
3918
3919
3920
3921
3922 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3923 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3924 if test "${ac_cv_path_GREP+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   # Extract the first word of "grep ggrep" to use in msg output
3928 if test -z "$GREP"; then
3929 set dummy grep ggrep; ac_prog_name=$2
3930 if test "${ac_cv_path_GREP+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   ac_path_GREP_found=false
3934 # Loop through the user's path and test for each of PROGNAME-LIST
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940   for ac_prog in grep ggrep; do
3941   for ac_exec_ext in '' $ac_executable_extensions; do
3942     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3943     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3944     # Check for GNU ac_path_GREP and select it if it is found.
3945   # Check for GNU $ac_path_GREP
3946 case `"$ac_path_GREP" --version 2>&1` in
3947 *GNU*)
3948   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3949 *)
3950   ac_count=0
3951   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3952   while :
3953   do
3954     cat "conftest.in" "conftest.in" >"conftest.tmp"
3955     mv "conftest.tmp" "conftest.in"
3956     cp "conftest.in" "conftest.nl"
3957     echo 'GREP' >> "conftest.nl"
3958     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3959     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3960     ac_count=`expr $ac_count + 1`
3961     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3962       # Best one so far, save it but keep looking for a better one
3963       ac_cv_path_GREP="$ac_path_GREP"
3964       ac_path_GREP_max=$ac_count
3965     fi
3966     # 10*(2^10) chars as input seems more than enough
3967     test $ac_count -gt 10 && break
3968   done
3969   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3970 esac
3971
3972
3973     $ac_path_GREP_found && break 3
3974   done
3975 done
3976
3977 done
3978 IFS=$as_save_IFS
3979
3980
3981 fi
3982
3983 GREP="$ac_cv_path_GREP"
3984 if test -z "$GREP"; then
3985   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3986 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3987    { (exit 1); exit 1; }; }
3988 fi
3989
3990 else
3991   ac_cv_path_GREP=$GREP
3992 fi
3993
3994
3995 fi
3996 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3997 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3998  GREP="$ac_cv_path_GREP"
3999
4000
4001 { echo "$as_me:$LINENO: checking for egrep" >&5
4002 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4003 if test "${ac_cv_path_EGREP+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4007    then ac_cv_path_EGREP="$GREP -E"
4008    else
4009      # Extract the first word of "egrep" to use in msg output
4010 if test -z "$EGREP"; then
4011 set dummy egrep; ac_prog_name=$2
4012 if test "${ac_cv_path_EGREP+set}" = set; then
4013   echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015   ac_path_EGREP_found=false
4016 # Loop through the user's path and test for each of PROGNAME-LIST
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022   for ac_prog in egrep; do
4023   for ac_exec_ext in '' $ac_executable_extensions; do
4024     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4025     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4026     # Check for GNU ac_path_EGREP and select it if it is found.
4027   # Check for GNU $ac_path_EGREP
4028 case `"$ac_path_EGREP" --version 2>&1` in
4029 *GNU*)
4030   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4031 *)
4032   ac_count=0
4033   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4034   while :
4035   do
4036     cat "conftest.in" "conftest.in" >"conftest.tmp"
4037     mv "conftest.tmp" "conftest.in"
4038     cp "conftest.in" "conftest.nl"
4039     echo 'EGREP' >> "conftest.nl"
4040     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4041     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4042     ac_count=`expr $ac_count + 1`
4043     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4044       # Best one so far, save it but keep looking for a better one
4045       ac_cv_path_EGREP="$ac_path_EGREP"
4046       ac_path_EGREP_max=$ac_count
4047     fi
4048     # 10*(2^10) chars as input seems more than enough
4049     test $ac_count -gt 10 && break
4050   done
4051   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4052 esac
4053
4054
4055     $ac_path_EGREP_found && break 3
4056   done
4057 done
4058
4059 done
4060 IFS=$as_save_IFS
4061
4062
4063 fi
4064
4065 EGREP="$ac_cv_path_EGREP"
4066 if test -z "$EGREP"; then
4067   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4068 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4069    { (exit 1); exit 1; }; }
4070 fi
4071
4072 else
4073   ac_cv_path_EGREP=$EGREP
4074 fi
4075
4076
4077    fi
4078 fi
4079 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4080 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4081  EGREP="$ac_cv_path_EGREP"
4082
4083
4084 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4085 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4086 if test "${ac_cv_header_stdc+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 #include <stdlib.h>
4096 #include <stdarg.h>
4097 #include <string.h>
4098 #include <float.h>
4099
4100 int
4101 main ()
4102 {
4103
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 rm -f conftest.$ac_objext
4109 if { (ac_try="$ac_compile"
4110 case "(($ac_try" in
4111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112   *) ac_try_echo=$ac_try;;
4113 esac
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115   (eval "$ac_compile") 2>conftest.er1
4116   ac_status=$?
4117   grep -v '^ *+' conftest.er1 >conftest.err
4118   rm -f conftest.er1
4119   cat conftest.err >&5
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); } &&
4122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4123   { (case "(($ac_try" in
4124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125   *) ac_try_echo=$ac_try;;
4126 esac
4127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128   (eval "$ac_try") 2>&5
4129   ac_status=$?
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); }; } &&
4132          { ac_try='test -s conftest.$ac_objext'
4133   { (case "(($ac_try" in
4134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135   *) ac_try_echo=$ac_try;;
4136 esac
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138   (eval "$ac_try") 2>&5
4139   ac_status=$?
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); }; }; then
4142   ac_cv_header_stdc=yes
4143 else
4144   echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147         ac_cv_header_stdc=no
4148 fi
4149
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151
4152 if test $ac_cv_header_stdc = yes; then
4153   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4154   cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h.  */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h.  */
4160 #include <string.h>
4161
4162 _ACEOF
4163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164   $EGREP "memchr" >/dev/null 2>&1; then
4165   :
4166 else
4167   ac_cv_header_stdc=no
4168 fi
4169 rm -f conftest*
4170
4171 fi
4172
4173 if test $ac_cv_header_stdc = yes; then
4174   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4175   cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h.  */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h.  */
4181 #include <stdlib.h>
4182
4183 _ACEOF
4184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4185   $EGREP "free" >/dev/null 2>&1; then
4186   :
4187 else
4188   ac_cv_header_stdc=no
4189 fi
4190 rm -f conftest*
4191
4192 fi
4193
4194 if test $ac_cv_header_stdc = yes; then
4195   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4196   if test "$cross_compiling" = yes; then
4197   :
4198 else
4199   cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h.  */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h.  */
4205 #include <ctype.h>
4206 #include <stdlib.h>
4207 #if ((' ' & 0x0FF) == 0x020)
4208 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4209 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4210 #else
4211 # define ISLOWER(c) \
4212                    (('a' <= (c) && (c) <= 'i') \
4213                      || ('j' <= (c) && (c) <= 'r') \
4214                      || ('s' <= (c) && (c) <= 'z'))
4215 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4216 #endif
4217
4218 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4219 int
4220 main ()
4221 {
4222   int i;
4223   for (i = 0; i < 256; i++)
4224     if (XOR (islower (i), ISLOWER (i))
4225         || toupper (i) != TOUPPER (i))
4226       return 2;
4227   return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest$ac_exeext
4231 if { (ac_try="$ac_link"
4232 case "(($ac_try" in
4233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234   *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237   (eval "$ac_link") 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4241   { (case "(($ac_try" in
4242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243   *) ac_try_echo=$ac_try;;
4244 esac
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246   (eval "$ac_try") 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; }; then
4250   :
4251 else
4252   echo "$as_me: program exited with status $ac_status" >&5
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 ( exit $ac_status )
4257 ac_cv_header_stdc=no
4258 fi
4259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4260 fi
4261
4262
4263 fi
4264 fi
4265 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4266 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4267 if test $ac_cv_header_stdc = yes; then
4268
4269 cat >>confdefs.h <<\_ACEOF
4270 #define STDC_HEADERS 1
4271 _ACEOF
4272
4273 fi
4274
4275 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4286                   inttypes.h stdint.h unistd.h
4287 do
4288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h.  */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h.  */
4300 $ac_includes_default
4301
4302 #include <$ac_header>
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (ac_try="$ac_compile"
4306 case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311   (eval "$ac_compile") 2>conftest.er1
4312   ac_status=$?
4313   grep -v '^ *+' conftest.er1 >conftest.err
4314   rm -f conftest.er1
4315   cat conftest.err >&5
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); } &&
4318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4319   { (case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324   (eval "$ac_try") 2>&5
4325   ac_status=$?
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); }; } &&
4328          { ac_try='test -s conftest.$ac_objext'
4329   { (case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334   (eval "$ac_try") 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; }; then
4338   eval "$as_ac_Header=yes"
4339 else
4340   echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4342
4343         eval "$as_ac_Header=no"
4344 fi
4345
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 fi
4348 ac_res=`eval echo '${'$as_ac_Header'}'`
4349                { echo "$as_me:$LINENO: result: $ac_res" >&5
4350 echo "${ECHO_T}$ac_res" >&6; }
4351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4352   cat >>confdefs.h <<_ACEOF
4353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4354 _ACEOF
4355
4356 fi
4357
4358 done
4359
4360
4361 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4362 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4363 if test "${ac_cv_c_bigendian+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   # See if sys/param.h defines the BYTE_ORDER macro.
4367 cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h.  */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h.  */
4373 #include <sys/types.h>
4374 #include <sys/param.h>
4375
4376 int
4377 main ()
4378 {
4379 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4380  bogus endian macros
4381 #endif
4382
4383   ;
4384   return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4389 case "(($ac_try" in
4390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391   *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394   (eval "$ac_compile") 2>conftest.er1
4395   ac_status=$?
4396   grep -v '^ *+' conftest.er1 >conftest.err
4397   rm -f conftest.er1
4398   cat conftest.err >&5
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); } &&
4401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4402   { (case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407   (eval "$ac_try") 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; } &&
4411          { ac_try='test -s conftest.$ac_objext'
4412   { (case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417   (eval "$ac_try") 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; }; then
4421   # It does; now see whether it defined to BIG_ENDIAN or not.
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h.  */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h.  */
4428 #include <sys/types.h>
4429 #include <sys/param.h>
4430
4431 int
4432 main ()
4433 {
4434 #if BYTE_ORDER != BIG_ENDIAN
4435  not big endian
4436 #endif
4437
4438   ;
4439   return 0;
4440 }
4441 _ACEOF
4442 rm -f conftest.$ac_objext
4443 if { (ac_try="$ac_compile"
4444 case "(($ac_try" in
4445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446   *) ac_try_echo=$ac_try;;
4447 esac
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449   (eval "$ac_compile") 2>conftest.er1
4450   ac_status=$?
4451   grep -v '^ *+' conftest.er1 >conftest.err
4452   rm -f conftest.er1
4453   cat conftest.err >&5
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); } &&
4456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4457   { (case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462   (eval "$ac_try") 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; } &&
4466          { ac_try='test -s conftest.$ac_objext'
4467   { (case "(($ac_try" in
4468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469   *) ac_try_echo=$ac_try;;
4470 esac
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472   (eval "$ac_try") 2>&5
4473   ac_status=$?
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); }; }; then
4476   ac_cv_c_bigendian=yes
4477 else
4478   echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481         ac_cv_c_bigendian=no
4482 fi
4483
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489         # It does not; compile a test program.
4490 if test "$cross_compiling" = yes; then
4491   # try to guess the endianness by grepping values into an object file
4492   ac_cv_c_bigendian=unknown
4493   cat >conftest.$ac_ext <<_ACEOF
4494 /* confdefs.h.  */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h.  */
4499 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4500 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4501 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4502 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4503 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4504 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4505 int
4506 main ()
4507 {
4508  _ascii (); _ebcdic ();
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 rm -f conftest.$ac_objext
4514 if { (ac_try="$ac_compile"
4515 case "(($ac_try" in
4516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517   *) ac_try_echo=$ac_try;;
4518 esac
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520   (eval "$ac_compile") 2>conftest.er1
4521   ac_status=$?
4522   grep -v '^ *+' conftest.er1 >conftest.err
4523   rm -f conftest.er1
4524   cat conftest.err >&5
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); } &&
4527          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4528   { (case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4533   (eval "$ac_try") 2>&5
4534   ac_status=$?
4535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536   (exit $ac_status); }; } &&
4537          { ac_try='test -s conftest.$ac_objext'
4538   { (case "(($ac_try" in
4539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540   *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543   (eval "$ac_try") 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); }; }; then
4547   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4548   ac_cv_c_bigendian=yes
4549 fi
4550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4551   if test "$ac_cv_c_bigendian" = unknown; then
4552     ac_cv_c_bigendian=no
4553   else
4554     # finding both strings is unlikely to happen, but who knows?
4555     ac_cv_c_bigendian=unknown
4556   fi
4557 fi
4558 else
4559   echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562
4563 fi
4564
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 else
4567   cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 $ac_includes_default
4574 int
4575 main ()
4576 {
4577
4578   /* Are we little or big endian?  From Harbison&Steele.  */
4579   union
4580   {
4581     long int l;
4582     char c[sizeof (long int)];
4583   } u;
4584   u.l = 1;
4585   return u.c[sizeof (long int) - 1] == 1;
4586
4587   ;
4588   return 0;
4589 }
4590 _ACEOF
4591 rm -f conftest$ac_exeext
4592 if { (ac_try="$ac_link"
4593 case "(($ac_try" in
4594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595   *) ac_try_echo=$ac_try;;
4596 esac
4597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598   (eval "$ac_link") 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4602   { (case "(($ac_try" in
4603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604   *) ac_try_echo=$ac_try;;
4605 esac
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607   (eval "$ac_try") 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; }; then
4611   ac_cv_c_bigendian=no
4612 else
4613   echo "$as_me: program exited with status $ac_status" >&5
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617 ( exit $ac_status )
4618 ac_cv_c_bigendian=yes
4619 fi
4620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4621 fi
4622
4623
4624 fi
4625
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 fi
4628 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4629 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4630 case $ac_cv_c_bigendian in
4631   yes)
4632     ENDIAN=big
4633  ;;
4634   no)
4635     ENDIAN=little
4636  ;;
4637   *)
4638     { { echo "$as_me:$LINENO: error: unknown endianness
4639 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4640 echo "$as_me: error: unknown endianness
4641 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4642    { (exit 1); exit 1; }; } ;;
4643 esac
4644
4645
4646 if test "$cross_compiling" = yes; then
4647   LLVM_CROSS_COMPILING=1
4648
4649
4650 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4651 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4652 if test "${ac_cv_build_exeext+set}" = set; then
4653   echo $ECHO_N "(cached) $ECHO_C" >&6
4654 else
4655   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4656   ac_cv_build_exeext=.exe
4657 else
4658   ac_build_prefix=${build_alias}-
4659
4660   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4661 set dummy ${ac_build_prefix}gcc; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   if test -n "$BUILD_CC"; then
4668   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4677     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679     break 2
4680   fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 fi
4686 fi
4687 BUILD_CC=$ac_cv_prog_BUILD_CC
4688 if test -n "$BUILD_CC"; then
4689   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4690 echo "${ECHO_T}$BUILD_CC" >&6; }
4691 else
4692   { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694 fi
4695
4696
4697   if test -z "$BUILD_CC"; then
4698      # Extract the first word of "gcc", so it can be a program name with args.
4699 set dummy gcc; ac_word=$2
4700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4702 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   if test -n "$BUILD_CC"; then
4706   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4715     ac_cv_prog_BUILD_CC="gcc"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723 fi
4724 fi
4725 BUILD_CC=$ac_cv_prog_BUILD_CC
4726 if test -n "$BUILD_CC"; then
4727   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4728 echo "${ECHO_T}$BUILD_CC" >&6; }
4729 else
4730   { echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6; }
4732 fi
4733
4734
4735      if test -z "$BUILD_CC"; then
4736        # Extract the first word of "cc", so it can be a program name with args.
4737 set dummy cc; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743   if test -n "$BUILD_CC"; then
4744   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4745 else
4746   ac_prog_rejected=no
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752   for ac_exec_ext in '' $ac_executable_extensions; do
4753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4754     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4755        ac_prog_rejected=yes
4756        continue
4757      fi
4758     ac_cv_prog_BUILD_CC="cc"
4759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763 done
4764 IFS=$as_save_IFS
4765
4766 if test $ac_prog_rejected = yes; then
4767   # We found a bogon in the path, so make sure we never use it.
4768   set dummy $ac_cv_prog_BUILD_CC
4769   shift
4770   if test $# != 0; then
4771     # We chose a different compiler from the bogus one.
4772     # However, it has the same basename, so the bogon will be chosen
4773     # first if we set BUILD_CC to just the basename; use the full file name.
4774     shift
4775     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4776   fi
4777 fi
4778 fi
4779 fi
4780 BUILD_CC=$ac_cv_prog_BUILD_CC
4781 if test -n "$BUILD_CC"; then
4782   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4783 echo "${ECHO_T}$BUILD_CC" >&6; }
4784 else
4785   { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787 fi
4788
4789
4790      fi
4791   fi
4792   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4793 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4794    { (exit 1); exit 1; }; }
4795   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4796   rm -f conftest*
4797   echo 'int main () { return 0; }' > conftest.$ac_ext
4798   ac_cv_build_exeext=
4799   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4800   (eval $ac_build_link) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; then
4804     for file in conftest.*; do
4805       case $file in
4806       *.c | *.o | *.obj | *.dSYM) ;;
4807       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4808       esac
4809     done
4810   else
4811     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4812 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4813    { (exit 1); exit 1; }; }
4814   fi
4815   rm -f conftest*
4816   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4817 fi
4818 fi
4819
4820 BUILD_EXEEXT=""
4821 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4822 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4823 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4824 ac_build_exeext=$BUILD_EXEEXT
4825
4826   ac_build_prefix=${build_alias}-
4827   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4828 set dummy ${ac_build_prefix}g++; ac_word=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   if test -n "$BUILD_CXX"; then
4835   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842   for ac_exec_ext in '' $ac_executable_extensions; do
4843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4844     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846     break 2
4847   fi
4848 done
4849 done
4850 IFS=$as_save_IFS
4851
4852 fi
4853 fi
4854 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4855 if test -n "$BUILD_CXX"; then
4856   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4857 echo "${ECHO_T}$BUILD_CXX" >&6; }
4858 else
4859   { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4861 fi
4862
4863
4864   if test -z "$BUILD_CXX"; then
4865      # Extract the first word of "g++", so it can be a program name with args.
4866 set dummy g++; ac_word=$2
4867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4870   echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872   if test -n "$BUILD_CXX"; then
4873   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880   for ac_exec_ext in '' $ac_executable_extensions; do
4881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4882     ac_cv_prog_BUILD_CXX="g++"
4883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 fi
4891 fi
4892 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4893 if test -n "$BUILD_CXX"; then
4894   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4895 echo "${ECHO_T}$BUILD_CXX" >&6; }
4896 else
4897   { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4899 fi
4900
4901
4902      if test -z "$BUILD_CXX"; then
4903        # Extract the first word of "c++", so it can be a program name with args.
4904 set dummy c++; ac_word=$2
4905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4907 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910   if test -n "$BUILD_CXX"; then
4911   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4912 else
4913   ac_prog_rejected=no
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919   for ac_exec_ext in '' $ac_executable_extensions; do
4920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4921     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4922        ac_prog_rejected=yes
4923        continue
4924      fi
4925     ac_cv_prog_BUILD_CXX="c++"
4926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927     break 2
4928   fi
4929 done
4930 done
4931 IFS=$as_save_IFS
4932
4933 if test $ac_prog_rejected = yes; then
4934   # We found a bogon in the path, so make sure we never use it.
4935   set dummy $ac_cv_prog_BUILD_CXX
4936   shift
4937   if test $# != 0; then
4938     # We chose a different compiler from the bogus one.
4939     # However, it has the same basename, so the bogon will be chosen
4940     # first if we set BUILD_CXX to just the basename; use the full file name.
4941     shift
4942     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4943   fi
4944 fi
4945 fi
4946 fi
4947 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4948 if test -n "$BUILD_CXX"; then
4949   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4950 echo "${ECHO_T}$BUILD_CXX" >&6; }
4951 else
4952   { echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6; }
4954 fi
4955
4956
4957      fi
4958   fi
4959 else
4960   LLVM_CROSS_COMPILING=0
4961
4962 fi
4963
4964 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4965   cvsbuild="yes"
4966   optimize="no"
4967   CVSBUILD=CVSBUILD=1
4968
4969 else
4970   cvsbuild="no"
4971   optimize="yes"
4972 fi
4973
4974
4975 # Check whether --enable-libcpp was given.
4976 if test "${enable_libcpp+set}" = set; then
4977   enableval=$enable_libcpp;
4978 else
4979   enableval=default
4980 fi
4981
4982 case "$enableval" in
4983   yes) ENABLE_LIBCPP=1
4984  ;;
4985   no)  ENABLE_LIBCPP=0
4986  ;;
4987   default) ENABLE_LIBCPP=0
4988 ;;
4989   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4990 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4991    { (exit 1); exit 1; }; } ;;
4992 esac
4993
4994 # Check whether --enable-optimized was given.
4995 if test "${enable_optimized+set}" = set; then
4996   enableval=$enable_optimized;
4997 else
4998   enableval=$optimize
4999 fi
5000
5001 if test ${enableval} = "no" ; then
5002   ENABLE_OPTIMIZED=
5003
5004 else
5005   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5006
5007 fi
5008
5009 # Check whether --enable-profiling was given.
5010 if test "${enable_profiling+set}" = set; then
5011   enableval=$enable_profiling;
5012 else
5013   enableval="no"
5014 fi
5015
5016 if test ${enableval} = "no" ; then
5017   ENABLE_PROFILING=
5018
5019 else
5020   ENABLE_PROFILING=ENABLE_PROFILING=1
5021
5022 fi
5023
5024 # Check whether --enable-assertions was given.
5025 if test "${enable_assertions+set}" = set; then
5026   enableval=$enable_assertions;
5027 else
5028   enableval="yes"
5029 fi
5030
5031 if test ${enableval} = "yes" ; then
5032   DISABLE_ASSERTIONS=
5033
5034 else
5035   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5036
5037 fi
5038
5039 # Check whether --enable-expensive-checks was given.
5040 if test "${enable_expensive_checks+set}" = set; then
5041   enableval=$enable_expensive_checks;
5042 else
5043   enableval="no"
5044 fi
5045
5046 if test ${enableval} = "yes" ; then
5047   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5048
5049   EXPENSIVE_CHECKS=yes
5050
5051 else
5052   ENABLE_EXPENSIVE_CHECKS=
5053
5054   EXPENSIVE_CHECKS=no
5055
5056 fi
5057
5058 # Check whether --enable-debug-runtime was given.
5059 if test "${enable_debug_runtime+set}" = set; then
5060   enableval=$enable_debug_runtime;
5061 else
5062   enableval=no
5063 fi
5064
5065 if test ${enableval} = "no" ; then
5066   DEBUG_RUNTIME=
5067
5068 else
5069   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5070
5071 fi
5072
5073 # Check whether --enable-debug-symbols was given.
5074 if test "${enable_debug_symbols+set}" = set; then
5075   enableval=$enable_debug_symbols;
5076 else
5077   enableval=no
5078 fi
5079
5080 if test ${enableval} = "no" ; then
5081   DEBUG_SYMBOLS=
5082
5083 else
5084   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5085
5086 fi
5087
5088 # Check whether --enable-jit was given.
5089 if test "${enable_jit+set}" = set; then
5090   enableval=$enable_jit;
5091 else
5092   enableval=default
5093 fi
5094
5095 if test ${enableval} = "no"
5096 then
5097   JIT=
5098
5099 else
5100   case "$llvm_cv_target_arch" in
5101     x86)         TARGET_HAS_JIT=1
5102  ;;
5103     Sparc)       TARGET_HAS_JIT=0
5104  ;;
5105     PowerPC)     TARGET_HAS_JIT=1
5106  ;;
5107     x86_64)      TARGET_HAS_JIT=1
5108  ;;
5109     ARM)         TARGET_HAS_JIT=1
5110  ;;
5111     Mips)        TARGET_HAS_JIT=1
5112  ;;
5113     XCore)       TARGET_HAS_JIT=0
5114  ;;
5115     MSP430)      TARGET_HAS_JIT=0
5116  ;;
5117     Hexagon)     TARGET_HAS_JIT=0
5118  ;;
5119     MBlaze)      TARGET_HAS_JIT=0
5120  ;;
5121     PTX)         TARGET_HAS_JIT=0
5122  ;;
5123     *)           TARGET_HAS_JIT=0
5124  ;;
5125   esac
5126 fi
5127
5128 # Check whether --enable-docs was given.
5129 if test "${enable_docs+set}" = set; then
5130   enableval=$enable_docs;
5131 else
5132   enableval=default
5133 fi
5134
5135 case "$enableval" in
5136   yes) ENABLE_DOCS=1
5137  ;;
5138   no)  ENABLE_DOCS=0
5139  ;;
5140   default) ENABLE_DOCS=1
5141  ;;
5142   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5143 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5144    { (exit 1); exit 1; }; } ;;
5145 esac
5146
5147 # Check whether --enable-doxygen was given.
5148 if test "${enable_doxygen+set}" = set; then
5149   enableval=$enable_doxygen;
5150 else
5151   enableval=default
5152 fi
5153
5154 case "$enableval" in
5155   yes) ENABLE_DOXYGEN=1
5156  ;;
5157   no)  ENABLE_DOXYGEN=0
5158  ;;
5159   default) ENABLE_DOXYGEN=0
5160  ;;
5161   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5162 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5163    { (exit 1); exit 1; }; } ;;
5164 esac
5165
5166 # Check whether --enable-threads was given.
5167 if test "${enable_threads+set}" = set; then
5168   enableval=$enable_threads;
5169 else
5170   enableval=default
5171 fi
5172
5173 case "$enableval" in
5174   yes) LLVM_ENABLE_THREADS=1
5175  ;;
5176   no)  LLVM_ENABLE_THREADS=0
5177  ;;
5178   default) LLVM_ENABLE_THREADS=1
5179  ;;
5180   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5181 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5182    { (exit 1); exit 1; }; } ;;
5183 esac
5184
5185 cat >>confdefs.h <<_ACEOF
5186 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5187 _ACEOF
5188
5189
5190 # Check whether --enable-pthreads was given.
5191 if test "${enable_pthreads+set}" = set; then
5192   enableval=$enable_pthreads;
5193 else
5194   enableval=default
5195 fi
5196
5197 case "$enableval" in
5198   yes) ENABLE_PTHREADS=1
5199  ;;
5200   no)  ENABLE_PTHREADS=0
5201  ;;
5202   default) ENABLE_PTHREADS=1
5203  ;;
5204   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5205 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5206    { (exit 1); exit 1; }; } ;;
5207 esac
5208
5209 # Check whether --enable-pic was given.
5210 if test "${enable_pic+set}" = set; then
5211   enableval=$enable_pic;
5212 else
5213   enableval=default
5214 fi
5215
5216 case "$enableval" in
5217   yes) ENABLE_PIC=1
5218  ;;
5219   no)  ENABLE_PIC=0
5220  ;;
5221   default) ENABLE_PIC=1
5222  ;;
5223   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5224 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5225    { (exit 1); exit 1; }; } ;;
5226 esac
5227
5228 cat >>confdefs.h <<_ACEOF
5229 #define ENABLE_PIC $ENABLE_PIC
5230 _ACEOF
5231
5232
5233 # Check whether --enable-shared was given.
5234 if test "${enable_shared+set}" = set; then
5235   enableval=$enable_shared;
5236 else
5237   enableval=default
5238 fi
5239
5240 case "$enableval" in
5241   yes) ENABLE_SHARED=1
5242  ;;
5243   no)  ENABLE_SHARED=0
5244  ;;
5245   default) ENABLE_SHARED=0
5246  ;;
5247   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5248 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5249    { (exit 1); exit 1; }; } ;;
5250 esac
5251
5252 # Check whether --enable-embed-stdcxx was given.
5253 if test "${enable_embed_stdcxx+set}" = set; then
5254   enableval=$enable_embed_stdcxx;
5255 else
5256   enableval=default
5257 fi
5258
5259 case "$enableval" in
5260   yes) ENABLE_EMBED_STDCXX=1
5261  ;;
5262   no)  ENABLE_EMBED_STDCXX=0
5263  ;;
5264   default) ENABLE_EMBED_STDCXX=0
5265  ;;
5266   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5267 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5268    { (exit 1); exit 1; }; } ;;
5269 esac
5270
5271 # Check whether --enable-timestamps was given.
5272 if test "${enable_timestamps+set}" = set; then
5273   enableval=$enable_timestamps;
5274 else
5275   enableval=default
5276 fi
5277
5278 case "$enableval" in
5279   yes) ENABLE_TIMESTAMPS=1
5280  ;;
5281   no)  ENABLE_TIMESTAMPS=0
5282  ;;
5283   default) ENABLE_TIMESTAMPS=1
5284  ;;
5285   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5286 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5287    { (exit 1); exit 1; }; } ;;
5288 esac
5289
5290 cat >>confdefs.h <<_ACEOF
5291 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5292 _ACEOF
5293
5294
5295 TARGETS_TO_BUILD=""
5296 # Check whether --enable-targets was given.
5297 if test "${enable_targets+set}" = set; then
5298   enableval=$enable_targets;
5299 else
5300   enableval=all
5301 fi
5302
5303 if test "$enableval" = host-only ; then
5304   enableval=host
5305 fi
5306 case "$enableval" in
5307   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5308   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5309       case "$a_target" in
5310         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5312         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5313         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5314         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5315         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5318         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5319         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5320         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5321         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5322         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5323         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5324         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5325         host) case "$llvm_cv_target_arch" in
5326             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5330             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5331             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5332             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5333             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5334             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5335             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5336             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5337             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5338             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5339 echo "$as_me: error: Can not set target to build" >&2;}
5340    { (exit 1); exit 1; }; } ;;
5341           esac ;;
5342         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5343 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5344    { (exit 1); exit 1; }; } ;;
5345       esac
5346   done
5347   ;;
5348 esac
5349 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5350
5351
5352 for a_target in $TARGETS_TO_BUILD; do
5353   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5354
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5357 _ACEOF
5358
5359     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5360     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5361     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5362     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5363     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5364       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5365     fi
5366
5367 cat >>confdefs.h <<_ACEOF
5368 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5369 _ACEOF
5370
5371
5372 cat >>confdefs.h <<_ACEOF
5373 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5374 _ACEOF
5375
5376
5377 cat >>confdefs.h <<_ACEOF
5378 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5379 _ACEOF
5380
5381
5382 cat >>confdefs.h <<_ACEOF
5383 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5384 _ACEOF
5385
5386     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5390 _ACEOF
5391
5392     fi
5393   fi
5394 done
5395
5396 LLVM_ENUM_TARGETS=""
5397 LLVM_ENUM_ASM_PRINTERS=""
5398 LLVM_ENUM_ASM_PARSERS=""
5399 LLVM_ENUM_DISASSEMBLERS=""
5400 for target_to_build in $TARGETS_TO_BUILD; do
5401   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5402   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5403     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5404   fi
5405   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5406     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5407   fi
5408   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5409     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5410   fi
5411 done
5412
5413
5414
5415
5416
5417 # Check whether --enable-cbe-printf-a was given.
5418 if test "${enable_cbe_printf_a+set}" = set; then
5419   enableval=$enable_cbe_printf_a;
5420 else
5421   enableval=default
5422 fi
5423
5424 case "$enableval" in
5425   yes) ENABLE_CBE_PRINTF_A=1
5426  ;;
5427   no)  ENABLE_CBE_PRINTF_A=0
5428  ;;
5429   default)  ENABLE_CBE_PRINTF_A=1
5430  ;;
5431   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5433    { (exit 1); exit 1; }; } ;;
5434 esac
5435
5436 cat >>confdefs.h <<_ACEOF
5437 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5438 _ACEOF
5439
5440
5441
5442 # Check whether --with-optimize-option was given.
5443 if test "${with_optimize_option+set}" = set; then
5444   withval=$with_optimize_option;
5445 else
5446   withval=default
5447 fi
5448
5449 { echo "$as_me:$LINENO: checking optimization flags" >&5
5450 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5451 case "$withval" in
5452   default)
5453     case "$llvm_cv_os_type" in
5454     FreeBSD) optimize_option=-O2 ;;
5455     MingW) optimize_option=-O2 ;;
5456     *)     optimize_option=-O3 ;;
5457     esac ;;
5458   *) optimize_option="$withval" ;;
5459 esac
5460 OPTIMIZE_OPTION=$optimize_option
5461
5462 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5463 echo "${ECHO_T}$optimize_option" >&6; }
5464
5465
5466 # Check whether --with-extra-options was given.
5467 if test "${with_extra_options+set}" = set; then
5468   withval=$with_extra_options;
5469 else
5470   withval=default
5471 fi
5472
5473 case "$withval" in
5474   default) EXTRA_OPTIONS= ;;
5475   *) EXTRA_OPTIONS=$withval ;;
5476 esac
5477 EXTRA_OPTIONS=$EXTRA_OPTIONS
5478
5479
5480
5481 # Check whether --with-extra-ld-options was given.
5482 if test "${with_extra_ld_options+set}" = set; then
5483   withval=$with_extra_ld_options;
5484 else
5485   withval=default
5486 fi
5487
5488 case "$withval" in
5489   default) EXTRA_LD_OPTIONS= ;;
5490   *) EXTRA_LD_OPTIONS=$withval ;;
5491 esac
5492 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5493
5494
5495 # Check whether --enable-bindings was given.
5496 if test "${enable_bindings+set}" = set; then
5497   enableval=$enable_bindings;
5498 else
5499   enableval=default
5500 fi
5501
5502 BINDINGS_TO_BUILD=""
5503 case "$enableval" in
5504   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5505   all ) BINDINGS_TO_BUILD="ocaml" ;;
5506   none | no) BINDINGS_TO_BUILD="" ;;
5507   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5508       case "$a_binding" in
5509         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5510         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5511 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5512    { (exit 1); exit 1; }; } ;;
5513       esac
5514   done
5515   ;;
5516 esac
5517
5518
5519 # Check whether --with-ocaml-libdir was given.
5520 if test "${with_ocaml_libdir+set}" = set; then
5521   withval=$with_ocaml_libdir;
5522 else
5523   withval=auto
5524 fi
5525
5526 case "$withval" in
5527   auto) with_ocaml_libdir="$withval" ;;
5528   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5529   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5530 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5531    { (exit 1); exit 1; }; } ;;
5532 esac
5533
5534
5535 # Check whether --with-clang-srcdir was given.
5536 if test "${with_clang_srcdir+set}" = set; then
5537   withval=$with_clang_srcdir;
5538 else
5539   withval="-"
5540 fi
5541
5542 case "$withval" in
5543   -) clang_src_root="" ;;
5544   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5545   *) clang_src_root="$ac_pwd/$withval" ;;
5546 esac
5547 CLANG_SRC_ROOT=$clang_src_root
5548
5549
5550
5551 # Check whether --with-clang-resource-dir was given.
5552 if test "${with_clang_resource_dir+set}" = set; then
5553   withval=$with_clang_resource_dir;
5554 else
5555   withval=""
5556 fi
5557
5558
5559 cat >>confdefs.h <<_ACEOF
5560 #define CLANG_RESOURCE_DIR "$withval"
5561 _ACEOF
5562
5563
5564
5565 # Check whether --with-c-include-dirs was given.
5566 if test "${with_c_include_dirs+set}" = set; then
5567   withval=$with_c_include_dirs;
5568 else
5569   withval=""
5570 fi
5571
5572
5573 cat >>confdefs.h <<_ACEOF
5574 #define C_INCLUDE_DIRS "$withval"
5575 _ACEOF
5576
5577
5578 # Clang normally uses the system c++ headers and libraries. With this option,
5579 # clang will use the ones provided by a gcc installation instead. This option should
5580 # be passed the same value that was used with --prefix when configuring gcc.
5581
5582 # Check whether --with-gcc-toolchain was given.
5583 if test "${with_gcc_toolchain+set}" = set; then
5584   withval=$with_gcc_toolchain;
5585 else
5586   withval=""
5587 fi
5588
5589
5590 cat >>confdefs.h <<_ACEOF
5591 #define GCC_INSTALL_PREFIX "$withval"
5592 _ACEOF
5593
5594
5595
5596 # Check whether --with-binutils-include was given.
5597 if test "${with_binutils_include+set}" = set; then
5598   withval=$with_binutils_include;
5599 else
5600   withval=default
5601 fi
5602
5603 case "$withval" in
5604   default) WITH_BINUTILS_INCDIR=default ;;
5605   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5606   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5607 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5608    { (exit 1); exit 1; }; } ;;
5609 esac
5610 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5611   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5612
5613   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5614      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5615      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5616 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5617    { (exit 1); exit 1; }; };
5618   fi
5619 fi
5620
5621
5622 # Check whether --with-bug-report-url was given.
5623 if test "${with_bug_report_url+set}" = set; then
5624   withval=$with_bug_report_url;
5625 else
5626   withval="http://llvm.org/bugs/"
5627 fi
5628
5629
5630 cat >>confdefs.h <<_ACEOF
5631 #define BUG_REPORT_URL "$withval"
5632 _ACEOF
5633
5634
5635 # Check whether --enable-libffi was given.
5636 if test "${enable_libffi+set}" = set; then
5637   enableval=$enable_libffi; case "$enableval" in
5638     yes) llvm_cv_enable_libffi="yes" ;;
5639     no)  llvm_cv_enable_libffi="no"  ;;
5640     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5641 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5642    { (exit 1); exit 1; }; } ;;
5643   esac
5644 else
5645   llvm_cv_enable_libffi=no
5646 fi
5647
5648
5649
5650 # Check whether --with-internal-prefix was given.
5651 if test "${with_internal_prefix+set}" = set; then
5652   withval=$with_internal_prefix;
5653 else
5654   withval=""
5655 fi
5656
5657 INTERNAL_PREFIX=$withval
5658
5659
5660
5661 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5662 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5663 if test "${lt_cv_path_NM+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   if test -n "$NM"; then
5667   # Let the user override the test.
5668   lt_cv_path_NM="$NM"
5669 else
5670   lt_nm_to_check="${ac_tool_prefix}nm"
5671   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5672     lt_nm_to_check="$lt_nm_to_check nm"
5673   fi
5674   for lt_tmp_nm in $lt_nm_to_check; do
5675     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5676     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5677       IFS="$lt_save_ifs"
5678       test -z "$ac_dir" && ac_dir=.
5679       tmp_nm="$ac_dir/$lt_tmp_nm"
5680       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5681         # Check to see if the nm accepts a BSD-compat flag.
5682         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5683         #   nm: unknown option "B" ignored
5684         # Tru64's nm complains that /dev/null is an invalid object file
5685         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5686         */dev/null* | *'Invalid file or object type'*)
5687           lt_cv_path_NM="$tmp_nm -B"
5688           break
5689           ;;
5690         *)
5691           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5692           */dev/null*)
5693             lt_cv_path_NM="$tmp_nm -p"
5694             break
5695             ;;
5696           *)
5697             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5698             continue # so that we can try to find one that supports BSD flags
5699             ;;
5700           esac
5701           ;;
5702         esac
5703       fi
5704     done
5705     IFS="$lt_save_ifs"
5706   done
5707   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5708 fi
5709 fi
5710 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5711 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5712 NM="$lt_cv_path_NM"
5713
5714
5715
5716 { echo "$as_me:$LINENO: checking for GNU make" >&5
5717 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5718 if test "${llvm_cv_gnu_make_command+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   llvm_cv_gnu_make_command=''
5722  for a in "$MAKE" make gmake gnumake ; do
5723   if test -z "$a" ; then continue ; fi ;
5724   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5725   then
5726    llvm_cv_gnu_make_command=$a ;
5727    break;
5728   fi
5729  done
5730 fi
5731 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5732 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5733  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5734    ifGNUmake='' ;
5735  else
5736    ifGNUmake='#' ;
5737    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5738 echo "${ECHO_T}\"Not found\"" >&6; };
5739  fi
5740
5741
5742 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5744 LN_S=$as_ln_s
5745 if test "$LN_S" = "ln -s"; then
5746   { echo "$as_me:$LINENO: result: yes" >&5
5747 echo "${ECHO_T}yes" >&6; }
5748 else
5749   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5750 echo "${ECHO_T}no, using $LN_S" >&6; }
5751 fi
5752
5753 # Extract the first word of "cmp", so it can be a program name with args.
5754 set dummy cmp; ac_word=$2
5755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5757 if test "${ac_cv_path_CMP+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   case $CMP in
5761   [\\/]* | ?:[\\/]*)
5762   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5763   ;;
5764   *)
5765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768   IFS=$as_save_IFS
5769   test -z "$as_dir" && as_dir=.
5770   for ac_exec_ext in '' $ac_executable_extensions; do
5771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5772     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774     break 2
5775   fi
5776 done
5777 done
5778 IFS=$as_save_IFS
5779
5780   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5781   ;;
5782 esac
5783 fi
5784 CMP=$ac_cv_path_CMP
5785 if test -n "$CMP"; then
5786   { echo "$as_me:$LINENO: result: $CMP" >&5
5787 echo "${ECHO_T}$CMP" >&6; }
5788 else
5789   { echo "$as_me:$LINENO: result: no" >&5
5790 echo "${ECHO_T}no" >&6; }
5791 fi
5792
5793
5794 # Extract the first word of "cp", so it can be a program name with args.
5795 set dummy cp; ac_word=$2
5796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5798 if test "${ac_cv_path_CP+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   case $CP in
5802   [\\/]* | ?:[\\/]*)
5803   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5804   ;;
5805   *)
5806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811   for ac_exec_ext in '' $ac_executable_extensions; do
5812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5813     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818 done
5819 IFS=$as_save_IFS
5820
5821   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5822   ;;
5823 esac
5824 fi
5825 CP=$ac_cv_path_CP
5826 if test -n "$CP"; then
5827   { echo "$as_me:$LINENO: result: $CP" >&5
5828 echo "${ECHO_T}$CP" >&6; }
5829 else
5830   { echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6; }
5832 fi
5833
5834
5835 # Extract the first word of "date", so it can be a program name with args.
5836 set dummy date; ac_word=$2
5837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5839 if test "${ac_cv_path_DATE+set}" = set; then
5840   echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842   case $DATE in
5843   [\\/]* | ?:[\\/]*)
5844   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5845   ;;
5846   *)
5847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852   for ac_exec_ext in '' $ac_executable_extensions; do
5853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5854     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856     break 2
5857   fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5863   ;;
5864 esac
5865 fi
5866 DATE=$ac_cv_path_DATE
5867 if test -n "$DATE"; then
5868   { echo "$as_me:$LINENO: result: $DATE" >&5
5869 echo "${ECHO_T}$DATE" >&6; }
5870 else
5871   { echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6; }
5873 fi
5874
5875
5876 # Extract the first word of "find", so it can be a program name with args.
5877 set dummy find; ac_word=$2
5878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5880 if test "${ac_cv_path_FIND+set}" = set; then
5881   echo $ECHO_N "(cached) $ECHO_C" >&6
5882 else
5883   case $FIND in
5884   [\\/]* | ?:[\\/]*)
5885   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5886   ;;
5887   *)
5888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893   for ac_exec_ext in '' $ac_executable_extensions; do
5894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5895     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900 done
5901 IFS=$as_save_IFS
5902
5903   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5904   ;;
5905 esac
5906 fi
5907 FIND=$ac_cv_path_FIND
5908 if test -n "$FIND"; then
5909   { echo "$as_me:$LINENO: result: $FIND" >&5
5910 echo "${ECHO_T}$FIND" >&6; }
5911 else
5912   { echo "$as_me:$LINENO: result: no" >&5
5913 echo "${ECHO_T}no" >&6; }
5914 fi
5915
5916
5917 # Extract the first word of "grep", so it can be a program name with args.
5918 set dummy grep; ac_word=$2
5919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921 if test "${ac_cv_path_GREP+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   case $GREP in
5925   [\\/]* | ?:[\\/]*)
5926   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5927   ;;
5928   *)
5929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934   for ac_exec_ext in '' $ac_executable_extensions; do
5935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5936     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938     break 2
5939   fi
5940 done
5941 done
5942 IFS=$as_save_IFS
5943
5944   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5945   ;;
5946 esac
5947 fi
5948 GREP=$ac_cv_path_GREP
5949 if test -n "$GREP"; then
5950   { echo "$as_me:$LINENO: result: $GREP" >&5
5951 echo "${ECHO_T}$GREP" >&6; }
5952 else
5953   { echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6; }
5955 fi
5956
5957
5958 # Extract the first word of "mkdir", so it can be a program name with args.
5959 set dummy mkdir; ac_word=$2
5960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5962 if test "${ac_cv_path_MKDIR+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   case $MKDIR in
5966   [\\/]* | ?:[\\/]*)
5967   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5968   ;;
5969   *)
5970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973   IFS=$as_save_IFS
5974   test -z "$as_dir" && as_dir=.
5975   for ac_exec_ext in '' $ac_executable_extensions; do
5976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5977     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979     break 2
5980   fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5986   ;;
5987 esac
5988 fi
5989 MKDIR=$ac_cv_path_MKDIR
5990 if test -n "$MKDIR"; then
5991   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5992 echo "${ECHO_T}$MKDIR" >&6; }
5993 else
5994   { echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6; }
5996 fi
5997
5998
5999 # Extract the first word of "mv", so it can be a program name with args.
6000 set dummy mv; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_path_MV+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   case $MV in
6007   [\\/]* | ?:[\\/]*)
6008   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6009   ;;
6010   *)
6011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016   for ac_exec_ext in '' $ac_executable_extensions; do
6017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6018     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020     break 2
6021   fi
6022 done
6023 done
6024 IFS=$as_save_IFS
6025
6026   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6027   ;;
6028 esac
6029 fi
6030 MV=$ac_cv_path_MV
6031 if test -n "$MV"; then
6032   { echo "$as_me:$LINENO: result: $MV" >&5
6033 echo "${ECHO_T}$MV" >&6; }
6034 else
6035   { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }
6037 fi
6038
6039
6040 if test -n "$ac_tool_prefix"; then
6041   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_prog_RANLIB+set}" = set; then
6046   echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048   if test -n "$RANLIB"; then
6049   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054   IFS=$as_save_IFS
6055   test -z "$as_dir" && as_dir=.
6056   for ac_exec_ext in '' $ac_executable_extensions; do
6057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6058     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060     break 2
6061   fi
6062 done
6063 done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 RANLIB=$ac_cv_prog_RANLIB
6069 if test -n "$RANLIB"; then
6070   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6071 echo "${ECHO_T}$RANLIB" >&6; }
6072 else
6073   { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6075 fi
6076
6077
6078 fi
6079 if test -z "$ac_cv_prog_RANLIB"; then
6080   ac_ct_RANLIB=$RANLIB
6081   # Extract the first word of "ranlib", so it can be a program name with args.
6082 set dummy ranlib; ac_word=$2
6083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6085 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   if test -n "$ac_ct_RANLIB"; then
6089   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096   for ac_exec_ext in '' $ac_executable_extensions; do
6097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6098     ac_cv_prog_ac_ct_RANLIB="ranlib"
6099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103 done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6109 if test -n "$ac_ct_RANLIB"; then
6110   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6111 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6112 else
6113   { echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6; }
6115 fi
6116
6117   if test "x$ac_ct_RANLIB" = x; then
6118     RANLIB=":"
6119   else
6120     case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6123 whose name does not start with the host triplet.  If you think this
6124 configuration is useful to you, please write to autoconf@gnu.org." >&5
6125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6126 whose name does not start with the host triplet.  If you think this
6127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6128 ac_tool_warned=yes ;;
6129 esac
6130     RANLIB=$ac_ct_RANLIB
6131   fi
6132 else
6133   RANLIB="$ac_cv_prog_RANLIB"
6134 fi
6135
6136 if test -n "$ac_tool_prefix"; then
6137   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}ar; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_AR+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   if test -n "$AR"; then
6145   ac_cv_prog_AR="$AR" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152   for ac_exec_ext in '' $ac_executable_extensions; do
6153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154     ac_cv_prog_AR="${ac_tool_prefix}ar"
6155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162 fi
6163 fi
6164 AR=$ac_cv_prog_AR
6165 if test -n "$AR"; then
6166   { echo "$as_me:$LINENO: result: $AR" >&5
6167 echo "${ECHO_T}$AR" >&6; }
6168 else
6169   { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6171 fi
6172
6173
6174 fi
6175 if test -z "$ac_cv_prog_AR"; then
6176   ac_ct_AR=$AR
6177   # Extract the first word of "ar", so it can be a program name with args.
6178 set dummy ar; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   if test -n "$ac_ct_AR"; then
6185   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6186 else
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 for as_dir in $PATH
6189 do
6190   IFS=$as_save_IFS
6191   test -z "$as_dir" && as_dir=.
6192   for ac_exec_ext in '' $ac_executable_extensions; do
6193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194     ac_cv_prog_ac_ct_AR="ar"
6195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196     break 2
6197   fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6205 if test -n "$ac_ct_AR"; then
6206   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6207 echo "${ECHO_T}$ac_ct_AR" >&6; }
6208 else
6209   { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6211 fi
6212
6213   if test "x$ac_ct_AR" = x; then
6214     AR="false"
6215   else
6216     case $cross_compiling:$ac_tool_warned in
6217 yes:)
6218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet.  If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&5
6221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet.  If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226     AR=$ac_ct_AR
6227   fi
6228 else
6229   AR="$ac_cv_prog_AR"
6230 fi
6231
6232 # Extract the first word of "rm", so it can be a program name with args.
6233 set dummy rm; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_path_RM+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   case $RM in
6240   [\\/]* | ?:[\\/]*)
6241   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6242   ;;
6243   *)
6244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247   IFS=$as_save_IFS
6248   test -z "$as_dir" && as_dir=.
6249   for ac_exec_ext in '' $ac_executable_extensions; do
6250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6251     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253     break 2
6254   fi
6255 done
6256 done
6257 IFS=$as_save_IFS
6258
6259   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6260   ;;
6261 esac
6262 fi
6263 RM=$ac_cv_path_RM
6264 if test -n "$RM"; then
6265   { echo "$as_me:$LINENO: result: $RM" >&5
6266 echo "${ECHO_T}$RM" >&6; }
6267 else
6268   { echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6; }
6270 fi
6271
6272
6273 # Extract the first word of "sed", so it can be a program name with args.
6274 set dummy sed; ac_word=$2
6275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6277 if test "${ac_cv_path_SED+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280   case $SED in
6281   [\\/]* | ?:[\\/]*)
6282   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6283   ;;
6284   *)
6285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288   IFS=$as_save_IFS
6289   test -z "$as_dir" && as_dir=.
6290   for ac_exec_ext in '' $ac_executable_extensions; do
6291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6292     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294     break 2
6295   fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6301   ;;
6302 esac
6303 fi
6304 SED=$ac_cv_path_SED
6305 if test -n "$SED"; then
6306   { echo "$as_me:$LINENO: result: $SED" >&5
6307 echo "${ECHO_T}$SED" >&6; }
6308 else
6309   { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6311 fi
6312
6313
6314 # Extract the first word of "tar", so it can be a program name with args.
6315 set dummy tar; ac_word=$2
6316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6318 if test "${ac_cv_path_TAR+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   case $TAR in
6322   [\\/]* | ?:[\\/]*)
6323   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6324   ;;
6325   *)
6326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329   IFS=$as_save_IFS
6330   test -z "$as_dir" && as_dir=.
6331   for ac_exec_ext in '' $ac_executable_extensions; do
6332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6333     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335     break 2
6336   fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6342   ;;
6343 esac
6344 fi
6345 TAR=$ac_cv_path_TAR
6346 if test -n "$TAR"; then
6347   { echo "$as_me:$LINENO: result: $TAR" >&5
6348 echo "${ECHO_T}$TAR" >&6; }
6349 else
6350   { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6352 fi
6353
6354
6355 # Extract the first word of "pwd", so it can be a program name with args.
6356 set dummy pwd; ac_word=$2
6357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6359 if test "${ac_cv_path_BINPWD+set}" = set; then
6360   echo $ECHO_N "(cached) $ECHO_C" >&6
6361 else
6362   case $BINPWD in
6363   [\\/]* | ?:[\\/]*)
6364   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6365   ;;
6366   *)
6367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   test -z "$as_dir" && as_dir=.
6372   for ac_exec_ext in '' $ac_executable_extensions; do
6373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6374     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376     break 2
6377   fi
6378 done
6379 done
6380 IFS=$as_save_IFS
6381
6382   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6383   ;;
6384 esac
6385 fi
6386 BINPWD=$ac_cv_path_BINPWD
6387 if test -n "$BINPWD"; then
6388   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6389 echo "${ECHO_T}$BINPWD" >&6; }
6390 else
6391   { echo "$as_me:$LINENO: result: no" >&5
6392 echo "${ECHO_T}no" >&6; }
6393 fi
6394
6395
6396
6397 # Extract the first word of "Graphviz", so it can be a program name with args.
6398 set dummy Graphviz; ac_word=$2
6399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6401 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   case $GRAPHVIZ in
6405   [\\/]* | ?:[\\/]*)
6406   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6407   ;;
6408   *)
6409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412   IFS=$as_save_IFS
6413   test -z "$as_dir" && as_dir=.
6414   for ac_exec_ext in '' $ac_executable_extensions; do
6415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6416     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418     break 2
6419   fi
6420 done
6421 done
6422 IFS=$as_save_IFS
6423
6424   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6425   ;;
6426 esac
6427 fi
6428 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6429 if test -n "$GRAPHVIZ"; then
6430   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6431 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6432 else
6433   { echo "$as_me:$LINENO: result: no" >&5
6434 echo "${ECHO_T}no" >&6; }
6435 fi
6436
6437
6438 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6439
6440 cat >>confdefs.h <<\_ACEOF
6441 #define HAVE_GRAPHVIZ 1
6442 _ACEOF
6443
6444     if test "$llvm_cv_os_type" = "MingW" ; then
6445     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6446   fi
6447
6448 cat >>confdefs.h <<_ACEOF
6449 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6450 _ACEOF
6451
6452 fi
6453 # Extract the first word of "dot", so it can be a program name with args.
6454 set dummy dot; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_path_DOT+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   case $DOT in
6461   [\\/]* | ?:[\\/]*)
6462   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6463   ;;
6464   *)
6465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468   IFS=$as_save_IFS
6469   test -z "$as_dir" && as_dir=.
6470   for ac_exec_ext in '' $ac_executable_extensions; do
6471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6472     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474     break 2
6475   fi
6476 done
6477 done
6478 IFS=$as_save_IFS
6479
6480   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6481   ;;
6482 esac
6483 fi
6484 DOT=$ac_cv_path_DOT
6485 if test -n "$DOT"; then
6486   { echo "$as_me:$LINENO: result: $DOT" >&5
6487 echo "${ECHO_T}$DOT" >&6; }
6488 else
6489   { echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6; }
6491 fi
6492
6493
6494 if test "$DOT" != "echo dot" ; then
6495
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_DOT 1
6498 _ACEOF
6499
6500     if test "$llvm_cv_os_type" = "MingW" ; then
6501     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6502   fi
6503
6504 cat >>confdefs.h <<_ACEOF
6505 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6506 _ACEOF
6507
6508 fi
6509 # Extract the first word of "fdp", so it can be a program name with args.
6510 set dummy fdp; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_path_FDP+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   case $FDP in
6517   [\\/]* | ?:[\\/]*)
6518   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6519   ;;
6520   *)
6521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526   for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6537   ;;
6538 esac
6539 fi
6540 FDP=$ac_cv_path_FDP
6541 if test -n "$FDP"; then
6542   { echo "$as_me:$LINENO: result: $FDP" >&5
6543 echo "${ECHO_T}$FDP" >&6; }
6544 else
6545   { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6547 fi
6548
6549
6550 if test "$FDP" != "echo fdp" ; then
6551
6552 cat >>confdefs.h <<\_ACEOF
6553 #define HAVE_FDP 1
6554 _ACEOF
6555
6556     if test "$llvm_cv_os_type" = "MingW" ; then
6557     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6558   fi
6559
6560 cat >>confdefs.h <<_ACEOF
6561 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6562 _ACEOF
6563
6564 fi
6565 # Extract the first word of "neato", so it can be a program name with args.
6566 set dummy neato; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_path_NEATO+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   case $NEATO in
6573   [\\/]* | ?:[\\/]*)
6574   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6575   ;;
6576   *)
6577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6579 do
6580   IFS=$as_save_IFS
6581   test -z "$as_dir" && as_dir=.
6582   for ac_exec_ext in '' $ac_executable_extensions; do
6583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6584     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586     break 2
6587   fi
6588 done
6589 done
6590 IFS=$as_save_IFS
6591
6592   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6593   ;;
6594 esac
6595 fi
6596 NEATO=$ac_cv_path_NEATO
6597 if test -n "$NEATO"; then
6598   { echo "$as_me:$LINENO: result: $NEATO" >&5
6599 echo "${ECHO_T}$NEATO" >&6; }
6600 else
6601   { echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6; }
6603 fi
6604
6605
6606 if test "$NEATO" != "echo neato" ; then
6607
6608 cat >>confdefs.h <<\_ACEOF
6609 #define HAVE_NEATO 1
6610 _ACEOF
6611
6612     if test "$llvm_cv_os_type" = "MingW" ; then
6613     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6614   fi
6615
6616 cat >>confdefs.h <<_ACEOF
6617 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6618 _ACEOF
6619
6620 fi
6621 # Extract the first word of "twopi", so it can be a program name with args.
6622 set dummy twopi; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_path_TWOPI+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   case $TWOPI in
6629   [\\/]* | ?:[\\/]*)
6630   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6631   ;;
6632   *)
6633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638   for ac_exec_ext in '' $ac_executable_extensions; do
6639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6649   ;;
6650 esac
6651 fi
6652 TWOPI=$ac_cv_path_TWOPI
6653 if test -n "$TWOPI"; then
6654   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6655 echo "${ECHO_T}$TWOPI" >&6; }
6656 else
6657   { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6659 fi
6660
6661
6662 if test "$TWOPI" != "echo twopi" ; then
6663
6664 cat >>confdefs.h <<\_ACEOF
6665 #define HAVE_TWOPI 1
6666 _ACEOF
6667
6668     if test "$llvm_cv_os_type" = "MingW" ; then
6669     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6670   fi
6671
6672 cat >>confdefs.h <<_ACEOF
6673 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6674 _ACEOF
6675
6676 fi
6677 # Extract the first word of "circo", so it can be a program name with args.
6678 set dummy circo; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_path_CIRCO+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   case $CIRCO in
6685   [\\/]* | ?:[\\/]*)
6686   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6687   ;;
6688   *)
6689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694   for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6705   ;;
6706 esac
6707 fi
6708 CIRCO=$ac_cv_path_CIRCO
6709 if test -n "$CIRCO"; then
6710   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6711 echo "${ECHO_T}$CIRCO" >&6; }
6712 else
6713   { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6715 fi
6716
6717
6718 if test "$CIRCO" != "echo circo" ; then
6719
6720 cat >>confdefs.h <<\_ACEOF
6721 #define HAVE_CIRCO 1
6722 _ACEOF
6723
6724     if test "$llvm_cv_os_type" = "MingW" ; then
6725     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6726   fi
6727
6728 cat >>confdefs.h <<_ACEOF
6729 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6730 _ACEOF
6731
6732 fi
6733 for ac_prog in gv gsview32
6734 do
6735   # Extract the first word of "$ac_prog", so it can be a program name with args.
6736 set dummy $ac_prog; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_path_GV+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   case $GV in
6743   [\\/]* | ?:[\\/]*)
6744   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6745   ;;
6746   *)
6747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750   IFS=$as_save_IFS
6751   test -z "$as_dir" && as_dir=.
6752   for ac_exec_ext in '' $ac_executable_extensions; do
6753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756     break 2
6757   fi
6758 done
6759 done
6760 IFS=$as_save_IFS
6761
6762   ;;
6763 esac
6764 fi
6765 GV=$ac_cv_path_GV
6766 if test -n "$GV"; then
6767   { echo "$as_me:$LINENO: result: $GV" >&5
6768 echo "${ECHO_T}$GV" >&6; }
6769 else
6770   { echo "$as_me:$LINENO: result: no" >&5
6771 echo "${ECHO_T}no" >&6; }
6772 fi
6773
6774
6775   test -n "$GV" && break
6776 done
6777 test -n "$GV" || GV="echo gv"
6778
6779 if test "$GV" != "echo gv" ; then
6780
6781 cat >>confdefs.h <<\_ACEOF
6782 #define HAVE_GV 1
6783 _ACEOF
6784
6785     if test "$llvm_cv_os_type" = "MingW" ; then
6786     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6787   fi
6788
6789 cat >>confdefs.h <<_ACEOF
6790 #define LLVM_PATH_GV "$GV${EXEEXT}"
6791 _ACEOF
6792
6793 fi
6794 # Extract the first word of "dotty", so it can be a program name with args.
6795 set dummy dotty; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_path_DOTTY+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   case $DOTTY in
6802   [\\/]* | ?:[\\/]*)
6803   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6804   ;;
6805   *)
6806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811   for ac_exec_ext in '' $ac_executable_extensions; do
6812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6813     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6822   ;;
6823 esac
6824 fi
6825 DOTTY=$ac_cv_path_DOTTY
6826 if test -n "$DOTTY"; then
6827   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6828 echo "${ECHO_T}$DOTTY" >&6; }
6829 else
6830   { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6832 fi
6833
6834
6835 if test "$DOTTY" != "echo dotty" ; then
6836
6837 cat >>confdefs.h <<\_ACEOF
6838 #define HAVE_DOTTY 1
6839 _ACEOF
6840
6841     if test "$llvm_cv_os_type" = "MingW" ; then
6842     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6843   fi
6844
6845 cat >>confdefs.h <<_ACEOF
6846 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6847 _ACEOF
6848
6849 fi
6850 # Extract the first word of "xdot.py", so it can be a program name with args.
6851 set dummy xdot.py; ac_word=$2
6852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6854 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6855   echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857   case $XDOT_PY in
6858   [\\/]* | ?:[\\/]*)
6859   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6860   ;;
6861   *)
6862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867   for ac_exec_ext in '' $ac_executable_extensions; do
6868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6878   ;;
6879 esac
6880 fi
6881 XDOT_PY=$ac_cv_path_XDOT_PY
6882 if test -n "$XDOT_PY"; then
6883   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6884 echo "${ECHO_T}$XDOT_PY" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890
6891 if test "$XDOT_PY" != "echo xdot.py" ; then
6892
6893 cat >>confdefs.h <<\_ACEOF
6894 #define HAVE_XDOT_PY 1
6895 _ACEOF
6896
6897     if test "$llvm_cv_os_type" = "MingW" ; then
6898     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6899   fi
6900
6901 cat >>confdefs.h <<_ACEOF
6902 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6903 _ACEOF
6904
6905 fi
6906
6907
6908 # Extract the first word of "perl", so it can be a program name with args.
6909 set dummy perl; ac_word=$2
6910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6912 if test "${ac_cv_path_PERL+set}" = set; then
6913   echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915   case $PERL in
6916   [\\/]* | ?:[\\/]*)
6917   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6918   ;;
6919   *)
6920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   test -z "$as_dir" && as_dir=.
6925   for ac_exec_ext in '' $ac_executable_extensions; do
6926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6927     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929     break 2
6930   fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6936   ;;
6937 esac
6938 fi
6939 PERL=$ac_cv_path_PERL
6940 if test -n "$PERL"; then
6941   { echo "$as_me:$LINENO: result: $PERL" >&5
6942 echo "${ECHO_T}$PERL" >&6; }
6943 else
6944   { echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6; }
6946 fi
6947
6948
6949 if test "$PERL" != "none"; then
6950   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6951 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6952   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6953     { echo "$as_me:$LINENO: result: yes" >&5
6954 echo "${ECHO_T}yes" >&6; }
6955   else
6956     PERL=none
6957     { echo "$as_me:$LINENO: result: not found" >&5
6958 echo "${ECHO_T}not found" >&6; }
6959   fi
6960 fi
6961
6962
6963 if test x"$PERL" = xnone; then
6964    HAVE_PERL=0
6965
6966    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6967 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6968    { (exit 1); exit 1; }; }
6969 else
6970    HAVE_PERL=1
6971
6972 fi
6973
6974 # Find a good install program.  We prefer a C program (faster),
6975 # so one script is as good as another.  But avoid the broken or
6976 # incompatible versions:
6977 # SysV /etc/install, /usr/sbin/install
6978 # SunOS /usr/etc/install
6979 # IRIX /sbin/install
6980 # AIX /bin/install
6981 # AmigaOS /C/install, which installs bootblocks on floppy discs
6982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6985 # OS/2's system install, which has a completely different semantic
6986 # ./install, which can be erroneously created by make from ./install.sh.
6987 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6989 if test -z "$INSTALL"; then
6990 if test "${ac_cv_path_install+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998   # Account for people who put trailing slashes in PATH elements.
6999 case $as_dir/ in
7000   ./ | .// | /cC/* | \
7001   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7002   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7003   /usr/ucb/* ) ;;
7004   *)
7005     # OSF1 and SCO ODT 3.0 have their own names for install.
7006     # Don't use installbsd from OSF since it installs stuff as root
7007     # by default.
7008     for ac_prog in ginstall scoinst install; do
7009       for ac_exec_ext in '' $ac_executable_extensions; do
7010         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7011           if test $ac_prog = install &&
7012             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7013             # AIX install.  It has an incompatible calling convention.
7014             :
7015           elif test $ac_prog = install &&
7016             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7017             # program-specific install script used by HP pwplus--don't use.
7018             :
7019           else
7020             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7021             break 3
7022           fi
7023         fi
7024       done
7025     done
7026     ;;
7027 esac
7028 done
7029 IFS=$as_save_IFS
7030
7031
7032 fi
7033   if test "${ac_cv_path_install+set}" = set; then
7034     INSTALL=$ac_cv_path_install
7035   else
7036     # As a last resort, use the slow shell script.  Don't cache a
7037     # value for INSTALL within a source directory, because that will
7038     # break other packages using the cache if that directory is
7039     # removed, or if the value is a relative name.
7040     INSTALL=$ac_install_sh
7041   fi
7042 fi
7043 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7044 echo "${ECHO_T}$INSTALL" >&6; }
7045
7046 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7047 # It thinks the first close brace ends the variable substitution.
7048 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7049
7050 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7051
7052 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7053
7054 case "$INSTALL" in
7055  [\\/$]* | ?:[\\/]* ) ;;
7056  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7057 esac
7058
7059 # Extract the first word of "bzip2", so it can be a program name with args.
7060 set dummy bzip2; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_path_BZIP2+set}" = set; then
7064   echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066   case $BZIP2 in
7067   [\\/]* | ?:[\\/]*)
7068   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7069   ;;
7070   *)
7071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076   for ac_exec_ext in '' $ac_executable_extensions; do
7077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7078     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086   ;;
7087 esac
7088 fi
7089 BZIP2=$ac_cv_path_BZIP2
7090 if test -n "$BZIP2"; then
7091   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7092 echo "${ECHO_T}$BZIP2" >&6; }
7093 else
7094   { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7096 fi
7097
7098
7099 # Extract the first word of "cat", so it can be a program name with args.
7100 set dummy cat; ac_word=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_CAT+set}" = set; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106   case $CAT in
7107   [\\/]* | ?:[\\/]*)
7108   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7109   ;;
7110   *)
7111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116   for ac_exec_ext in '' $ac_executable_extensions; do
7117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126   ;;
7127 esac
7128 fi
7129 CAT=$ac_cv_path_CAT
7130 if test -n "$CAT"; then
7131   { echo "$as_me:$LINENO: result: $CAT" >&5
7132 echo "${ECHO_T}$CAT" >&6; }
7133 else
7134   { echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6; }
7136 fi
7137
7138
7139 # Extract the first word of "doxygen", so it can be a program name with args.
7140 set dummy doxygen; ac_word=$2
7141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7144   echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146   case $DOXYGEN in
7147   [\\/]* | ?:[\\/]*)
7148   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7149   ;;
7150   *)
7151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156   for ac_exec_ext in '' $ac_executable_extensions; do
7157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163 done
7164 IFS=$as_save_IFS
7165
7166   ;;
7167 esac
7168 fi
7169 DOXYGEN=$ac_cv_path_DOXYGEN
7170 if test -n "$DOXYGEN"; then
7171   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7172 echo "${ECHO_T}$DOXYGEN" >&6; }
7173 else
7174   { echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6; }
7176 fi
7177
7178
7179 # Extract the first word of "groff", so it can be a program name with args.
7180 set dummy groff; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_path_GROFF+set}" = set; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186   case $GROFF in
7187   [\\/]* | ?:[\\/]*)
7188   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7189   ;;
7190   *)
7191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196   for ac_exec_ext in '' $ac_executable_extensions; do
7197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206   ;;
7207 esac
7208 fi
7209 GROFF=$ac_cv_path_GROFF
7210 if test -n "$GROFF"; then
7211   { echo "$as_me:$LINENO: result: $GROFF" >&5
7212 echo "${ECHO_T}$GROFF" >&6; }
7213 else
7214   { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7216 fi
7217
7218
7219 # Extract the first word of "gzip", so it can be a program name with args.
7220 set dummy gzip; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   case $GZIPBIN in
7227   [\\/]* | ?:[\\/]*)
7228   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7229   ;;
7230   *)
7231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236   for ac_exec_ext in '' $ac_executable_extensions; do
7237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7245
7246   ;;
7247 esac
7248 fi
7249 GZIPBIN=$ac_cv_path_GZIPBIN
7250 if test -n "$GZIPBIN"; then
7251   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7252 echo "${ECHO_T}$GZIPBIN" >&6; }
7253 else
7254   { echo "$as_me:$LINENO: result: no" >&5
7255 echo "${ECHO_T}no" >&6; }
7256 fi
7257
7258
7259 # Extract the first word of "pod2html", so it can be a program name with args.
7260 set dummy pod2html; ac_word=$2
7261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263 if test "${ac_cv_path_POD2HTML+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   case $POD2HTML in
7267   [\\/]* | ?:[\\/]*)
7268   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7269   ;;
7270   *)
7271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276   for ac_exec_ext in '' $ac_executable_extensions; do
7277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7278     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283 done
7284 IFS=$as_save_IFS
7285
7286   ;;
7287 esac
7288 fi
7289 POD2HTML=$ac_cv_path_POD2HTML
7290 if test -n "$POD2HTML"; then
7291   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7292 echo "${ECHO_T}$POD2HTML" >&6; }
7293 else
7294   { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7296 fi
7297
7298
7299 # Extract the first word of "pod2man", so it can be a program name with args.
7300 set dummy pod2man; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_POD2MAN+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   case $POD2MAN in
7307   [\\/]* | ?:[\\/]*)
7308   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7309   ;;
7310   *)
7311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316   for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326   ;;
7327 esac
7328 fi
7329 POD2MAN=$ac_cv_path_POD2MAN
7330 if test -n "$POD2MAN"; then
7331   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7332 echo "${ECHO_T}$POD2MAN" >&6; }
7333 else
7334   { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7336 fi
7337
7338
7339 # Extract the first word of "pdfroff", so it can be a program name with args.
7340 set dummy pdfroff; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_PDFROFF+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346   case $PDFROFF in
7347   [\\/]* | ?:[\\/]*)
7348   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7349   ;;
7350   *)
7351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356   for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366   ;;
7367 esac
7368 fi
7369 PDFROFF=$ac_cv_path_PDFROFF
7370 if test -n "$PDFROFF"; then
7371   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7372 echo "${ECHO_T}$PDFROFF" >&6; }
7373 else
7374   { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7376 fi
7377
7378
7379 # Extract the first word of "runtest", so it can be a program name with args.
7380 set dummy runtest; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_RUNTEST+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   case $RUNTEST in
7387   [\\/]* | ?:[\\/]*)
7388   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7389   ;;
7390   *)
7391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396   for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406   ;;
7407 esac
7408 fi
7409 RUNTEST=$ac_cv_path_RUNTEST
7410 if test -n "$RUNTEST"; then
7411   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7412 echo "${ECHO_T}$RUNTEST" >&6; }
7413 else
7414   { echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6; }
7416 fi
7417
7418
7419
7420 no_itcl=true
7421 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7422 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7423
7424 # Check whether --with-tclinclude was given.
7425 if test "${with_tclinclude+set}" = set; then
7426   withval=$with_tclinclude; with_tclinclude=${withval}
7427 else
7428   with_tclinclude=''
7429 fi
7430
7431 if test "${ac_cv_path_tclsh+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434
7435 if test x"${with_tclinclude}" != x ; then
7436   if test -f ${with_tclinclude}/tclsh ; then
7437     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7438   elif test -f ${with_tclinclude}/src/tclsh ; then
7439     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7440   else
7441     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7442 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7443    { (exit 1); exit 1; }; }
7444   fi
7445 fi
7446 fi
7447
7448
7449 if test x"${ac_cv_path_tclsh}" = x ; then
7450   { echo "$as_me:$LINENO: result: none" >&5
7451 echo "${ECHO_T}none" >&6; }
7452   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
7453 do
7454   # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_TCLSH+set}" = set; then
7459   echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461   case $TCLSH in
7462   [\\/]* | ?:[\\/]*)
7463   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7464   ;;
7465   *)
7466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   for ac_exec_ext in '' $ac_executable_extensions; do
7472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481   ;;
7482 esac
7483 fi
7484 TCLSH=$ac_cv_path_TCLSH
7485 if test -n "$TCLSH"; then
7486   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7487 echo "${ECHO_T}$TCLSH" >&6; }
7488 else
7489   { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7491 fi
7492
7493
7494   test -n "$TCLSH" && break
7495 done
7496
7497   if test x"${TCLSH}" = x ; then
7498     ac_cv_path_tclsh='';
7499   else
7500     ac_cv_path_tclsh="${TCLSH}";
7501   fi
7502 else
7503   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7504 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7505   TCLSH="${ac_cv_path_tclsh}"
7506
7507 fi
7508
7509 # Extract the first word of "zip", so it can be a program name with args.
7510 set dummy zip; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_path_ZIP+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   case $ZIP in
7517   [\\/]* | ?:[\\/]*)
7518   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7519   ;;
7520   *)
7521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524   IFS=$as_save_IFS
7525   test -z "$as_dir" && as_dir=.
7526   for ac_exec_ext in '' $ac_executable_extensions; do
7527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7528     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530     break 2
7531   fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536   ;;
7537 esac
7538 fi
7539 ZIP=$ac_cv_path_ZIP
7540 if test -n "$ZIP"; then
7541   { echo "$as_me:$LINENO: result: $ZIP" >&5
7542 echo "${ECHO_T}$ZIP" >&6; }
7543 else
7544   { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7546 fi
7547
7548
7549 for ac_prog in ocamlc
7550 do
7551   # Extract the first word of "$ac_prog", so it can be a program name with args.
7552 set dummy $ac_prog; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_OCAMLC+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   case $OCAMLC in
7559   [\\/]* | ?:[\\/]*)
7560   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7561   ;;
7562   *)
7563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566   IFS=$as_save_IFS
7567   test -z "$as_dir" && as_dir=.
7568   for ac_exec_ext in '' $ac_executable_extensions; do
7569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572     break 2
7573   fi
7574 done
7575 done
7576 IFS=$as_save_IFS
7577
7578   ;;
7579 esac
7580 fi
7581 OCAMLC=$ac_cv_path_OCAMLC
7582 if test -n "$OCAMLC"; then
7583   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7584 echo "${ECHO_T}$OCAMLC" >&6; }
7585 else
7586   { echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6; }
7588 fi
7589
7590
7591   test -n "$OCAMLC" && break
7592 done
7593
7594 for ac_prog in ocamlopt
7595 do
7596   # Extract the first word of "$ac_prog", so it can be a program name with args.
7597 set dummy $ac_prog; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603   case $OCAMLOPT in
7604   [\\/]* | ?:[\\/]*)
7605   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7606   ;;
7607   *)
7608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613   for ac_exec_ext in '' $ac_executable_extensions; do
7614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620 done
7621 IFS=$as_save_IFS
7622
7623   ;;
7624 esac
7625 fi
7626 OCAMLOPT=$ac_cv_path_OCAMLOPT
7627 if test -n "$OCAMLOPT"; then
7628   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7629 echo "${ECHO_T}$OCAMLOPT" >&6; }
7630 else
7631   { echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6; }
7633 fi
7634
7635
7636   test -n "$OCAMLOPT" && break
7637 done
7638
7639 for ac_prog in ocamldep
7640 do
7641   # Extract the first word of "$ac_prog", so it can be a program name with args.
7642 set dummy $ac_prog; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648   case $OCAMLDEP in
7649   [\\/]* | ?:[\\/]*)
7650   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7651   ;;
7652   *)
7653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658   for ac_exec_ext in '' $ac_executable_extensions; do
7659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7660     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668   ;;
7669 esac
7670 fi
7671 OCAMLDEP=$ac_cv_path_OCAMLDEP
7672 if test -n "$OCAMLDEP"; then
7673   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7674 echo "${ECHO_T}$OCAMLDEP" >&6; }
7675 else
7676   { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7678 fi
7679
7680
7681   test -n "$OCAMLDEP" && break
7682 done
7683
7684 for ac_prog in ocamldoc
7685 do
7686   # Extract the first word of "$ac_prog", so it can be a program name with args.
7687 set dummy $ac_prog; ac_word=$2
7688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7691   echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693   case $OCAMLDOC in
7694   [\\/]* | ?:[\\/]*)
7695   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7696   ;;
7697   *)
7698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703   for ac_exec_ext in '' $ac_executable_extensions; do
7704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7705     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707     break 2
7708   fi
7709 done
7710 done
7711 IFS=$as_save_IFS
7712
7713   ;;
7714 esac
7715 fi
7716 OCAMLDOC=$ac_cv_path_OCAMLDOC
7717 if test -n "$OCAMLDOC"; then
7718   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7719 echo "${ECHO_T}$OCAMLDOC" >&6; }
7720 else
7721   { echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6; }
7723 fi
7724
7725
7726   test -n "$OCAMLDOC" && break
7727 done
7728
7729 for ac_prog in gas as
7730 do
7731   # Extract the first word of "$ac_prog", so it can be a program name with args.
7732 set dummy $ac_prog; ac_word=$2
7733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7735 if test "${ac_cv_path_GAS+set}" = set; then
7736   echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738   case $GAS in
7739   [\\/]* | ?:[\\/]*)
7740   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7741   ;;
7742   *)
7743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746   IFS=$as_save_IFS
7747   test -z "$as_dir" && as_dir=.
7748   for ac_exec_ext in '' $ac_executable_extensions; do
7749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7750     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752     break 2
7753   fi
7754 done
7755 done
7756 IFS=$as_save_IFS
7757
7758   ;;
7759 esac
7760 fi
7761 GAS=$ac_cv_path_GAS
7762 if test -n "$GAS"; then
7763   { echo "$as_me:$LINENO: result: $GAS" >&5
7764 echo "${ECHO_T}$GAS" >&6; }
7765 else
7766   { echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6; }
7768 fi
7769
7770
7771   test -n "$GAS" && break
7772 done
7773
7774
7775 { echo "$as_me:$LINENO: checking for linker version" >&5
7776 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7777 if test "${llvm_cv_link_version+set}" = set; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780
7781    version_string="$(ld -v 2>&1 | head -1)"
7782
7783    # Check for ld64.
7784    if (echo "$version_string" | grep -q "ld64"); then
7785      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7786    else
7787      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7788    fi
7789
7790 fi
7791 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7792 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7793
7794 cat >>confdefs.h <<_ACEOF
7795 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7796 _ACEOF
7797
7798
7799
7800 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7801 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7802 if test "${llvm_cv_link_use_r+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805    ac_ext=c
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810
7811   oldcflags="$CFLAGS"
7812   CFLAGS="$CFLAGS -Wl,-R."
7813   cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h.  */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h.  */
7819
7820 int
7821 main ()
7822 {
7823
7824   ;
7825   return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7830 case "(($ac_try" in
7831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832   *) ac_try_echo=$ac_try;;
7833 esac
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835   (eval "$ac_link") 2>conftest.er1
7836   ac_status=$?
7837   grep -v '^ *+' conftest.er1 >conftest.err
7838   rm -f conftest.er1
7839   cat conftest.err >&5
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
7849   ac_status=$?
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); }; } &&
7852          { ac_try='test -s conftest$ac_exeext'
7853   { (case "(($ac_try" in
7854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855   *) ac_try_echo=$ac_try;;
7856 esac
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858   (eval "$ac_try") 2>&5
7859   ac_status=$?
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); }; }; then
7862   llvm_cv_link_use_r=yes
7863 else
7864   echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867         llvm_cv_link_use_r=no
7868 fi
7869
7870 rm -f core conftest.err conftest.$ac_objext \
7871       conftest$ac_exeext conftest.$ac_ext
7872   CFLAGS="$oldcflags"
7873   ac_ext=c
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7878
7879
7880 fi
7881 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7882 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7883 if test "$llvm_cv_link_use_r" = yes ; then
7884
7885 cat >>confdefs.h <<\_ACEOF
7886 #define HAVE_LINK_R 1
7887 _ACEOF
7888
7889   fi
7890
7891
7892 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7893 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7894 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7895   echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897    ac_ext=c
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902
7903   oldcflags="$CFLAGS"
7904   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7905   cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h.  */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h.  */
7911
7912 int
7913 main ()
7914 {
7915
7916   ;
7917   return 0;
7918 }
7919 _ACEOF
7920 rm -f conftest.$ac_objext conftest$ac_exeext
7921 if { (ac_try="$ac_link"
7922 case "(($ac_try" in
7923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924   *) ac_try_echo=$ac_try;;
7925 esac
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927   (eval "$ac_link") 2>conftest.er1
7928   ac_status=$?
7929   grep -v '^ *+' conftest.er1 >conftest.err
7930   rm -f conftest.er1
7931   cat conftest.err >&5
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); } &&
7934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7935   { (case "(($ac_try" in
7936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937   *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940   (eval "$ac_try") 2>&5
7941   ac_status=$?
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); }; } &&
7944          { ac_try='test -s conftest$ac_exeext'
7945   { (case "(($ac_try" in
7946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947   *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950   (eval "$ac_try") 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); }; }; then
7954   llvm_cv_link_use_export_dynamic=yes
7955 else
7956   echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7958
7959         llvm_cv_link_use_export_dynamic=no
7960 fi
7961
7962 rm -f core conftest.err conftest.$ac_objext \
7963       conftest$ac_exeext conftest.$ac_ext
7964   CFLAGS="$oldcflags"
7965   ac_ext=c
7966 ac_cpp='$CPP $CPPFLAGS'
7967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970
7971
7972 fi
7973 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7974 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7975 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7976
7977 cat >>confdefs.h <<\_ACEOF
7978 #define HAVE_LINK_EXPORT_DYNAMIC 1
7979 _ACEOF
7980
7981   fi
7982
7983
7984 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7985 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7986 if test "${llvm_cv_link_use_version_script+set}" = set; then
7987   echo $ECHO_N "(cached) $ECHO_C" >&6
7988 else
7989    ac_ext=c
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994
7995   oldcflags="$CFLAGS"
7996
7997   # The following code is from the autoconf manual,
7998   # "11.13: Limitations of Usual Tools".
7999   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8000   # Use mktemp if possible; otherwise fall back on mkdir,
8001   # with $RANDOM to make collisions less likely.
8002   : ${TMPDIR=/tmp}
8003   {
8004     tmp=`
8005       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8006     ` &&
8007     test -n "$tmp" && test -d "$tmp"
8008   } || {
8009     tmp=$TMPDIR/foo$$-$RANDOM
8010     (umask 077 && mkdir "$tmp")
8011   } || exit $?
8012
8013   echo "{" > "$tmp/export.map"
8014   echo "  global: main;" >> "$tmp/export.map"
8015   echo "  local: *;" >> "$tmp/export.map"
8016   echo "};" >> "$tmp/export.map"
8017
8018   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8019   cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025
8026 int
8027 main ()
8028 {
8029
8030   ;
8031   return 0;
8032 }
8033 _ACEOF
8034 rm -f conftest.$ac_objext conftest$ac_exeext
8035 if { (ac_try="$ac_link"
8036 case "(($ac_try" in
8037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038   *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041   (eval "$ac_link") 2>conftest.er1
8042   ac_status=$?
8043   grep -v '^ *+' conftest.er1 >conftest.err
8044   rm -f conftest.er1
8045   cat conftest.err >&5
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); } &&
8048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8049   { (case "(($ac_try" in
8050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051   *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054   (eval "$ac_try") 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; } &&
8058          { ac_try='test -s conftest$ac_exeext'
8059   { (case "(($ac_try" in
8060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061   *) ac_try_echo=$ac_try;;
8062 esac
8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064   (eval "$ac_try") 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); }; }; then
8068   llvm_cv_link_use_version_script=yes
8069 else
8070   echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073         llvm_cv_link_use_version_script=no
8074 fi
8075
8076 rm -f core conftest.err conftest.$ac_objext \
8077       conftest$ac_exeext conftest.$ac_ext
8078   rm "$tmp/export.map"
8079   rmdir "$tmp"
8080   CFLAGS="$oldcflags"
8081   ac_ext=c
8082 ac_cpp='$CPP $CPPFLAGS'
8083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086
8087
8088 fi
8089 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8090 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8091 if test "$llvm_cv_link_use_version_script" = yes ; then
8092   HAVE_LINK_VERSION_SCRIPT=1
8093
8094   fi
8095
8096
8097
8098
8099 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8100 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8101 if test "${ac_cv_c_const+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110
8111 int
8112 main ()
8113 {
8114 /* FIXME: Include the comments suggested by Paul. */
8115 #ifndef __cplusplus
8116   /* Ultrix mips cc rejects this.  */
8117   typedef int charset[2];
8118   const charset x;
8119   /* SunOS 4.1.1 cc rejects this.  */
8120   char const *const *ccp;
8121   char **p;
8122   /* NEC SVR4.0.2 mips cc rejects this.  */
8123   struct point {int x, y;};
8124   static struct point const zero = {0,0};
8125   /* AIX XL C 1.02.0.0 rejects this.
8126      It does not let you subtract one const X* pointer from another in
8127      an arm of an if-expression whose if-part is not a constant
8128      expression */
8129   const char *g = "string";
8130   ccp = &g + (g ? g-g : 0);
8131   /* HPUX 7.0 cc rejects these. */
8132   ++ccp;
8133   p = (char**) ccp;
8134   ccp = (char const *const *) p;
8135   { /* SCO 3.2v4 cc rejects this.  */
8136     char *t;
8137     char const *s = 0 ? (char *) 0 : (char const *) 0;
8138
8139     *t++ = 0;
8140     if (s) return 0;
8141   }
8142   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8143     int x[] = {25, 17};
8144     const int *foo = &x[0];
8145     ++foo;
8146   }
8147   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8148     typedef const int *iptr;
8149     iptr p = 0;
8150     ++p;
8151   }
8152   { /* AIX XL C 1.02.0.0 rejects this saying
8153        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8154     struct s { int j; const int *ap[3]; };
8155     struct s *b; b->j = 5;
8156   }
8157   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8158     const int foo = 10;
8159     if (!foo) return 0;
8160   }
8161   return !x[0] && !zero.x;
8162 #endif
8163
8164   ;
8165   return 0;
8166 }
8167 _ACEOF
8168 rm -f conftest.$ac_objext
8169 if { (ac_try="$ac_compile"
8170 case "(($ac_try" in
8171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172   *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175   (eval "$ac_compile") 2>conftest.er1
8176   ac_status=$?
8177   grep -v '^ *+' conftest.er1 >conftest.err
8178   rm -f conftest.er1
8179   cat conftest.err >&5
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); } &&
8182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8183   { (case "(($ac_try" in
8184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185   *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188   (eval "$ac_try") 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; } &&
8192          { ac_try='test -s conftest.$ac_objext'
8193   { (case "(($ac_try" in
8194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195   *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198   (eval "$ac_try") 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }; }; then
8202   ac_cv_c_const=yes
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207         ac_cv_c_const=no
8208 fi
8209
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8213 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8214 if test $ac_cv_c_const = no; then
8215
8216 cat >>confdefs.h <<\_ACEOF
8217 #define const
8218 _ACEOF
8219
8220 fi
8221
8222
8223
8224
8225
8226
8227 ac_header_dirent=no
8228 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8229   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8230 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8231 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241 #include <sys/types.h>
8242 #include <$ac_hdr>
8243
8244 int
8245 main ()
8246 {
8247 if ((DIR *) 0)
8248 return 0;
8249   ;
8250   return 0;
8251 }
8252 _ACEOF
8253 rm -f conftest.$ac_objext
8254 if { (ac_try="$ac_compile"
8255 case "(($ac_try" in
8256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257   *) ac_try_echo=$ac_try;;
8258 esac
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260   (eval "$ac_compile") 2>conftest.er1
8261   ac_status=$?
8262   grep -v '^ *+' conftest.er1 >conftest.err
8263   rm -f conftest.er1
8264   cat conftest.err >&5
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); } &&
8267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8268   { (case "(($ac_try" in
8269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270   *) ac_try_echo=$ac_try;;
8271 esac
8272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273   (eval "$ac_try") 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); }; } &&
8277          { ac_try='test -s conftest.$ac_objext'
8278   { (case "(($ac_try" in
8279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280   *) ac_try_echo=$ac_try;;
8281 esac
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283   (eval "$ac_try") 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); }; }; then
8287   eval "$as_ac_Header=yes"
8288 else
8289   echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292         eval "$as_ac_Header=no"
8293 fi
8294
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 fi
8297 ac_res=`eval echo '${'$as_ac_Header'}'`
8298                { echo "$as_me:$LINENO: result: $ac_res" >&5
8299 echo "${ECHO_T}$ac_res" >&6; }
8300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8301   cat >>confdefs.h <<_ACEOF
8302 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8303 _ACEOF
8304
8305 ac_header_dirent=$ac_hdr; break
8306 fi
8307
8308 done
8309 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8310 if test $ac_header_dirent = dirent.h; then
8311   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8312 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8313 if test "${ac_cv_search_opendir+set}" = set; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   ac_func_search_save_LIBS=$LIBS
8317 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h.  */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h.  */
8323
8324 /* Override any GCC internal prototype to avoid an error.
8325    Use char because int might match the return type of a GCC
8326    builtin and then its argument prototype would still apply.  */
8327 #ifdef __cplusplus
8328 extern "C"
8329 #endif
8330 char opendir ();
8331 int
8332 main ()
8333 {
8334 return opendir ();
8335   ;
8336   return 0;
8337 }
8338 _ACEOF
8339 for ac_lib in '' dir; do
8340   if test -z "$ac_lib"; then
8341     ac_res="none required"
8342   else
8343     ac_res=-l$ac_lib
8344     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8345   fi
8346   rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (ac_try="$ac_link"
8348 case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353   (eval "$ac_link") 2>conftest.er1
8354   ac_status=$?
8355   grep -v '^ *+' conftest.er1 >conftest.err
8356   rm -f conftest.er1
8357   cat conftest.err >&5
8358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359   (exit $ac_status); } &&
8360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8361   { (case "(($ac_try" in
8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363   *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366   (eval "$ac_try") 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; } &&
8370          { ac_try='test -s conftest$ac_exeext'
8371   { (case "(($ac_try" in
8372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373   *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376   (eval "$ac_try") 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; }; then
8380   ac_cv_search_opendir=$ac_res
8381 else
8382   echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385
8386 fi
8387
8388 rm -f core conftest.err conftest.$ac_objext \
8389       conftest$ac_exeext
8390   if test "${ac_cv_search_opendir+set}" = set; then
8391   break
8392 fi
8393 done
8394 if test "${ac_cv_search_opendir+set}" = set; then
8395   :
8396 else
8397   ac_cv_search_opendir=no
8398 fi
8399 rm conftest.$ac_ext
8400 LIBS=$ac_func_search_save_LIBS
8401 fi
8402 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8403 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8404 ac_res=$ac_cv_search_opendir
8405 if test "$ac_res" != no; then
8406   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8407
8408 fi
8409
8410 else
8411   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8412 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8413 if test "${ac_cv_search_opendir+set}" = set; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   ac_func_search_save_LIBS=$LIBS
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423
8424 /* Override any GCC internal prototype to avoid an error.
8425    Use char because int might match the return type of a GCC
8426    builtin and then its argument prototype would still apply.  */
8427 #ifdef __cplusplus
8428 extern "C"
8429 #endif
8430 char opendir ();
8431 int
8432 main ()
8433 {
8434 return opendir ();
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 for ac_lib in '' x; do
8440   if test -z "$ac_lib"; then
8441     ac_res="none required"
8442   else
8443     ac_res=-l$ac_lib
8444     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8445   fi
8446   rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8448 case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_link") 2>conftest.er1
8454   ac_status=$?
8455   grep -v '^ *+' conftest.er1 >conftest.err
8456   rm -f conftest.er1
8457   cat conftest.err >&5
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); } &&
8460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; } &&
8470          { ac_try='test -s conftest$ac_exeext'
8471   { (case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476   (eval "$ac_try") 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }; }; then
8480   ac_cv_search_opendir=$ac_res
8481 else
8482   echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8484
8485
8486 fi
8487
8488 rm -f core conftest.err conftest.$ac_objext \
8489       conftest$ac_exeext
8490   if test "${ac_cv_search_opendir+set}" = set; then
8491   break
8492 fi
8493 done
8494 if test "${ac_cv_search_opendir+set}" = set; then
8495   :
8496 else
8497   ac_cv_search_opendir=no
8498 fi
8499 rm conftest.$ac_ext
8500 LIBS=$ac_func_search_save_LIBS
8501 fi
8502 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8503 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8504 ac_res=$ac_cv_search_opendir
8505 if test "$ac_res" != no; then
8506   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8507
8508 fi
8509
8510 fi
8511
8512
8513 for ac_header in dlfcn.h
8514 do
8515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8517   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8520   echo $ECHO_N "(cached) $ECHO_C" >&6
8521 fi
8522 ac_res=`eval echo '${'$as_ac_Header'}'`
8523                { echo "$as_me:$LINENO: result: $ac_res" >&5
8524 echo "${ECHO_T}$ac_res" >&6; }
8525 else
8526   # Is the header compilable?
8527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h.  */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h.  */
8535 $ac_includes_default
8536 #include <$ac_header>
8537 _ACEOF
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8540 case "(($ac_try" in
8541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542   *) ac_try_echo=$ac_try;;
8543 esac
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545   (eval "$ac_compile") 2>conftest.er1
8546   ac_status=$?
8547   grep -v '^ *+' conftest.er1 >conftest.err
8548   rm -f conftest.er1
8549   cat conftest.err >&5
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); } &&
8552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8553   { (case "(($ac_try" in
8554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555   *) ac_try_echo=$ac_try;;
8556 esac
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558   (eval "$ac_try") 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); }; } &&
8562          { ac_try='test -s conftest.$ac_objext'
8563   { (case "(($ac_try" in
8564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565   *) ac_try_echo=$ac_try;;
8566 esac
8567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568   (eval "$ac_try") 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }; }; then
8572   ac_header_compiler=yes
8573 else
8574   echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577         ac_header_compiler=no
8578 fi
8579
8580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8582 echo "${ECHO_T}$ac_header_compiler" >&6; }
8583
8584 # Is the header present?
8585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h.  */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h.  */
8593 #include <$ac_header>
8594 _ACEOF
8595 if { (ac_try="$ac_cpp conftest.$ac_ext"
8596 case "(($ac_try" in
8597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598   *) ac_try_echo=$ac_try;;
8599 esac
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8602   ac_status=$?
8603   grep -v '^ *+' conftest.er1 >conftest.err
8604   rm -f conftest.er1
8605   cat conftest.err >&5
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } >/dev/null; then
8608   if test -s conftest.err; then
8609     ac_cpp_err=$ac_c_preproc_warn_flag
8610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8611   else
8612     ac_cpp_err=
8613   fi
8614 else
8615   ac_cpp_err=yes
8616 fi
8617 if test -z "$ac_cpp_err"; then
8618   ac_header_preproc=yes
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8622
8623   ac_header_preproc=no
8624 fi
8625
8626 rm -f conftest.err conftest.$ac_ext
8627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8628 echo "${ECHO_T}$ac_header_preproc" >&6; }
8629
8630 # So?  What about this header?
8631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8632   yes:no: )
8633     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8637     ac_header_preproc=yes
8638     ;;
8639   no:yes:* )
8640     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8642     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8643 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8644     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8646     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8647 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8650     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8652     ( cat <<\_ASBOX
8653 ## ------------------------------------ ##
8654 ## Report this to http://llvm.org/bugs/ ##
8655 ## ------------------------------------ ##
8656 _ASBOX
8657      ) | sed "s/^/$as_me: WARNING:     /" >&2
8658     ;;
8659 esac
8660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   eval "$as_ac_Header=\$ac_header_preproc"
8666 fi
8667 ac_res=`eval echo '${'$as_ac_Header'}'`
8668                { echo "$as_me:$LINENO: result: $ac_res" >&5
8669 echo "${ECHO_T}$ac_res" >&6; }
8670
8671 fi
8672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8673   cat >>confdefs.h <<_ACEOF
8674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8675 _ACEOF
8676
8677 fi
8678
8679 done
8680
8681 # Check whether --enable-ltdl-install was given.
8682 if test "${enable_ltdl_install+set}" = set; then
8683   enableval=$enable_ltdl_install;
8684 fi
8685
8686
8687
8688
8689 if test x"${enable_ltdl_install-no}" != xno; then
8690   INSTALL_LTDL_TRUE=
8691   INSTALL_LTDL_FALSE='#'
8692 else
8693   INSTALL_LTDL_TRUE='#'
8694   INSTALL_LTDL_FALSE=
8695 fi
8696
8697
8698
8699 if test x"${enable_ltdl_convenience-no}" != xno; then
8700   CONVENIENCE_LTDL_TRUE=
8701   CONVENIENCE_LTDL_FALSE='#'
8702 else
8703   CONVENIENCE_LTDL_TRUE='#'
8704   CONVENIENCE_LTDL_FALSE=
8705 fi
8706
8707
8708 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8710 library_names_spec=
8711 libname_spec='lib$name'
8712 soname_spec=
8713 shrext_cmds=".so"
8714 postinstall_cmds=
8715 postuninstall_cmds=
8716 finish_cmds=
8717 finish_eval=
8718 shlibpath_var=
8719 shlibpath_overrides_runpath=unknown
8720 version_type=none
8721 dynamic_linker="$host_os ld.so"
8722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8723 if test "$GCC" = yes; then
8724   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8725   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8726     # if the path contains ";" then we assume it to be the separator
8727     # otherwise default to the standard path separator (i.e. ":") - it is
8728     # assumed that no part of a normal pathname contains ";" but that should
8729     # okay in the real world where ";" in dirpaths is itself problematic.
8730     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8731   else
8732     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8733   fi
8734 else
8735   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8736 fi
8737 need_lib_prefix=unknown
8738 hardcode_into_libs=no
8739
8740 # when you set need_version to no, make sure it does not cause -set_version
8741 # flags to be left without arguments
8742 need_version=unknown
8743
8744 case $host_os in
8745 aix3*)
8746   version_type=linux
8747   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8748   shlibpath_var=LIBPATH
8749
8750   # AIX 3 has no versioning support, so we append a major version to the name.
8751   soname_spec='${libname}${release}${shared_ext}$major'
8752   ;;
8753
8754 aix4* | aix5*)
8755   version_type=linux
8756   need_lib_prefix=no
8757   need_version=no
8758   hardcode_into_libs=yes
8759   if test "$host_cpu" = ia64; then
8760     # AIX 5 supports IA64
8761     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8762     shlibpath_var=LD_LIBRARY_PATH
8763   else
8764     # With GCC up to 2.95.x, collect2 would create an import file
8765     # for dependence libraries.  The import file would start with
8766     # the line `#! .'.  This would cause the generated library to
8767     # depend on `.', always an invalid library.  This was fixed in
8768     # development snapshots of GCC prior to 3.0.
8769     case $host_os in
8770       aix4 | aix4.[01] | aix4.[01].*)
8771       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8772            echo ' yes '
8773            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8774         :
8775       else
8776         can_build_shared=no
8777       fi
8778       ;;
8779     esac
8780     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8781     # soname into executable. Probably we can add versioning support to
8782     # collect2, so additional links can be useful in future.
8783     if test "$aix_use_runtimelinking" = yes; then
8784       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8785       # instead of lib<name>.a to let people know that these are not
8786       # typical AIX shared libraries.
8787       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8788     else
8789       # We preserve .a as extension for shared libraries through AIX4.2
8790       # and later when we are not doing run time linking.
8791       library_names_spec='${libname}${release}.a $libname.a'
8792       soname_spec='${libname}${release}${shared_ext}$major'
8793     fi
8794     shlibpath_var=LIBPATH
8795   fi
8796   ;;
8797
8798 amigaos*)
8799   library_names_spec='$libname.ixlibrary $libname.a'
8800   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8801   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'
8802   ;;
8803
8804 beos*)
8805   library_names_spec='${libname}${shared_ext}'
8806   dynamic_linker="$host_os ld.so"
8807   shlibpath_var=LIBRARY_PATH
8808   ;;
8809
8810 bsdi[45]*)
8811   version_type=linux
8812   need_version=no
8813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814   soname_spec='${libname}${release}${shared_ext}$major'
8815   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8816   shlibpath_var=LD_LIBRARY_PATH
8817   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8818   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8819   # the default ld.so.conf also contains /usr/contrib/lib and
8820   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8821   # libtool to hard-code these into programs
8822   ;;
8823
8824 cygwin* | mingw* | pw32*)
8825   version_type=windows
8826   shrext_cmds=".dll"
8827   need_version=no
8828   need_lib_prefix=no
8829
8830   case $GCC,$host_os in
8831   yes,cygwin* | yes,mingw* | yes,pw32*)
8832     library_names_spec='$libname.dll.a'
8833     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8834     postinstall_cmds='base_file=`basename \${file}`~
8835       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8836       dldir=$destdir/`dirname \$dlpath`~
8837       test -d \$dldir || mkdir -p \$dldir~
8838       $install_prog $dir/$dlname \$dldir/$dlname~
8839       chmod a+x \$dldir/$dlname'
8840     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8841       dlpath=$dir/\$dldll~
8842        $rm \$dlpath'
8843     shlibpath_overrides_runpath=yes
8844
8845     case $host_os in
8846     cygwin*)
8847       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8848       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8849       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8850       ;;
8851     mingw*)
8852       # MinGW DLLs use traditional 'lib' prefix
8853       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8854       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8855       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8856         # It is most probably a Windows format PATH printed by
8857         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8858         # path with ; separators, and with drive letters. We can handle the
8859         # drive letters (cygwin fileutils understands them), so leave them,
8860         # especially as we might pass files found there to a mingw objdump,
8861         # which wouldn't understand a cygwinified path. Ahh.
8862         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8863       else
8864         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8865       fi
8866       ;;
8867     pw32*)
8868       # pw32 DLLs use 'pw' prefix rather than 'lib'
8869       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8870       ;;
8871     esac
8872     ;;
8873
8874   *)
8875     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8876     ;;
8877   esac
8878   dynamic_linker='Win32 ld.exe'
8879   # FIXME: first we should search . and the directory the executable is in
8880   shlibpath_var=PATH
8881   ;;
8882
8883 darwin* | rhapsody*)
8884   dynamic_linker="$host_os dyld"
8885   version_type=darwin
8886   need_lib_prefix=no
8887   need_version=no
8888   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8889   soname_spec='${libname}${release}${major}$shared_ext'
8890   shlibpath_overrides_runpath=yes
8891   shlibpath_var=DYLD_LIBRARY_PATH
8892   shrext_cmds='.dylib'
8893   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8894   if test "$GCC" = yes; then
8895     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"`
8896   else
8897     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8898   fi
8899   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8900   ;;
8901
8902 dgux*)
8903   version_type=linux
8904   need_lib_prefix=no
8905   need_version=no
8906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8907   soname_spec='${libname}${release}${shared_ext}$major'
8908   shlibpath_var=LD_LIBRARY_PATH
8909   ;;
8910
8911 freebsd1.*)
8912   dynamic_linker=no
8913   ;;
8914
8915 kfreebsd*-gnu)
8916   version_type=linux
8917   need_lib_prefix=no
8918   need_version=no
8919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8920   soname_spec='${libname}${release}${shared_ext}$major'
8921   shlibpath_var=LD_LIBRARY_PATH
8922   shlibpath_overrides_runpath=no
8923   hardcode_into_libs=yes
8924   dynamic_linker='GNU ld.so'
8925   ;;
8926
8927 freebsd* | dragonfly*)
8928   # DragonFly does not have aout.  When/if they implement a new
8929   # versioning mechanism, adjust this.
8930   if test -x /usr/bin/objformat; then
8931     objformat=`/usr/bin/objformat`
8932   else
8933     case $host_os in
8934     freebsd[123].*) objformat=aout ;;
8935     *) objformat=elf ;;
8936     esac
8937   fi
8938   version_type=freebsd-$objformat
8939   case $version_type in
8940     freebsd-elf*)
8941       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8942       need_version=no
8943       need_lib_prefix=no
8944       ;;
8945     freebsd-*)
8946       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8947       need_version=yes
8948       ;;
8949   esac
8950   shlibpath_var=LD_LIBRARY_PATH
8951   case $host_os in
8952   freebsd2.*)
8953     shlibpath_overrides_runpath=yes
8954     ;;
8955   freebsd3.[01]* | freebsdelf3.[01]*)
8956     shlibpath_overrides_runpath=yes
8957     hardcode_into_libs=yes
8958     ;;
8959   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8960   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8961     shlibpath_overrides_runpath=no
8962     hardcode_into_libs=yes
8963     ;;
8964   freebsd*) # from 4.6 on
8965     shlibpath_overrides_runpath=yes
8966     hardcode_into_libs=yes
8967     ;;
8968   esac
8969   ;;
8970
8971 gnu*)
8972   version_type=linux
8973   need_lib_prefix=no
8974   need_version=no
8975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8976   soname_spec='${libname}${release}${shared_ext}$major'
8977   shlibpath_var=LD_LIBRARY_PATH
8978   hardcode_into_libs=yes
8979   ;;
8980
8981 hpux9* | hpux10* | hpux11*)
8982   # Give a soname corresponding to the major version so that dld.sl refuses to
8983   # link against other versions.
8984   version_type=sunos
8985   need_lib_prefix=no
8986   need_version=no
8987   case $host_cpu in
8988   ia64*)
8989     shrext_cmds='.so'
8990     hardcode_into_libs=yes
8991     dynamic_linker="$host_os dld.so"
8992     shlibpath_var=LD_LIBRARY_PATH
8993     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8995     soname_spec='${libname}${release}${shared_ext}$major'
8996     if test "X$HPUX_IA64_MODE" = X32; then
8997       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8998     else
8999       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9000     fi
9001     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9002     ;;
9003    hppa*64*)
9004      shrext_cmds='.sl'
9005      hardcode_into_libs=yes
9006      dynamic_linker="$host_os dld.sl"
9007      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9008      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9009      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010      soname_spec='${libname}${release}${shared_ext}$major'
9011      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9012      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9013      ;;
9014    *)
9015     shrext_cmds='.sl'
9016     dynamic_linker="$host_os dld.sl"
9017     shlibpath_var=SHLIB_PATH
9018     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020     soname_spec='${libname}${release}${shared_ext}$major'
9021     ;;
9022   esac
9023   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9024   postinstall_cmds='chmod 555 $lib'
9025   ;;
9026
9027 interix3*)
9028   version_type=linux
9029   need_lib_prefix=no
9030   need_version=no
9031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032   soname_spec='${libname}${release}${shared_ext}$major'
9033   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9034   shlibpath_var=LD_LIBRARY_PATH
9035   shlibpath_overrides_runpath=no
9036   hardcode_into_libs=yes
9037   ;;
9038
9039 irix5* | irix6* | nonstopux*)
9040   case $host_os in
9041     nonstopux*) version_type=nonstopux ;;
9042     *)
9043         if test "$lt_cv_prog_gnu_ld" = yes; then
9044                 version_type=linux
9045         else
9046                 version_type=irix
9047         fi ;;
9048   esac
9049   need_lib_prefix=no
9050   need_version=no
9051   soname_spec='${libname}${release}${shared_ext}$major'
9052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9053   case $host_os in
9054   irix5* | nonstopux*)
9055     libsuff= shlibsuff=
9056     ;;
9057   *)
9058     case $LD in # libtool.m4 will add one of these switches to LD
9059     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9060       libsuff= shlibsuff= libmagic=32-bit;;
9061     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9062       libsuff=32 shlibsuff=N32 libmagic=N32;;
9063     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9064       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9065     *) libsuff= shlibsuff= libmagic=never-match;;
9066     esac
9067     ;;
9068   esac
9069   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9070   shlibpath_overrides_runpath=no
9071   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9072   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9073   hardcode_into_libs=yes
9074   ;;
9075
9076 # No shared lib support for Linux oldld, aout, or coff.
9077 linux*oldld* | linux*aout* | linux*coff*)
9078   dynamic_linker=no
9079   ;;
9080
9081 # This must be Linux ELF.
9082 linux*)
9083   version_type=linux
9084   need_lib_prefix=no
9085   need_version=no
9086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087   soname_spec='${libname}${release}${shared_ext}$major'
9088   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9089   shlibpath_var=LD_LIBRARY_PATH
9090   shlibpath_overrides_runpath=no
9091   # This implies no fast_install, which is unacceptable.
9092   # Some rework will be needed to allow for fast_install
9093   # before this can be enabled.
9094   hardcode_into_libs=yes
9095
9096   # Append ld.so.conf contents to the search path
9097   if test -f /etc/ld.so.conf; then
9098     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' ' '`
9099     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9100   fi
9101
9102   # We used to test for /lib/ld.so.1 and disable shared libraries on
9103   # powerpc, because MkLinux only supported shared libraries with the
9104   # GNU dynamic linker.  Since this was broken with cross compilers,
9105   # most powerpc-linux boxes support dynamic linking these days and
9106   # people can always --disable-shared, the test was removed, and we
9107   # assume the GNU/Linux dynamic linker is in use.
9108   dynamic_linker='GNU/Linux ld.so'
9109   ;;
9110
9111 knetbsd*-gnu)
9112   version_type=linux
9113   need_lib_prefix=no
9114   need_version=no
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9116   soname_spec='${libname}${release}${shared_ext}$major'
9117   shlibpath_var=LD_LIBRARY_PATH
9118   shlibpath_overrides_runpath=no
9119   hardcode_into_libs=yes
9120   dynamic_linker='GNU ld.so'
9121   ;;
9122
9123 netbsd*)
9124   version_type=sunos
9125   need_lib_prefix=no
9126   need_version=no
9127   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9129     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9130     dynamic_linker='NetBSD (a.out) ld.so'
9131   else
9132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9133     soname_spec='${libname}${release}${shared_ext}$major'
9134     dynamic_linker='NetBSD ld.elf_so'
9135   fi
9136   shlibpath_var=LD_LIBRARY_PATH
9137   shlibpath_overrides_runpath=yes
9138   hardcode_into_libs=yes
9139   ;;
9140
9141 newsos6)
9142   version_type=linux
9143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144   shlibpath_var=LD_LIBRARY_PATH
9145   shlibpath_overrides_runpath=yes
9146   ;;
9147
9148 nto-qnx*)
9149   version_type=linux
9150   need_lib_prefix=no
9151   need_version=no
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   shlibpath_overrides_runpath=yes
9156   ;;
9157
9158 openbsd*)
9159   version_type=sunos
9160   sys_lib_dlsearch_path_spec="/usr/lib"
9161   need_lib_prefix=no
9162   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9163   case $host_os in
9164     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9165     *)                         need_version=no  ;;
9166   esac
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9168   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9169   shlibpath_var=LD_LIBRARY_PATH
9170   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9171     case $host_os in
9172       openbsd2.[89] | openbsd2.[89].*)
9173         shlibpath_overrides_runpath=no
9174         ;;
9175       *)
9176         shlibpath_overrides_runpath=yes
9177         ;;
9178       esac
9179   else
9180     shlibpath_overrides_runpath=yes
9181   fi
9182   ;;
9183
9184 os2*)
9185   libname_spec='$name'
9186   shrext_cmds=".dll"
9187   need_lib_prefix=no
9188   library_names_spec='$libname${shared_ext} $libname.a'
9189   dynamic_linker='OS/2 ld.exe'
9190   shlibpath_var=LIBPATH
9191   ;;
9192
9193 osf3* | osf4* | osf5*)
9194   version_type=osf
9195   need_lib_prefix=no
9196   need_version=no
9197   soname_spec='${libname}${release}${shared_ext}$major'
9198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199   shlibpath_var=LD_LIBRARY_PATH
9200   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9201   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9202   ;;
9203
9204 solaris*)
9205   version_type=linux
9206   need_lib_prefix=no
9207   need_version=no
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   shlibpath_overrides_runpath=yes
9212   hardcode_into_libs=yes
9213   # ldd complains unless libraries are executable
9214   postinstall_cmds='chmod +x $lib'
9215   ;;
9216
9217 sunos4*)
9218   version_type=sunos
9219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9220   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9221   shlibpath_var=LD_LIBRARY_PATH
9222   shlibpath_overrides_runpath=yes
9223   if test "$with_gnu_ld" = yes; then
9224     need_lib_prefix=no
9225   fi
9226   need_version=yes
9227   ;;
9228
9229 sysv4 | sysv4.3*)
9230   version_type=linux
9231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232   soname_spec='${libname}${release}${shared_ext}$major'
9233   shlibpath_var=LD_LIBRARY_PATH
9234   case $host_vendor in
9235     sni)
9236       shlibpath_overrides_runpath=no
9237       need_lib_prefix=no
9238       export_dynamic_flag_spec='${wl}-Blargedynsym'
9239       runpath_var=LD_RUN_PATH
9240       ;;
9241     siemens)
9242       need_lib_prefix=no
9243       ;;
9244     motorola)
9245       need_lib_prefix=no
9246       need_version=no
9247       shlibpath_overrides_runpath=no
9248       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9249       ;;
9250   esac
9251   ;;
9252
9253 sysv4*MP*)
9254   if test -d /usr/nec ;then
9255     version_type=linux
9256     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9257     soname_spec='$libname${shared_ext}.$major'
9258     shlibpath_var=LD_LIBRARY_PATH
9259   fi
9260   ;;
9261
9262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9263   version_type=freebsd-elf
9264   need_lib_prefix=no
9265   need_version=no
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   hardcode_into_libs=yes
9270   if test "$with_gnu_ld" = yes; then
9271     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9272     shlibpath_overrides_runpath=no
9273   else
9274     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9275     shlibpath_overrides_runpath=yes
9276     case $host_os in
9277       sco3.2v5*)
9278         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9279         ;;
9280     esac
9281   fi
9282   sys_lib_dlsearch_path_spec='/usr/lib'
9283   ;;
9284
9285 uts4*)
9286   version_type=linux
9287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288   soname_spec='${libname}${release}${shared_ext}$major'
9289   shlibpath_var=LD_LIBRARY_PATH
9290   ;;
9291
9292 *)
9293   dynamic_linker=no
9294   ;;
9295 esac
9296 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9297 echo "${ECHO_T}$dynamic_linker" >&6; }
9298 test "$dynamic_linker" = no && can_build_shared=no
9299
9300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9301 if test "$GCC" = yes; then
9302   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9303 fi
9304
9305
9306 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9307 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9308 if test "${libltdl_cv_shlibext+set}" = set; then
9309   echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311
9312 module=yes
9313 eval libltdl_cv_shlibext=$shrext_cmds
9314
9315 fi
9316 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9317 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9318 if test -n "$libltdl_cv_shlibext"; then
9319
9320 cat >>confdefs.h <<_ACEOF
9321 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9322 _ACEOF
9323
9324 fi
9325
9326
9327 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9328 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9329 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9330   echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332   libltdl_cv_shlibpath_var="$shlibpath_var"
9333 fi
9334 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9335 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9336 if test -n "$libltdl_cv_shlibpath_var"; then
9337
9338 cat >>confdefs.h <<_ACEOF
9339 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9340 _ACEOF
9341
9342 fi
9343
9344
9345 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9346 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9347 if test "${libltdl_cv_sys_search_path+set}" = set; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9351 fi
9352 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9353 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9354 if test -n "$libltdl_cv_sys_search_path"; then
9355   sys_search_path=
9356   for dir in $libltdl_cv_sys_search_path; do
9357     if test -z "$sys_search_path"; then
9358       sys_search_path="$dir"
9359     else
9360       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9361     fi
9362   done
9363
9364 cat >>confdefs.h <<_ACEOF
9365 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9366 _ACEOF
9367
9368 fi
9369
9370 { echo "$as_me:$LINENO: checking for objdir" >&5
9371 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9372 if test "${libltdl_cv_objdir+set}" = set; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375   libltdl_cv_objdir="$objdir"
9376   if test -n "$objdir"; then
9377     :
9378   else
9379     rm -f .libs 2>/dev/null
9380     mkdir .libs 2>/dev/null
9381     if test -d .libs; then
9382       libltdl_cv_objdir=.libs
9383     else
9384       # MS-DOS does not allow filenames that begin with a dot.
9385       libltdl_cv_objdir=_libs
9386     fi
9387   rmdir .libs 2>/dev/null
9388   fi
9389
9390 fi
9391 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9392 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9393
9394 cat >>confdefs.h <<_ACEOF
9395 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9396 _ACEOF
9397
9398
9399
9400
9401
9402
9403 # Check for command to grab the raw symbol name followed by C symbol from nm.
9404 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9405 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9406 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9407   echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409
9410 # These are sane defaults that work on at least a few old systems.
9411 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9412
9413 # Character class describing NM global symbol codes.
9414 symcode='[BCDEGRST]'
9415
9416 # Regexp to match symbols that can be accessed directly from C.
9417 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9418
9419 # Transform an extracted symbol line into a proper C declaration
9420 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9421
9422 # Transform an extracted symbol line into symbol name and symbol address
9423 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'"
9424
9425 # Define system-specific variables.
9426 case $host_os in
9427 aix*)
9428   symcode='[BCDT]'
9429   ;;
9430 cygwin* | mingw* | pw32*)
9431   symcode='[ABCDGISTW]'
9432   ;;
9433 hpux*) # Its linker distinguishes data from code symbols
9434   if test "$host_cpu" = ia64; then
9435     symcode='[ABCDEGRST]'
9436   fi
9437   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9438   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'"
9439   ;;
9440 linux*)
9441   if test "$host_cpu" = ia64; then
9442     symcode='[ABCDGIRSTW]'
9443     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9444     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'"
9445   fi
9446   ;;
9447 irix* | nonstopux*)
9448   symcode='[BCDEGRST]'
9449   ;;
9450 osf*)
9451   symcode='[BCDEGQRST]'
9452   ;;
9453 solaris*)
9454   symcode='[BDRT]'
9455   ;;
9456 sco3.2v5*)
9457   symcode='[DT]'
9458   ;;
9459 sysv4.2uw2*)
9460   symcode='[DT]'
9461   ;;
9462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9463   symcode='[ABDT]'
9464   ;;
9465 sysv4)
9466   symcode='[DFNSTU]'
9467   ;;
9468 esac
9469
9470 # Handle CRLF in mingw tool chain
9471 opt_cr=
9472 case $build_os in
9473 mingw*)
9474   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9475   ;;
9476 esac
9477
9478 # If we're using GNU nm, then use its standard symbol codes.
9479 case `$NM -V 2>&1` in
9480 *GNU* | *'with BFD'*)
9481   symcode='[ABCDGIRSTW]' ;;
9482 esac
9483
9484 # Try without a prefix undercore, then with it.
9485 for ac_symprfx in "" "_"; do
9486
9487   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9488   symxfrm="\\1 $ac_symprfx\\2 \\2"
9489
9490   # Write the raw and C identifiers.
9491   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9492
9493   # Check to see that the pipe works correctly.
9494   pipe_works=no
9495
9496   rm -f conftest*
9497   cat > conftest.$ac_ext <<EOF
9498 #ifdef __cplusplus
9499 extern "C" {
9500 #endif
9501 char nm_test_var;
9502 void nm_test_func(){}
9503 #ifdef __cplusplus
9504 }
9505 #endif
9506 int main(){nm_test_var='a';nm_test_func();return(0);}
9507 EOF
9508
9509   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9510   (eval $ac_compile) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; then
9514     # Now try to grab the symbols.
9515     nlist=conftest.nm
9516     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9517   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } && test -s "$nlist"; then
9521       # Try sorting and uniquifying the output.
9522       if sort "$nlist" | uniq > "$nlist"T; then
9523         mv -f "$nlist"T "$nlist"
9524       else
9525         rm -f "$nlist"T
9526       fi
9527
9528       # Make sure that we snagged all the symbols we need.
9529       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9530         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9531           cat <<EOF > conftest.$ac_ext
9532 #ifdef __cplusplus
9533 extern "C" {
9534 #endif
9535
9536 EOF
9537           # Now generate the symbol file.
9538           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9539
9540           cat <<EOF >> conftest.$ac_ext
9541 #if defined (__STDC__) && __STDC__
9542 # define lt_ptr_t void *
9543 #else
9544 # define lt_ptr_t char *
9545 # define const
9546 #endif
9547
9548 /* The mapping between symbol names and symbols. */
9549 const struct {
9550   const char *name;
9551   lt_ptr_t address;
9552 }
9553 lt_preloaded_symbols[] =
9554 {
9555 EOF
9556           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9557           cat <<\EOF >> conftest.$ac_ext
9558   {0, (lt_ptr_t) 0}
9559 };
9560
9561 #ifdef __cplusplus
9562 }
9563 #endif
9564 EOF
9565           # Now try linking the two files.
9566           mv conftest.$ac_objext conftstm.$ac_objext
9567           lt_save_LIBS="$LIBS"
9568           lt_save_CFLAGS="$CFLAGS"
9569           LIBS="conftstm.$ac_objext"
9570           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9571           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572   (eval $ac_link) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9576             pipe_works=yes
9577           fi
9578           LIBS="$lt_save_LIBS"
9579           CFLAGS="$lt_save_CFLAGS"
9580         else
9581           echo "cannot find nm_test_func in $nlist" >&5
9582         fi
9583       else
9584         echo "cannot find nm_test_var in $nlist" >&5
9585       fi
9586     else
9587       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9588     fi
9589   else
9590     echo "$progname: failed program was:" >&5
9591     cat conftest.$ac_ext >&5
9592   fi
9593   rm -f conftest* conftst*
9594
9595   # Do not use the global_symbol_pipe unless it works.
9596   if test "$pipe_works" = yes; then
9597     break
9598   else
9599     lt_cv_sys_global_symbol_pipe=
9600   fi
9601 done
9602
9603 fi
9604
9605 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9606   lt_cv_sys_global_symbol_to_cdecl=
9607 fi
9608 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9609   { echo "$as_me:$LINENO: result: failed" >&5
9610 echo "${ECHO_T}failed" >&6; }
9611 else
9612   { echo "$as_me:$LINENO: result: ok" >&5
9613 echo "${ECHO_T}ok" >&6; }
9614 fi
9615
9616
9617 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9618 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9619 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9620   echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9623     libltdl_cv_preloaded_symbols=yes
9624   else
9625     libltdl_cv_preloaded_symbols=no
9626   fi
9627
9628 fi
9629 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9630 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9631 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9632
9633 cat >>confdefs.h <<\_ACEOF
9634 #define HAVE_PRELOADED_SYMBOLS 1
9635 _ACEOF
9636
9637 fi
9638
9639 LIBADD_DL=
9640
9641 ac_ext=c
9642 ac_cpp='$CPP $CPPFLAGS'
9643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9646
9647
9648 { echo "$as_me:$LINENO: checking for shl_load" >&5
9649 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9650 if test "${ac_cv_func_shl_load+set}" = set; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h.  */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h.  */
9659 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9661 #define shl_load innocuous_shl_load
9662
9663 /* System header to define __stub macros and hopefully few prototypes,
9664     which can conflict with char shl_load (); below.
9665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9666     <limits.h> exists even on freestanding compilers.  */
9667
9668 #ifdef __STDC__
9669 # include <limits.h>
9670 #else
9671 # include <assert.h>
9672 #endif
9673
9674 #undef shl_load
9675
9676 /* Override any GCC internal prototype to avoid an error.
9677    Use char because int might match the return type of a GCC
9678    builtin and then its argument prototype would still apply.  */
9679 #ifdef __cplusplus
9680 extern "C"
9681 #endif
9682 char shl_load ();
9683 /* The GNU C library defines this for functions which it implements
9684     to always fail with ENOSYS.  Some functions are actually named
9685     something starting with __ and the normal name is an alias.  */
9686 #if defined __stub_shl_load || defined __stub___shl_load
9687 choke me
9688 #endif
9689
9690 int
9691 main ()
9692 {
9693 return shl_load ();
9694   ;
9695   return 0;
9696 }
9697 _ACEOF
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (ac_try="$ac_link"
9700 case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_link") 2>conftest.er1
9706   ac_status=$?
9707   grep -v '^ *+' conftest.er1 >conftest.err
9708   rm -f conftest.er1
9709   cat conftest.err >&5
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); } &&
9712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9713   { (case "(($ac_try" in
9714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715   *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718   (eval "$ac_try") 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); }; } &&
9722          { ac_try='test -s conftest$ac_exeext'
9723   { (case "(($ac_try" in
9724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725   *) ac_try_echo=$ac_try;;
9726 esac
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728   (eval "$ac_try") 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; }; then
9732   ac_cv_func_shl_load=yes
9733 else
9734   echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737         ac_cv_func_shl_load=no
9738 fi
9739
9740 rm -f core conftest.err conftest.$ac_objext \
9741       conftest$ac_exeext conftest.$ac_ext
9742 fi
9743 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9744 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9745 if test $ac_cv_func_shl_load = yes; then
9746
9747 cat >>confdefs.h <<\_ACEOF
9748 #define HAVE_SHL_LOAD 1
9749 _ACEOF
9750
9751 else
9752   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9753 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9754 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9755   echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757   ac_check_lib_save_LIBS=$LIBS
9758 LIBS="-ldld  $LIBS"
9759 cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h.  */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h.  */
9765
9766 /* Override any GCC internal prototype to avoid an error.
9767    Use char because int might match the return type of a GCC
9768    builtin and then its argument prototype would still apply.  */
9769 #ifdef __cplusplus
9770 extern "C"
9771 #endif
9772 char shl_load ();
9773 int
9774 main ()
9775 {
9776 return shl_load ();
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9783 case "(($ac_try" in
9784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785   *) ac_try_echo=$ac_try;;
9786 esac
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788   (eval "$ac_link") 2>conftest.er1
9789   ac_status=$?
9790   grep -v '^ *+' conftest.er1 >conftest.err
9791   rm -f conftest.er1
9792   cat conftest.err >&5
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); } &&
9795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9796   { (case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_try") 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; } &&
9805          { ac_try='test -s conftest$ac_exeext'
9806   { (case "(($ac_try" in
9807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808   *) ac_try_echo=$ac_try;;
9809 esac
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811   (eval "$ac_try") 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815   ac_cv_lib_dld_shl_load=yes
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820         ac_cv_lib_dld_shl_load=no
9821 fi
9822
9823 rm -f core conftest.err conftest.$ac_objext \
9824       conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9826 fi
9827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9828 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9829 if test $ac_cv_lib_dld_shl_load = yes; then
9830
9831 cat >>confdefs.h <<\_ACEOF
9832 #define HAVE_SHL_LOAD 1
9833 _ACEOF
9834
9835         LIBADD_DL="$LIBADD_DL -ldld"
9836 else
9837   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9838 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9839 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9840   echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842   ac_check_lib_save_LIBS=$LIBS
9843 LIBS="-ldl  $LIBS"
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850
9851 /* Override any GCC internal prototype to avoid an error.
9852    Use char because int might match the return type of a GCC
9853    builtin and then its argument prototype would still apply.  */
9854 #ifdef __cplusplus
9855 extern "C"
9856 #endif
9857 char dlopen ();
9858 int
9859 main ()
9860 {
9861 return dlopen ();
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (ac_try="$ac_link"
9868 case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_link") 2>conftest.er1
9874   ac_status=$?
9875   grep -v '^ *+' conftest.er1 >conftest.err
9876   rm -f conftest.er1
9877   cat conftest.err >&5
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } &&
9880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9881   { (case "(($ac_try" in
9882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883   *) ac_try_echo=$ac_try;;
9884 esac
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886   (eval "$ac_try") 2>&5
9887   ac_status=$?
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); }; } &&
9890          { ac_try='test -s conftest$ac_exeext'
9891   { (case "(($ac_try" in
9892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893   *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896   (eval "$ac_try") 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; }; then
9900   ac_cv_lib_dl_dlopen=yes
9901 else
9902   echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9904
9905         ac_cv_lib_dl_dlopen=no
9906 fi
9907
9908 rm -f core conftest.err conftest.$ac_objext \
9909       conftest$ac_exeext conftest.$ac_ext
9910 LIBS=$ac_check_lib_save_LIBS
9911 fi
9912 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9913 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9914 if test $ac_cv_lib_dl_dlopen = yes; then
9915
9916 cat >>confdefs.h <<\_ACEOF
9917 #define HAVE_LIBDL 1
9918 _ACEOF
9919
9920                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9921 else
9922   cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928 #if HAVE_DLFCN_H
9929 #  include <dlfcn.h>
9930 #endif
9931
9932 int
9933 main ()
9934 {
9935 dlopen(0, 0);
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9942 case "(($ac_try" in
9943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944   *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947   (eval "$ac_link") 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9955   { (case "(($ac_try" in
9956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9957   *) ac_try_echo=$ac_try;;
9958 esac
9959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9960   (eval "$ac_try") 2>&5
9961   ac_status=$?
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); }; } &&
9964          { ac_try='test -s conftest$ac_exeext'
9965   { (case "(($ac_try" in
9966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967   *) ac_try_echo=$ac_try;;
9968 esac
9969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970   (eval "$ac_try") 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; }; then
9974
9975 cat >>confdefs.h <<\_ACEOF
9976 #define HAVE_LIBDL 1
9977 _ACEOF
9978  libltdl_cv_func_dlopen="yes"
9979 else
9980   echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9984 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9985 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988   ac_check_lib_save_LIBS=$LIBS
9989 LIBS="-lsvld  $LIBS"
9990 cat >conftest.$ac_ext <<_ACEOF
9991 /* confdefs.h.  */
9992 _ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h.  */
9996
9997 /* Override any GCC internal prototype to avoid an error.
9998    Use char because int might match the return type of a GCC
9999    builtin and then its argument prototype would still apply.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 char dlopen ();
10004 int
10005 main ()
10006 {
10007 return dlopen ();
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_link") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } &&
10026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027   { (case "(($ac_try" in
10028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029   *) ac_try_echo=$ac_try;;
10030 esac
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032   (eval "$ac_try") 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; } &&
10036          { ac_try='test -s conftest$ac_exeext'
10037   { (case "(($ac_try" in
10038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039   *) ac_try_echo=$ac_try;;
10040 esac
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042   (eval "$ac_try") 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; }; then
10046   ac_cv_lib_svld_dlopen=yes
10047 else
10048   echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051         ac_cv_lib_svld_dlopen=no
10052 fi
10053
10054 rm -f core conftest.err conftest.$ac_objext \
10055       conftest$ac_exeext conftest.$ac_ext
10056 LIBS=$ac_check_lib_save_LIBS
10057 fi
10058 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10059 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10060 if test $ac_cv_lib_svld_dlopen = yes; then
10061
10062 cat >>confdefs.h <<\_ACEOF
10063 #define HAVE_LIBDL 1
10064 _ACEOF
10065
10066                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10067 else
10068   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10069 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10070 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10071   echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073   ac_check_lib_save_LIBS=$LIBS
10074 LIBS="-ldld  $LIBS"
10075 cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h.  */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h.  */
10081
10082 /* Override any GCC internal prototype to avoid an error.
10083    Use char because int might match the return type of a GCC
10084    builtin and then its argument prototype would still apply.  */
10085 #ifdef __cplusplus
10086 extern "C"
10087 #endif
10088 char dld_link ();
10089 int
10090 main ()
10091 {
10092 return dld_link ();
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 rm -f conftest.$ac_objext conftest$ac_exeext
10098 if { (ac_try="$ac_link"
10099 case "(($ac_try" in
10100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101   *) ac_try_echo=$ac_try;;
10102 esac
10103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104   (eval "$ac_link") 2>conftest.er1
10105   ac_status=$?
10106   grep -v '^ *+' conftest.er1 >conftest.err
10107   rm -f conftest.er1
10108   cat conftest.err >&5
10109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110   (exit $ac_status); } &&
10111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10112   { (case "(($ac_try" in
10113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114   *) ac_try_echo=$ac_try;;
10115 esac
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117   (eval "$ac_try") 2>&5
10118   ac_status=$?
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); }; } &&
10121          { ac_try='test -s conftest$ac_exeext'
10122   { (case "(($ac_try" in
10123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124   *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127   (eval "$ac_try") 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }; }; then
10131   ac_cv_lib_dld_dld_link=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136         ac_cv_lib_dld_dld_link=no
10137 fi
10138
10139 rm -f core conftest.err conftest.$ac_objext \
10140       conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10142 fi
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10144 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10145 if test $ac_cv_lib_dld_dld_link = yes; then
10146
10147 cat >>confdefs.h <<\_ACEOF
10148 #define HAVE_DLD 1
10149 _ACEOF
10150
10151                 LIBADD_DL="$LIBADD_DL -ldld"
10152 else
10153   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10154 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10155 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h.  */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h.  */
10164 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10166 #define _dyld_func_lookup innocuous__dyld_func_lookup
10167
10168 /* System header to define __stub macros and hopefully few prototypes,
10169     which can conflict with char _dyld_func_lookup (); below.
10170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10171     <limits.h> exists even on freestanding compilers.  */
10172
10173 #ifdef __STDC__
10174 # include <limits.h>
10175 #else
10176 # include <assert.h>
10177 #endif
10178
10179 #undef _dyld_func_lookup
10180
10181 /* Override any GCC internal prototype to avoid an error.
10182    Use char because int might match the return type of a GCC
10183    builtin and then its argument prototype would still apply.  */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 char _dyld_func_lookup ();
10188 /* The GNU C library defines this for functions which it implements
10189     to always fail with ENOSYS.  Some functions are actually named
10190     something starting with __ and the normal name is an alias.  */
10191 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10192 choke me
10193 #endif
10194
10195 int
10196 main ()
10197 {
10198 return _dyld_func_lookup ();
10199   ;
10200   return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210   (eval "$ac_link") 2>conftest.er1
10211   ac_status=$?
10212   grep -v '^ *+' conftest.er1 >conftest.err
10213   rm -f conftest.er1
10214   cat conftest.err >&5
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); } &&
10217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218   { (case "(($ac_try" in
10219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220   *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223   (eval "$ac_try") 2>&5
10224   ac_status=$?
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); }; } &&
10227          { ac_try='test -s conftest$ac_exeext'
10228   { (case "(($ac_try" in
10229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230   *) ac_try_echo=$ac_try;;
10231 esac
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233   (eval "$ac_try") 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); }; }; then
10237   ac_cv_func__dyld_func_lookup=yes
10238 else
10239   echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242         ac_cv_func__dyld_func_lookup=no
10243 fi
10244
10245 rm -f core conftest.err conftest.$ac_objext \
10246       conftest$ac_exeext conftest.$ac_ext
10247 fi
10248 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10249 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10250 if test $ac_cv_func__dyld_func_lookup = yes; then
10251
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_DYLD 1
10254 _ACEOF
10255
10256 fi
10257
10258
10259 fi
10260
10261
10262 fi
10263
10264
10265 fi
10266
10267 rm -f core conftest.err conftest.$ac_objext \
10268       conftest$ac_exeext conftest.$ac_ext
10269
10270 fi
10271
10272
10273 fi
10274
10275
10276 fi
10277
10278
10279 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10280 then
10281   lt_save_LIBS="$LIBS"
10282   LIBS="$LIBS $LIBADD_DL"
10283
10284 for ac_func in dlerror
10285 do
10286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h.  */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h.  */
10298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10300 #define $ac_func innocuous_$ac_func
10301
10302 /* System header to define __stub macros and hopefully few prototypes,
10303     which can conflict with char $ac_func (); below.
10304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10305     <limits.h> exists even on freestanding compilers.  */
10306
10307 #ifdef __STDC__
10308 # include <limits.h>
10309 #else
10310 # include <assert.h>
10311 #endif
10312
10313 #undef $ac_func
10314
10315 /* Override any GCC internal prototype to avoid an error.
10316    Use char because int might match the return type of a GCC
10317    builtin and then its argument prototype would still apply.  */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char $ac_func ();
10322 /* The GNU C library defines this for functions which it implements
10323     to always fail with ENOSYS.  Some functions are actually named
10324     something starting with __ and the normal name is an alias.  */
10325 #if defined __stub_$ac_func || defined __stub___$ac_func
10326 choke me
10327 #endif
10328
10329 int
10330 main ()
10331 {
10332 return $ac_func ();
10333   ;
10334   return 0;
10335 }
10336 _ACEOF
10337 rm -f conftest.$ac_objext conftest$ac_exeext
10338 if { (ac_try="$ac_link"
10339 case "(($ac_try" in
10340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341   *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344   (eval "$ac_link") 2>conftest.er1
10345   ac_status=$?
10346   grep -v '^ *+' conftest.er1 >conftest.err
10347   rm -f conftest.er1
10348   cat conftest.err >&5
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); } &&
10351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10352   { (case "(($ac_try" in
10353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354   *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357   (eval "$ac_try") 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; } &&
10361          { ac_try='test -s conftest$ac_exeext'
10362   { (case "(($ac_try" in
10363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364   *) ac_try_echo=$ac_try;;
10365 esac
10366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367   (eval "$ac_try") 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; }; then
10371   eval "$as_ac_var=yes"
10372 else
10373   echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376         eval "$as_ac_var=no"
10377 fi
10378
10379 rm -f core conftest.err conftest.$ac_objext \
10380       conftest$ac_exeext conftest.$ac_ext
10381 fi
10382 ac_res=`eval echo '${'$as_ac_var'}'`
10383                { echo "$as_me:$LINENO: result: $ac_res" >&5
10384 echo "${ECHO_T}$ac_res" >&6; }
10385 if test `eval echo '${'$as_ac_var'}'` = yes; then
10386   cat >>confdefs.h <<_ACEOF
10387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10388 _ACEOF
10389
10390 fi
10391 done
10392
10393   LIBS="$lt_save_LIBS"
10394 fi
10395 ac_ext=c
10396 ac_cpp='$CPP $CPPFLAGS'
10397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10400
10401
10402
10403 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10404 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10405 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10406   echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10408   ac_cv_sys_symbol_underscore=no
10409   cat > conftest.$ac_ext <<EOF
10410 void nm_test_func(){}
10411 int main(){nm_test_func;return 0;}
10412 EOF
10413   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414   (eval $ac_compile) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); }; then
10418     # Now try to grab the symbols.
10419     ac_nlist=conftest.nm
10420     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10421   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } && test -s "$ac_nlist"; then
10425       # See whether the symbols have a leading underscore.
10426       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10427         ac_cv_sys_symbol_underscore=yes
10428       else
10429         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10430           :
10431         else
10432           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10433         fi
10434       fi
10435     else
10436       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10437     fi
10438   else
10439     echo "configure: failed program was:" >&5
10440     cat conftest.c >&5
10441   fi
10442   rm -rf conftest*
10443
10444 fi
10445 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10446 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10447
10448
10449 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10450   if test x"$libltdl_cv_func_dlopen" = xyes ||
10451      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10452         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10453 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10454 if test "${libltdl_cv_need_uscore+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457   libltdl_cv_need_uscore=unknown
10458           save_LIBS="$LIBS"
10459           LIBS="$LIBS $LIBADD_DL"
10460           if test "$cross_compiling" = yes; then :
10461   libltdl_cv_need_uscore=cross
10462 else
10463   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10464   lt_status=$lt_dlunknown
10465   cat > conftest.$ac_ext <<EOF
10466 #line 10466 "configure"
10467 #include "confdefs.h"
10468
10469 #if HAVE_DLFCN_H
10470 #include <dlfcn.h>
10471 #endif
10472
10473 #include <stdio.h>
10474
10475 #ifdef RTLD_GLOBAL
10476 #  define LT_DLGLOBAL           RTLD_GLOBAL
10477 #else
10478 #  ifdef DL_GLOBAL
10479 #    define LT_DLGLOBAL         DL_GLOBAL
10480 #  else
10481 #    define LT_DLGLOBAL         0
10482 #  endif
10483 #endif
10484
10485 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10486    find out it does not work in some platform. */
10487 #ifndef LT_DLLAZY_OR_NOW
10488 #  ifdef RTLD_LAZY
10489 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10490 #  else
10491 #    ifdef DL_LAZY
10492 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10493 #    else
10494 #      ifdef RTLD_NOW
10495 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10496 #      else
10497 #        ifdef DL_NOW
10498 #          define LT_DLLAZY_OR_NOW      DL_NOW
10499 #        else
10500 #          define LT_DLLAZY_OR_NOW      0
10501 #        endif
10502 #      endif
10503 #    endif
10504 #  endif
10505 #endif
10506
10507 #ifdef __cplusplus
10508 extern "C" void exit (int);
10509 #endif
10510
10511 void fnord() { int i=42;}
10512 int main ()
10513 {
10514   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10515   int status = $lt_dlunknown;
10516
10517   if (self)
10518     {
10519       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10520       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10521       /* dlclose (self); */
10522     }
10523   else
10524     puts (dlerror ());
10525
10526     exit (status);
10527 }
10528 EOF
10529   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530   (eval $ac_link) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10534     (./conftest; exit; ) >&5 2>/dev/null
10535     lt_status=$?
10536     case x$lt_status in
10537       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10538       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10539       x$lt_dlunknown|x*)  ;;
10540     esac
10541   else :
10542     # compilation failed
10543
10544   fi
10545 fi
10546 rm -fr conftest*
10547
10548           LIBS="$save_LIBS"
10549
10550 fi
10551 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10552 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10553   fi
10554 fi
10555
10556 if test x"$libltdl_cv_need_uscore" = xyes; then
10557
10558 cat >>confdefs.h <<\_ACEOF
10559 #define NEED_USCORE 1
10560 _ACEOF
10561
10562 fi
10563
10564
10565 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10566 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10567 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10568   echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570   # PORTME does your system automatically load deplibs for dlopen?
10571   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10572   # For now, we just catch OSes we know something about -- in the
10573   # future, we'll try test this programmatically.
10574   libltdl_cv_sys_dlopen_deplibs=unknown
10575   case "$host_os" in
10576   aix3*|aix4.1.*|aix4.2.*)
10577     # Unknown whether this is true for these versions of AIX, but
10578     # we want this `case' here to explicitly catch those versions.
10579     libltdl_cv_sys_dlopen_deplibs=unknown
10580     ;;
10581   aix[45]*)
10582     libltdl_cv_sys_dlopen_deplibs=yes
10583     ;;
10584   darwin*)
10585     # Assuming the user has installed a libdl from somewhere, this is true
10586     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10587     libltdl_cv_sys_dlopen_deplibs=yes
10588     ;;
10589   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10590     # GNU and its variants, using gnu ld.so (Glibc)
10591     libltdl_cv_sys_dlopen_deplibs=yes
10592     ;;
10593   hpux10*|hpux11*)
10594     libltdl_cv_sys_dlopen_deplibs=yes
10595     ;;
10596   interix*)
10597     libltdl_cv_sys_dlopen_deplibs=yes
10598     ;;
10599   irix[12345]*|irix6.[01]*)
10600     # Catch all versions of IRIX before 6.2, and indicate that we don't
10601     # know how it worked for any of those versions.
10602     libltdl_cv_sys_dlopen_deplibs=unknown
10603     ;;
10604   irix*)
10605     # The case above catches anything before 6.2, and it's known that
10606     # at 6.2 and later dlopen does load deplibs.
10607     libltdl_cv_sys_dlopen_deplibs=yes
10608     ;;
10609   netbsd*)
10610     libltdl_cv_sys_dlopen_deplibs=yes
10611     ;;
10612   openbsd*)
10613     libltdl_cv_sys_dlopen_deplibs=yes
10614     ;;
10615   osf[1234]*)
10616     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10617     # it did *not* use an RPATH in a shared library to find objects the
10618     # library depends on, so we explicitly say `no'.
10619     libltdl_cv_sys_dlopen_deplibs=no
10620     ;;
10621   osf5.0|osf5.0a|osf5.1)
10622     # dlopen *does* load deplibs and with the right loader patch applied
10623     # it even uses RPATH in a shared library to search for shared objects
10624     # that the library depends on, but there's no easy way to know if that
10625     # patch is installed.  Since this is the case, all we can really
10626     # say is unknown -- it depends on the patch being installed.  If
10627     # it is, this changes to `yes'.  Without it, it would be `no'.
10628     libltdl_cv_sys_dlopen_deplibs=unknown
10629     ;;
10630   osf*)
10631     # the two cases above should catch all versions of osf <= 5.1.  Read
10632     # the comments above for what we know about them.
10633     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10634     # is used to find them so we can finally say `yes'.
10635     libltdl_cv_sys_dlopen_deplibs=yes
10636     ;;
10637   solaris*)
10638     libltdl_cv_sys_dlopen_deplibs=yes
10639     ;;
10640   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10641     libltdl_cv_sys_dlopen_deplibs=yes
10642     ;;
10643   esac
10644
10645 fi
10646 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10647 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10648 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10649
10650 cat >>confdefs.h <<\_ACEOF
10651 #define LTDL_DLOPEN_DEPLIBS 1
10652 _ACEOF
10653
10654 fi
10655
10656
10657 for ac_header in argz.h
10658 do
10659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10661   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10664   echo $ECHO_N "(cached) $ECHO_C" >&6
10665 fi
10666 ac_res=`eval echo '${'$as_ac_Header'}'`
10667                { echo "$as_me:$LINENO: result: $ac_res" >&5
10668 echo "${ECHO_T}$ac_res" >&6; }
10669 else
10670   # Is the header compilable?
10671 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10673 cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h.  */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h.  */
10679 $ac_includes_default
10680 #include <$ac_header>
10681 _ACEOF
10682 rm -f conftest.$ac_objext
10683 if { (ac_try="$ac_compile"
10684 case "(($ac_try" in
10685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686   *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689   (eval "$ac_compile") 2>conftest.er1
10690   ac_status=$?
10691   grep -v '^ *+' conftest.er1 >conftest.err
10692   rm -f conftest.er1
10693   cat conftest.err >&5
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); } &&
10696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10697   { (case "(($ac_try" in
10698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699   *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702   (eval "$ac_try") 2>&5
10703   ac_status=$?
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); }; } &&
10706          { ac_try='test -s conftest.$ac_objext'
10707   { (case "(($ac_try" in
10708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709   *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712   (eval "$ac_try") 2>&5
10713   ac_status=$?
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); }; }; then
10716   ac_header_compiler=yes
10717 else
10718   echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10720
10721         ac_header_compiler=no
10722 fi
10723
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10726 echo "${ECHO_T}$ac_header_compiler" >&6; }
10727
10728 # Is the header present?
10729 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 #include <$ac_header>
10738 _ACEOF
10739 if { (ac_try="$ac_cpp conftest.$ac_ext"
10740 case "(($ac_try" in
10741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742   *) ac_try_echo=$ac_try;;
10743 esac
10744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10746   ac_status=$?
10747   grep -v '^ *+' conftest.er1 >conftest.err
10748   rm -f conftest.er1
10749   cat conftest.err >&5
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } >/dev/null; then
10752   if test -s conftest.err; then
10753     ac_cpp_err=$ac_c_preproc_warn_flag
10754     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10755   else
10756     ac_cpp_err=
10757   fi
10758 else
10759   ac_cpp_err=yes
10760 fi
10761 if test -z "$ac_cpp_err"; then
10762   ac_header_preproc=yes
10763 else
10764   echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767   ac_header_preproc=no
10768 fi
10769
10770 rm -f conftest.err conftest.$ac_ext
10771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10772 echo "${ECHO_T}$ac_header_preproc" >&6; }
10773
10774 # So?  What about this header?
10775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10776   yes:no: )
10777     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10781     ac_header_preproc=yes
10782     ;;
10783   no:yes:* )
10784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10786     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10787 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10788     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10790     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10791 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10794     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10796     ( cat <<\_ASBOX
10797 ## ------------------------------------ ##
10798 ## Report this to http://llvm.org/bugs/ ##
10799 ## ------------------------------------ ##
10800 _ASBOX
10801      ) | sed "s/^/$as_me: WARNING:     /" >&2
10802     ;;
10803 esac
10804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809   eval "$as_ac_Header=\$ac_header_preproc"
10810 fi
10811 ac_res=`eval echo '${'$as_ac_Header'}'`
10812                { echo "$as_me:$LINENO: result: $ac_res" >&5
10813 echo "${ECHO_T}$ac_res" >&6; }
10814
10815 fi
10816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10817   cat >>confdefs.h <<_ACEOF
10818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10819 _ACEOF
10820
10821 fi
10822
10823 done
10824
10825
10826 { echo "$as_me:$LINENO: checking for error_t" >&5
10827 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10828 if test "${ac_cv_type_error_t+set}" = set; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831   cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837 #if HAVE_ARGZ_H
10838 #  include <argz.h>
10839 #endif
10840
10841 typedef error_t ac__type_new_;
10842 int
10843 main ()
10844 {
10845 if ((ac__type_new_ *) 0)
10846   return 0;
10847 if (sizeof (ac__type_new_))
10848   return 0;
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
10855 case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_compile") 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } &&
10867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868   { (case "(($ac_try" in
10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870   *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873   (eval "$ac_try") 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; } &&
10877          { ac_try='test -s conftest.$ac_objext'
10878   { (case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_try") 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   ac_cv_type_error_t=yes
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892         ac_cv_type_error_t=no
10893 fi
10894
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896 fi
10897 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10898 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10899 if test $ac_cv_type_error_t = yes; then
10900
10901 cat >>confdefs.h <<_ACEOF
10902 #define HAVE_ERROR_T 1
10903 _ACEOF
10904
10905
10906 else
10907
10908 cat >>confdefs.h <<\_ACEOF
10909 #define error_t int
10910 _ACEOF
10911
10912 fi
10913
10914
10915
10916
10917
10918
10919
10920 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10921 do
10922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928   cat >conftest.$ac_ext <<_ACEOF
10929 /* confdefs.h.  */
10930 _ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h.  */
10934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10936 #define $ac_func innocuous_$ac_func
10937
10938 /* System header to define __stub macros and hopefully few prototypes,
10939     which can conflict with char $ac_func (); below.
10940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10941     <limits.h> exists even on freestanding compilers.  */
10942
10943 #ifdef __STDC__
10944 # include <limits.h>
10945 #else
10946 # include <assert.h>
10947 #endif
10948
10949 #undef $ac_func
10950
10951 /* Override any GCC internal prototype to avoid an error.
10952    Use char because int might match the return type of a GCC
10953    builtin and then its argument prototype would still apply.  */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 char $ac_func ();
10958 /* The GNU C library defines this for functions which it implements
10959     to always fail with ENOSYS.  Some functions are actually named
10960     something starting with __ and the normal name is an alias.  */
10961 #if defined __stub_$ac_func || defined __stub___$ac_func
10962 choke me
10963 #endif
10964
10965 int
10966 main ()
10967 {
10968 return $ac_func ();
10969   ;
10970   return 0;
10971 }
10972 _ACEOF
10973 rm -f conftest.$ac_objext conftest$ac_exeext
10974 if { (ac_try="$ac_link"
10975 case "(($ac_try" in
10976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977   *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980   (eval "$ac_link") 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } &&
10987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10988   { (case "(($ac_try" in
10989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990   *) ac_try_echo=$ac_try;;
10991 esac
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993   (eval "$ac_try") 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); }; } &&
10997          { ac_try='test -s conftest$ac_exeext'
10998   { (case "(($ac_try" in
10999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000   *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003   (eval "$ac_try") 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; }; then
11007   eval "$as_ac_var=yes"
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012         eval "$as_ac_var=no"
11013 fi
11014
11015 rm -f core conftest.err conftest.$ac_objext \
11016       conftest$ac_exeext conftest.$ac_ext
11017 fi
11018 ac_res=`eval echo '${'$as_ac_var'}'`
11019                { echo "$as_me:$LINENO: result: $ac_res" >&5
11020 echo "${ECHO_T}$ac_res" >&6; }
11021 if test `eval echo '${'$as_ac_var'}'` = yes; then
11022   cat >>confdefs.h <<_ACEOF
11023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11024 _ACEOF
11025
11026 fi
11027 done
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11057                   stdio.h unistd.h
11058 do
11059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11064   echo $ECHO_N "(cached) $ECHO_C" >&6
11065 fi
11066 ac_res=`eval echo '${'$as_ac_Header'}'`
11067                { echo "$as_me:$LINENO: result: $ac_res" >&5
11068 echo "${ECHO_T}$ac_res" >&6; }
11069 else
11070   # Is the header compilable?
11071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11073 cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h.  */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h.  */
11079 $ac_includes_default
11080 #include <$ac_header>
11081 _ACEOF
11082 rm -f conftest.$ac_objext
11083 if { (ac_try="$ac_compile"
11084 case "(($ac_try" in
11085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086   *) ac_try_echo=$ac_try;;
11087 esac
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089   (eval "$ac_compile") 2>conftest.er1
11090   ac_status=$?
11091   grep -v '^ *+' conftest.er1 >conftest.err
11092   rm -f conftest.er1
11093   cat conftest.err >&5
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097   { (case "(($ac_try" in
11098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099   *) ac_try_echo=$ac_try;;
11100 esac
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102   (eval "$ac_try") 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); }; } &&
11106          { ac_try='test -s conftest.$ac_objext'
11107   { (case "(($ac_try" in
11108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109   *) ac_try_echo=$ac_try;;
11110 esac
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112   (eval "$ac_try") 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); }; }; then
11116   ac_header_compiler=yes
11117 else
11118   echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121         ac_header_compiler=no
11122 fi
11123
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11126 echo "${ECHO_T}$ac_header_compiler" >&6; }
11127
11128 # Is the header present?
11129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 #include <$ac_header>
11138 _ACEOF
11139 if { (ac_try="$ac_cpp conftest.$ac_ext"
11140 case "(($ac_try" in
11141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142   *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11146   ac_status=$?
11147   grep -v '^ *+' conftest.er1 >conftest.err
11148   rm -f conftest.er1
11149   cat conftest.err >&5
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); } >/dev/null; then
11152   if test -s conftest.err; then
11153     ac_cpp_err=$ac_c_preproc_warn_flag
11154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11155   else
11156     ac_cpp_err=
11157   fi
11158 else
11159   ac_cpp_err=yes
11160 fi
11161 if test -z "$ac_cpp_err"; then
11162   ac_header_preproc=yes
11163 else
11164   echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167   ac_header_preproc=no
11168 fi
11169
11170 rm -f conftest.err conftest.$ac_ext
11171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11172 echo "${ECHO_T}$ac_header_preproc" >&6; }
11173
11174 # So?  What about this header?
11175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11176   yes:no: )
11177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11181     ac_header_preproc=yes
11182     ;;
11183   no:yes:* )
11184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11196     ( cat <<\_ASBOX
11197 ## ------------------------------------ ##
11198 ## Report this to http://llvm.org/bugs/ ##
11199 ## ------------------------------------ ##
11200 _ASBOX
11201      ) | sed "s/^/$as_me: WARNING:     /" >&2
11202     ;;
11203 esac
11204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11207   echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209   eval "$as_ac_Header=\$ac_header_preproc"
11210 fi
11211 ac_res=`eval echo '${'$as_ac_Header'}'`
11212                { echo "$as_me:$LINENO: result: $ac_res" >&5
11213 echo "${ECHO_T}$ac_res" >&6; }
11214
11215 fi
11216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11217   cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11219 _ACEOF
11220
11221 fi
11222
11223 done
11224
11225
11226
11227
11228
11229 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11230 do
11231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236   echo $ECHO_N "(cached) $ECHO_C" >&6
11237 fi
11238 ac_res=`eval echo '${'$as_ac_Header'}'`
11239                { echo "$as_me:$LINENO: result: $ac_res" >&5
11240 echo "${ECHO_T}$ac_res" >&6; }
11241 else
11242   # Is the header compilable?
11243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h.  */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h.  */
11251 $ac_includes_default
11252 #include <$ac_header>
11253 _ACEOF
11254 rm -f conftest.$ac_objext
11255 if { (ac_try="$ac_compile"
11256 case "(($ac_try" in
11257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258   *) ac_try_echo=$ac_try;;
11259 esac
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261   (eval "$ac_compile") 2>conftest.er1
11262   ac_status=$?
11263   grep -v '^ *+' conftest.er1 >conftest.err
11264   rm -f conftest.er1
11265   cat conftest.err >&5
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); } &&
11268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269   { (case "(($ac_try" in
11270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271   *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274   (eval "$ac_try") 2>&5
11275   ac_status=$?
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); }; } &&
11278          { ac_try='test -s conftest.$ac_objext'
11279   { (case "(($ac_try" in
11280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281   *) ac_try_echo=$ac_try;;
11282 esac
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284   (eval "$ac_try") 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); }; }; then
11288   ac_header_compiler=yes
11289 else
11290   echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11292
11293         ac_header_compiler=no
11294 fi
11295
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298 echo "${ECHO_T}$ac_header_compiler" >&6; }
11299
11300 # Is the header present?
11301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h.  */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h.  */
11309 #include <$ac_header>
11310 _ACEOF
11311 if { (ac_try="$ac_cpp conftest.$ac_ext"
11312 case "(($ac_try" in
11313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314   *) ac_try_echo=$ac_try;;
11315 esac
11316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11318   ac_status=$?
11319   grep -v '^ *+' conftest.er1 >conftest.err
11320   rm -f conftest.er1
11321   cat conftest.err >&5
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); } >/dev/null; then
11324   if test -s conftest.err; then
11325     ac_cpp_err=$ac_c_preproc_warn_flag
11326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11327   else
11328     ac_cpp_err=
11329   fi
11330 else
11331   ac_cpp_err=yes
11332 fi
11333 if test -z "$ac_cpp_err"; then
11334   ac_header_preproc=yes
11335 else
11336   echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11338
11339   ac_header_preproc=no
11340 fi
11341
11342 rm -f conftest.err conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344 echo "${ECHO_T}$ac_header_preproc" >&6; }
11345
11346 # So?  What about this header?
11347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11348   yes:no: )
11349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353     ac_header_preproc=yes
11354     ;;
11355   no:yes:* )
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11368     ( cat <<\_ASBOX
11369 ## ------------------------------------ ##
11370 ## Report this to http://llvm.org/bugs/ ##
11371 ## ------------------------------------ ##
11372 _ASBOX
11373      ) | sed "s/^/$as_me: WARNING:     /" >&2
11374     ;;
11375 esac
11376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381   eval "$as_ac_Header=\$ac_header_preproc"
11382 fi
11383 ac_res=`eval echo '${'$as_ac_Header'}'`
11384                { echo "$as_me:$LINENO: result: $ac_res" >&5
11385 echo "${ECHO_T}$ac_res" >&6; }
11386
11387 fi
11388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11389   cat >>confdefs.h <<_ACEOF
11390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11391 _ACEOF
11392
11393 fi
11394
11395 done
11396
11397
11398
11399 for ac_header in string.h strings.h
11400 do
11401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 fi
11408 ac_res=`eval echo '${'$as_ac_Header'}'`
11409                { echo "$as_me:$LINENO: result: $ac_res" >&5
11410 echo "${ECHO_T}$ac_res" >&6; }
11411 else
11412   # Is the header compilable?
11413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421 $ac_includes_default
11422 #include <$ac_header>
11423 _ACEOF
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428   *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431   (eval "$ac_compile") 2>conftest.er1
11432   ac_status=$?
11433   grep -v '^ *+' conftest.er1 >conftest.err
11434   rm -f conftest.er1
11435   cat conftest.err >&5
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } &&
11438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439   { (case "(($ac_try" in
11440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441   *) ac_try_echo=$ac_try;;
11442 esac
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444   (eval "$ac_try") 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; } &&
11448          { ac_try='test -s conftest.$ac_objext'
11449   { (case "(($ac_try" in
11450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451   *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454   (eval "$ac_try") 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }; then
11458   ac_header_compiler=yes
11459 else
11460   echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463         ac_header_compiler=no
11464 fi
11465
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11468 echo "${ECHO_T}$ac_header_compiler" >&6; }
11469
11470 # Is the header present?
11471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11473 cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h.  */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h.  */
11479 #include <$ac_header>
11480 _ACEOF
11481 if { (ac_try="$ac_cpp conftest.$ac_ext"
11482 case "(($ac_try" in
11483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484   *) ac_try_echo=$ac_try;;
11485 esac
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11488   ac_status=$?
11489   grep -v '^ *+' conftest.er1 >conftest.err
11490   rm -f conftest.er1
11491   cat conftest.err >&5
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); } >/dev/null; then
11494   if test -s conftest.err; then
11495     ac_cpp_err=$ac_c_preproc_warn_flag
11496     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11497   else
11498     ac_cpp_err=
11499   fi
11500 else
11501   ac_cpp_err=yes
11502 fi
11503 if test -z "$ac_cpp_err"; then
11504   ac_header_preproc=yes
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509   ac_header_preproc=no
11510 fi
11511
11512 rm -f conftest.err conftest.$ac_ext
11513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514 echo "${ECHO_T}$ac_header_preproc" >&6; }
11515
11516 # So?  What about this header?
11517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11518   yes:no: )
11519     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11523     ac_header_preproc=yes
11524     ;;
11525   no:yes:* )
11526     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11529 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11530     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11532     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11533 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11538     ( cat <<\_ASBOX
11539 ## ------------------------------------ ##
11540 ## Report this to http://llvm.org/bugs/ ##
11541 ## ------------------------------------ ##
11542 _ASBOX
11543      ) | sed "s/^/$as_me: WARNING:     /" >&2
11544     ;;
11545 esac
11546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549   echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551   eval "$as_ac_Header=\$ac_header_preproc"
11552 fi
11553 ac_res=`eval echo '${'$as_ac_Header'}'`
11554                { echo "$as_me:$LINENO: result: $ac_res" >&5
11555 echo "${ECHO_T}$ac_res" >&6; }
11556
11557 fi
11558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11559   cat >>confdefs.h <<_ACEOF
11560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11561 _ACEOF
11562  break
11563 fi
11564
11565 done
11566
11567
11568
11569
11570 for ac_func in strchr index
11571 do
11572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11576   echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578   cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h.  */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h.  */
11584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11586 #define $ac_func innocuous_$ac_func
11587
11588 /* System header to define __stub macros and hopefully few prototypes,
11589     which can conflict with char $ac_func (); below.
11590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11591     <limits.h> exists even on freestanding compilers.  */
11592
11593 #ifdef __STDC__
11594 # include <limits.h>
11595 #else
11596 # include <assert.h>
11597 #endif
11598
11599 #undef $ac_func
11600
11601 /* Override any GCC internal prototype to avoid an error.
11602    Use char because int might match the return type of a GCC
11603    builtin and then its argument prototype would still apply.  */
11604 #ifdef __cplusplus
11605 extern "C"
11606 #endif
11607 char $ac_func ();
11608 /* The GNU C library defines this for functions which it implements
11609     to always fail with ENOSYS.  Some functions are actually named
11610     something starting with __ and the normal name is an alias.  */
11611 #if defined __stub_$ac_func || defined __stub___$ac_func
11612 choke me
11613 #endif
11614
11615 int
11616 main ()
11617 {
11618 return $ac_func ();
11619   ;
11620   return 0;
11621 }
11622 _ACEOF
11623 rm -f conftest.$ac_objext conftest$ac_exeext
11624 if { (ac_try="$ac_link"
11625 case "(($ac_try" in
11626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627   *) ac_try_echo=$ac_try;;
11628 esac
11629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630   (eval "$ac_link") 2>conftest.er1
11631   ac_status=$?
11632   grep -v '^ *+' conftest.er1 >conftest.err
11633   rm -f conftest.er1
11634   cat conftest.err >&5
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); } &&
11637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11638   { (case "(($ac_try" in
11639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640   *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643   (eval "$ac_try") 2>&5
11644   ac_status=$?
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); }; } &&
11647          { ac_try='test -s conftest$ac_exeext'
11648   { (case "(($ac_try" in
11649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650   *) ac_try_echo=$ac_try;;
11651 esac
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653   (eval "$ac_try") 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; }; then
11657   eval "$as_ac_var=yes"
11658 else
11659   echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662         eval "$as_ac_var=no"
11663 fi
11664
11665 rm -f core conftest.err conftest.$ac_objext \
11666       conftest$ac_exeext conftest.$ac_ext
11667 fi
11668 ac_res=`eval echo '${'$as_ac_var'}'`
11669                { echo "$as_me:$LINENO: result: $ac_res" >&5
11670 echo "${ECHO_T}$ac_res" >&6; }
11671 if test `eval echo '${'$as_ac_var'}'` = yes; then
11672   cat >>confdefs.h <<_ACEOF
11673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11674 _ACEOF
11675  break
11676 fi
11677 done
11678
11679
11680
11681 for ac_func in strrchr rindex
11682 do
11683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11687   echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11689   cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h.  */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h.  */
11695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11697 #define $ac_func innocuous_$ac_func
11698
11699 /* System header to define __stub macros and hopefully few prototypes,
11700     which can conflict with char $ac_func (); below.
11701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702     <limits.h> exists even on freestanding compilers.  */
11703
11704 #ifdef __STDC__
11705 # include <limits.h>
11706 #else
11707 # include <assert.h>
11708 #endif
11709
11710 #undef $ac_func
11711
11712 /* Override any GCC internal prototype to avoid an error.
11713    Use char because int might match the return type of a GCC
11714    builtin and then its argument prototype would still apply.  */
11715 #ifdef __cplusplus
11716 extern "C"
11717 #endif
11718 char $ac_func ();
11719 /* The GNU C library defines this for functions which it implements
11720     to always fail with ENOSYS.  Some functions are actually named
11721     something starting with __ and the normal name is an alias.  */
11722 #if defined __stub_$ac_func || defined __stub___$ac_func
11723 choke me
11724 #endif
11725
11726 int
11727 main ()
11728 {
11729 return $ac_func ();
11730   ;
11731   return 0;
11732 }
11733 _ACEOF
11734 rm -f conftest.$ac_objext conftest$ac_exeext
11735 if { (ac_try="$ac_link"
11736 case "(($ac_try" in
11737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738   *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741   (eval "$ac_link") 2>conftest.er1
11742   ac_status=$?
11743   grep -v '^ *+' conftest.er1 >conftest.err
11744   rm -f conftest.er1
11745   cat conftest.err >&5
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); } &&
11748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11749   { (case "(($ac_try" in
11750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751   *) ac_try_echo=$ac_try;;
11752 esac
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754   (eval "$ac_try") 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); }; } &&
11758          { ac_try='test -s conftest$ac_exeext'
11759   { (case "(($ac_try" in
11760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761   *) ac_try_echo=$ac_try;;
11762 esac
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764   (eval "$ac_try") 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; }; then
11768   eval "$as_ac_var=yes"
11769 else
11770   echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773         eval "$as_ac_var=no"
11774 fi
11775
11776 rm -f core conftest.err conftest.$ac_objext \
11777       conftest$ac_exeext conftest.$ac_ext
11778 fi
11779 ac_res=`eval echo '${'$as_ac_var'}'`
11780                { echo "$as_me:$LINENO: result: $ac_res" >&5
11781 echo "${ECHO_T}$ac_res" >&6; }
11782 if test `eval echo '${'$as_ac_var'}'` = yes; then
11783   cat >>confdefs.h <<_ACEOF
11784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11785 _ACEOF
11786  break
11787 fi
11788 done
11789
11790
11791
11792 for ac_func in memcpy bcopy
11793 do
11794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11798   echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800   cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11808 #define $ac_func innocuous_$ac_func
11809
11810 /* System header to define __stub macros and hopefully few prototypes,
11811     which can conflict with char $ac_func (); below.
11812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813     <limits.h> exists even on freestanding compilers.  */
11814
11815 #ifdef __STDC__
11816 # include <limits.h>
11817 #else
11818 # include <assert.h>
11819 #endif
11820
11821 #undef $ac_func
11822
11823 /* Override any GCC internal prototype to avoid an error.
11824    Use char because int might match the return type of a GCC
11825    builtin and then its argument prototype would still apply.  */
11826 #ifdef __cplusplus
11827 extern "C"
11828 #endif
11829 char $ac_func ();
11830 /* The GNU C library defines this for functions which it implements
11831     to always fail with ENOSYS.  Some functions are actually named
11832     something starting with __ and the normal name is an alias.  */
11833 #if defined __stub_$ac_func || defined __stub___$ac_func
11834 choke me
11835 #endif
11836
11837 int
11838 main ()
11839 {
11840 return $ac_func ();
11841   ;
11842   return 0;
11843 }
11844 _ACEOF
11845 rm -f conftest.$ac_objext conftest$ac_exeext
11846 if { (ac_try="$ac_link"
11847 case "(($ac_try" in
11848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849   *) ac_try_echo=$ac_try;;
11850 esac
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852   (eval "$ac_link") 2>conftest.er1
11853   ac_status=$?
11854   grep -v '^ *+' conftest.er1 >conftest.err
11855   rm -f conftest.er1
11856   cat conftest.err >&5
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); } &&
11859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11860   { (case "(($ac_try" in
11861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862   *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865   (eval "$ac_try") 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; } &&
11869          { ac_try='test -s conftest$ac_exeext'
11870   { (case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875   (eval "$ac_try") 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; }; then
11879   eval "$as_ac_var=yes"
11880 else
11881   echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884         eval "$as_ac_var=no"
11885 fi
11886
11887 rm -f core conftest.err conftest.$ac_objext \
11888       conftest$ac_exeext conftest.$ac_ext
11889 fi
11890 ac_res=`eval echo '${'$as_ac_var'}'`
11891                { echo "$as_me:$LINENO: result: $ac_res" >&5
11892 echo "${ECHO_T}$ac_res" >&6; }
11893 if test `eval echo '${'$as_ac_var'}'` = yes; then
11894   cat >>confdefs.h <<_ACEOF
11895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11896 _ACEOF
11897  break
11898 fi
11899 done
11900
11901
11902
11903 for ac_func in memmove strcmp
11904 do
11905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11909   echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911   cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11919 #define $ac_func innocuous_$ac_func
11920
11921 /* System header to define __stub macros and hopefully few prototypes,
11922     which can conflict with char $ac_func (); below.
11923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924     <limits.h> exists even on freestanding compilers.  */
11925
11926 #ifdef __STDC__
11927 # include <limits.h>
11928 #else
11929 # include <assert.h>
11930 #endif
11931
11932 #undef $ac_func
11933
11934 /* Override any GCC internal prototype to avoid an error.
11935    Use char because int might match the return type of a GCC
11936    builtin and then its argument prototype would still apply.  */
11937 #ifdef __cplusplus
11938 extern "C"
11939 #endif
11940 char $ac_func ();
11941 /* The GNU C library defines this for functions which it implements
11942     to always fail with ENOSYS.  Some functions are actually named
11943     something starting with __ and the normal name is an alias.  */
11944 #if defined __stub_$ac_func || defined __stub___$ac_func
11945 choke me
11946 #endif
11947
11948 int
11949 main ()
11950 {
11951 return $ac_func ();
11952   ;
11953   return 0;
11954 }
11955 _ACEOF
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (ac_try="$ac_link"
11958 case "(($ac_try" in
11959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960   *) ac_try_echo=$ac_try;;
11961 esac
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963   (eval "$ac_link") 2>conftest.er1
11964   ac_status=$?
11965   grep -v '^ *+' conftest.er1 >conftest.err
11966   rm -f conftest.er1
11967   cat conftest.err >&5
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); } &&
11970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11971   { (case "(($ac_try" in
11972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11973   *) ac_try_echo=$ac_try;;
11974 esac
11975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11976   (eval "$ac_try") 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; } &&
11980          { ac_try='test -s conftest$ac_exeext'
11981   { (case "(($ac_try" in
11982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983   *) ac_try_echo=$ac_try;;
11984 esac
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986   (eval "$ac_try") 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); }; }; then
11990   eval "$as_ac_var=yes"
11991 else
11992   echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11994
11995         eval "$as_ac_var=no"
11996 fi
11997
11998 rm -f core conftest.err conftest.$ac_objext \
11999       conftest$ac_exeext conftest.$ac_ext
12000 fi
12001 ac_res=`eval echo '${'$as_ac_var'}'`
12002                { echo "$as_me:$LINENO: result: $ac_res" >&5
12003 echo "${ECHO_T}$ac_res" >&6; }
12004 if test `eval echo '${'$as_ac_var'}'` = yes; then
12005   cat >>confdefs.h <<_ACEOF
12006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12007 _ACEOF
12008
12009 fi
12010 done
12011
12012
12013
12014
12015 for ac_func in closedir opendir readdir
12016 do
12017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12021   echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023   cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h.  */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h.  */
12029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12031 #define $ac_func innocuous_$ac_func
12032
12033 /* System header to define __stub macros and hopefully few prototypes,
12034     which can conflict with char $ac_func (); below.
12035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036     <limits.h> exists even on freestanding compilers.  */
12037
12038 #ifdef __STDC__
12039 # include <limits.h>
12040 #else
12041 # include <assert.h>
12042 #endif
12043
12044 #undef $ac_func
12045
12046 /* Override any GCC internal prototype to avoid an error.
12047    Use char because int might match the return type of a GCC
12048    builtin and then its argument prototype would still apply.  */
12049 #ifdef __cplusplus
12050 extern "C"
12051 #endif
12052 char $ac_func ();
12053 /* The GNU C library defines this for functions which it implements
12054     to always fail with ENOSYS.  Some functions are actually named
12055     something starting with __ and the normal name is an alias.  */
12056 #if defined __stub_$ac_func || defined __stub___$ac_func
12057 choke me
12058 #endif
12059
12060 int
12061 main ()
12062 {
12063 return $ac_func ();
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (ac_try="$ac_link"
12070 case "(($ac_try" in
12071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072   *) ac_try_echo=$ac_try;;
12073 esac
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075   (eval "$ac_link") 2>conftest.er1
12076   ac_status=$?
12077   grep -v '^ *+' conftest.er1 >conftest.err
12078   rm -f conftest.er1
12079   cat conftest.err >&5
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); } &&
12082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12083   { (case "(($ac_try" in
12084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085   *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088   (eval "$ac_try") 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); }; } &&
12092          { ac_try='test -s conftest$ac_exeext'
12093   { (case "(($ac_try" in
12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095   *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098   (eval "$ac_try") 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; }; then
12102   eval "$as_ac_var=yes"
12103 else
12104   echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107         eval "$as_ac_var=no"
12108 fi
12109
12110 rm -f core conftest.err conftest.$ac_objext \
12111       conftest$ac_exeext conftest.$ac_ext
12112 fi
12113 ac_res=`eval echo '${'$as_ac_var'}'`
12114                { echo "$as_me:$LINENO: result: $ac_res" >&5
12115 echo "${ECHO_T}$ac_res" >&6; }
12116 if test `eval echo '${'$as_ac_var'}'` = yes; then
12117   cat >>confdefs.h <<_ACEOF
12118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12119 _ACEOF
12120
12121 fi
12122 done
12123
12124
12125
12126 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12127 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12128
12129 ICC=no
12130 IXX=no
12131 case $CC in
12132   icc*|icpc*)
12133     ICC=yes
12134     IXX=yes
12135     ;;
12136    *)
12137     ;;
12138 esac
12139
12140 if test "$GCC" != "yes" && test "$ICC" != "yes"
12141 then
12142   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12143 echo "$as_me: error: gcc|icc required but not found" >&2;}
12144    { (exit 1); exit 1; }; }
12145 fi
12146
12147 if test "$GXX" != "yes" && test "$IXX" != "yes"
12148 then
12149   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12150 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12151    { (exit 1); exit 1; }; }
12152 fi
12153
12154 if test "$GCC" = "yes"
12155 then
12156   cat >conftest.$ac_ext <<_ACEOF
12157 #if !defined(__GNUC__) || __GNUC__ < 3
12158 #error Unsupported GCC version
12159 #endif
12160
12161 _ACEOF
12162 rm -f conftest.$ac_objext
12163 if { (ac_try="$ac_compile"
12164 case "(($ac_try" in
12165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166   *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169   (eval "$ac_compile") 2>conftest.er1
12170   ac_status=$?
12171   grep -v '^ *+' conftest.er1 >conftest.err
12172   rm -f conftest.er1
12173   cat conftest.err >&5
12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175   (exit $ac_status); } &&
12176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12177   { (case "(($ac_try" in
12178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179   *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182   (eval "$ac_try") 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; } &&
12186          { ac_try='test -s conftest.$ac_objext'
12187   { (case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192   (eval "$ac_try") 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; }; then
12196   :
12197 else
12198   echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12202 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12203    { (exit 1); exit 1; }; }
12204 fi
12205
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 fi
12208
12209 if test -z "$llvm_cv_gnu_make_command"
12210 then
12211   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12212 echo "$as_me: error: GNU Make required but not found" >&2;}
12213    { (exit 1); exit 1; }; }
12214 fi
12215
12216 { echo "$as_me:$LINENO: result: ok" >&5
12217 echo "${ECHO_T}ok" >&6; }
12218
12219 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12220 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12221 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12222
12223 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12224
12225 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12226 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12227
12228
12229
12230 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12231 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12232 if test "${ac_cv_lib_m_sin+set}" = set; then
12233   echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235   ac_check_lib_save_LIBS=$LIBS
12236 LIBS="-lm  $LIBS"
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h.  */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h.  */
12243
12244 /* Override any GCC internal prototype to avoid an error.
12245    Use char because int might match the return type of a GCC
12246    builtin and then its argument prototype would still apply.  */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 char sin ();
12251 int
12252 main ()
12253 {
12254 return sin ();
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext conftest$ac_exeext
12260 if { (ac_try="$ac_link"
12261 case "(($ac_try" in
12262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263   *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266   (eval "$ac_link") 2>conftest.er1
12267   ac_status=$?
12268   grep -v '^ *+' conftest.er1 >conftest.err
12269   rm -f conftest.er1
12270   cat conftest.err >&5
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); } &&
12273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12274   { (case "(($ac_try" in
12275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276   *) ac_try_echo=$ac_try;;
12277 esac
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279   (eval "$ac_try") 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); }; } &&
12283          { ac_try='test -s conftest$ac_exeext'
12284   { (case "(($ac_try" in
12285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286   *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289   (eval "$ac_try") 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); }; }; then
12293   ac_cv_lib_m_sin=yes
12294 else
12295   echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12297
12298         ac_cv_lib_m_sin=no
12299 fi
12300
12301 rm -f core conftest.err conftest.$ac_objext \
12302       conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12304 fi
12305 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12306 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12307 if test $ac_cv_lib_m_sin = yes; then
12308   cat >>confdefs.h <<_ACEOF
12309 #define HAVE_LIBM 1
12310 _ACEOF
12311
12312   LIBS="-lm $LIBS"
12313
12314 fi
12315
12316 if test "$llvm_cv_os_type" = "MingW" ; then
12317
12318 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12319 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12320 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12321   echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323   ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-limagehlp  $LIBS"
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h.  */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h.  */
12331
12332
12333 int
12334 main ()
12335 {
12336 return main ();
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (ac_try="$ac_link"
12343 case "(($ac_try" in
12344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345   *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348   (eval "$ac_link") 2>conftest.er1
12349   ac_status=$?
12350   grep -v '^ *+' conftest.er1 >conftest.err
12351   rm -f conftest.er1
12352   cat conftest.err >&5
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); } &&
12355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12356   { (case "(($ac_try" in
12357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358   *) ac_try_echo=$ac_try;;
12359 esac
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361   (eval "$ac_try") 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365          { ac_try='test -s conftest$ac_exeext'
12366   { (case "(($ac_try" in
12367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368   *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371   (eval "$ac_try") 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; }; then
12375   ac_cv_lib_imagehlp_main=yes
12376 else
12377   echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380         ac_cv_lib_imagehlp_main=no
12381 fi
12382
12383 rm -f core conftest.err conftest.$ac_objext \
12384       conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12386 fi
12387 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12388 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12389 if test $ac_cv_lib_imagehlp_main = yes; then
12390   cat >>confdefs.h <<_ACEOF
12391 #define HAVE_LIBIMAGEHLP 1
12392 _ACEOF
12393
12394   LIBS="-limagehlp $LIBS"
12395
12396 fi
12397
12398
12399 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12400 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12401 if test "${ac_cv_lib_psapi_main+set}" = set; then
12402   echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404   ac_check_lib_save_LIBS=$LIBS
12405 LIBS="-lpsapi  $LIBS"
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h.  */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h.  */
12412
12413
12414 int
12415 main ()
12416 {
12417 return main ();
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426   *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429   (eval "$ac_link") 2>conftest.er1
12430   ac_status=$?
12431   grep -v '^ *+' conftest.er1 >conftest.err
12432   rm -f conftest.er1
12433   cat conftest.err >&5
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } &&
12436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12437   { (case "(($ac_try" in
12438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439   *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442   (eval "$ac_try") 2>&5
12443   ac_status=$?
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); }; } &&
12446          { ac_try='test -s conftest$ac_exeext'
12447   { (case "(($ac_try" in
12448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449   *) ac_try_echo=$ac_try;;
12450 esac
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452   (eval "$ac_try") 2>&5
12453   ac_status=$?
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); }; }; then
12456   ac_cv_lib_psapi_main=yes
12457 else
12458   echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12460
12461         ac_cv_lib_psapi_main=no
12462 fi
12463
12464 rm -f core conftest.err conftest.$ac_objext \
12465       conftest$ac_exeext conftest.$ac_ext
12466 LIBS=$ac_check_lib_save_LIBS
12467 fi
12468 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12469 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12470 if test $ac_cv_lib_psapi_main = yes; then
12471   cat >>confdefs.h <<_ACEOF
12472 #define HAVE_LIBPSAPI 1
12473 _ACEOF
12474
12475   LIBS="-lpsapi $LIBS"
12476
12477 fi
12478
12479 fi
12480
12481 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12482 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12483 if test "${ac_cv_search_dlopen+set}" = set; then
12484   echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486   ac_func_search_save_LIBS=$LIBS
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h.  */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h.  */
12493
12494 /* Override any GCC internal prototype to avoid an error.
12495    Use char because int might match the return type of a GCC
12496    builtin and then its argument prototype would still apply.  */
12497 #ifdef __cplusplus
12498 extern "C"
12499 #endif
12500 char dlopen ();
12501 int
12502 main ()
12503 {
12504 return dlopen ();
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 for ac_lib in '' dl; do
12510   if test -z "$ac_lib"; then
12511     ac_res="none required"
12512   else
12513     ac_res=-l$ac_lib
12514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12515   fi
12516   rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_link") 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531   { (case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_try") 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest$ac_exeext'
12541   { (case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_try") 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   ac_cv_search_dlopen=$ac_res
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555
12556 fi
12557
12558 rm -f core conftest.err conftest.$ac_objext \
12559       conftest$ac_exeext
12560   if test "${ac_cv_search_dlopen+set}" = set; then
12561   break
12562 fi
12563 done
12564 if test "${ac_cv_search_dlopen+set}" = set; then
12565   :
12566 else
12567   ac_cv_search_dlopen=no
12568 fi
12569 rm conftest.$ac_ext
12570 LIBS=$ac_func_search_save_LIBS
12571 fi
12572 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12573 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12574 ac_res=$ac_cv_search_dlopen
12575 if test "$ac_res" != no; then
12576   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12577
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_DLOPEN 1
12580 _ACEOF
12581
12582 else
12583   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12584 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12585 fi
12586
12587
12588 if test "$llvm_cv_enable_libffi" = "yes" ; then
12589   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12590 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12591 if test "${ac_cv_search_ffi_call+set}" = set; then
12592   echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594   ac_func_search_save_LIBS=$LIBS
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h.  */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h.  */
12601
12602 /* Override any GCC internal prototype to avoid an error.
12603    Use char because int might match the return type of a GCC
12604    builtin and then its argument prototype would still apply.  */
12605 #ifdef __cplusplus
12606 extern "C"
12607 #endif
12608 char ffi_call ();
12609 int
12610 main ()
12611 {
12612 return ffi_call ();
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 for ac_lib in '' ffi; do
12618   if test -z "$ac_lib"; then
12619     ac_res="none required"
12620   else
12621     ac_res=-l$ac_lib
12622     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12623   fi
12624   rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631   (eval "$ac_link") 2>conftest.er1
12632   ac_status=$?
12633   grep -v '^ *+' conftest.er1 >conftest.err
12634   rm -f conftest.er1
12635   cat conftest.err >&5
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } &&
12638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639   { (case "(($ac_try" in
12640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641   *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644   (eval "$ac_try") 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; } &&
12648          { ac_try='test -s conftest$ac_exeext'
12649   { (case "(($ac_try" in
12650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651   *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654   (eval "$ac_try") 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; }; then
12658   ac_cv_search_ffi_call=$ac_res
12659 else
12660   echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663
12664 fi
12665
12666 rm -f core conftest.err conftest.$ac_objext \
12667       conftest$ac_exeext
12668   if test "${ac_cv_search_ffi_call+set}" = set; then
12669   break
12670 fi
12671 done
12672 if test "${ac_cv_search_ffi_call+set}" = set; then
12673   :
12674 else
12675   ac_cv_search_ffi_call=no
12676 fi
12677 rm conftest.$ac_ext
12678 LIBS=$ac_func_search_save_LIBS
12679 fi
12680 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12681 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12682 ac_res=$ac_cv_search_ffi_call
12683 if test "$ac_res" != no; then
12684   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12685
12686 cat >>confdefs.h <<\_ACEOF
12687 #define HAVE_FFI_CALL 1
12688 _ACEOF
12689
12690 else
12691   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12692 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12693    { (exit 1); exit 1; }; }
12694 fi
12695
12696 fi
12697
12698 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12699 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12700 if test "${ac_cv_search_mallinfo+set}" = set; then
12701   echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703   ac_func_search_save_LIBS=$LIBS
12704 cat >conftest.$ac_ext <<_ACEOF
12705 /* confdefs.h.  */
12706 _ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h.  */
12710
12711 /* Override any GCC internal prototype to avoid an error.
12712    Use char because int might match the return type of a GCC
12713    builtin and then its argument prototype would still apply.  */
12714 #ifdef __cplusplus
12715 extern "C"
12716 #endif
12717 char mallinfo ();
12718 int
12719 main ()
12720 {
12721 return mallinfo ();
12722   ;
12723   return 0;
12724 }
12725 _ACEOF
12726 for ac_lib in '' malloc; do
12727   if test -z "$ac_lib"; then
12728     ac_res="none required"
12729   else
12730     ac_res=-l$ac_lib
12731     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12732   fi
12733   rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (ac_try="$ac_link"
12735 case "(($ac_try" in
12736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737   *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740   (eval "$ac_link") 2>conftest.er1
12741   ac_status=$?
12742   grep -v '^ *+' conftest.er1 >conftest.err
12743   rm -f conftest.er1
12744   cat conftest.err >&5
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } &&
12747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12748   { (case "(($ac_try" in
12749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750   *) ac_try_echo=$ac_try;;
12751 esac
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753   (eval "$ac_try") 2>&5
12754   ac_status=$?
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); }; } &&
12757          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; }; then
12767   ac_cv_search_mallinfo=$ac_res
12768 else
12769   echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12771
12772
12773 fi
12774
12775 rm -f core conftest.err conftest.$ac_objext \
12776       conftest$ac_exeext
12777   if test "${ac_cv_search_mallinfo+set}" = set; then
12778   break
12779 fi
12780 done
12781 if test "${ac_cv_search_mallinfo+set}" = set; then
12782   :
12783 else
12784   ac_cv_search_mallinfo=no
12785 fi
12786 rm conftest.$ac_ext
12787 LIBS=$ac_func_search_save_LIBS
12788 fi
12789 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12790 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12791 ac_res=$ac_cv_search_mallinfo
12792 if test "$ac_res" != no; then
12793   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12794
12795 cat >>confdefs.h <<\_ACEOF
12796 #define HAVE_MALLINFO 1
12797 _ACEOF
12798
12799 fi
12800
12801
12802 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12803
12804 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12805 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12806 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12807   echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809   ac_check_lib_save_LIBS=$LIBS
12810 LIBS="-lpthread  $LIBS"
12811 cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h.  */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h.  */
12817
12818 /* Override any GCC internal prototype to avoid an error.
12819    Use char because int might match the return type of a GCC
12820    builtin and then its argument prototype would still apply.  */
12821 #ifdef __cplusplus
12822 extern "C"
12823 #endif
12824 char pthread_mutex_init ();
12825 int
12826 main ()
12827 {
12828 return pthread_mutex_init ();
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (ac_try="$ac_link"
12835 case "(($ac_try" in
12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837   *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840   (eval "$ac_link") 2>conftest.er1
12841   ac_status=$?
12842   grep -v '^ *+' conftest.er1 >conftest.err
12843   rm -f conftest.er1
12844   cat conftest.err >&5
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); } &&
12847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848   { (case "(($ac_try" in
12849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850   *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853   (eval "$ac_try") 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; } &&
12857          { ac_try='test -s conftest$ac_exeext'
12858   { (case "(($ac_try" in
12859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860   *) ac_try_echo=$ac_try;;
12861 esac
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863   (eval "$ac_try") 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; }; then
12867   ac_cv_lib_pthread_pthread_mutex_init=yes
12868 else
12869   echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872         ac_cv_lib_pthread_pthread_mutex_init=no
12873 fi
12874
12875 rm -f core conftest.err conftest.$ac_objext \
12876       conftest$ac_exeext conftest.$ac_ext
12877 LIBS=$ac_check_lib_save_LIBS
12878 fi
12879 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12880 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12881 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12882   cat >>confdefs.h <<_ACEOF
12883 #define HAVE_LIBPTHREAD 1
12884 _ACEOF
12885
12886   LIBS="-lpthread $LIBS"
12887
12888 fi
12889
12890   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12891 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12892 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   ac_func_search_save_LIBS=$LIBS
12896 cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902
12903 /* Override any GCC internal prototype to avoid an error.
12904    Use char because int might match the return type of a GCC
12905    builtin and then its argument prototype would still apply.  */
12906 #ifdef __cplusplus
12907 extern "C"
12908 #endif
12909 char pthread_mutex_lock ();
12910 int
12911 main ()
12912 {
12913 return pthread_mutex_lock ();
12914   ;
12915   return 0;
12916 }
12917 _ACEOF
12918 for ac_lib in '' pthread; do
12919   if test -z "$ac_lib"; then
12920     ac_res="none required"
12921   else
12922     ac_res=-l$ac_lib
12923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12924   fi
12925   rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (ac_try="$ac_link"
12927 case "(($ac_try" in
12928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929   *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932   (eval "$ac_link") 2>conftest.er1
12933   ac_status=$?
12934   grep -v '^ *+' conftest.er1 >conftest.err
12935   rm -f conftest.er1
12936   cat conftest.err >&5
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } &&
12939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940   { (case "(($ac_try" in
12941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942   *) ac_try_echo=$ac_try;;
12943 esac
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945   (eval "$ac_try") 2>&5
12946   ac_status=$?
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); }; } &&
12949          { ac_try='test -s conftest$ac_exeext'
12950   { (case "(($ac_try" in
12951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952   *) ac_try_echo=$ac_try;;
12953 esac
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955   (eval "$ac_try") 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); }; }; then
12959   ac_cv_search_pthread_mutex_lock=$ac_res
12960 else
12961   echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964
12965 fi
12966
12967 rm -f core conftest.err conftest.$ac_objext \
12968       conftest$ac_exeext
12969   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12970   break
12971 fi
12972 done
12973 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12974   :
12975 else
12976   ac_cv_search_pthread_mutex_lock=no
12977 fi
12978 rm conftest.$ac_ext
12979 LIBS=$ac_func_search_save_LIBS
12980 fi
12981 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12982 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12983 ac_res=$ac_cv_search_pthread_mutex_lock
12984 if test "$ac_res" != no; then
12985   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12986
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_PTHREAD_MUTEX_LOCK 1
12989 _ACEOF
12990
12991 fi
12992
12993   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12994 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12995 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998   ac_func_search_save_LIBS=$LIBS
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13005
13006 /* Override any GCC internal prototype to avoid an error.
13007    Use char because int might match the return type of a GCC
13008    builtin and then its argument prototype would still apply.  */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 char pthread_rwlock_init ();
13013 int
13014 main ()
13015 {
13016 return pthread_rwlock_init ();
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 for ac_lib in '' pthread; do
13022   if test -z "$ac_lib"; then
13023     ac_res="none required"
13024   else
13025     ac_res=-l$ac_lib
13026     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13027   fi
13028   rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032   *) ac_try_echo=$ac_try;;
13033 esac
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035   (eval "$ac_link") 2>conftest.er1
13036   ac_status=$?
13037   grep -v '^ *+' conftest.er1 >conftest.err
13038   rm -f conftest.er1
13039   cat conftest.err >&5
13040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041   (exit $ac_status); } &&
13042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13043   { (case "(($ac_try" in
13044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045   *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048   (eval "$ac_try") 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; } &&
13052          { ac_try='test -s conftest$ac_exeext'
13053   { (case "(($ac_try" in
13054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055   *) ac_try_echo=$ac_try;;
13056 esac
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058   (eval "$ac_try") 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }; }; then
13062   ac_cv_search_pthread_rwlock_init=$ac_res
13063 else
13064   echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067
13068 fi
13069
13070 rm -f core conftest.err conftest.$ac_objext \
13071       conftest$ac_exeext
13072   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13073   break
13074 fi
13075 done
13076 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13077   :
13078 else
13079   ac_cv_search_pthread_rwlock_init=no
13080 fi
13081 rm conftest.$ac_ext
13082 LIBS=$ac_func_search_save_LIBS
13083 fi
13084 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13085 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13086 ac_res=$ac_cv_search_pthread_rwlock_init
13087 if test "$ac_res" != no; then
13088   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13089
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_PTHREAD_RWLOCK_INIT 1
13092 _ACEOF
13093
13094 fi
13095
13096   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13097 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13098 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13099   echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101   ac_func_search_save_LIBS=$LIBS
13102 cat >conftest.$ac_ext <<_ACEOF
13103 /* confdefs.h.  */
13104 _ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h.  */
13108
13109 /* Override any GCC internal prototype to avoid an error.
13110    Use char because int might match the return type of a GCC
13111    builtin and then its argument prototype would still apply.  */
13112 #ifdef __cplusplus
13113 extern "C"
13114 #endif
13115 char pthread_getspecific ();
13116 int
13117 main ()
13118 {
13119 return pthread_getspecific ();
13120   ;
13121   return 0;
13122 }
13123 _ACEOF
13124 for ac_lib in '' pthread; do
13125   if test -z "$ac_lib"; then
13126     ac_res="none required"
13127   else
13128     ac_res=-l$ac_lib
13129     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13130   fi
13131   rm -f conftest.$ac_objext conftest$ac_exeext
13132 if { (ac_try="$ac_link"
13133 case "(($ac_try" in
13134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135   *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138   (eval "$ac_link") 2>conftest.er1
13139   ac_status=$?
13140   grep -v '^ *+' conftest.er1 >conftest.err
13141   rm -f conftest.er1
13142   cat conftest.err >&5
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); } &&
13145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13146   { (case "(($ac_try" in
13147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148   *) ac_try_echo=$ac_try;;
13149 esac
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151   (eval "$ac_try") 2>&5
13152   ac_status=$?
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); }; } &&
13155          { ac_try='test -s conftest$ac_exeext'
13156   { (case "(($ac_try" in
13157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158   *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161   (eval "$ac_try") 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; }; then
13165   ac_cv_search_pthread_getspecific=$ac_res
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170
13171 fi
13172
13173 rm -f core conftest.err conftest.$ac_objext \
13174       conftest$ac_exeext
13175   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13176   break
13177 fi
13178 done
13179 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13180   :
13181 else
13182   ac_cv_search_pthread_getspecific=no
13183 fi
13184 rm conftest.$ac_ext
13185 LIBS=$ac_func_search_save_LIBS
13186 fi
13187 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13188 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13189 ac_res=$ac_cv_search_pthread_getspecific
13190 if test "$ac_res" != no; then
13191   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13192
13193 cat >>confdefs.h <<\_ACEOF
13194 #define HAVE_PTHREAD_GETSPECIFIC 1
13195 _ACEOF
13196
13197 fi
13198
13199 fi
13200
13201
13202 # Check whether --with-udis86 was given.
13203 if test "${with_udis86+set}" = set; then
13204   withval=$with_udis86;
13205       USE_UDIS86=1
13206
13207       case "$withval" in
13208         /usr/lib|yes) ;;
13209         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13210       esac
13211
13212 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13213 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13214 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217   ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-ludis86  $LIBS"
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225
13226 /* Override any GCC internal prototype to avoid an error.
13227    Use char because int might match the return type of a GCC
13228    builtin and then its argument prototype would still apply.  */
13229 #ifdef __cplusplus
13230 extern "C"
13231 #endif
13232 char ud_init ();
13233 int
13234 main ()
13235 {
13236 return ud_init ();
13237   ;
13238   return 0;
13239 }
13240 _ACEOF
13241 rm -f conftest.$ac_objext conftest$ac_exeext
13242 if { (ac_try="$ac_link"
13243 case "(($ac_try" in
13244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245   *) ac_try_echo=$ac_try;;
13246 esac
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248   (eval "$ac_link") 2>conftest.er1
13249   ac_status=$?
13250   grep -v '^ *+' conftest.er1 >conftest.err
13251   rm -f conftest.er1
13252   cat conftest.err >&5
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); } &&
13255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13256   { (case "(($ac_try" in
13257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258   *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261   (eval "$ac_try") 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); }; } &&
13265          { ac_try='test -s conftest$ac_exeext'
13266   { (case "(($ac_try" in
13267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268   *) ac_try_echo=$ac_try;;
13269 esac
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271   (eval "$ac_try") 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; }; then
13275   ac_cv_lib_udis86_ud_init=yes
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280         ac_cv_lib_udis86_ud_init=no
13281 fi
13282
13283 rm -f core conftest.err conftest.$ac_objext \
13284       conftest$ac_exeext conftest.$ac_ext
13285 LIBS=$ac_check_lib_save_LIBS
13286 fi
13287 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13288 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13289 if test $ac_cv_lib_udis86_ud_init = yes; then
13290   cat >>confdefs.h <<_ACEOF
13291 #define HAVE_LIBUDIS86 1
13292 _ACEOF
13293
13294   LIBS="-ludis86 $LIBS"
13295
13296 else
13297
13298         echo "Error! You need to have libudis86 around."
13299         exit -1
13300
13301 fi
13302
13303
13304 else
13305   USE_UDIS86=0
13306
13307 fi
13308
13309
13310 cat >>confdefs.h <<_ACEOF
13311 #define USE_UDIS86 $USE_UDIS86
13312 _ACEOF
13313
13314
13315
13316 # Check whether --with-oprofile was given.
13317 if test "${with_oprofile+set}" = set; then
13318   withval=$with_oprofile;
13319       USE_OPROFILE=1
13320
13321       case "$withval" in
13322         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13323         no) llvm_cv_oppath=
13324             USE_OPROFILE=0
13325  ;;
13326         *) llvm_cv_oppath="${withval}/lib/oprofile"
13327            CPPFLAGS="-I${withval}/include";;
13328       esac
13329       if test -n "$llvm_cv_oppath" ; then
13330         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13331                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13332 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13333 if test "${ac_cv_search_bfd_init+set}" = set; then
13334   echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336   ac_func_search_save_LIBS=$LIBS
13337 cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h.  */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h.  */
13343
13344 /* Override any GCC internal prototype to avoid an error.
13345    Use char because int might match the return type of a GCC
13346    builtin and then its argument prototype would still apply.  */
13347 #ifdef __cplusplus
13348 extern "C"
13349 #endif
13350 char bfd_init ();
13351 int
13352 main ()
13353 {
13354 return bfd_init ();
13355   ;
13356   return 0;
13357 }
13358 _ACEOF
13359 for ac_lib in '' bfd; do
13360   if test -z "$ac_lib"; then
13361     ac_res="none required"
13362   else
13363     ac_res=-l$ac_lib
13364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13365   fi
13366   rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370   *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373   (eval "$ac_link") 2>conftest.er1
13374   ac_status=$?
13375   grep -v '^ *+' conftest.er1 >conftest.err
13376   rm -f conftest.er1
13377   cat conftest.err >&5
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); } &&
13380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13381   { (case "(($ac_try" in
13382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383   *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386   (eval "$ac_try") 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; } &&
13390          { ac_try='test -s conftest$ac_exeext'
13391   { (case "(($ac_try" in
13392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393   *) ac_try_echo=$ac_try;;
13394 esac
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396   (eval "$ac_try") 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); }; }; then
13400   ac_cv_search_bfd_init=$ac_res
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405
13406 fi
13407
13408 rm -f core conftest.err conftest.$ac_objext \
13409       conftest$ac_exeext
13410   if test "${ac_cv_search_bfd_init+set}" = set; then
13411   break
13412 fi
13413 done
13414 if test "${ac_cv_search_bfd_init+set}" = set; then
13415   :
13416 else
13417   ac_cv_search_bfd_init=no
13418 fi
13419 rm conftest.$ac_ext
13420 LIBS=$ac_func_search_save_LIBS
13421 fi
13422 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13423 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13424 ac_res=$ac_cv_search_bfd_init
13425 if test "$ac_res" != no; then
13426   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13427
13428 fi
13429
13430         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13431 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13432 if test "${ac_cv_search_op_open_agent+set}" = set; then
13433   echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435   ac_func_search_save_LIBS=$LIBS
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442
13443 /* Override any GCC internal prototype to avoid an error.
13444    Use char because int might match the return type of a GCC
13445    builtin and then its argument prototype would still apply.  */
13446 #ifdef __cplusplus
13447 extern "C"
13448 #endif
13449 char op_open_agent ();
13450 int
13451 main ()
13452 {
13453 return op_open_agent ();
13454   ;
13455   return 0;
13456 }
13457 _ACEOF
13458 for ac_lib in '' opagent; do
13459   if test -z "$ac_lib"; then
13460     ac_res="none required"
13461   else
13462     ac_res=-l$ac_lib
13463     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13464   fi
13465   rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (ac_try="$ac_link"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_link") 2>conftest.er1
13473   ac_status=$?
13474   grep -v '^ *+' conftest.er1 >conftest.err
13475   rm -f conftest.er1
13476   cat conftest.err >&5
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); } &&
13479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13480   { (case "(($ac_try" in
13481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482   *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485   (eval "$ac_try") 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); }; } &&
13489          { ac_try='test -s conftest$ac_exeext'
13490   { (case "(($ac_try" in
13491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492   *) ac_try_echo=$ac_try;;
13493 esac
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495   (eval "$ac_try") 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; }; then
13499   ac_cv_search_op_open_agent=$ac_res
13500 else
13501   echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504
13505 fi
13506
13507 rm -f core conftest.err conftest.$ac_objext \
13508       conftest$ac_exeext
13509   if test "${ac_cv_search_op_open_agent+set}" = set; then
13510   break
13511 fi
13512 done
13513 if test "${ac_cv_search_op_open_agent+set}" = set; then
13514   :
13515 else
13516   ac_cv_search_op_open_agent=no
13517 fi
13518 rm conftest.$ac_ext
13519 LIBS=$ac_func_search_save_LIBS
13520 fi
13521 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13522 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13523 ac_res=$ac_cv_search_op_open_agent
13524 if test "$ac_res" != no; then
13525   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13526
13527 else
13528
13529           echo "Error! You need to have libopagent around."
13530           exit -1
13531
13532 fi
13533
13534         if test "${ac_cv_header_opagent_h+set}" = set; then
13535   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13536 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13537 if test "${ac_cv_header_opagent_h+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 fi
13540 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13541 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13542 else
13543   # Is the header compilable?
13544 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13545 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h.  */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h.  */
13552 $ac_includes_default
13553 #include <opagent.h>
13554 _ACEOF
13555 rm -f conftest.$ac_objext
13556 if { (ac_try="$ac_compile"
13557 case "(($ac_try" in
13558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559   *) ac_try_echo=$ac_try;;
13560 esac
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562   (eval "$ac_compile") 2>conftest.er1
13563   ac_status=$?
13564   grep -v '^ *+' conftest.er1 >conftest.err
13565   rm -f conftest.er1
13566   cat conftest.err >&5
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); } &&
13569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13570   { (case "(($ac_try" in
13571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572   *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575   (eval "$ac_try") 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; } &&
13579          { ac_try='test -s conftest.$ac_objext'
13580   { (case "(($ac_try" in
13581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582   *) ac_try_echo=$ac_try;;
13583 esac
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585   (eval "$ac_try") 2>&5
13586   ac_status=$?
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); }; }; then
13589   ac_header_compiler=yes
13590 else
13591   echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13593
13594         ac_header_compiler=no
13595 fi
13596
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13599 echo "${ECHO_T}$ac_header_compiler" >&6; }
13600
13601 # Is the header present?
13602 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13603 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13604 cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h.  */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h.  */
13610 #include <opagent.h>
13611 _ACEOF
13612 if { (ac_try="$ac_cpp conftest.$ac_ext"
13613 case "(($ac_try" in
13614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615   *) ac_try_echo=$ac_try;;
13616 esac
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13619   ac_status=$?
13620   grep -v '^ *+' conftest.er1 >conftest.err
13621   rm -f conftest.er1
13622   cat conftest.err >&5
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); } >/dev/null; then
13625   if test -s conftest.err; then
13626     ac_cpp_err=$ac_c_preproc_warn_flag
13627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13628   else
13629     ac_cpp_err=
13630   fi
13631 else
13632   ac_cpp_err=yes
13633 fi
13634 if test -z "$ac_cpp_err"; then
13635   ac_header_preproc=yes
13636 else
13637   echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13639
13640   ac_header_preproc=no
13641 fi
13642
13643 rm -f conftest.err conftest.$ac_ext
13644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13645 echo "${ECHO_T}$ac_header_preproc" >&6; }
13646
13647 # So?  What about this header?
13648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13649   yes:no: )
13650     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13651 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13652     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13653 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13654     ac_header_preproc=yes
13655     ;;
13656   no:yes:* )
13657     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13658 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13659     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13660 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13661     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13662 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13663     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13664 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13665     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13666 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13667     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13668 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13669     ( cat <<\_ASBOX
13670 ## ------------------------------------ ##
13671 ## Report this to http://llvm.org/bugs/ ##
13672 ## ------------------------------------ ##
13673 _ASBOX
13674      ) | sed "s/^/$as_me: WARNING:     /" >&2
13675     ;;
13676 esac
13677 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13678 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13679 if test "${ac_cv_header_opagent_h+set}" = set; then
13680   echo $ECHO_N "(cached) $ECHO_C" >&6
13681 else
13682   ac_cv_header_opagent_h=$ac_header_preproc
13683 fi
13684 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13685 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13686
13687 fi
13688 if test $ac_cv_header_opagent_h = yes; then
13689   :
13690 else
13691
13692           echo "Error! You need to have opagent.h around."
13693           exit -1
13694
13695 fi
13696
13697
13698       fi
13699
13700 else
13701
13702       USE_OPROFILE=0
13703
13704
13705 fi
13706
13707
13708 cat >>confdefs.h <<_ACEOF
13709 #define USE_OPROFILE $USE_OPROFILE
13710 _ACEOF
13711
13712
13713
13714
13715
13716
13717
13718
13719 ac_header_dirent=no
13720 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13721   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13722 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13723 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 #include <sys/types.h>
13734 #include <$ac_hdr>
13735
13736 int
13737 main ()
13738 {
13739 if ((DIR *) 0)
13740 return 0;
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest.$ac_objext
13746 if { (ac_try="$ac_compile"
13747 case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_compile") 2>conftest.er1
13753   ac_status=$?
13754   grep -v '^ *+' conftest.er1 >conftest.err
13755   rm -f conftest.er1
13756   cat conftest.err >&5
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); } &&
13759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13760   { (case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_try") 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; } &&
13769          { ac_try='test -s conftest.$ac_objext'
13770   { (case "(($ac_try" in
13771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772   *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775   (eval "$ac_try") 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); }; }; then
13779   eval "$as_ac_Header=yes"
13780 else
13781   echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13783
13784         eval "$as_ac_Header=no"
13785 fi
13786
13787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13788 fi
13789 ac_res=`eval echo '${'$as_ac_Header'}'`
13790                { echo "$as_me:$LINENO: result: $ac_res" >&5
13791 echo "${ECHO_T}$ac_res" >&6; }
13792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13793   cat >>confdefs.h <<_ACEOF
13794 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13795 _ACEOF
13796
13797 ac_header_dirent=$ac_hdr; break
13798 fi
13799
13800 done
13801 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13802 if test $ac_header_dirent = dirent.h; then
13803   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13804 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13805 if test "${ac_cv_search_opendir+set}" = set; then
13806   echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808   ac_func_search_save_LIBS=$LIBS
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815
13816 /* Override any GCC internal prototype to avoid an error.
13817    Use char because int might match the return type of a GCC
13818    builtin and then its argument prototype would still apply.  */
13819 #ifdef __cplusplus
13820 extern "C"
13821 #endif
13822 char opendir ();
13823 int
13824 main ()
13825 {
13826 return opendir ();
13827   ;
13828   return 0;
13829 }
13830 _ACEOF
13831 for ac_lib in '' dir; do
13832   if test -z "$ac_lib"; then
13833     ac_res="none required"
13834   else
13835     ac_res=-l$ac_lib
13836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13837   fi
13838   rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (ac_try="$ac_link"
13840 case "(($ac_try" in
13841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842   *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845   (eval "$ac_link") 2>conftest.er1
13846   ac_status=$?
13847   grep -v '^ *+' conftest.er1 >conftest.err
13848   rm -f conftest.er1
13849   cat conftest.err >&5
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); } &&
13852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13853   { (case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_try") 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; } &&
13862          { ac_try='test -s conftest$ac_exeext'
13863   { (case "(($ac_try" in
13864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865   *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868   (eval "$ac_try") 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; }; then
13872   ac_cv_search_opendir=$ac_res
13873 else
13874   echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13876
13877
13878 fi
13879
13880 rm -f core conftest.err conftest.$ac_objext \
13881       conftest$ac_exeext
13882   if test "${ac_cv_search_opendir+set}" = set; then
13883   break
13884 fi
13885 done
13886 if test "${ac_cv_search_opendir+set}" = set; then
13887   :
13888 else
13889   ac_cv_search_opendir=no
13890 fi
13891 rm conftest.$ac_ext
13892 LIBS=$ac_func_search_save_LIBS
13893 fi
13894 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13895 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13896 ac_res=$ac_cv_search_opendir
13897 if test "$ac_res" != no; then
13898   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13899
13900 fi
13901
13902 else
13903   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13905 if test "${ac_cv_search_opendir+set}" = set; then
13906   echo $ECHO_N "(cached) $ECHO_C" >&6
13907 else
13908   ac_func_search_save_LIBS=$LIBS
13909 cat >conftest.$ac_ext <<_ACEOF
13910 /* confdefs.h.  */
13911 _ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h.  */
13915
13916 /* Override any GCC internal prototype to avoid an error.
13917    Use char because int might match the return type of a GCC
13918    builtin and then its argument prototype would still apply.  */
13919 #ifdef __cplusplus
13920 extern "C"
13921 #endif
13922 char opendir ();
13923 int
13924 main ()
13925 {
13926 return opendir ();
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 for ac_lib in '' x; do
13932   if test -z "$ac_lib"; then
13933     ac_res="none required"
13934   else
13935     ac_res=-l$ac_lib
13936     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13937   fi
13938   rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (ac_try="$ac_link"
13940 case "(($ac_try" in
13941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942   *) ac_try_echo=$ac_try;;
13943 esac
13944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945   (eval "$ac_link") 2>conftest.er1
13946   ac_status=$?
13947   grep -v '^ *+' conftest.er1 >conftest.err
13948   rm -f conftest.er1
13949   cat conftest.err >&5
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); } &&
13952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13953   { (case "(($ac_try" in
13954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955   *) ac_try_echo=$ac_try;;
13956 esac
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958   (eval "$ac_try") 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; } &&
13962          { ac_try='test -s conftest$ac_exeext'
13963   { (case "(($ac_try" in
13964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965   *) ac_try_echo=$ac_try;;
13966 esac
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968   (eval "$ac_try") 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; }; then
13972   ac_cv_search_opendir=$ac_res
13973 else
13974   echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977
13978 fi
13979
13980 rm -f core conftest.err conftest.$ac_objext \
13981       conftest$ac_exeext
13982   if test "${ac_cv_search_opendir+set}" = set; then
13983   break
13984 fi
13985 done
13986 if test "${ac_cv_search_opendir+set}" = set; then
13987   :
13988 else
13989   ac_cv_search_opendir=no
13990 fi
13991 rm conftest.$ac_ext
13992 LIBS=$ac_func_search_save_LIBS
13993 fi
13994 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13995 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13996 ac_res=$ac_cv_search_opendir
13997 if test "$ac_res" != no; then
13998   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13999
14000 fi
14001
14002 fi
14003
14004 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14005 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14006 if test "${ac_cv_header_mmap_anon+set}" = set; then
14007   echo $ECHO_N "(cached) $ECHO_C" >&6
14008 else
14009    ac_ext=c
14010 ac_cpp='$CPP $CPPFLAGS'
14011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14014
14015   cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h.  */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h.  */
14021 #include <sys/mman.h>
14022 #include <unistd.h>
14023 #include <fcntl.h>
14024 int
14025 main ()
14026 {
14027 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14028   ;
14029   return 0;
14030 }
14031 _ACEOF
14032 rm -f conftest.$ac_objext
14033 if { (ac_try="$ac_compile"
14034 case "(($ac_try" in
14035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036   *) ac_try_echo=$ac_try;;
14037 esac
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039   (eval "$ac_compile") 2>conftest.er1
14040   ac_status=$?
14041   grep -v '^ *+' conftest.er1 >conftest.err
14042   rm -f conftest.er1
14043   cat conftest.err >&5
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } &&
14046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14047   { (case "(($ac_try" in
14048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049   *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052   (eval "$ac_try") 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; } &&
14056          { ac_try='test -s conftest.$ac_objext'
14057   { (case "(($ac_try" in
14058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059   *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062   (eval "$ac_try") 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; }; then
14066   ac_cv_header_mmap_anon=yes
14067 else
14068   echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071         ac_cv_header_mmap_anon=no
14072 fi
14073
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075   ac_ext=c
14076 ac_cpp='$CPP $CPPFLAGS'
14077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14080
14081
14082 fi
14083 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14084 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14085 if test "$ac_cv_header_mmap_anon" = yes; then
14086
14087 cat >>confdefs.h <<\_ACEOF
14088 #define HAVE_MMAP_ANONYMOUS 1
14089 _ACEOF
14090
14091 fi
14092
14093 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14094 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14095 if test "${ac_cv_header_stat_broken+set}" = set; then
14096   echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098   cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h.  */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h.  */
14104 #include <sys/types.h>
14105 #include <sys/stat.h>
14106
14107 #if defined S_ISBLK && defined S_IFDIR
14108 # if S_ISBLK (S_IFDIR)
14109 You lose.
14110 # endif
14111 #endif
14112
14113 #if defined S_ISBLK && defined S_IFCHR
14114 # if S_ISBLK (S_IFCHR)
14115 You lose.
14116 # endif
14117 #endif
14118
14119 #if defined S_ISLNK && defined S_IFREG
14120 # if S_ISLNK (S_IFREG)
14121 You lose.
14122 # endif
14123 #endif
14124
14125 #if defined S_ISSOCK && defined S_IFREG
14126 # if S_ISSOCK (S_IFREG)
14127 You lose.
14128 # endif
14129 #endif
14130
14131 _ACEOF
14132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14133   $EGREP "You lose" >/dev/null 2>&1; then
14134   ac_cv_header_stat_broken=yes
14135 else
14136   ac_cv_header_stat_broken=no
14137 fi
14138 rm -f conftest*
14139
14140 fi
14141 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14142 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14143 if test $ac_cv_header_stat_broken = yes; then
14144
14145 cat >>confdefs.h <<\_ACEOF
14146 #define STAT_MACROS_BROKEN 1
14147 _ACEOF
14148
14149 fi
14150
14151 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14153 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14154   echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156   cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h.  */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h.  */
14162 #include <sys/types.h>
14163 #include <sys/wait.h>
14164 #ifndef WEXITSTATUS
14165 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14166 #endif
14167 #ifndef WIFEXITED
14168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14169 #endif
14170
14171 int
14172 main ()
14173 {
14174   int s;
14175   wait (&s);
14176   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 rm -f conftest.$ac_objext
14182 if { (ac_try="$ac_compile"
14183 case "(($ac_try" in
14184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185   *) ac_try_echo=$ac_try;;
14186 esac
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188   (eval "$ac_compile") 2>conftest.er1
14189   ac_status=$?
14190   grep -v '^ *+' conftest.er1 >conftest.err
14191   rm -f conftest.er1
14192   cat conftest.err >&5
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); } &&
14195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14196   { (case "(($ac_try" in
14197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198   *) ac_try_echo=$ac_try;;
14199 esac
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201   (eval "$ac_try") 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; } &&
14205          { ac_try='test -s conftest.$ac_objext'
14206   { (case "(($ac_try" in
14207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208   *) ac_try_echo=$ac_try;;
14209 esac
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211   (eval "$ac_try") 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; }; then
14215   ac_cv_header_sys_wait_h=yes
14216 else
14217   echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220         ac_cv_header_sys_wait_h=no
14221 fi
14222
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 fi
14225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14226 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14227 if test $ac_cv_header_sys_wait_h = yes; then
14228
14229 cat >>confdefs.h <<\_ACEOF
14230 #define HAVE_SYS_WAIT_H 1
14231 _ACEOF
14232
14233 fi
14234
14235 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14236 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14237 if test "${ac_cv_header_time+set}" = set; then
14238   echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240   cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h.  */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h.  */
14246 #include <sys/types.h>
14247 #include <sys/time.h>
14248 #include <time.h>
14249
14250 int
14251 main ()
14252 {
14253 if ((struct tm *) 0)
14254 return 0;
14255   ;
14256   return 0;
14257 }
14258 _ACEOF
14259 rm -f conftest.$ac_objext
14260 if { (ac_try="$ac_compile"
14261 case "(($ac_try" in
14262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263   *) ac_try_echo=$ac_try;;
14264 esac
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266   (eval "$ac_compile") 2>conftest.er1
14267   ac_status=$?
14268   grep -v '^ *+' conftest.er1 >conftest.err
14269   rm -f conftest.er1
14270   cat conftest.err >&5
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } &&
14273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274   { (case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279   (eval "$ac_try") 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; } &&
14283          { ac_try='test -s conftest.$ac_objext'
14284   { (case "(($ac_try" in
14285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286   *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289   (eval "$ac_try") 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; }; then
14293   ac_cv_header_time=yes
14294 else
14295   echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298         ac_cv_header_time=no
14299 fi
14300
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 fi
14303 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14304 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14305 if test $ac_cv_header_time = yes; then
14306
14307 cat >>confdefs.h <<\_ACEOF
14308 #define TIME_WITH_SYS_TIME 1
14309 _ACEOF
14310
14311 fi
14312
14313
14314
14315
14316
14317
14318
14319
14320 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14321 do
14322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14324   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14327   echo $ECHO_N "(cached) $ECHO_C" >&6
14328 fi
14329 ac_res=`eval echo '${'$as_ac_Header'}'`
14330                { echo "$as_me:$LINENO: result: $ac_res" >&5
14331 echo "${ECHO_T}$ac_res" >&6; }
14332 else
14333   # Is the header compilable?
14334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14336 cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342 $ac_includes_default
14343 #include <$ac_header>
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (ac_try="$ac_compile"
14347 case "(($ac_try" in
14348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349   *) ac_try_echo=$ac_try;;
14350 esac
14351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352   (eval "$ac_compile") 2>conftest.er1
14353   ac_status=$?
14354   grep -v '^ *+' conftest.er1 >conftest.err
14355   rm -f conftest.er1
14356   cat conftest.err >&5
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); } &&
14359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14360   { (case "(($ac_try" in
14361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362   *) ac_try_echo=$ac_try;;
14363 esac
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365   (eval "$ac_try") 2>&5
14366   ac_status=$?
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); }; } &&
14369          { ac_try='test -s conftest.$ac_objext'
14370   { (case "(($ac_try" in
14371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372   *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375   (eval "$ac_try") 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; }; then
14379   ac_header_compiler=yes
14380 else
14381   echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384         ac_header_compiler=no
14385 fi
14386
14387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14389 echo "${ECHO_T}$ac_header_compiler" >&6; }
14390
14391 # Is the header present?
14392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h.  */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h.  */
14400 #include <$ac_header>
14401 _ACEOF
14402 if { (ac_try="$ac_cpp conftest.$ac_ext"
14403 case "(($ac_try" in
14404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405   *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14409   ac_status=$?
14410   grep -v '^ *+' conftest.er1 >conftest.err
14411   rm -f conftest.er1
14412   cat conftest.err >&5
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } >/dev/null; then
14415   if test -s conftest.err; then
14416     ac_cpp_err=$ac_c_preproc_warn_flag
14417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14418   else
14419     ac_cpp_err=
14420   fi
14421 else
14422   ac_cpp_err=yes
14423 fi
14424 if test -z "$ac_cpp_err"; then
14425   ac_header_preproc=yes
14426 else
14427   echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430   ac_header_preproc=no
14431 fi
14432
14433 rm -f conftest.err conftest.$ac_ext
14434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14435 echo "${ECHO_T}$ac_header_preproc" >&6; }
14436
14437 # So?  What about this header?
14438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14439   yes:no: )
14440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14444     ac_header_preproc=yes
14445     ;;
14446   no:yes:* )
14447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14459     ( cat <<\_ASBOX
14460 ## ------------------------------------ ##
14461 ## Report this to http://llvm.org/bugs/ ##
14462 ## ------------------------------------ ##
14463 _ASBOX
14464      ) | sed "s/^/$as_me: WARNING:     /" >&2
14465     ;;
14466 esac
14467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14470   echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472   eval "$as_ac_Header=\$ac_header_preproc"
14473 fi
14474 ac_res=`eval echo '${'$as_ac_Header'}'`
14475                { echo "$as_me:$LINENO: result: $ac_res" >&5
14476 echo "${ECHO_T}$ac_res" >&6; }
14477
14478 fi
14479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14480   cat >>confdefs.h <<_ACEOF
14481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14482 _ACEOF
14483
14484 fi
14485
14486 done
14487
14488
14489
14490
14491
14492
14493
14494 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14495 do
14496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14498   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14501   echo $ECHO_N "(cached) $ECHO_C" >&6
14502 fi
14503 ac_res=`eval echo '${'$as_ac_Header'}'`
14504                { echo "$as_me:$LINENO: result: $ac_res" >&5
14505 echo "${ECHO_T}$ac_res" >&6; }
14506 else
14507   # Is the header compilable?
14508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14510 cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h.  */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h.  */
14516 $ac_includes_default
14517 #include <$ac_header>
14518 _ACEOF
14519 rm -f conftest.$ac_objext
14520 if { (ac_try="$ac_compile"
14521 case "(($ac_try" in
14522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523   *) ac_try_echo=$ac_try;;
14524 esac
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526   (eval "$ac_compile") 2>conftest.er1
14527   ac_status=$?
14528   grep -v '^ *+' conftest.er1 >conftest.err
14529   rm -f conftest.er1
14530   cat conftest.err >&5
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); } &&
14533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14534   { (case "(($ac_try" in
14535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536   *) ac_try_echo=$ac_try;;
14537 esac
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539   (eval "$ac_try") 2>&5
14540   ac_status=$?
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); }; } &&
14543          { ac_try='test -s conftest.$ac_objext'
14544   { (case "(($ac_try" in
14545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546   *) ac_try_echo=$ac_try;;
14547 esac
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549   (eval "$ac_try") 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }; then
14553   ac_header_compiler=yes
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558         ac_header_compiler=no
14559 fi
14560
14561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14563 echo "${ECHO_T}$ac_header_compiler" >&6; }
14564
14565 # Is the header present?
14566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14568 cat >conftest.$ac_ext <<_ACEOF
14569 /* confdefs.h.  */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h.  */
14574 #include <$ac_header>
14575 _ACEOF
14576 if { (ac_try="$ac_cpp conftest.$ac_ext"
14577 case "(($ac_try" in
14578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579   *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14583   ac_status=$?
14584   grep -v '^ *+' conftest.er1 >conftest.err
14585   rm -f conftest.er1
14586   cat conftest.err >&5
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); } >/dev/null; then
14589   if test -s conftest.err; then
14590     ac_cpp_err=$ac_c_preproc_warn_flag
14591     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14592   else
14593     ac_cpp_err=
14594   fi
14595 else
14596   ac_cpp_err=yes
14597 fi
14598 if test -z "$ac_cpp_err"; then
14599   ac_header_preproc=yes
14600 else
14601   echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604   ac_header_preproc=no
14605 fi
14606
14607 rm -f conftest.err conftest.$ac_ext
14608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14609 echo "${ECHO_T}$ac_header_preproc" >&6; }
14610
14611 # So?  What about this header?
14612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14613   yes:no: )
14614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14618     ac_header_preproc=yes
14619     ;;
14620   no:yes:* )
14621     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14623     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14624 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14625     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14627     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14628 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14631     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14633     ( cat <<\_ASBOX
14634 ## ------------------------------------ ##
14635 ## Report this to http://llvm.org/bugs/ ##
14636 ## ------------------------------------ ##
14637 _ASBOX
14638      ) | sed "s/^/$as_me: WARNING:     /" >&2
14639     ;;
14640 esac
14641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14644   echo $ECHO_N "(cached) $ECHO_C" >&6
14645 else
14646   eval "$as_ac_Header=\$ac_header_preproc"
14647 fi
14648 ac_res=`eval echo '${'$as_ac_Header'}'`
14649                { echo "$as_me:$LINENO: result: $ac_res" >&5
14650 echo "${ECHO_T}$ac_res" >&6; }
14651
14652 fi
14653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14654   cat >>confdefs.h <<_ACEOF
14655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14656 _ACEOF
14657
14658 fi
14659
14660 done
14661
14662
14663
14664 for ac_header in utime.h windows.h
14665 do
14666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14668   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14671   echo $ECHO_N "(cached) $ECHO_C" >&6
14672 fi
14673 ac_res=`eval echo '${'$as_ac_Header'}'`
14674                { echo "$as_me:$LINENO: result: $ac_res" >&5
14675 echo "${ECHO_T}$ac_res" >&6; }
14676 else
14677   # Is the header compilable?
14678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h.  */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h.  */
14686 $ac_includes_default
14687 #include <$ac_header>
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (ac_try="$ac_compile"
14691 case "(($ac_try" in
14692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693   *) ac_try_echo=$ac_try;;
14694 esac
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696   (eval "$ac_compile") 2>conftest.er1
14697   ac_status=$?
14698   grep -v '^ *+' conftest.er1 >conftest.err
14699   rm -f conftest.er1
14700   cat conftest.err >&5
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); } &&
14703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14704   { (case "(($ac_try" in
14705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706   *) ac_try_echo=$ac_try;;
14707 esac
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709   (eval "$ac_try") 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); }; } &&
14713          { ac_try='test -s conftest.$ac_objext'
14714   { (case "(($ac_try" in
14715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716   *) ac_try_echo=$ac_try;;
14717 esac
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719   (eval "$ac_try") 2>&5
14720   ac_status=$?
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); }; }; then
14723   ac_header_compiler=yes
14724 else
14725   echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728         ac_header_compiler=no
14729 fi
14730
14731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14733 echo "${ECHO_T}$ac_header_compiler" >&6; }
14734
14735 # Is the header present?
14736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14738 cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h.  */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h.  */
14744 #include <$ac_header>
14745 _ACEOF
14746 if { (ac_try="$ac_cpp conftest.$ac_ext"
14747 case "(($ac_try" in
14748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749   *) ac_try_echo=$ac_try;;
14750 esac
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14753   ac_status=$?
14754   grep -v '^ *+' conftest.er1 >conftest.err
14755   rm -f conftest.er1
14756   cat conftest.err >&5
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); } >/dev/null; then
14759   if test -s conftest.err; then
14760     ac_cpp_err=$ac_c_preproc_warn_flag
14761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14762   else
14763     ac_cpp_err=
14764   fi
14765 else
14766   ac_cpp_err=yes
14767 fi
14768 if test -z "$ac_cpp_err"; then
14769   ac_header_preproc=yes
14770 else
14771   echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774   ac_header_preproc=no
14775 fi
14776
14777 rm -f conftest.err conftest.$ac_ext
14778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14779 echo "${ECHO_T}$ac_header_preproc" >&6; }
14780
14781 # So?  What about this header?
14782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14783   yes:no: )
14784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14788     ac_header_preproc=yes
14789     ;;
14790   no:yes:* )
14791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14803     ( cat <<\_ASBOX
14804 ## ------------------------------------ ##
14805 ## Report this to http://llvm.org/bugs/ ##
14806 ## ------------------------------------ ##
14807 _ASBOX
14808      ) | sed "s/^/$as_me: WARNING:     /" >&2
14809     ;;
14810 esac
14811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   eval "$as_ac_Header=\$ac_header_preproc"
14817 fi
14818 ac_res=`eval echo '${'$as_ac_Header'}'`
14819                { echo "$as_me:$LINENO: result: $ac_res" >&5
14820 echo "${ECHO_T}$ac_res" >&6; }
14821
14822 fi
14823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14824   cat >>confdefs.h <<_ACEOF
14825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14826 _ACEOF
14827
14828 fi
14829
14830 done
14831
14832
14833
14834
14835
14836
14837 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14838 do
14839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14841   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14844   echo $ECHO_N "(cached) $ECHO_C" >&6
14845 fi
14846 ac_res=`eval echo '${'$as_ac_Header'}'`
14847                { echo "$as_me:$LINENO: result: $ac_res" >&5
14848 echo "${ECHO_T}$ac_res" >&6; }
14849 else
14850   # Is the header compilable?
14851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859 $ac_includes_default
14860 #include <$ac_header>
14861 _ACEOF
14862 rm -f conftest.$ac_objext
14863 if { (ac_try="$ac_compile"
14864 case "(($ac_try" in
14865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866   *) ac_try_echo=$ac_try;;
14867 esac
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869   (eval "$ac_compile") 2>conftest.er1
14870   ac_status=$?
14871   grep -v '^ *+' conftest.er1 >conftest.err
14872   rm -f conftest.er1
14873   cat conftest.err >&5
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } &&
14876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14877   { (case "(($ac_try" in
14878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879   *) ac_try_echo=$ac_try;;
14880 esac
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882   (eval "$ac_try") 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; } &&
14886          { ac_try='test -s conftest.$ac_objext'
14887   { (case "(($ac_try" in
14888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889   *) ac_try_echo=$ac_try;;
14890 esac
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892   (eval "$ac_try") 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); }; }; then
14896   ac_header_compiler=yes
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901         ac_header_compiler=no
14902 fi
14903
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14906 echo "${ECHO_T}$ac_header_compiler" >&6; }
14907
14908 # Is the header present?
14909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14911 cat >conftest.$ac_ext <<_ACEOF
14912 /* confdefs.h.  */
14913 _ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h.  */
14917 #include <$ac_header>
14918 _ACEOF
14919 if { (ac_try="$ac_cpp conftest.$ac_ext"
14920 case "(($ac_try" in
14921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922   *) ac_try_echo=$ac_try;;
14923 esac
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14926   ac_status=$?
14927   grep -v '^ *+' conftest.er1 >conftest.err
14928   rm -f conftest.er1
14929   cat conftest.err >&5
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); } >/dev/null; then
14932   if test -s conftest.err; then
14933     ac_cpp_err=$ac_c_preproc_warn_flag
14934     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14935   else
14936     ac_cpp_err=
14937   fi
14938 else
14939   ac_cpp_err=yes
14940 fi
14941 if test -z "$ac_cpp_err"; then
14942   ac_header_preproc=yes
14943 else
14944   echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14946
14947   ac_header_preproc=no
14948 fi
14949
14950 rm -f conftest.err conftest.$ac_ext
14951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14952 echo "${ECHO_T}$ac_header_preproc" >&6; }
14953
14954 # So?  What about this header?
14955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14956   yes:no: )
14957     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14961     ac_header_preproc=yes
14962     ;;
14963   no:yes:* )
14964     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14966     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14967 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14968     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14970     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14971 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14974     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14976     ( cat <<\_ASBOX
14977 ## ------------------------------------ ##
14978 ## Report this to http://llvm.org/bugs/ ##
14979 ## ------------------------------------ ##
14980 _ASBOX
14981      ) | sed "s/^/$as_me: WARNING:     /" >&2
14982     ;;
14983 esac
14984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14987   echo $ECHO_N "(cached) $ECHO_C" >&6
14988 else
14989   eval "$as_ac_Header=\$ac_header_preproc"
14990 fi
14991 ac_res=`eval echo '${'$as_ac_Header'}'`
14992                { echo "$as_me:$LINENO: result: $ac_res" >&5
14993 echo "${ECHO_T}$ac_res" >&6; }
14994
14995 fi
14996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14997   cat >>confdefs.h <<_ACEOF
14998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14999 _ACEOF
15000
15001 fi
15002
15003 done
15004
15005
15006
15007
15008
15009 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15010 do
15011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15016   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 fi
15018 ac_res=`eval echo '${'$as_ac_Header'}'`
15019                { echo "$as_me:$LINENO: result: $ac_res" >&5
15020 echo "${ECHO_T}$ac_res" >&6; }
15021 else
15022   # Is the header compilable?
15023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15025 cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h.  */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h.  */
15031 $ac_includes_default
15032 #include <$ac_header>
15033 _ACEOF
15034 rm -f conftest.$ac_objext
15035 if { (ac_try="$ac_compile"
15036 case "(($ac_try" in
15037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038   *) ac_try_echo=$ac_try;;
15039 esac
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041   (eval "$ac_compile") 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15049   { (case "(($ac_try" in
15050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051   *) ac_try_echo=$ac_try;;
15052 esac
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054   (eval "$ac_try") 2>&5
15055   ac_status=$?
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); }; } &&
15058          { ac_try='test -s conftest.$ac_objext'
15059   { (case "(($ac_try" in
15060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061   *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064   (eval "$ac_try") 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; }; then
15068   ac_header_compiler=yes
15069 else
15070   echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073         ac_header_compiler=no
15074 fi
15075
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15078 echo "${ECHO_T}$ac_header_compiler" >&6; }
15079
15080 # Is the header present?
15081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h.  */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h.  */
15089 #include <$ac_header>
15090 _ACEOF
15091 if { (ac_try="$ac_cpp conftest.$ac_ext"
15092 case "(($ac_try" in
15093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094   *) ac_try_echo=$ac_try;;
15095 esac
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15098   ac_status=$?
15099   grep -v '^ *+' conftest.er1 >conftest.err
15100   rm -f conftest.er1
15101   cat conftest.err >&5
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); } >/dev/null; then
15104   if test -s conftest.err; then
15105     ac_cpp_err=$ac_c_preproc_warn_flag
15106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15107   else
15108     ac_cpp_err=
15109   fi
15110 else
15111   ac_cpp_err=yes
15112 fi
15113 if test -z "$ac_cpp_err"; then
15114   ac_header_preproc=yes
15115 else
15116   echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15118
15119   ac_header_preproc=no
15120 fi
15121
15122 rm -f conftest.err conftest.$ac_ext
15123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15124 echo "${ECHO_T}$ac_header_preproc" >&6; }
15125
15126 # So?  What about this header?
15127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15128   yes:no: )
15129     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15133     ac_header_preproc=yes
15134     ;;
15135   no:yes:* )
15136     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15138     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15139 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15140     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15142     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15143 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15146     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15148     ( cat <<\_ASBOX
15149 ## ------------------------------------ ##
15150 ## Report this to http://llvm.org/bugs/ ##
15151 ## ------------------------------------ ##
15152 _ASBOX
15153      ) | sed "s/^/$as_me: WARNING:     /" >&2
15154     ;;
15155 esac
15156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15159   echo $ECHO_N "(cached) $ECHO_C" >&6
15160 else
15161   eval "$as_ac_Header=\$ac_header_preproc"
15162 fi
15163 ac_res=`eval echo '${'$as_ac_Header'}'`
15164                { echo "$as_me:$LINENO: result: $ac_res" >&5
15165 echo "${ECHO_T}$ac_res" >&6; }
15166
15167 fi
15168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15169   cat >>confdefs.h <<_ACEOF
15170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15171 _ACEOF
15172
15173 fi
15174
15175 done
15176
15177
15178 for ac_header in valgrind/valgrind.h
15179 do
15180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15182   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 fi
15187 ac_res=`eval echo '${'$as_ac_Header'}'`
15188                { echo "$as_me:$LINENO: result: $ac_res" >&5
15189 echo "${ECHO_T}$ac_res" >&6; }
15190 else
15191   # Is the header compilable?
15192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 $ac_includes_default
15201 #include <$ac_header>
15202 _ACEOF
15203 rm -f conftest.$ac_objext
15204 if { (ac_try="$ac_compile"
15205 case "(($ac_try" in
15206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207   *) ac_try_echo=$ac_try;;
15208 esac
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210   (eval "$ac_compile") 2>conftest.er1
15211   ac_status=$?
15212   grep -v '^ *+' conftest.er1 >conftest.err
15213   rm -f conftest.er1
15214   cat conftest.err >&5
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); } &&
15217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15218   { (case "(($ac_try" in
15219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220   *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223   (eval "$ac_try") 2>&5
15224   ac_status=$?
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); }; } &&
15227          { ac_try='test -s conftest.$ac_objext'
15228   { (case "(($ac_try" in
15229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230   *) ac_try_echo=$ac_try;;
15231 esac
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233   (eval "$ac_try") 2>&5
15234   ac_status=$?
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); }; }; then
15237   ac_header_compiler=yes
15238 else
15239   echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15241
15242         ac_header_compiler=no
15243 fi
15244
15245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15247 echo "${ECHO_T}$ac_header_compiler" >&6; }
15248
15249 # Is the header present?
15250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15252 cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h.  */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h.  */
15258 #include <$ac_header>
15259 _ACEOF
15260 if { (ac_try="$ac_cpp conftest.$ac_ext"
15261 case "(($ac_try" in
15262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263   *) ac_try_echo=$ac_try;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15267   ac_status=$?
15268   grep -v '^ *+' conftest.er1 >conftest.err
15269   rm -f conftest.er1
15270   cat conftest.err >&5
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); } >/dev/null; then
15273   if test -s conftest.err; then
15274     ac_cpp_err=$ac_c_preproc_warn_flag
15275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15276   else
15277     ac_cpp_err=
15278   fi
15279 else
15280   ac_cpp_err=yes
15281 fi
15282 if test -z "$ac_cpp_err"; then
15283   ac_header_preproc=yes
15284 else
15285   echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15287
15288   ac_header_preproc=no
15289 fi
15290
15291 rm -f conftest.err conftest.$ac_ext
15292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15293 echo "${ECHO_T}$ac_header_preproc" >&6; }
15294
15295 # So?  What about this header?
15296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15297   yes:no: )
15298     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15302     ac_header_preproc=yes
15303     ;;
15304   no:yes:* )
15305     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15307     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15308 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15309     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15311     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15312 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15315     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15317     ( cat <<\_ASBOX
15318 ## ------------------------------------ ##
15319 ## Report this to http://llvm.org/bugs/ ##
15320 ## ------------------------------------ ##
15321 _ASBOX
15322      ) | sed "s/^/$as_me: WARNING:     /" >&2
15323     ;;
15324 esac
15325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330   eval "$as_ac_Header=\$ac_header_preproc"
15331 fi
15332 ac_res=`eval echo '${'$as_ac_Header'}'`
15333                { echo "$as_me:$LINENO: result: $ac_res" >&5
15334 echo "${ECHO_T}$ac_res" >&6; }
15335
15336 fi
15337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15338   cat >>confdefs.h <<_ACEOF
15339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15340 _ACEOF
15341
15342 fi
15343
15344 done
15345
15346
15347 for ac_header in fenv.h
15348 do
15349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354   echo $ECHO_N "(cached) $ECHO_C" >&6
15355 fi
15356 ac_res=`eval echo '${'$as_ac_Header'}'`
15357                { echo "$as_me:$LINENO: result: $ac_res" >&5
15358 echo "${ECHO_T}$ac_res" >&6; }
15359 else
15360   # Is the header compilable?
15361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h.  */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h.  */
15369 $ac_includes_default
15370 #include <$ac_header>
15371 _ACEOF
15372 rm -f conftest.$ac_objext
15373 if { (ac_try="$ac_compile"
15374 case "(($ac_try" in
15375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376   *) ac_try_echo=$ac_try;;
15377 esac
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379   (eval "$ac_compile") 2>conftest.er1
15380   ac_status=$?
15381   grep -v '^ *+' conftest.er1 >conftest.err
15382   rm -f conftest.er1
15383   cat conftest.err >&5
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); } &&
15386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15387   { (case "(($ac_try" in
15388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389   *) ac_try_echo=$ac_try;;
15390 esac
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392   (eval "$ac_try") 2>&5
15393   ac_status=$?
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); }; } &&
15396          { ac_try='test -s conftest.$ac_objext'
15397   { (case "(($ac_try" in
15398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399   *) ac_try_echo=$ac_try;;
15400 esac
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402   (eval "$ac_try") 2>&5
15403   ac_status=$?
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); }; }; then
15406   ac_header_compiler=yes
15407 else
15408   echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15410
15411         ac_header_compiler=no
15412 fi
15413
15414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15416 echo "${ECHO_T}$ac_header_compiler" >&6; }
15417
15418 # Is the header present?
15419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15421 cat >conftest.$ac_ext <<_ACEOF
15422 /* confdefs.h.  */
15423 _ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h.  */
15427 #include <$ac_header>
15428 _ACEOF
15429 if { (ac_try="$ac_cpp conftest.$ac_ext"
15430 case "(($ac_try" in
15431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432   *) ac_try_echo=$ac_try;;
15433 esac
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15436   ac_status=$?
15437   grep -v '^ *+' conftest.er1 >conftest.err
15438   rm -f conftest.er1
15439   cat conftest.err >&5
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); } >/dev/null; then
15442   if test -s conftest.err; then
15443     ac_cpp_err=$ac_c_preproc_warn_flag
15444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15445   else
15446     ac_cpp_err=
15447   fi
15448 else
15449   ac_cpp_err=yes
15450 fi
15451 if test -z "$ac_cpp_err"; then
15452   ac_header_preproc=yes
15453 else
15454   echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15456
15457   ac_header_preproc=no
15458 fi
15459
15460 rm -f conftest.err conftest.$ac_ext
15461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15462 echo "${ECHO_T}$ac_header_preproc" >&6; }
15463
15464 # So?  What about this header?
15465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15466   yes:no: )
15467     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15471     ac_header_preproc=yes
15472     ;;
15473   no:yes:* )
15474     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15476     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15477 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15478     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15480     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15481 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15484     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15486     ( cat <<\_ASBOX
15487 ## ------------------------------------ ##
15488 ## Report this to http://llvm.org/bugs/ ##
15489 ## ------------------------------------ ##
15490 _ASBOX
15491      ) | sed "s/^/$as_me: WARNING:     /" >&2
15492     ;;
15493 esac
15494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15497   echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15499   eval "$as_ac_Header=\$ac_header_preproc"
15500 fi
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502                { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15504
15505 fi
15506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15507   cat >>confdefs.h <<_ACEOF
15508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15509 _ACEOF
15510
15511 fi
15512
15513 done
15514
15515 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15516
15517 for ac_header in pthread.h
15518 do
15519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15521   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524   echo $ECHO_N "(cached) $ECHO_C" >&6
15525 fi
15526 ac_res=`eval echo '${'$as_ac_Header'}'`
15527                { echo "$as_me:$LINENO: result: $ac_res" >&5
15528 echo "${ECHO_T}$ac_res" >&6; }
15529 else
15530   # Is the header compilable?
15531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h.  */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h.  */
15539 $ac_includes_default
15540 #include <$ac_header>
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (ac_try="$ac_compile"
15544 case "(($ac_try" in
15545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546   *) ac_try_echo=$ac_try;;
15547 esac
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549   (eval "$ac_compile") 2>conftest.er1
15550   ac_status=$?
15551   grep -v '^ *+' conftest.er1 >conftest.err
15552   rm -f conftest.er1
15553   cat conftest.err >&5
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); } &&
15556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15557   { (case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_try") 2>&5
15563   ac_status=$?
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); }; } &&
15566          { ac_try='test -s conftest.$ac_objext'
15567   { (case "(($ac_try" in
15568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569   *) ac_try_echo=$ac_try;;
15570 esac
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572   (eval "$ac_try") 2>&5
15573   ac_status=$?
15574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575   (exit $ac_status); }; }; then
15576   ac_header_compiler=yes
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581         ac_header_compiler=no
15582 fi
15583
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15586 echo "${ECHO_T}$ac_header_compiler" >&6; }
15587
15588 # Is the header present?
15589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15591 cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h.  */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h.  */
15597 #include <$ac_header>
15598 _ACEOF
15599 if { (ac_try="$ac_cpp conftest.$ac_ext"
15600 case "(($ac_try" in
15601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602   *) ac_try_echo=$ac_try;;
15603 esac
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15606   ac_status=$?
15607   grep -v '^ *+' conftest.er1 >conftest.err
15608   rm -f conftest.er1
15609   cat conftest.err >&5
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); } >/dev/null; then
15612   if test -s conftest.err; then
15613     ac_cpp_err=$ac_c_preproc_warn_flag
15614     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15615   else
15616     ac_cpp_err=
15617   fi
15618 else
15619   ac_cpp_err=yes
15620 fi
15621 if test -z "$ac_cpp_err"; then
15622   ac_header_preproc=yes
15623 else
15624   echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626
15627   ac_header_preproc=no
15628 fi
15629
15630 rm -f conftest.err conftest.$ac_ext
15631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15632 echo "${ECHO_T}$ac_header_preproc" >&6; }
15633
15634 # So?  What about this header?
15635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15636   yes:no: )
15637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15641     ac_header_preproc=yes
15642     ;;
15643   no:yes:* )
15644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15656     ( cat <<\_ASBOX
15657 ## ------------------------------------ ##
15658 ## Report this to http://llvm.org/bugs/ ##
15659 ## ------------------------------------ ##
15660 _ASBOX
15661      ) | sed "s/^/$as_me: WARNING:     /" >&2
15662     ;;
15663 esac
15664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15667   echo $ECHO_N "(cached) $ECHO_C" >&6
15668 else
15669   eval "$as_ac_Header=\$ac_header_preproc"
15670 fi
15671 ac_res=`eval echo '${'$as_ac_Header'}'`
15672                { echo "$as_me:$LINENO: result: $ac_res" >&5
15673 echo "${ECHO_T}$ac_res" >&6; }
15674
15675 fi
15676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15677   cat >>confdefs.h <<_ACEOF
15678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15679 _ACEOF
15680  HAVE_PTHREAD=1
15681
15682 else
15683   HAVE_PTHREAD=0
15684
15685 fi
15686
15687 done
15688
15689 else
15690   HAVE_PTHREAD=0
15691
15692 fi
15693
15694 if test "$llvm_cv_enable_libffi" = "yes" ; then
15695
15696
15697 for ac_header in ffi.h ffi/ffi.h
15698 do
15699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704   echo $ECHO_N "(cached) $ECHO_C" >&6
15705 fi
15706 ac_res=`eval echo '${'$as_ac_Header'}'`
15707                { echo "$as_me:$LINENO: result: $ac_res" >&5
15708 echo "${ECHO_T}$ac_res" >&6; }
15709 else
15710   # Is the header compilable?
15711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h.  */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h.  */
15719 $ac_includes_default
15720 #include <$ac_header>
15721 _ACEOF
15722 rm -f conftest.$ac_objext
15723 if { (ac_try="$ac_compile"
15724 case "(($ac_try" in
15725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726   *) ac_try_echo=$ac_try;;
15727 esac
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729   (eval "$ac_compile") 2>conftest.er1
15730   ac_status=$?
15731   grep -v '^ *+' conftest.er1 >conftest.err
15732   rm -f conftest.er1
15733   cat conftest.err >&5
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); } &&
15736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15737   { (case "(($ac_try" in
15738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739   *) ac_try_echo=$ac_try;;
15740 esac
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742   (eval "$ac_try") 2>&5
15743   ac_status=$?
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); }; } &&
15746          { ac_try='test -s conftest.$ac_objext'
15747   { (case "(($ac_try" in
15748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749   *) ac_try_echo=$ac_try;;
15750 esac
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752   (eval "$ac_try") 2>&5
15753   ac_status=$?
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); }; }; then
15756   ac_header_compiler=yes
15757 else
15758   echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15760
15761         ac_header_compiler=no
15762 fi
15763
15764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15766 echo "${ECHO_T}$ac_header_compiler" >&6; }
15767
15768 # Is the header present?
15769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15771 cat >conftest.$ac_ext <<_ACEOF
15772 /* confdefs.h.  */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h.  */
15777 #include <$ac_header>
15778 _ACEOF
15779 if { (ac_try="$ac_cpp conftest.$ac_ext"
15780 case "(($ac_try" in
15781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782   *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15786   ac_status=$?
15787   grep -v '^ *+' conftest.er1 >conftest.err
15788   rm -f conftest.er1
15789   cat conftest.err >&5
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } >/dev/null; then
15792   if test -s conftest.err; then
15793     ac_cpp_err=$ac_c_preproc_warn_flag
15794     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15795   else
15796     ac_cpp_err=
15797   fi
15798 else
15799   ac_cpp_err=yes
15800 fi
15801 if test -z "$ac_cpp_err"; then
15802   ac_header_preproc=yes
15803 else
15804   echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807   ac_header_preproc=no
15808 fi
15809
15810 rm -f conftest.err conftest.$ac_ext
15811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15812 echo "${ECHO_T}$ac_header_preproc" >&6; }
15813
15814 # So?  What about this header?
15815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15816   yes:no: )
15817     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15821     ac_header_preproc=yes
15822     ;;
15823   no:yes:* )
15824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15826     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15827 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15828     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15830     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15831 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15834     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15836     ( cat <<\_ASBOX
15837 ## ------------------------------------ ##
15838 ## Report this to http://llvm.org/bugs/ ##
15839 ## ------------------------------------ ##
15840 _ASBOX
15841      ) | sed "s/^/$as_me: WARNING:     /" >&2
15842     ;;
15843 esac
15844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847   echo $ECHO_N "(cached) $ECHO_C" >&6
15848 else
15849   eval "$as_ac_Header=\$ac_header_preproc"
15850 fi
15851 ac_res=`eval echo '${'$as_ac_Header'}'`
15852                { echo "$as_me:$LINENO: result: $ac_res" >&5
15853 echo "${ECHO_T}$ac_res" >&6; }
15854
15855 fi
15856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15857   cat >>confdefs.h <<_ACEOF
15858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15859 _ACEOF
15860
15861 fi
15862
15863 done
15864
15865 fi
15866
15867
15868 for ac_header in CrashReporterClient.h
15869 do
15870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15872   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15875   echo $ECHO_N "(cached) $ECHO_C" >&6
15876 fi
15877 ac_res=`eval echo '${'$as_ac_Header'}'`
15878                { echo "$as_me:$LINENO: result: $ac_res" >&5
15879 echo "${ECHO_T}$ac_res" >&6; }
15880 else
15881   # Is the header compilable?
15882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15884 cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h.  */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h.  */
15890 $ac_includes_default
15891 #include <$ac_header>
15892 _ACEOF
15893 rm -f conftest.$ac_objext
15894 if { (ac_try="$ac_compile"
15895 case "(($ac_try" in
15896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897   *) ac_try_echo=$ac_try;;
15898 esac
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900   (eval "$ac_compile") 2>conftest.er1
15901   ac_status=$?
15902   grep -v '^ *+' conftest.er1 >conftest.err
15903   rm -f conftest.er1
15904   cat conftest.err >&5
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); } &&
15907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15908   { (case "(($ac_try" in
15909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910   *) ac_try_echo=$ac_try;;
15911 esac
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913   (eval "$ac_try") 2>&5
15914   ac_status=$?
15915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   (exit $ac_status); }; } &&
15917          { ac_try='test -s conftest.$ac_objext'
15918   { (case "(($ac_try" in
15919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920   *) ac_try_echo=$ac_try;;
15921 esac
15922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923   (eval "$ac_try") 2>&5
15924   ac_status=$?
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); }; }; then
15927   ac_header_compiler=yes
15928 else
15929   echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15931
15932         ac_header_compiler=no
15933 fi
15934
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15937 echo "${ECHO_T}$ac_header_compiler" >&6; }
15938
15939 # Is the header present?
15940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15942 cat >conftest.$ac_ext <<_ACEOF
15943 /* confdefs.h.  */
15944 _ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h.  */
15948 #include <$ac_header>
15949 _ACEOF
15950 if { (ac_try="$ac_cpp conftest.$ac_ext"
15951 case "(($ac_try" in
15952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953   *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15957   ac_status=$?
15958   grep -v '^ *+' conftest.er1 >conftest.err
15959   rm -f conftest.er1
15960   cat conftest.err >&5
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); } >/dev/null; then
15963   if test -s conftest.err; then
15964     ac_cpp_err=$ac_c_preproc_warn_flag
15965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15966   else
15967     ac_cpp_err=
15968   fi
15969 else
15970   ac_cpp_err=yes
15971 fi
15972 if test -z "$ac_cpp_err"; then
15973   ac_header_preproc=yes
15974 else
15975   echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978   ac_header_preproc=no
15979 fi
15980
15981 rm -f conftest.err conftest.$ac_ext
15982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15983 echo "${ECHO_T}$ac_header_preproc" >&6; }
15984
15985 # So?  What about this header?
15986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15987   yes:no: )
15988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15992     ac_header_preproc=yes
15993     ;;
15994   no:yes:* )
15995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16007     ( cat <<\_ASBOX
16008 ## ------------------------------------ ##
16009 ## Report this to http://llvm.org/bugs/ ##
16010 ## ------------------------------------ ##
16011 _ASBOX
16012      ) | sed "s/^/$as_me: WARNING:     /" >&2
16013     ;;
16014 esac
16015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16018   echo $ECHO_N "(cached) $ECHO_C" >&6
16019 else
16020   eval "$as_ac_Header=\$ac_header_preproc"
16021 fi
16022 ac_res=`eval echo '${'$as_ac_Header'}'`
16023                { echo "$as_me:$LINENO: result: $ac_res" >&5
16024 echo "${ECHO_T}$ac_res" >&6; }
16025
16026 fi
16027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16028   cat >>confdefs.h <<_ACEOF
16029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16030 _ACEOF
16031
16032 fi
16033
16034 done
16035
16036
16037 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16038 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h.  */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h.  */
16045 extern const char *__crashreporter_info__;
16046       int main() {
16047         __crashreporter_info__ = "test";
16048         return 0;
16049       }
16050
16051 _ACEOF
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (ac_try="$ac_link"
16054 case "(($ac_try" in
16055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056   *) ac_try_echo=$ac_try;;
16057 esac
16058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059   (eval "$ac_link") 2>conftest.er1
16060   ac_status=$?
16061   grep -v '^ *+' conftest.er1 >conftest.err
16062   rm -f conftest.er1
16063   cat conftest.err >&5
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); } &&
16066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16067   { (case "(($ac_try" in
16068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069   *) ac_try_echo=$ac_try;;
16070 esac
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072   (eval "$ac_try") 2>&5
16073   ac_status=$?
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); }; } &&
16076          { ac_try='test -s conftest$ac_exeext'
16077   { (case "(($ac_try" in
16078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079   *) ac_try_echo=$ac_try;;
16080 esac
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082   (eval "$ac_try") 2>&5
16083   ac_status=$?
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); }; }; then
16086   { echo "$as_me:$LINENO: result: yes" >&5
16087 echo "${ECHO_T}yes" >&6; }
16088
16089 cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_CRASHREPORTER_INFO 1
16091 _ACEOF
16092
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097         { echo "$as_me:$LINENO: result: no" >&5
16098 echo "${ECHO_T}no" >&6; }
16099
16100 cat >>confdefs.h <<\_ACEOF
16101 #define HAVE_CRASHREPORTER_INFO 0
16102 _ACEOF
16103
16104 fi
16105
16106 rm -f core conftest.err conftest.$ac_objext \
16107       conftest$ac_exeext conftest.$ac_ext
16108
16109
16110
16111
16112   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16113 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16114 if test "${ac_cv_huge_val_sanity+set}" = set; then
16115   echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117
16118     ac_ext=cpp
16119 ac_cpp='$CXXCPP $CPPFLAGS'
16120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16123
16124     ac_save_CXXFLAGS=$CXXFLAGS
16125     CXXFLAGS=-pedantic
16126     if test "$cross_compiling" = yes; then
16127   ac_cv_huge_val_sanity=yes
16128 else
16129   cat >conftest.$ac_ext <<_ACEOF
16130 /* confdefs.h.  */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h.  */
16135 #include <math.h>
16136 int
16137 main ()
16138 {
16139 double x = HUGE_VAL; return x != x;
16140   ;
16141   return 0;
16142 }
16143 _ACEOF
16144 rm -f conftest$ac_exeext
16145 if { (ac_try="$ac_link"
16146 case "(($ac_try" in
16147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148   *) ac_try_echo=$ac_try;;
16149 esac
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151   (eval "$ac_link") 2>&5
16152   ac_status=$?
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16155   { (case "(($ac_try" in
16156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157   *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160   (eval "$ac_try") 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); }; }; then
16164   ac_cv_huge_val_sanity=yes
16165 else
16166   echo "$as_me: program exited with status $ac_status" >&5
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16169
16170 ( exit $ac_status )
16171 ac_cv_huge_val_sanity=no
16172 fi
16173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16174 fi
16175
16176
16177     CXXFLAGS=$ac_save_CXXFLAGS
16178     ac_ext=c
16179 ac_cpp='$CPP $CPPFLAGS'
16180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16183
16184
16185 fi
16186 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16187 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16188   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16189
16190
16191 { echo "$as_me:$LINENO: checking for pid_t" >&5
16192 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16193 if test "${ac_cv_type_pid_t+set}" = set; then
16194   echo $ECHO_N "(cached) $ECHO_C" >&6
16195 else
16196   cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h.  */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h.  */
16202 $ac_includes_default
16203 typedef pid_t ac__type_new_;
16204 int
16205 main ()
16206 {
16207 if ((ac__type_new_ *) 0)
16208   return 0;
16209 if (sizeof (ac__type_new_))
16210   return 0;
16211   ;
16212   return 0;
16213 }
16214 _ACEOF
16215 rm -f conftest.$ac_objext
16216 if { (ac_try="$ac_compile"
16217 case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222   (eval "$ac_compile") 2>conftest.er1
16223   ac_status=$?
16224   grep -v '^ *+' conftest.er1 >conftest.err
16225   rm -f conftest.er1
16226   cat conftest.err >&5
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); } &&
16229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16230   { (case "(($ac_try" in
16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232   *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235   (eval "$ac_try") 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; } &&
16239          { ac_try='test -s conftest.$ac_objext'
16240   { (case "(($ac_try" in
16241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242   *) ac_try_echo=$ac_try;;
16243 esac
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245   (eval "$ac_try") 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); }; }; then
16249   ac_cv_type_pid_t=yes
16250 else
16251   echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16253
16254         ac_cv_type_pid_t=no
16255 fi
16256
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 fi
16259 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16260 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16261 if test $ac_cv_type_pid_t = yes; then
16262   :
16263 else
16264
16265 cat >>confdefs.h <<_ACEOF
16266 #define pid_t int
16267 _ACEOF
16268
16269 fi
16270
16271 { echo "$as_me:$LINENO: checking for size_t" >&5
16272 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16273 if test "${ac_cv_type_size_t+set}" = set; then
16274   echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276   cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h.  */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h.  */
16282 $ac_includes_default
16283 typedef size_t ac__type_new_;
16284 int
16285 main ()
16286 {
16287 if ((ac__type_new_ *) 0)
16288   return 0;
16289 if (sizeof (ac__type_new_))
16290   return 0;
16291   ;
16292   return 0;
16293 }
16294 _ACEOF
16295 rm -f conftest.$ac_objext
16296 if { (ac_try="$ac_compile"
16297 case "(($ac_try" in
16298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299   *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302   (eval "$ac_compile") 2>conftest.er1
16303   ac_status=$?
16304   grep -v '^ *+' conftest.er1 >conftest.err
16305   rm -f conftest.er1
16306   cat conftest.err >&5
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); } &&
16309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310   { (case "(($ac_try" in
16311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312   *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315   (eval "$ac_try") 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }; } &&
16319          { ac_try='test -s conftest.$ac_objext'
16320   { (case "(($ac_try" in
16321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322   *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325   (eval "$ac_try") 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; }; then
16329   ac_cv_type_size_t=yes
16330 else
16331   echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334         ac_cv_type_size_t=no
16335 fi
16336
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338 fi
16339 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16340 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16341 if test $ac_cv_type_size_t = yes; then
16342   :
16343 else
16344
16345 cat >>confdefs.h <<_ACEOF
16346 #define size_t unsigned int
16347 _ACEOF
16348
16349 fi
16350
16351
16352 cat >>confdefs.h <<_ACEOF
16353 #define RETSIGTYPE void
16354 _ACEOF
16355
16356 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16357 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16358 if test "${ac_cv_struct_tm+set}" = set; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h.  */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h.  */
16367 #include <sys/types.h>
16368 #include <time.h>
16369
16370 int
16371 main ()
16372 {
16373 struct tm *tp; tp->tm_sec;
16374   ;
16375   return 0;
16376 }
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382   *) ac_try_echo=$ac_try;;
16383 esac
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385   (eval "$ac_compile") 2>conftest.er1
16386   ac_status=$?
16387   grep -v '^ *+' conftest.er1 >conftest.err
16388   rm -f conftest.er1
16389   cat conftest.err >&5
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16393   { (case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_try") 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; } &&
16402          { ac_try='test -s conftest.$ac_objext'
16403   { (case "(($ac_try" in
16404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405   *) ac_try_echo=$ac_try;;
16406 esac
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408   (eval "$ac_try") 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }; }; then
16412   ac_cv_struct_tm=time.h
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417         ac_cv_struct_tm=sys/time.h
16418 fi
16419
16420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 fi
16422 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16423 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16424 if test $ac_cv_struct_tm = sys/time.h; then
16425
16426 cat >>confdefs.h <<\_ACEOF
16427 #define TM_IN_SYS_TIME 1
16428 _ACEOF
16429
16430 fi
16431
16432 { echo "$as_me:$LINENO: checking for int64_t" >&5
16433 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16434 if test "${ac_cv_type_int64_t+set}" = set; then
16435   echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437   cat >conftest.$ac_ext <<_ACEOF
16438 /* confdefs.h.  */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h.  */
16443 $ac_includes_default
16444 typedef int64_t ac__type_new_;
16445 int
16446 main ()
16447 {
16448 if ((ac__type_new_ *) 0)
16449   return 0;
16450 if (sizeof (ac__type_new_))
16451   return 0;
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 rm -f conftest.$ac_objext
16457 if { (ac_try="$ac_compile"
16458 case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_compile") 2>conftest.er1
16464   ac_status=$?
16465   grep -v '^ *+' conftest.er1 >conftest.err
16466   rm -f conftest.er1
16467   cat conftest.err >&5
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } &&
16470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471   { (case "(($ac_try" in
16472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473   *) ac_try_echo=$ac_try;;
16474 esac
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476   (eval "$ac_try") 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; } &&
16480          { ac_try='test -s conftest.$ac_objext'
16481   { (case "(($ac_try" in
16482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483   *) ac_try_echo=$ac_try;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486   (eval "$ac_try") 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; }; then
16490   ac_cv_type_int64_t=yes
16491 else
16492   echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16494
16495         ac_cv_type_int64_t=no
16496 fi
16497
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499 fi
16500 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16501 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16502 if test $ac_cv_type_int64_t = yes; then
16503
16504 cat >>confdefs.h <<_ACEOF
16505 #define HAVE_INT64_T 1
16506 _ACEOF
16507
16508
16509 else
16510   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16511 echo "$as_me: error: Type int64_t required but not found" >&2;}
16512    { (exit 1); exit 1; }; }
16513 fi
16514
16515 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16516 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16517 if test "${ac_cv_type_uint64_t+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h.  */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h.  */
16526 $ac_includes_default
16527 typedef uint64_t ac__type_new_;
16528 int
16529 main ()
16530 {
16531 if ((ac__type_new_ *) 0)
16532   return 0;
16533 if (sizeof (ac__type_new_))
16534   return 0;
16535   ;
16536   return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_compile") 2>conftest.er1
16547   ac_status=$?
16548   grep -v '^ *+' conftest.er1 >conftest.err
16549   rm -f conftest.er1
16550   cat conftest.err >&5
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } &&
16553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16554   { (case "(($ac_try" in
16555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556   *) ac_try_echo=$ac_try;;
16557 esac
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559   (eval "$ac_try") 2>&5
16560   ac_status=$?
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); }; } &&
16563          { ac_try='test -s conftest.$ac_objext'
16564   { (case "(($ac_try" in
16565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566   *) ac_try_echo=$ac_try;;
16567 esac
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569   (eval "$ac_try") 2>&5
16570   ac_status=$?
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); }; }; then
16573   ac_cv_type_uint64_t=yes
16574 else
16575   echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578         ac_cv_type_uint64_t=no
16579 fi
16580
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 fi
16583 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16584 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16585 if test $ac_cv_type_uint64_t = yes; then
16586
16587 cat >>confdefs.h <<_ACEOF
16588 #define HAVE_UINT64_T 1
16589 _ACEOF
16590
16591
16592 else
16593   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16594 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16595 if test "${ac_cv_type_u_int64_t+set}" = set; then
16596   echo $ECHO_N "(cached) $ECHO_C" >&6
16597 else
16598   cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h.  */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h.  */
16604 $ac_includes_default
16605 typedef u_int64_t ac__type_new_;
16606 int
16607 main ()
16608 {
16609 if ((ac__type_new_ *) 0)
16610   return 0;
16611 if (sizeof (ac__type_new_))
16612   return 0;
16613   ;
16614   return 0;
16615 }
16616 _ACEOF
16617 rm -f conftest.$ac_objext
16618 if { (ac_try="$ac_compile"
16619 case "(($ac_try" in
16620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621   *) ac_try_echo=$ac_try;;
16622 esac
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624   (eval "$ac_compile") 2>conftest.er1
16625   ac_status=$?
16626   grep -v '^ *+' conftest.er1 >conftest.err
16627   rm -f conftest.er1
16628   cat conftest.err >&5
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); } &&
16631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632   { (case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_try") 2>&5
16638   ac_status=$?
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); }; } &&
16641          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16651   ac_cv_type_u_int64_t=yes
16652 else
16653   echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656         ac_cv_type_u_int64_t=no
16657 fi
16658
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 fi
16661 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16662 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16663 if test $ac_cv_type_u_int64_t = yes; then
16664
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_U_INT64_T 1
16667 _ACEOF
16668
16669
16670 else
16671   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16672 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16673    { (exit 1); exit 1; }; }
16674 fi
16675
16676 fi
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16688 do
16689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16693   echo $ECHO_N "(cached) $ECHO_C" >&6
16694 else
16695   cat >conftest.$ac_ext <<_ACEOF
16696 /* confdefs.h.  */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h.  */
16701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16703 #define $ac_func innocuous_$ac_func
16704
16705 /* System header to define __stub macros and hopefully few prototypes,
16706     which can conflict with char $ac_func (); below.
16707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708     <limits.h> exists even on freestanding compilers.  */
16709
16710 #ifdef __STDC__
16711 # include <limits.h>
16712 #else
16713 # include <assert.h>
16714 #endif
16715
16716 #undef $ac_func
16717
16718 /* Override any GCC internal prototype to avoid an error.
16719    Use char because int might match the return type of a GCC
16720    builtin and then its argument prototype would still apply.  */
16721 #ifdef __cplusplus
16722 extern "C"
16723 #endif
16724 char $ac_func ();
16725 /* The GNU C library defines this for functions which it implements
16726     to always fail with ENOSYS.  Some functions are actually named
16727     something starting with __ and the normal name is an alias.  */
16728 #if defined __stub_$ac_func || defined __stub___$ac_func
16729 choke me
16730 #endif
16731
16732 int
16733 main ()
16734 {
16735 return $ac_func ();
16736   ;
16737   return 0;
16738 }
16739 _ACEOF
16740 rm -f conftest.$ac_objext conftest$ac_exeext
16741 if { (ac_try="$ac_link"
16742 case "(($ac_try" in
16743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744   *) ac_try_echo=$ac_try;;
16745 esac
16746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747   (eval "$ac_link") 2>conftest.er1
16748   ac_status=$?
16749   grep -v '^ *+' conftest.er1 >conftest.err
16750   rm -f conftest.er1
16751   cat conftest.err >&5
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); } &&
16754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755   { (case "(($ac_try" in
16756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757   *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760   (eval "$ac_try") 2>&5
16761   ac_status=$?
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); }; } &&
16764          { ac_try='test -s conftest$ac_exeext'
16765   { (case "(($ac_try" in
16766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767   *) ac_try_echo=$ac_try;;
16768 esac
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770   (eval "$ac_try") 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; }; then
16774   eval "$as_ac_var=yes"
16775 else
16776   echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16778
16779         eval "$as_ac_var=no"
16780 fi
16781
16782 rm -f core conftest.err conftest.$ac_objext \
16783       conftest$ac_exeext conftest.$ac_ext
16784 fi
16785 ac_res=`eval echo '${'$as_ac_var'}'`
16786                { echo "$as_me:$LINENO: result: $ac_res" >&5
16787 echo "${ECHO_T}$ac_res" >&6; }
16788 if test `eval echo '${'$as_ac_var'}'` = yes; then
16789   cat >>confdefs.h <<_ACEOF
16790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16791 _ACEOF
16792
16793 fi
16794 done
16795
16796
16797
16798
16799
16800 for ac_func in powf fmodf strtof round
16801 do
16802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16803 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16806   echo $ECHO_N "(cached) $ECHO_C" >&6
16807 else
16808   cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16816 #define $ac_func innocuous_$ac_func
16817
16818 /* System header to define __stub macros and hopefully few prototypes,
16819     which can conflict with char $ac_func (); below.
16820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16821     <limits.h> exists even on freestanding compilers.  */
16822
16823 #ifdef __STDC__
16824 # include <limits.h>
16825 #else
16826 # include <assert.h>
16827 #endif
16828
16829 #undef $ac_func
16830
16831 /* Override any GCC internal prototype to avoid an error.
16832    Use char because int might match the return type of a GCC
16833    builtin and then its argument prototype would still apply.  */
16834 #ifdef __cplusplus
16835 extern "C"
16836 #endif
16837 char $ac_func ();
16838 /* The GNU C library defines this for functions which it implements
16839     to always fail with ENOSYS.  Some functions are actually named
16840     something starting with __ and the normal name is an alias.  */
16841 #if defined __stub_$ac_func || defined __stub___$ac_func
16842 choke me
16843 #endif
16844
16845 int
16846 main ()
16847 {
16848 return $ac_func ();
16849   ;
16850   return 0;
16851 }
16852 _ACEOF
16853 rm -f conftest.$ac_objext conftest$ac_exeext
16854 if { (ac_try="$ac_link"
16855 case "(($ac_try" in
16856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857   *) ac_try_echo=$ac_try;;
16858 esac
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860   (eval "$ac_link") 2>conftest.er1
16861   ac_status=$?
16862   grep -v '^ *+' conftest.er1 >conftest.err
16863   rm -f conftest.er1
16864   cat conftest.err >&5
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); } &&
16867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; } &&
16877          { ac_try='test -s conftest$ac_exeext'
16878   { (case "(($ac_try" in
16879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880   *) ac_try_echo=$ac_try;;
16881 esac
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883   (eval "$ac_try") 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); }; }; then
16887   eval "$as_ac_var=yes"
16888 else
16889   echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16891
16892         eval "$as_ac_var=no"
16893 fi
16894
16895 rm -f core conftest.err conftest.$ac_objext \
16896       conftest$ac_exeext conftest.$ac_ext
16897 fi
16898 ac_res=`eval echo '${'$as_ac_var'}'`
16899                { echo "$as_me:$LINENO: result: $ac_res" >&5
16900 echo "${ECHO_T}$ac_res" >&6; }
16901 if test `eval echo '${'$as_ac_var'}'` = yes; then
16902   cat >>confdefs.h <<_ACEOF
16903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16904 _ACEOF
16905
16906 fi
16907 done
16908
16909
16910
16911
16912
16913
16914 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16915 do
16916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16920   echo $ECHO_N "(cached) $ECHO_C" >&6
16921 else
16922   cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h.  */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h.  */
16928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16930 #define $ac_func innocuous_$ac_func
16931
16932 /* System header to define __stub macros and hopefully few prototypes,
16933     which can conflict with char $ac_func (); below.
16934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16935     <limits.h> exists even on freestanding compilers.  */
16936
16937 #ifdef __STDC__
16938 # include <limits.h>
16939 #else
16940 # include <assert.h>
16941 #endif
16942
16943 #undef $ac_func
16944
16945 /* Override any GCC internal prototype to avoid an error.
16946    Use char because int might match the return type of a GCC
16947    builtin and then its argument prototype would still apply.  */
16948 #ifdef __cplusplus
16949 extern "C"
16950 #endif
16951 char $ac_func ();
16952 /* The GNU C library defines this for functions which it implements
16953     to always fail with ENOSYS.  Some functions are actually named
16954     something starting with __ and the normal name is an alias.  */
16955 #if defined __stub_$ac_func || defined __stub___$ac_func
16956 choke me
16957 #endif
16958
16959 int
16960 main ()
16961 {
16962 return $ac_func ();
16963   ;
16964   return 0;
16965 }
16966 _ACEOF
16967 rm -f conftest.$ac_objext conftest$ac_exeext
16968 if { (ac_try="$ac_link"
16969 case "(($ac_try" in
16970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971   *) ac_try_echo=$ac_try;;
16972 esac
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974   (eval "$ac_link") 2>conftest.er1
16975   ac_status=$?
16976   grep -v '^ *+' conftest.er1 >conftest.err
16977   rm -f conftest.er1
16978   cat conftest.err >&5
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); } &&
16981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16982   { (case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_try") 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); }; } &&
16991          { ac_try='test -s conftest$ac_exeext'
16992   { (case "(($ac_try" in
16993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994   *) ac_try_echo=$ac_try;;
16995 esac
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997   (eval "$ac_try") 2>&5
16998   ac_status=$?
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); }; }; then
17001   eval "$as_ac_var=yes"
17002 else
17003   echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17005
17006         eval "$as_ac_var=no"
17007 fi
17008
17009 rm -f core conftest.err conftest.$ac_objext \
17010       conftest$ac_exeext conftest.$ac_ext
17011 fi
17012 ac_res=`eval echo '${'$as_ac_var'}'`
17013                { echo "$as_me:$LINENO: result: $ac_res" >&5
17014 echo "${ECHO_T}$ac_res" >&6; }
17015 if test `eval echo '${'$as_ac_var'}'` = yes; then
17016   cat >>confdefs.h <<_ACEOF
17017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17018 _ACEOF
17019
17020 fi
17021 done
17022
17023
17024
17025
17026 for ac_func in isatty mkdtemp mkstemp
17027 do
17028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034   cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h.  */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h.  */
17040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17042 #define $ac_func innocuous_$ac_func
17043
17044 /* System header to define __stub macros and hopefully few prototypes,
17045     which can conflict with char $ac_func (); below.
17046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17047     <limits.h> exists even on freestanding compilers.  */
17048
17049 #ifdef __STDC__
17050 # include <limits.h>
17051 #else
17052 # include <assert.h>
17053 #endif
17054
17055 #undef $ac_func
17056
17057 /* Override any GCC internal prototype to avoid an error.
17058    Use char because int might match the return type of a GCC
17059    builtin and then its argument prototype would still apply.  */
17060 #ifdef __cplusplus
17061 extern "C"
17062 #endif
17063 char $ac_func ();
17064 /* The GNU C library defines this for functions which it implements
17065     to always fail with ENOSYS.  Some functions are actually named
17066     something starting with __ and the normal name is an alias.  */
17067 #if defined __stub_$ac_func || defined __stub___$ac_func
17068 choke me
17069 #endif
17070
17071 int
17072 main ()
17073 {
17074 return $ac_func ();
17075   ;
17076   return 0;
17077 }
17078 _ACEOF
17079 rm -f conftest.$ac_objext conftest$ac_exeext
17080 if { (ac_try="$ac_link"
17081 case "(($ac_try" in
17082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083   *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086   (eval "$ac_link") 2>conftest.er1
17087   ac_status=$?
17088   grep -v '^ *+' conftest.er1 >conftest.err
17089   rm -f conftest.er1
17090   cat conftest.err >&5
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); } &&
17093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094   { (case "(($ac_try" in
17095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096   *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099   (eval "$ac_try") 2>&5
17100   ac_status=$?
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); }; } &&
17103          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17110   ac_status=$?
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); }; }; then
17113   eval "$as_ac_var=yes"
17114 else
17115   echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118         eval "$as_ac_var=no"
17119 fi
17120
17121 rm -f core conftest.err conftest.$ac_objext \
17122       conftest$ac_exeext conftest.$ac_ext
17123 fi
17124 ac_res=`eval echo '${'$as_ac_var'}'`
17125                { echo "$as_me:$LINENO: result: $ac_res" >&5
17126 echo "${ECHO_T}$ac_res" >&6; }
17127 if test `eval echo '${'$as_ac_var'}'` = yes; then
17128   cat >>confdefs.h <<_ACEOF
17129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17130 _ACEOF
17131
17132 fi
17133 done
17134
17135
17136
17137
17138
17139
17140
17141
17142 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17143 do
17144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17148   echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150   cat >conftest.$ac_ext <<_ACEOF
17151 /* confdefs.h.  */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h.  */
17156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17158 #define $ac_func innocuous_$ac_func
17159
17160 /* System header to define __stub macros and hopefully few prototypes,
17161     which can conflict with char $ac_func (); below.
17162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163     <limits.h> exists even on freestanding compilers.  */
17164
17165 #ifdef __STDC__
17166 # include <limits.h>
17167 #else
17168 # include <assert.h>
17169 #endif
17170
17171 #undef $ac_func
17172
17173 /* Override any GCC internal prototype to avoid an error.
17174    Use char because int might match the return type of a GCC
17175    builtin and then its argument prototype would still apply.  */
17176 #ifdef __cplusplus
17177 extern "C"
17178 #endif
17179 char $ac_func ();
17180 /* The GNU C library defines this for functions which it implements
17181     to always fail with ENOSYS.  Some functions are actually named
17182     something starting with __ and the normal name is an alias.  */
17183 #if defined __stub_$ac_func || defined __stub___$ac_func
17184 choke me
17185 #endif
17186
17187 int
17188 main ()
17189 {
17190 return $ac_func ();
17191   ;
17192   return 0;
17193 }
17194 _ACEOF
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199   *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202   (eval "$ac_link") 2>conftest.er1
17203   ac_status=$?
17204   grep -v '^ *+' conftest.er1 >conftest.err
17205   rm -f conftest.er1
17206   cat conftest.err >&5
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); } &&
17209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210   { (case "(($ac_try" in
17211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212   *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215   (eval "$ac_try") 2>&5
17216   ac_status=$?
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); }; } &&
17219          { ac_try='test -s conftest$ac_exeext'
17220   { (case "(($ac_try" in
17221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222   *) ac_try_echo=$ac_try;;
17223 esac
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225   (eval "$ac_try") 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); }; }; then
17229   eval "$as_ac_var=yes"
17230 else
17231   echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17233
17234         eval "$as_ac_var=no"
17235 fi
17236
17237 rm -f core conftest.err conftest.$ac_objext \
17238       conftest$ac_exeext conftest.$ac_ext
17239 fi
17240 ac_res=`eval echo '${'$as_ac_var'}'`
17241                { echo "$as_me:$LINENO: result: $ac_res" >&5
17242 echo "${ECHO_T}$ac_res" >&6; }
17243 if test `eval echo '${'$as_ac_var'}'` = yes; then
17244   cat >>confdefs.h <<_ACEOF
17245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17246 _ACEOF
17247
17248 fi
17249 done
17250
17251
17252
17253
17254 for ac_func in strerror strerror_r setenv
17255 do
17256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17260   echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262   cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h.  */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h.  */
17268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17270 #define $ac_func innocuous_$ac_func
17271
17272 /* System header to define __stub macros and hopefully few prototypes,
17273     which can conflict with char $ac_func (); below.
17274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17275     <limits.h> exists even on freestanding compilers.  */
17276
17277 #ifdef __STDC__
17278 # include <limits.h>
17279 #else
17280 # include <assert.h>
17281 #endif
17282
17283 #undef $ac_func
17284
17285 /* Override any GCC internal prototype to avoid an error.
17286    Use char because int might match the return type of a GCC
17287    builtin and then its argument prototype would still apply.  */
17288 #ifdef __cplusplus
17289 extern "C"
17290 #endif
17291 char $ac_func ();
17292 /* The GNU C library defines this for functions which it implements
17293     to always fail with ENOSYS.  Some functions are actually named
17294     something starting with __ and the normal name is an alias.  */
17295 #if defined __stub_$ac_func || defined __stub___$ac_func
17296 choke me
17297 #endif
17298
17299 int
17300 main ()
17301 {
17302 return $ac_func ();
17303   ;
17304   return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest.$ac_objext conftest$ac_exeext
17308 if { (ac_try="$ac_link"
17309 case "(($ac_try" in
17310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311   *) ac_try_echo=$ac_try;;
17312 esac
17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314   (eval "$ac_link") 2>conftest.er1
17315   ac_status=$?
17316   grep -v '^ *+' conftest.er1 >conftest.err
17317   rm -f conftest.er1
17318   cat conftest.err >&5
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); } &&
17321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17322   { (case "(($ac_try" in
17323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324   *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327   (eval "$ac_try") 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); }; } &&
17331          { ac_try='test -s conftest$ac_exeext'
17332   { (case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_try") 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); }; }; then
17341   eval "$as_ac_var=yes"
17342 else
17343   echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346         eval "$as_ac_var=no"
17347 fi
17348
17349 rm -f core conftest.err conftest.$ac_objext \
17350       conftest$ac_exeext conftest.$ac_ext
17351 fi
17352 ac_res=`eval echo '${'$as_ac_var'}'`
17353                { echo "$as_me:$LINENO: result: $ac_res" >&5
17354 echo "${ECHO_T}$ac_res" >&6; }
17355 if test `eval echo '${'$as_ac_var'}'` = yes; then
17356   cat >>confdefs.h <<_ACEOF
17357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17358 _ACEOF
17359
17360 fi
17361 done
17362
17363
17364
17365
17366
17367 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17368 do
17369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17373   echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375   cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h.  */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h.  */
17381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17383 #define $ac_func innocuous_$ac_func
17384
17385 /* System header to define __stub macros and hopefully few prototypes,
17386     which can conflict with char $ac_func (); below.
17387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388     <limits.h> exists even on freestanding compilers.  */
17389
17390 #ifdef __STDC__
17391 # include <limits.h>
17392 #else
17393 # include <assert.h>
17394 #endif
17395
17396 #undef $ac_func
17397
17398 /* Override any GCC internal prototype to avoid an error.
17399    Use char because int might match the return type of a GCC
17400    builtin and then its argument prototype would still apply.  */
17401 #ifdef __cplusplus
17402 extern "C"
17403 #endif
17404 char $ac_func ();
17405 /* The GNU C library defines this for functions which it implements
17406     to always fail with ENOSYS.  Some functions are actually named
17407     something starting with __ and the normal name is an alias.  */
17408 #if defined __stub_$ac_func || defined __stub___$ac_func
17409 choke me
17410 #endif
17411
17412 int
17413 main ()
17414 {
17415 return $ac_func ();
17416   ;
17417   return 0;
17418 }
17419 _ACEOF
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427   (eval "$ac_link") 2>conftest.er1
17428   ac_status=$?
17429   grep -v '^ *+' conftest.er1 >conftest.err
17430   rm -f conftest.er1
17431   cat conftest.err >&5
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); } &&
17434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435   { (case "(($ac_try" in
17436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437   *) ac_try_echo=$ac_try;;
17438 esac
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440   (eval "$ac_try") 2>&5
17441   ac_status=$?
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); }; } &&
17444          { ac_try='test -s conftest$ac_exeext'
17445   { (case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450   (eval "$ac_try") 2>&5
17451   ac_status=$?
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); }; }; then
17454   eval "$as_ac_var=yes"
17455 else
17456   echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17458
17459         eval "$as_ac_var=no"
17460 fi
17461
17462 rm -f core conftest.err conftest.$ac_objext \
17463       conftest$ac_exeext conftest.$ac_ext
17464 fi
17465 ac_res=`eval echo '${'$as_ac_var'}'`
17466                { echo "$as_me:$LINENO: result: $ac_res" >&5
17467 echo "${ECHO_T}$ac_res" >&6; }
17468 if test `eval echo '${'$as_ac_var'}'` = yes; then
17469   cat >>confdefs.h <<_ACEOF
17470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17471 _ACEOF
17472
17473 fi
17474 done
17475
17476
17477
17478
17479
17480
17481 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17482 do
17483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17487   echo $ECHO_N "(cached) $ECHO_C" >&6
17488 else
17489   cat >conftest.$ac_ext <<_ACEOF
17490 /* confdefs.h.  */
17491 _ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h.  */
17495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17497 #define $ac_func innocuous_$ac_func
17498
17499 /* System header to define __stub macros and hopefully few prototypes,
17500     which can conflict with char $ac_func (); below.
17501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17502     <limits.h> exists even on freestanding compilers.  */
17503
17504 #ifdef __STDC__
17505 # include <limits.h>
17506 #else
17507 # include <assert.h>
17508 #endif
17509
17510 #undef $ac_func
17511
17512 /* Override any GCC internal prototype to avoid an error.
17513    Use char because int might match the return type of a GCC
17514    builtin and then its argument prototype would still apply.  */
17515 #ifdef __cplusplus
17516 extern "C"
17517 #endif
17518 char $ac_func ();
17519 /* The GNU C library defines this for functions which it implements
17520     to always fail with ENOSYS.  Some functions are actually named
17521     something starting with __ and the normal name is an alias.  */
17522 #if defined __stub_$ac_func || defined __stub___$ac_func
17523 choke me
17524 #endif
17525
17526 int
17527 main ()
17528 {
17529 return $ac_func ();
17530   ;
17531   return 0;
17532 }
17533 _ACEOF
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538   *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541   (eval "$ac_link") 2>conftest.er1
17542   ac_status=$?
17543   grep -v '^ *+' conftest.er1 >conftest.err
17544   rm -f conftest.er1
17545   cat conftest.err >&5
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); } &&
17548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549   { (case "(($ac_try" in
17550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551   *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554   (eval "$ac_try") 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; } &&
17558          { ac_try='test -s conftest$ac_exeext'
17559   { (case "(($ac_try" in
17560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561   *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564   (eval "$ac_try") 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; }; then
17568   eval "$as_ac_var=yes"
17569 else
17570   echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573         eval "$as_ac_var=no"
17574 fi
17575
17576 rm -f core conftest.err conftest.$ac_objext \
17577       conftest$ac_exeext conftest.$ac_ext
17578 fi
17579 ac_res=`eval echo '${'$as_ac_var'}'`
17580                { echo "$as_me:$LINENO: result: $ac_res" >&5
17581 echo "${ECHO_T}$ac_res" >&6; }
17582 if test `eval echo '${'$as_ac_var'}'` = yes; then
17583   cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17585 _ACEOF
17586
17587 fi
17588 done
17589
17590 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17591 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17592 if test "${llvm_cv_c_printf_a+set}" = set; then
17593   echo $ECHO_N "(cached) $ECHO_C" >&6
17594 else
17595   ac_ext=c
17596 ac_cpp='$CPP $CPPFLAGS'
17597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17600
17601  if test "$cross_compiling" = yes; then
17602   llvmac_cv_c_printf_a=no
17603 else
17604   cat >conftest.$ac_ext <<_ACEOF
17605
17606   /* confdefs.h.  */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h.  */
17611
17612 #include <stdio.h>
17613 #include <stdlib.h>
17614
17615 int
17616 main ()
17617 {
17618
17619 volatile double A, B;
17620 char Buffer[100];
17621 A = 1;
17622 A /= 10.0;
17623 sprintf(Buffer, "%a", A);
17624 B = atof(Buffer);
17625 if (A != B)
17626   return (1);
17627 if (A != 0x1.999999999999ap-4)
17628   return (1);
17629 return (0);
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest$ac_exeext
17635 if { (ac_try="$ac_link"
17636 case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641   (eval "$ac_link") 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17645   { (case "(($ac_try" in
17646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647   *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650   (eval "$ac_try") 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; }; then
17654   llvm_cv_c_printf_a=yes
17655 else
17656   echo "$as_me: program exited with status $ac_status" >&5
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17659
17660 ( exit $ac_status )
17661 llvmac_cv_c_printf_a=no
17662 fi
17663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17664 fi
17665
17666
17667  ac_ext=c
17668 ac_cpp='$CPP $CPPFLAGS'
17669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17672
17673 fi
17674 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17675 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17676  if test "$llvm_cv_c_printf_a" = "yes"; then
17677
17678 cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_PRINTF_A 1
17680 _ACEOF
17681
17682  fi
17683
17684
17685 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17686 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17687 if test "${ac_cv_func_rand48+set}" = set; then
17688   echo $ECHO_N "(cached) $ECHO_C" >&6
17689 else
17690   ac_ext=cpp
17691 ac_cpp='$CXXCPP $CPPFLAGS'
17692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17695
17696    cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h.  */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h.  */
17702 #include <stdlib.h>
17703 int
17704 main ()
17705 {
17706 srand48(0);lrand48();drand48();
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_compile") 2>conftest.er1
17719   ac_status=$?
17720   grep -v '^ *+' conftest.er1 >conftest.err
17721   rm -f conftest.er1
17722   cat conftest.err >&5
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); } &&
17725          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17726   { (case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_try") 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; } &&
17735          { ac_try='test -s conftest.$ac_objext'
17736   { (case "(($ac_try" in
17737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738   *) ac_try_echo=$ac_try;;
17739 esac
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741   (eval "$ac_try") 2>&5
17742   ac_status=$?
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); }; }; then
17745   ac_cv_func_rand48=yes
17746 else
17747   echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17749
17750         ac_cv_func_rand48=no
17751 fi
17752
17753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17754   ac_ext=c
17755 ac_cpp='$CPP $CPPFLAGS'
17756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17759
17760 fi
17761 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17762 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17763
17764 if test "$ac_cv_func_rand48" = "yes" ; then
17765
17766 cat >>confdefs.h <<\_ACEOF
17767 #define HAVE_RAND48 1
17768 _ACEOF
17769
17770 fi
17771
17772
17773 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17774 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17775 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17776   echo $ECHO_N "(cached) $ECHO_C" >&6
17777 else
17778   cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h.  */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h.  */
17784 $ac_includes_default
17785 int
17786 main ()
17787 {
17788 #ifndef strerror_s
17789   char *p = (char *) strerror_s;
17790   return !p;
17791 #endif
17792
17793   ;
17794   return 0;
17795 }
17796 _ACEOF
17797 rm -f conftest.$ac_objext
17798 if { (ac_try="$ac_compile"
17799 case "(($ac_try" in
17800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801   *) ac_try_echo=$ac_try;;
17802 esac
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804   (eval "$ac_compile") 2>conftest.er1
17805   ac_status=$?
17806   grep -v '^ *+' conftest.er1 >conftest.err
17807   rm -f conftest.er1
17808   cat conftest.err >&5
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); } &&
17811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17812   { (case "(($ac_try" in
17813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814   *) ac_try_echo=$ac_try;;
17815 esac
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817   (eval "$ac_try") 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); }; } &&
17821          { ac_try='test -s conftest.$ac_objext'
17822   { (case "(($ac_try" in
17823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824   *) ac_try_echo=$ac_try;;
17825 esac
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827   (eval "$ac_try") 2>&5
17828   ac_status=$?
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); }; }; then
17831   ac_cv_have_decl_strerror_s=yes
17832 else
17833   echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17835
17836         ac_cv_have_decl_strerror_s=no
17837 fi
17838
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17840 fi
17841 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17842 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17843 if test $ac_cv_have_decl_strerror_s = yes; then
17844
17845 cat >>confdefs.h <<_ACEOF
17846 #define HAVE_DECL_STRERROR_S 1
17847 _ACEOF
17848
17849
17850 else
17851   cat >>confdefs.h <<_ACEOF
17852 #define HAVE_DECL_STRERROR_S 0
17853 _ACEOF
17854
17855
17856 fi
17857
17858
17859
17860 if test "$llvm_cv_os_type" = "MingW" ; then
17861   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17862 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17863 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866   ac_check_lib_save_LIBS=$LIBS
17867 LIBS="-lgcc  $LIBS"
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h.  */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h.  */
17874
17875 /* Override any GCC internal prototype to avoid an error.
17876    Use char because int might match the return type of a GCC
17877    builtin and then its argument prototype would still apply.  */
17878 #ifdef __cplusplus
17879 extern "C"
17880 #endif
17881 char _alloca ();
17882 int
17883 main ()
17884 {
17885 return _alloca ();
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (ac_try="$ac_link"
17892 case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897   (eval "$ac_link") 2>conftest.er1
17898   ac_status=$?
17899   grep -v '^ *+' conftest.er1 >conftest.err
17900   rm -f conftest.er1
17901   cat conftest.err >&5
17902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903   (exit $ac_status); } &&
17904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905   { (case "(($ac_try" in
17906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907   *) ac_try_echo=$ac_try;;
17908 esac
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910   (eval "$ac_try") 2>&5
17911   ac_status=$?
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); }; } &&
17914          { ac_try='test -s conftest$ac_exeext'
17915   { (case "(($ac_try" in
17916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917   *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920   (eval "$ac_try") 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; }; then
17924   ac_cv_lib_gcc__alloca=yes
17925 else
17926   echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929         ac_cv_lib_gcc__alloca=no
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext \
17933       conftest$ac_exeext conftest.$ac_ext
17934 LIBS=$ac_check_lib_save_LIBS
17935 fi
17936 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17937 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17938 if test $ac_cv_lib_gcc__alloca = yes; then
17939
17940 cat >>confdefs.h <<\_ACEOF
17941 #define HAVE__ALLOCA 1
17942 _ACEOF
17943
17944 fi
17945
17946   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17947 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17948 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17949   echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951   ac_check_lib_save_LIBS=$LIBS
17952 LIBS="-lgcc  $LIBS"
17953 cat >conftest.$ac_ext <<_ACEOF
17954 /* confdefs.h.  */
17955 _ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h.  */
17959
17960 /* Override any GCC internal prototype to avoid an error.
17961    Use char because int might match the return type of a GCC
17962    builtin and then its argument prototype would still apply.  */
17963 #ifdef __cplusplus
17964 extern "C"
17965 #endif
17966 char __alloca ();
17967 int
17968 main ()
17969 {
17970 return __alloca ();
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 rm -f conftest.$ac_objext conftest$ac_exeext
17976 if { (ac_try="$ac_link"
17977 case "(($ac_try" in
17978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979   *) ac_try_echo=$ac_try;;
17980 esac
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982   (eval "$ac_link") 2>conftest.er1
17983   ac_status=$?
17984   grep -v '^ *+' conftest.er1 >conftest.err
17985   rm -f conftest.er1
17986   cat conftest.err >&5
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); } &&
17989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17990   { (case "(($ac_try" in
17991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992   *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995   (eval "$ac_try") 2>&5
17996   ac_status=$?
17997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998   (exit $ac_status); }; } &&
17999          { ac_try='test -s conftest$ac_exeext'
18000   { (case "(($ac_try" in
18001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002   *) ac_try_echo=$ac_try;;
18003 esac
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005   (eval "$ac_try") 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; }; then
18009   ac_cv_lib_gcc___alloca=yes
18010 else
18011   echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014         ac_cv_lib_gcc___alloca=no
18015 fi
18016
18017 rm -f core conftest.err conftest.$ac_objext \
18018       conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18020 fi
18021 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18022 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18023 if test $ac_cv_lib_gcc___alloca = yes; then
18024
18025 cat >>confdefs.h <<\_ACEOF
18026 #define HAVE___ALLOCA 1
18027 _ACEOF
18028
18029 fi
18030
18031   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18032 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18033 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18034   echo $ECHO_N "(cached) $ECHO_C" >&6
18035 else
18036   ac_check_lib_save_LIBS=$LIBS
18037 LIBS="-lgcc  $LIBS"
18038 cat >conftest.$ac_ext <<_ACEOF
18039 /* confdefs.h.  */
18040 _ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h.  */
18044
18045 /* Override any GCC internal prototype to avoid an error.
18046    Use char because int might match the return type of a GCC
18047    builtin and then its argument prototype would still apply.  */
18048 #ifdef __cplusplus
18049 extern "C"
18050 #endif
18051 char __chkstk ();
18052 int
18053 main ()
18054 {
18055 return __chkstk ();
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (ac_try="$ac_link"
18062 case "(($ac_try" in
18063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064   *) ac_try_echo=$ac_try;;
18065 esac
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067   (eval "$ac_link") 2>conftest.er1
18068   ac_status=$?
18069   grep -v '^ *+' conftest.er1 >conftest.err
18070   rm -f conftest.er1
18071   cat conftest.err >&5
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); } &&
18074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075   { (case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080   (eval "$ac_try") 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; } &&
18084          { ac_try='test -s conftest$ac_exeext'
18085   { (case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_try") 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; }; then
18094   ac_cv_lib_gcc___chkstk=yes
18095 else
18096   echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18098
18099         ac_cv_lib_gcc___chkstk=no
18100 fi
18101
18102 rm -f core conftest.err conftest.$ac_objext \
18103       conftest$ac_exeext conftest.$ac_ext
18104 LIBS=$ac_check_lib_save_LIBS
18105 fi
18106 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18107 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18108 if test $ac_cv_lib_gcc___chkstk = yes; then
18109
18110 cat >>confdefs.h <<\_ACEOF
18111 #define HAVE___CHKSTK 1
18112 _ACEOF
18113
18114 fi
18115
18116   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18117 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18118 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18119   echo $ECHO_N "(cached) $ECHO_C" >&6
18120 else
18121   ac_check_lib_save_LIBS=$LIBS
18122 LIBS="-lgcc  $LIBS"
18123 cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h.  */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h.  */
18129
18130 /* Override any GCC internal prototype to avoid an error.
18131    Use char because int might match the return type of a GCC
18132    builtin and then its argument prototype would still apply.  */
18133 #ifdef __cplusplus
18134 extern "C"
18135 #endif
18136 char ___chkstk ();
18137 int
18138 main ()
18139 {
18140 return ___chkstk ();
18141   ;
18142   return 0;
18143 }
18144 _ACEOF
18145 rm -f conftest.$ac_objext conftest$ac_exeext
18146 if { (ac_try="$ac_link"
18147 case "(($ac_try" in
18148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149   *) ac_try_echo=$ac_try;;
18150 esac
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152   (eval "$ac_link") 2>conftest.er1
18153   ac_status=$?
18154   grep -v '^ *+' conftest.er1 >conftest.err
18155   rm -f conftest.er1
18156   cat conftest.err >&5
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); } &&
18159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18160   { (case "(($ac_try" in
18161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162   *) ac_try_echo=$ac_try;;
18163 esac
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165   (eval "$ac_try") 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; } &&
18169          { ac_try='test -s conftest$ac_exeext'
18170   { (case "(($ac_try" in
18171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172   *) ac_try_echo=$ac_try;;
18173 esac
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175   (eval "$ac_try") 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); }; }; then
18179   ac_cv_lib_gcc____chkstk=yes
18180 else
18181   echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184         ac_cv_lib_gcc____chkstk=no
18185 fi
18186
18187 rm -f core conftest.err conftest.$ac_objext \
18188       conftest$ac_exeext conftest.$ac_ext
18189 LIBS=$ac_check_lib_save_LIBS
18190 fi
18191 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18192 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18193 if test $ac_cv_lib_gcc____chkstk = yes; then
18194
18195 cat >>confdefs.h <<\_ACEOF
18196 #define HAVE____CHKSTK 1
18197 _ACEOF
18198
18199 fi
18200
18201
18202   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18203 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18204 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18205   echo $ECHO_N "(cached) $ECHO_C" >&6
18206 else
18207   ac_check_lib_save_LIBS=$LIBS
18208 LIBS="-lgcc  $LIBS"
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215
18216 /* Override any GCC internal prototype to avoid an error.
18217    Use char because int might match the return type of a GCC
18218    builtin and then its argument prototype would still apply.  */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 char __ashldi3 ();
18223 int
18224 main ()
18225 {
18226 return __ashldi3 ();
18227   ;
18228   return 0;
18229 }
18230 _ACEOF
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235   *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238   (eval "$ac_link") 2>conftest.er1
18239   ac_status=$?
18240   grep -v '^ *+' conftest.er1 >conftest.err
18241   rm -f conftest.er1
18242   cat conftest.err >&5
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); } &&
18245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18246   { (case "(($ac_try" in
18247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248   *) ac_try_echo=$ac_try;;
18249 esac
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251   (eval "$ac_try") 2>&5
18252   ac_status=$?
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); }; } &&
18255          { ac_try='test -s conftest$ac_exeext'
18256   { (case "(($ac_try" in
18257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258   *) ac_try_echo=$ac_try;;
18259 esac
18260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261   (eval "$ac_try") 2>&5
18262   ac_status=$?
18263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264   (exit $ac_status); }; }; then
18265   ac_cv_lib_gcc___ashldi3=yes
18266 else
18267   echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18269
18270         ac_cv_lib_gcc___ashldi3=no
18271 fi
18272
18273 rm -f core conftest.err conftest.$ac_objext \
18274       conftest$ac_exeext conftest.$ac_ext
18275 LIBS=$ac_check_lib_save_LIBS
18276 fi
18277 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18278 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18279 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18280
18281 cat >>confdefs.h <<\_ACEOF
18282 #define HAVE___ASHLDI3 1
18283 _ACEOF
18284
18285 fi
18286
18287   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18288 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18289 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18290   echo $ECHO_N "(cached) $ECHO_C" >&6
18291 else
18292   ac_check_lib_save_LIBS=$LIBS
18293 LIBS="-lgcc  $LIBS"
18294 cat >conftest.$ac_ext <<_ACEOF
18295 /* confdefs.h.  */
18296 _ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h.  */
18300
18301 /* Override any GCC internal prototype to avoid an error.
18302    Use char because int might match the return type of a GCC
18303    builtin and then its argument prototype would still apply.  */
18304 #ifdef __cplusplus
18305 extern "C"
18306 #endif
18307 char __ashrdi3 ();
18308 int
18309 main ()
18310 {
18311 return __ashrdi3 ();
18312   ;
18313   return 0;
18314 }
18315 _ACEOF
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (ac_try="$ac_link"
18318 case "(($ac_try" in
18319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320   *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323   (eval "$ac_link") 2>conftest.er1
18324   ac_status=$?
18325   grep -v '^ *+' conftest.er1 >conftest.err
18326   rm -f conftest.er1
18327   cat conftest.err >&5
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); } &&
18330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18331   { (case "(($ac_try" in
18332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333   *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336   (eval "$ac_try") 2>&5
18337   ac_status=$?
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); }; } &&
18340          { ac_try='test -s conftest$ac_exeext'
18341   { (case "(($ac_try" in
18342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343   *) ac_try_echo=$ac_try;;
18344 esac
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346   (eval "$ac_try") 2>&5
18347   ac_status=$?
18348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349   (exit $ac_status); }; }; then
18350   ac_cv_lib_gcc___ashrdi3=yes
18351 else
18352   echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18354
18355         ac_cv_lib_gcc___ashrdi3=no
18356 fi
18357
18358 rm -f core conftest.err conftest.$ac_objext \
18359       conftest$ac_exeext conftest.$ac_ext
18360 LIBS=$ac_check_lib_save_LIBS
18361 fi
18362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18363 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18364 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18365
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE___ASHRDI3 1
18368 _ACEOF
18369
18370 fi
18371
18372   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18373 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18374 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18375   echo $ECHO_N "(cached) $ECHO_C" >&6
18376 else
18377   ac_check_lib_save_LIBS=$LIBS
18378 LIBS="-lgcc  $LIBS"
18379 cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h.  */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h.  */
18385
18386 /* Override any GCC internal prototype to avoid an error.
18387    Use char because int might match the return type of a GCC
18388    builtin and then its argument prototype would still apply.  */
18389 #ifdef __cplusplus
18390 extern "C"
18391 #endif
18392 char __divdi3 ();
18393 int
18394 main ()
18395 {
18396 return __divdi3 ();
18397   ;
18398   return 0;
18399 }
18400 _ACEOF
18401 rm -f conftest.$ac_objext conftest$ac_exeext
18402 if { (ac_try="$ac_link"
18403 case "(($ac_try" in
18404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405   *) ac_try_echo=$ac_try;;
18406 esac
18407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408   (eval "$ac_link") 2>conftest.er1
18409   ac_status=$?
18410   grep -v '^ *+' conftest.er1 >conftest.err
18411   rm -f conftest.er1
18412   cat conftest.err >&5
18413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414   (exit $ac_status); } &&
18415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18416   { (case "(($ac_try" in
18417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418   *) ac_try_echo=$ac_try;;
18419 esac
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421   (eval "$ac_try") 2>&5
18422   ac_status=$?
18423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424   (exit $ac_status); }; } &&
18425          { ac_try='test -s conftest$ac_exeext'
18426   { (case "(($ac_try" in
18427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428   *) ac_try_echo=$ac_try;;
18429 esac
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431   (eval "$ac_try") 2>&5
18432   ac_status=$?
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); }; }; then
18435   ac_cv_lib_gcc___divdi3=yes
18436 else
18437   echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440         ac_cv_lib_gcc___divdi3=no
18441 fi
18442
18443 rm -f core conftest.err conftest.$ac_objext \
18444       conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_check_lib_save_LIBS
18446 fi
18447 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18448 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18449 if test $ac_cv_lib_gcc___divdi3 = yes; then
18450
18451 cat >>confdefs.h <<\_ACEOF
18452 #define HAVE___DIVDI3 1
18453 _ACEOF
18454
18455 fi
18456
18457   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18458 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18459 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18460   echo $ECHO_N "(cached) $ECHO_C" >&6
18461 else
18462   ac_check_lib_save_LIBS=$LIBS
18463 LIBS="-lgcc  $LIBS"
18464 cat >conftest.$ac_ext <<_ACEOF
18465 /* confdefs.h.  */
18466 _ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h.  */
18470
18471 /* Override any GCC internal prototype to avoid an error.
18472    Use char because int might match the return type of a GCC
18473    builtin and then its argument prototype would still apply.  */
18474 #ifdef __cplusplus
18475 extern "C"
18476 #endif
18477 char __fixdfdi ();
18478 int
18479 main ()
18480 {
18481 return __fixdfdi ();
18482   ;
18483   return 0;
18484 }
18485 _ACEOF
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (ac_try="$ac_link"
18488 case "(($ac_try" in
18489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490   *) ac_try_echo=$ac_try;;
18491 esac
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493   (eval "$ac_link") 2>conftest.er1
18494   ac_status=$?
18495   grep -v '^ *+' conftest.er1 >conftest.err
18496   rm -f conftest.er1
18497   cat conftest.err >&5
18498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499   (exit $ac_status); } &&
18500          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18501   { (case "(($ac_try" in
18502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503   *) ac_try_echo=$ac_try;;
18504 esac
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506   (eval "$ac_try") 2>&5
18507   ac_status=$?
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); }; } &&
18510          { ac_try='test -s conftest$ac_exeext'
18511   { (case "(($ac_try" in
18512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513   *) ac_try_echo=$ac_try;;
18514 esac
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516   (eval "$ac_try") 2>&5
18517   ac_status=$?
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); }; }; then
18520   ac_cv_lib_gcc___fixdfdi=yes
18521 else
18522   echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18524
18525         ac_cv_lib_gcc___fixdfdi=no
18526 fi
18527
18528 rm -f core conftest.err conftest.$ac_objext \
18529       conftest$ac_exeext conftest.$ac_ext
18530 LIBS=$ac_check_lib_save_LIBS
18531 fi
18532 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18533 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18534 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18535
18536 cat >>confdefs.h <<\_ACEOF
18537 #define HAVE___FIXDFDI 1
18538 _ACEOF
18539
18540 fi
18541
18542   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18543 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18544 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18545   echo $ECHO_N "(cached) $ECHO_C" >&6
18546 else
18547   ac_check_lib_save_LIBS=$LIBS
18548 LIBS="-lgcc  $LIBS"
18549 cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555
18556 /* Override any GCC internal prototype to avoid an error.
18557    Use char because int might match the return type of a GCC
18558    builtin and then its argument prototype would still apply.  */
18559 #ifdef __cplusplus
18560 extern "C"
18561 #endif
18562 char __fixsfdi ();
18563 int
18564 main ()
18565 {
18566 return __fixsfdi ();
18567   ;
18568   return 0;
18569 }
18570 _ACEOF
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (ac_try="$ac_link"
18573 case "(($ac_try" in
18574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575   *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578   (eval "$ac_link") 2>conftest.er1
18579   ac_status=$?
18580   grep -v '^ *+' conftest.er1 >conftest.err
18581   rm -f conftest.er1
18582   cat conftest.err >&5
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); } &&
18585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18586   { (case "(($ac_try" in
18587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588   *) ac_try_echo=$ac_try;;
18589 esac
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591   (eval "$ac_try") 2>&5
18592   ac_status=$?
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); }; } &&
18595          { ac_try='test -s conftest$ac_exeext'
18596   { (case "(($ac_try" in
18597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598   *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601   (eval "$ac_try") 2>&5
18602   ac_status=$?
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); }; }; then
18605   ac_cv_lib_gcc___fixsfdi=yes
18606 else
18607   echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18609
18610         ac_cv_lib_gcc___fixsfdi=no
18611 fi
18612
18613 rm -f core conftest.err conftest.$ac_objext \
18614       conftest$ac_exeext conftest.$ac_ext
18615 LIBS=$ac_check_lib_save_LIBS
18616 fi
18617 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18618 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18619 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18620
18621 cat >>confdefs.h <<\_ACEOF
18622 #define HAVE___FIXSFDI 1
18623 _ACEOF
18624
18625 fi
18626
18627   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18628 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18629 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18630   echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632   ac_check_lib_save_LIBS=$LIBS
18633 LIBS="-lgcc  $LIBS"
18634 cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h.  */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h.  */
18640
18641 /* Override any GCC internal prototype to avoid an error.
18642    Use char because int might match the return type of a GCC
18643    builtin and then its argument prototype would still apply.  */
18644 #ifdef __cplusplus
18645 extern "C"
18646 #endif
18647 char __floatdidf ();
18648 int
18649 main ()
18650 {
18651 return __floatdidf ();
18652   ;
18653   return 0;
18654 }
18655 _ACEOF
18656 rm -f conftest.$ac_objext conftest$ac_exeext
18657 if { (ac_try="$ac_link"
18658 case "(($ac_try" in
18659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660   *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663   (eval "$ac_link") 2>conftest.er1
18664   ac_status=$?
18665   grep -v '^ *+' conftest.er1 >conftest.err
18666   rm -f conftest.er1
18667   cat conftest.err >&5
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); } &&
18670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18671   { (case "(($ac_try" in
18672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673   *) ac_try_echo=$ac_try;;
18674 esac
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676   (eval "$ac_try") 2>&5
18677   ac_status=$?
18678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); }; } &&
18680          { ac_try='test -s conftest$ac_exeext'
18681   { (case "(($ac_try" in
18682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683   *) ac_try_echo=$ac_try;;
18684 esac
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686   (eval "$ac_try") 2>&5
18687   ac_status=$?
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); }; }; then
18690   ac_cv_lib_gcc___floatdidf=yes
18691 else
18692   echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18694
18695         ac_cv_lib_gcc___floatdidf=no
18696 fi
18697
18698 rm -f core conftest.err conftest.$ac_objext \
18699       conftest$ac_exeext conftest.$ac_ext
18700 LIBS=$ac_check_lib_save_LIBS
18701 fi
18702 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18703 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18704 if test $ac_cv_lib_gcc___floatdidf = yes; then
18705
18706 cat >>confdefs.h <<\_ACEOF
18707 #define HAVE___FLOATDIDF 1
18708 _ACEOF
18709
18710 fi
18711
18712   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18713 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18714 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18715   echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717   ac_check_lib_save_LIBS=$LIBS
18718 LIBS="-lgcc  $LIBS"
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h.  */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h.  */
18725
18726 /* Override any GCC internal prototype to avoid an error.
18727    Use char because int might match the return type of a GCC
18728    builtin and then its argument prototype would still apply.  */
18729 #ifdef __cplusplus
18730 extern "C"
18731 #endif
18732 char __lshrdi3 ();
18733 int
18734 main ()
18735 {
18736 return __lshrdi3 ();
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745   *) ac_try_echo=$ac_try;;
18746 esac
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748   (eval "$ac_link") 2>conftest.er1
18749   ac_status=$?
18750   grep -v '^ *+' conftest.er1 >conftest.err
18751   rm -f conftest.er1
18752   cat conftest.err >&5
18753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754   (exit $ac_status); } &&
18755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756   { (case "(($ac_try" in
18757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758   *) ac_try_echo=$ac_try;;
18759 esac
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761   (eval "$ac_try") 2>&5
18762   ac_status=$?
18763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764   (exit $ac_status); }; } &&
18765          { ac_try='test -s conftest$ac_exeext'
18766   { (case "(($ac_try" in
18767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768   *) ac_try_echo=$ac_try;;
18769 esac
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771   (eval "$ac_try") 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); }; }; then
18775   ac_cv_lib_gcc___lshrdi3=yes
18776 else
18777   echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18779
18780         ac_cv_lib_gcc___lshrdi3=no
18781 fi
18782
18783 rm -f core conftest.err conftest.$ac_objext \
18784       conftest$ac_exeext conftest.$ac_ext
18785 LIBS=$ac_check_lib_save_LIBS
18786 fi
18787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18788 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18789 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18790
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE___LSHRDI3 1
18793 _ACEOF
18794
18795 fi
18796
18797   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18798 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18799 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18800   echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802   ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lgcc  $LIBS"
18804 cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810
18811 /* Override any GCC internal prototype to avoid an error.
18812    Use char because int might match the return type of a GCC
18813    builtin and then its argument prototype would still apply.  */
18814 #ifdef __cplusplus
18815 extern "C"
18816 #endif
18817 char __moddi3 ();
18818 int
18819 main ()
18820 {
18821 return __moddi3 ();
18822   ;
18823   return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830   *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833   (eval "$ac_link") 2>conftest.er1
18834   ac_status=$?
18835   grep -v '^ *+' conftest.er1 >conftest.err
18836   rm -f conftest.er1
18837   cat conftest.err >&5
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); } &&
18840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841   { (case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_try") 2>&5
18847   ac_status=$?
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); }; } &&
18850          { ac_try='test -s conftest$ac_exeext'
18851   { (case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_try") 2>&5
18857   ac_status=$?
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); }; }; then
18860   ac_cv_lib_gcc___moddi3=yes
18861 else
18862   echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18864
18865         ac_cv_lib_gcc___moddi3=no
18866 fi
18867
18868 rm -f core conftest.err conftest.$ac_objext \
18869       conftest$ac_exeext conftest.$ac_ext
18870 LIBS=$ac_check_lib_save_LIBS
18871 fi
18872 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18873 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18874 if test $ac_cv_lib_gcc___moddi3 = yes; then
18875
18876 cat >>confdefs.h <<\_ACEOF
18877 #define HAVE___MODDI3 1
18878 _ACEOF
18879
18880 fi
18881
18882   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18883 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18884 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   ac_check_lib_save_LIBS=$LIBS
18888 LIBS="-lgcc  $LIBS"
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h.  */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h.  */
18895
18896 /* Override any GCC internal prototype to avoid an error.
18897    Use char because int might match the return type of a GCC
18898    builtin and then its argument prototype would still apply.  */
18899 #ifdef __cplusplus
18900 extern "C"
18901 #endif
18902 char __udivdi3 ();
18903 int
18904 main ()
18905 {
18906 return __udivdi3 ();
18907   ;
18908   return 0;
18909 }
18910 _ACEOF
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915   *) ac_try_echo=$ac_try;;
18916 esac
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918   (eval "$ac_link") 2>conftest.er1
18919   ac_status=$?
18920   grep -v '^ *+' conftest.er1 >conftest.err
18921   rm -f conftest.er1
18922   cat conftest.err >&5
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); } &&
18925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18926   { (case "(($ac_try" in
18927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928   *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931   (eval "$ac_try") 2>&5
18932   ac_status=$?
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); }; } &&
18935          { ac_try='test -s conftest$ac_exeext'
18936   { (case "(($ac_try" in
18937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938   *) ac_try_echo=$ac_try;;
18939 esac
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941   (eval "$ac_try") 2>&5
18942   ac_status=$?
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); }; }; then
18945   ac_cv_lib_gcc___udivdi3=yes
18946 else
18947   echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18949
18950         ac_cv_lib_gcc___udivdi3=no
18951 fi
18952
18953 rm -f core conftest.err conftest.$ac_objext \
18954       conftest$ac_exeext conftest.$ac_ext
18955 LIBS=$ac_check_lib_save_LIBS
18956 fi
18957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18958 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18959 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18960
18961 cat >>confdefs.h <<\_ACEOF
18962 #define HAVE___UDIVDI3 1
18963 _ACEOF
18964
18965 fi
18966
18967   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18968 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18969 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972   ac_check_lib_save_LIBS=$LIBS
18973 LIBS="-lgcc  $LIBS"
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h.  */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h.  */
18980
18981 /* Override any GCC internal prototype to avoid an error.
18982    Use char because int might match the return type of a GCC
18983    builtin and then its argument prototype would still apply.  */
18984 #ifdef __cplusplus
18985 extern "C"
18986 #endif
18987 char __umoddi3 ();
18988 int
18989 main ()
18990 {
18991 return __umoddi3 ();
18992   ;
18993   return 0;
18994 }
18995 _ACEOF
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (ac_try="$ac_link"
18998 case "(($ac_try" in
18999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000   *) ac_try_echo=$ac_try;;
19001 esac
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003   (eval "$ac_link") 2>conftest.er1
19004   ac_status=$?
19005   grep -v '^ *+' conftest.er1 >conftest.err
19006   rm -f conftest.er1
19007   cat conftest.err >&5
19008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009   (exit $ac_status); } &&
19010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19011   { (case "(($ac_try" in
19012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013   *) ac_try_echo=$ac_try;;
19014 esac
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016   (eval "$ac_try") 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }; } &&
19020          { ac_try='test -s conftest$ac_exeext'
19021   { (case "(($ac_try" in
19022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023   *) ac_try_echo=$ac_try;;
19024 esac
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026   (eval "$ac_try") 2>&5
19027   ac_status=$?
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); }; }; then
19030   ac_cv_lib_gcc___umoddi3=yes
19031 else
19032   echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035         ac_cv_lib_gcc___umoddi3=no
19036 fi
19037
19038 rm -f core conftest.err conftest.$ac_objext \
19039       conftest$ac_exeext conftest.$ac_ext
19040 LIBS=$ac_check_lib_save_LIBS
19041 fi
19042 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19043 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19044 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19045
19046 cat >>confdefs.h <<\_ACEOF
19047 #define HAVE___UMODDI3 1
19048 _ACEOF
19049
19050 fi
19051
19052
19053   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19054 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19055 if test "${ac_cv_lib_gcc___main+set}" = set; then
19056   echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058   ac_check_lib_save_LIBS=$LIBS
19059 LIBS="-lgcc  $LIBS"
19060 cat >conftest.$ac_ext <<_ACEOF
19061 /* confdefs.h.  */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h.  */
19066
19067 /* Override any GCC internal prototype to avoid an error.
19068    Use char because int might match the return type of a GCC
19069    builtin and then its argument prototype would still apply.  */
19070 #ifdef __cplusplus
19071 extern "C"
19072 #endif
19073 char __main ();
19074 int
19075 main ()
19076 {
19077 return __main ();
19078   ;
19079   return 0;
19080 }
19081 _ACEOF
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086   *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089   (eval "$ac_link") 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } &&
19096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097   { (case "(($ac_try" in
19098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099   *) ac_try_echo=$ac_try;;
19100 esac
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102   (eval "$ac_try") 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; } &&
19106          { ac_try='test -s conftest$ac_exeext'
19107   { (case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112   (eval "$ac_try") 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   ac_cv_lib_gcc___main=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121         ac_cv_lib_gcc___main=no
19122 fi
19123
19124 rm -f core conftest.err conftest.$ac_objext \
19125       conftest$ac_exeext conftest.$ac_ext
19126 LIBS=$ac_check_lib_save_LIBS
19127 fi
19128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19129 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19130 if test $ac_cv_lib_gcc___main = yes; then
19131
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE___MAIN 1
19134 _ACEOF
19135
19136 fi
19137
19138   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19139 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19140 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19141   echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143   ac_check_lib_save_LIBS=$LIBS
19144 LIBS="-lgcc  $LIBS"
19145 cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h.  */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h.  */
19151
19152 /* Override any GCC internal prototype to avoid an error.
19153    Use char because int might match the return type of a GCC
19154    builtin and then its argument prototype would still apply.  */
19155 #ifdef __cplusplus
19156 extern "C"
19157 #endif
19158 char __cmpdi2 ();
19159 int
19160 main ()
19161 {
19162 return __cmpdi2 ();
19163   ;
19164   return 0;
19165 }
19166 _ACEOF
19167 rm -f conftest.$ac_objext conftest$ac_exeext
19168 if { (ac_try="$ac_link"
19169 case "(($ac_try" in
19170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171   *) ac_try_echo=$ac_try;;
19172 esac
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174   (eval "$ac_link") 2>conftest.er1
19175   ac_status=$?
19176   grep -v '^ *+' conftest.er1 >conftest.err
19177   rm -f conftest.er1
19178   cat conftest.err >&5
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); } &&
19181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19182   { (case "(($ac_try" in
19183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184   *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187   (eval "$ac_try") 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; } &&
19191          { ac_try='test -s conftest$ac_exeext'
19192   { (case "(($ac_try" in
19193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194   *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197   (eval "$ac_try") 2>&5
19198   ac_status=$?
19199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200   (exit $ac_status); }; }; then
19201   ac_cv_lib_gcc___cmpdi2=yes
19202 else
19203   echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19205
19206         ac_cv_lib_gcc___cmpdi2=no
19207 fi
19208
19209 rm -f core conftest.err conftest.$ac_objext \
19210       conftest$ac_exeext conftest.$ac_ext
19211 LIBS=$ac_check_lib_save_LIBS
19212 fi
19213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19214 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19215 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19216
19217 cat >>confdefs.h <<\_ACEOF
19218 #define HAVE___CMPDI2 1
19219 _ACEOF
19220
19221 fi
19222
19223 fi
19224
19225 if test "$llvm_cv_os_type" = "MingW" ; then
19226   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19227 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19228   cat >conftest.$ac_ext <<_ACEOF
19229 #include <windows.h>
19230 #include <imagehlp.h>
19231 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19232 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19233 _ACEOF
19234 rm -f conftest.$ac_objext
19235 if { (ac_try="$ac_compile"
19236 case "(($ac_try" in
19237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238   *) ac_try_echo=$ac_try;;
19239 esac
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241   (eval "$ac_compile") 2>conftest.er1
19242   ac_status=$?
19243   grep -v '^ *+' conftest.er1 >conftest.err
19244   rm -f conftest.er1
19245   cat conftest.err >&5
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); } &&
19248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249   { (case "(($ac_try" in
19250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251   *) ac_try_echo=$ac_try;;
19252 esac
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254   (eval "$ac_try") 2>&5
19255   ac_status=$?
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); }; } &&
19258          { ac_try='test -s conftest.$ac_objext'
19259   { (case "(($ac_try" in
19260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261   *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264   (eval "$ac_try") 2>&5
19265   ac_status=$?
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); }; }; then
19268
19269   { echo "$as_me:$LINENO: result: yes" >&5
19270 echo "${ECHO_T}yes" >&6; }
19271   llvm_cv_win32_elmcb_pcstr="PCSTR"
19272
19273 else
19274   echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19276
19277
19278   { echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6; }
19280   llvm_cv_win32_elmcb_pcstr="PSTR"
19281
19282 fi
19283
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285
19286 cat >>confdefs.h <<_ACEOF
19287 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19288 _ACEOF
19289
19290 fi
19291
19292
19293 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19294 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19295 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19296   echo $ECHO_N "(cached) $ECHO_C" >&6
19297 else
19298   ac_ext=cpp
19299 ac_cpp='$CXXCPP $CPPFLAGS'
19300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19303
19304    cat >conftest.$ac_ext <<_ACEOF
19305 /* confdefs.h.  */
19306 _ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h.  */
19310 #include <math.h>
19311 int
19312 main ()
19313 {
19314 float f; isnan(f);
19315   ;
19316   return 0;
19317 }
19318 _ACEOF
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323   *) ac_try_echo=$ac_try;;
19324 esac
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326   (eval "$ac_compile") 2>conftest.er1
19327   ac_status=$?
19328   grep -v '^ *+' conftest.er1 >conftest.err
19329   rm -f conftest.er1
19330   cat conftest.err >&5
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); } &&
19333          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19334   { (case "(($ac_try" in
19335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336   *) ac_try_echo=$ac_try;;
19337 esac
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339   (eval "$ac_try") 2>&5
19340   ac_status=$?
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); }; } &&
19343          { ac_try='test -s conftest.$ac_objext'
19344   { (case "(($ac_try" in
19345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346   *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349   (eval "$ac_try") 2>&5
19350   ac_status=$?
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); }; }; then
19353   ac_cv_func_isnan_in_math_h=yes
19354 else
19355   echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19357
19358         ac_cv_func_isnan_in_math_h=no
19359 fi
19360
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362   ac_ext=c
19363 ac_cpp='$CPP $CPPFLAGS'
19364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19367
19368 fi
19369 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19370 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19371
19372
19373 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19374
19375 cat >>confdefs.h <<\_ACEOF
19376 #define HAVE_ISNAN_IN_MATH_H 1
19377 _ACEOF
19378
19379 fi
19380
19381 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19382 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19383 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19384   echo $ECHO_N "(cached) $ECHO_C" >&6
19385 else
19386   ac_ext=cpp
19387 ac_cpp='$CXXCPP $CPPFLAGS'
19388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19391
19392    cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h.  */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h.  */
19398 #include <cmath>
19399 int
19400 main ()
19401 {
19402 float f; isnan(f);
19403   ;
19404   return 0;
19405 }
19406 _ACEOF
19407 rm -f conftest.$ac_objext
19408 if { (ac_try="$ac_compile"
19409 case "(($ac_try" in
19410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411   *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414   (eval "$ac_compile") 2>conftest.er1
19415   ac_status=$?
19416   grep -v '^ *+' conftest.er1 >conftest.err
19417   rm -f conftest.er1
19418   cat conftest.err >&5
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); } &&
19421          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19422   { (case "(($ac_try" in
19423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424   *) ac_try_echo=$ac_try;;
19425 esac
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427   (eval "$ac_try") 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); }; } &&
19431          { ac_try='test -s conftest.$ac_objext'
19432   { (case "(($ac_try" in
19433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434   *) ac_try_echo=$ac_try;;
19435 esac
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437   (eval "$ac_try") 2>&5
19438   ac_status=$?
19439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440   (exit $ac_status); }; }; then
19441   ac_cv_func_isnan_in_cmath=yes
19442 else
19443   echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19445
19446         ac_cv_func_isnan_in_cmath=no
19447 fi
19448
19449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19450   ac_ext=c
19451 ac_cpp='$CPP $CPPFLAGS'
19452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19455
19456 fi
19457 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19458 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19459
19460 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19461
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_ISNAN_IN_CMATH 1
19464 _ACEOF
19465
19466 fi
19467
19468 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19469 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19470 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19471   echo $ECHO_N "(cached) $ECHO_C" >&6
19472 else
19473   ac_ext=cpp
19474 ac_cpp='$CXXCPP $CPPFLAGS'
19475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19478
19479    cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h.  */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h.  */
19485 #include <cmath>
19486 int
19487 main ()
19488 {
19489 float f; std::isnan(f);
19490   ;
19491   return 0;
19492 }
19493 _ACEOF
19494 rm -f conftest.$ac_objext
19495 if { (ac_try="$ac_compile"
19496 case "(($ac_try" in
19497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498   *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501   (eval "$ac_compile") 2>conftest.er1
19502   ac_status=$?
19503   grep -v '^ *+' conftest.er1 >conftest.err
19504   rm -f conftest.er1
19505   cat conftest.err >&5
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); } &&
19508          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19509   { (case "(($ac_try" in
19510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511   *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514   (eval "$ac_try") 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); }; } &&
19518          { ac_try='test -s conftest.$ac_objext'
19519   { (case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_try") 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; }; then
19528   ac_cv_func_std_isnan_in_cmath=yes
19529 else
19530   echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19532
19533         ac_cv_func_std_isnan_in_cmath=no
19534 fi
19535
19536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19537   ac_ext=c
19538 ac_cpp='$CPP $CPPFLAGS'
19539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19542
19543 fi
19544 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19545 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19546
19547 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19548
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE_STD_ISNAN_IN_CMATH 1
19551 _ACEOF
19552
19553 fi
19554
19555
19556 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19557 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19558 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19559   echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561   ac_ext=cpp
19562 ac_cpp='$CXXCPP $CPPFLAGS'
19563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19566
19567    cat >conftest.$ac_ext <<_ACEOF
19568 /* confdefs.h.  */
19569 _ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h.  */
19573 #include <math.h>
19574 int
19575 main ()
19576 {
19577 float f; isinf(f);
19578   ;
19579   return 0;
19580 }
19581 _ACEOF
19582 rm -f conftest.$ac_objext
19583 if { (ac_try="$ac_compile"
19584 case "(($ac_try" in
19585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586   *) ac_try_echo=$ac_try;;
19587 esac
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589   (eval "$ac_compile") 2>conftest.er1
19590   ac_status=$?
19591   grep -v '^ *+' conftest.er1 >conftest.err
19592   rm -f conftest.er1
19593   cat conftest.err >&5
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); } &&
19596          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19597   { (case "(($ac_try" in
19598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599   *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602   (eval "$ac_try") 2>&5
19603   ac_status=$?
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); }; } &&
19606          { ac_try='test -s conftest.$ac_objext'
19607   { (case "(($ac_try" in
19608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609   *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612   (eval "$ac_try") 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; }; then
19616   ac_cv_func_isinf_in_math_h=yes
19617 else
19618   echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621         ac_cv_func_isinf_in_math_h=no
19622 fi
19623
19624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19625   ac_ext=c
19626 ac_cpp='$CPP $CPPFLAGS'
19627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19630
19631 fi
19632 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19633 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19634
19635 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19636
19637 cat >>confdefs.h <<\_ACEOF
19638 #define HAVE_ISINF_IN_MATH_H 1
19639 _ACEOF
19640
19641 fi
19642
19643 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19644 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19645 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19646   echo $ECHO_N "(cached) $ECHO_C" >&6
19647 else
19648   ac_ext=cpp
19649 ac_cpp='$CXXCPP $CPPFLAGS'
19650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19653
19654    cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 #include <cmath>
19661 int
19662 main ()
19663 {
19664 float f; isinf(f);
19665   ;
19666   return 0;
19667 }
19668 _ACEOF
19669 rm -f conftest.$ac_objext
19670 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19677   ac_status=$?
19678   grep -v '^ *+' conftest.er1 >conftest.err
19679   rm -f conftest.er1
19680   cat conftest.err >&5
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } &&
19683          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19684   { (case "(($ac_try" in
19685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686   *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689   (eval "$ac_try") 2>&5
19690   ac_status=$?
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); }; } &&
19693          { ac_try='test -s conftest.$ac_objext'
19694   { (case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_try") 2>&5
19700   ac_status=$?
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); }; }; then
19703   ac_cv_func_isinf_in_cmath=yes
19704 else
19705   echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708         ac_cv_func_isinf_in_cmath=no
19709 fi
19710
19711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19712   ac_ext=c
19713 ac_cpp='$CPP $CPPFLAGS'
19714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19717
19718 fi
19719 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19720 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19721
19722 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19723
19724 cat >>confdefs.h <<\_ACEOF
19725 #define HAVE_ISINF_IN_CMATH 1
19726 _ACEOF
19727
19728 fi
19729
19730 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19731 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19732 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19733   echo $ECHO_N "(cached) $ECHO_C" >&6
19734 else
19735   ac_ext=cpp
19736 ac_cpp='$CXXCPP $CPPFLAGS'
19737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19740
19741    cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h.  */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h.  */
19747 #include <cmath>
19748 int
19749 main ()
19750 {
19751 float f; std::isinf(f)}
19752   ;
19753   return 0;
19754 }
19755 _ACEOF
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19764   ac_status=$?
19765   grep -v '^ *+' conftest.er1 >conftest.err
19766   rm -f conftest.er1
19767   cat conftest.err >&5
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); } &&
19770          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19771   { (case "(($ac_try" in
19772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773   *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776   (eval "$ac_try") 2>&5
19777   ac_status=$?
19778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); }; } &&
19780          { ac_try='test -s conftest.$ac_objext'
19781   { (case "(($ac_try" in
19782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783   *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786   (eval "$ac_try") 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; }; then
19790   ac_cv_func_std_isinf_in_cmath=yes
19791 else
19792   echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795         ac_cv_func_std_isinf_in_cmath=no
19796 fi
19797
19798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19799   ac_ext=c
19800 ac_cpp='$CPP $CPPFLAGS'
19801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19804
19805 fi
19806 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19807 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19808
19809 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19810
19811 cat >>confdefs.h <<\_ACEOF
19812 #define HAVE_STD_ISINF_IN_CMATH 1
19813 _ACEOF
19814
19815 fi
19816
19817 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19818 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19819 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 else
19822   ac_ext=cpp
19823 ac_cpp='$CXXCPP $CPPFLAGS'
19824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19827
19828    cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h.  */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h.  */
19834 #include <ieeefp.h>
19835 int
19836 main ()
19837 {
19838 float f; finite(f);
19839   ;
19840   return 0;
19841 }
19842 _ACEOF
19843 rm -f conftest.$ac_objext
19844 if { (ac_try="$ac_compile"
19845 case "(($ac_try" in
19846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847   *) ac_try_echo=$ac_try;;
19848 esac
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850   (eval "$ac_compile") 2>conftest.er1
19851   ac_status=$?
19852   grep -v '^ *+' conftest.er1 >conftest.err
19853   rm -f conftest.er1
19854   cat conftest.err >&5
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); } &&
19857          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19858   { (case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863   (eval "$ac_try") 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); }; } &&
19867          { ac_try='test -s conftest.$ac_objext'
19868   { (case "(($ac_try" in
19869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870   *) ac_try_echo=$ac_try;;
19871 esac
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873   (eval "$ac_try") 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; }; then
19877   ac_cv_func_finite_in_ieeefp_h=yes
19878 else
19879   echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19881
19882         ac_cv_func_finite_in_ieeefp_h=no
19883 fi
19884
19885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19886   ac_ext=c
19887 ac_cpp='$CPP $CPPFLAGS'
19888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19891
19892 fi
19893 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19894 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19895
19896 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19897
19898 cat >>confdefs.h <<\_ACEOF
19899 #define HAVE_FINITE_IN_IEEEFP_H 1
19900 _ACEOF
19901
19902 fi
19903
19904
19905
19906 if test "$llvm_cv_platform_type" = "Unix" ; then
19907
19908
19909 for ac_header in stdlib.h unistd.h
19910 do
19911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916   echo $ECHO_N "(cached) $ECHO_C" >&6
19917 fi
19918 ac_res=`eval echo '${'$as_ac_Header'}'`
19919                { echo "$as_me:$LINENO: result: $ac_res" >&5
19920 echo "${ECHO_T}$ac_res" >&6; }
19921 else
19922   # Is the header compilable?
19923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19925 cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h.  */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h.  */
19931 $ac_includes_default
19932 #include <$ac_header>
19933 _ACEOF
19934 rm -f conftest.$ac_objext
19935 if { (ac_try="$ac_compile"
19936 case "(($ac_try" in
19937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938   *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941   (eval "$ac_compile") 2>conftest.er1
19942   ac_status=$?
19943   grep -v '^ *+' conftest.er1 >conftest.err
19944   rm -f conftest.er1
19945   cat conftest.err >&5
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); } &&
19948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19949   { (case "(($ac_try" in
19950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951   *) ac_try_echo=$ac_try;;
19952 esac
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954   (eval "$ac_try") 2>&5
19955   ac_status=$?
19956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957   (exit $ac_status); }; } &&
19958          { ac_try='test -s conftest.$ac_objext'
19959   { (case "(($ac_try" in
19960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961   *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964   (eval "$ac_try") 2>&5
19965   ac_status=$?
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); }; }; then
19968   ac_header_compiler=yes
19969 else
19970   echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19972
19973         ac_header_compiler=no
19974 fi
19975
19976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19978 echo "${ECHO_T}$ac_header_compiler" >&6; }
19979
19980 # Is the header present?
19981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19983 cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h.  */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h.  */
19989 #include <$ac_header>
19990 _ACEOF
19991 if { (ac_try="$ac_cpp conftest.$ac_ext"
19992 case "(($ac_try" in
19993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994   *) ac_try_echo=$ac_try;;
19995 esac
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19998   ac_status=$?
19999   grep -v '^ *+' conftest.er1 >conftest.err
20000   rm -f conftest.er1
20001   cat conftest.err >&5
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); } >/dev/null; then
20004   if test -s conftest.err; then
20005     ac_cpp_err=$ac_c_preproc_warn_flag
20006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20007   else
20008     ac_cpp_err=
20009   fi
20010 else
20011   ac_cpp_err=yes
20012 fi
20013 if test -z "$ac_cpp_err"; then
20014   ac_header_preproc=yes
20015 else
20016   echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20018
20019   ac_header_preproc=no
20020 fi
20021
20022 rm -f conftest.err conftest.$ac_ext
20023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20024 echo "${ECHO_T}$ac_header_preproc" >&6; }
20025
20026 # So?  What about this header?
20027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20028   yes:no: )
20029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20033     ac_header_preproc=yes
20034     ;;
20035   no:yes:* )
20036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20048     ( cat <<\_ASBOX
20049 ## ------------------------------------ ##
20050 ## Report this to http://llvm.org/bugs/ ##
20051 ## ------------------------------------ ##
20052 _ASBOX
20053      ) | sed "s/^/$as_me: WARNING:     /" >&2
20054     ;;
20055 esac
20056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059   echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061   eval "$as_ac_Header=\$ac_header_preproc"
20062 fi
20063 ac_res=`eval echo '${'$as_ac_Header'}'`
20064                { echo "$as_me:$LINENO: result: $ac_res" >&5
20065 echo "${ECHO_T}$ac_res" >&6; }
20066
20067 fi
20068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20069   cat >>confdefs.h <<_ACEOF
20070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20071 _ACEOF
20072
20073 fi
20074
20075 done
20076
20077
20078 for ac_func in getpagesize
20079 do
20080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20084   echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086   cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20094 #define $ac_func innocuous_$ac_func
20095
20096 /* System header to define __stub macros and hopefully few prototypes,
20097     which can conflict with char $ac_func (); below.
20098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20099     <limits.h> exists even on freestanding compilers.  */
20100
20101 #ifdef __STDC__
20102 # include <limits.h>
20103 #else
20104 # include <assert.h>
20105 #endif
20106
20107 #undef $ac_func
20108
20109 /* Override any GCC internal prototype to avoid an error.
20110    Use char because int might match the return type of a GCC
20111    builtin and then its argument prototype would still apply.  */
20112 #ifdef __cplusplus
20113 extern "C"
20114 #endif
20115 char $ac_func ();
20116 /* The GNU C library defines this for functions which it implements
20117     to always fail with ENOSYS.  Some functions are actually named
20118     something starting with __ and the normal name is an alias.  */
20119 #if defined __stub_$ac_func || defined __stub___$ac_func
20120 choke me
20121 #endif
20122
20123 int
20124 main ()
20125 {
20126 return $ac_func ();
20127   ;
20128   return 0;
20129 }
20130 _ACEOF
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (ac_try="$ac_link"
20133 case "(($ac_try" in
20134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135   *) ac_try_echo=$ac_try;;
20136 esac
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138   (eval "$ac_link") 2>conftest.er1
20139   ac_status=$?
20140   grep -v '^ *+' conftest.er1 >conftest.err
20141   rm -f conftest.er1
20142   cat conftest.err >&5
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } &&
20145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20146   { (case "(($ac_try" in
20147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148   *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151   (eval "$ac_try") 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; } &&
20155          { ac_try='test -s conftest$ac_exeext'
20156   { (case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_try") 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); }; }; then
20165   eval "$as_ac_var=yes"
20166 else
20167   echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20169
20170         eval "$as_ac_var=no"
20171 fi
20172
20173 rm -f core conftest.err conftest.$ac_objext \
20174       conftest$ac_exeext conftest.$ac_ext
20175 fi
20176 ac_res=`eval echo '${'$as_ac_var'}'`
20177                { echo "$as_me:$LINENO: result: $ac_res" >&5
20178 echo "${ECHO_T}$ac_res" >&6; }
20179 if test `eval echo '${'$as_ac_var'}'` = yes; then
20180   cat >>confdefs.h <<_ACEOF
20181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20182 _ACEOF
20183
20184 fi
20185 done
20186
20187 { echo "$as_me:$LINENO: checking for working mmap" >&5
20188 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20189 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20190   echo $ECHO_N "(cached) $ECHO_C" >&6
20191 else
20192   if test "$cross_compiling" = yes; then
20193   ac_cv_func_mmap_fixed_mapped=no
20194 else
20195   cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h.  */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h.  */
20201 $ac_includes_default
20202 /* malloc might have been renamed as rpl_malloc. */
20203 #undef malloc
20204
20205 /* Thanks to Mike Haertel and Jim Avera for this test.
20206    Here is a matrix of mmap possibilities:
20207         mmap private not fixed
20208         mmap private fixed at somewhere currently unmapped
20209         mmap private fixed at somewhere already mapped
20210         mmap shared not fixed
20211         mmap shared fixed at somewhere currently unmapped
20212         mmap shared fixed at somewhere already mapped
20213    For private mappings, we should verify that changes cannot be read()
20214    back from the file, nor mmap's back from the file at a different
20215    address.  (There have been systems where private was not correctly
20216    implemented like the infamous i386 svr4.0, and systems where the
20217    VM page cache was not coherent with the file system buffer cache
20218    like early versions of FreeBSD and possibly contemporary NetBSD.)
20219    For shared mappings, we should conversely verify that changes get
20220    propagated back to all the places they're supposed to be.
20221
20222    Grep wants private fixed already mapped.
20223    The main things grep needs to know about mmap are:
20224    * does it exist and is it safe to write into the mmap'd area
20225    * how to use it (BSD variants)  */
20226
20227 #include <fcntl.h>
20228 #include <sys/mman.h>
20229
20230 #if !STDC_HEADERS && !HAVE_STDLIB_H
20231 char *malloc ();
20232 #endif
20233
20234 /* This mess was copied from the GNU getpagesize.h.  */
20235 #if !HAVE_GETPAGESIZE
20236 /* Assume that all systems that can run configure have sys/param.h.  */
20237 # if !HAVE_SYS_PARAM_H
20238 #  define HAVE_SYS_PARAM_H 1
20239 # endif
20240
20241 # ifdef _SC_PAGESIZE
20242 #  define getpagesize() sysconf(_SC_PAGESIZE)
20243 # else /* no _SC_PAGESIZE */
20244 #  if HAVE_SYS_PARAM_H
20245 #   include <sys/param.h>
20246 #   ifdef EXEC_PAGESIZE
20247 #    define getpagesize() EXEC_PAGESIZE
20248 #   else /* no EXEC_PAGESIZE */
20249 #    ifdef NBPG
20250 #     define getpagesize() NBPG * CLSIZE
20251 #     ifndef CLSIZE
20252 #      define CLSIZE 1
20253 #     endif /* no CLSIZE */
20254 #    else /* no NBPG */
20255 #     ifdef NBPC
20256 #      define getpagesize() NBPC
20257 #     else /* no NBPC */
20258 #      ifdef PAGESIZE
20259 #       define getpagesize() PAGESIZE
20260 #      endif /* PAGESIZE */
20261 #     endif /* no NBPC */
20262 #    endif /* no NBPG */
20263 #   endif /* no EXEC_PAGESIZE */
20264 #  else /* no HAVE_SYS_PARAM_H */
20265 #   define getpagesize() 8192   /* punt totally */
20266 #  endif /* no HAVE_SYS_PARAM_H */
20267 # endif /* no _SC_PAGESIZE */
20268
20269 #endif /* no HAVE_GETPAGESIZE */
20270
20271 int
20272 main ()
20273 {
20274   char *data, *data2, *data3;
20275   int i, pagesize;
20276   int fd;
20277
20278   pagesize = getpagesize ();
20279
20280   /* First, make a file with some known garbage in it. */
20281   data = (char *) malloc (pagesize);
20282   if (!data)
20283     return 1;
20284   for (i = 0; i < pagesize; ++i)
20285     *(data + i) = rand ();
20286   umask (0);
20287   fd = creat ("conftest.mmap", 0600);
20288   if (fd < 0)
20289     return 1;
20290   if (write (fd, data, pagesize) != pagesize)
20291     return 1;
20292   close (fd);
20293
20294   /* Next, try to mmap the file at a fixed address which already has
20295      something else allocated at it.  If we can, also make sure that
20296      we see the same garbage.  */
20297   fd = open ("conftest.mmap", O_RDWR);
20298   if (fd < 0)
20299     return 1;
20300   data2 = (char *) malloc (2 * pagesize);
20301   if (!data2)
20302     return 1;
20303   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20304   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20305                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20306     return 1;
20307   for (i = 0; i < pagesize; ++i)
20308     if (*(data + i) != *(data2 + i))
20309       return 1;
20310
20311   /* Finally, make sure that changes to the mapped area do not
20312      percolate back to the file as seen by read().  (This is a bug on
20313      some variants of i386 svr4.0.)  */
20314   for (i = 0; i < pagesize; ++i)
20315     *(data2 + i) = *(data2 + i) + 1;
20316   data3 = (char *) malloc (pagesize);
20317   if (!data3)
20318     return 1;
20319   if (read (fd, data3, pagesize) != pagesize)
20320     return 1;
20321   for (i = 0; i < pagesize; ++i)
20322     if (*(data + i) != *(data3 + i))
20323       return 1;
20324   close (fd);
20325   return 0;
20326 }
20327 _ACEOF
20328 rm -f conftest$ac_exeext
20329 if { (ac_try="$ac_link"
20330 case "(($ac_try" in
20331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332   *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335   (eval "$ac_link") 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20339   { (case "(($ac_try" in
20340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341   *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344   (eval "$ac_try") 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; }; then
20348   ac_cv_func_mmap_fixed_mapped=yes
20349 else
20350   echo "$as_me: program exited with status $ac_status" >&5
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 ( exit $ac_status )
20355 ac_cv_func_mmap_fixed_mapped=no
20356 fi
20357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20358 fi
20359
20360
20361 fi
20362 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20363 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20364 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20365
20366 cat >>confdefs.h <<\_ACEOF
20367 #define HAVE_MMAP 1
20368 _ACEOF
20369
20370 fi
20371 rm -f conftest.mmap
20372
20373   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20374 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20375 if test "${ac_cv_func_mmap_file+set}" = set; then
20376   echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378    ac_ext=c
20379 ac_cpp='$CPP $CPPFLAGS'
20380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20383
20384   if test "$cross_compiling" = yes; then
20385   ac_cv_func_mmap_file=no
20386 else
20387   cat >conftest.$ac_ext <<_ACEOF
20388
20389     /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394
20395 #include <sys/types.h>
20396 #include <sys/mman.h>
20397 #include <fcntl.h>
20398
20399 int
20400 main ()
20401 {
20402
20403   int fd;
20404   fd = creat ("foo",0777);
20405   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20406   unlink ("foo");
20407   return (fd != (int) MAP_FAILED);
20408   ;
20409   return 0;
20410 }
20411 _ACEOF
20412 rm -f conftest$ac_exeext
20413 if { (ac_try="$ac_link"
20414 case "(($ac_try" in
20415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416   *) ac_try_echo=$ac_try;;
20417 esac
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419   (eval "$ac_link") 2>&5
20420   ac_status=$?
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20423   { (case "(($ac_try" in
20424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425   *) ac_try_echo=$ac_try;;
20426 esac
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428   (eval "$ac_try") 2>&5
20429   ac_status=$?
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); }; }; then
20432   ac_cv_func_mmap_file=yes
20433 else
20434   echo "$as_me: program exited with status $ac_status" >&5
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20437
20438 ( exit $ac_status )
20439 ac_cv_func_mmap_file=no
20440 fi
20441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20442 fi
20443
20444
20445   ac_ext=c
20446 ac_cpp='$CPP $CPPFLAGS'
20447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20450
20451
20452 fi
20453 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20454 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20455 if test "$ac_cv_func_mmap_file" = yes; then
20456
20457 cat >>confdefs.h <<\_ACEOF
20458 #define HAVE_MMAP_FILE
20459 _ACEOF
20460
20461    MMAP_FILE=yes
20462
20463 fi
20464
20465   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20466 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20467 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470   if test "$llvm_cv_os_type" = "Interix" ; then
20471    ac_cv_need_dev_zero_for_mmap=yes
20472  else
20473    ac_cv_need_dev_zero_for_mmap=no
20474  fi
20475
20476 fi
20477 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20478 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20479 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20480
20481 cat >>confdefs.h <<\_ACEOF
20482 #define NEED_DEV_ZERO_FOR_MMAP 1
20483 _ACEOF
20484
20485 fi
20486
20487   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20488   then
20489     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20490 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20491   fi
20492   if test "$ac_cv_func_mmap_file" = "no"
20493   then
20494     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20495 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20496   fi
20497 fi
20498
20499 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20500 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20501 ac_ext=cpp
20502 ac_cpp='$CXXCPP $CPPFLAGS'
20503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20506
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513 int main() {
20514         volatile unsigned long val = 1;
20515         __sync_synchronize();
20516         __sync_val_compare_and_swap(&val, 1, 0);
20517         __sync_add_and_fetch(&val, 1);
20518         __sync_sub_and_fetch(&val, 1);
20519         return 0;
20520       }
20521
20522 _ACEOF
20523 rm -f conftest.$ac_objext conftest$ac_exeext
20524 if { (ac_try="$ac_link"
20525 case "(($ac_try" in
20526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527   *) ac_try_echo=$ac_try;;
20528 esac
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530   (eval "$ac_link") 2>conftest.er1
20531   ac_status=$?
20532   grep -v '^ *+' conftest.er1 >conftest.err
20533   rm -f conftest.er1
20534   cat conftest.err >&5
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); } &&
20537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20538   { (case "(($ac_try" in
20539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540   *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543   (eval "$ac_try") 2>&5
20544   ac_status=$?
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); }; } &&
20547          { ac_try='test -s conftest$ac_exeext'
20548   { (case "(($ac_try" in
20549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550   *) ac_try_echo=$ac_try;;
20551 esac
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553   (eval "$ac_try") 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); }; }; then
20557   ac_ext=c
20558 ac_cpp='$CPP $CPPFLAGS'
20559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20562
20563   { echo "$as_me:$LINENO: result: yes" >&5
20564 echo "${ECHO_T}yes" >&6; }
20565
20566 cat >>confdefs.h <<\_ACEOF
20567 #define LLVM_HAS_ATOMICS 1
20568 _ACEOF
20569
20570 else
20571   echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20573
20574         { echo "$as_me:$LINENO: result: no" >&5
20575 echo "${ECHO_T}no" >&6; }
20576
20577 cat >>confdefs.h <<\_ACEOF
20578 #define LLVM_HAS_ATOMICS 0
20579 _ACEOF
20580
20581   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20582 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20583 fi
20584
20585 rm -f core conftest.err conftest.$ac_objext \
20586       conftest$ac_exeext conftest.$ac_ext
20587
20588
20589 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20590   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20591 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20592 if test "${llvm_cv_linux_mixed+set}" = set; then
20593   echo $ECHO_N "(cached) $ECHO_C" >&6
20594 else
20595    ac_ext=c
20596 ac_cpp='$CPP $CPPFLAGS'
20597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20600
20601   cat >conftest.$ac_ext <<_ACEOF
20602 /* confdefs.h.  */
20603 _ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h.  */
20607 #ifndef __x86_64__
20608        error: Not x86-64 even if uname says so!
20609       #endif
20610
20611 int
20612 main ()
20613 {
20614
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623   *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626   (eval "$ac_compile") 2>conftest.er1
20627   ac_status=$?
20628   grep -v '^ *+' conftest.er1 >conftest.err
20629   rm -f conftest.er1
20630   cat conftest.err >&5
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); } &&
20633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634   { (case "(($ac_try" in
20635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636   *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639   (eval "$ac_try") 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); }; } &&
20643          { ac_try='test -s conftest.$ac_objext'
20644   { (case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649   (eval "$ac_try") 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; }; then
20653   llvm_cv_linux_mixed=no
20654 else
20655   echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20657
20658         llvm_cv_linux_mixed=yes
20659 fi
20660
20661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662   ac_ext=c
20663 ac_cpp='$CPP $CPPFLAGS'
20664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20667
20668
20669 fi
20670 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20671 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20672
20673   if test "$llvm_cv_linux_mixed" = "yes"; then
20674     llvm_cv_target_arch="x86"
20675     ARCH="x86"
20676   fi
20677 fi
20678
20679
20680 for ac_func in __dso_handle
20681 do
20682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20686   echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688   cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h.  */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h.  */
20694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20696 #define $ac_func innocuous_$ac_func
20697
20698 /* System header to define __stub macros and hopefully few prototypes,
20699     which can conflict with char $ac_func (); below.
20700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20701     <limits.h> exists even on freestanding compilers.  */
20702
20703 #ifdef __STDC__
20704 # include <limits.h>
20705 #else
20706 # include <assert.h>
20707 #endif
20708
20709 #undef $ac_func
20710
20711 /* Override any GCC internal prototype to avoid an error.
20712    Use char because int might match the return type of a GCC
20713    builtin and then its argument prototype would still apply.  */
20714 #ifdef __cplusplus
20715 extern "C"
20716 #endif
20717 char $ac_func ();
20718 /* The GNU C library defines this for functions which it implements
20719     to always fail with ENOSYS.  Some functions are actually named
20720     something starting with __ and the normal name is an alias.  */
20721 #if defined __stub_$ac_func || defined __stub___$ac_func
20722 choke me
20723 #endif
20724
20725 int
20726 main ()
20727 {
20728 return $ac_func ();
20729   ;
20730   return 0;
20731 }
20732 _ACEOF
20733 rm -f conftest.$ac_objext conftest$ac_exeext
20734 if { (ac_try="$ac_link"
20735 case "(($ac_try" in
20736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737   *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740   (eval "$ac_link") 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } &&
20747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20748   { (case "(($ac_try" in
20749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750   *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753   (eval "$ac_try") 2>&5
20754   ac_status=$?
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); }; } &&
20757          { ac_try='test -s conftest$ac_exeext'
20758   { (case "(($ac_try" in
20759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760   *) ac_try_echo=$ac_try;;
20761 esac
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763   (eval "$ac_try") 2>&5
20764   ac_status=$?
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); }; }; then
20767   eval "$as_ac_var=yes"
20768 else
20769   echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20771
20772         eval "$as_ac_var=no"
20773 fi
20774
20775 rm -f core conftest.err conftest.$ac_objext \
20776       conftest$ac_exeext conftest.$ac_ext
20777 fi
20778 ac_res=`eval echo '${'$as_ac_var'}'`
20779                { echo "$as_me:$LINENO: result: $ac_res" >&5
20780 echo "${ECHO_T}$ac_res" >&6; }
20781 if test `eval echo '${'$as_ac_var'}'` = yes; then
20782   cat >>confdefs.h <<_ACEOF
20783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20784 _ACEOF
20785
20786 fi
20787 done
20788
20789
20790 SHLIBEXT=$libltdl_cv_shlibext
20791
20792
20793 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20794
20795
20796 if test "${prefix}" = "NONE" ; then
20797   prefix="/usr/local"
20798 fi
20799 eval LLVM_PREFIX="${prefix}";
20800 eval LLVM_BINDIR="${prefix}/bin";
20801 eval LLVM_LIBDIR="${prefix}/lib";
20802 eval LLVM_DATADIR="${prefix}/share/llvm";
20803 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20804 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20805 eval LLVM_INCLUDEDIR="${prefix}/include";
20806 eval LLVM_INFODIR="${prefix}/info";
20807 eval LLVM_MANDIR="${prefix}/man";
20808 LLVM_CONFIGTIME=`date`
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821 cat >>confdefs.h <<_ACEOF
20822 #define LLVM_PREFIX "$LLVM_PREFIX"
20823 _ACEOF
20824
20825
20826 cat >>confdefs.h <<_ACEOF
20827 #define LLVM_BINDIR "$LLVM_BINDIR"
20828 _ACEOF
20829
20830
20831 cat >>confdefs.h <<_ACEOF
20832 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20833 _ACEOF
20834
20835
20836 cat >>confdefs.h <<_ACEOF
20837 #define LLVM_DATADIR "$LLVM_DATADIR"
20838 _ACEOF
20839
20840
20841 cat >>confdefs.h <<_ACEOF
20842 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20843 _ACEOF
20844
20845
20846 cat >>confdefs.h <<_ACEOF
20847 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20848 _ACEOF
20849
20850
20851 cat >>confdefs.h <<_ACEOF
20852 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20853 _ACEOF
20854
20855
20856 cat >>confdefs.h <<_ACEOF
20857 #define LLVM_INFODIR "$LLVM_INFODIR"
20858 _ACEOF
20859
20860
20861 cat >>confdefs.h <<_ACEOF
20862 #define LLVM_MANDIR "$LLVM_MANDIR"
20863 _ACEOF
20864
20865
20866 cat >>confdefs.h <<_ACEOF
20867 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20868 _ACEOF
20869
20870
20871 cat >>confdefs.h <<_ACEOF
20872 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20873 _ACEOF
20874
20875
20876 if test "$BINDINGS_TO_BUILD" = auto ; then
20877   BINDINGS_TO_BUILD=""
20878   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20879     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20880   fi
20881 fi
20882 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20883
20884
20885 ALL_BINDINGS=ocaml
20886
20887
20888 binding_prereqs_failed=0
20889 for a_binding in $BINDINGS_TO_BUILD ; do
20890   case "$a_binding" in
20891   ocaml)
20892     if test "x$OCAMLC" = x ; then
20893       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20894 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20895       binding_prereqs_failed=1
20896     fi
20897     if test "x$OCAMLDEP" = x ; then
20898       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20899 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20900       binding_prereqs_failed=1
20901     fi
20902     if test "x$OCAMLOPT" = x ; then
20903       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20904 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20905           fi
20906     if test "x$with_ocaml_libdir" != xauto ; then
20907       OCAML_LIBDIR=$with_ocaml_libdir
20908
20909     else
20910       ocaml_stdlib="`"$OCAMLC" -where`"
20911       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20912       then
20913         # ocaml stdlib is beneath our prefix; use stdlib
20914         OCAML_LIBDIR=$ocaml_stdlib
20915
20916       else
20917         # ocaml stdlib is outside our prefix; use libdir/ocaml
20918         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20919
20920       fi
20921     fi
20922     ;;
20923   esac
20924 done
20925 if test "$binding_prereqs_failed" = 1 ; then
20926   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20927 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20928    { (exit 1); exit 1; }; }
20929 fi
20930
20931 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20932 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20933 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20934   echo $ECHO_N "(cached) $ECHO_C" >&6
20935 else
20936    ac_ext=cpp
20937 ac_cpp='$CXXCPP $CPPFLAGS'
20938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20941
20942   oldcxxflags="$CXXFLAGS"
20943   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
20944   cat >conftest.$ac_ext <<_ACEOF
20945 /* confdefs.h.  */
20946 _ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h.  */
20950 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20951 int
20952 main ()
20953 {
20954 X<int>().f();
20955   ;
20956   return 0;
20957 }
20958 _ACEOF
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963   *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966   (eval "$ac_compile") 2>conftest.er1
20967   ac_status=$?
20968   grep -v '^ *+' conftest.er1 >conftest.err
20969   rm -f conftest.er1
20970   cat conftest.err >&5
20971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); } &&
20973          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20974   { (case "(($ac_try" in
20975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976   *) ac_try_echo=$ac_try;;
20977 esac
20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979   (eval "$ac_try") 2>&5
20980   ac_status=$?
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); }; } &&
20983          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
20990   ac_status=$?
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); }; }; then
20993   llvm_cv_cxx_visibility_inlines_hidden=yes
20994 else
20995   echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998         llvm_cv_cxx_visibility_inlines_hidden=no
20999 fi
21000
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002   CXXFLAGS="$oldcxxflags"
21003   ac_ext=c
21004 ac_cpp='$CPP $CPPFLAGS'
21005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21008
21009
21010 fi
21011 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21012 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21013 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21014   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21015
21016 else
21017   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21018
21019 fi
21020
21021
21022 if test "$llvm_cv_link_use_r" = "yes" ; then
21023   RPATH="-Wl,-R"
21024 else
21025   RPATH="-Wl,-rpath"
21026 fi
21027
21028
21029 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21030   RDYNAMIC="-Wl,-export-dynamic"
21031 else
21032   RDYNAMIC=""
21033 fi
21034
21035
21036
21037 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21038
21039
21040
21041
21042
21043
21044 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21045
21046 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21047
21048 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21049
21050 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21051
21052 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21053
21054
21055 ac_config_files="$ac_config_files Makefile.config"
21056
21057
21058 ac_config_files="$ac_config_files llvm.spec"
21059
21060
21061 ac_config_files="$ac_config_files docs/doxygen.cfg"
21062
21063
21064 if test "${clang_src_root}" = ""; then
21065   clang_src_root="$srcdir/tools/clang"
21066 fi
21067 if test -f ${clang_src_root}/README.txt; then
21068     configh="include/clang/Config/config.h"
21069   doxy="docs/doxygen.cfg"
21070   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21071
21072   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21073
21074 fi
21075
21076 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21077
21078
21079 ac_config_commands="$ac_config_commands setup"
21080
21081 ac_config_commands="$ac_config_commands Makefile"
21082
21083
21084 ac_config_commands="$ac_config_commands Makefile.common"
21085
21086
21087 ac_config_commands="$ac_config_commands examples/Makefile"
21088
21089
21090 ac_config_commands="$ac_config_commands lib/Makefile"
21091
21092
21093 ac_config_commands="$ac_config_commands runtime/Makefile"
21094
21095
21096 ac_config_commands="$ac_config_commands test/Makefile"
21097
21098
21099 ac_config_commands="$ac_config_commands test/Makefile.tests"
21100
21101
21102 ac_config_commands="$ac_config_commands unittests/Makefile"
21103
21104
21105 ac_config_commands="$ac_config_commands tools/Makefile"
21106
21107
21108 ac_config_commands="$ac_config_commands utils/Makefile"
21109
21110
21111 ac_config_commands="$ac_config_commands projects/Makefile"
21112
21113
21114 ac_config_commands="$ac_config_commands bindings/Makefile"
21115
21116
21117 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21118
21119
21120
21121 cat >confcache <<\_ACEOF
21122 # This file is a shell script that caches the results of configure
21123 # tests run on this system so they can be shared between configure
21124 # scripts and configure runs, see configure's option --config-cache.
21125 # It is not useful on other systems.  If it contains results you don't
21126 # want to keep, you may remove or edit it.
21127 #
21128 # config.status only pays attention to the cache file if you give it
21129 # the --recheck option to rerun configure.
21130 #
21131 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21132 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21133 # following values.
21134
21135 _ACEOF
21136
21137 # The following way of writing the cache mishandles newlines in values,
21138 # but we know of no workaround that is simple, portable, and efficient.
21139 # So, we kill variables containing newlines.
21140 # Ultrix sh set writes to stderr and can't be redirected directly,
21141 # and sets the high bit in the cache file unless we assign to the vars.
21142 (
21143   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21144     eval ac_val=\$$ac_var
21145     case $ac_val in #(
21146     *${as_nl}*)
21147       case $ac_var in #(
21148       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21149 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21150       esac
21151       case $ac_var in #(
21152       _ | IFS | as_nl) ;; #(
21153       *) $as_unset $ac_var ;;
21154       esac ;;
21155     esac
21156   done
21157
21158   (set) 2>&1 |
21159     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21160     *${as_nl}ac_space=\ *)
21161       # `set' does not quote correctly, so add quotes (double-quote
21162       # substitution turns \\\\ into \\, and sed turns \\ into \).
21163       sed -n \
21164         "s/'/'\\\\''/g;
21165           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21166       ;; #(
21167     *)
21168       # `set' quotes correctly as required by POSIX, so do not add quotes.
21169       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21170       ;;
21171     esac |
21172     sort
21173 ) |
21174   sed '
21175      /^ac_cv_env_/b end
21176      t clear
21177      :clear
21178      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21179      t end
21180      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21181      :end' >>confcache
21182 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21183   if test -w "$cache_file"; then
21184     test "x$cache_file" != "x/dev/null" &&
21185       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21186 echo "$as_me: updating cache $cache_file" >&6;}
21187     cat confcache >$cache_file
21188   else
21189     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21190 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21191   fi
21192 fi
21193 rm -f confcache
21194
21195 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21196 # Let make expand exec_prefix.
21197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21198
21199 DEFS=-DHAVE_CONFIG_H
21200
21201 ac_libobjs=
21202 ac_ltlibobjs=
21203 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21204   # 1. Remove the extension, and $U if already installed.
21205   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21206   ac_i=`echo "$ac_i" | sed "$ac_script"`
21207   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21208   #    will be set to the directory where LIBOBJS objects are built.
21209   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21210   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21211 done
21212 LIBOBJS=$ac_libobjs
21213
21214 LTLIBOBJS=$ac_ltlibobjs
21215
21216
21217 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21218   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21219 Usually this means the macro was only invoked conditionally." >&5
21220 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21221 Usually this means the macro was only invoked conditionally." >&2;}
21222    { (exit 1); exit 1; }; }
21223 fi
21224 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21225   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21226 Usually this means the macro was only invoked conditionally." >&5
21227 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21228 Usually this means the macro was only invoked conditionally." >&2;}
21229    { (exit 1); exit 1; }; }
21230 fi
21231
21232 : ${CONFIG_STATUS=./config.status}
21233 ac_clean_files_save=$ac_clean_files
21234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21235 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21236 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21237 cat >$CONFIG_STATUS <<_ACEOF
21238 #! $SHELL
21239 # Generated by $as_me.
21240 # Run this file to recreate the current configuration.
21241 # Compiler output produced by configure, useful for debugging
21242 # configure, is in config.log if it exists.
21243
21244 debug=false
21245 ac_cs_recheck=false
21246 ac_cs_silent=false
21247 SHELL=\${CONFIG_SHELL-$SHELL}
21248 _ACEOF
21249
21250 cat >>$CONFIG_STATUS <<\_ACEOF
21251 ## --------------------- ##
21252 ## M4sh Initialization.  ##
21253 ## --------------------- ##
21254
21255 # Be Bourne compatible
21256 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21257   emulate sh
21258   NULLCMD=:
21259   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21260   # is contrary to our usage.  Disable this feature.
21261   alias -g '${1+"$@"}'='"$@"'
21262   setopt NO_GLOB_SUBST
21263 else
21264   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21265 fi
21266 BIN_SH=xpg4; export BIN_SH # for Tru64
21267 DUALCASE=1; export DUALCASE # for MKS sh
21268
21269
21270 # PATH needs CR
21271 # Avoid depending upon Character Ranges.
21272 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21275 as_cr_digits='0123456789'
21276 as_cr_alnum=$as_cr_Letters$as_cr_digits
21277
21278 # The user is always right.
21279 if test "${PATH_SEPARATOR+set}" != set; then
21280   echo "#! /bin/sh" >conf$$.sh
21281   echo  "exit 0"   >>conf$$.sh
21282   chmod +x conf$$.sh
21283   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21284     PATH_SEPARATOR=';'
21285   else
21286     PATH_SEPARATOR=:
21287   fi
21288   rm -f conf$$.sh
21289 fi
21290
21291 # Support unset when possible.
21292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21293   as_unset=unset
21294 else
21295   as_unset=false
21296 fi
21297
21298
21299 # IFS
21300 # We need space, tab and new line, in precisely that order.  Quoting is
21301 # there to prevent editors from complaining about space-tab.
21302 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21303 # splitting by setting IFS to empty value.)
21304 as_nl='
21305 '
21306 IFS=" ""        $as_nl"
21307
21308 # Find who we are.  Look in the path if we contain no directory separator.
21309 case $0 in
21310   *[\\/]* ) as_myself=$0 ;;
21311   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21312 for as_dir in $PATH
21313 do
21314   IFS=$as_save_IFS
21315   test -z "$as_dir" && as_dir=.
21316   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21317 done
21318 IFS=$as_save_IFS
21319
21320      ;;
21321 esac
21322 # We did not find ourselves, most probably we were run as `sh COMMAND'
21323 # in which case we are not to be found in the path.
21324 if test "x$as_myself" = x; then
21325   as_myself=$0
21326 fi
21327 if test ! -f "$as_myself"; then
21328   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21329   { (exit 1); exit 1; }
21330 fi
21331
21332 # Work around bugs in pre-3.0 UWIN ksh.
21333 for as_var in ENV MAIL MAILPATH
21334 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21335 done
21336 PS1='$ '
21337 PS2='> '
21338 PS4='+ '
21339
21340 # NLS nuisances.
21341 for as_var in \
21342   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21343   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21344   LC_TELEPHONE LC_TIME
21345 do
21346   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21347     eval $as_var=C; export $as_var
21348   else
21349     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21350   fi
21351 done
21352
21353 # Required to use basename.
21354 if expr a : '\(a\)' >/dev/null 2>&1 &&
21355    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21356   as_expr=expr
21357 else
21358   as_expr=false
21359 fi
21360
21361 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21362   as_basename=basename
21363 else
21364   as_basename=false
21365 fi
21366
21367
21368 # Name of the executable.
21369 as_me=`$as_basename -- "$0" ||
21370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21371          X"$0" : 'X\(//\)$' \| \
21372          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21373 echo X/"$0" |
21374     sed '/^.*\/\([^/][^/]*\)\/*$/{
21375             s//\1/
21376             q
21377           }
21378           /^X\/\(\/\/\)$/{
21379             s//\1/
21380             q
21381           }
21382           /^X\/\(\/\).*/{
21383             s//\1/
21384             q
21385           }
21386           s/.*/./; q'`
21387
21388 # CDPATH.
21389 $as_unset CDPATH
21390
21391
21392
21393   as_lineno_1=$LINENO
21394   as_lineno_2=$LINENO
21395   test "x$as_lineno_1" != "x$as_lineno_2" &&
21396   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21397
21398   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21399   # uniformly replaced by the line number.  The first 'sed' inserts a
21400   # line-number line after each line using $LINENO; the second 'sed'
21401   # does the real work.  The second script uses 'N' to pair each
21402   # line-number line with the line containing $LINENO, and appends
21403   # trailing '-' during substitution so that $LINENO is not a special
21404   # case at line end.
21405   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21406   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21407   # E. McMahon (1931-1989) for sed's syntax.  :-)
21408   sed -n '
21409     p
21410     /[$]LINENO/=
21411   ' <$as_myself |
21412     sed '
21413       s/[$]LINENO.*/&-/
21414       t lineno
21415       b
21416       :lineno
21417       N
21418       :loop
21419       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21420       t loop
21421       s/-\n.*//
21422     ' >$as_me.lineno &&
21423   chmod +x "$as_me.lineno" ||
21424     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21425    { (exit 1); exit 1; }; }
21426
21427   # Don't try to exec as it changes $[0], causing all sort of problems
21428   # (the dirname of $[0] is not the place where we might find the
21429   # original and so on.  Autoconf is especially sensitive to this).
21430   . "./$as_me.lineno"
21431   # Exit status is that of the last command.
21432   exit
21433 }
21434
21435
21436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21437   as_dirname=dirname
21438 else
21439   as_dirname=false
21440 fi
21441
21442 ECHO_C= ECHO_N= ECHO_T=
21443 case `echo -n x` in
21444 -n*)
21445   case `echo 'x\c'` in
21446   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21447   *)   ECHO_C='\c';;
21448   esac;;
21449 *)
21450   ECHO_N='-n';;
21451 esac
21452
21453 if expr a : '\(a\)' >/dev/null 2>&1 &&
21454    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21455   as_expr=expr
21456 else
21457   as_expr=false
21458 fi
21459
21460 rm -f conf$$ conf$$.exe conf$$.file
21461 if test -d conf$$.dir; then
21462   rm -f conf$$.dir/conf$$.file
21463 else
21464   rm -f conf$$.dir
21465   mkdir conf$$.dir
21466 fi
21467 echo >conf$$.file
21468 if ln -s conf$$.file conf$$ 2>/dev/null; then
21469   as_ln_s='ln -s'
21470   # ... but there are two gotchas:
21471   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21472   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21473   # In both cases, we have to default to `cp -p'.
21474   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21475     as_ln_s='cp -p'
21476 elif ln conf$$.file conf$$ 2>/dev/null; then
21477   as_ln_s=ln
21478 else
21479   as_ln_s='cp -p'
21480 fi
21481 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21482 rmdir conf$$.dir 2>/dev/null
21483
21484 if mkdir -p . 2>/dev/null; then
21485   as_mkdir_p=:
21486 else
21487   test -d ./-p && rmdir ./-p
21488   as_mkdir_p=false
21489 fi
21490
21491 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21492 # systems may use methods other than mode bits to determine executability.
21493 cat >conf$$.file <<_ASEOF
21494 #! /bin/sh
21495 exit 0
21496 _ASEOF
21497 chmod +x conf$$.file
21498 if test -x conf$$.file >/dev/null 2>&1; then
21499   as_executable_p="test -x"
21500 else
21501   as_executable_p=:
21502 fi
21503 rm -f conf$$.file
21504
21505 # Sed expression to map a string onto a valid CPP name.
21506 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21507
21508 # Sed expression to map a string onto a valid variable name.
21509 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21510
21511
21512 exec 6>&1
21513
21514 # Save the log message, to keep $[0] and so on meaningful, and to
21515 # report actual input values of CONFIG_FILES etc. instead of their
21516 # values after options handling.
21517 ac_log="
21518 This file was extended by LLVM $as_me 3.1svn, which was
21519 generated by GNU Autoconf 2.60.  Invocation command line was
21520
21521   CONFIG_FILES    = $CONFIG_FILES
21522   CONFIG_HEADERS  = $CONFIG_HEADERS
21523   CONFIG_LINKS    = $CONFIG_LINKS
21524   CONFIG_COMMANDS = $CONFIG_COMMANDS
21525   $ $0 $@
21526
21527 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21528 "
21529
21530 _ACEOF
21531
21532 cat >>$CONFIG_STATUS <<_ACEOF
21533 # Files that config.status was made for.
21534 config_files="$ac_config_files"
21535 config_headers="$ac_config_headers"
21536 config_commands="$ac_config_commands"
21537
21538 _ACEOF
21539
21540 cat >>$CONFIG_STATUS <<\_ACEOF
21541 ac_cs_usage="\
21542 \`$as_me' instantiates files from templates according to the
21543 current configuration.
21544
21545 Usage: $0 [OPTIONS] [FILE]...
21546
21547   -h, --help       print this help, then exit
21548   -V, --version    print version number, then exit
21549   -q, --quiet      do not print progress messages
21550   -d, --debug      don't remove temporary files
21551       --recheck    update $as_me by reconfiguring in the same conditions
21552   --file=FILE[:TEMPLATE]
21553                    instantiate the configuration file FILE
21554   --header=FILE[:TEMPLATE]
21555                    instantiate the configuration header FILE
21556
21557 Configuration files:
21558 $config_files
21559
21560 Configuration headers:
21561 $config_headers
21562
21563 Configuration commands:
21564 $config_commands
21565
21566 Report bugs to <bug-autoconf@gnu.org>."
21567
21568 _ACEOF
21569 cat >>$CONFIG_STATUS <<_ACEOF
21570 ac_cs_version="\\
21571 LLVM config.status 3.1svn
21572 configured by $0, generated by GNU Autoconf 2.60,
21573   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21574
21575 Copyright (C) 2006 Free Software Foundation, Inc.
21576 This config.status script is free software; the Free Software Foundation
21577 gives unlimited permission to copy, distribute and modify it."
21578
21579 ac_pwd='$ac_pwd'
21580 srcdir='$srcdir'
21581 INSTALL='$INSTALL'
21582 _ACEOF
21583
21584 cat >>$CONFIG_STATUS <<\_ACEOF
21585 # If no file are specified by the user, then we need to provide default
21586 # value.  By we need to know if files were specified by the user.
21587 ac_need_defaults=:
21588 while test $# != 0
21589 do
21590   case $1 in
21591   --*=*)
21592     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21593     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21594     ac_shift=:
21595     ;;
21596   *)
21597     ac_option=$1
21598     ac_optarg=$2
21599     ac_shift=shift
21600     ;;
21601   esac
21602
21603   case $ac_option in
21604   # Handling of the options.
21605   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21606     ac_cs_recheck=: ;;
21607   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21608     echo "$ac_cs_version"; exit ;;
21609   --debug | --debu | --deb | --de | --d | -d )
21610     debug=: ;;
21611   --file | --fil | --fi | --f )
21612     $ac_shift
21613     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21614     ac_need_defaults=false;;
21615   --header | --heade | --head | --hea )
21616     $ac_shift
21617     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21618     ac_need_defaults=false;;
21619   --he | --h)
21620     # Conflict between --help and --header
21621     { echo "$as_me: error: ambiguous option: $1
21622 Try \`$0 --help' for more information." >&2
21623    { (exit 1); exit 1; }; };;
21624   --help | --hel | -h )
21625     echo "$ac_cs_usage"; exit ;;
21626   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21627   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21628     ac_cs_silent=: ;;
21629
21630   # This is an error.
21631   -*) { echo "$as_me: error: unrecognized option: $1
21632 Try \`$0 --help' for more information." >&2
21633    { (exit 1); exit 1; }; } ;;
21634
21635   *) ac_config_targets="$ac_config_targets $1"
21636      ac_need_defaults=false ;;
21637
21638   esac
21639   shift
21640 done
21641
21642 ac_configure_extra_args=
21643
21644 if $ac_cs_silent; then
21645   exec 6>/dev/null
21646   ac_configure_extra_args="$ac_configure_extra_args --silent"
21647 fi
21648
21649 _ACEOF
21650 cat >>$CONFIG_STATUS <<_ACEOF
21651 if \$ac_cs_recheck; then
21652   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21653   CONFIG_SHELL=$SHELL
21654   export CONFIG_SHELL
21655   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21656 fi
21657
21658 _ACEOF
21659 cat >>$CONFIG_STATUS <<\_ACEOF
21660 exec 5>>config.log
21661 {
21662   echo
21663   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21664 ## Running $as_me. ##
21665 _ASBOX
21666   echo "$ac_log"
21667 } >&5
21668
21669 _ACEOF
21670 cat >>$CONFIG_STATUS <<_ACEOF
21671 #
21672 # INIT-COMMANDS
21673 #
21674 llvm_src="${srcdir}"
21675
21676 _ACEOF
21677
21678 cat >>$CONFIG_STATUS <<\_ACEOF
21679
21680 # Handling of arguments.
21681 for ac_config_target in $ac_config_targets
21682 do
21683   case $ac_config_target in
21684     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21685     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21686     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21687     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21688     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21689     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21690     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21691     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21692     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21693     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21694     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21695     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21696     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21697     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21698     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21699     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21700     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21701     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21702     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21703     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21704     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21705     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21706     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21707     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21708     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21709     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21710     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21711
21712   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21713 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21714    { (exit 1); exit 1; }; };;
21715   esac
21716 done
21717
21718
21719 # If the user did not use the arguments to specify the items to instantiate,
21720 # then the envvar interface is used.  Set only those that are not.
21721 # We use the long form for the default assignment because of an extremely
21722 # bizarre bug on SunOS 4.1.3.
21723 if $ac_need_defaults; then
21724   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21725   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21726   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21727 fi
21728
21729 # Have a temporary directory for convenience.  Make it in the build tree
21730 # simply because there is no reason against having it here, and in addition,
21731 # creating and moving files from /tmp can sometimes cause problems.
21732 # Hook for its removal unless debugging.
21733 # Note that there is a small window in which the directory will not be cleaned:
21734 # after its creation but before its name has been assigned to `$tmp'.
21735 $debug ||
21736 {
21737   tmp=
21738   trap 'exit_status=$?
21739   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21740 ' 0
21741   trap '{ (exit 1); exit 1; }' 1 2 13 15
21742 }
21743 # Create a (secure) tmp directory for tmp files.
21744
21745 {
21746   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21747   test -n "$tmp" && test -d "$tmp"
21748 }  ||
21749 {
21750   tmp=./conf$$-$RANDOM
21751   (umask 077 && mkdir "$tmp")
21752 } ||
21753 {
21754    echo "$me: cannot create a temporary directory in ." >&2
21755    { (exit 1); exit 1; }
21756 }
21757
21758 #
21759 # Set up the sed scripts for CONFIG_FILES section.
21760 #
21761
21762 # No need to generate the scripts if there are no CONFIG_FILES.
21763 # This happens for instance when ./config.status config.h
21764 if test -n "$CONFIG_FILES"; then
21765
21766 _ACEOF
21767
21768
21769
21770 ac_delim='%!_!# '
21771 for ac_last_try in false false false false false :; do
21772   cat >conf$$subs.sed <<_ACEOF
21773 SHELL!$SHELL$ac_delim
21774 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21775 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21776 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21777 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21778 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21779 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21780 exec_prefix!$exec_prefix$ac_delim
21781 prefix!$prefix$ac_delim
21782 program_transform_name!$program_transform_name$ac_delim
21783 bindir!$bindir$ac_delim
21784 sbindir!$sbindir$ac_delim
21785 libexecdir!$libexecdir$ac_delim
21786 datarootdir!$datarootdir$ac_delim
21787 datadir!$datadir$ac_delim
21788 sysconfdir!$sysconfdir$ac_delim
21789 sharedstatedir!$sharedstatedir$ac_delim
21790 localstatedir!$localstatedir$ac_delim
21791 includedir!$includedir$ac_delim
21792 oldincludedir!$oldincludedir$ac_delim
21793 docdir!$docdir$ac_delim
21794 infodir!$infodir$ac_delim
21795 htmldir!$htmldir$ac_delim
21796 dvidir!$dvidir$ac_delim
21797 pdfdir!$pdfdir$ac_delim
21798 psdir!$psdir$ac_delim
21799 libdir!$libdir$ac_delim
21800 localedir!$localedir$ac_delim
21801 mandir!$mandir$ac_delim
21802 DEFS!$DEFS$ac_delim
21803 ECHO_C!$ECHO_C$ac_delim
21804 ECHO_N!$ECHO_N$ac_delim
21805 ECHO_T!$ECHO_T$ac_delim
21806 LIBS!$LIBS$ac_delim
21807 build_alias!$build_alias$ac_delim
21808 host_alias!$host_alias$ac_delim
21809 target_alias!$target_alias$ac_delim
21810 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21811 CC!$CC$ac_delim
21812 CFLAGS!$CFLAGS$ac_delim
21813 LDFLAGS!$LDFLAGS$ac_delim
21814 CPPFLAGS!$CPPFLAGS$ac_delim
21815 ac_ct_CC!$ac_ct_CC$ac_delim
21816 EXEEXT!$EXEEXT$ac_delim
21817 OBJEXT!$OBJEXT$ac_delim
21818 CXX!$CXX$ac_delim
21819 CXXFLAGS!$CXXFLAGS$ac_delim
21820 ac_ct_CXX!$ac_ct_CXX$ac_delim
21821 CPP!$CPP$ac_delim
21822 subdirs!$subdirs$ac_delim
21823 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21824 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21825 build!$build$ac_delim
21826 build_cpu!$build_cpu$ac_delim
21827 build_vendor!$build_vendor$ac_delim
21828 build_os!$build_os$ac_delim
21829 host!$host$ac_delim
21830 host_cpu!$host_cpu$ac_delim
21831 host_vendor!$host_vendor$ac_delim
21832 host_os!$host_os$ac_delim
21833 target!$target$ac_delim
21834 target_cpu!$target_cpu$ac_delim
21835 target_vendor!$target_vendor$ac_delim
21836 target_os!$target_os$ac_delim
21837 OS!$OS$ac_delim
21838 HOST_OS!$HOST_OS$ac_delim
21839 TARGET_OS!$TARGET_OS$ac_delim
21840 LINKALL!$LINKALL$ac_delim
21841 NOLINKALL!$NOLINKALL$ac_delim
21842 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21843 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21844 ARCH!$ARCH$ac_delim
21845 ENDIAN!$ENDIAN$ac_delim
21846 GREP!$GREP$ac_delim
21847 EGREP!$EGREP$ac_delim
21848 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21849 BUILD_CC!$BUILD_CC$ac_delim
21850 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21851 BUILD_CXX!$BUILD_CXX$ac_delim
21852 CVSBUILD!$CVSBUILD$ac_delim
21853 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21854 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21855 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21856 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21857 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21858 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21859 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21860 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21861 JIT!$JIT$ac_delim
21862 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21863 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21864 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21865 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21866 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21867 ENABLE_PIC!$ENABLE_PIC$ac_delim
21868 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21869 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21870 _ACEOF
21871
21872   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21873     break
21874   elif $ac_last_try; then
21875     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877    { (exit 1); exit 1; }; }
21878   else
21879     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21880   fi
21881 done
21882
21883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884 if test -n "$ac_eof"; then
21885   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886   ac_eof=`expr $ac_eof + 1`
21887 fi
21888
21889 cat >>$CONFIG_STATUS <<_ACEOF
21890 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21892 _ACEOF
21893 sed '
21894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895 s/^/s,@/; s/!/@,|#_!!_#|/
21896 :n
21897 t n
21898 s/'"$ac_delim"'$/,g/; t
21899 s/$/\\/; p
21900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901 ' >>$CONFIG_STATUS <conf$$subs.sed
21902 rm -f conf$$subs.sed
21903 cat >>$CONFIG_STATUS <<_ACEOF
21904 CEOF$ac_eof
21905 _ACEOF
21906
21907
21908 ac_delim='%!_!# '
21909 for ac_last_try in false false false false false :; do
21910   cat >conf$$subs.sed <<_ACEOF
21911 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21912 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21913 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21914 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21915 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21916 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21917 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21918 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21919 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21920 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21921 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21922 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21923 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21924 NM!$NM$ac_delim
21925 ifGNUmake!$ifGNUmake$ac_delim
21926 LN_S!$LN_S$ac_delim
21927 CMP!$CMP$ac_delim
21928 CP!$CP$ac_delim
21929 DATE!$DATE$ac_delim
21930 FIND!$FIND$ac_delim
21931 MKDIR!$MKDIR$ac_delim
21932 MV!$MV$ac_delim
21933 RANLIB!$RANLIB$ac_delim
21934 AR!$AR$ac_delim
21935 RM!$RM$ac_delim
21936 SED!$SED$ac_delim
21937 TAR!$TAR$ac_delim
21938 BINPWD!$BINPWD$ac_delim
21939 GRAPHVIZ!$GRAPHVIZ$ac_delim
21940 DOT!$DOT$ac_delim
21941 FDP!$FDP$ac_delim
21942 NEATO!$NEATO$ac_delim
21943 TWOPI!$TWOPI$ac_delim
21944 CIRCO!$CIRCO$ac_delim
21945 GV!$GV$ac_delim
21946 DOTTY!$DOTTY$ac_delim
21947 XDOT_PY!$XDOT_PY$ac_delim
21948 PERL!$PERL$ac_delim
21949 HAVE_PERL!$HAVE_PERL$ac_delim
21950 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21951 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21952 INSTALL_DATA!$INSTALL_DATA$ac_delim
21953 BZIP2!$BZIP2$ac_delim
21954 CAT!$CAT$ac_delim
21955 DOXYGEN!$DOXYGEN$ac_delim
21956 GROFF!$GROFF$ac_delim
21957 GZIPBIN!$GZIPBIN$ac_delim
21958 POD2HTML!$POD2HTML$ac_delim
21959 POD2MAN!$POD2MAN$ac_delim
21960 PDFROFF!$PDFROFF$ac_delim
21961 RUNTEST!$RUNTEST$ac_delim
21962 TCLSH!$TCLSH$ac_delim
21963 ZIP!$ZIP$ac_delim
21964 OCAMLC!$OCAMLC$ac_delim
21965 OCAMLOPT!$OCAMLOPT$ac_delim
21966 OCAMLDEP!$OCAMLDEP$ac_delim
21967 OCAMLDOC!$OCAMLDOC$ac_delim
21968 GAS!$GAS$ac_delim
21969 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21970 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21971 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21972 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21973 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21974 LIBADD_DL!$LIBADD_DL$ac_delim
21975 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21976 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21977 USE_UDIS86!$USE_UDIS86$ac_delim
21978 USE_OPROFILE!$USE_OPROFILE$ac_delim
21979 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21980 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21981 MMAP_FILE!$MMAP_FILE$ac_delim
21982 SHLIBEXT!$SHLIBEXT$ac_delim
21983 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21984 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21985 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21986 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21987 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21988 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21989 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21990 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21991 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21992 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21993 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21994 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21995 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21996 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21997 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21998 RPATH!$RPATH$ac_delim
21999 RDYNAMIC!$RDYNAMIC$ac_delim
22000 LIBOBJS!$LIBOBJS$ac_delim
22001 LTLIBOBJS!$LTLIBOBJS$ac_delim
22002 _ACEOF
22003
22004   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22005     break
22006   elif $ac_last_try; then
22007     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22008 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22009    { (exit 1); exit 1; }; }
22010   else
22011     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22012   fi
22013 done
22014
22015 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22016 if test -n "$ac_eof"; then
22017   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22018   ac_eof=`expr $ac_eof + 1`
22019 fi
22020
22021 cat >>$CONFIG_STATUS <<_ACEOF
22022 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22024 _ACEOF
22025 sed '
22026 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22027 s/^/s,@/; s/!/@,|#_!!_#|/
22028 :n
22029 t n
22030 s/'"$ac_delim"'$/,g/; t
22031 s/$/\\/; p
22032 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22033 ' >>$CONFIG_STATUS <conf$$subs.sed
22034 rm -f conf$$subs.sed
22035 cat >>$CONFIG_STATUS <<_ACEOF
22036 :end
22037 s/|#_!!_#|//g
22038 CEOF$ac_eof
22039 _ACEOF
22040
22041
22042 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22043 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22044 # trailing colons and then remove the whole line if VPATH becomes empty
22045 # (actually we leave an empty line to preserve line numbers).
22046 if test "x$srcdir" = x.; then
22047   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22048 s/:*\$(srcdir):*/:/
22049 s/:*\${srcdir}:*/:/
22050 s/:*@srcdir@:*/:/
22051 s/^\([^=]*=[     ]*\):*/\1/
22052 s/:*$//
22053 s/^[^=]*=[       ]*$//
22054 }'
22055 fi
22056
22057 cat >>$CONFIG_STATUS <<\_ACEOF
22058 fi # test -n "$CONFIG_FILES"
22059
22060
22061 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22062 do
22063   case $ac_tag in
22064   :[FHLC]) ac_mode=$ac_tag; continue;;
22065   esac
22066   case $ac_mode$ac_tag in
22067   :[FHL]*:*);;
22068   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22069 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22070    { (exit 1); exit 1; }; };;
22071   :[FH]-) ac_tag=-:-;;
22072   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22073   esac
22074   ac_save_IFS=$IFS
22075   IFS=:
22076   set x $ac_tag
22077   IFS=$ac_save_IFS
22078   shift
22079   ac_file=$1
22080   shift
22081
22082   case $ac_mode in
22083   :L) ac_source=$1;;
22084   :[FH])
22085     ac_file_inputs=
22086     for ac_f
22087     do
22088       case $ac_f in
22089       -) ac_f="$tmp/stdin";;
22090       *) # Look for the file first in the build tree, then in the source tree
22091          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22092          # because $ac_f cannot contain `:'.
22093          test -f "$ac_f" ||
22094            case $ac_f in
22095            [\\/$]*) false;;
22096            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22097            esac ||
22098            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22099 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22100    { (exit 1); exit 1; }; };;
22101       esac
22102       ac_file_inputs="$ac_file_inputs $ac_f"
22103     done
22104
22105     # Let's still pretend it is `configure' which instantiates (i.e., don't
22106     # use $as_me), people would be surprised to read:
22107     #    /* config.h.  Generated by config.status.  */
22108     configure_input="Generated from "`IFS=:
22109           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22110     if test x"$ac_file" != x-; then
22111       configure_input="$ac_file.  $configure_input"
22112       { echo "$as_me:$LINENO: creating $ac_file" >&5
22113 echo "$as_me: creating $ac_file" >&6;}
22114     fi
22115
22116     case $ac_tag in
22117     *:-:* | *:-) cat >"$tmp/stdin";;
22118     esac
22119     ;;
22120   esac
22121
22122   ac_dir=`$as_dirname -- "$ac_file" ||
22123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22124          X"$ac_file" : 'X\(//\)[^/]' \| \
22125          X"$ac_file" : 'X\(//\)$' \| \
22126          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22127 echo X"$ac_file" |
22128     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22129             s//\1/
22130             q
22131           }
22132           /^X\(\/\/\)[^/].*/{
22133             s//\1/
22134             q
22135           }
22136           /^X\(\/\/\)$/{
22137             s//\1/
22138             q
22139           }
22140           /^X\(\/\).*/{
22141             s//\1/
22142             q
22143           }
22144           s/.*/./; q'`
22145   { as_dir="$ac_dir"
22146   case $as_dir in #(
22147   -*) as_dir=./$as_dir;;
22148   esac
22149   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22150     as_dirs=
22151     while :; do
22152       case $as_dir in #(
22153       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22154       *) as_qdir=$as_dir;;
22155       esac
22156       as_dirs="'$as_qdir' $as_dirs"
22157       as_dir=`$as_dirname -- "$as_dir" ||
22158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22159          X"$as_dir" : 'X\(//\)[^/]' \| \
22160          X"$as_dir" : 'X\(//\)$' \| \
22161          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22162 echo X"$as_dir" |
22163     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22164             s//\1/
22165             q
22166           }
22167           /^X\(\/\/\)[^/].*/{
22168             s//\1/
22169             q
22170           }
22171           /^X\(\/\/\)$/{
22172             s//\1/
22173             q
22174           }
22175           /^X\(\/\).*/{
22176             s//\1/
22177             q
22178           }
22179           s/.*/./; q'`
22180       test -d "$as_dir" && break
22181     done
22182     test -z "$as_dirs" || eval "mkdir $as_dirs"
22183   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22184 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22185    { (exit 1); exit 1; }; }; }
22186   ac_builddir=.
22187
22188 case "$ac_dir" in
22189 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22190 *)
22191   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22192   # A ".." for each directory in $ac_dir_suffix.
22193   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22194   case $ac_top_builddir_sub in
22195   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22196   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22197   esac ;;
22198 esac
22199 ac_abs_top_builddir=$ac_pwd
22200 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22201 # for backward compatibility:
22202 ac_top_builddir=$ac_top_build_prefix
22203
22204 case $srcdir in
22205   .)  # We are building in place.
22206     ac_srcdir=.
22207     ac_top_srcdir=$ac_top_builddir_sub
22208     ac_abs_top_srcdir=$ac_pwd ;;
22209   [\\/]* | ?:[\\/]* )  # Absolute name.
22210     ac_srcdir=$srcdir$ac_dir_suffix;
22211     ac_top_srcdir=$srcdir
22212     ac_abs_top_srcdir=$srcdir ;;
22213   *) # Relative name.
22214     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22215     ac_top_srcdir=$ac_top_build_prefix$srcdir
22216     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22217 esac
22218 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22219
22220
22221   case $ac_mode in
22222   :F)
22223   #
22224   # CONFIG_FILE
22225   #
22226
22227   case $INSTALL in
22228   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22229   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22230   esac
22231 _ACEOF
22232
22233 cat >>$CONFIG_STATUS <<\_ACEOF
22234 # If the template does not know about datarootdir, expand it.
22235 # FIXME: This hack should be removed a few years after 2.60.
22236 ac_datarootdir_hack=; ac_datarootdir_seen=
22237
22238 case `sed -n '/datarootdir/ {
22239   p
22240   q
22241 }
22242 /@datadir@/p
22243 /@docdir@/p
22244 /@infodir@/p
22245 /@localedir@/p
22246 /@mandir@/p
22247 ' $ac_file_inputs` in
22248 *datarootdir*) ac_datarootdir_seen=yes;;
22249 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22250   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22251 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22252 _ACEOF
22253 cat >>$CONFIG_STATUS <<_ACEOF
22254   ac_datarootdir_hack='
22255   s&@datadir@&$datadir&g
22256   s&@docdir@&$docdir&g
22257   s&@infodir@&$infodir&g
22258   s&@localedir@&$localedir&g
22259   s&@mandir@&$mandir&g
22260     s&\\\${datarootdir}&$datarootdir&g' ;;
22261 esac
22262 _ACEOF
22263
22264 # Neutralize VPATH when `$srcdir' = `.'.
22265 # Shell code in configure.ac might set extrasub.
22266 # FIXME: do we really want to maintain this feature?
22267 cat >>$CONFIG_STATUS <<_ACEOF
22268   sed "$ac_vpsub
22269 $extrasub
22270 _ACEOF
22271 cat >>$CONFIG_STATUS <<\_ACEOF
22272 :t
22273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22274 s&@configure_input@&$configure_input&;t t
22275 s&@top_builddir@&$ac_top_builddir_sub&;t t
22276 s&@srcdir@&$ac_srcdir&;t t
22277 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22278 s&@top_srcdir@&$ac_top_srcdir&;t t
22279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22280 s&@builddir@&$ac_builddir&;t t
22281 s&@abs_builddir@&$ac_abs_builddir&;t t
22282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22283 s&@INSTALL@&$ac_INSTALL&;t t
22284 $ac_datarootdir_hack
22285 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22286
22287 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22288   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22289   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22290   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22291 which seems to be undefined.  Please make sure it is defined." >&5
22292 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22293 which seems to be undefined.  Please make sure it is defined." >&2;}
22294
22295   rm -f "$tmp/stdin"
22296   case $ac_file in
22297   -) cat "$tmp/out"; rm -f "$tmp/out";;
22298   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22299   esac
22300  ;;
22301   :H)
22302   #
22303   # CONFIG_HEADER
22304   #
22305 _ACEOF
22306
22307 # Transform confdefs.h into a sed script `conftest.defines', that
22308 # substitutes the proper values into config.h.in to produce config.h.
22309 rm -f conftest.defines conftest.tail
22310 # First, append a space to every undef/define line, to ease matching.
22311 echo 's/$/ /' >conftest.defines
22312 # Then, protect against being on the right side of a sed subst, or in
22313 # an unquoted here document, in config.status.  If some macros were
22314 # called several times there might be several #defines for the same
22315 # symbol, which is useless.  But do not sort them, since the last
22316 # AC_DEFINE must be honored.
22317 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22318 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22319 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22320 # PARAMS is the parameter list in the macro definition--in most cases, it's
22321 # just an empty string.
22322 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22323 ac_dB='\\)[      (].*,\\1define\\2'
22324 ac_dC=' '
22325 ac_dD=' ,'
22326
22327 uniq confdefs.h |
22328   sed -n '
22329         t rset
22330         :rset
22331         s/^[     ]*#[    ]*define[       ][      ]*//
22332         t ok
22333         d
22334         :ok
22335         s/[\\&,]/\\&/g
22336         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22337         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22338   ' >>conftest.defines
22339
22340 # Remove the space that was appended to ease matching.
22341 # Then replace #undef with comments.  This is necessary, for
22342 # example, in the case of _POSIX_SOURCE, which is predefined and required
22343 # on some systems where configure will not decide to define it.
22344 # (The regexp can be short, since the line contains either #define or #undef.)
22345 echo 's/ $//
22346 s,^[     #]*u.*,/* & */,' >>conftest.defines
22347
22348 # Break up conftest.defines:
22349 ac_max_sed_lines=50
22350
22351 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22352 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22353 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22354 # et cetera.
22355 ac_in='$ac_file_inputs'
22356 ac_out='"$tmp/out1"'
22357 ac_nxt='"$tmp/out2"'
22358
22359 while :
22360 do
22361   # Write a here document:
22362     cat >>$CONFIG_STATUS <<_ACEOF
22363     # First, check the format of the line:
22364     cat >"\$tmp/defines.sed" <<\\CEOF
22365 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22366 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22367 b
22368 :def
22369 _ACEOF
22370   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22371   echo 'CEOF
22372     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22373   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22374   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22375   grep . conftest.tail >/dev/null || break
22376   rm -f conftest.defines
22377   mv conftest.tail conftest.defines
22378 done
22379 rm -f conftest.defines conftest.tail
22380
22381 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22382 cat >>$CONFIG_STATUS <<\_ACEOF
22383   if test x"$ac_file" != x-; then
22384     echo "/* $configure_input  */" >"$tmp/config.h"
22385     cat "$ac_result" >>"$tmp/config.h"
22386     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22387       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22388 echo "$as_me: $ac_file is unchanged" >&6;}
22389     else
22390       rm -f $ac_file
22391       mv "$tmp/config.h" $ac_file
22392     fi
22393   else
22394     echo "/* $configure_input  */"
22395     cat "$ac_result"
22396   fi
22397   rm -f "$tmp/out12"
22398  ;;
22399
22400   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22401 echo "$as_me: executing $ac_file commands" >&6;}
22402  ;;
22403   esac
22404
22405
22406   case $ac_file$ac_mode in
22407     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22408    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22409     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22410    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22411     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22412    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22413     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22414    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22415     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22416    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22417     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22418    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22419     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22420    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22421     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22422    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22423     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22424    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22425     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22426    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22427     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22428    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22429     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22430    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22431     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22432    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22433
22434   esac
22435 done # for ac_tag
22436
22437
22438 { (exit 0); exit 0; }
22439 _ACEOF
22440 chmod +x $CONFIG_STATUS
22441 ac_clean_files=$ac_clean_files_save
22442
22443
22444 # configure is writing to config.log, and then calls config.status.
22445 # config.status does its own redirection, appending to config.log.
22446 # Unfortunately, on DOS this fails, as config.log is still kept open
22447 # by configure, so config.status won't be able to write to it; its
22448 # output is simply discarded.  So we exec the FD to /dev/null,
22449 # effectively closing config.log, so it can be properly (re)opened and
22450 # appended to by config.status.  When coming back to configure, we
22451 # need to make the FD available again.
22452 if test "$no_create" != yes; then
22453   ac_cs_success=:
22454   ac_config_status_args=
22455   test "$silent" = yes &&
22456     ac_config_status_args="$ac_config_status_args --quiet"
22457   exec 5>/dev/null
22458   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22459   exec 5>>config.log
22460   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22461   # would make configure fail if this is the last instruction.
22462   $ac_cs_success || { (exit 1); exit 1; }
22463 fi
22464
22465 #
22466 # CONFIG_SUBDIRS section.
22467 #
22468 if test "$no_recursion" != yes; then
22469
22470   # Remove --cache-file and --srcdir arguments so they do not pile up.
22471   ac_sub_configure_args=
22472   ac_prev=
22473   eval "set x $ac_configure_args"
22474   shift
22475   for ac_arg
22476   do
22477     if test -n "$ac_prev"; then
22478       ac_prev=
22479       continue
22480     fi
22481     case $ac_arg in
22482     -cache-file | --cache-file | --cache-fil | --cache-fi \
22483     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22484       ac_prev=cache_file ;;
22485     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22486     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22487     | --c=*)
22488       ;;
22489     --config-cache | -C)
22490       ;;
22491     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22492       ac_prev=srcdir ;;
22493     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22494       ;;
22495     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22496       ac_prev=prefix ;;
22497     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22498       ;;
22499     *)
22500       case $ac_arg in
22501       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22502       esac
22503       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22504     esac
22505   done
22506
22507   # Always prepend --prefix to ensure using the same prefix
22508   # in subdir configurations.
22509   ac_arg="--prefix=$prefix"
22510   case $ac_arg in
22511   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22512   esac
22513   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22514
22515   ac_popdir=`pwd`
22516   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22517
22518     # Do not complain, so a configure script can configure whichever
22519     # parts of a large source tree are present.
22520     test -d "$srcdir/$ac_dir" || continue
22521
22522     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22523     echo "$as_me:$LINENO: $ac_msg" >&5
22524     echo "$ac_msg" >&6
22525     { as_dir="$ac_dir"
22526   case $as_dir in #(
22527   -*) as_dir=./$as_dir;;
22528   esac
22529   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22530     as_dirs=
22531     while :; do
22532       case $as_dir in #(
22533       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22534       *) as_qdir=$as_dir;;
22535       esac
22536       as_dirs="'$as_qdir' $as_dirs"
22537       as_dir=`$as_dirname -- "$as_dir" ||
22538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22539          X"$as_dir" : 'X\(//\)[^/]' \| \
22540          X"$as_dir" : 'X\(//\)$' \| \
22541          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22542 echo X"$as_dir" |
22543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22544             s//\1/
22545             q
22546           }
22547           /^X\(\/\/\)[^/].*/{
22548             s//\1/
22549             q
22550           }
22551           /^X\(\/\/\)$/{
22552             s//\1/
22553             q
22554           }
22555           /^X\(\/\).*/{
22556             s//\1/
22557             q
22558           }
22559           s/.*/./; q'`
22560       test -d "$as_dir" && break
22561     done
22562     test -z "$as_dirs" || eval "mkdir $as_dirs"
22563   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22564 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22565    { (exit 1); exit 1; }; }; }
22566     ac_builddir=.
22567
22568 case "$ac_dir" in
22569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22570 *)
22571   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22572   # A ".." for each directory in $ac_dir_suffix.
22573   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22574   case $ac_top_builddir_sub in
22575   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22576   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22577   esac ;;
22578 esac
22579 ac_abs_top_builddir=$ac_pwd
22580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22581 # for backward compatibility:
22582 ac_top_builddir=$ac_top_build_prefix
22583
22584 case $srcdir in
22585   .)  # We are building in place.
22586     ac_srcdir=.
22587     ac_top_srcdir=$ac_top_builddir_sub
22588     ac_abs_top_srcdir=$ac_pwd ;;
22589   [\\/]* | ?:[\\/]* )  # Absolute name.
22590     ac_srcdir=$srcdir$ac_dir_suffix;
22591     ac_top_srcdir=$srcdir
22592     ac_abs_top_srcdir=$srcdir ;;
22593   *) # Relative name.
22594     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22595     ac_top_srcdir=$ac_top_build_prefix$srcdir
22596     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22597 esac
22598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22599
22600
22601     cd "$ac_dir"
22602
22603     # Check for guested configure; otherwise get Cygnus style configure.
22604     if test -f "$ac_srcdir/configure.gnu"; then
22605       ac_sub_configure=$ac_srcdir/configure.gnu
22606     elif test -f "$ac_srcdir/configure"; then
22607       ac_sub_configure=$ac_srcdir/configure
22608     elif test -f "$ac_srcdir/configure.in"; then
22609       # This should be Cygnus configure.
22610       ac_sub_configure=$ac_aux_dir/configure
22611     else
22612       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22613 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22614       ac_sub_configure=
22615     fi
22616
22617     # The recursion is here.
22618     if test -n "$ac_sub_configure"; then
22619       # Make the cache file name correct relative to the subdirectory.
22620       case $cache_file in
22621       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22622       *) # Relative name.
22623         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22624       esac
22625
22626       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22627 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22628       # The eval makes quoting arguments work.
22629       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22630            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22631         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22632 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22633    { (exit 1); exit 1; }; }
22634     fi
22635
22636     cd "$ac_popdir"
22637   done
22638 fi
22639