Add support getting the operands of a User to ocaml.
[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 2.7svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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-2009 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='2.7svn'
565 PACKAGE_STRING='llvm 2.7svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
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 subdirs
644 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 target
653 target_cpu
654 target_vendor
655 target_os
656 OS
657 HOST_OS
658 TARGET_OS
659 LINKALL
660 NOLINKALL
661 LLVM_ON_UNIX
662 LLVM_ON_WIN32
663 ARCH
664 ENDIAN
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LLVM_CROSS_COMPILING
676 BUILD_CC
677 BUILD_EXEEXT
678 BUILD_CXX
679 CVSBUILD
680 ENABLE_OPTIMIZED
681 ENABLE_PROFILING
682 DISABLE_ASSERTIONS
683 ENABLE_EXPENSIVE_CHECKS
684 EXPENSIVE_CHECKS
685 DEBUG_RUNTIME
686 DEBUG_SYMBOLS
687 JIT
688 TARGET_HAS_JIT
689 ENABLE_DOXYGEN
690 ENABLE_THREADS
691 ENABLE_PIC
692 ENABLE_SHARED
693 TARGETS_TO_BUILD
694 LLVM_ENUM_TARGETS
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
698 ENABLE_CBE_PRINTF_A
699 CLANGPATH
700 CLANGXXPATH
701 ENABLE_BUILT_CLANG
702 OPTIMIZE_OPTION
703 EXTRA_OPTIONS
704 BINUTILS_INCDIR
705 ENABLE_LLVMC_DYNAMIC
706 ENABLE_LLVMC_DYNAMIC_PLUGINS
707 CXX
708 CXXFLAGS
709 ac_ct_CXX
710 NM
711 ifGNUmake
712 LN_S
713 CMP
714 CP
715 DATE
716 FIND
717 MKDIR
718 MV
719 RANLIB
720 AR
721 RM
722 SED
723 TAR
724 BINPWD
725 GRAPHVIZ
726 DOT
727 FDP
728 NEATO
729 TWOPI
730 CIRCO
731 GV
732 DOTTY
733 PERL
734 HAVE_PERL
735 INSTALL_PROGRAM
736 INSTALL_SCRIPT
737 INSTALL_DATA
738 BZIP2
739 DOXYGEN
740 GROFF
741 GZIP
742 POD2HTML
743 POD2MAN
744 RUNTEST
745 TCLSH
746 ZIP
747 OCAMLC
748 OCAMLOPT
749 OCAMLDEP
750 OCAMLDOC
751 GAS
752 INSTALL_LTDL_TRUE
753 INSTALL_LTDL_FALSE
754 CONVENIENCE_LTDL_TRUE
755 CONVENIENCE_LTDL_FALSE
756 LIBADD_DL
757 LLVMGCCCOMMAND
758 LLVMGXXCOMMAND
759 LLVMGCC
760 LLVMGXX
761 LLVMCC_OPTION
762 NO_VARIADIC_MACROS
763 NO_MISSING_FIELD_INITIALIZERS
764 USE_UDIS86
765 USE_OPROFILE
766 HAVE_PTHREAD
767 HUGE_VAL_SANITY
768 MMAP_FILE
769 LLVMCC1
770 LLVMCC1PLUS
771 LLVMGCCDIR
772 LLVMGCC_LANGS
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 CPP
802 CXX
803 CXXFLAGS
804 CCC'
805 ac_subdirs_all='projects/sample
806 projects/privbracket
807 projects/llvm-stacker
808 projects/llvm-test
809 projects/test-suite
810 projects/llvm-reopt
811 projects/llvm-gcc
812 projects/llvm-java
813 projects/llvm-tv
814 projects/llvm-poolalloc
815 projects/poolalloc
816 projects/safecode
817 projects/llvm-kernel'
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *)    ac_optarg=yes ;;
879   esac
880
881   # Accept the important Cygnus configure options, so we can diagnose typos.
882
883   case $ac_dashdash$ac_option in
884   --)
885     ac_dashdash=yes ;;
886
887   -bindir | --bindir | --bindi | --bind | --bin | --bi)
888     ac_prev=bindir ;;
889   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890     bindir=$ac_optarg ;;
891
892   -build | --build | --buil | --bui | --bu)
893     ac_prev=build_alias ;;
894   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895     build_alias=$ac_optarg ;;
896
897   -cache-file | --cache-file | --cache-fil | --cache-fi \
898   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899     ac_prev=cache_file ;;
900   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902     cache_file=$ac_optarg ;;
903
904   --config-cache | -C)
905     cache_file=config.cache ;;
906
907   -datadir | --datadir | --datadi | --datad)
908     ac_prev=datadir ;;
909   -datadir=* | --datadir=* | --datadi=* | --datad=*)
910     datadir=$ac_optarg ;;
911
912   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913   | --dataroo | --dataro | --datar)
914     ac_prev=datarootdir ;;
915   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917     datarootdir=$ac_optarg ;;
918
919   -disable-* | --disable-*)
920     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924    { (exit 1); exit 1; }; }
925     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926     eval enable_$ac_feature=no ;;
927
928   -docdir | --docdir | --docdi | --doc | --do)
929     ac_prev=docdir ;;
930   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931     docdir=$ac_optarg ;;
932
933   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934     ac_prev=dvidir ;;
935   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936     dvidir=$ac_optarg ;;
937
938   -enable-* | --enable-*)
939     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943    { (exit 1); exit 1; }; }
944     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945     eval enable_$ac_feature=\$ac_optarg ;;
946
947   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949   | --exec | --exe | --ex)
950     ac_prev=exec_prefix ;;
951   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953   | --exec=* | --exe=* | --ex=*)
954     exec_prefix=$ac_optarg ;;
955
956   -gas | --gas | --ga | --g)
957     # Obsolete; use --with-gas.
958     with_gas=yes ;;
959
960   -help | --help | --hel | --he | -h)
961     ac_init_help=long ;;
962   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963     ac_init_help=recursive ;;
964   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965     ac_init_help=short ;;
966
967   -host | --host | --hos | --ho)
968     ac_prev=host_alias ;;
969   -host=* | --host=* | --hos=* | --ho=*)
970     host_alias=$ac_optarg ;;
971
972   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973     ac_prev=htmldir ;;
974   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975   | --ht=*)
976     htmldir=$ac_optarg ;;
977
978   -includedir | --includedir | --includedi | --included | --include \
979   | --includ | --inclu | --incl | --inc)
980     ac_prev=includedir ;;
981   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982   | --includ=* | --inclu=* | --incl=* | --inc=*)
983     includedir=$ac_optarg ;;
984
985   -infodir | --infodir | --infodi | --infod | --info | --inf)
986     ac_prev=infodir ;;
987   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988     infodir=$ac_optarg ;;
989
990   -libdir | --libdir | --libdi | --libd)
991     ac_prev=libdir ;;
992   -libdir=* | --libdir=* | --libdi=* | --libd=*)
993     libdir=$ac_optarg ;;
994
995   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996   | --libexe | --libex | --libe)
997     ac_prev=libexecdir ;;
998   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999   | --libexe=* | --libex=* | --libe=*)
1000     libexecdir=$ac_optarg ;;
1001
1002   -localedir | --localedir | --localedi | --localed | --locale)
1003     ac_prev=localedir ;;
1004   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005     localedir=$ac_optarg ;;
1006
1007   -localstatedir | --localstatedir | --localstatedi | --localstated \
1008   | --localstate | --localstat | --localsta | --localst | --locals)
1009     ac_prev=localstatedir ;;
1010   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012     localstatedir=$ac_optarg ;;
1013
1014   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015     ac_prev=mandir ;;
1016   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017     mandir=$ac_optarg ;;
1018
1019   -nfp | --nfp | --nf)
1020     # Obsolete; use --without-fp.
1021     with_fp=no ;;
1022
1023   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024   | --no-cr | --no-c | -n)
1025     no_create=yes ;;
1026
1027   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029     no_recursion=yes ;;
1030
1031   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033   | --oldin | --oldi | --old | --ol | --o)
1034     ac_prev=oldincludedir ;;
1035   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038     oldincludedir=$ac_optarg ;;
1039
1040   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041     ac_prev=prefix ;;
1042   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043     prefix=$ac_optarg ;;
1044
1045   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046   | --program-pre | --program-pr | --program-p)
1047     ac_prev=program_prefix ;;
1048   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050     program_prefix=$ac_optarg ;;
1051
1052   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053   | --program-suf | --program-su | --program-s)
1054     ac_prev=program_suffix ;;
1055   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057     program_suffix=$ac_optarg ;;
1058
1059   -program-transform-name | --program-transform-name \
1060   | --program-transform-nam | --program-transform-na \
1061   | --program-transform-n | --program-transform- \
1062   | --program-transform | --program-transfor \
1063   | --program-transfo | --program-transf \
1064   | --program-trans | --program-tran \
1065   | --progr-tra | --program-tr | --program-t)
1066     ac_prev=program_transform_name ;;
1067   -program-transform-name=* | --program-transform-name=* \
1068   | --program-transform-nam=* | --program-transform-na=* \
1069   | --program-transform-n=* | --program-transform-=* \
1070   | --program-transform=* | --program-transfor=* \
1071   | --program-transfo=* | --program-transf=* \
1072   | --program-trans=* | --program-tran=* \
1073   | --progr-tra=* | --program-tr=* | --program-t=*)
1074     program_transform_name=$ac_optarg ;;
1075
1076   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077     ac_prev=pdfdir ;;
1078   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079     pdfdir=$ac_optarg ;;
1080
1081   -psdir | --psdir | --psdi | --psd | --ps)
1082     ac_prev=psdir ;;
1083   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084     psdir=$ac_optarg ;;
1085
1086   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087   | -silent | --silent | --silen | --sile | --sil)
1088     silent=yes ;;
1089
1090   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091     ac_prev=sbindir ;;
1092   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093   | --sbi=* | --sb=*)
1094     sbindir=$ac_optarg ;;
1095
1096   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098   | --sharedst | --shareds | --shared | --share | --shar \
1099   | --sha | --sh)
1100     ac_prev=sharedstatedir ;;
1101   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104   | --sha=* | --sh=*)
1105     sharedstatedir=$ac_optarg ;;
1106
1107   -site | --site | --sit)
1108     ac_prev=site ;;
1109   -site=* | --site=* | --sit=*)
1110     site=$ac_optarg ;;
1111
1112   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113     ac_prev=srcdir ;;
1114   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115     srcdir=$ac_optarg ;;
1116
1117   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118   | --syscon | --sysco | --sysc | --sys | --sy)
1119     ac_prev=sysconfdir ;;
1120   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122     sysconfdir=$ac_optarg ;;
1123
1124   -target | --target | --targe | --targ | --tar | --ta | --t)
1125     ac_prev=target_alias ;;
1126   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127     target_alias=$ac_optarg ;;
1128
1129   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130     verbose=yes ;;
1131
1132   -version | --version | --versio | --versi | --vers | -V)
1133     ac_init_version=: ;;
1134
1135   -with-* | --with-*)
1136     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139       { echo "$as_me: error: invalid package name: $ac_package" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_package=`echo $ac_package| sed 's/-/_/g'`
1142     eval with_$ac_package=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148       { echo "$as_me: error: invalid package name: $ac_package" >&2
1149    { (exit 1); exit 1; }; }
1150     ac_package=`echo $ac_package | sed 's/-/_/g'`
1151     eval with_$ac_package=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173    { (exit 1); exit 1; }; }
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181    { (exit 1); exit 1; }; }
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   { echo "$as_me: error: missing argument to $ac_option" >&2
1199    { (exit 1); exit 1; }; }
1200 fi
1201
1202 # Be sure to have absolute directory names.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   case $ac_val in
1210     [\\/$]* | ?:[\\/]* )  continue;;
1211     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212   esac
1213   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214    { (exit 1); exit 1; }; }
1215 done
1216
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1223
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226   if test "x$build_alias" = x; then
1227     cross_compiling=maybe
1228     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229     If a cross compiler is detected then cross compile mode will be used." >&2
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   { echo "$as_me: error: Working directory cannot be determined" >&2
1245    { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   { echo "$as_me: error: pwd does not report name of working directory" >&2
1248    { (exit 1); exit 1; }; }
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$0" : 'X\(//\)[^/]' \| \
1258          X"$0" : 'X\(//\)$' \| \
1259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 echo X"$0" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288    { (exit 1); exit 1; }; }
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293    { (exit 1); exit 1; }; }
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR           user executables [EPREFIX/bin]
1354   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR       program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR           object code libraries [EPREFIX/lib]
1360   --includedir=DIR       C header files [PREFIX/include]
1361   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR          info documentation [DATAROOTDIR/info]
1365   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR           man documentation [DATAROOTDIR/man]
1367   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1368   --htmldir=DIR          html documentation [DOCDIR]
1369   --dvidir=DIR           dvi documentation [DOCDIR]
1370   --pdfdir=DIR           pdf documentation [DOCDIR]
1371   --psdir=DIR            ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379   --target=TARGET   configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1386    esac
1387   cat <<\_ACEOF
1388
1389 Optional Features:
1390   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392   --enable-optimized      Compile with optimizations enabled (default is NO)
1393   --enable-profiling      Compile with profiling enabled (default is NO)
1394   --enable-assertions     Compile with assertion checks enabled (default is
1395                           YES)
1396   --enable-expensive-checks
1397                           Compile with expensive debug checks enabled (default
1398                           is NO)
1399   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1400                           NO)
1401   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1402                           optimization is on and YES if it's off)
1403   --enable-jit            Enable Just In Time Compiling (default is YES)
1404   --enable-doxygen        Build doxygen documentation (default is NO)
1405   --enable-threads        Use threads if available (default is YES)
1406   --enable-pic            Build LLVM with Position Independent Code (default
1407                           is YES)
1408   --enable-shared         Build a shared library and link tools against it
1409                           (default is NO)
1410   --enable-targets        Build specific host targets: all or
1411                           target1,target2,... Valid targets are: host, x86,
1412                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1413                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1414                           and cpp (default=all)
1415   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1416                           %a (default is YES)
1417   --enable-bindings       Build specific language bindings:
1418                           all,auto,none,{binding-name} (default=auto)
1419   --enable-libffi         Check for the presence of libffi (default is NO)
1420   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1421                           Win32)
1422   --enable-llvmc-dynamic-plugins
1423                           Enable dynamic LLVMC plugins (default is YES)
1424   --enable-ltdl-install   install libltdl
1425
1426 Optional Packages:
1427   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1430                           searches PATH)
1431   --with-llvmgcc          Specify location of llvm-gcc driver (default
1432                           searches PATH)
1433   --with-llvmgxx          Specify location of llvm-g++ driver (default
1434                           searches PATH)
1435   --with-clang            Specify location of clang compiler (default is
1436                           --with-built-clang)
1437   --with-built-clang      Use the compiled Clang as the LLVM compiler
1438                           (default=check)
1439   --with-optimize-option  Select the compiler options to use for optimized
1440                           builds
1441   --with-extra-options    Specify additional options to compile LLVM with
1442   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1443                           is stdlib)
1444   --with-c-include-dirs   Colon separated list of directories clang will
1445                           search for headers
1446   --with-cxx-include-root Directory with the libstdc++ headers.
1447   --with-cxx-include-arch Architecture of the libstdc++ headers.
1448   --with-cxx-include-32bit-dir
1449                           32 bit multilib dir.
1450   --with-cxx-include-64bit-dir
1451                           64 bit multilib directory.
1452   --with-binutils-include Specify path to binutils/include/ containing
1453                           plugin-api.h file for gold plugin.
1454   --with-tclinclude       directory where tcl headers are
1455   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1456                           clang, or none; default=check)
1457   --with-udis86=<path>    Use udis86 external x86 disassembler library
1458   --with-oprofile=<prefix>
1459                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1460
1461 Some influential environment variables:
1462   CC          C compiler command
1463   CFLAGS      C compiler flags
1464   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465               nonstandard directory <lib dir>
1466   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CPP         C preprocessor
1469   CXX         C++ compiler command
1470   CXXFLAGS    C++ compiler flags
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" || continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 llvm configure 2.7svn
1537 generated by GNU Autoconf 2.60
1538
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543
1544 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1545 _ACEOF
1546   exit
1547 fi
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1551
1552 It was created by llvm $as_me 2.7svn, which was
1553 generated by GNU Autoconf 2.60.  Invocation command line was
1554
1555   $ $0 $@
1556
1557 _ACEOF
1558 exec 5>>config.log
1559 {
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1564
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582 _ASUNAME
1583
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1592
1593 } >&5
1594
1595 cat >&5 <<_ACEOF
1596
1597
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1601
1602 _ACEOF
1603
1604
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1615 do
1616   for ac_arg
1617   do
1618     case $ac_arg in
1619     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621     | -silent | --silent | --silen | --sile | --sil)
1622       continue ;;
1623     *\'*)
1624       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625     esac
1626     case $ac_pass in
1627     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628     2)
1629       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630       if test $ac_must_keep_next = true; then
1631         ac_must_keep_next=false # Got value, back to normal.
1632       else
1633         case $ac_arg in
1634           *=* | --config-cache | -C | -disable-* | --disable-* \
1635           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637           | -with-* | --with-* | -without-* | --without-* | --x)
1638             case "$ac_configure_args0 " in
1639               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640             esac
1641             ;;
1642           -* ) ac_must_keep_next=true ;;
1643         esac
1644       fi
1645       ac_configure_args="$ac_configure_args '$ac_arg'"
1646       ;;
1647     esac
1648   done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log.  We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659   # Save into config.log some information that might help in debugging.
1660   {
1661     echo
1662
1663     cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668     echo
1669     # The following way of writing the cache mishandles newlines in values,
1670 (
1671   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672     eval ac_val=\$$ac_var
1673     case $ac_val in #(
1674     *${as_nl}*)
1675       case $ac_var in #(
1676       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678       esac
1679       case $ac_var in #(
1680       _ | IFS | as_nl) ;; #(
1681       *) $as_unset $ac_var ;;
1682       esac ;;
1683     esac
1684   done
1685   (set) 2>&1 |
1686     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687     *${as_nl}ac_space=\ *)
1688       sed -n \
1689         "s/'\''/'\''\\\\'\'''\''/g;
1690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691       ;; #(
1692     *)
1693       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694       ;;
1695     esac |
1696     sort
1697 )
1698     echo
1699
1700     cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705     echo
1706     for ac_var in $ac_subst_vars
1707     do
1708       eval ac_val=\$$ac_var
1709       case $ac_val in
1710       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711       esac
1712       echo "$ac_var='\''$ac_val'\''"
1713     done | sort
1714     echo
1715
1716     if test -n "$ac_subst_files"; then
1717       cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722       echo
1723       for ac_var in $ac_subst_files
1724       do
1725         eval ac_val=\$$ac_var
1726         case $ac_val in
1727         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728         esac
1729         echo "$ac_var='\''$ac_val'\''"
1730       done | sort
1731       echo
1732     fi
1733
1734     if test -s confdefs.h; then
1735       cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740       echo
1741       cat confdefs.h
1742       echo
1743     fi
1744     test "$ac_signal" != 0 &&
1745       echo "$as_me: caught signal $ac_signal"
1746     echo "$as_me: exit $exit_status"
1747   } >&5
1748   rm -f core *.core core.conftest.* &&
1749     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750     exit $exit_status
1751 ' 0
1752 for ac_signal in 1 2 13 15; do
1753   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1756
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1759
1760 # Predefined preprocessor variables.
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1785
1786
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790   set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 else
1794   set x "$ac_default_prefix/share/config.site" \
1795         "$ac_default_prefix/etc/config.site"
1796 fi
1797 shift
1798 for ac_site_file
1799 do
1800   if test -r "$ac_site_file"; then
1801     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803     sed 's/^/| /' "$ac_site_file" >&5
1804     . "$ac_site_file"
1805   fi
1806 done
1807
1808 if test -r "$cache_file"; then
1809   # Some versions of bash will fail to source /dev/null (special
1810   # files actually), so we avoid doing that.
1811   if test -f "$cache_file"; then
1812     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1814     case $cache_file in
1815       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816       *)                      . "./$cache_file";;
1817     esac
1818   fi
1819 else
1820   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1822   >$cache_file
1823 fi
1824
1825 # Check that the precious variables saved in the cache have kept the same
1826 # value.
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830   eval ac_new_set=\$ac_env_${ac_var}_set
1831   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832   eval ac_new_val=\$ac_env_${ac_var}_value
1833   case $ac_old_set,$ac_new_set in
1834     set,)
1835       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837       ac_cache_corrupted=: ;;
1838     ,set)
1839       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841       ac_cache_corrupted=: ;;
1842     ,);;
1843     *)
1844       if test "x$ac_old_val" != "x$ac_new_val"; then
1845         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1848 echo "$as_me:   former value:  $ac_old_val" >&2;}
1849         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1850 echo "$as_me:   current value: $ac_new_val" >&2;}
1851         ac_cache_corrupted=:
1852       fi;;
1853   esac
1854   # Pass precious variables to config.status.
1855   if test "$ac_new_set" = set; then
1856     case $ac_new_val in
1857     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858     *) ac_arg=$ac_var=$ac_new_val ;;
1859     esac
1860     case " $ac_configure_args " in
1861       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1862       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863     esac
1864   fi
1865 done
1866 if $ac_cache_corrupted; then
1867   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1907
1908
1909
1910
1911
1912
1913
1914 ac_aux_dir=
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916   if test -f "$ac_dir/install-sh"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/install-sh -c"
1919     break
1920   elif test -f "$ac_dir/install.sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install.sh -c"
1923     break
1924   elif test -f "$ac_dir/shtool"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/shtool install -c"
1927     break
1928   fi
1929 done
1930 if test -z "$ac_aux_dir"; then
1931   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1943
1944
1945
1946 if test ${srcdir} != "." ; then
1947   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950    { (exit 1); exit 1; }; }
1951   fi
1952 fi
1953
1954 for i in `ls ${srcdir}/projects`
1955 do
1956   if test -d ${srcdir}/projects/${i} ; then
1957     case ${i} in
1958       CVS) ;;
1959       sample)       subdirs="$subdirs projects/sample"
1960     ;;
1961       privbracket)  subdirs="$subdirs projects/privbracket"
1962  ;;
1963       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1964  ;;
1965       # llvm-test is the old name of the test-suite, kept here for backwards
1966       # compatibility
1967       llvm-test)    subdirs="$subdirs projects/llvm-test"
1968  ;;
1969       test-suite)   subdirs="$subdirs projects/test-suite"
1970  ;;
1971       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1972 ;;
1973       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
1974   ;;
1975       llvm-java)    subdirs="$subdirs projects/llvm-java"
1976  ;;
1977       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1978    ;;
1979       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1980  ;;
1981       poolalloc)    subdirs="$subdirs projects/poolalloc"
1982  ;;
1983       safecode)     subdirs="$subdirs projects/safecode"
1984  ;;
1985       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
1986  ;;
1987       *)
1988         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1989 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1990         ;;
1991     esac
1992   fi
1993 done
1994
1995
1996 # Make sure we can run config.sub.
1997 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1998   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1999 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2000    { (exit 1); exit 1; }; }
2001
2002 { echo "$as_me:$LINENO: checking build system type" >&5
2003 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2004 if test "${ac_cv_build+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   ac_build_alias=$build_alias
2008 test "x$ac_build_alias" = x &&
2009   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2010 test "x$ac_build_alias" = x &&
2011   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2012 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2013    { (exit 1); exit 1; }; }
2014 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2015   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2016 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2017    { (exit 1); exit 1; }; }
2018
2019 fi
2020 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2021 echo "${ECHO_T}$ac_cv_build" >&6; }
2022 case $ac_cv_build in
2023 *-*-*) ;;
2024 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2025 echo "$as_me: error: invalid value of canonical build" >&2;}
2026    { (exit 1); exit 1; }; };;
2027 esac
2028 build=$ac_cv_build
2029 ac_save_IFS=$IFS; IFS='-'
2030 set x $ac_cv_build
2031 shift
2032 build_cpu=$1
2033 build_vendor=$2
2034 shift; shift
2035 # Remember, the first character of IFS is used to create $*,
2036 # except with old shells:
2037 build_os=$*
2038 IFS=$ac_save_IFS
2039 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2040
2041
2042 { echo "$as_me:$LINENO: checking host system type" >&5
2043 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2044 if test "${ac_cv_host+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test "x$host_alias" = x; then
2048   ac_cv_host=$ac_cv_build
2049 else
2050   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2051     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2052 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2053    { (exit 1); exit 1; }; }
2054 fi
2055
2056 fi
2057 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2058 echo "${ECHO_T}$ac_cv_host" >&6; }
2059 case $ac_cv_host in
2060 *-*-*) ;;
2061 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2062 echo "$as_me: error: invalid value of canonical host" >&2;}
2063    { (exit 1); exit 1; }; };;
2064 esac
2065 host=$ac_cv_host
2066 ac_save_IFS=$IFS; IFS='-'
2067 set x $ac_cv_host
2068 shift
2069 host_cpu=$1
2070 host_vendor=$2
2071 shift; shift
2072 # Remember, the first character of IFS is used to create $*,
2073 # except with old shells:
2074 host_os=$*
2075 IFS=$ac_save_IFS
2076 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2077
2078
2079 { echo "$as_me:$LINENO: checking target system type" >&5
2080 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2081 if test "${ac_cv_target+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   if test "x$target_alias" = x; then
2085   ac_cv_target=$ac_cv_host
2086 else
2087   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2088     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2089 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2090    { (exit 1); exit 1; }; }
2091 fi
2092
2093 fi
2094 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2095 echo "${ECHO_T}$ac_cv_target" >&6; }
2096 case $ac_cv_target in
2097 *-*-*) ;;
2098 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2099 echo "$as_me: error: invalid value of canonical target" >&2;}
2100    { (exit 1); exit 1; }; };;
2101 esac
2102 target=$ac_cv_target
2103 ac_save_IFS=$IFS; IFS='-'
2104 set x $ac_cv_target
2105 shift
2106 target_cpu=$1
2107 target_vendor=$2
2108 shift; shift
2109 # Remember, the first character of IFS is used to create $*,
2110 # except with old shells:
2111 target_os=$*
2112 IFS=$ac_save_IFS
2113 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2114
2115
2116 # The aliases save the names the user supplied, while $host etc.
2117 # will get canonicalized.
2118 test -n "$target_alias" &&
2119   test "$program_prefix$program_suffix$program_transform_name" = \
2120     NONENONEs,x,x, &&
2121   program_prefix=${target_alias}-
2122
2123 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2124 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2125 if test "${llvm_cv_os_type+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   case $host in
2129   *-*-aix*)
2130     llvm_cv_link_all_option="-Wl,--whole-archive"
2131     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2132     llvm_cv_os_type="AIX"
2133     llvm_cv_platform_type="Unix" ;;
2134   *-*-irix*)
2135     llvm_cv_link_all_option="-Wl,--whole-archive"
2136     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2137     llvm_cv_os_type="IRIX"
2138     llvm_cv_platform_type="Unix" ;;
2139   *-*-cygwin*)
2140     llvm_cv_link_all_option="-Wl,--whole-archive"
2141     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2142     llvm_cv_os_type="Cygwin"
2143     llvm_cv_platform_type="Unix" ;;
2144   *-*-darwin*)
2145     llvm_cv_link_all_option="-Wl,-all_load"
2146     llvm_cv_no_link_all_option="-Wl,-noall_load"
2147     llvm_cv_os_type="Darwin"
2148     llvm_cv_platform_type="Unix" ;;
2149   *-*-freebsd*)
2150     llvm_cv_link_all_option="-Wl,--whole-archive"
2151     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152     llvm_cv_os_type="FreeBSD"
2153     llvm_cv_platform_type="Unix" ;;
2154   *-*-openbsd*)
2155     llvm_cv_link_all_option="-Wl,--whole-archive"
2156     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157     llvm_cv_os_type="OpenBSD"
2158     llvm_cv_platform_type="Unix" ;;
2159   *-*-netbsd*)
2160     llvm_cv_link_all_option="-Wl,--whole-archive"
2161     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162     llvm_cv_os_type="NetBSD"
2163     llvm_cv_platform_type="Unix" ;;
2164   *-*-dragonfly*)
2165     llvm_cv_link_all_option="-Wl,--whole-archive"
2166     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167     llvm_cv_os_type="DragonFly"
2168     llvm_cv_platform_type="Unix" ;;
2169   *-*-hpux*)
2170     llvm_cv_link_all_option="-Wl,--whole-archive"
2171     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2172     llvm_cv_os_type="HP-UX"
2173     llvm_cv_platform_type="Unix" ;;
2174   *-*-interix*)
2175     llvm_cv_link_all_option="-Wl,--whole-archive"
2176     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177     llvm_cv_os_type="Interix"
2178     llvm_cv_platform_type="Unix" ;;
2179   *-*-linux*)
2180     llvm_cv_link_all_option="-Wl,--whole-archive"
2181     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182     llvm_cv_os_type="Linux"
2183     llvm_cv_platform_type="Unix" ;;
2184   *-*-solaris*)
2185     llvm_cv_link_all_option="-Wl,-z,allextract"
2186     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2187     llvm_cv_os_type="SunOS"
2188     llvm_cv_platform_type="Unix" ;;
2189   *-*-auroraux*)
2190     llvm_cv_link_all_option="-Wl,-z,allextract"
2191     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2192     llvm_cv_os_type="AuroraUX"
2193     llvm_cv_platform_type="Unix" ;;
2194   *-*-win32*)
2195     llvm_cv_link_all_option="-Wl,--whole-archive"
2196     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197     llvm_cv_os_type="Win32"
2198     llvm_cv_platform_type="Win32" ;;
2199   *-*-mingw*)
2200     llvm_cv_link_all_option="-Wl,--whole-archive"
2201     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202     llvm_cv_os_type="MingW"
2203     llvm_cv_platform_type="Win32" ;;
2204   *-*-haiku*)
2205     llvm_cv_link_all_option="-Wl,--whole-archive"
2206     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207     llvm_cv_os_type="Haiku"
2208     llvm_cv_platform_type="Unix" ;;
2209   *-unknown-eabi*)
2210     llvm_cv_link_all_option="-Wl,--whole-archive"
2211     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2212     llvm_cv_os_type="Freestanding"
2213     llvm_cv_platform_type="Unix" ;;
2214   *-unknown-elf*)
2215     llvm_cv_link_all_option="-Wl,--whole-archive"
2216     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2217     llvm_cv_os_type="Freestanding"
2218     llvm_cv_platform_type="Unix" ;;
2219   *)
2220     llvm_cv_link_all_option=""
2221     llvm_cv_no_link_all_option=""
2222     llvm_cv_os_type="Unknown"
2223     llvm_cv_platform_type="Unknown" ;;
2224 esac
2225 fi
2226 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2227 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2228
2229 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2230 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2231 if test "${llvm_cv_target_os_type+set}" = set; then
2232   echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234   case $target in
2235   *-*-aix*)
2236     llvm_cv_target_os_type="AIX" ;;
2237   *-*-irix*)
2238     llvm_cv_target_os_type="IRIX" ;;
2239   *-*-cygwin*)
2240     llvm_cv_target_os_type="Cygwin" ;;
2241   *-*-darwin*)
2242     llvm_cv_target_os_type="Darwin" ;;
2243   *-*-freebsd*)
2244     llvm_cv_target_os_type="FreeBSD" ;;
2245   *-*-openbsd*)
2246     llvm_cv_target_os_type="OpenBSD" ;;
2247   *-*-netbsd*)
2248     llvm_cv_target_os_type="NetBSD" ;;
2249   *-*-dragonfly*)
2250     llvm_cv_target_os_type="DragonFly" ;;
2251   *-*-hpux*)
2252     llvm_cv_target_os_type="HP-UX" ;;
2253   *-*-interix*)
2254     llvm_cv_target_os_type="Interix" ;;
2255   *-*-linux*)
2256     llvm_cv_target_os_type="Linux" ;;
2257   *-*-solaris*)
2258     llvm_cv_target_os_type="SunOS" ;;
2259   *-*-auroraux*)
2260     llvm_cv_target_os_type="AuroraUX" ;;
2261   *-*-win32*)
2262     llvm_cv_target_os_type="Win32" ;;
2263   *-*-mingw*)
2264     llvm_cv_target_os_type="MingW" ;;
2265   *-*-haiku*)
2266     llvm_cv_target_os_type="Haiku" ;;
2267   *-unknown-eabi*)
2268     llvm_cv_target_os_type="Freestanding" ;;
2269   *)
2270     llvm_cv_target_os_type="Unknown" ;;
2271 esac
2272 fi
2273 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2274 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2275
2276 if test "$llvm_cv_os_type" = "Unknown" ; then
2277   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2278 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2279    { (exit 1); exit 1; }; }
2280 fi
2281
2282 OS=$llvm_cv_os_type
2283
2284 HOST_OS=$llvm_cv_os_type
2285
2286 TARGET_OS=$llvm_cv_target_os_type
2287
2288
2289 LINKALL=$llvm_cv_link_all_option
2290
2291 NOLINKALL=$llvm_cv_no_link_all_option
2292
2293
2294 case $llvm_cv_platform_type in
2295   Unix)
2296
2297 cat >>confdefs.h <<\_ACEOF
2298 #define LLVM_ON_UNIX 1
2299 _ACEOF
2300
2301     LLVM_ON_UNIX=1
2302
2303     LLVM_ON_WIN32=0
2304
2305     ;;
2306   Win32)
2307
2308 cat >>confdefs.h <<\_ACEOF
2309 #define LLVM_ON_WIN32 1
2310 _ACEOF
2311
2312     LLVM_ON_UNIX=0
2313
2314     LLVM_ON_WIN32=1
2315
2316     ;;
2317 esac
2318
2319 { echo "$as_me:$LINENO: checking target architecture" >&5
2320 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2321 if test "${llvm_cv_target_arch+set}" = set; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   case $target in
2325   i?86-*)                 llvm_cv_target_arch="x86" ;;
2326   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2327   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2328   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2329   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2330   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2331   mips-*)                 llvm_cv_target_arch="Mips" ;;
2332   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2333   xcore-*)                llvm_cv_target_arch="XCore" ;;
2334   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2335   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2336   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2337   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2338   *)                      llvm_cv_target_arch="Unknown" ;;
2339 esac
2340 fi
2341 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2342 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2343
2344 if test "$llvm_cv_target_arch" = "Unknown" ; then
2345   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2346 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2347 fi
2348
2349 # Determine the LLVM native architecture for the target
2350 case "$llvm_cv_target_arch" in
2351     x86)     LLVM_NATIVE_ARCH="X86" ;;
2352     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2353     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2354 esac
2355
2356 ARCH=$llvm_cv_target_arch
2357
2358
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 if test -n "$ac_tool_prefix"; then
2365   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_CC+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   if test -n "$CC"; then
2373   ac_cv_prog_CC="$CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2382     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391 fi
2392 CC=$ac_cv_prog_CC
2393 if test -n "$CC"; then
2394   { echo "$as_me:$LINENO: result: $CC" >&5
2395 echo "${ECHO_T}$CC" >&6; }
2396 else
2397   { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2399 fi
2400
2401
2402 fi
2403 if test -z "$ac_cv_prog_CC"; then
2404   ac_ct_CC=$CC
2405   # Extract the first word of "gcc", so it can be a program name with args.
2406 set dummy gcc; ac_word=$2
2407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   if test -n "$ac_ct_CC"; then
2413   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420   for ac_exec_ext in '' $ac_executable_extensions; do
2421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2422     ac_cv_prog_ac_ct_CC="gcc"
2423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424     break 2
2425   fi
2426 done
2427 done
2428 IFS=$as_save_IFS
2429
2430 fi
2431 fi
2432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2433 if test -n "$ac_ct_CC"; then
2434   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2435 echo "${ECHO_T}$ac_ct_CC" >&6; }
2436 else
2437   { echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6; }
2439 fi
2440
2441   if test "x$ac_ct_CC" = x; then
2442     CC=""
2443   else
2444     case $cross_compiling:$ac_tool_warned in
2445 yes:)
2446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet.  If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&5
2449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2450 whose name does not start with the host triplet.  If you think this
2451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2452 ac_tool_warned=yes ;;
2453 esac
2454     CC=$ac_ct_CC
2455   fi
2456 else
2457   CC="$ac_cv_prog_CC"
2458 fi
2459
2460 if test -z "$CC"; then
2461           if test -n "$ac_tool_prefix"; then
2462     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}cc; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_CC+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   if test -n "$CC"; then
2470   ac_cv_prog_CC="$CC" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477   for ac_exec_ext in '' $ac_executable_extensions; do
2478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2479     ac_cv_prog_CC="${ac_tool_prefix}cc"
2480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 CC=$ac_cv_prog_CC
2490 if test -n "$CC"; then
2491   { echo "$as_me:$LINENO: result: $CC" >&5
2492 echo "${ECHO_T}$CC" >&6; }
2493 else
2494   { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2496 fi
2497
2498
2499   fi
2500 fi
2501 if test -z "$CC"; then
2502   # Extract the first word of "cc", so it can be a program name with args.
2503 set dummy cc; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_CC+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   if test -n "$CC"; then
2510   ac_cv_prog_CC="$CC" # Let the user override the test.
2511 else
2512   ac_prog_rejected=no
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2520     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2521        ac_prog_rejected=yes
2522        continue
2523      fi
2524     ac_cv_prog_CC="cc"
2525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526     break 2
2527   fi
2528 done
2529 done
2530 IFS=$as_save_IFS
2531
2532 if test $ac_prog_rejected = yes; then
2533   # We found a bogon in the path, so make sure we never use it.
2534   set dummy $ac_cv_prog_CC
2535   shift
2536   if test $# != 0; then
2537     # We chose a different compiler from the bogus one.
2538     # However, it has the same basename, so the bogon will be chosen
2539     # first if we set CC to just the basename; use the full file name.
2540     shift
2541     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2542   fi
2543 fi
2544 fi
2545 fi
2546 CC=$ac_cv_prog_CC
2547 if test -n "$CC"; then
2548   { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2550 else
2551   { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2553 fi
2554
2555
2556 fi
2557 if test -z "$CC"; then
2558   if test -n "$ac_tool_prefix"; then
2559   for ac_prog in cl.exe
2560   do
2561     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565 if test "${ac_cv_prog_CC+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   if test -n "$CC"; then
2569   ac_cv_prog_CC="$CC" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576   for ac_exec_ext in '' $ac_executable_extensions; do
2577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2578     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580     break 2
2581   fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 CC=$ac_cv_prog_CC
2589 if test -n "$CC"; then
2590   { echo "$as_me:$LINENO: result: $CC" >&5
2591 echo "${ECHO_T}$CC" >&6; }
2592 else
2593   { echo "$as_me:$LINENO: result: no" >&5
2594 echo "${ECHO_T}no" >&6; }
2595 fi
2596
2597
2598     test -n "$CC" && break
2599   done
2600 fi
2601 if test -z "$CC"; then
2602   ac_ct_CC=$CC
2603   for ac_prog in cl.exe
2604 do
2605   # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy $ac_prog; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2610   echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612   if test -n "$ac_ct_CC"; then
2613   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618   IFS=$as_save_IFS
2619   test -z "$as_dir" && as_dir=.
2620   for ac_exec_ext in '' $ac_executable_extensions; do
2621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2622     ac_cv_prog_ac_ct_CC="$ac_prog"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633 if test -n "$ac_ct_CC"; then
2634   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2635 echo "${ECHO_T}$ac_ct_CC" >&6; }
2636 else
2637   { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2639 fi
2640
2641
2642   test -n "$ac_ct_CC" && break
2643 done
2644
2645   if test "x$ac_ct_CC" = x; then
2646     CC=""
2647   else
2648     case $cross_compiling:$ac_tool_warned in
2649 yes:)
2650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet.  If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&5
2653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2654 whose name does not start with the host triplet.  If you think this
2655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2656 ac_tool_warned=yes ;;
2657 esac
2658     CC=$ac_ct_CC
2659   fi
2660 fi
2661
2662 fi
2663
2664
2665 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&5
2667 echo "$as_me: error: no acceptable C compiler found in \$PATH
2668 See \`config.log' for more details." >&2;}
2669    { (exit 1); exit 1; }; }
2670
2671 # Provide some information about the compiler.
2672 echo "$as_me:$LINENO: checking for C compiler version" >&5
2673 ac_compiler=`set X $ac_compile; echo $2`
2674 { (ac_try="$ac_compiler --version >&5"
2675 case "(($ac_try" in
2676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677   *) ac_try_echo=$ac_try;;
2678 esac
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680   (eval "$ac_compiler --version >&5") 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }
2684 { (ac_try="$ac_compiler -v >&5"
2685 case "(($ac_try" in
2686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687   *) ac_try_echo=$ac_try;;
2688 esac
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690   (eval "$ac_compiler -v >&5") 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }
2694 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }
2704
2705 cat >conftest.$ac_ext <<_ACEOF
2706 /* confdefs.h.  */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h.  */
2711
2712 int
2713 main ()
2714 {
2715
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 ac_clean_files_save=$ac_clean_files
2721 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2722 # Try to create an executable without -o first, disregard a.out.
2723 # It will help us diagnose broken compilers, and finding out an intuition
2724 # of exeext.
2725 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2726 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2727 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2728 #
2729 # List of possible output files, starting from the most likely.
2730 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2731 # only as a last resort.  b.out is created by i960 compilers.
2732 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2733 #
2734 # The IRIX 6 linker writes into existing files which may not be
2735 # executable, retaining their permissions.  Remove them first so a
2736 # subsequent execution test works.
2737 ac_rmfiles=
2738 for ac_file in $ac_files
2739 do
2740   case $ac_file in
2741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2742     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2743   esac
2744 done
2745 rm -f $ac_rmfiles
2746
2747 if { (ac_try="$ac_link_default"
2748 case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753   (eval "$ac_link_default") 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }; then
2757   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2759 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2760 # so that the user can short-circuit this test for compilers unknown to
2761 # Autoconf.
2762 for ac_file in $ac_files
2763 do
2764   test -f "$ac_file" || continue
2765   case $ac_file in
2766     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2767         ;;
2768     [ab].out )
2769         # We found the default executable, but exeext='' is most
2770         # certainly right.
2771         break;;
2772     *.* )
2773         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2774         then :; else
2775            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2776         fi
2777         # We set ac_cv_exeext here because the later test for it is not
2778         # safe: cross compilers may not add the suffix if given an `-o'
2779         # argument, so we may need to know it at that point already.
2780         # Even if this section looks crufty: it has the advantage of
2781         # actually working.
2782         break;;
2783     * )
2784         break;;
2785   esac
2786 done
2787 test "$ac_cv_exeext" = no && ac_cv_exeext=
2788
2789 else
2790   echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2794 See \`config.log' for more details." >&5
2795 echo "$as_me: error: C compiler cannot create executables
2796 See \`config.log' for more details." >&2;}
2797    { (exit 77); exit 77; }; }
2798 fi
2799
2800 ac_exeext=$ac_cv_exeext
2801 { echo "$as_me:$LINENO: result: $ac_file" >&5
2802 echo "${ECHO_T}$ac_file" >&6; }
2803
2804 # Check that the compiler produces executables we can run.  If not, either
2805 # the compiler is broken, or we cross compile.
2806 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2807 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2808 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2809 # If not cross compiling, check that we can run a simple program.
2810 if test "$cross_compiling" != yes; then
2811   if { ac_try='./$ac_file'
2812   { (case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_try") 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }; }; then
2821     cross_compiling=no
2822   else
2823     if test "$cross_compiling" = maybe; then
2824         cross_compiling=yes
2825     else
2826         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details." >&5
2829 echo "$as_me: error: cannot run C compiled programs.
2830 If you meant to cross compile, use \`--host'.
2831 See \`config.log' for more details." >&2;}
2832    { (exit 1); exit 1; }; }
2833     fi
2834   fi
2835 fi
2836 { echo "$as_me:$LINENO: result: yes" >&5
2837 echo "${ECHO_T}yes" >&6; }
2838
2839 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2840 ac_clean_files=$ac_clean_files_save
2841 # Check that the compiler produces executables we can run.  If not, either
2842 # the compiler is broken, or we cross compile.
2843 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2844 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2845 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2846 echo "${ECHO_T}$cross_compiling" >&6; }
2847
2848 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2849 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2850 if { (ac_try="$ac_link"
2851 case "(($ac_try" in
2852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853   *) ac_try_echo=$ac_try;;
2854 esac
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856   (eval "$ac_link") 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; then
2860   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2861 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2862 # work properly (i.e., refer to `conftest.exe'), while it won't with
2863 # `rm'.
2864 for ac_file in conftest.exe conftest conftest.*; do
2865   test -f "$ac_file" || continue
2866   case $ac_file in
2867     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2868     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869           break;;
2870     * ) break;;
2871   esac
2872 done
2873 else
2874   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&5
2876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2877 See \`config.log' for more details." >&2;}
2878    { (exit 1); exit 1; }; }
2879 fi
2880
2881 rm -f conftest$ac_cv_exeext
2882 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2883 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2884
2885 rm -f conftest.$ac_ext
2886 EXEEXT=$ac_cv_exeext
2887 ac_exeext=$EXEEXT
2888 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2890 if test "${ac_cv_objext+set}" = set; then
2891   echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893   cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h.  */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h.  */
2899
2900 int
2901 main ()
2902 {
2903
2904   ;
2905   return 0;
2906 }
2907 _ACEOF
2908 rm -f conftest.o conftest.obj
2909 if { (ac_try="$ac_compile"
2910 case "(($ac_try" in
2911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912   *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915   (eval "$ac_compile") 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; then
2919   for ac_file in conftest.o conftest.obj conftest.*; do
2920   test -f "$ac_file" || continue;
2921   case $ac_file in
2922     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2923     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2924        break;;
2925   esac
2926 done
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&5
2933 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log' for more details." >&2;}
2935    { (exit 1); exit 1; }; }
2936 fi
2937
2938 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2939 fi
2940 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2941 echo "${ECHO_T}$ac_cv_objext" >&6; }
2942 OBJEXT=$ac_cv_objext
2943 ac_objext=$OBJEXT
2944 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2945 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2946 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2947   echo $ECHO_N "(cached) $ECHO_C" >&6
2948 else
2949   cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955
2956 int
2957 main ()
2958 {
2959 #ifndef __GNUC__
2960        choke me
2961 #endif
2962
2963   ;
2964   return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_compile") 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } &&
2981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2982   { (case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_try") 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; } &&
2991          { ac_try='test -s conftest.$ac_objext'
2992   { (case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_try") 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }; }; then
3001   ac_compiler_gnu=yes
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006         ac_compiler_gnu=no
3007 fi
3008
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3011
3012 fi
3013 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3014 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3015 GCC=`test $ac_compiler_gnu = yes && echo yes`
3016 ac_test_CFLAGS=${CFLAGS+set}
3017 ac_save_CFLAGS=$CFLAGS
3018 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3019 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_cc_g+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   ac_save_c_werror_flag=$ac_c_werror_flag
3024    ac_c_werror_flag=yes
3025    ac_cv_prog_cc_g=no
3026    CFLAGS="-g"
3027    cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h.  */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h.  */
3033
3034 int
3035 main ()
3036 {
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_compile") 2>conftest.er1
3050   ac_status=$?
3051   grep -v '^ *+' conftest.er1 >conftest.err
3052   rm -f conftest.er1
3053   cat conftest.err >&5
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); } &&
3056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057   { (case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_try") 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; } &&
3066          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   ac_cv_prog_cc_g=yes
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081         CFLAGS=""
3082       cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } &&
3111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3112   { (case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_try") 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; } &&
3121          { ac_try='test -s conftest.$ac_objext'
3122   { (case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127   (eval "$ac_try") 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); }; }; then
3131   :
3132 else
3133   echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136         ac_c_werror_flag=$ac_save_c_werror_flag
3137          CFLAGS="-g"
3138          cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144
3145 int
3146 main ()
3147 {
3148
3149   ;
3150   return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (ac_try="$ac_compile"
3155 case "(($ac_try" in
3156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157   *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160   (eval "$ac_compile") 2>conftest.er1
3161   ac_status=$?
3162   grep -v '^ *+' conftest.er1 >conftest.err
3163   rm -f conftest.er1
3164   cat conftest.err >&5
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); } &&
3167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3168   { (case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173   (eval "$ac_try") 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; } &&
3177          { ac_try='test -s conftest.$ac_objext'
3178   { (case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_try") 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; }; then
3187   ac_cv_prog_cc_g=yes
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202    ac_c_werror_flag=$ac_save_c_werror_flag
3203 fi
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3206 if test "$ac_test_CFLAGS" = set; then
3207   CFLAGS=$ac_save_CFLAGS
3208 elif test $ac_cv_prog_cc_g = yes; then
3209   if test "$GCC" = yes; then
3210     CFLAGS="-g -O2"
3211   else
3212     CFLAGS="-g"
3213   fi
3214 else
3215   if test "$GCC" = yes; then
3216     CFLAGS="-O2"
3217   else
3218     CFLAGS=
3219   fi
3220 fi
3221 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3222 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3223 if test "${ac_cv_prog_cc_c89+set}" = set; then
3224   echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226   ac_cv_prog_cc_c89=no
3227 ac_save_CC=$CC
3228 cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h.  */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h.  */
3234 #include <stdarg.h>
3235 #include <stdio.h>
3236 #include <sys/types.h>
3237 #include <sys/stat.h>
3238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3239 struct buf { int x; };
3240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241 static char *e (p, i)
3242      char **p;
3243      int i;
3244 {
3245   return p[i];
3246 }
3247 static char *f (char * (*g) (char **, int), char **p, ...)
3248 {
3249   char *s;
3250   va_list v;
3251   va_start (v,p);
3252   s = g (p, va_arg (v,int));
3253   va_end (v);
3254   return s;
3255 }
3256
3257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3258    function prototypes and stuff, but not '\xHH' hex character constants.
3259    These don't provoke an error unfortunately, instead are silently treated
3260    as 'x'.  The following induces an error, until -std is added to get
3261    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3262    array size at least.  It's necessary to write '\x00'==0 to get something
3263    that's true only with -std.  */
3264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265
3266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267    inside strings and character constants.  */
3268 #define FOO(x) 'x'
3269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270
3271 int test (int i, double x);
3272 struct s1 {int (*f) (int a);};
3273 struct s2 {int (*f) (double a);};
3274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275 int argc;
3276 char **argv;
3277 int
3278 main ()
3279 {
3280 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3281   ;
3282   return 0;
3283 }
3284 _ACEOF
3285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287 do
3288   CC="$ac_save_CC $ac_arg"
3289   rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_compile") 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } &&
3303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3304   { (case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309   (eval "$ac_try") 2>&5
3310   ac_status=$?
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); }; } &&
3313          { ac_try='test -s conftest.$ac_objext'
3314   { (case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_try") 2>&5
3320   ac_status=$?
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); }; }; then
3323   ac_cv_prog_cc_c89=$ac_arg
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328
3329 fi
3330
3331 rm -f core conftest.err conftest.$ac_objext
3332   test "x$ac_cv_prog_cc_c89" != "xno" && break
3333 done
3334 rm -f conftest.$ac_ext
3335 CC=$ac_save_CC
3336
3337 fi
3338 # AC_CACHE_VAL
3339 case "x$ac_cv_prog_cc_c89" in
3340   x)
3341     { echo "$as_me:$LINENO: result: none needed" >&5
3342 echo "${ECHO_T}none needed" >&6; } ;;
3343   xno)
3344     { echo "$as_me:$LINENO: result: unsupported" >&5
3345 echo "${ECHO_T}unsupported" >&6; } ;;
3346   *)
3347     CC="$CC $ac_cv_prog_cc_c89"
3348     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3349 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3350 esac
3351
3352
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358
3359
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3367 # On Suns, sometimes $CPP names a directory.
3368 if test -n "$CPP" && test -d "$CPP"; then
3369   CPP=
3370 fi
3371 if test -z "$CPP"; then
3372   if test "${ac_cv_prog_CPP+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375       # Double quotes because CPP needs to be expanded
3376     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377     do
3378       ac_preproc_ok=false
3379 for ac_c_preproc_warn_flag in '' yes
3380 do
3381   # Use a header file that comes with gcc, so configuring glibc
3382   # with a fresh cross-compiler works.
3383   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384   # <limits.h> exists even on freestanding compilers.
3385   # On the NeXT, cc -E runs the code through the compiler's parser,
3386   # not just through cpp. "Syntax error" is here to catch this case.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393 #ifdef __STDC__
3394 # include <limits.h>
3395 #else
3396 # include <assert.h>
3397 #endif
3398                      Syntax error
3399 _ACEOF
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3401 case "(($ac_try" in
3402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403   *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407   ac_status=$?
3408   grep -v '^ *+' conftest.er1 >conftest.err
3409   rm -f conftest.er1
3410   cat conftest.err >&5
3411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); } >/dev/null; then
3413   if test -s conftest.err; then
3414     ac_cpp_err=$ac_c_preproc_warn_flag
3415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416   else
3417     ac_cpp_err=
3418   fi
3419 else
3420   ac_cpp_err=yes
3421 fi
3422 if test -z "$ac_cpp_err"; then
3423   :
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428   # Broken: fails on valid input.
3429 continue
3430 fi
3431
3432 rm -f conftest.err conftest.$ac_ext
3433
3434   # OK, works on sane cases.  Now check whether nonexistent headers
3435   # can be detected and how.
3436   cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h.  */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h.  */
3442 #include <ac_nonexistent.h>
3443 _ACEOF
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } >/dev/null; then
3457   if test -s conftest.err; then
3458     ac_cpp_err=$ac_c_preproc_warn_flag
3459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460   else
3461     ac_cpp_err=
3462   fi
3463 else
3464   ac_cpp_err=yes
3465 fi
3466 if test -z "$ac_cpp_err"; then
3467   # Broken: success on invalid input.
3468 continue
3469 else
3470   echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473   # Passes both tests.
3474 ac_preproc_ok=:
3475 break
3476 fi
3477
3478 rm -f conftest.err conftest.$ac_ext
3479
3480 done
3481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482 rm -f conftest.err conftest.$ac_ext
3483 if $ac_preproc_ok; then
3484   break
3485 fi
3486
3487     done
3488     ac_cv_prog_CPP=$CPP
3489
3490 fi
3491   CPP=$ac_cv_prog_CPP
3492 else
3493   ac_cv_prog_CPP=$CPP
3494 fi
3495 { echo "$as_me:$LINENO: result: $CPP" >&5
3496 echo "${ECHO_T}$CPP" >&6; }
3497 ac_preproc_ok=false
3498 for ac_c_preproc_warn_flag in '' yes
3499 do
3500   # Use a header file that comes with gcc, so configuring glibc
3501   # with a fresh cross-compiler works.
3502   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503   # <limits.h> exists even on freestanding compilers.
3504   # On the NeXT, cc -E runs the code through the compiler's parser,
3505   # not just through cpp. "Syntax error" is here to catch this case.
3506   cat >conftest.$ac_ext <<_ACEOF
3507 /* confdefs.h.  */
3508 _ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h.  */
3512 #ifdef __STDC__
3513 # include <limits.h>
3514 #else
3515 # include <assert.h>
3516 #endif
3517                      Syntax error
3518 _ACEOF
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } >/dev/null; then
3532   if test -s conftest.err; then
3533     ac_cpp_err=$ac_c_preproc_warn_flag
3534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535   else
3536     ac_cpp_err=
3537   fi
3538 else
3539   ac_cpp_err=yes
3540 fi
3541 if test -z "$ac_cpp_err"; then
3542   :
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547   # Broken: fails on valid input.
3548 continue
3549 fi
3550
3551 rm -f conftest.err conftest.$ac_ext
3552
3553   # OK, works on sane cases.  Now check whether nonexistent headers
3554   # can be detected and how.
3555   cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h.  */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h.  */
3561 #include <ac_nonexistent.h>
3562 _ACEOF
3563 if { (ac_try="$ac_cpp conftest.$ac_ext"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } >/dev/null; then
3576   if test -s conftest.err; then
3577     ac_cpp_err=$ac_c_preproc_warn_flag
3578     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579   else
3580     ac_cpp_err=
3581   fi
3582 else
3583   ac_cpp_err=yes
3584 fi
3585 if test -z "$ac_cpp_err"; then
3586   # Broken: success on invalid input.
3587 continue
3588 else
3589   echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592   # Passes both tests.
3593 ac_preproc_ok=:
3594 break
3595 fi
3596
3597 rm -f conftest.err conftest.$ac_ext
3598
3599 done
3600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3601 rm -f conftest.err conftest.$ac_ext
3602 if $ac_preproc_ok; then
3603   :
3604 else
3605   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details." >&5
3607 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3608 See \`config.log' for more details." >&2;}
3609    { (exit 1); exit 1; }; }
3610 fi
3611
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618
3619 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3620 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3621 if test "${ac_cv_path_GREP+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   # Extract the first word of "grep ggrep" to use in msg output
3625 if test -z "$GREP"; then
3626 set dummy grep ggrep; ac_prog_name=$2
3627 if test "${ac_cv_path_GREP+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   ac_path_GREP_found=false
3631 # Loop through the user's path and test for each of PROGNAME-LIST
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637   for ac_prog in grep ggrep; do
3638   for ac_exec_ext in '' $ac_executable_extensions; do
3639     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3640     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3641     # Check for GNU ac_path_GREP and select it if it is found.
3642   # Check for GNU $ac_path_GREP
3643 case `"$ac_path_GREP" --version 2>&1` in
3644 *GNU*)
3645   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3646 *)
3647   ac_count=0
3648   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3649   while :
3650   do
3651     cat "conftest.in" "conftest.in" >"conftest.tmp"
3652     mv "conftest.tmp" "conftest.in"
3653     cp "conftest.in" "conftest.nl"
3654     echo 'GREP' >> "conftest.nl"
3655     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3656     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3657     ac_count=`expr $ac_count + 1`
3658     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3659       # Best one so far, save it but keep looking for a better one
3660       ac_cv_path_GREP="$ac_path_GREP"
3661       ac_path_GREP_max=$ac_count
3662     fi
3663     # 10*(2^10) chars as input seems more than enough
3664     test $ac_count -gt 10 && break
3665   done
3666   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3667 esac
3668
3669
3670     $ac_path_GREP_found && break 3
3671   done
3672 done
3673
3674 done
3675 IFS=$as_save_IFS
3676
3677
3678 fi
3679
3680 GREP="$ac_cv_path_GREP"
3681 if test -z "$GREP"; then
3682   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3683 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3684    { (exit 1); exit 1; }; }
3685 fi
3686
3687 else
3688   ac_cv_path_GREP=$GREP
3689 fi
3690
3691
3692 fi
3693 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3694 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3695  GREP="$ac_cv_path_GREP"
3696
3697
3698 { echo "$as_me:$LINENO: checking for egrep" >&5
3699 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3700 if test "${ac_cv_path_EGREP+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3704    then ac_cv_path_EGREP="$GREP -E"
3705    else
3706      # Extract the first word of "egrep" to use in msg output
3707 if test -z "$EGREP"; then
3708 set dummy egrep; ac_prog_name=$2
3709 if test "${ac_cv_path_EGREP+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   ac_path_EGREP_found=false
3713 # Loop through the user's path and test for each of PROGNAME-LIST
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3716 do
3717   IFS=$as_save_IFS
3718   test -z "$as_dir" && as_dir=.
3719   for ac_prog in egrep; do
3720   for ac_exec_ext in '' $ac_executable_extensions; do
3721     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3722     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3723     # Check for GNU ac_path_EGREP and select it if it is found.
3724   # Check for GNU $ac_path_EGREP
3725 case `"$ac_path_EGREP" --version 2>&1` in
3726 *GNU*)
3727   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3728 *)
3729   ac_count=0
3730   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3731   while :
3732   do
3733     cat "conftest.in" "conftest.in" >"conftest.tmp"
3734     mv "conftest.tmp" "conftest.in"
3735     cp "conftest.in" "conftest.nl"
3736     echo 'EGREP' >> "conftest.nl"
3737     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3738     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3739     ac_count=`expr $ac_count + 1`
3740     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741       # Best one so far, save it but keep looking for a better one
3742       ac_cv_path_EGREP="$ac_path_EGREP"
3743       ac_path_EGREP_max=$ac_count
3744     fi
3745     # 10*(2^10) chars as input seems more than enough
3746     test $ac_count -gt 10 && break
3747   done
3748   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3749 esac
3750
3751
3752     $ac_path_EGREP_found && break 3
3753   done
3754 done
3755
3756 done
3757 IFS=$as_save_IFS
3758
3759
3760 fi
3761
3762 EGREP="$ac_cv_path_EGREP"
3763 if test -z "$EGREP"; then
3764   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3765 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3766    { (exit 1); exit 1; }; }
3767 fi
3768
3769 else
3770   ac_cv_path_EGREP=$EGREP
3771 fi
3772
3773
3774    fi
3775 fi
3776 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3777 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3778  EGREP="$ac_cv_path_EGREP"
3779
3780
3781 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3782 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3783 if test "${ac_cv_header_stdc+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   cat >conftest.$ac_ext <<_ACEOF
3787 /* confdefs.h.  */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h.  */
3792 #include <stdlib.h>
3793 #include <stdarg.h>
3794 #include <string.h>
3795 #include <float.h>
3796
3797 int
3798 main ()
3799 {
3800
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 rm -f conftest.$ac_objext
3806 if { (ac_try="$ac_compile"
3807 case "(($ac_try" in
3808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809   *) ac_try_echo=$ac_try;;
3810 esac
3811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812   (eval "$ac_compile") 2>conftest.er1
3813   ac_status=$?
3814   grep -v '^ *+' conftest.er1 >conftest.err
3815   rm -f conftest.er1
3816   cat conftest.err >&5
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); } &&
3819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3820   { (case "(($ac_try" in
3821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822   *) ac_try_echo=$ac_try;;
3823 esac
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825   (eval "$ac_try") 2>&5
3826   ac_status=$?
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); }; } &&
3829          { ac_try='test -s conftest.$ac_objext'
3830   { (case "(($ac_try" in
3831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832   *) ac_try_echo=$ac_try;;
3833 esac
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835   (eval "$ac_try") 2>&5
3836   ac_status=$?
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); }; }; then
3839   ac_cv_header_stdc=yes
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844         ac_cv_header_stdc=no
3845 fi
3846
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848
3849 if test $ac_cv_header_stdc = yes; then
3850   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3851   cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h.  */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h.  */
3857 #include <string.h>
3858
3859 _ACEOF
3860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3861   $EGREP "memchr" >/dev/null 2>&1; then
3862   :
3863 else
3864   ac_cv_header_stdc=no
3865 fi
3866 rm -f conftest*
3867
3868 fi
3869
3870 if test $ac_cv_header_stdc = yes; then
3871   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878 #include <stdlib.h>
3879
3880 _ACEOF
3881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3882   $EGREP "free" >/dev/null 2>&1; then
3883   :
3884 else
3885   ac_cv_header_stdc=no
3886 fi
3887 rm -f conftest*
3888
3889 fi
3890
3891 if test $ac_cv_header_stdc = yes; then
3892   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3893   if test "$cross_compiling" = yes; then
3894   :
3895 else
3896   cat >conftest.$ac_ext <<_ACEOF
3897 /* confdefs.h.  */
3898 _ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h.  */
3902 #include <ctype.h>
3903 #include <stdlib.h>
3904 #if ((' ' & 0x0FF) == 0x020)
3905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3907 #else
3908 # define ISLOWER(c) \
3909                    (('a' <= (c) && (c) <= 'i') \
3910                      || ('j' <= (c) && (c) <= 'r') \
3911                      || ('s' <= (c) && (c) <= 'z'))
3912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3913 #endif
3914
3915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3916 int
3917 main ()
3918 {
3919   int i;
3920   for (i = 0; i < 256; i++)
3921     if (XOR (islower (i), ISLOWER (i))
3922         || toupper (i) != TOUPPER (i))
3923       return 2;
3924   return 0;
3925 }
3926 _ACEOF
3927 rm -f conftest$ac_exeext
3928 if { (ac_try="$ac_link"
3929 case "(($ac_try" in
3930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931   *) ac_try_echo=$ac_try;;
3932 esac
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934   (eval "$ac_link") 2>&5
3935   ac_status=$?
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3938   { (case "(($ac_try" in
3939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940   *) ac_try_echo=$ac_try;;
3941 esac
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943   (eval "$ac_try") 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; }; then
3947   :
3948 else
3949   echo "$as_me: program exited with status $ac_status" >&5
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3952
3953 ( exit $ac_status )
3954 ac_cv_header_stdc=no
3955 fi
3956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3957 fi
3958
3959
3960 fi
3961 fi
3962 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3963 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3964 if test $ac_cv_header_stdc = yes; then
3965
3966 cat >>confdefs.h <<\_ACEOF
3967 #define STDC_HEADERS 1
3968 _ACEOF
3969
3970 fi
3971
3972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3983                   inttypes.h stdint.h unistd.h
3984 do
3985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997 $ac_includes_default
3998
3999 #include <$ac_header>
4000 _ACEOF
4001 rm -f conftest.$ac_objext
4002 if { (ac_try="$ac_compile"
4003 case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008   (eval "$ac_compile") 2>conftest.er1
4009   ac_status=$?
4010   grep -v '^ *+' conftest.er1 >conftest.err
4011   rm -f conftest.er1
4012   cat conftest.err >&5
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } &&
4015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4016   { (case "(($ac_try" in
4017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018   *) ac_try_echo=$ac_try;;
4019 esac
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021   (eval "$ac_try") 2>&5
4022   ac_status=$?
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); }; } &&
4025          { ac_try='test -s conftest.$ac_objext'
4026   { (case "(($ac_try" in
4027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028   *) ac_try_echo=$ac_try;;
4029 esac
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031   (eval "$ac_try") 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); }; }; then
4035   eval "$as_ac_Header=yes"
4036 else
4037   echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040         eval "$as_ac_Header=no"
4041 fi
4042
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 fi
4045 ac_res=`eval echo '${'$as_ac_Header'}'`
4046                { echo "$as_me:$LINENO: result: $ac_res" >&5
4047 echo "${ECHO_T}$ac_res" >&6; }
4048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4049   cat >>confdefs.h <<_ACEOF
4050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051 _ACEOF
4052
4053 fi
4054
4055 done
4056
4057
4058 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4059 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4060 if test "${ac_cv_c_bigendian+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   # See if sys/param.h defines the BYTE_ORDER macro.
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h.  */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h.  */
4070 #include <sys/types.h>
4071 #include <sys/param.h>
4072
4073 int
4074 main ()
4075 {
4076 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4077  bogus endian macros
4078 #endif
4079
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 rm -f conftest.$ac_objext
4085 if { (ac_try="$ac_compile"
4086 case "(($ac_try" in
4087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088   *) ac_try_echo=$ac_try;;
4089 esac
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091   (eval "$ac_compile") 2>conftest.er1
4092   ac_status=$?
4093   grep -v '^ *+' conftest.er1 >conftest.err
4094   rm -f conftest.er1
4095   cat conftest.err >&5
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } &&
4098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4099   { (case "(($ac_try" in
4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101   *) ac_try_echo=$ac_try;;
4102 esac
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104   (eval "$ac_try") 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); }; } &&
4108          { ac_try='test -s conftest.$ac_objext'
4109   { (case "(($ac_try" in
4110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111   *) ac_try_echo=$ac_try;;
4112 esac
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114   (eval "$ac_try") 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; }; then
4118   # It does; now see whether it defined to BIG_ENDIAN or not.
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125 #include <sys/types.h>
4126 #include <sys/param.h>
4127
4128 int
4129 main ()
4130 {
4131 #if BYTE_ORDER != BIG_ENDIAN
4132  not big endian
4133 #endif
4134
4135   ;
4136   return 0;
4137 }
4138 _ACEOF
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4141 case "(($ac_try" in
4142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143   *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146   (eval "$ac_compile") 2>conftest.er1
4147   ac_status=$?
4148   grep -v '^ *+' conftest.er1 >conftest.err
4149   rm -f conftest.er1
4150   cat conftest.err >&5
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); } &&
4153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4154   { (case "(($ac_try" in
4155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156   *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159   (eval "$ac_try") 2>&5
4160   ac_status=$?
4161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162   (exit $ac_status); }; } &&
4163          { ac_try='test -s conftest.$ac_objext'
4164   { (case "(($ac_try" in
4165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166   *) ac_try_echo=$ac_try;;
4167 esac
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169   (eval "$ac_try") 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; }; then
4173   ac_cv_c_bigendian=yes
4174 else
4175   echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4177
4178         ac_cv_c_bigendian=no
4179 fi
4180
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 else
4183   echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186         # It does not; compile a test program.
4187 if test "$cross_compiling" = yes; then
4188   # try to guess the endianness by grepping values into an object file
4189   ac_cv_c_bigendian=unknown
4190   cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4197 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4198 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4199 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4200 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4201 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4202 int
4203 main ()
4204 {
4205  _ascii (); _ebcdic ();
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4212 case "(($ac_try" in
4213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214   *) ac_try_echo=$ac_try;;
4215 esac
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217   (eval "$ac_compile") 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225   { (case "(($ac_try" in
4226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227   *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230   (eval "$ac_try") 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; } &&
4234          { ac_try='test -s conftest.$ac_objext'
4235   { (case "(($ac_try" in
4236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237   *) ac_try_echo=$ac_try;;
4238 esac
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240   (eval "$ac_try") 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4245   ac_cv_c_bigendian=yes
4246 fi
4247 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4248   if test "$ac_cv_c_bigendian" = unknown; then
4249     ac_cv_c_bigendian=no
4250   else
4251     # finding both strings is unlikely to happen, but who knows?
4252     ac_cv_c_bigendian=unknown
4253   fi
4254 fi
4255 else
4256   echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259
4260 fi
4261
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 else
4264   cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270 $ac_includes_default
4271 int
4272 main ()
4273 {
4274
4275   /* Are we little or big endian?  From Harbison&Steele.  */
4276   union
4277   {
4278     long int l;
4279     char c[sizeof (long int)];
4280   } u;
4281   u.l = 1;
4282   return u.c[sizeof (long int) - 1] == 1;
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 rm -f conftest$ac_exeext
4289 if { (ac_try="$ac_link"
4290 case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295   (eval "$ac_link") 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4299   { (case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304   (eval "$ac_try") 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; }; then
4308   ac_cv_c_bigendian=no
4309 else
4310   echo "$as_me: program exited with status $ac_status" >&5
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 ( exit $ac_status )
4315 ac_cv_c_bigendian=yes
4316 fi
4317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4318 fi
4319
4320
4321 fi
4322
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 fi
4325 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4326 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4327 case $ac_cv_c_bigendian in
4328   yes)
4329     ENDIAN=big
4330  ;;
4331   no)
4332     ENDIAN=little
4333  ;;
4334   *)
4335     { { echo "$as_me:$LINENO: error: unknown endianness
4336 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4337 echo "$as_me: error: unknown endianness
4338 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4339    { (exit 1); exit 1; }; } ;;
4340 esac
4341
4342
4343 if test "$cross_compiling" = yes; then
4344   LLVM_CROSS_COMPILING=1
4345
4346
4347 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4348 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4349 if test "${ac_cv_build_exeext+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4353   ac_cv_build_exeext=.exe
4354 else
4355   ac_build_prefix=${build_alias}-
4356
4357   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4358 set dummy ${ac_build_prefix}gcc; ac_word=$2
4359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4361 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364   if test -n "$BUILD_CC"; then
4365   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370   IFS=$as_save_IFS
4371   test -z "$as_dir" && as_dir=.
4372   for ac_exec_ext in '' $ac_executable_extensions; do
4373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4374     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376     break 2
4377   fi
4378 done
4379 done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 BUILD_CC=$ac_cv_prog_BUILD_CC
4385 if test -n "$BUILD_CC"; then
4386   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4387 echo "${ECHO_T}$BUILD_CC" >&6; }
4388 else
4389   { echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6; }
4391 fi
4392
4393
4394   if test -z "$BUILD_CC"; then
4395      # Extract the first word of "gcc", so it can be a program name with args.
4396 set dummy gcc; ac_word=$2
4397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   if test -n "$BUILD_CC"; then
4403   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410   for ac_exec_ext in '' $ac_executable_extensions; do
4411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4412     ac_cv_prog_BUILD_CC="gcc"
4413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414     break 2
4415   fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 BUILD_CC=$ac_cv_prog_BUILD_CC
4423 if test -n "$BUILD_CC"; then
4424   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4425 echo "${ECHO_T}$BUILD_CC" >&6; }
4426 else
4427   { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4429 fi
4430
4431
4432      if test -z "$BUILD_CC"; then
4433        # Extract the first word of "cc", so it can be a program name with args.
4434 set dummy cc; ac_word=$2
4435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4438   echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440   if test -n "$BUILD_CC"; then
4441   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4442 else
4443   ac_prog_rejected=no
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449   for ac_exec_ext in '' $ac_executable_extensions; do
4450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4452        ac_prog_rejected=yes
4453        continue
4454      fi
4455     ac_cv_prog_BUILD_CC="cc"
4456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 if test $ac_prog_rejected = yes; then
4464   # We found a bogon in the path, so make sure we never use it.
4465   set dummy $ac_cv_prog_BUILD_CC
4466   shift
4467   if test $# != 0; then
4468     # We chose a different compiler from the bogus one.
4469     # However, it has the same basename, so the bogon will be chosen
4470     # first if we set BUILD_CC to just the basename; use the full file name.
4471     shift
4472     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4473   fi
4474 fi
4475 fi
4476 fi
4477 BUILD_CC=$ac_cv_prog_BUILD_CC
4478 if test -n "$BUILD_CC"; then
4479   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4480 echo "${ECHO_T}$BUILD_CC" >&6; }
4481 else
4482   { echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6; }
4484 fi
4485
4486
4487      fi
4488   fi
4489   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4490 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4491    { (exit 1); exit 1; }; }
4492   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4493   rm -f conftest*
4494   echo 'int main () { return 0; }' > conftest.$ac_ext
4495   ac_cv_build_exeext=
4496   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4497   (eval $ac_build_link) 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }; then
4501     for file in conftest.*; do
4502       case $file in
4503       *.c | *.o | *.obj | *.dSYM) ;;
4504       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4505       esac
4506     done
4507   else
4508     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4509 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4510    { (exit 1); exit 1; }; }
4511   fi
4512   rm -f conftest*
4513   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4514 fi
4515 fi
4516
4517 BUILD_EXEEXT=""
4518 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4519 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4520 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4521 ac_build_exeext=$BUILD_EXEEXT
4522
4523   ac_build_prefix=${build_alias}-
4524   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4525 set dummy ${ac_build_prefix}g++; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   if test -n "$BUILD_CXX"; then
4532   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539   for ac_exec_ext in '' $ac_executable_extensions; do
4540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4541     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543     break 2
4544   fi
4545 done
4546 done
4547 IFS=$as_save_IFS
4548
4549 fi
4550 fi
4551 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4552 if test -n "$BUILD_CXX"; then
4553   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4554 echo "${ECHO_T}$BUILD_CXX" >&6; }
4555 else
4556   { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4558 fi
4559
4560
4561   if test -z "$BUILD_CXX"; then
4562      # Extract the first word of "g++", so it can be a program name with args.
4563 set dummy g++; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   if test -n "$BUILD_CXX"; then
4570   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575   IFS=$as_save_IFS
4576   test -z "$as_dir" && as_dir=.
4577   for ac_exec_ext in '' $ac_executable_extensions; do
4578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4579     ac_cv_prog_BUILD_CXX="g++"
4580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581     break 2
4582   fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4590 if test -n "$BUILD_CXX"; then
4591   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4592 echo "${ECHO_T}$BUILD_CXX" >&6; }
4593 else
4594   { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4596 fi
4597
4598
4599      if test -z "$BUILD_CXX"; then
4600        # Extract the first word of "c++", so it can be a program name with args.
4601 set dummy c++; ac_word=$2
4602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   if test -n "$BUILD_CXX"; then
4608   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4609 else
4610   ac_prog_rejected=no
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616   for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4619        ac_prog_rejected=yes
4620        continue
4621      fi
4622     ac_cv_prog_BUILD_CXX="c++"
4623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624     break 2
4625   fi
4626 done
4627 done
4628 IFS=$as_save_IFS
4629
4630 if test $ac_prog_rejected = yes; then
4631   # We found a bogon in the path, so make sure we never use it.
4632   set dummy $ac_cv_prog_BUILD_CXX
4633   shift
4634   if test $# != 0; then
4635     # We chose a different compiler from the bogus one.
4636     # However, it has the same basename, so the bogon will be chosen
4637     # first if we set BUILD_CXX to just the basename; use the full file name.
4638     shift
4639     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4640   fi
4641 fi
4642 fi
4643 fi
4644 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4645 if test -n "$BUILD_CXX"; then
4646   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4647 echo "${ECHO_T}$BUILD_CXX" >&6; }
4648 else
4649   { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4651 fi
4652
4653
4654      fi
4655   fi
4656 else
4657   LLVM_CROSS_COMPILING=0
4658
4659 fi
4660
4661 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4662   cvsbuild="yes"
4663   optimize="no"
4664   CVSBUILD=CVSBUILD=1
4665
4666 else
4667   cvsbuild="no"
4668   optimize="yes"
4669 fi
4670
4671
4672 # Check whether --enable-optimized was given.
4673 if test "${enable_optimized+set}" = set; then
4674   enableval=$enable_optimized;
4675 else
4676   enableval=$optimize
4677 fi
4678
4679 if test ${enableval} = "no" ; then
4680   ENABLE_OPTIMIZED=
4681
4682 else
4683   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4684
4685 fi
4686
4687 # Check whether --enable-profiling was given.
4688 if test "${enable_profiling+set}" = set; then
4689   enableval=$enable_profiling;
4690 else
4691   enableval="no"
4692 fi
4693
4694 if test ${enableval} = "no" ; then
4695   ENABLE_PROFILING=
4696
4697 else
4698   ENABLE_PROFILING=ENABLE_PROFILING=1
4699
4700 fi
4701
4702 # Check whether --enable-assertions was given.
4703 if test "${enable_assertions+set}" = set; then
4704   enableval=$enable_assertions;
4705 else
4706   enableval="yes"
4707 fi
4708
4709 if test ${enableval} = "yes" ; then
4710   DISABLE_ASSERTIONS=
4711
4712 else
4713   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4714
4715 fi
4716
4717 # Check whether --enable-expensive-checks was given.
4718 if test "${enable_expensive_checks+set}" = set; then
4719   enableval=$enable_expensive_checks;
4720 else
4721   enableval="no"
4722 fi
4723
4724 if test ${enableval} = "yes" ; then
4725   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4726
4727   EXPENSIVE_CHECKS=yes
4728
4729 else
4730   ENABLE_EXPENSIVE_CHECKS=
4731
4732   EXPENSIVE_CHECKS=no
4733
4734 fi
4735
4736 # Check whether --enable-debug-runtime was given.
4737 if test "${enable_debug_runtime+set}" = set; then
4738   enableval=$enable_debug_runtime;
4739 else
4740   enableval=no
4741 fi
4742
4743 if test ${enableval} = "no" ; then
4744   DEBUG_RUNTIME=
4745
4746 else
4747   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4748
4749 fi
4750
4751 # Check whether --enable-debug-symbols was given.
4752 if test "${enable_debug_symbols+set}" = set; then
4753   enableval=$enable_debug_symbols;
4754 else
4755   enableval=no
4756 fi
4757
4758 if test ${enableval} = "no" ; then
4759   DEBUG_SYMBOLS=
4760
4761 else
4762   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4763
4764 fi
4765
4766 # Check whether --enable-jit was given.
4767 if test "${enable_jit+set}" = set; then
4768   enableval=$enable_jit;
4769 else
4770   enableval=default
4771 fi
4772
4773 if test ${enableval} = "no"
4774 then
4775   JIT=
4776
4777 else
4778   case "$llvm_cv_target_arch" in
4779     x86)         TARGET_HAS_JIT=1
4780  ;;
4781     Sparc)       TARGET_HAS_JIT=0
4782  ;;
4783     PowerPC)     TARGET_HAS_JIT=1
4784  ;;
4785     x86_64)      TARGET_HAS_JIT=1
4786  ;;
4787     Alpha)       TARGET_HAS_JIT=1
4788  ;;
4789     ARM)         TARGET_HAS_JIT=1
4790  ;;
4791     Mips)        TARGET_HAS_JIT=0
4792  ;;
4793     PIC16)       TARGET_HAS_JIT=0
4794  ;;
4795     XCore)       TARGET_HAS_JIT=0
4796  ;;
4797     MSP430)      TARGET_HAS_JIT=0
4798  ;;
4799     SystemZ)     TARGET_HAS_JIT=0
4800  ;;
4801     Blackfin)    TARGET_HAS_JIT=0
4802  ;;
4803     MBlaze)      TARGET_HAS_JIT=0
4804  ;;
4805     *)           TARGET_HAS_JIT=0
4806  ;;
4807   esac
4808 fi
4809
4810 # Check whether --enable-doxygen was given.
4811 if test "${enable_doxygen+set}" = set; then
4812   enableval=$enable_doxygen;
4813 else
4814   enableval=default
4815 fi
4816
4817 case "$enableval" in
4818   yes) ENABLE_DOXYGEN=1
4819  ;;
4820   no)  ENABLE_DOXYGEN=0
4821  ;;
4822   default) ENABLE_DOXYGEN=0
4823  ;;
4824   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4825 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4826    { (exit 1); exit 1; }; } ;;
4827 esac
4828
4829 # Check whether --enable-threads was given.
4830 if test "${enable_threads+set}" = set; then
4831   enableval=$enable_threads;
4832 else
4833   enableval=default
4834 fi
4835
4836 case "$enableval" in
4837   yes) ENABLE_THREADS=1
4838  ;;
4839   no)  ENABLE_THREADS=0
4840  ;;
4841   default) ENABLE_THREADS=1
4842  ;;
4843   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4844 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4845    { (exit 1); exit 1; }; } ;;
4846 esac
4847
4848 cat >>confdefs.h <<_ACEOF
4849 #define ENABLE_THREADS $ENABLE_THREADS
4850 _ACEOF
4851
4852
4853 # Check whether --enable-pic was given.
4854 if test "${enable_pic+set}" = set; then
4855   enableval=$enable_pic;
4856 else
4857   enableval=default
4858 fi
4859
4860 case "$enableval" in
4861   yes) ENABLE_PIC=1
4862  ;;
4863   no)  ENABLE_PIC=0
4864  ;;
4865   default) ENABLE_PIC=1
4866  ;;
4867   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4868 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4869    { (exit 1); exit 1; }; } ;;
4870 esac
4871
4872 cat >>confdefs.h <<_ACEOF
4873 #define ENABLE_PIC $ENABLE_PIC
4874 _ACEOF
4875
4876
4877 # Check whether --enable-shared was given.
4878 if test "${enable_shared+set}" = set; then
4879   enableval=$enable_shared;
4880 else
4881   enableval=default
4882 fi
4883
4884 case "$enableval" in
4885   yes) ENABLE_SHARED=1
4886  ;;
4887   no)  ENABLE_SHARED=0
4888  ;;
4889   default) ENABLE_SHARED=0
4890  ;;
4891   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4892 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4893    { (exit 1); exit 1; }; } ;;
4894 esac
4895
4896 TARGETS_TO_BUILD=""
4897 # Check whether --enable-targets was given.
4898 if test "${enable_targets+set}" = set; then
4899   enableval=$enable_targets;
4900 else
4901   enableval=all
4902 fi
4903
4904 if test "$enableval" = host-only ; then
4905   enableval=host
4906 fi
4907 case "$enableval" in
4908   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4909   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4910       case "$a_target" in
4911         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4913         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4914         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4915         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4916         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4917         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4918         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4919         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4920         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4921         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4922         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4923         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4924         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4925         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4926         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4927         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4928         host) case "$llvm_cv_target_arch" in
4929             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4930             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4931             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4932             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4933             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4934             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4935             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4936             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4937             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4938             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4939             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4940             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4941             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4942             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4943             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4944 echo "$as_me: error: Can not set target to build" >&2;}
4945    { (exit 1); exit 1; }; } ;;
4946           esac ;;
4947         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4948 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4949    { (exit 1); exit 1; }; } ;;
4950       esac
4951   done
4952   ;;
4953 esac
4954 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4955
4956
4957 # Determine whether we are building LLVM support for the native architecture.
4958 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4959 for a_target in $TARGETS_TO_BUILD; do
4960   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4961     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4962
4963 cat >>confdefs.h <<_ACEOF
4964 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4965 _ACEOF
4966
4967   fi
4968 done
4969
4970 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4971 # target feature def files.
4972 LLVM_ENUM_TARGETS=""
4973 LLVM_ENUM_ASM_PRINTERS=""
4974 LLVM_ENUM_ASM_PARSERS=""
4975 LLVM_ENUM_DISASSEMBLERS=""
4976 for target_to_build in $TARGETS_TO_BUILD; do
4977   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4978   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4979     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4980   fi
4981   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4982     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4983   fi
4984   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4985     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4986   fi
4987 done
4988
4989
4990
4991
4992
4993 # Check whether --enable-cbe-printf-a was given.
4994 if test "${enable_cbe_printf_a+set}" = set; then
4995   enableval=$enable_cbe_printf_a;
4996 else
4997   enableval=default
4998 fi
4999
5000 case "$enableval" in
5001   yes) ENABLE_CBE_PRINTF_A=1
5002  ;;
5003   no)  ENABLE_CBE_PRINTF_A=0
5004  ;;
5005   default)  ENABLE_CBE_PRINTF_A=1
5006  ;;
5007   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5008 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5009    { (exit 1); exit 1; }; } ;;
5010 esac
5011
5012 cat >>confdefs.h <<_ACEOF
5013 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5014 _ACEOF
5015
5016
5017
5018 # Check whether --with-llvmgccdir was given.
5019 if test "${with_llvmgccdir+set}" = set; then
5020   withval=$with_llvmgccdir;
5021 else
5022   withval=default
5023 fi
5024
5025 case "$withval" in
5026   default) WITH_LLVMGCCDIR=default ;;
5027   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5028   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5029 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5030    { (exit 1); exit 1; }; } ;;
5031 esac
5032
5033
5034 # Check whether --with-llvmgcc was given.
5035 if test "${with_llvmgcc+set}" = set; then
5036   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5037       WITH_LLVMGCCDIR=""
5038 fi
5039
5040
5041
5042 # Check whether --with-llvmgxx was given.
5043 if test "${with_llvmgxx+set}" = set; then
5044   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5045     WITH_LLVMGCCDIR=""
5046 fi
5047
5048
5049 if test -n "$LLVMGCC"; then
5050    LLVMGCCCOMMAND="$LLVMGCC"
5051 fi
5052
5053 if test -n "$LLVMGXX"; then
5054    LLVMGXXCOMMAND="$LLVMGXX"
5055 fi
5056
5057 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5058    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5059 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5060    { (exit 1); exit 1; }; };
5061 fi
5062
5063 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5064    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5065 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5066    { (exit 1); exit 1; }; };
5067 fi
5068
5069
5070 # Check whether --with-clang was given.
5071 if test "${with_clang+set}" = set; then
5072   withval=$with_clang;
5073 else
5074   with_clang=default
5075 fi
5076
5077
5078
5079 # Check whether --with-built-clang was given.
5080 if test "${with_built_clang+set}" = set; then
5081   withval=$with_built_clang;
5082 else
5083   with_built_clang=check
5084 fi
5085
5086
5087 { echo "$as_me:$LINENO: checking clang compiler" >&5
5088 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5089 WITH_CLANGPATH=""
5090 WITH_BUILT_CLANG=0
5091 if test "$with_clang" != "default"; then
5092    WITH_CLANGPATH="$with_clang"
5093    if ! test -x "$WITH_CLANGPATH"; then
5094      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5095 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5096    { (exit 1); exit 1; }; }
5097    fi
5098 elif test "$with_built_clang" = "yes"; then
5099    WITH_BUILT_CLANG=1
5100 elif test "$with_built_clang" = "no"; then
5101    WITH_BUILT_CLANG=0
5102 else
5103    if test "$with_built_clang" != "check"; then
5104       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5105 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5106    { (exit 1); exit 1; }; }
5107    fi
5108
5109    if test -f ${srcdir}/tools/clang/README.txt; then
5110      WITH_BUILT_CLANG=1
5111    fi
5112 fi
5113
5114 if ! test -z "$WITH_CLANGPATH"; then
5115    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5116 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5117    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5118 elif test "$WITH_BUILT_CLANG" = "1"; then
5119    { echo "$as_me:$LINENO: result: built" >&5
5120 echo "${ECHO_T}built" >&6; }
5121 else
5122    { echo "$as_me:$LINENO: result: none" >&5
5123 echo "${ECHO_T}none" >&6; }
5124 fi
5125 CLANGPATH=$WITH_CLANGPATH
5126
5127 CLANGXXPATH=$WITH_CLANGXXPATH
5128
5129 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5130
5131
5132
5133 # Check whether --with-optimize-option was given.
5134 if test "${with_optimize_option+set}" = set; then
5135   withval=$with_optimize_option;
5136 else
5137   withval=default
5138 fi
5139
5140 { echo "$as_me:$LINENO: checking optimization flags" >&5
5141 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5142 case "$withval" in
5143   default)
5144     case "$llvm_cv_os_type" in
5145     MingW) optimize_option=-O3 ;;
5146     *)     optimize_option=-O2 ;;
5147     esac ;;
5148   *) optimize_option="$withval" ;;
5149 esac
5150 OPTIMIZE_OPTION=$optimize_option
5151
5152 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5153 echo "${ECHO_T}$optimize_option" >&6; }
5154
5155
5156 # Check whether --with-extra-options was given.
5157 if test "${with_extra_options+set}" = set; then
5158   withval=$with_extra_options;
5159 else
5160   withval=default
5161 fi
5162
5163 case "$withval" in
5164   default) EXTRA_OPTIONS= ;;
5165   *) EXTRA_OPTIONS=$withval ;;
5166 esac
5167 EXTRA_OPTIONS=$EXTRA_OPTIONS
5168
5169
5170 # Check whether --enable-bindings was given.
5171 if test "${enable_bindings+set}" = set; then
5172   enableval=$enable_bindings;
5173 else
5174   enableval=default
5175 fi
5176
5177 BINDINGS_TO_BUILD=""
5178 case "$enableval" in
5179   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5180   all ) BINDINGS_TO_BUILD="ocaml" ;;
5181   none | no) BINDINGS_TO_BUILD="" ;;
5182   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5183       case "$a_binding" in
5184         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5185         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5186 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5187    { (exit 1); exit 1; }; } ;;
5188       esac
5189   done
5190   ;;
5191 esac
5192
5193
5194 # Check whether --with-ocaml-libdir was given.
5195 if test "${with_ocaml_libdir+set}" = set; then
5196   withval=$with_ocaml_libdir;
5197 else
5198   withval=auto
5199 fi
5200
5201 case "$withval" in
5202   auto) with_ocaml_libdir="$withval" ;;
5203   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5204   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5205 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5206    { (exit 1); exit 1; }; } ;;
5207 esac
5208
5209
5210 # Check whether --with-c-include-dirs was given.
5211 if test "${with_c_include_dirs+set}" = set; then
5212   withval=$with_c_include_dirs;
5213 else
5214   withval=""
5215 fi
5216
5217
5218 cat >>confdefs.h <<_ACEOF
5219 #define C_INCLUDE_DIRS "$withval"
5220 _ACEOF
5221
5222
5223
5224 # Check whether --with-cxx-include-root was given.
5225 if test "${with_cxx_include_root+set}" = set; then
5226   withval=$with_cxx_include_root;
5227 else
5228   withval=""
5229 fi
5230
5231
5232 cat >>confdefs.h <<_ACEOF
5233 #define CXX_INCLUDE_ROOT "$withval"
5234 _ACEOF
5235
5236
5237
5238 # Check whether --with-cxx-include-arch was given.
5239 if test "${with_cxx_include_arch+set}" = set; then
5240   withval=$with_cxx_include_arch;
5241 else
5242   withval=""
5243 fi
5244
5245
5246 cat >>confdefs.h <<_ACEOF
5247 #define CXX_INCLUDE_ARCH "$withval"
5248 _ACEOF
5249
5250
5251
5252 # Check whether --with-cxx-include-32bit-dir was given.
5253 if test "${with_cxx_include_32bit_dir+set}" = set; then
5254   withval=$with_cxx_include_32bit_dir;
5255 else
5256   withval=""
5257 fi
5258
5259
5260 cat >>confdefs.h <<_ACEOF
5261 #define CXX_INCLUDE_32BIT_DIR "$withval"
5262 _ACEOF
5263
5264
5265
5266 # Check whether --with-cxx-include-64bit-dir was given.
5267 if test "${with_cxx_include_64bit_dir+set}" = set; then
5268   withval=$with_cxx_include_64bit_dir;
5269 else
5270   withval=""
5271 fi
5272
5273
5274 cat >>confdefs.h <<_ACEOF
5275 #define CXX_INCLUDE_64BIT_DIR "$withval"
5276 _ACEOF
5277
5278
5279
5280 # Check whether --with-binutils-include was given.
5281 if test "${with_binutils_include+set}" = set; then
5282   withval=$with_binutils_include;
5283 else
5284   withval=default
5285 fi
5286
5287 case "$withval" in
5288   default) WITH_BINUTILS_INCDIR=default ;;
5289   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5290   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5291 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5292    { (exit 1); exit 1; }; } ;;
5293 esac
5294 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5295   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5296
5297   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5298      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5299      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5300 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5301    { (exit 1); exit 1; }; };
5302   fi
5303 fi
5304
5305 # Check whether --enable-libffi was given.
5306 if test "${enable_libffi+set}" = set; then
5307   enableval=$enable_libffi; case "$enableval" in
5308     yes) llvm_cv_enable_libffi="yes" ;;
5309     no)  llvm_cv_enable_libffi="no"  ;;
5310     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5312    { (exit 1); exit 1; }; } ;;
5313   esac
5314 else
5315   llvm_cv_enable_libffi=no
5316 fi
5317
5318
5319 if test "$llvm_cv_os_type" = "Win32" ; then
5320    llvmc_dynamic="yes"
5321 else
5322    llvmc_dynamic="no"
5323 fi
5324
5325 # Check whether --enable-llvmc-dynamic was given.
5326 if test "${enable_llvmc_dynamic+set}" = set; then
5327   enableval=$enable_llvmc_dynamic;
5328 else
5329   enableval=$llvmc_dynamic
5330 fi
5331
5332 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5333    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5334
5335 else
5336    ENABLE_LLVMC_DYNAMIC=
5337
5338 fi
5339
5340 # Check whether --enable-llvmc-dynamic-plugins was given.
5341 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5342   enableval=$enable_llvmc_dynamic_plugins;
5343 else
5344   enableval=yes
5345 fi
5346
5347 if test ${enableval} = "yes" ; then
5348    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5349
5350 else
5351    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5352
5353 fi
5354
5355
5356 ac_ext=c
5357 ac_cpp='$CPP $CPPFLAGS'
5358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5361 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5362 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5363 # On Suns, sometimes $CPP names a directory.
5364 if test -n "$CPP" && test -d "$CPP"; then
5365   CPP=
5366 fi
5367 if test -z "$CPP"; then
5368   if test "${ac_cv_prog_CPP+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371       # Double quotes because CPP needs to be expanded
5372     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5373     do
5374       ac_preproc_ok=false
5375 for ac_c_preproc_warn_flag in '' yes
5376 do
5377   # Use a header file that comes with gcc, so configuring glibc
5378   # with a fresh cross-compiler works.
5379   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380   # <limits.h> exists even on freestanding compilers.
5381   # On the NeXT, cc -E runs the code through the compiler's parser,
5382   # not just through cpp. "Syntax error" is here to catch this case.
5383   cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h.  */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h.  */
5389 #ifdef __STDC__
5390 # include <limits.h>
5391 #else
5392 # include <assert.h>
5393 #endif
5394                      Syntax error
5395 _ACEOF
5396 if { (ac_try="$ac_cpp conftest.$ac_ext"
5397 case "(($ac_try" in
5398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399   *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5403   ac_status=$?
5404   grep -v '^ *+' conftest.er1 >conftest.err
5405   rm -f conftest.er1
5406   cat conftest.err >&5
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); } >/dev/null; then
5409   if test -s conftest.err; then
5410     ac_cpp_err=$ac_c_preproc_warn_flag
5411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5412   else
5413     ac_cpp_err=
5414   fi
5415 else
5416   ac_cpp_err=yes
5417 fi
5418 if test -z "$ac_cpp_err"; then
5419   :
5420 else
5421   echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5423
5424   # Broken: fails on valid input.
5425 continue
5426 fi
5427
5428 rm -f conftest.err conftest.$ac_ext
5429
5430   # OK, works on sane cases.  Now check whether nonexistent headers
5431   # can be detected and how.
5432   cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 #include <ac_nonexistent.h>
5439 _ACEOF
5440 if { (ac_try="$ac_cpp conftest.$ac_ext"
5441 case "(($ac_try" in
5442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443   *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5447   ac_status=$?
5448   grep -v '^ *+' conftest.er1 >conftest.err
5449   rm -f conftest.er1
5450   cat conftest.err >&5
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } >/dev/null; then
5453   if test -s conftest.err; then
5454     ac_cpp_err=$ac_c_preproc_warn_flag
5455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5456   else
5457     ac_cpp_err=
5458   fi
5459 else
5460   ac_cpp_err=yes
5461 fi
5462 if test -z "$ac_cpp_err"; then
5463   # Broken: success on invalid input.
5464 continue
5465 else
5466   echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469   # Passes both tests.
5470 ac_preproc_ok=:
5471 break
5472 fi
5473
5474 rm -f conftest.err conftest.$ac_ext
5475
5476 done
5477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478 rm -f conftest.err conftest.$ac_ext
5479 if $ac_preproc_ok; then
5480   break
5481 fi
5482
5483     done
5484     ac_cv_prog_CPP=$CPP
5485
5486 fi
5487   CPP=$ac_cv_prog_CPP
5488 else
5489   ac_cv_prog_CPP=$CPP
5490 fi
5491 { echo "$as_me:$LINENO: result: $CPP" >&5
5492 echo "${ECHO_T}$CPP" >&6; }
5493 ac_preproc_ok=false
5494 for ac_c_preproc_warn_flag in '' yes
5495 do
5496   # Use a header file that comes with gcc, so configuring glibc
5497   # with a fresh cross-compiler works.
5498   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5499   # <limits.h> exists even on freestanding compilers.
5500   # On the NeXT, cc -E runs the code through the compiler's parser,
5501   # not just through cpp. "Syntax error" is here to catch this case.
5502   cat >conftest.$ac_ext <<_ACEOF
5503 /* confdefs.h.  */
5504 _ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h.  */
5508 #ifdef __STDC__
5509 # include <limits.h>
5510 #else
5511 # include <assert.h>
5512 #endif
5513                      Syntax error
5514 _ACEOF
5515 if { (ac_try="$ac_cpp conftest.$ac_ext"
5516 case "(($ac_try" in
5517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518   *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5522   ac_status=$?
5523   grep -v '^ *+' conftest.er1 >conftest.err
5524   rm -f conftest.er1
5525   cat conftest.err >&5
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); } >/dev/null; then
5528   if test -s conftest.err; then
5529     ac_cpp_err=$ac_c_preproc_warn_flag
5530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5531   else
5532     ac_cpp_err=
5533   fi
5534 else
5535   ac_cpp_err=yes
5536 fi
5537 if test -z "$ac_cpp_err"; then
5538   :
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543   # Broken: fails on valid input.
5544 continue
5545 fi
5546
5547 rm -f conftest.err conftest.$ac_ext
5548
5549   # OK, works on sane cases.  Now check whether nonexistent headers
5550   # can be detected and how.
5551   cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h.  */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h.  */
5557 #include <ac_nonexistent.h>
5558 _ACEOF
5559 if { (ac_try="$ac_cpp conftest.$ac_ext"
5560 case "(($ac_try" in
5561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562   *) ac_try_echo=$ac_try;;
5563 esac
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5566   ac_status=$?
5567   grep -v '^ *+' conftest.er1 >conftest.err
5568   rm -f conftest.er1
5569   cat conftest.err >&5
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); } >/dev/null; then
5572   if test -s conftest.err; then
5573     ac_cpp_err=$ac_c_preproc_warn_flag
5574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5575   else
5576     ac_cpp_err=
5577   fi
5578 else
5579   ac_cpp_err=yes
5580 fi
5581 if test -z "$ac_cpp_err"; then
5582   # Broken: success on invalid input.
5583 continue
5584 else
5585   echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588   # Passes both tests.
5589 ac_preproc_ok=:
5590 break
5591 fi
5592
5593 rm -f conftest.err conftest.$ac_ext
5594
5595 done
5596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5597 rm -f conftest.err conftest.$ac_ext
5598 if $ac_preproc_ok; then
5599   :
5600 else
5601   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5602 See \`config.log' for more details." >&5
5603 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5604 See \`config.log' for more details." >&2;}
5605    { (exit 1); exit 1; }; }
5606 fi
5607
5608 ac_ext=c
5609 ac_cpp='$CPP $CPPFLAGS'
5610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5613
5614 ac_ext=c
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619 if test -n "$ac_tool_prefix"; then
5620   for ac_prog in gcc
5621   do
5622     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5626 if test "${ac_cv_prog_CC+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   if test -n "$CC"; then
5630   ac_cv_prog_CC="$CC" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637   for ac_exec_ext in '' $ac_executable_extensions; do
5638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5639     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644 done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 CC=$ac_cv_prog_CC
5650 if test -n "$CC"; then
5651   { echo "$as_me:$LINENO: result: $CC" >&5
5652 echo "${ECHO_T}$CC" >&6; }
5653 else
5654   { echo "$as_me:$LINENO: result: no" >&5
5655 echo "${ECHO_T}no" >&6; }
5656 fi
5657
5658
5659     test -n "$CC" && break
5660   done
5661 fi
5662 if test -z "$CC"; then
5663   ac_ct_CC=$CC
5664   for ac_prog in gcc
5665 do
5666   # Extract the first word of "$ac_prog", so it can be a program name with args.
5667 set dummy $ac_prog; ac_word=$2
5668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   if test -n "$ac_ct_CC"; then
5674   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681   for ac_exec_ext in '' $ac_executable_extensions; do
5682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5683     ac_cv_prog_ac_ct_CC="$ac_prog"
5684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688 done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5694 if test -n "$ac_ct_CC"; then
5695   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5696 echo "${ECHO_T}$ac_ct_CC" >&6; }
5697 else
5698   { echo "$as_me:$LINENO: result: no" >&5
5699 echo "${ECHO_T}no" >&6; }
5700 fi
5701
5702
5703   test -n "$ac_ct_CC" && break
5704 done
5705
5706   if test "x$ac_ct_CC" = x; then
5707     CC=""
5708   else
5709     case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5712 whose name does not start with the host triplet.  If you think this
5713 configuration is useful to you, please write to autoconf@gnu.org." >&5
5714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5715 whose name does not start with the host triplet.  If you think this
5716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5717 ac_tool_warned=yes ;;
5718 esac
5719     CC=$ac_ct_CC
5720   fi
5721 fi
5722
5723
5724 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5725 See \`config.log' for more details." >&5
5726 echo "$as_me: error: no acceptable C compiler found in \$PATH
5727 See \`config.log' for more details." >&2;}
5728    { (exit 1); exit 1; }; }
5729
5730 # Provide some information about the compiler.
5731 echo "$as_me:$LINENO: checking for C compiler version" >&5
5732 ac_compiler=`set X $ac_compile; echo $2`
5733 { (ac_try="$ac_compiler --version >&5"
5734 case "(($ac_try" in
5735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736   *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739   (eval "$ac_compiler --version >&5") 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }
5743 { (ac_try="$ac_compiler -v >&5"
5744 case "(($ac_try" in
5745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746   *) ac_try_echo=$ac_try;;
5747 esac
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749   (eval "$ac_compiler -v >&5") 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }
5753 { (ac_try="$ac_compiler -V >&5"
5754 case "(($ac_try" in
5755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756   *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759   (eval "$ac_compiler -V >&5") 2>&5
5760   ac_status=$?
5761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762   (exit $ac_status); }
5763
5764 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5765 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h.  */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h.  */
5775
5776 int
5777 main ()
5778 {
5779 #ifndef __GNUC__
5780        choke me
5781 #endif
5782
5783   ;
5784   return 0;
5785 }
5786 _ACEOF
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794   (eval "$ac_compile") 2>conftest.er1
5795   ac_status=$?
5796   grep -v '^ *+' conftest.er1 >conftest.err
5797   rm -f conftest.er1
5798   cat conftest.err >&5
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } &&
5801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5802   { (case "(($ac_try" in
5803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804   *) ac_try_echo=$ac_try;;
5805 esac
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807   (eval "$ac_try") 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); }; } &&
5811          { ac_try='test -s conftest.$ac_objext'
5812   { (case "(($ac_try" in
5813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814   *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817   (eval "$ac_try") 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; }; then
5821   ac_compiler_gnu=yes
5822 else
5823   echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826         ac_compiler_gnu=no
5827 fi
5828
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5831
5832 fi
5833 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5834 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5835 GCC=`test $ac_compiler_gnu = yes && echo yes`
5836 ac_test_CFLAGS=${CFLAGS+set}
5837 ac_save_CFLAGS=$CFLAGS
5838 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5839 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5840 if test "${ac_cv_prog_cc_g+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   ac_save_c_werror_flag=$ac_c_werror_flag
5844    ac_c_werror_flag=yes
5845    ac_cv_prog_cc_g=no
5846    CFLAGS="-g"
5847    cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h.  */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h.  */
5853
5854 int
5855 main ()
5856 {
5857
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5864 case "(($ac_try" in
5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866   *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869   (eval "$ac_compile") 2>conftest.er1
5870   ac_status=$?
5871   grep -v '^ *+' conftest.er1 >conftest.err
5872   rm -f conftest.er1
5873   cat conftest.err >&5
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); } &&
5876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5877   { (case "(($ac_try" in
5878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879   *) ac_try_echo=$ac_try;;
5880 esac
5881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882   (eval "$ac_try") 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; } &&
5886          { ac_try='test -s conftest.$ac_objext'
5887   { (case "(($ac_try" in
5888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889   *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892   (eval "$ac_try") 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; }; then
5896   ac_cv_prog_cc_g=yes
5897 else
5898   echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901         CFLAGS=""
5902       cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h.  */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h.  */
5908
5909 int
5910 main ()
5911 {
5912
5913   ;
5914   return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (ac_try="$ac_compile"
5919 case "(($ac_try" in
5920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921   *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924   (eval "$ac_compile") 2>conftest.er1
5925   ac_status=$?
5926   grep -v '^ *+' conftest.er1 >conftest.err
5927   rm -f conftest.er1
5928   cat conftest.err >&5
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); } &&
5931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932   { (case "(($ac_try" in
5933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934   *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937   (eval "$ac_try") 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; } &&
5941          { ac_try='test -s conftest.$ac_objext'
5942   { (case "(($ac_try" in
5943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944   *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947   (eval "$ac_try") 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; }; then
5951   :
5952 else
5953   echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956         ac_c_werror_flag=$ac_save_c_werror_flag
5957          CFLAGS="-g"
5958          cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h.  */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h.  */
5964
5965 int
5966 main ()
5967 {
5968
5969   ;
5970   return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext
5974 if { (ac_try="$ac_compile"
5975 case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980   (eval "$ac_compile") 2>conftest.er1
5981   ac_status=$?
5982   grep -v '^ *+' conftest.er1 >conftest.err
5983   rm -f conftest.er1
5984   cat conftest.err >&5
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } &&
5987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5988   { (case "(($ac_try" in
5989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990   *) ac_try_echo=$ac_try;;
5991 esac
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993   (eval "$ac_try") 2>&5
5994   ac_status=$?
5995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996   (exit $ac_status); }; } &&
5997          { ac_try='test -s conftest.$ac_objext'
5998   { (case "(($ac_try" in
5999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000   *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003   (eval "$ac_try") 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; }; then
6007   ac_cv_prog_cc_g=yes
6008 else
6009   echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012
6013 fi
6014
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 fi
6020
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022    ac_c_werror_flag=$ac_save_c_werror_flag
6023 fi
6024 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6026 if test "$ac_test_CFLAGS" = set; then
6027   CFLAGS=$ac_save_CFLAGS
6028 elif test $ac_cv_prog_cc_g = yes; then
6029   if test "$GCC" = yes; then
6030     CFLAGS="-g -O2"
6031   else
6032     CFLAGS="-g"
6033   fi
6034 else
6035   if test "$GCC" = yes; then
6036     CFLAGS="-O2"
6037   else
6038     CFLAGS=
6039   fi
6040 fi
6041 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6042 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_cc_c89+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   ac_cv_prog_cc_c89=no
6047 ac_save_CC=$CC
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h.  */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h.  */
6054 #include <stdarg.h>
6055 #include <stdio.h>
6056 #include <sys/types.h>
6057 #include <sys/stat.h>
6058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6059 struct buf { int x; };
6060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6061 static char *e (p, i)
6062      char **p;
6063      int i;
6064 {
6065   return p[i];
6066 }
6067 static char *f (char * (*g) (char **, int), char **p, ...)
6068 {
6069   char *s;
6070   va_list v;
6071   va_start (v,p);
6072   s = g (p, va_arg (v,int));
6073   va_end (v);
6074   return s;
6075 }
6076
6077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6078    function prototypes and stuff, but not '\xHH' hex character constants.
6079    These don't provoke an error unfortunately, instead are silently treated
6080    as 'x'.  The following induces an error, until -std is added to get
6081    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6082    array size at least.  It's necessary to write '\x00'==0 to get something
6083    that's true only with -std.  */
6084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6085
6086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6087    inside strings and character constants.  */
6088 #define FOO(x) 'x'
6089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6090
6091 int test (int i, double x);
6092 struct s1 {int (*f) (int a);};
6093 struct s2 {int (*f) (double a);};
6094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6095 int argc;
6096 char **argv;
6097 int
6098 main ()
6099 {
6100 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6101   ;
6102   return 0;
6103 }
6104 _ACEOF
6105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6106         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6107 do
6108   CC="$ac_save_CC $ac_arg"
6109   rm -f conftest.$ac_objext
6110 if { (ac_try="$ac_compile"
6111 case "(($ac_try" in
6112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113   *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116   (eval "$ac_compile") 2>conftest.er1
6117   ac_status=$?
6118   grep -v '^ *+' conftest.er1 >conftest.err
6119   rm -f conftest.er1
6120   cat conftest.err >&5
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); } &&
6123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6124   { (case "(($ac_try" in
6125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126   *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129   (eval "$ac_try") 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; } &&
6133          { ac_try='test -s conftest.$ac_objext'
6134   { (case "(($ac_try" in
6135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136   *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139   (eval "$ac_try") 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; }; then
6143   ac_cv_prog_cc_c89=$ac_arg
6144 else
6145   echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6147
6148
6149 fi
6150
6151 rm -f core conftest.err conftest.$ac_objext
6152   test "x$ac_cv_prog_cc_c89" != "xno" && break
6153 done
6154 rm -f conftest.$ac_ext
6155 CC=$ac_save_CC
6156
6157 fi
6158 # AC_CACHE_VAL
6159 case "x$ac_cv_prog_cc_c89" in
6160   x)
6161     { echo "$as_me:$LINENO: result: none needed" >&5
6162 echo "${ECHO_T}none needed" >&6; } ;;
6163   xno)
6164     { echo "$as_me:$LINENO: result: unsupported" >&5
6165 echo "${ECHO_T}unsupported" >&6; } ;;
6166   *)
6167     CC="$CC $ac_cv_prog_cc_c89"
6168     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6169 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6170 esac
6171
6172
6173 ac_ext=c
6174 ac_cpp='$CPP $CPPFLAGS'
6175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178
6179 ac_ext=cpp
6180 ac_cpp='$CXXCPP $CPPFLAGS'
6181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6184 if test -z "$CXX"; then
6185   if test -n "$CCC"; then
6186     CXX=$CCC
6187   else
6188     if test -n "$ac_tool_prefix"; then
6189   for ac_prog in g++
6190   do
6191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6195 if test "${ac_cv_prog_CXX+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   if test -n "$CXX"; then
6199   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206   for ac_exec_ext in '' $ac_executable_extensions; do
6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 CXX=$ac_cv_prog_CXX
6219 if test -n "$CXX"; then
6220   { echo "$as_me:$LINENO: result: $CXX" >&5
6221 echo "${ECHO_T}$CXX" >&6; }
6222 else
6223   { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6225 fi
6226
6227
6228     test -n "$CXX" && break
6229   done
6230 fi
6231 if test -z "$CXX"; then
6232   ac_ct_CXX=$CXX
6233   for ac_prog in g++
6234 do
6235   # Extract the first word of "$ac_prog", so it can be a program name with args.
6236 set dummy $ac_prog; ac_word=$2
6237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6240   echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242   if test -n "$ac_ct_CXX"; then
6243   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248   IFS=$as_save_IFS
6249   test -z "$as_dir" && as_dir=.
6250   for ac_exec_ext in '' $ac_executable_extensions; do
6251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6252     ac_cv_prog_ac_ct_CXX="$ac_prog"
6253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254     break 2
6255   fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6263 if test -n "$ac_ct_CXX"; then
6264   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6265 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6266 else
6267   { echo "$as_me:$LINENO: result: no" >&5
6268 echo "${ECHO_T}no" >&6; }
6269 fi
6270
6271
6272   test -n "$ac_ct_CXX" && break
6273 done
6274
6275   if test "x$ac_ct_CXX" = x; then
6276     CXX="g++"
6277   else
6278     case $cross_compiling:$ac_tool_warned in
6279 yes:)
6280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6281 whose name does not start with the host triplet.  If you think this
6282 configuration is useful to you, please write to autoconf@gnu.org." >&5
6283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6284 whose name does not start with the host triplet.  If you think this
6285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6286 ac_tool_warned=yes ;;
6287 esac
6288     CXX=$ac_ct_CXX
6289   fi
6290 fi
6291
6292   fi
6293 fi
6294 # Provide some information about the compiler.
6295 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6296 ac_compiler=`set X $ac_compile; echo $2`
6297 { (ac_try="$ac_compiler --version >&5"
6298 case "(($ac_try" in
6299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300   *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303   (eval "$ac_compiler --version >&5") 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }
6307 { (ac_try="$ac_compiler -v >&5"
6308 case "(($ac_try" in
6309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310   *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313   (eval "$ac_compiler -v >&5") 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }
6317 { (ac_try="$ac_compiler -V >&5"
6318 case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_compiler -V >&5") 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }
6327
6328 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6329 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6330 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339
6340 int
6341 main ()
6342 {
6343 #ifndef __GNUC__
6344        choke me
6345 #endif
6346
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6353 case "(($ac_try" in
6354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355   *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358   (eval "$ac_compile") 2>conftest.er1
6359   ac_status=$?
6360   grep -v '^ *+' conftest.er1 >conftest.err
6361   rm -f conftest.er1
6362   cat conftest.err >&5
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } &&
6365          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6366   { (case "(($ac_try" in
6367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368   *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371   (eval "$ac_try") 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); }; } &&
6375          { ac_try='test -s conftest.$ac_objext'
6376   { (case "(($ac_try" in
6377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378   *) ac_try_echo=$ac_try;;
6379 esac
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381   (eval "$ac_try") 2>&5
6382   ac_status=$?
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); }; }; then
6385   ac_compiler_gnu=yes
6386 else
6387   echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.$ac_ext >&5
6389
6390         ac_compiler_gnu=no
6391 fi
6392
6393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6395
6396 fi
6397 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6398 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6399 GXX=`test $ac_compiler_gnu = yes && echo yes`
6400 ac_test_CXXFLAGS=${CXXFLAGS+set}
6401 ac_save_CXXFLAGS=$CXXFLAGS
6402 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6403 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6404 if test "${ac_cv_prog_cxx_g+set}" = set; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6408    ac_cxx_werror_flag=yes
6409    ac_cv_prog_cxx_g=no
6410    CXXFLAGS="-g"
6411    cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h.  */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h.  */
6417
6418 int
6419 main ()
6420 {
6421
6422   ;
6423   return 0;
6424 }
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (ac_try="$ac_compile"
6428 case "(($ac_try" in
6429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430   *) ac_try_echo=$ac_try;;
6431 esac
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433   (eval "$ac_compile") 2>conftest.er1
6434   ac_status=$?
6435   grep -v '^ *+' conftest.er1 >conftest.err
6436   rm -f conftest.er1
6437   cat conftest.err >&5
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); } &&
6440          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6441   { (case "(($ac_try" in
6442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443   *) ac_try_echo=$ac_try;;
6444 esac
6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446   (eval "$ac_try") 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; } &&
6450          { ac_try='test -s conftest.$ac_objext'
6451   { (case "(($ac_try" in
6452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453   *) ac_try_echo=$ac_try;;
6454 esac
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456   (eval "$ac_try") 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; }; then
6460   ac_cv_prog_cxx_g=yes
6461 else
6462   echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465         CXXFLAGS=""
6466       cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472
6473 int
6474 main ()
6475 {
6476
6477   ;
6478   return 0;
6479 }
6480 _ACEOF
6481 rm -f conftest.$ac_objext
6482 if { (ac_try="$ac_compile"
6483 case "(($ac_try" in
6484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485   *) ac_try_echo=$ac_try;;
6486 esac
6487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488   (eval "$ac_compile") 2>conftest.er1
6489   ac_status=$?
6490   grep -v '^ *+' conftest.er1 >conftest.err
6491   rm -f conftest.er1
6492   cat conftest.err >&5
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6496   { (case "(($ac_try" in
6497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498   *) ac_try_echo=$ac_try;;
6499 esac
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501   (eval "$ac_try") 2>&5
6502   ac_status=$?
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); }; } &&
6505          { ac_try='test -s conftest.$ac_objext'
6506   { (case "(($ac_try" in
6507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508   *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511   (eval "$ac_try") 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); }; }; then
6515   :
6516 else
6517   echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6521          CXXFLAGS="-g"
6522          cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h.  */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h.  */
6528
6529 int
6530 main ()
6531 {
6532
6533   ;
6534   return 0;
6535 }
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541   *) ac_try_echo=$ac_try;;
6542 esac
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544   (eval "$ac_compile") 2>conftest.er1
6545   ac_status=$?
6546   grep -v '^ *+' conftest.er1 >conftest.err
6547   rm -f conftest.er1
6548   cat conftest.err >&5
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } &&
6551          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6552   { (case "(($ac_try" in
6553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554   *) ac_try_echo=$ac_try;;
6555 esac
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557   (eval "$ac_try") 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); }; } &&
6561          { ac_try='test -s conftest.$ac_objext'
6562   { (case "(($ac_try" in
6563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564   *) ac_try_echo=$ac_try;;
6565 esac
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567   (eval "$ac_try") 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; }; then
6571   ac_cv_prog_cxx_g=yes
6572 else
6573   echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6575
6576
6577 fi
6578
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 fi
6581
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 fi
6584
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6587 fi
6588 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6590 if test "$ac_test_CXXFLAGS" = set; then
6591   CXXFLAGS=$ac_save_CXXFLAGS
6592 elif test $ac_cv_prog_cxx_g = yes; then
6593   if test "$GXX" = yes; then
6594     CXXFLAGS="-g -O2"
6595   else
6596     CXXFLAGS="-g"
6597   fi
6598 else
6599   if test "$GXX" = yes; then
6600     CXXFLAGS="-O2"
6601   else
6602     CXXFLAGS=
6603   fi
6604 fi
6605 ac_ext=c
6606 ac_cpp='$CPP $CPPFLAGS'
6607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610
6611
6612 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6613 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6614 if test "${lt_cv_path_NM+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   if test -n "$NM"; then
6618   # Let the user override the test.
6619   lt_cv_path_NM="$NM"
6620 else
6621   lt_nm_to_check="${ac_tool_prefix}nm"
6622   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6623     lt_nm_to_check="$lt_nm_to_check nm"
6624   fi
6625   for lt_tmp_nm in $lt_nm_to_check; do
6626     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6627     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6628       IFS="$lt_save_ifs"
6629       test -z "$ac_dir" && ac_dir=.
6630       tmp_nm="$ac_dir/$lt_tmp_nm"
6631       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6632         # Check to see if the nm accepts a BSD-compat flag.
6633         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6634         #   nm: unknown option "B" ignored
6635         # Tru64's nm complains that /dev/null is an invalid object file
6636         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6637         */dev/null* | *'Invalid file or object type'*)
6638           lt_cv_path_NM="$tmp_nm -B"
6639           break
6640           ;;
6641         *)
6642           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6643           */dev/null*)
6644             lt_cv_path_NM="$tmp_nm -p"
6645             break
6646             ;;
6647           *)
6648             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6649             continue # so that we can try to find one that supports BSD flags
6650             ;;
6651           esac
6652           ;;
6653         esac
6654       fi
6655     done
6656     IFS="$lt_save_ifs"
6657   done
6658   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6659 fi
6660 fi
6661 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6662 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6663 NM="$lt_cv_path_NM"
6664
6665
6666
6667 { echo "$as_me:$LINENO: checking for GNU make" >&5
6668 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6669 if test "${llvm_cv_gnu_make_command+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   llvm_cv_gnu_make_command=''
6673  for a in "$MAKE" make gmake gnumake ; do
6674   if test -z "$a" ; then continue ; fi ;
6675   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6676   then
6677    llvm_cv_gnu_make_command=$a ;
6678    break;
6679   fi
6680  done
6681 fi
6682 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6683 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6684  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6685    ifGNUmake='' ;
6686  else
6687    ifGNUmake='#' ;
6688    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6689 echo "${ECHO_T}\"Not found\"" >&6; };
6690  fi
6691
6692
6693 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6694 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6695 LN_S=$as_ln_s
6696 if test "$LN_S" = "ln -s"; then
6697   { echo "$as_me:$LINENO: result: yes" >&5
6698 echo "${ECHO_T}yes" >&6; }
6699 else
6700   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6701 echo "${ECHO_T}no, using $LN_S" >&6; }
6702 fi
6703
6704 # Extract the first word of "cmp", so it can be a program name with args.
6705 set dummy cmp; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_CMP+set}" = set; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   case $CMP in
6712   [\\/]* | ?:[\\/]*)
6713   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6714   ;;
6715   *)
6716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721   for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728 done
6729 IFS=$as_save_IFS
6730
6731   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6732   ;;
6733 esac
6734 fi
6735 CMP=$ac_cv_path_CMP
6736 if test -n "$CMP"; then
6737   { echo "$as_me:$LINENO: result: $CMP" >&5
6738 echo "${ECHO_T}$CMP" >&6; }
6739 else
6740   { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6742 fi
6743
6744
6745 # Extract the first word of "cp", so it can be a program name with args.
6746 set dummy cp; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_path_CP+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752   case $CP in
6753   [\\/]* | ?:[\\/]*)
6754   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6755   ;;
6756   *)
6757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6773   ;;
6774 esac
6775 fi
6776 CP=$ac_cv_path_CP
6777 if test -n "$CP"; then
6778   { echo "$as_me:$LINENO: result: $CP" >&5
6779 echo "${ECHO_T}$CP" >&6; }
6780 else
6781   { echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6; }
6783 fi
6784
6785
6786 # Extract the first word of "date", so it can be a program name with args.
6787 set dummy date; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_path_DATE+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   case $DATE in
6794   [\\/]* | ?:[\\/]*)
6795   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6796   ;;
6797   *)
6798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801   IFS=$as_save_IFS
6802   test -z "$as_dir" && as_dir=.
6803   for ac_exec_ext in '' $ac_executable_extensions; do
6804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807     break 2
6808   fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6814   ;;
6815 esac
6816 fi
6817 DATE=$ac_cv_path_DATE
6818 if test -n "$DATE"; then
6819   { echo "$as_me:$LINENO: result: $DATE" >&5
6820 echo "${ECHO_T}$DATE" >&6; }
6821 else
6822   { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6824 fi
6825
6826
6827 # Extract the first word of "find", so it can be a program name with args.
6828 set dummy find; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_path_FIND+set}" = set; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   case $FIND in
6835   [\\/]* | ?:[\\/]*)
6836   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6837   ;;
6838   *)
6839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842   IFS=$as_save_IFS
6843   test -z "$as_dir" && as_dir=.
6844   for ac_exec_ext in '' $ac_executable_extensions; do
6845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6846     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848     break 2
6849   fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6855   ;;
6856 esac
6857 fi
6858 FIND=$ac_cv_path_FIND
6859 if test -n "$FIND"; then
6860   { echo "$as_me:$LINENO: result: $FIND" >&5
6861 echo "${ECHO_T}$FIND" >&6; }
6862 else
6863   { echo "$as_me:$LINENO: result: no" >&5
6864 echo "${ECHO_T}no" >&6; }
6865 fi
6866
6867
6868 # Extract the first word of "grep", so it can be a program name with args.
6869 set dummy grep; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_path_GREP+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   case $GREP in
6876   [\\/]* | ?:[\\/]*)
6877   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6878   ;;
6879   *)
6880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883   IFS=$as_save_IFS
6884   test -z "$as_dir" && as_dir=.
6885   for ac_exec_ext in '' $ac_executable_extensions; do
6886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6887     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889     break 2
6890   fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6896   ;;
6897 esac
6898 fi
6899 GREP=$ac_cv_path_GREP
6900 if test -n "$GREP"; then
6901   { echo "$as_me:$LINENO: result: $GREP" >&5
6902 echo "${ECHO_T}$GREP" >&6; }
6903 else
6904   { echo "$as_me:$LINENO: result: no" >&5
6905 echo "${ECHO_T}no" >&6; }
6906 fi
6907
6908
6909 # Extract the first word of "mkdir", so it can be a program name with args.
6910 set dummy mkdir; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_path_MKDIR+set}" = set; then
6914   echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916   case $MKDIR in
6917   [\\/]* | ?:[\\/]*)
6918   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6919   ;;
6920   *)
6921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926   for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6937   ;;
6938 esac
6939 fi
6940 MKDIR=$ac_cv_path_MKDIR
6941 if test -n "$MKDIR"; then
6942   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6943 echo "${ECHO_T}$MKDIR" >&6; }
6944 else
6945   { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6947 fi
6948
6949
6950 # Extract the first word of "mv", so it can be a program name with args.
6951 set dummy mv; ac_word=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_path_MV+set}" = set; then
6955   echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957   case $MV in
6958   [\\/]* | ?:[\\/]*)
6959   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6960   ;;
6961   *)
6962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965   IFS=$as_save_IFS
6966   test -z "$as_dir" && as_dir=.
6967   for ac_exec_ext in '' $ac_executable_extensions; do
6968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971     break 2
6972   fi
6973 done
6974 done
6975 IFS=$as_save_IFS
6976
6977   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6978   ;;
6979 esac
6980 fi
6981 MV=$ac_cv_path_MV
6982 if test -n "$MV"; then
6983   { echo "$as_me:$LINENO: result: $MV" >&5
6984 echo "${ECHO_T}$MV" >&6; }
6985 else
6986   { echo "$as_me:$LINENO: result: no" >&5
6987 echo "${ECHO_T}no" >&6; }
6988 fi
6989
6990
6991 if test -n "$ac_tool_prefix"; then
6992   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_prog_RANLIB+set}" = set; then
6997   echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999   if test -n "$RANLIB"; then
7000   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005   IFS=$as_save_IFS
7006   test -z "$as_dir" && as_dir=.
7007   for ac_exec_ext in '' $ac_executable_extensions; do
7008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7009     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011     break 2
7012   fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 RANLIB=$ac_cv_prog_RANLIB
7020 if test -n "$RANLIB"; then
7021   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7022 echo "${ECHO_T}$RANLIB" >&6; }
7023 else
7024   { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_RANLIB"; then
7031   ac_ct_RANLIB=$RANLIB
7032   # Extract the first word of "ranlib", so it can be a program name with args.
7033 set dummy ranlib; ac_word=$2
7034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7037   echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039   if test -n "$ac_ct_RANLIB"; then
7040   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045   IFS=$as_save_IFS
7046   test -z "$as_dir" && as_dir=.
7047   for ac_exec_ext in '' $ac_executable_extensions; do
7048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7049     ac_cv_prog_ac_ct_RANLIB="ranlib"
7050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051     break 2
7052   fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7060 if test -n "$ac_ct_RANLIB"; then
7061   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7062 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7063 else
7064   { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7066 fi
7067
7068   if test "x$ac_ct_RANLIB" = x; then
7069     RANLIB=":"
7070   else
7071     case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7074 whose name does not start with the host triplet.  If you think this
7075 configuration is useful to you, please write to autoconf@gnu.org." >&5
7076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7077 whose name does not start with the host triplet.  If you think this
7078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081     RANLIB=$ac_ct_RANLIB
7082   fi
7083 else
7084   RANLIB="$ac_cv_prog_RANLIB"
7085 fi
7086
7087 if test -n "$ac_tool_prefix"; then
7088   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7089 set dummy ${ac_tool_prefix}ar; ac_word=$2
7090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092 if test "${ac_cv_prog_AR+set}" = set; then
7093   echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095   if test -n "$AR"; then
7096   ac_cv_prog_AR="$AR" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103   for ac_exec_ext in '' $ac_executable_extensions; do
7104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7105     ac_cv_prog_AR="${ac_tool_prefix}ar"
7106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107     break 2
7108   fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 AR=$ac_cv_prog_AR
7116 if test -n "$AR"; then
7117   { echo "$as_me:$LINENO: result: $AR" >&5
7118 echo "${ECHO_T}$AR" >&6; }
7119 else
7120   { echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6; }
7122 fi
7123
7124
7125 fi
7126 if test -z "$ac_cv_prog_AR"; then
7127   ac_ct_AR=$AR
7128   # Extract the first word of "ar", so it can be a program name with args.
7129 set dummy ar; ac_word=$2
7130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7132 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7133   echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135   if test -n "$ac_ct_AR"; then
7136   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141   IFS=$as_save_IFS
7142   test -z "$as_dir" && as_dir=.
7143   for ac_exec_ext in '' $ac_executable_extensions; do
7144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7145     ac_cv_prog_ac_ct_AR="ar"
7146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147     break 2
7148   fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7152
7153 fi
7154 fi
7155 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7156 if test -n "$ac_ct_AR"; then
7157   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7158 echo "${ECHO_T}$ac_ct_AR" >&6; }
7159 else
7160   { echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6; }
7162 fi
7163
7164   if test "x$ac_ct_AR" = x; then
7165     AR="false"
7166   else
7167     case $cross_compiling:$ac_tool_warned in
7168 yes:)
7169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7170 whose name does not start with the host triplet.  If you think this
7171 configuration is useful to you, please write to autoconf@gnu.org." >&5
7172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7173 whose name does not start with the host triplet.  If you think this
7174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7175 ac_tool_warned=yes ;;
7176 esac
7177     AR=$ac_ct_AR
7178   fi
7179 else
7180   AR="$ac_cv_prog_AR"
7181 fi
7182
7183 # Extract the first word of "rm", so it can be a program name with args.
7184 set dummy rm; ac_word=$2
7185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187 if test "${ac_cv_path_RM+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   case $RM in
7191   [\\/]* | ?:[\\/]*)
7192   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7193   ;;
7194   *)
7195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200   for ac_exec_ext in '' $ac_executable_extensions; do
7201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207 done
7208 IFS=$as_save_IFS
7209
7210   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7211   ;;
7212 esac
7213 fi
7214 RM=$ac_cv_path_RM
7215 if test -n "$RM"; then
7216   { echo "$as_me:$LINENO: result: $RM" >&5
7217 echo "${ECHO_T}$RM" >&6; }
7218 else
7219   { echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6; }
7221 fi
7222
7223
7224 # Extract the first word of "sed", so it can be a program name with args.
7225 set dummy sed; ac_word=$2
7226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228 if test "${ac_cv_path_SED+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   case $SED in
7232   [\\/]* | ?:[\\/]*)
7233   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7234   ;;
7235   *)
7236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241   for ac_exec_ext in '' $ac_executable_extensions; do
7242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7243     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7252   ;;
7253 esac
7254 fi
7255 SED=$ac_cv_path_SED
7256 if test -n "$SED"; then
7257   { echo "$as_me:$LINENO: result: $SED" >&5
7258 echo "${ECHO_T}$SED" >&6; }
7259 else
7260   { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7262 fi
7263
7264
7265 # Extract the first word of "tar", so it can be a program name with args.
7266 set dummy tar; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_TAR+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   case $TAR in
7273   [\\/]* | ?:[\\/]*)
7274   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7275   ;;
7276   *)
7277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282   for ac_exec_ext in '' $ac_executable_extensions; do
7283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289 done
7290 IFS=$as_save_IFS
7291
7292   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7293   ;;
7294 esac
7295 fi
7296 TAR=$ac_cv_path_TAR
7297 if test -n "$TAR"; then
7298   { echo "$as_me:$LINENO: result: $TAR" >&5
7299 echo "${ECHO_T}$TAR" >&6; }
7300 else
7301   { echo "$as_me:$LINENO: result: no" >&5
7302 echo "${ECHO_T}no" >&6; }
7303 fi
7304
7305
7306 # Extract the first word of "pwd", so it can be a program name with args.
7307 set dummy pwd; ac_word=$2
7308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310 if test "${ac_cv_path_BINPWD+set}" = set; then
7311   echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313   case $BINPWD in
7314   [\\/]* | ?:[\\/]*)
7315   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7316   ;;
7317   *)
7318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321   IFS=$as_save_IFS
7322   test -z "$as_dir" && as_dir=.
7323   for ac_exec_ext in '' $ac_executable_extensions; do
7324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7325     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327     break 2
7328   fi
7329 done
7330 done
7331 IFS=$as_save_IFS
7332
7333   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7334   ;;
7335 esac
7336 fi
7337 BINPWD=$ac_cv_path_BINPWD
7338 if test -n "$BINPWD"; then
7339   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7340 echo "${ECHO_T}$BINPWD" >&6; }
7341 else
7342   { echo "$as_me:$LINENO: result: no" >&5
7343 echo "${ECHO_T}no" >&6; }
7344 fi
7345
7346
7347
7348 # Extract the first word of "Graphviz", so it can be a program name with args.
7349 set dummy Graphviz; ac_word=$2
7350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   case $GRAPHVIZ in
7356   [\\/]* | ?:[\\/]*)
7357   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7358   ;;
7359   *)
7360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365   for ac_exec_ext in '' $ac_executable_extensions; do
7366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7367     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372 done
7373 IFS=$as_save_IFS
7374
7375   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7376   ;;
7377 esac
7378 fi
7379 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7380 if test -n "$GRAPHVIZ"; then
7381   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7382 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7383 else
7384   { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7386 fi
7387
7388
7389 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7390
7391 cat >>confdefs.h <<\_ACEOF
7392 #define HAVE_GRAPHVIZ 1
7393 _ACEOF
7394
7395     if test "$llvm_cv_os_type" = "MingW" ; then
7396     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7397   fi
7398
7399 cat >>confdefs.h <<_ACEOF
7400 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7401 _ACEOF
7402
7403 fi
7404 # Extract the first word of "dot", so it can be a program name with args.
7405 set dummy dot; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_path_DOT+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   case $DOT in
7412   [\\/]* | ?:[\\/]*)
7413   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7414   ;;
7415   *)
7416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421   for ac_exec_ext in '' $ac_executable_extensions; do
7422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7423     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428 done
7429 IFS=$as_save_IFS
7430
7431   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7432   ;;
7433 esac
7434 fi
7435 DOT=$ac_cv_path_DOT
7436 if test -n "$DOT"; then
7437   { echo "$as_me:$LINENO: result: $DOT" >&5
7438 echo "${ECHO_T}$DOT" >&6; }
7439 else
7440   { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7442 fi
7443
7444
7445 if test "$DOT" != "echo dot" ; then
7446
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_DOT 1
7449 _ACEOF
7450
7451     if test "$llvm_cv_os_type" = "MingW" ; then
7452     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7453   fi
7454
7455 cat >>confdefs.h <<_ACEOF
7456 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7457 _ACEOF
7458
7459 fi
7460 # Extract the first word of "fdp", so it can be a program name with args.
7461 set dummy fdp; ac_word=$2
7462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7464 if test "${ac_cv_path_FDP+set}" = set; then
7465   echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467   case $FDP in
7468   [\\/]* | ?:[\\/]*)
7469   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7470   ;;
7471   *)
7472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477   for ac_exec_ext in '' $ac_executable_extensions; do
7478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7479     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484 done
7485 IFS=$as_save_IFS
7486
7487   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7488   ;;
7489 esac
7490 fi
7491 FDP=$ac_cv_path_FDP
7492 if test -n "$FDP"; then
7493   { echo "$as_me:$LINENO: result: $FDP" >&5
7494 echo "${ECHO_T}$FDP" >&6; }
7495 else
7496   { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7498 fi
7499
7500
7501 if test "$FDP" != "echo fdp" ; then
7502
7503 cat >>confdefs.h <<\_ACEOF
7504 #define HAVE_FDP 1
7505 _ACEOF
7506
7507     if test "$llvm_cv_os_type" = "MingW" ; then
7508     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7509   fi
7510
7511 cat >>confdefs.h <<_ACEOF
7512 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7513 _ACEOF
7514
7515 fi
7516 # Extract the first word of "neato", so it can be a program name with args.
7517 set dummy neato; ac_word=$2
7518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7520 if test "${ac_cv_path_NEATO+set}" = set; then
7521   echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523   case $NEATO in
7524   [\\/]* | ?:[\\/]*)
7525   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7526   ;;
7527   *)
7528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533   for ac_exec_ext in '' $ac_executable_extensions; do
7534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7535     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540 done
7541 IFS=$as_save_IFS
7542
7543   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7544   ;;
7545 esac
7546 fi
7547 NEATO=$ac_cv_path_NEATO
7548 if test -n "$NEATO"; then
7549   { echo "$as_me:$LINENO: result: $NEATO" >&5
7550 echo "${ECHO_T}$NEATO" >&6; }
7551 else
7552   { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7554 fi
7555
7556
7557 if test "$NEATO" != "echo neato" ; then
7558
7559 cat >>confdefs.h <<\_ACEOF
7560 #define HAVE_NEATO 1
7561 _ACEOF
7562
7563     if test "$llvm_cv_os_type" = "MingW" ; then
7564     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7565   fi
7566
7567 cat >>confdefs.h <<_ACEOF
7568 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7569 _ACEOF
7570
7571 fi
7572 # Extract the first word of "twopi", so it can be a program name with args.
7573 set dummy twopi; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_TWOPI+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   case $TWOPI in
7580   [\\/]* | ?:[\\/]*)
7581   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7582   ;;
7583   *)
7584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589   for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596 done
7597 IFS=$as_save_IFS
7598
7599   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7600   ;;
7601 esac
7602 fi
7603 TWOPI=$ac_cv_path_TWOPI
7604 if test -n "$TWOPI"; then
7605   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7606 echo "${ECHO_T}$TWOPI" >&6; }
7607 else
7608   { echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6; }
7610 fi
7611
7612
7613 if test "$TWOPI" != "echo twopi" ; then
7614
7615 cat >>confdefs.h <<\_ACEOF
7616 #define HAVE_TWOPI 1
7617 _ACEOF
7618
7619     if test "$llvm_cv_os_type" = "MingW" ; then
7620     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7621   fi
7622
7623 cat >>confdefs.h <<_ACEOF
7624 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7625 _ACEOF
7626
7627 fi
7628 # Extract the first word of "circo", so it can be a program name with args.
7629 set dummy circo; ac_word=$2
7630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632 if test "${ac_cv_path_CIRCO+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   case $CIRCO in
7636   [\\/]* | ?:[\\/]*)
7637   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7638   ;;
7639   *)
7640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7642 do
7643   IFS=$as_save_IFS
7644   test -z "$as_dir" && as_dir=.
7645   for ac_exec_ext in '' $ac_executable_extensions; do
7646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649     break 2
7650   fi
7651 done
7652 done
7653 IFS=$as_save_IFS
7654
7655   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7656   ;;
7657 esac
7658 fi
7659 CIRCO=$ac_cv_path_CIRCO
7660 if test -n "$CIRCO"; then
7661   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7662 echo "${ECHO_T}$CIRCO" >&6; }
7663 else
7664   { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7666 fi
7667
7668
7669 if test "$CIRCO" != "echo circo" ; then
7670
7671 cat >>confdefs.h <<\_ACEOF
7672 #define HAVE_CIRCO 1
7673 _ACEOF
7674
7675     if test "$llvm_cv_os_type" = "MingW" ; then
7676     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7677   fi
7678
7679 cat >>confdefs.h <<_ACEOF
7680 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7681 _ACEOF
7682
7683 fi
7684 for ac_prog in gv gsview32
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_GV+set}" = set; then
7691   echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693   case $GV in
7694   [\\/]* | ?:[\\/]*)
7695   ac_cv_path_GV="$GV" # 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_GV="$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 GV=$ac_cv_path_GV
7717 if test -n "$GV"; then
7718   { echo "$as_me:$LINENO: result: $GV" >&5
7719 echo "${ECHO_T}$GV" >&6; }
7720 else
7721   { echo "$as_me:$LINENO: result: no" >&5
7722 echo "${ECHO_T}no" >&6; }
7723 fi
7724
7725
7726   test -n "$GV" && break
7727 done
7728 test -n "$GV" || GV="echo gv"
7729
7730 if test "$GV" != "echo gv" ; then
7731
7732 cat >>confdefs.h <<\_ACEOF
7733 #define HAVE_GV 1
7734 _ACEOF
7735
7736     if test "$llvm_cv_os_type" = "MingW" ; then
7737     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7738   fi
7739
7740 cat >>confdefs.h <<_ACEOF
7741 #define LLVM_PATH_GV "$GV${EXEEXT}"
7742 _ACEOF
7743
7744 fi
7745 # Extract the first word of "dotty", so it can be a program name with args.
7746 set dummy dotty; ac_word=$2
7747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749 if test "${ac_cv_path_DOTTY+set}" = set; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752   case $DOTTY in
7753   [\\/]* | ?:[\\/]*)
7754   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7755   ;;
7756   *)
7757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760   IFS=$as_save_IFS
7761   test -z "$as_dir" && as_dir=.
7762   for ac_exec_ext in '' $ac_executable_extensions; do
7763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7764     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766     break 2
7767   fi
7768 done
7769 done
7770 IFS=$as_save_IFS
7771
7772   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7773   ;;
7774 esac
7775 fi
7776 DOTTY=$ac_cv_path_DOTTY
7777 if test -n "$DOTTY"; then
7778   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7779 echo "${ECHO_T}$DOTTY" >&6; }
7780 else
7781   { echo "$as_me:$LINENO: result: no" >&5
7782 echo "${ECHO_T}no" >&6; }
7783 fi
7784
7785
7786 if test "$DOTTY" != "echo dotty" ; then
7787
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_DOTTY 1
7790 _ACEOF
7791
7792     if test "$llvm_cv_os_type" = "MingW" ; then
7793     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7794   fi
7795
7796 cat >>confdefs.h <<_ACEOF
7797 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7798 _ACEOF
7799
7800 fi
7801
7802
7803 # Extract the first word of "perl", so it can be a program name with args.
7804 set dummy perl; ac_word=$2
7805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807 if test "${ac_cv_path_PERL+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   case $PERL in
7811   [\\/]* | ?:[\\/]*)
7812   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7813   ;;
7814   *)
7815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820   for ac_exec_ext in '' $ac_executable_extensions; do
7821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7822     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7831   ;;
7832 esac
7833 fi
7834 PERL=$ac_cv_path_PERL
7835 if test -n "$PERL"; then
7836   { echo "$as_me:$LINENO: result: $PERL" >&5
7837 echo "${ECHO_T}$PERL" >&6; }
7838 else
7839   { echo "$as_me:$LINENO: result: no" >&5
7840 echo "${ECHO_T}no" >&6; }
7841 fi
7842
7843
7844 if test "$PERL" != "none"; then
7845   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7846 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7847   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7848     { echo "$as_me:$LINENO: result: yes" >&5
7849 echo "${ECHO_T}yes" >&6; }
7850   else
7851     PERL=none
7852     { echo "$as_me:$LINENO: result: not found" >&5
7853 echo "${ECHO_T}not found" >&6; }
7854   fi
7855 fi
7856
7857
7858 if test x"$PERL" = xnone; then
7859    HAVE_PERL=0
7860
7861    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7862 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7863    { (exit 1); exit 1; }; }
7864 else
7865    HAVE_PERL=1
7866
7867 fi
7868
7869 # Find a good install program.  We prefer a C program (faster),
7870 # so one script is as good as another.  But avoid the broken or
7871 # incompatible versions:
7872 # SysV /etc/install, /usr/sbin/install
7873 # SunOS /usr/etc/install
7874 # IRIX /sbin/install
7875 # AIX /bin/install
7876 # AmigaOS /C/install, which installs bootblocks on floppy discs
7877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7880 # OS/2's system install, which has a completely different semantic
7881 # ./install, which can be erroneously created by make from ./install.sh.
7882 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7883 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7884 if test -z "$INSTALL"; then
7885 if test "${ac_cv_path_install+set}" = set; then
7886   echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893   # Account for people who put trailing slashes in PATH elements.
7894 case $as_dir/ in
7895   ./ | .// | /cC/* | \
7896   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7897   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7898   /usr/ucb/* ) ;;
7899   *)
7900     # OSF1 and SCO ODT 3.0 have their own names for install.
7901     # Don't use installbsd from OSF since it installs stuff as root
7902     # by default.
7903     for ac_prog in ginstall scoinst install; do
7904       for ac_exec_ext in '' $ac_executable_extensions; do
7905         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7906           if test $ac_prog = install &&
7907             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7908             # AIX install.  It has an incompatible calling convention.
7909             :
7910           elif test $ac_prog = install &&
7911             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7912             # program-specific install script used by HP pwplus--don't use.
7913             :
7914           else
7915             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7916             break 3
7917           fi
7918         fi
7919       done
7920     done
7921     ;;
7922 esac
7923 done
7924 IFS=$as_save_IFS
7925
7926
7927 fi
7928   if test "${ac_cv_path_install+set}" = set; then
7929     INSTALL=$ac_cv_path_install
7930   else
7931     # As a last resort, use the slow shell script.  Don't cache a
7932     # value for INSTALL within a source directory, because that will
7933     # break other packages using the cache if that directory is
7934     # removed, or if the value is a relative name.
7935     INSTALL=$ac_install_sh
7936   fi
7937 fi
7938 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7939 echo "${ECHO_T}$INSTALL" >&6; }
7940
7941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7942 # It thinks the first close brace ends the variable substitution.
7943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7944
7945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7946
7947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7948
7949
7950 # Extract the first word of "bzip2", so it can be a program name with args.
7951 set dummy bzip2; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_path_BZIP2+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   case $BZIP2 in
7958   [\\/]* | ?:[\\/]*)
7959   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7960   ;;
7961   *)
7962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967   for ac_exec_ext in '' $ac_executable_extensions; do
7968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7969     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977   ;;
7978 esac
7979 fi
7980 BZIP2=$ac_cv_path_BZIP2
7981 if test -n "$BZIP2"; then
7982   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7983 echo "${ECHO_T}$BZIP2" >&6; }
7984 else
7985   { echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6; }
7987 fi
7988
7989
7990 # Extract the first word of "doxygen", so it can be a program name with args.
7991 set dummy doxygen; ac_word=$2
7992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997   case $DOXYGEN in
7998   [\\/]* | ?:[\\/]*)
7999   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8000   ;;
8001   *)
8002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8004 do
8005   IFS=$as_save_IFS
8006   test -z "$as_dir" && as_dir=.
8007   for ac_exec_ext in '' $ac_executable_extensions; do
8008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8009     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011     break 2
8012   fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017   ;;
8018 esac
8019 fi
8020 DOXYGEN=$ac_cv_path_DOXYGEN
8021 if test -n "$DOXYGEN"; then
8022   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8023 echo "${ECHO_T}$DOXYGEN" >&6; }
8024 else
8025   { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8027 fi
8028
8029
8030 # Extract the first word of "groff", so it can be a program name with args.
8031 set dummy groff; ac_word=$2
8032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034 if test "${ac_cv_path_GROFF+set}" = set; then
8035   echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037   case $GROFF in
8038   [\\/]* | ?:[\\/]*)
8039   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8040   ;;
8041   *)
8042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047   for ac_exec_ext in '' $ac_executable_extensions; do
8048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8049     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054 done
8055 IFS=$as_save_IFS
8056
8057   ;;
8058 esac
8059 fi
8060 GROFF=$ac_cv_path_GROFF
8061 if test -n "$GROFF"; then
8062   { echo "$as_me:$LINENO: result: $GROFF" >&5
8063 echo "${ECHO_T}$GROFF" >&6; }
8064 else
8065   { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8067 fi
8068
8069
8070 # Extract the first word of "gzip", so it can be a program name with args.
8071 set dummy gzip; ac_word=$2
8072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8074 if test "${ac_cv_path_GZIP+set}" = set; then
8075   echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077   case $GZIP in
8078   [\\/]* | ?:[\\/]*)
8079   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8080   ;;
8081   *)
8082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085   IFS=$as_save_IFS
8086   test -z "$as_dir" && as_dir=.
8087   for ac_exec_ext in '' $ac_executable_extensions; do
8088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8089     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091     break 2
8092   fi
8093 done
8094 done
8095 IFS=$as_save_IFS
8096
8097   ;;
8098 esac
8099 fi
8100 GZIP=$ac_cv_path_GZIP
8101 if test -n "$GZIP"; then
8102   { echo "$as_me:$LINENO: result: $GZIP" >&5
8103 echo "${ECHO_T}$GZIP" >&6; }
8104 else
8105   { echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6; }
8107 fi
8108
8109
8110 # Extract the first word of "pod2html", so it can be a program name with args.
8111 set dummy pod2html; ac_word=$2
8112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8114 if test "${ac_cv_path_POD2HTML+set}" = set; then
8115   echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117   case $POD2HTML in
8118   [\\/]* | ?:[\\/]*)
8119   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8120   ;;
8121   *)
8122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125   IFS=$as_save_IFS
8126   test -z "$as_dir" && as_dir=.
8127   for ac_exec_ext in '' $ac_executable_extensions; do
8128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8129     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131     break 2
8132   fi
8133 done
8134 done
8135 IFS=$as_save_IFS
8136
8137   ;;
8138 esac
8139 fi
8140 POD2HTML=$ac_cv_path_POD2HTML
8141 if test -n "$POD2HTML"; then
8142   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8143 echo "${ECHO_T}$POD2HTML" >&6; }
8144 else
8145   { echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6; }
8147 fi
8148
8149
8150 # Extract the first word of "pod2man", so it can be a program name with args.
8151 set dummy pod2man; ac_word=$2
8152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154 if test "${ac_cv_path_POD2MAN+set}" = set; then
8155   echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157   case $POD2MAN in
8158   [\\/]* | ?:[\\/]*)
8159   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8160   ;;
8161   *)
8162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165   IFS=$as_save_IFS
8166   test -z "$as_dir" && as_dir=.
8167   for ac_exec_ext in '' $ac_executable_extensions; do
8168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8169     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171     break 2
8172   fi
8173 done
8174 done
8175 IFS=$as_save_IFS
8176
8177   ;;
8178 esac
8179 fi
8180 POD2MAN=$ac_cv_path_POD2MAN
8181 if test -n "$POD2MAN"; then
8182   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8183 echo "${ECHO_T}$POD2MAN" >&6; }
8184 else
8185   { echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6; }
8187 fi
8188
8189
8190 # Extract the first word of "runtest", so it can be a program name with args.
8191 set dummy runtest; ac_word=$2
8192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194 if test "${ac_cv_path_RUNTEST+set}" = set; then
8195   echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197   case $RUNTEST in
8198   [\\/]* | ?:[\\/]*)
8199   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8200   ;;
8201   *)
8202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8204 do
8205   IFS=$as_save_IFS
8206   test -z "$as_dir" && as_dir=.
8207   for ac_exec_ext in '' $ac_executable_extensions; do
8208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8209     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211     break 2
8212   fi
8213 done
8214 done
8215 IFS=$as_save_IFS
8216
8217   ;;
8218 esac
8219 fi
8220 RUNTEST=$ac_cv_path_RUNTEST
8221 if test -n "$RUNTEST"; then
8222   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8223 echo "${ECHO_T}$RUNTEST" >&6; }
8224 else
8225   { echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6; }
8227 fi
8228
8229
8230
8231 no_itcl=true
8232 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8233 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8234
8235 # Check whether --with-tclinclude was given.
8236 if test "${with_tclinclude+set}" = set; then
8237   withval=$with_tclinclude; with_tclinclude=${withval}
8238 else
8239   with_tclinclude=''
8240 fi
8241
8242 if test "${ac_cv_path_tclsh+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245
8246 if test x"${with_tclinclude}" != x ; then
8247   if test -f ${with_tclinclude}/tclsh ; then
8248     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8249   elif test -f ${with_tclinclude}/src/tclsh ; then
8250     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8251   else
8252     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8253 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8254    { (exit 1); exit 1; }; }
8255   fi
8256 fi
8257 fi
8258
8259
8260 if test x"${ac_cv_path_tclsh}" = x ; then
8261   { echo "$as_me:$LINENO: result: none" >&5
8262 echo "${ECHO_T}none" >&6; }
8263   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
8264 do
8265   # Extract the first word of "$ac_prog", so it can be a program name with args.
8266 set dummy $ac_prog; ac_word=$2
8267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269 if test "${ac_cv_path_TCLSH+set}" = set; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272   case $TCLSH in
8273   [\\/]* | ?:[\\/]*)
8274   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8275   ;;
8276   *)
8277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282   for ac_exec_ext in '' $ac_executable_extensions; do
8283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8284     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289 done
8290 IFS=$as_save_IFS
8291
8292   ;;
8293 esac
8294 fi
8295 TCLSH=$ac_cv_path_TCLSH
8296 if test -n "$TCLSH"; then
8297   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8298 echo "${ECHO_T}$TCLSH" >&6; }
8299 else
8300   { echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6; }
8302 fi
8303
8304
8305   test -n "$TCLSH" && break
8306 done
8307
8308   if test x"${TCLSH}" = x ; then
8309     ac_cv_path_tclsh='';
8310   else
8311     ac_cv_path_tclsh="${TCLSH}";
8312   fi
8313 else
8314   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8315 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8316   TCLSH="${ac_cv_path_tclsh}"
8317
8318 fi
8319
8320 # Extract the first word of "zip", so it can be a program name with args.
8321 set dummy zip; ac_word=$2
8322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8324 if test "${ac_cv_path_ZIP+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   case $ZIP in
8328   [\\/]* | ?:[\\/]*)
8329   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8330   ;;
8331   *)
8332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335   IFS=$as_save_IFS
8336   test -z "$as_dir" && as_dir=.
8337   for ac_exec_ext in '' $ac_executable_extensions; do
8338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8339     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8341     break 2
8342   fi
8343 done
8344 done
8345 IFS=$as_save_IFS
8346
8347   ;;
8348 esac
8349 fi
8350 ZIP=$ac_cv_path_ZIP
8351 if test -n "$ZIP"; then
8352   { echo "$as_me:$LINENO: result: $ZIP" >&5
8353 echo "${ECHO_T}$ZIP" >&6; }
8354 else
8355   { echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6; }
8357 fi
8358
8359
8360 for ac_prog in ocamlc
8361 do
8362   # Extract the first word of "$ac_prog", so it can be a program name with args.
8363 set dummy $ac_prog; ac_word=$2
8364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8366 if test "${ac_cv_path_OCAMLC+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   case $OCAMLC in
8370   [\\/]* | ?:[\\/]*)
8371   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8372   ;;
8373   *)
8374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377   IFS=$as_save_IFS
8378   test -z "$as_dir" && as_dir=.
8379   for ac_exec_ext in '' $ac_executable_extensions; do
8380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8381     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383     break 2
8384   fi
8385 done
8386 done
8387 IFS=$as_save_IFS
8388
8389   ;;
8390 esac
8391 fi
8392 OCAMLC=$ac_cv_path_OCAMLC
8393 if test -n "$OCAMLC"; then
8394   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8395 echo "${ECHO_T}$OCAMLC" >&6; }
8396 else
8397   { echo "$as_me:$LINENO: result: no" >&5
8398 echo "${ECHO_T}no" >&6; }
8399 fi
8400
8401
8402   test -n "$OCAMLC" && break
8403 done
8404
8405 for ac_prog in ocamlopt
8406 do
8407   # Extract the first word of "$ac_prog", so it can be a program name with args.
8408 set dummy $ac_prog; ac_word=$2
8409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8412   echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414   case $OCAMLOPT in
8415   [\\/]* | ?:[\\/]*)
8416   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8417   ;;
8418   *)
8419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8421 do
8422   IFS=$as_save_IFS
8423   test -z "$as_dir" && as_dir=.
8424   for ac_exec_ext in '' $ac_executable_extensions; do
8425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8426     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428     break 2
8429   fi
8430 done
8431 done
8432 IFS=$as_save_IFS
8433
8434   ;;
8435 esac
8436 fi
8437 OCAMLOPT=$ac_cv_path_OCAMLOPT
8438 if test -n "$OCAMLOPT"; then
8439   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8440 echo "${ECHO_T}$OCAMLOPT" >&6; }
8441 else
8442   { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8444 fi
8445
8446
8447   test -n "$OCAMLOPT" && break
8448 done
8449
8450 for ac_prog in ocamldep
8451 do
8452   # Extract the first word of "$ac_prog", so it can be a program name with args.
8453 set dummy $ac_prog; ac_word=$2
8454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8456 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459   case $OCAMLDEP in
8460   [\\/]* | ?:[\\/]*)
8461   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8462   ;;
8463   *)
8464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 for as_dir in $PATH
8466 do
8467   IFS=$as_save_IFS
8468   test -z "$as_dir" && as_dir=.
8469   for ac_exec_ext in '' $ac_executable_extensions; do
8470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8471     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8473     break 2
8474   fi
8475 done
8476 done
8477 IFS=$as_save_IFS
8478
8479   ;;
8480 esac
8481 fi
8482 OCAMLDEP=$ac_cv_path_OCAMLDEP
8483 if test -n "$OCAMLDEP"; then
8484   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8485 echo "${ECHO_T}$OCAMLDEP" >&6; }
8486 else
8487   { echo "$as_me:$LINENO: result: no" >&5
8488 echo "${ECHO_T}no" >&6; }
8489 fi
8490
8491
8492   test -n "$OCAMLDEP" && break
8493 done
8494
8495 for ac_prog in ocamldoc
8496 do
8497   # Extract the first word of "$ac_prog", so it can be a program name with args.
8498 set dummy $ac_prog; ac_word=$2
8499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   case $OCAMLDOC in
8505   [\\/]* | ?:[\\/]*)
8506   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8507   ;;
8508   *)
8509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512   IFS=$as_save_IFS
8513   test -z "$as_dir" && as_dir=.
8514   for ac_exec_ext in '' $ac_executable_extensions; do
8515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8516     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518     break 2
8519   fi
8520 done
8521 done
8522 IFS=$as_save_IFS
8523
8524   ;;
8525 esac
8526 fi
8527 OCAMLDOC=$ac_cv_path_OCAMLDOC
8528 if test -n "$OCAMLDOC"; then
8529   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8530 echo "${ECHO_T}$OCAMLDOC" >&6; }
8531 else
8532   { echo "$as_me:$LINENO: result: no" >&5
8533 echo "${ECHO_T}no" >&6; }
8534 fi
8535
8536
8537   test -n "$OCAMLDOC" && break
8538 done
8539
8540 for ac_prog in gas as
8541 do
8542   # Extract the first word of "$ac_prog", so it can be a program name with args.
8543 set dummy $ac_prog; ac_word=$2
8544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8546 if test "${ac_cv_path_GAS+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   case $GAS in
8550   [\\/]* | ?:[\\/]*)
8551   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8552   ;;
8553   *)
8554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 for as_dir in $PATH
8556 do
8557   IFS=$as_save_IFS
8558   test -z "$as_dir" && as_dir=.
8559   for ac_exec_ext in '' $ac_executable_extensions; do
8560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8561     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8563     break 2
8564   fi
8565 done
8566 done
8567 IFS=$as_save_IFS
8568
8569   ;;
8570 esac
8571 fi
8572 GAS=$ac_cv_path_GAS
8573 if test -n "$GAS"; then
8574   { echo "$as_me:$LINENO: result: $GAS" >&5
8575 echo "${ECHO_T}$GAS" >&6; }
8576 else
8577   { echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6; }
8579 fi
8580
8581
8582   test -n "$GAS" && break
8583 done
8584
8585
8586 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8587 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8588 if test "${llvm_cv_link_use_r+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591    ac_ext=c
8592 ac_cpp='$CPP $CPPFLAGS'
8593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8596
8597   oldcflags="$CFLAGS"
8598   CFLAGS="$CFLAGS -Wl,-R."
8599   cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605
8606 int
8607 main ()
8608 {
8609 int main() { return 0; }
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8616 case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_link") 2>conftest.er1
8622   ac_status=$?
8623   grep -v '^ *+' conftest.er1 >conftest.err
8624   rm -f conftest.er1
8625   cat conftest.err >&5
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } &&
8628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8629   { (case "(($ac_try" in
8630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631   *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634   (eval "$ac_try") 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); }; } &&
8638          { ac_try='test -s conftest$ac_exeext'
8639   { (case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_try") 2>&5
8645   ac_status=$?
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); }; }; then
8648   llvm_cv_link_use_r=yes
8649 else
8650   echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8652
8653         llvm_cv_link_use_r=no
8654 fi
8655
8656 rm -f core conftest.err conftest.$ac_objext \
8657       conftest$ac_exeext conftest.$ac_ext
8658   CFLAGS="$oldcflags"
8659   ac_ext=c
8660 ac_cpp='$CPP $CPPFLAGS'
8661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664
8665
8666 fi
8667 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8668 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8669 if test "$llvm_cv_link_use_r" = yes ; then
8670
8671 cat >>confdefs.h <<\_ACEOF
8672 #define HAVE_LINK_R 1
8673 _ACEOF
8674
8675   fi
8676
8677
8678 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8679 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8680 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683    ac_ext=c
8684 ac_cpp='$CPP $CPPFLAGS'
8685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8688
8689   oldcflags="$CFLAGS"
8690   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8691   cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h.  */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h.  */
8697
8698 int
8699 main ()
8700 {
8701 int main() { return 0; }
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext conftest$ac_exeext
8707 if { (ac_try="$ac_link"
8708 case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713   (eval "$ac_link") 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } &&
8720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721   { (case "(($ac_try" in
8722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723   *) ac_try_echo=$ac_try;;
8724 esac
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726   (eval "$ac_try") 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; } &&
8730          { ac_try='test -s conftest$ac_exeext'
8731   { (case "(($ac_try" in
8732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733   *) ac_try_echo=$ac_try;;
8734 esac
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736   (eval "$ac_try") 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); }; }; then
8740   llvm_cv_link_use_export_dynamic=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745         llvm_cv_link_use_export_dynamic=no
8746 fi
8747
8748 rm -f core conftest.err conftest.$ac_objext \
8749       conftest$ac_exeext conftest.$ac_ext
8750   CFLAGS="$oldcflags"
8751   ac_ext=c
8752 ac_cpp='$CPP $CPPFLAGS'
8753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8756
8757
8758 fi
8759 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8760 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8761 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8762
8763 cat >>confdefs.h <<\_ACEOF
8764 #define HAVE_LINK_EXPORT_DYNAMIC 1
8765 _ACEOF
8766
8767   fi
8768
8769
8770
8771
8772 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8773 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8774 if test "${ac_cv_c_const+set}" = set; then
8775   echo $ECHO_N "(cached) $ECHO_C" >&6
8776 else
8777   cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783
8784 int
8785 main ()
8786 {
8787 /* FIXME: Include the comments suggested by Paul. */
8788 #ifndef __cplusplus
8789   /* Ultrix mips cc rejects this.  */
8790   typedef int charset[2];
8791   const charset x;
8792   /* SunOS 4.1.1 cc rejects this.  */
8793   char const *const *ccp;
8794   char **p;
8795   /* NEC SVR4.0.2 mips cc rejects this.  */
8796   struct point {int x, y;};
8797   static struct point const zero = {0,0};
8798   /* AIX XL C 1.02.0.0 rejects this.
8799      It does not let you subtract one const X* pointer from another in
8800      an arm of an if-expression whose if-part is not a constant
8801      expression */
8802   const char *g = "string";
8803   ccp = &g + (g ? g-g : 0);
8804   /* HPUX 7.0 cc rejects these. */
8805   ++ccp;
8806   p = (char**) ccp;
8807   ccp = (char const *const *) p;
8808   { /* SCO 3.2v4 cc rejects this.  */
8809     char *t;
8810     char const *s = 0 ? (char *) 0 : (char const *) 0;
8811
8812     *t++ = 0;
8813     if (s) return 0;
8814   }
8815   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8816     int x[] = {25, 17};
8817     const int *foo = &x[0];
8818     ++foo;
8819   }
8820   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8821     typedef const int *iptr;
8822     iptr p = 0;
8823     ++p;
8824   }
8825   { /* AIX XL C 1.02.0.0 rejects this saying
8826        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8827     struct s { int j; const int *ap[3]; };
8828     struct s *b; b->j = 5;
8829   }
8830   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8831     const int foo = 10;
8832     if (!foo) return 0;
8833   }
8834   return !x[0] && !zero.x;
8835 #endif
8836
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext
8842 if { (ac_try="$ac_compile"
8843 case "(($ac_try" in
8844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845   *) ac_try_echo=$ac_try;;
8846 esac
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848   (eval "$ac_compile") 2>conftest.er1
8849   ac_status=$?
8850   grep -v '^ *+' conftest.er1 >conftest.err
8851   rm -f conftest.er1
8852   cat conftest.err >&5
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } &&
8855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856   { (case "(($ac_try" in
8857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858   *) ac_try_echo=$ac_try;;
8859 esac
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861   (eval "$ac_try") 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; } &&
8865          { ac_try='test -s conftest.$ac_objext'
8866   { (case "(($ac_try" in
8867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868   *) ac_try_echo=$ac_try;;
8869 esac
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871   (eval "$ac_try") 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); }; }; then
8875   ac_cv_c_const=yes
8876 else
8877   echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8879
8880         ac_cv_c_const=no
8881 fi
8882
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 fi
8885 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8886 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8887 if test $ac_cv_c_const = no; then
8888
8889 cat >>confdefs.h <<\_ACEOF
8890 #define const
8891 _ACEOF
8892
8893 fi
8894
8895
8896
8897
8898
8899
8900 ac_header_dirent=no
8901 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8902   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8903 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8904 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8906   echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908   cat >conftest.$ac_ext <<_ACEOF
8909 /* confdefs.h.  */
8910 _ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h.  */
8914 #include <sys/types.h>
8915 #include <$ac_hdr>
8916
8917 int
8918 main ()
8919 {
8920 if ((DIR *) 0)
8921 return 0;
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 rm -f conftest.$ac_objext
8927 if { (ac_try="$ac_compile"
8928 case "(($ac_try" in
8929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930   *) ac_try_echo=$ac_try;;
8931 esac
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933   (eval "$ac_compile") 2>conftest.er1
8934   ac_status=$?
8935   grep -v '^ *+' conftest.er1 >conftest.err
8936   rm -f conftest.er1
8937   cat conftest.err >&5
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } &&
8940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941   { (case "(($ac_try" in
8942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943   *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946   (eval "$ac_try") 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); }; } &&
8950          { ac_try='test -s conftest.$ac_objext'
8951   { (case "(($ac_try" in
8952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953   *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956   (eval "$ac_try") 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); }; }; then
8960   eval "$as_ac_Header=yes"
8961 else
8962   echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8964
8965         eval "$as_ac_Header=no"
8966 fi
8967
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 fi
8970 ac_res=`eval echo '${'$as_ac_Header'}'`
8971                { echo "$as_me:$LINENO: result: $ac_res" >&5
8972 echo "${ECHO_T}$ac_res" >&6; }
8973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8974   cat >>confdefs.h <<_ACEOF
8975 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8976 _ACEOF
8977
8978 ac_header_dirent=$ac_hdr; break
8979 fi
8980
8981 done
8982 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8983 if test $ac_header_dirent = dirent.h; then
8984   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8985 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8986 if test "${ac_cv_search_opendir+set}" = set; then
8987   echo $ECHO_N "(cached) $ECHO_C" >&6
8988 else
8989   ac_func_search_save_LIBS=$LIBS
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996
8997 /* Override any GCC internal prototype to avoid an error.
8998    Use char because int might match the return type of a GCC
8999    builtin and then its argument prototype would still apply.  */
9000 #ifdef __cplusplus
9001 extern "C"
9002 #endif
9003 char opendir ();
9004 int
9005 main ()
9006 {
9007 return opendir ();
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 for ac_lib in '' dir; do
9013   if test -z "$ac_lib"; then
9014     ac_res="none required"
9015   else
9016     ac_res=-l$ac_lib
9017     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9018   fi
9019   rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9021 case "(($ac_try" in
9022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023   *) ac_try_echo=$ac_try;;
9024 esac
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026   (eval "$ac_link") 2>conftest.er1
9027   ac_status=$?
9028   grep -v '^ *+' conftest.er1 >conftest.err
9029   rm -f conftest.er1
9030   cat conftest.err >&5
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); } &&
9033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9034   { (case "(($ac_try" in
9035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036   *) ac_try_echo=$ac_try;;
9037 esac
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039   (eval "$ac_try") 2>&5
9040   ac_status=$?
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); }; } &&
9043          { ac_try='test -s conftest$ac_exeext'
9044   { (case "(($ac_try" in
9045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046   *) ac_try_echo=$ac_try;;
9047 esac
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049   (eval "$ac_try") 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }; }; then
9053   ac_cv_search_opendir=$ac_res
9054 else
9055   echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058
9059 fi
9060
9061 rm -f core conftest.err conftest.$ac_objext \
9062       conftest$ac_exeext
9063   if test "${ac_cv_search_opendir+set}" = set; then
9064   break
9065 fi
9066 done
9067 if test "${ac_cv_search_opendir+set}" = set; then
9068   :
9069 else
9070   ac_cv_search_opendir=no
9071 fi
9072 rm conftest.$ac_ext
9073 LIBS=$ac_func_search_save_LIBS
9074 fi
9075 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9076 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9077 ac_res=$ac_cv_search_opendir
9078 if test "$ac_res" != no; then
9079   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9080
9081 fi
9082
9083 else
9084   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9085 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9086 if test "${ac_cv_search_opendir+set}" = set; then
9087   echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089   ac_func_search_save_LIBS=$LIBS
9090 cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096
9097 /* Override any GCC internal prototype to avoid an error.
9098    Use char because int might match the return type of a GCC
9099    builtin and then its argument prototype would still apply.  */
9100 #ifdef __cplusplus
9101 extern "C"
9102 #endif
9103 char opendir ();
9104 int
9105 main ()
9106 {
9107 return opendir ();
9108   ;
9109   return 0;
9110 }
9111 _ACEOF
9112 for ac_lib in '' x; do
9113   if test -z "$ac_lib"; then
9114     ac_res="none required"
9115   else
9116     ac_res=-l$ac_lib
9117     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9118   fi
9119   rm -f conftest.$ac_objext conftest$ac_exeext
9120 if { (ac_try="$ac_link"
9121 case "(($ac_try" in
9122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123   *) ac_try_echo=$ac_try;;
9124 esac
9125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126   (eval "$ac_link") 2>conftest.er1
9127   ac_status=$?
9128   grep -v '^ *+' conftest.er1 >conftest.err
9129   rm -f conftest.er1
9130   cat conftest.err >&5
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); } &&
9133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9134   { (case "(($ac_try" in
9135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136   *) ac_try_echo=$ac_try;;
9137 esac
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139   (eval "$ac_try") 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); }; } &&
9143          { ac_try='test -s conftest$ac_exeext'
9144   { (case "(($ac_try" in
9145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146   *) ac_try_echo=$ac_try;;
9147 esac
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149   (eval "$ac_try") 2>&5
9150   ac_status=$?
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); }; }; then
9153   ac_cv_search_opendir=$ac_res
9154 else
9155   echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9157
9158
9159 fi
9160
9161 rm -f core conftest.err conftest.$ac_objext \
9162       conftest$ac_exeext
9163   if test "${ac_cv_search_opendir+set}" = set; then
9164   break
9165 fi
9166 done
9167 if test "${ac_cv_search_opendir+set}" = set; then
9168   :
9169 else
9170   ac_cv_search_opendir=no
9171 fi
9172 rm conftest.$ac_ext
9173 LIBS=$ac_func_search_save_LIBS
9174 fi
9175 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9176 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9177 ac_res=$ac_cv_search_opendir
9178 if test "$ac_res" != no; then
9179   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9180
9181 fi
9182
9183 fi
9184
9185
9186 for ac_header in dlfcn.h
9187 do
9188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9193   echo $ECHO_N "(cached) $ECHO_C" >&6
9194 fi
9195 ac_res=`eval echo '${'$as_ac_Header'}'`
9196                { echo "$as_me:$LINENO: result: $ac_res" >&5
9197 echo "${ECHO_T}$ac_res" >&6; }
9198 else
9199   # Is the header compilable?
9200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208 $ac_includes_default
9209 #include <$ac_header>
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (ac_try="$ac_compile"
9213 case "(($ac_try" in
9214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215   *) ac_try_echo=$ac_try;;
9216 esac
9217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218   (eval "$ac_compile") 2>conftest.er1
9219   ac_status=$?
9220   grep -v '^ *+' conftest.er1 >conftest.err
9221   rm -f conftest.er1
9222   cat conftest.err >&5
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } &&
9225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9226   { (case "(($ac_try" in
9227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228   *) ac_try_echo=$ac_try;;
9229 esac
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231   (eval "$ac_try") 2>&5
9232   ac_status=$?
9233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); }; } &&
9235          { ac_try='test -s conftest.$ac_objext'
9236   { (case "(($ac_try" in
9237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238   *) ac_try_echo=$ac_try;;
9239 esac
9240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241   (eval "$ac_try") 2>&5
9242   ac_status=$?
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); }; }; then
9245   ac_header_compiler=yes
9246 else
9247   echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9249
9250         ac_header_compiler=no
9251 fi
9252
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9255 echo "${ECHO_T}$ac_header_compiler" >&6; }
9256
9257 # Is the header present?
9258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9260 cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h.  */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h.  */
9266 #include <$ac_header>
9267 _ACEOF
9268 if { (ac_try="$ac_cpp conftest.$ac_ext"
9269 case "(($ac_try" in
9270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271   *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9275   ac_status=$?
9276   grep -v '^ *+' conftest.er1 >conftest.err
9277   rm -f conftest.er1
9278   cat conftest.err >&5
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } >/dev/null; then
9281   if test -s conftest.err; then
9282     ac_cpp_err=$ac_c_preproc_warn_flag
9283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9284   else
9285     ac_cpp_err=
9286   fi
9287 else
9288   ac_cpp_err=yes
9289 fi
9290 if test -z "$ac_cpp_err"; then
9291   ac_header_preproc=yes
9292 else
9293   echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296   ac_header_preproc=no
9297 fi
9298
9299 rm -f conftest.err conftest.$ac_ext
9300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9301 echo "${ECHO_T}$ac_header_preproc" >&6; }
9302
9303 # So?  What about this header?
9304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9305   yes:no: )
9306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9310     ac_header_preproc=yes
9311     ;;
9312   no:yes:* )
9313     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9315     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9316 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9317     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9319     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9320 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9323     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9325     ( cat <<\_ASBOX
9326 ## ----------------------------------- ##
9327 ## Report this to llvmbugs@cs.uiuc.edu ##
9328 ## ----------------------------------- ##
9329 _ASBOX
9330      ) | sed "s/^/$as_me: WARNING:     /" >&2
9331     ;;
9332 esac
9333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9336   echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338   eval "$as_ac_Header=\$ac_header_preproc"
9339 fi
9340 ac_res=`eval echo '${'$as_ac_Header'}'`
9341                { echo "$as_me:$LINENO: result: $ac_res" >&5
9342 echo "${ECHO_T}$ac_res" >&6; }
9343
9344 fi
9345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9346   cat >>confdefs.h <<_ACEOF
9347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9348 _ACEOF
9349
9350 fi
9351
9352 done
9353
9354 # Check whether --enable-ltdl-install was given.
9355 if test "${enable_ltdl_install+set}" = set; then
9356   enableval=$enable_ltdl_install;
9357 fi
9358
9359
9360
9361
9362 if test x"${enable_ltdl_install-no}" != xno; then
9363   INSTALL_LTDL_TRUE=
9364   INSTALL_LTDL_FALSE='#'
9365 else
9366   INSTALL_LTDL_TRUE='#'
9367   INSTALL_LTDL_FALSE=
9368 fi
9369
9370
9371
9372 if test x"${enable_ltdl_convenience-no}" != xno; then
9373   CONVENIENCE_LTDL_TRUE=
9374   CONVENIENCE_LTDL_FALSE='#'
9375 else
9376   CONVENIENCE_LTDL_TRUE='#'
9377   CONVENIENCE_LTDL_FALSE=
9378 fi
9379
9380
9381 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9382 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9383 library_names_spec=
9384 libname_spec='lib$name'
9385 soname_spec=
9386 shrext_cmds=".so"
9387 postinstall_cmds=
9388 postuninstall_cmds=
9389 finish_cmds=
9390 finish_eval=
9391 shlibpath_var=
9392 shlibpath_overrides_runpath=unknown
9393 version_type=none
9394 dynamic_linker="$host_os ld.so"
9395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9396 if test "$GCC" = yes; then
9397   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9398   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9399     # if the path contains ";" then we assume it to be the separator
9400     # otherwise default to the standard path separator (i.e. ":") - it is
9401     # assumed that no part of a normal pathname contains ";" but that should
9402     # okay in the real world where ";" in dirpaths is itself problematic.
9403     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9404   else
9405     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9406   fi
9407 else
9408   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9409 fi
9410 need_lib_prefix=unknown
9411 hardcode_into_libs=no
9412
9413 # when you set need_version to no, make sure it does not cause -set_version
9414 # flags to be left without arguments
9415 need_version=unknown
9416
9417 case $host_os in
9418 aix3*)
9419   version_type=linux
9420   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9421   shlibpath_var=LIBPATH
9422
9423   # AIX 3 has no versioning support, so we append a major version to the name.
9424   soname_spec='${libname}${release}${shared_ext}$major'
9425   ;;
9426
9427 aix4* | aix5*)
9428   version_type=linux
9429   need_lib_prefix=no
9430   need_version=no
9431   hardcode_into_libs=yes
9432   if test "$host_cpu" = ia64; then
9433     # AIX 5 supports IA64
9434     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9435     shlibpath_var=LD_LIBRARY_PATH
9436   else
9437     # With GCC up to 2.95.x, collect2 would create an import file
9438     # for dependence libraries.  The import file would start with
9439     # the line `#! .'.  This would cause the generated library to
9440     # depend on `.', always an invalid library.  This was fixed in
9441     # development snapshots of GCC prior to 3.0.
9442     case $host_os in
9443       aix4 | aix4.[01] | aix4.[01].*)
9444       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9445            echo ' yes '
9446            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9447         :
9448       else
9449         can_build_shared=no
9450       fi
9451       ;;
9452     esac
9453     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9454     # soname into executable. Probably we can add versioning support to
9455     # collect2, so additional links can be useful in future.
9456     if test "$aix_use_runtimelinking" = yes; then
9457       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9458       # instead of lib<name>.a to let people know that these are not
9459       # typical AIX shared libraries.
9460       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461     else
9462       # We preserve .a as extension for shared libraries through AIX4.2
9463       # and later when we are not doing run time linking.
9464       library_names_spec='${libname}${release}.a $libname.a'
9465       soname_spec='${libname}${release}${shared_ext}$major'
9466     fi
9467     shlibpath_var=LIBPATH
9468   fi
9469   ;;
9470
9471 amigaos*)
9472   library_names_spec='$libname.ixlibrary $libname.a'
9473   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9474   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'
9475   ;;
9476
9477 beos*)
9478   library_names_spec='${libname}${shared_ext}'
9479   dynamic_linker="$host_os ld.so"
9480   shlibpath_var=LIBRARY_PATH
9481   ;;
9482
9483 bsdi[45]*)
9484   version_type=linux
9485   need_version=no
9486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487   soname_spec='${libname}${release}${shared_ext}$major'
9488   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9489   shlibpath_var=LD_LIBRARY_PATH
9490   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9491   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9492   # the default ld.so.conf also contains /usr/contrib/lib and
9493   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9494   # libtool to hard-code these into programs
9495   ;;
9496
9497 cygwin* | mingw* | pw32*)
9498   version_type=windows
9499   shrext_cmds=".dll"
9500   need_version=no
9501   need_lib_prefix=no
9502
9503   case $GCC,$host_os in
9504   yes,cygwin* | yes,mingw* | yes,pw32*)
9505     library_names_spec='$libname.dll.a'
9506     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9507     postinstall_cmds='base_file=`basename \${file}`~
9508       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9509       dldir=$destdir/`dirname \$dlpath`~
9510       test -d \$dldir || mkdir -p \$dldir~
9511       $install_prog $dir/$dlname \$dldir/$dlname~
9512       chmod a+x \$dldir/$dlname'
9513     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9514       dlpath=$dir/\$dldll~
9515        $rm \$dlpath'
9516     shlibpath_overrides_runpath=yes
9517
9518     case $host_os in
9519     cygwin*)
9520       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9521       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9522       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9523       ;;
9524     mingw*)
9525       # MinGW DLLs use traditional 'lib' prefix
9526       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9527       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9528       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9529         # It is most probably a Windows format PATH printed by
9530         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9531         # path with ; separators, and with drive letters. We can handle the
9532         # drive letters (cygwin fileutils understands them), so leave them,
9533         # especially as we might pass files found there to a mingw objdump,
9534         # which wouldn't understand a cygwinified path. Ahh.
9535         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9536       else
9537         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9538       fi
9539       ;;
9540     pw32*)
9541       # pw32 DLLs use 'pw' prefix rather than 'lib'
9542       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9543       ;;
9544     esac
9545     ;;
9546
9547   *)
9548     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9549     ;;
9550   esac
9551   dynamic_linker='Win32 ld.exe'
9552   # FIXME: first we should search . and the directory the executable is in
9553   shlibpath_var=PATH
9554   ;;
9555
9556 darwin* | rhapsody*)
9557   dynamic_linker="$host_os dyld"
9558   version_type=darwin
9559   need_lib_prefix=no
9560   need_version=no
9561   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9562   soname_spec='${libname}${release}${major}$shared_ext'
9563   shlibpath_overrides_runpath=yes
9564   shlibpath_var=DYLD_LIBRARY_PATH
9565   shrext_cmds='.dylib'
9566   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9567   if test "$GCC" = yes; then
9568     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"`
9569   else
9570     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9571   fi
9572   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9573   ;;
9574
9575 dgux*)
9576   version_type=linux
9577   need_lib_prefix=no
9578   need_version=no
9579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9580   soname_spec='${libname}${release}${shared_ext}$major'
9581   shlibpath_var=LD_LIBRARY_PATH
9582   ;;
9583
9584 freebsd1*)
9585   dynamic_linker=no
9586   ;;
9587
9588 kfreebsd*-gnu)
9589   version_type=linux
9590   need_lib_prefix=no
9591   need_version=no
9592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9593   soname_spec='${libname}${release}${shared_ext}$major'
9594   shlibpath_var=LD_LIBRARY_PATH
9595   shlibpath_overrides_runpath=no
9596   hardcode_into_libs=yes
9597   dynamic_linker='GNU ld.so'
9598   ;;
9599
9600 freebsd* | dragonfly*)
9601   # DragonFly does not have aout.  When/if they implement a new
9602   # versioning mechanism, adjust this.
9603   if test -x /usr/bin/objformat; then
9604     objformat=`/usr/bin/objformat`
9605   else
9606     case $host_os in
9607     freebsd[123]*) objformat=aout ;;
9608     *) objformat=elf ;;
9609     esac
9610   fi
9611   version_type=freebsd-$objformat
9612   case $version_type in
9613     freebsd-elf*)
9614       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9615       need_version=no
9616       need_lib_prefix=no
9617       ;;
9618     freebsd-*)
9619       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9620       need_version=yes
9621       ;;
9622   esac
9623   shlibpath_var=LD_LIBRARY_PATH
9624   case $host_os in
9625   freebsd2*)
9626     shlibpath_overrides_runpath=yes
9627     ;;
9628   freebsd3.[01]* | freebsdelf3.[01]*)
9629     shlibpath_overrides_runpath=yes
9630     hardcode_into_libs=yes
9631     ;;
9632   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9633   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9634     shlibpath_overrides_runpath=no
9635     hardcode_into_libs=yes
9636     ;;
9637   freebsd*) # from 4.6 on
9638     shlibpath_overrides_runpath=yes
9639     hardcode_into_libs=yes
9640     ;;
9641   esac
9642   ;;
9643
9644 gnu*)
9645   version_type=linux
9646   need_lib_prefix=no
9647   need_version=no
9648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9649   soname_spec='${libname}${release}${shared_ext}$major'
9650   shlibpath_var=LD_LIBRARY_PATH
9651   hardcode_into_libs=yes
9652   ;;
9653
9654 hpux9* | hpux10* | hpux11*)
9655   # Give a soname corresponding to the major version so that dld.sl refuses to
9656   # link against other versions.
9657   version_type=sunos
9658   need_lib_prefix=no
9659   need_version=no
9660   case $host_cpu in
9661   ia64*)
9662     shrext_cmds='.so'
9663     hardcode_into_libs=yes
9664     dynamic_linker="$host_os dld.so"
9665     shlibpath_var=LD_LIBRARY_PATH
9666     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668     soname_spec='${libname}${release}${shared_ext}$major'
9669     if test "X$HPUX_IA64_MODE" = X32; then
9670       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9671     else
9672       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9673     fi
9674     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9675     ;;
9676    hppa*64*)
9677      shrext_cmds='.sl'
9678      hardcode_into_libs=yes
9679      dynamic_linker="$host_os dld.sl"
9680      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9681      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9682      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683      soname_spec='${libname}${release}${shared_ext}$major'
9684      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9685      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9686      ;;
9687    *)
9688     shrext_cmds='.sl'
9689     dynamic_linker="$host_os dld.sl"
9690     shlibpath_var=SHLIB_PATH
9691     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693     soname_spec='${libname}${release}${shared_ext}$major'
9694     ;;
9695   esac
9696   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9697   postinstall_cmds='chmod 555 $lib'
9698   ;;
9699
9700 interix3*)
9701   version_type=linux
9702   need_lib_prefix=no
9703   need_version=no
9704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705   soname_spec='${libname}${release}${shared_ext}$major'
9706   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   shlibpath_overrides_runpath=no
9709   hardcode_into_libs=yes
9710   ;;
9711
9712 irix5* | irix6* | nonstopux*)
9713   case $host_os in
9714     nonstopux*) version_type=nonstopux ;;
9715     *)
9716         if test "$lt_cv_prog_gnu_ld" = yes; then
9717                 version_type=linux
9718         else
9719                 version_type=irix
9720         fi ;;
9721   esac
9722   need_lib_prefix=no
9723   need_version=no
9724   soname_spec='${libname}${release}${shared_ext}$major'
9725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9726   case $host_os in
9727   irix5* | nonstopux*)
9728     libsuff= shlibsuff=
9729     ;;
9730   *)
9731     case $LD in # libtool.m4 will add one of these switches to LD
9732     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9733       libsuff= shlibsuff= libmagic=32-bit;;
9734     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9735       libsuff=32 shlibsuff=N32 libmagic=N32;;
9736     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9737       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9738     *) libsuff= shlibsuff= libmagic=never-match;;
9739     esac
9740     ;;
9741   esac
9742   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9743   shlibpath_overrides_runpath=no
9744   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9745   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9746   hardcode_into_libs=yes
9747   ;;
9748
9749 # No shared lib support for Linux oldld, aout, or coff.
9750 linux*oldld* | linux*aout* | linux*coff*)
9751   dynamic_linker=no
9752   ;;
9753
9754 # This must be Linux ELF.
9755 linux*)
9756   version_type=linux
9757   need_lib_prefix=no
9758   need_version=no
9759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760   soname_spec='${libname}${release}${shared_ext}$major'
9761   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9762   shlibpath_var=LD_LIBRARY_PATH
9763   shlibpath_overrides_runpath=no
9764   # This implies no fast_install, which is unacceptable.
9765   # Some rework will be needed to allow for fast_install
9766   # before this can be enabled.
9767   hardcode_into_libs=yes
9768
9769   # Append ld.so.conf contents to the search path
9770   if test -f /etc/ld.so.conf; then
9771     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' ' '`
9772     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9773   fi
9774
9775   # We used to test for /lib/ld.so.1 and disable shared libraries on
9776   # powerpc, because MkLinux only supported shared libraries with the
9777   # GNU dynamic linker.  Since this was broken with cross compilers,
9778   # most powerpc-linux boxes support dynamic linking these days and
9779   # people can always --disable-shared, the test was removed, and we
9780   # assume the GNU/Linux dynamic linker is in use.
9781   dynamic_linker='GNU/Linux ld.so'
9782   ;;
9783
9784 knetbsd*-gnu)
9785   version_type=linux
9786   need_lib_prefix=no
9787   need_version=no
9788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9789   soname_spec='${libname}${release}${shared_ext}$major'
9790   shlibpath_var=LD_LIBRARY_PATH
9791   shlibpath_overrides_runpath=no
9792   hardcode_into_libs=yes
9793   dynamic_linker='GNU ld.so'
9794   ;;
9795
9796 netbsd*)
9797   version_type=sunos
9798   need_lib_prefix=no
9799   need_version=no
9800   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9802     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9803     dynamic_linker='NetBSD (a.out) ld.so'
9804   else
9805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9806     soname_spec='${libname}${release}${shared_ext}$major'
9807     dynamic_linker='NetBSD ld.elf_so'
9808   fi
9809   shlibpath_var=LD_LIBRARY_PATH
9810   shlibpath_overrides_runpath=yes
9811   hardcode_into_libs=yes
9812   ;;
9813
9814 newsos6)
9815   version_type=linux
9816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817   shlibpath_var=LD_LIBRARY_PATH
9818   shlibpath_overrides_runpath=yes
9819   ;;
9820
9821 nto-qnx*)
9822   version_type=linux
9823   need_lib_prefix=no
9824   need_version=no
9825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826   soname_spec='${libname}${release}${shared_ext}$major'
9827   shlibpath_var=LD_LIBRARY_PATH
9828   shlibpath_overrides_runpath=yes
9829   ;;
9830
9831 openbsd*)
9832   version_type=sunos
9833   sys_lib_dlsearch_path_spec="/usr/lib"
9834   need_lib_prefix=no
9835   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9836   case $host_os in
9837     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9838     *)                         need_version=no  ;;
9839   esac
9840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9841   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9842   shlibpath_var=LD_LIBRARY_PATH
9843   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9844     case $host_os in
9845       openbsd2.[89] | openbsd2.[89].*)
9846         shlibpath_overrides_runpath=no
9847         ;;
9848       *)
9849         shlibpath_overrides_runpath=yes
9850         ;;
9851       esac
9852   else
9853     shlibpath_overrides_runpath=yes
9854   fi
9855   ;;
9856
9857 os2*)
9858   libname_spec='$name'
9859   shrext_cmds=".dll"
9860   need_lib_prefix=no
9861   library_names_spec='$libname${shared_ext} $libname.a'
9862   dynamic_linker='OS/2 ld.exe'
9863   shlibpath_var=LIBPATH
9864   ;;
9865
9866 osf3* | osf4* | osf5*)
9867   version_type=osf
9868   need_lib_prefix=no
9869   need_version=no
9870   soname_spec='${libname}${release}${shared_ext}$major'
9871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872   shlibpath_var=LD_LIBRARY_PATH
9873   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9874   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9875   ;;
9876
9877 solaris*)
9878   version_type=linux
9879   need_lib_prefix=no
9880   need_version=no
9881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882   soname_spec='${libname}${release}${shared_ext}$major'
9883   shlibpath_var=LD_LIBRARY_PATH
9884   shlibpath_overrides_runpath=yes
9885   hardcode_into_libs=yes
9886   # ldd complains unless libraries are executable
9887   postinstall_cmds='chmod +x $lib'
9888   ;;
9889
9890 sunos4*)
9891   version_type=sunos
9892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9893   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9894   shlibpath_var=LD_LIBRARY_PATH
9895   shlibpath_overrides_runpath=yes
9896   if test "$with_gnu_ld" = yes; then
9897     need_lib_prefix=no
9898   fi
9899   need_version=yes
9900   ;;
9901
9902 sysv4 | sysv4.3*)
9903   version_type=linux
9904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905   soname_spec='${libname}${release}${shared_ext}$major'
9906   shlibpath_var=LD_LIBRARY_PATH
9907   case $host_vendor in
9908     sni)
9909       shlibpath_overrides_runpath=no
9910       need_lib_prefix=no
9911       export_dynamic_flag_spec='${wl}-Blargedynsym'
9912       runpath_var=LD_RUN_PATH
9913       ;;
9914     siemens)
9915       need_lib_prefix=no
9916       ;;
9917     motorola)
9918       need_lib_prefix=no
9919       need_version=no
9920       shlibpath_overrides_runpath=no
9921       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9922       ;;
9923   esac
9924   ;;
9925
9926 sysv4*MP*)
9927   if test -d /usr/nec ;then
9928     version_type=linux
9929     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9930     soname_spec='$libname${shared_ext}.$major'
9931     shlibpath_var=LD_LIBRARY_PATH
9932   fi
9933   ;;
9934
9935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9936   version_type=freebsd-elf
9937   need_lib_prefix=no
9938   need_version=no
9939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9940   soname_spec='${libname}${release}${shared_ext}$major'
9941   shlibpath_var=LD_LIBRARY_PATH
9942   hardcode_into_libs=yes
9943   if test "$with_gnu_ld" = yes; then
9944     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9945     shlibpath_overrides_runpath=no
9946   else
9947     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9948     shlibpath_overrides_runpath=yes
9949     case $host_os in
9950       sco3.2v5*)
9951         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9952         ;;
9953     esac
9954   fi
9955   sys_lib_dlsearch_path_spec='/usr/lib'
9956   ;;
9957
9958 uts4*)
9959   version_type=linux
9960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961   soname_spec='${libname}${release}${shared_ext}$major'
9962   shlibpath_var=LD_LIBRARY_PATH
9963   ;;
9964
9965 *)
9966   dynamic_linker=no
9967   ;;
9968 esac
9969 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9970 echo "${ECHO_T}$dynamic_linker" >&6; }
9971 test "$dynamic_linker" = no && can_build_shared=no
9972
9973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9974 if test "$GCC" = yes; then
9975   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9976 fi
9977
9978
9979 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9980 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9981 if test "${libltdl_cv_shlibext+set}" = set; then
9982   echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984
9985 module=yes
9986 eval libltdl_cv_shlibext=$shrext_cmds
9987
9988 fi
9989 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9990 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9991 if test -n "$libltdl_cv_shlibext"; then
9992
9993 cat >>confdefs.h <<_ACEOF
9994 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9995 _ACEOF
9996
9997 fi
9998
9999
10000 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10001 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10002 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10003   echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005   libltdl_cv_shlibpath_var="$shlibpath_var"
10006 fi
10007 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10008 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10009 if test -n "$libltdl_cv_shlibpath_var"; then
10010
10011 cat >>confdefs.h <<_ACEOF
10012 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10013 _ACEOF
10014
10015 fi
10016
10017
10018 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10019 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10020 if test "${libltdl_cv_sys_search_path+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10024 fi
10025 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10026 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10027 if test -n "$libltdl_cv_sys_search_path"; then
10028   sys_search_path=
10029   for dir in $libltdl_cv_sys_search_path; do
10030     if test -z "$sys_search_path"; then
10031       sys_search_path="$dir"
10032     else
10033       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10034     fi
10035   done
10036
10037 cat >>confdefs.h <<_ACEOF
10038 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10039 _ACEOF
10040
10041 fi
10042
10043 { echo "$as_me:$LINENO: checking for objdir" >&5
10044 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10045 if test "${libltdl_cv_objdir+set}" = set; then
10046   echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048   libltdl_cv_objdir="$objdir"
10049   if test -n "$objdir"; then
10050     :
10051   else
10052     rm -f .libs 2>/dev/null
10053     mkdir .libs 2>/dev/null
10054     if test -d .libs; then
10055       libltdl_cv_objdir=.libs
10056     else
10057       # MS-DOS does not allow filenames that begin with a dot.
10058       libltdl_cv_objdir=_libs
10059     fi
10060   rmdir .libs 2>/dev/null
10061   fi
10062
10063 fi
10064 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10065 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10066
10067 cat >>confdefs.h <<_ACEOF
10068 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10069 _ACEOF
10070
10071
10072
10073
10074
10075
10076 # Check for command to grab the raw symbol name followed by C symbol from nm.
10077 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10078 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10079 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082
10083 # These are sane defaults that work on at least a few old systems.
10084 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10085
10086 # Character class describing NM global symbol codes.
10087 symcode='[BCDEGRST]'
10088
10089 # Regexp to match symbols that can be accessed directly from C.
10090 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10091
10092 # Transform an extracted symbol line into a proper C declaration
10093 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10094
10095 # Transform an extracted symbol line into symbol name and symbol address
10096 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'"
10097
10098 # Define system-specific variables.
10099 case $host_os in
10100 aix*)
10101   symcode='[BCDT]'
10102   ;;
10103 cygwin* | mingw* | pw32*)
10104   symcode='[ABCDGISTW]'
10105   ;;
10106 hpux*) # Its linker distinguishes data from code symbols
10107   if test "$host_cpu" = ia64; then
10108     symcode='[ABCDEGRST]'
10109   fi
10110   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10111   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'"
10112   ;;
10113 linux*)
10114   if test "$host_cpu" = ia64; then
10115     symcode='[ABCDGIRSTW]'
10116     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10117     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'"
10118   fi
10119   ;;
10120 irix* | nonstopux*)
10121   symcode='[BCDEGRST]'
10122   ;;
10123 osf*)
10124   symcode='[BCDEGQRST]'
10125   ;;
10126 solaris*)
10127   symcode='[BDRT]'
10128   ;;
10129 sco3.2v5*)
10130   symcode='[DT]'
10131   ;;
10132 sysv4.2uw2*)
10133   symcode='[DT]'
10134   ;;
10135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10136   symcode='[ABDT]'
10137   ;;
10138 sysv4)
10139   symcode='[DFNSTU]'
10140   ;;
10141 esac
10142
10143 # Handle CRLF in mingw tool chain
10144 opt_cr=
10145 case $build_os in
10146 mingw*)
10147   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10148   ;;
10149 esac
10150
10151 # If we're using GNU nm, then use its standard symbol codes.
10152 case `$NM -V 2>&1` in
10153 *GNU* | *'with BFD'*)
10154   symcode='[ABCDGIRSTW]' ;;
10155 esac
10156
10157 # Try without a prefix undercore, then with it.
10158 for ac_symprfx in "" "_"; do
10159
10160   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10161   symxfrm="\\1 $ac_symprfx\\2 \\2"
10162
10163   # Write the raw and C identifiers.
10164   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10165
10166   # Check to see that the pipe works correctly.
10167   pipe_works=no
10168
10169   rm -f conftest*
10170   cat > conftest.$ac_ext <<EOF
10171 #ifdef __cplusplus
10172 extern "C" {
10173 #endif
10174 char nm_test_var;
10175 void nm_test_func(){}
10176 #ifdef __cplusplus
10177 }
10178 #endif
10179 int main(){nm_test_var='a';nm_test_func();return(0);}
10180 EOF
10181
10182   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183   (eval $ac_compile) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }; then
10187     # Now try to grab the symbols.
10188     nlist=conftest.nm
10189     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10190   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } && test -s "$nlist"; then
10194       # Try sorting and uniquifying the output.
10195       if sort "$nlist" | uniq > "$nlist"T; then
10196         mv -f "$nlist"T "$nlist"
10197       else
10198         rm -f "$nlist"T
10199       fi
10200
10201       # Make sure that we snagged all the symbols we need.
10202       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10203         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10204           cat <<EOF > conftest.$ac_ext
10205 #ifdef __cplusplus
10206 extern "C" {
10207 #endif
10208
10209 EOF
10210           # Now generate the symbol file.
10211           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10212
10213           cat <<EOF >> conftest.$ac_ext
10214 #if defined (__STDC__) && __STDC__
10215 # define lt_ptr_t void *
10216 #else
10217 # define lt_ptr_t char *
10218 # define const
10219 #endif
10220
10221 /* The mapping between symbol names and symbols. */
10222 const struct {
10223   const char *name;
10224   lt_ptr_t address;
10225 }
10226 lt_preloaded_symbols[] =
10227 {
10228 EOF
10229           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10230           cat <<\EOF >> conftest.$ac_ext
10231   {0, (lt_ptr_t) 0}
10232 };
10233
10234 #ifdef __cplusplus
10235 }
10236 #endif
10237 EOF
10238           # Now try linking the two files.
10239           mv conftest.$ac_objext conftstm.$ac_objext
10240           lt_save_LIBS="$LIBS"
10241           lt_save_CFLAGS="$CFLAGS"
10242           LIBS="conftstm.$ac_objext"
10243           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10244           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245   (eval $ac_link) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10249             pipe_works=yes
10250           fi
10251           LIBS="$lt_save_LIBS"
10252           CFLAGS="$lt_save_CFLAGS"
10253         else
10254           echo "cannot find nm_test_func in $nlist" >&5
10255         fi
10256       else
10257         echo "cannot find nm_test_var in $nlist" >&5
10258       fi
10259     else
10260       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10261     fi
10262   else
10263     echo "$progname: failed program was:" >&5
10264     cat conftest.$ac_ext >&5
10265   fi
10266   rm -f conftest* conftst*
10267
10268   # Do not use the global_symbol_pipe unless it works.
10269   if test "$pipe_works" = yes; then
10270     break
10271   else
10272     lt_cv_sys_global_symbol_pipe=
10273   fi
10274 done
10275
10276 fi
10277
10278 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10279   lt_cv_sys_global_symbol_to_cdecl=
10280 fi
10281 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10282   { echo "$as_me:$LINENO: result: failed" >&5
10283 echo "${ECHO_T}failed" >&6; }
10284 else
10285   { echo "$as_me:$LINENO: result: ok" >&5
10286 echo "${ECHO_T}ok" >&6; }
10287 fi
10288
10289
10290 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10291 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10292 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10293   echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10296     libltdl_cv_preloaded_symbols=yes
10297   else
10298     libltdl_cv_preloaded_symbols=no
10299   fi
10300
10301 fi
10302 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10303 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10304 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10305
10306 cat >>confdefs.h <<\_ACEOF
10307 #define HAVE_PRELOADED_SYMBOLS 1
10308 _ACEOF
10309
10310 fi
10311
10312 LIBADD_DL=
10313
10314 ac_ext=c
10315 ac_cpp='$CPP $CPPFLAGS'
10316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10319
10320
10321 { echo "$as_me:$LINENO: checking for shl_load" >&5
10322 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10323 if test "${ac_cv_func_shl_load+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h.  */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h.  */
10332 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10334 #define shl_load innocuous_shl_load
10335
10336 /* System header to define __stub macros and hopefully few prototypes,
10337     which can conflict with char shl_load (); below.
10338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339     <limits.h> exists even on freestanding compilers.  */
10340
10341 #ifdef __STDC__
10342 # include <limits.h>
10343 #else
10344 # include <assert.h>
10345 #endif
10346
10347 #undef shl_load
10348
10349 /* Override any GCC internal prototype to avoid an error.
10350    Use char because int might match the return type of a GCC
10351    builtin and then its argument prototype would still apply.  */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char shl_load ();
10356 /* The GNU C library defines this for functions which it implements
10357     to always fail with ENOSYS.  Some functions are actually named
10358     something starting with __ and the normal name is an alias.  */
10359 #if defined __stub_shl_load || defined __stub___shl_load
10360 choke me
10361 #endif
10362
10363 int
10364 main ()
10365 {
10366 return shl_load ();
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375   *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378   (eval "$ac_link") 2>conftest.er1
10379   ac_status=$?
10380   grep -v '^ *+' conftest.er1 >conftest.err
10381   rm -f conftest.er1
10382   cat conftest.err >&5
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } &&
10385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386   { (case "(($ac_try" in
10387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388   *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391   (eval "$ac_try") 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; } &&
10395          { ac_try='test -s conftest$ac_exeext'
10396   { (case "(($ac_try" in
10397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398   *) ac_try_echo=$ac_try;;
10399 esac
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401   (eval "$ac_try") 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); }; }; then
10405   ac_cv_func_shl_load=yes
10406 else
10407   echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410         ac_cv_func_shl_load=no
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext \
10414       conftest$ac_exeext conftest.$ac_ext
10415 fi
10416 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10417 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10418 if test $ac_cv_func_shl_load = yes; then
10419
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_SHL_LOAD 1
10422 _ACEOF
10423
10424 else
10425   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10426 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10427 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10428   echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430   ac_check_lib_save_LIBS=$LIBS
10431 LIBS="-ldld  $LIBS"
10432 cat >conftest.$ac_ext <<_ACEOF
10433 /* confdefs.h.  */
10434 _ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h.  */
10438
10439 /* Override any GCC internal prototype to avoid an error.
10440    Use char because int might match the return type of a GCC
10441    builtin and then its argument prototype would still apply.  */
10442 #ifdef __cplusplus
10443 extern "C"
10444 #endif
10445 char shl_load ();
10446 int
10447 main ()
10448 {
10449 return shl_load ();
10450   ;
10451   return 0;
10452 }
10453 _ACEOF
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458   *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461   (eval "$ac_link") 2>conftest.er1
10462   ac_status=$?
10463   grep -v '^ *+' conftest.er1 >conftest.err
10464   rm -f conftest.er1
10465   cat conftest.err >&5
10466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467   (exit $ac_status); } &&
10468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10469   { (case "(($ac_try" in
10470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471   *) ac_try_echo=$ac_try;;
10472 esac
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474   (eval "$ac_try") 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; } &&
10478          { ac_try='test -s conftest$ac_exeext'
10479   { (case "(($ac_try" in
10480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481   *) ac_try_echo=$ac_try;;
10482 esac
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484   (eval "$ac_try") 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); }; }; then
10488   ac_cv_lib_dld_shl_load=yes
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493         ac_cv_lib_dld_shl_load=no
10494 fi
10495
10496 rm -f core conftest.err conftest.$ac_objext \
10497       conftest$ac_exeext conftest.$ac_ext
10498 LIBS=$ac_check_lib_save_LIBS
10499 fi
10500 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10501 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10502 if test $ac_cv_lib_dld_shl_load = yes; then
10503
10504 cat >>confdefs.h <<\_ACEOF
10505 #define HAVE_SHL_LOAD 1
10506 _ACEOF
10507
10508         LIBADD_DL="$LIBADD_DL -ldld"
10509 else
10510   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10511 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10512 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10513   echo $ECHO_N "(cached) $ECHO_C" >&6
10514 else
10515   ac_check_lib_save_LIBS=$LIBS
10516 LIBS="-ldl  $LIBS"
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h.  */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h.  */
10523
10524 /* Override any GCC internal prototype to avoid an error.
10525    Use char because int might match the return type of a GCC
10526    builtin and then its argument prototype would still apply.  */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 char dlopen ();
10531 int
10532 main ()
10533 {
10534 return dlopen ();
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (ac_try="$ac_link"
10541 case "(($ac_try" in
10542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543   *) ac_try_echo=$ac_try;;
10544 esac
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546   (eval "$ac_link") 2>conftest.er1
10547   ac_status=$?
10548   grep -v '^ *+' conftest.er1 >conftest.err
10549   rm -f conftest.er1
10550   cat conftest.err >&5
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); } &&
10553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10554   { (case "(($ac_try" in
10555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556   *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559   (eval "$ac_try") 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; } &&
10563          { ac_try='test -s conftest$ac_exeext'
10564   { (case "(($ac_try" in
10565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566   *) ac_try_echo=$ac_try;;
10567 esac
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569   (eval "$ac_try") 2>&5
10570   ac_status=$?
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); }; }; then
10573   ac_cv_lib_dl_dlopen=yes
10574 else
10575   echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578         ac_cv_lib_dl_dlopen=no
10579 fi
10580
10581 rm -f core conftest.err conftest.$ac_objext \
10582       conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10584 fi
10585 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10586 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10587 if test $ac_cv_lib_dl_dlopen = yes; then
10588
10589 cat >>confdefs.h <<\_ACEOF
10590 #define HAVE_LIBDL 1
10591 _ACEOF
10592
10593                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10594 else
10595   cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h.  */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h.  */
10601 #if HAVE_DLFCN_H
10602 #  include <dlfcn.h>
10603 #endif
10604
10605 int
10606 main ()
10607 {
10608 dlopen(0, 0);
10609   ;
10610   return 0;
10611 }
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617   *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620   (eval "$ac_link") 2>conftest.er1
10621   ac_status=$?
10622   grep -v '^ *+' conftest.er1 >conftest.err
10623   rm -f conftest.er1
10624   cat conftest.err >&5
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); } &&
10627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628   { (case "(($ac_try" in
10629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630   *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633   (eval "$ac_try") 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; } &&
10637          { ac_try='test -s conftest$ac_exeext'
10638   { (case "(($ac_try" in
10639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640   *) ac_try_echo=$ac_try;;
10641 esac
10642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643   (eval "$ac_try") 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; }; then
10647
10648 cat >>confdefs.h <<\_ACEOF
10649 #define HAVE_LIBDL 1
10650 _ACEOF
10651  libltdl_cv_func_dlopen="yes"
10652 else
10653   echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10655
10656         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10657 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10658 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661   ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-lsvld  $LIBS"
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h.  */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h.  */
10669
10670 /* Override any GCC internal prototype to avoid an error.
10671    Use char because int might match the return type of a GCC
10672    builtin and then its argument prototype would still apply.  */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char dlopen ();
10677 int
10678 main ()
10679 {
10680 return dlopen ();
10681   ;
10682   return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689   *) ac_try_echo=$ac_try;;
10690 esac
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692   (eval "$ac_link") 2>conftest.er1
10693   ac_status=$?
10694   grep -v '^ *+' conftest.er1 >conftest.err
10695   rm -f conftest.er1
10696   cat conftest.err >&5
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } &&
10699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10700   { (case "(($ac_try" in
10701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702   *) ac_try_echo=$ac_try;;
10703 esac
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705   (eval "$ac_try") 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; } &&
10709          { ac_try='test -s conftest$ac_exeext'
10710   { (case "(($ac_try" in
10711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712   *) ac_try_echo=$ac_try;;
10713 esac
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715   (eval "$ac_try") 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; }; then
10719   ac_cv_lib_svld_dlopen=yes
10720 else
10721   echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724         ac_cv_lib_svld_dlopen=no
10725 fi
10726
10727 rm -f core conftest.err conftest.$ac_objext \
10728       conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10730 fi
10731 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10732 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10733 if test $ac_cv_lib_svld_dlopen = yes; then
10734
10735 cat >>confdefs.h <<\_ACEOF
10736 #define HAVE_LIBDL 1
10737 _ACEOF
10738
10739                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10740 else
10741   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10742 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10743 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   ac_check_lib_save_LIBS=$LIBS
10747 LIBS="-ldld  $LIBS"
10748 cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h.  */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h.  */
10754
10755 /* Override any GCC internal prototype to avoid an error.
10756    Use char because int might match the return type of a GCC
10757    builtin and then its argument prototype would still apply.  */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 char dld_link ();
10762 int
10763 main ()
10764 {
10765 return dld_link ();
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774   *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777   (eval "$ac_link") 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } &&
10784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10785   { (case "(($ac_try" in
10786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787   *) ac_try_echo=$ac_try;;
10788 esac
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790   (eval "$ac_try") 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }; } &&
10794          { ac_try='test -s conftest$ac_exeext'
10795   { (case "(($ac_try" in
10796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797   *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800   (eval "$ac_try") 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; }; then
10804   ac_cv_lib_dld_dld_link=yes
10805 else
10806   echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809         ac_cv_lib_dld_dld_link=no
10810 fi
10811
10812 rm -f core conftest.err conftest.$ac_objext \
10813       conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10815 fi
10816 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10817 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10818 if test $ac_cv_lib_dld_dld_link = yes; then
10819
10820 cat >>confdefs.h <<\_ACEOF
10821 #define HAVE_DLD 1
10822 _ACEOF
10823
10824                 LIBADD_DL="$LIBADD_DL -ldld"
10825 else
10826   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10827 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10828 if test "${ac_cv_func__dyld_func_lookup+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 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10839 #define _dyld_func_lookup innocuous__dyld_func_lookup
10840
10841 /* System header to define __stub macros and hopefully few prototypes,
10842     which can conflict with char _dyld_func_lookup (); below.
10843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844     <limits.h> exists even on freestanding compilers.  */
10845
10846 #ifdef __STDC__
10847 # include <limits.h>
10848 #else
10849 # include <assert.h>
10850 #endif
10851
10852 #undef _dyld_func_lookup
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855    Use char because int might match the return type of a GCC
10856    builtin and then its argument prototype would still apply.  */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char _dyld_func_lookup ();
10861 /* The GNU C library defines this for functions which it implements
10862     to always fail with ENOSYS.  Some functions are actually named
10863     something starting with __ and the normal name is an alias.  */
10864 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10865 choke me
10866 #endif
10867
10868 int
10869 main ()
10870 {
10871 return _dyld_func_lookup ();
10872   ;
10873   return 0;
10874 }
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10884   ac_status=$?
10885   grep -v '^ *+' conftest.er1 >conftest.err
10886   rm -f conftest.er1
10887   cat conftest.err >&5
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); } &&
10890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891   { (case "(($ac_try" in
10892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893   *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896   (eval "$ac_try") 2>&5
10897   ac_status=$?
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); }; } &&
10900          { ac_try='test -s conftest$ac_exeext'
10901   { (case "(($ac_try" in
10902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903   *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906   (eval "$ac_try") 2>&5
10907   ac_status=$?
10908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909   (exit $ac_status); }; }; then
10910   ac_cv_func__dyld_func_lookup=yes
10911 else
10912   echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915         ac_cv_func__dyld_func_lookup=no
10916 fi
10917
10918 rm -f core conftest.err conftest.$ac_objext \
10919       conftest$ac_exeext conftest.$ac_ext
10920 fi
10921 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10922 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10923 if test $ac_cv_func__dyld_func_lookup = yes; then
10924
10925 cat >>confdefs.h <<\_ACEOF
10926 #define HAVE_DYLD 1
10927 _ACEOF
10928
10929 fi
10930
10931
10932 fi
10933
10934
10935 fi
10936
10937
10938 fi
10939
10940 rm -f core conftest.err conftest.$ac_objext \
10941       conftest$ac_exeext conftest.$ac_ext
10942
10943 fi
10944
10945
10946 fi
10947
10948
10949 fi
10950
10951
10952 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10953 then
10954   lt_save_LIBS="$LIBS"
10955   LIBS="$LIBS $LIBADD_DL"
10956
10957 for ac_func in dlerror
10958 do
10959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10973 #define $ac_func innocuous_$ac_func
10974
10975 /* System header to define __stub macros and hopefully few prototypes,
10976     which can conflict with char $ac_func (); below.
10977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978     <limits.h> exists even on freestanding compilers.  */
10979
10980 #ifdef __STDC__
10981 # include <limits.h>
10982 #else
10983 # include <assert.h>
10984 #endif
10985
10986 #undef $ac_func
10987
10988 /* Override any GCC internal prototype to avoid an error.
10989    Use char because int might match the return type of a GCC
10990    builtin and then its argument prototype would still apply.  */
10991 #ifdef __cplusplus
10992 extern "C"
10993 #endif
10994 char $ac_func ();
10995 /* The GNU C library defines this for functions which it implements
10996     to always fail with ENOSYS.  Some functions are actually named
10997     something starting with __ and the normal name is an alias.  */
10998 #if defined __stub_$ac_func || defined __stub___$ac_func
10999 choke me
11000 #endif
11001
11002 int
11003 main ()
11004 {
11005 return $ac_func ();
11006   ;
11007   return 0;
11008 }
11009 _ACEOF
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (ac_try="$ac_link"
11012 case "(($ac_try" in
11013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014   *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017   (eval "$ac_link") 2>conftest.er1
11018   ac_status=$?
11019   grep -v '^ *+' conftest.er1 >conftest.err
11020   rm -f conftest.er1
11021   cat conftest.err >&5
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); } &&
11024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025   { (case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_try") 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; } &&
11034          { ac_try='test -s conftest$ac_exeext'
11035   { (case "(($ac_try" in
11036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037   *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040   (eval "$ac_try") 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; }; then
11044   eval "$as_ac_var=yes"
11045 else
11046   echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049         eval "$as_ac_var=no"
11050 fi
11051
11052 rm -f core conftest.err conftest.$ac_objext \
11053       conftest$ac_exeext conftest.$ac_ext
11054 fi
11055 ac_res=`eval echo '${'$as_ac_var'}'`
11056                { echo "$as_me:$LINENO: result: $ac_res" >&5
11057 echo "${ECHO_T}$ac_res" >&6; }
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059   cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 _ACEOF
11062
11063 fi
11064 done
11065
11066   LIBS="$lt_save_LIBS"
11067 fi
11068 ac_ext=c
11069 ac_cpp='$CPP $CPPFLAGS'
11070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11073
11074
11075
11076 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11077 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11078 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11079   echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081   ac_cv_sys_symbol_underscore=no
11082   cat > conftest.$ac_ext <<EOF
11083 void nm_test_func(){}
11084 int main(){nm_test_func;return 0;}
11085 EOF
11086   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11087   (eval $ac_compile) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; then
11091     # Now try to grab the symbols.
11092     ac_nlist=conftest.nm
11093     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11094   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11095   ac_status=$?
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); } && test -s "$ac_nlist"; then
11098       # See whether the symbols have a leading underscore.
11099       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11100         ac_cv_sys_symbol_underscore=yes
11101       else
11102         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11103           :
11104         else
11105           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11106         fi
11107       fi
11108     else
11109       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11110     fi
11111   else
11112     echo "configure: failed program was:" >&5
11113     cat conftest.c >&5
11114   fi
11115   rm -rf conftest*
11116
11117 fi
11118 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11119 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11120
11121
11122 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11123   if test x"$libltdl_cv_func_dlopen" = xyes ||
11124      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11125         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11126 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11127 if test "${libltdl_cv_need_uscore+set}" = set; then
11128   echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130   libltdl_cv_need_uscore=unknown
11131           save_LIBS="$LIBS"
11132           LIBS="$LIBS $LIBADD_DL"
11133           if test "$cross_compiling" = yes; then :
11134   libltdl_cv_need_uscore=cross
11135 else
11136   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11137   lt_status=$lt_dlunknown
11138   cat > conftest.$ac_ext <<EOF
11139 #line 11139 "configure"
11140 #include "confdefs.h"
11141
11142 #if HAVE_DLFCN_H
11143 #include <dlfcn.h>
11144 #endif
11145
11146 #include <stdio.h>
11147
11148 #ifdef RTLD_GLOBAL
11149 #  define LT_DLGLOBAL           RTLD_GLOBAL
11150 #else
11151 #  ifdef DL_GLOBAL
11152 #    define LT_DLGLOBAL         DL_GLOBAL
11153 #  else
11154 #    define LT_DLGLOBAL         0
11155 #  endif
11156 #endif
11157
11158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11159    find out it does not work in some platform. */
11160 #ifndef LT_DLLAZY_OR_NOW
11161 #  ifdef RTLD_LAZY
11162 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11163 #  else
11164 #    ifdef DL_LAZY
11165 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11166 #    else
11167 #      ifdef RTLD_NOW
11168 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11169 #      else
11170 #        ifdef DL_NOW
11171 #          define LT_DLLAZY_OR_NOW      DL_NOW
11172 #        else
11173 #          define LT_DLLAZY_OR_NOW      0
11174 #        endif
11175 #      endif
11176 #    endif
11177 #  endif
11178 #endif
11179
11180 #ifdef __cplusplus
11181 extern "C" void exit (int);
11182 #endif
11183
11184 void fnord() { int i=42;}
11185 int main ()
11186 {
11187   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11188   int status = $lt_dlunknown;
11189
11190   if (self)
11191     {
11192       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11193       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11194       /* dlclose (self); */
11195     }
11196   else
11197     puts (dlerror ());
11198
11199     exit (status);
11200 }
11201 EOF
11202   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203   (eval $ac_link) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11207     (./conftest; exit; ) >&5 2>/dev/null
11208     lt_status=$?
11209     case x$lt_status in
11210       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11211       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11212       x$lt_dlunknown|x*)  ;;
11213     esac
11214   else :
11215     # compilation failed
11216
11217   fi
11218 fi
11219 rm -fr conftest*
11220
11221           LIBS="$save_LIBS"
11222
11223 fi
11224 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11225 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11226   fi
11227 fi
11228
11229 if test x"$libltdl_cv_need_uscore" = xyes; then
11230
11231 cat >>confdefs.h <<\_ACEOF
11232 #define NEED_USCORE 1
11233 _ACEOF
11234
11235 fi
11236
11237
11238 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11239 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11240 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   # PORTME does your system automatically load deplibs for dlopen?
11244   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11245   # For now, we just catch OSes we know something about -- in the
11246   # future, we'll try test this programmatically.
11247   libltdl_cv_sys_dlopen_deplibs=unknown
11248   case "$host_os" in
11249   aix3*|aix4.1.*|aix4.2.*)
11250     # Unknown whether this is true for these versions of AIX, but
11251     # we want this `case' here to explicitly catch those versions.
11252     libltdl_cv_sys_dlopen_deplibs=unknown
11253     ;;
11254   aix[45]*)
11255     libltdl_cv_sys_dlopen_deplibs=yes
11256     ;;
11257   darwin*)
11258     # Assuming the user has installed a libdl from somewhere, this is true
11259     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11260     libltdl_cv_sys_dlopen_deplibs=yes
11261     ;;
11262   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11263     # GNU and its variants, using gnu ld.so (Glibc)
11264     libltdl_cv_sys_dlopen_deplibs=yes
11265     ;;
11266   hpux10*|hpux11*)
11267     libltdl_cv_sys_dlopen_deplibs=yes
11268     ;;
11269   interix*)
11270     libltdl_cv_sys_dlopen_deplibs=yes
11271     ;;
11272   irix[12345]*|irix6.[01]*)
11273     # Catch all versions of IRIX before 6.2, and indicate that we don't
11274     # know how it worked for any of those versions.
11275     libltdl_cv_sys_dlopen_deplibs=unknown
11276     ;;
11277   irix*)
11278     # The case above catches anything before 6.2, and it's known that
11279     # at 6.2 and later dlopen does load deplibs.
11280     libltdl_cv_sys_dlopen_deplibs=yes
11281     ;;
11282   netbsd*)
11283     libltdl_cv_sys_dlopen_deplibs=yes
11284     ;;
11285   openbsd*)
11286     libltdl_cv_sys_dlopen_deplibs=yes
11287     ;;
11288   osf[1234]*)
11289     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11290     # it did *not* use an RPATH in a shared library to find objects the
11291     # library depends on, so we explictly say `no'.
11292     libltdl_cv_sys_dlopen_deplibs=no
11293     ;;
11294   osf5.0|osf5.0a|osf5.1)
11295     # dlopen *does* load deplibs and with the right loader patch applied
11296     # it even uses RPATH in a shared library to search for shared objects
11297     # that the library depends on, but there's no easy way to know if that
11298     # patch is installed.  Since this is the case, all we can really
11299     # say is unknown -- it depends on the patch being installed.  If
11300     # it is, this changes to `yes'.  Without it, it would be `no'.
11301     libltdl_cv_sys_dlopen_deplibs=unknown
11302     ;;
11303   osf*)
11304     # the two cases above should catch all versions of osf <= 5.1.  Read
11305     # the comments above for what we know about them.
11306     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11307     # is used to find them so we can finally say `yes'.
11308     libltdl_cv_sys_dlopen_deplibs=yes
11309     ;;
11310   solaris*)
11311     libltdl_cv_sys_dlopen_deplibs=yes
11312     ;;
11313   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11314     libltdl_cv_sys_dlopen_deplibs=yes
11315     ;;
11316   esac
11317
11318 fi
11319 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11320 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11321 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11322
11323 cat >>confdefs.h <<\_ACEOF
11324 #define LTDL_DLOPEN_DEPLIBS 1
11325 _ACEOF
11326
11327 fi
11328
11329
11330 for ac_header in argz.h
11331 do
11332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337   echo $ECHO_N "(cached) $ECHO_C" >&6
11338 fi
11339 ac_res=`eval echo '${'$as_ac_Header'}'`
11340                { echo "$as_me:$LINENO: result: $ac_res" >&5
11341 echo "${ECHO_T}$ac_res" >&6; }
11342 else
11343   # Is the header compilable?
11344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h.  */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h.  */
11352 $ac_includes_default
11353 #include <$ac_header>
11354 _ACEOF
11355 rm -f conftest.$ac_objext
11356 if { (ac_try="$ac_compile"
11357 case "(($ac_try" in
11358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359   *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362   (eval "$ac_compile") 2>conftest.er1
11363   ac_status=$?
11364   grep -v '^ *+' conftest.er1 >conftest.err
11365   rm -f conftest.er1
11366   cat conftest.err >&5
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); } &&
11369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370   { (case "(($ac_try" in
11371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372   *) ac_try_echo=$ac_try;;
11373 esac
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375   (eval "$ac_try") 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; } &&
11379          { ac_try='test -s conftest.$ac_objext'
11380   { (case "(($ac_try" in
11381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382   *) ac_try_echo=$ac_try;;
11383 esac
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385   (eval "$ac_try") 2>&5
11386   ac_status=$?
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); }; }; then
11389   ac_header_compiler=yes
11390 else
11391   echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394         ac_header_compiler=no
11395 fi
11396
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11399 echo "${ECHO_T}$ac_header_compiler" >&6; }
11400
11401 # Is the header present?
11402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11404 cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h.  */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h.  */
11410 #include <$ac_header>
11411 _ACEOF
11412 if { (ac_try="$ac_cpp conftest.$ac_ext"
11413 case "(($ac_try" in
11414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415   *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } >/dev/null; then
11425   if test -s conftest.err; then
11426     ac_cpp_err=$ac_c_preproc_warn_flag
11427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11428   else
11429     ac_cpp_err=
11430   fi
11431 else
11432   ac_cpp_err=yes
11433 fi
11434 if test -z "$ac_cpp_err"; then
11435   ac_header_preproc=yes
11436 else
11437   echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440   ac_header_preproc=no
11441 fi
11442
11443 rm -f conftest.err conftest.$ac_ext
11444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445 echo "${ECHO_T}$ac_header_preproc" >&6; }
11446
11447 # So?  What about this header?
11448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449   yes:no: )
11450     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11454     ac_header_preproc=yes
11455     ;;
11456   no:yes:* )
11457     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11460 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11461     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11463     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11464 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11467     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11469     ( cat <<\_ASBOX
11470 ## ----------------------------------- ##
11471 ## Report this to llvmbugs@cs.uiuc.edu ##
11472 ## ----------------------------------- ##
11473 _ASBOX
11474      ) | sed "s/^/$as_me: WARNING:     /" >&2
11475     ;;
11476 esac
11477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   eval "$as_ac_Header=\$ac_header_preproc"
11483 fi
11484 ac_res=`eval echo '${'$as_ac_Header'}'`
11485                { echo "$as_me:$LINENO: result: $ac_res" >&5
11486 echo "${ECHO_T}$ac_res" >&6; }
11487
11488 fi
11489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11490   cat >>confdefs.h <<_ACEOF
11491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11492 _ACEOF
11493
11494 fi
11495
11496 done
11497
11498
11499 { echo "$as_me:$LINENO: checking for error_t" >&5
11500 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11501 if test "${ac_cv_type_error_t+set}" = set; then
11502   echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504   cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h.  */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h.  */
11510 #if HAVE_ARGZ_H
11511 #  include <argz.h>
11512 #endif
11513
11514 typedef error_t ac__type_new_;
11515 int
11516 main ()
11517 {
11518 if ((ac__type_new_ *) 0)
11519   return 0;
11520 if (sizeof (ac__type_new_))
11521   return 0;
11522   ;
11523   return 0;
11524 }
11525 _ACEOF
11526 rm -f conftest.$ac_objext
11527 if { (ac_try="$ac_compile"
11528 case "(($ac_try" in
11529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530   *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533   (eval "$ac_compile") 2>conftest.er1
11534   ac_status=$?
11535   grep -v '^ *+' conftest.er1 >conftest.err
11536   rm -f conftest.er1
11537   cat conftest.err >&5
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); } &&
11540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541   { (case "(($ac_try" in
11542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543   *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546   (eval "$ac_try") 2>&5
11547   ac_status=$?
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); }; } &&
11550          { ac_try='test -s conftest.$ac_objext'
11551   { (case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_try") 2>&5
11557   ac_status=$?
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); }; }; then
11560   ac_cv_type_error_t=yes
11561 else
11562   echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565         ac_cv_type_error_t=no
11566 fi
11567
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 fi
11570 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11571 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11572 if test $ac_cv_type_error_t = yes; then
11573
11574 cat >>confdefs.h <<_ACEOF
11575 #define HAVE_ERROR_T 1
11576 _ACEOF
11577
11578
11579 else
11580
11581 cat >>confdefs.h <<\_ACEOF
11582 #define error_t int
11583 _ACEOF
11584
11585 fi
11586
11587
11588
11589
11590
11591
11592
11593 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11594 do
11595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11599   echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601   cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h.  */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h.  */
11607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11609 #define $ac_func innocuous_$ac_func
11610
11611 /* System header to define __stub macros and hopefully few prototypes,
11612     which can conflict with char $ac_func (); below.
11613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11614     <limits.h> exists even on freestanding compilers.  */
11615
11616 #ifdef __STDC__
11617 # include <limits.h>
11618 #else
11619 # include <assert.h>
11620 #endif
11621
11622 #undef $ac_func
11623
11624 /* Override any GCC internal prototype to avoid an error.
11625    Use char because int might match the return type of a GCC
11626    builtin and then its argument prototype would still apply.  */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 char $ac_func ();
11631 /* The GNU C library defines this for functions which it implements
11632     to always fail with ENOSYS.  Some functions are actually named
11633     something starting with __ and the normal name is an alias.  */
11634 #if defined __stub_$ac_func || defined __stub___$ac_func
11635 choke me
11636 #endif
11637
11638 int
11639 main ()
11640 {
11641 return $ac_func ();
11642   ;
11643   return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11654   ac_status=$?
11655   grep -v '^ *+' conftest.er1 >conftest.err
11656   rm -f conftest.er1
11657   cat conftest.err >&5
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); } &&
11660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11661   { (case "(($ac_try" in
11662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663   *) ac_try_echo=$ac_try;;
11664 esac
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666   (eval "$ac_try") 2>&5
11667   ac_status=$?
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); }; } &&
11670          { ac_try='test -s conftest$ac_exeext'
11671   { (case "(($ac_try" in
11672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673   *) ac_try_echo=$ac_try;;
11674 esac
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676   (eval "$ac_try") 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); }; }; then
11680   eval "$as_ac_var=yes"
11681 else
11682   echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685         eval "$as_ac_var=no"
11686 fi
11687
11688 rm -f core conftest.err conftest.$ac_objext \
11689       conftest$ac_exeext conftest.$ac_ext
11690 fi
11691 ac_res=`eval echo '${'$as_ac_var'}'`
11692                { echo "$as_me:$LINENO: result: $ac_res" >&5
11693 echo "${ECHO_T}$ac_res" >&6; }
11694 if test `eval echo '${'$as_ac_var'}'` = yes; then
11695   cat >>confdefs.h <<_ACEOF
11696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11697 _ACEOF
11698
11699 fi
11700 done
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11730                   stdio.h unistd.h
11731 do
11732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11737   echo $ECHO_N "(cached) $ECHO_C" >&6
11738 fi
11739 ac_res=`eval echo '${'$as_ac_Header'}'`
11740                { echo "$as_me:$LINENO: result: $ac_res" >&5
11741 echo "${ECHO_T}$ac_res" >&6; }
11742 else
11743   # Is the header compilable?
11744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h.  */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h.  */
11752 $ac_includes_default
11753 #include <$ac_header>
11754 _ACEOF
11755 rm -f conftest.$ac_objext
11756 if { (ac_try="$ac_compile"
11757 case "(($ac_try" in
11758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759   *) ac_try_echo=$ac_try;;
11760 esac
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762   (eval "$ac_compile") 2>conftest.er1
11763   ac_status=$?
11764   grep -v '^ *+' conftest.er1 >conftest.err
11765   rm -f conftest.er1
11766   cat conftest.err >&5
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); } &&
11769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11770   { (case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775   (eval "$ac_try") 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; } &&
11779          { ac_try='test -s conftest.$ac_objext'
11780   { (case "(($ac_try" in
11781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782   *) ac_try_echo=$ac_try;;
11783 esac
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785   (eval "$ac_try") 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; }; then
11789   ac_header_compiler=yes
11790 else
11791   echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11793
11794         ac_header_compiler=no
11795 fi
11796
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799 echo "${ECHO_T}$ac_header_compiler" >&6; }
11800
11801 # Is the header present?
11802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 #include <$ac_header>
11811 _ACEOF
11812 if { (ac_try="$ac_cpp conftest.$ac_ext"
11813 case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11819   ac_status=$?
11820   grep -v '^ *+' conftest.er1 >conftest.err
11821   rm -f conftest.er1
11822   cat conftest.err >&5
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); } >/dev/null; then
11825   if test -s conftest.err; then
11826     ac_cpp_err=$ac_c_preproc_warn_flag
11827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11828   else
11829     ac_cpp_err=
11830   fi
11831 else
11832   ac_cpp_err=yes
11833 fi
11834 if test -z "$ac_cpp_err"; then
11835   ac_header_preproc=yes
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840   ac_header_preproc=no
11841 fi
11842
11843 rm -f conftest.err conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845 echo "${ECHO_T}$ac_header_preproc" >&6; }
11846
11847 # So?  What about this header?
11848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11849   yes:no: )
11850     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11854     ac_header_preproc=yes
11855     ;;
11856   no:yes:* )
11857     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11859     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11860 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11861     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11863     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11864 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11867     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11869     ( cat <<\_ASBOX
11870 ## ----------------------------------- ##
11871 ## Report this to llvmbugs@cs.uiuc.edu ##
11872 ## ----------------------------------- ##
11873 _ASBOX
11874      ) | sed "s/^/$as_me: WARNING:     /" >&2
11875     ;;
11876 esac
11877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11880   echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882   eval "$as_ac_Header=\$ac_header_preproc"
11883 fi
11884 ac_res=`eval echo '${'$as_ac_Header'}'`
11885                { echo "$as_me:$LINENO: result: $ac_res" >&5
11886 echo "${ECHO_T}$ac_res" >&6; }
11887
11888 fi
11889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11890   cat >>confdefs.h <<_ACEOF
11891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11892 _ACEOF
11893
11894 fi
11895
11896 done
11897
11898
11899
11900
11901
11902 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11903 do
11904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11906   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11909   echo $ECHO_N "(cached) $ECHO_C" >&6
11910 fi
11911 ac_res=`eval echo '${'$as_ac_Header'}'`
11912                { echo "$as_me:$LINENO: result: $ac_res" >&5
11913 echo "${ECHO_T}$ac_res" >&6; }
11914 else
11915   # Is the header compilable?
11916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11918 cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924 $ac_includes_default
11925 #include <$ac_header>
11926 _ACEOF
11927 rm -f conftest.$ac_objext
11928 if { (ac_try="$ac_compile"
11929 case "(($ac_try" in
11930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931   *) ac_try_echo=$ac_try;;
11932 esac
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934   (eval "$ac_compile") 2>conftest.er1
11935   ac_status=$?
11936   grep -v '^ *+' conftest.er1 >conftest.err
11937   rm -f conftest.er1
11938   cat conftest.err >&5
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); } &&
11941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942   { (case "(($ac_try" in
11943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944   *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947   (eval "$ac_try") 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; } &&
11951          { ac_try='test -s conftest.$ac_objext'
11952   { (case "(($ac_try" in
11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954   *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957   (eval "$ac_try") 2>&5
11958   ac_status=$?
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); }; }; then
11961   ac_header_compiler=yes
11962 else
11963   echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966         ac_header_compiler=no
11967 fi
11968
11969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11971 echo "${ECHO_T}$ac_header_compiler" >&6; }
11972
11973 # Is the header present?
11974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h.  */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h.  */
11982 #include <$ac_header>
11983 _ACEOF
11984 if { (ac_try="$ac_cpp conftest.$ac_ext"
11985 case "(($ac_try" in
11986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987   *) ac_try_echo=$ac_try;;
11988 esac
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11991   ac_status=$?
11992   grep -v '^ *+' conftest.er1 >conftest.err
11993   rm -f conftest.er1
11994   cat conftest.err >&5
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); } >/dev/null; then
11997   if test -s conftest.err; then
11998     ac_cpp_err=$ac_c_preproc_warn_flag
11999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12000   else
12001     ac_cpp_err=
12002   fi
12003 else
12004   ac_cpp_err=yes
12005 fi
12006 if test -z "$ac_cpp_err"; then
12007   ac_header_preproc=yes
12008 else
12009   echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012   ac_header_preproc=no
12013 fi
12014
12015 rm -f conftest.err conftest.$ac_ext
12016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12017 echo "${ECHO_T}$ac_header_preproc" >&6; }
12018
12019 # So?  What about this header?
12020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12021   yes:no: )
12022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12026     ac_header_preproc=yes
12027     ;;
12028   no:yes:* )
12029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12041     ( cat <<\_ASBOX
12042 ## ----------------------------------- ##
12043 ## Report this to llvmbugs@cs.uiuc.edu ##
12044 ## ----------------------------------- ##
12045 _ASBOX
12046      ) | sed "s/^/$as_me: WARNING:     /" >&2
12047     ;;
12048 esac
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052   echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054   eval "$as_ac_Header=\$ac_header_preproc"
12055 fi
12056 ac_res=`eval echo '${'$as_ac_Header'}'`
12057                { echo "$as_me:$LINENO: result: $ac_res" >&5
12058 echo "${ECHO_T}$ac_res" >&6; }
12059
12060 fi
12061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12062   cat >>confdefs.h <<_ACEOF
12063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12064 _ACEOF
12065
12066 fi
12067
12068 done
12069
12070
12071
12072 for ac_header in string.h strings.h
12073 do
12074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12076   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079   echo $ECHO_N "(cached) $ECHO_C" >&6
12080 fi
12081 ac_res=`eval echo '${'$as_ac_Header'}'`
12082                { echo "$as_me:$LINENO: result: $ac_res" >&5
12083 echo "${ECHO_T}$ac_res" >&6; }
12084 else
12085   # Is the header compilable?
12086 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h.  */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h.  */
12094 $ac_includes_default
12095 #include <$ac_header>
12096 _ACEOF
12097 rm -f conftest.$ac_objext
12098 if { (ac_try="$ac_compile"
12099 case "(($ac_try" in
12100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101   *) ac_try_echo=$ac_try;;
12102 esac
12103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104   (eval "$ac_compile") 2>conftest.er1
12105   ac_status=$?
12106   grep -v '^ *+' conftest.er1 >conftest.err
12107   rm -f conftest.er1
12108   cat conftest.err >&5
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); } &&
12111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12112   { (case "(($ac_try" in
12113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114   *) ac_try_echo=$ac_try;;
12115 esac
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117   (eval "$ac_try") 2>&5
12118   ac_status=$?
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); }; } &&
12121          { ac_try='test -s conftest.$ac_objext'
12122   { (case "(($ac_try" in
12123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124   *) ac_try_echo=$ac_try;;
12125 esac
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127   (eval "$ac_try") 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; }; then
12131   ac_header_compiler=yes
12132 else
12133   echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12135
12136         ac_header_compiler=no
12137 fi
12138
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12141 echo "${ECHO_T}$ac_header_compiler" >&6; }
12142
12143 # Is the header present?
12144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h.  */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h.  */
12152 #include <$ac_header>
12153 _ACEOF
12154 if { (ac_try="$ac_cpp conftest.$ac_ext"
12155 case "(($ac_try" in
12156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157   *) ac_try_echo=$ac_try;;
12158 esac
12159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12161   ac_status=$?
12162   grep -v '^ *+' conftest.er1 >conftest.err
12163   rm -f conftest.er1
12164   cat conftest.err >&5
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); } >/dev/null; then
12167   if test -s conftest.err; then
12168     ac_cpp_err=$ac_c_preproc_warn_flag
12169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12170   else
12171     ac_cpp_err=
12172   fi
12173 else
12174   ac_cpp_err=yes
12175 fi
12176 if test -z "$ac_cpp_err"; then
12177   ac_header_preproc=yes
12178 else
12179   echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12181
12182   ac_header_preproc=no
12183 fi
12184
12185 rm -f conftest.err conftest.$ac_ext
12186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12187 echo "${ECHO_T}$ac_header_preproc" >&6; }
12188
12189 # So?  What about this header?
12190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12191   yes:no: )
12192     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12196     ac_header_preproc=yes
12197     ;;
12198   no:yes:* )
12199     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12201     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12202 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12203     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12205     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12206 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12209     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12211     ( cat <<\_ASBOX
12212 ## ----------------------------------- ##
12213 ## Report this to llvmbugs@cs.uiuc.edu ##
12214 ## ----------------------------------- ##
12215 _ASBOX
12216      ) | sed "s/^/$as_me: WARNING:     /" >&2
12217     ;;
12218 esac
12219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12222   echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224   eval "$as_ac_Header=\$ac_header_preproc"
12225 fi
12226 ac_res=`eval echo '${'$as_ac_Header'}'`
12227                { echo "$as_me:$LINENO: result: $ac_res" >&5
12228 echo "${ECHO_T}$ac_res" >&6; }
12229
12230 fi
12231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12232   cat >>confdefs.h <<_ACEOF
12233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12234 _ACEOF
12235  break
12236 fi
12237
12238 done
12239
12240
12241
12242
12243 for ac_func in strchr index
12244 do
12245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12249   echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251   cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12259 #define $ac_func innocuous_$ac_func
12260
12261 /* System header to define __stub macros and hopefully few prototypes,
12262     which can conflict with char $ac_func (); below.
12263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12264     <limits.h> exists even on freestanding compilers.  */
12265
12266 #ifdef __STDC__
12267 # include <limits.h>
12268 #else
12269 # include <assert.h>
12270 #endif
12271
12272 #undef $ac_func
12273
12274 /* Override any GCC internal prototype to avoid an error.
12275    Use char because int might match the return type of a GCC
12276    builtin and then its argument prototype would still apply.  */
12277 #ifdef __cplusplus
12278 extern "C"
12279 #endif
12280 char $ac_func ();
12281 /* The GNU C library defines this for functions which it implements
12282     to always fail with ENOSYS.  Some functions are actually named
12283     something starting with __ and the normal name is an alias.  */
12284 #if defined __stub_$ac_func || defined __stub___$ac_func
12285 choke me
12286 #endif
12287
12288 int
12289 main ()
12290 {
12291 return $ac_func ();
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (ac_try="$ac_link"
12298 case "(($ac_try" in
12299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300   *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303   (eval "$ac_link") 2>conftest.er1
12304   ac_status=$?
12305   grep -v '^ *+' conftest.er1 >conftest.err
12306   rm -f conftest.er1
12307   cat conftest.err >&5
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); } &&
12310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12311   { (case "(($ac_try" in
12312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313   *) ac_try_echo=$ac_try;;
12314 esac
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316   (eval "$ac_try") 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; } &&
12320          { ac_try='test -s conftest$ac_exeext'
12321   { (case "(($ac_try" in
12322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323   *) ac_try_echo=$ac_try;;
12324 esac
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326   (eval "$ac_try") 2>&5
12327   ac_status=$?
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); }; }; then
12330   eval "$as_ac_var=yes"
12331 else
12332   echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12334
12335         eval "$as_ac_var=no"
12336 fi
12337
12338 rm -f core conftest.err conftest.$ac_objext \
12339       conftest$ac_exeext conftest.$ac_ext
12340 fi
12341 ac_res=`eval echo '${'$as_ac_var'}'`
12342                { echo "$as_me:$LINENO: result: $ac_res" >&5
12343 echo "${ECHO_T}$ac_res" >&6; }
12344 if test `eval echo '${'$as_ac_var'}'` = yes; then
12345   cat >>confdefs.h <<_ACEOF
12346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12347 _ACEOF
12348  break
12349 fi
12350 done
12351
12352
12353
12354 for ac_func in strrchr rindex
12355 do
12356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12357 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12370 #define $ac_func innocuous_$ac_func
12371
12372 /* System header to define __stub macros and hopefully few prototypes,
12373     which can conflict with char $ac_func (); below.
12374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12375     <limits.h> exists even on freestanding compilers.  */
12376
12377 #ifdef __STDC__
12378 # include <limits.h>
12379 #else
12380 # include <assert.h>
12381 #endif
12382
12383 #undef $ac_func
12384
12385 /* Override any GCC internal prototype to avoid an error.
12386    Use char because int might match the return type of a GCC
12387    builtin and then its argument prototype would still apply.  */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char $ac_func ();
12392 /* The GNU C library defines this for functions which it implements
12393     to always fail with ENOSYS.  Some functions are actually named
12394     something starting with __ and the normal name is an alias.  */
12395 #if defined __stub_$ac_func || defined __stub___$ac_func
12396 choke me
12397 #endif
12398
12399 int
12400 main ()
12401 {
12402 return $ac_func ();
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext conftest$ac_exeext
12408 if { (ac_try="$ac_link"
12409 case "(($ac_try" in
12410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411   *) ac_try_echo=$ac_try;;
12412 esac
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414   (eval "$ac_link") 2>conftest.er1
12415   ac_status=$?
12416   grep -v '^ *+' conftest.er1 >conftest.err
12417   rm -f conftest.er1
12418   cat conftest.err >&5
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } &&
12421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12422   { (case "(($ac_try" in
12423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424   *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427   (eval "$ac_try") 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; } &&
12431          { ac_try='test -s conftest$ac_exeext'
12432   { (case "(($ac_try" in
12433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434   *) ac_try_echo=$ac_try;;
12435 esac
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437   (eval "$ac_try") 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; }; then
12441   eval "$as_ac_var=yes"
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446         eval "$as_ac_var=no"
12447 fi
12448
12449 rm -f core conftest.err conftest.$ac_objext \
12450       conftest$ac_exeext conftest.$ac_ext
12451 fi
12452 ac_res=`eval echo '${'$as_ac_var'}'`
12453                { echo "$as_me:$LINENO: result: $ac_res" >&5
12454 echo "${ECHO_T}$ac_res" >&6; }
12455 if test `eval echo '${'$as_ac_var'}'` = yes; then
12456   cat >>confdefs.h <<_ACEOF
12457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12458 _ACEOF
12459  break
12460 fi
12461 done
12462
12463
12464
12465 for ac_func in memcpy bcopy
12466 do
12467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473   cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h.  */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h.  */
12479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12481 #define $ac_func innocuous_$ac_func
12482
12483 /* System header to define __stub macros and hopefully few prototypes,
12484     which can conflict with char $ac_func (); below.
12485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486     <limits.h> exists even on freestanding compilers.  */
12487
12488 #ifdef __STDC__
12489 # include <limits.h>
12490 #else
12491 # include <assert.h>
12492 #endif
12493
12494 #undef $ac_func
12495
12496 /* Override any GCC internal prototype to avoid an error.
12497    Use char because int might match the return type of a GCC
12498    builtin and then its argument prototype would still apply.  */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 char $ac_func ();
12503 /* The GNU C library defines this for functions which it implements
12504     to always fail with ENOSYS.  Some functions are actually named
12505     something starting with __ and the normal name is an alias.  */
12506 #if defined __stub_$ac_func || defined __stub___$ac_func
12507 choke me
12508 #endif
12509
12510 int
12511 main ()
12512 {
12513 return $ac_func ();
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (ac_try="$ac_link"
12520 case "(($ac_try" in
12521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522   *) ac_try_echo=$ac_try;;
12523 esac
12524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525   (eval "$ac_link") 2>conftest.er1
12526   ac_status=$?
12527   grep -v '^ *+' conftest.er1 >conftest.err
12528   rm -f conftest.er1
12529   cat conftest.err >&5
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } &&
12532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533   { (case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538   (eval "$ac_try") 2>&5
12539   ac_status=$?
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; } &&
12542          { ac_try='test -s conftest$ac_exeext'
12543   { (case "(($ac_try" in
12544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545   *) ac_try_echo=$ac_try;;
12546 esac
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548   (eval "$ac_try") 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; }; then
12552   eval "$as_ac_var=yes"
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557         eval "$as_ac_var=no"
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext \
12561       conftest$ac_exeext conftest.$ac_ext
12562 fi
12563 ac_res=`eval echo '${'$as_ac_var'}'`
12564                { echo "$as_me:$LINENO: result: $ac_res" >&5
12565 echo "${ECHO_T}$ac_res" >&6; }
12566 if test `eval echo '${'$as_ac_var'}'` = yes; then
12567   cat >>confdefs.h <<_ACEOF
12568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12569 _ACEOF
12570  break
12571 fi
12572 done
12573
12574
12575
12576 for ac_func in memmove strcmp
12577 do
12578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12582   echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584   cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12592 #define $ac_func innocuous_$ac_func
12593
12594 /* System header to define __stub macros and hopefully few prototypes,
12595     which can conflict with char $ac_func (); below.
12596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12597     <limits.h> exists even on freestanding compilers.  */
12598
12599 #ifdef __STDC__
12600 # include <limits.h>
12601 #else
12602 # include <assert.h>
12603 #endif
12604
12605 #undef $ac_func
12606
12607 /* Override any GCC internal prototype to avoid an error.
12608    Use char because int might match the return type of a GCC
12609    builtin and then its argument prototype would still apply.  */
12610 #ifdef __cplusplus
12611 extern "C"
12612 #endif
12613 char $ac_func ();
12614 /* The GNU C library defines this for functions which it implements
12615     to always fail with ENOSYS.  Some functions are actually named
12616     something starting with __ and the normal name is an alias.  */
12617 #if defined __stub_$ac_func || defined __stub___$ac_func
12618 choke me
12619 #endif
12620
12621 int
12622 main ()
12623 {
12624 return $ac_func ();
12625   ;
12626   return 0;
12627 }
12628 _ACEOF
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (ac_try="$ac_link"
12631 case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636   (eval "$ac_link") 2>conftest.er1
12637   ac_status=$?
12638   grep -v '^ *+' conftest.er1 >conftest.err
12639   rm -f conftest.er1
12640   cat conftest.err >&5
12641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); } &&
12643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12644   { (case "(($ac_try" in
12645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646   *) ac_try_echo=$ac_try;;
12647 esac
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649   (eval "$ac_try") 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; } &&
12653          { ac_try='test -s conftest$ac_exeext'
12654   { (case "(($ac_try" in
12655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656   *) ac_try_echo=$ac_try;;
12657 esac
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659   (eval "$ac_try") 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; }; then
12663   eval "$as_ac_var=yes"
12664 else
12665   echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668         eval "$as_ac_var=no"
12669 fi
12670
12671 rm -f core conftest.err conftest.$ac_objext \
12672       conftest$ac_exeext conftest.$ac_ext
12673 fi
12674 ac_res=`eval echo '${'$as_ac_var'}'`
12675                { echo "$as_me:$LINENO: result: $ac_res" >&5
12676 echo "${ECHO_T}$ac_res" >&6; }
12677 if test `eval echo '${'$as_ac_var'}'` = yes; then
12678   cat >>confdefs.h <<_ACEOF
12679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12680 _ACEOF
12681
12682 fi
12683 done
12684
12685
12686
12687
12688 for ac_func in closedir opendir readdir
12689 do
12690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12694   echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696   cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h.  */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h.  */
12702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12704 #define $ac_func innocuous_$ac_func
12705
12706 /* System header to define __stub macros and hopefully few prototypes,
12707     which can conflict with char $ac_func (); below.
12708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12709     <limits.h> exists even on freestanding compilers.  */
12710
12711 #ifdef __STDC__
12712 # include <limits.h>
12713 #else
12714 # include <assert.h>
12715 #endif
12716
12717 #undef $ac_func
12718
12719 /* Override any GCC internal prototype to avoid an error.
12720    Use char because int might match the return type of a GCC
12721    builtin and then its argument prototype would still apply.  */
12722 #ifdef __cplusplus
12723 extern "C"
12724 #endif
12725 char $ac_func ();
12726 /* The GNU C library defines this for functions which it implements
12727     to always fail with ENOSYS.  Some functions are actually named
12728     something starting with __ and the normal name is an alias.  */
12729 #if defined __stub_$ac_func || defined __stub___$ac_func
12730 choke me
12731 #endif
12732
12733 int
12734 main ()
12735 {
12736 return $ac_func ();
12737   ;
12738   return 0;
12739 }
12740 _ACEOF
12741 rm -f conftest.$ac_objext conftest$ac_exeext
12742 if { (ac_try="$ac_link"
12743 case "(($ac_try" in
12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745   *) ac_try_echo=$ac_try;;
12746 esac
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748   (eval "$ac_link") 2>conftest.er1
12749   ac_status=$?
12750   grep -v '^ *+' conftest.er1 >conftest.err
12751   rm -f conftest.er1
12752   cat conftest.err >&5
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } &&
12755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12756   { (case "(($ac_try" in
12757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758   *) ac_try_echo=$ac_try;;
12759 esac
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761   (eval "$ac_try") 2>&5
12762   ac_status=$?
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); }; } &&
12765          { ac_try='test -s conftest$ac_exeext'
12766   { (case "(($ac_try" in
12767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768   *) ac_try_echo=$ac_try;;
12769 esac
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771   (eval "$ac_try") 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775   eval "$as_ac_var=yes"
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780         eval "$as_ac_var=no"
12781 fi
12782
12783 rm -f core conftest.err conftest.$ac_objext \
12784       conftest$ac_exeext conftest.$ac_ext
12785 fi
12786 ac_res=`eval echo '${'$as_ac_var'}'`
12787                { echo "$as_me:$LINENO: result: $ac_res" >&5
12788 echo "${ECHO_T}$ac_res" >&6; }
12789 if test `eval echo '${'$as_ac_var'}'` = yes; then
12790   cat >>confdefs.h <<_ACEOF
12791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12792 _ACEOF
12793
12794 fi
12795 done
12796
12797
12798
12799 if test "$WITH_LLVMGCCDIR" = "default" ; then
12800   LLVMGCC="llvm-gcc${EXEEXT}"
12801   LLVMGXX="llvm-g++${EXEEXT}"
12802   LLVMGCCCOMMAND="$LLVMGCC"
12803   LLVMGXXCOMMAND="$LLVMGXX"
12804   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12805
12806   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12807
12808   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12809 set dummy $LLVMGCC; ac_word=$2
12810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12812 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12813   echo $ECHO_N "(cached) $ECHO_C" >&6
12814 else
12815   case $LLVMGCC in
12816   [\\/]* | ?:[\\/]*)
12817   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12818   ;;
12819   *)
12820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821 for as_dir in $PATH
12822 do
12823   IFS=$as_save_IFS
12824   test -z "$as_dir" && as_dir=.
12825   for ac_exec_ext in '' $ac_executable_extensions; do
12826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12827     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12829     break 2
12830   fi
12831 done
12832 done
12833 IFS=$as_save_IFS
12834
12835   ;;
12836 esac
12837 fi
12838 LLVMGCC=$ac_cv_path_LLVMGCC
12839 if test -n "$LLVMGCC"; then
12840   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12841 echo "${ECHO_T}$LLVMGCC" >&6; }
12842 else
12843   { echo "$as_me:$LINENO: result: no" >&5
12844 echo "${ECHO_T}no" >&6; }
12845 fi
12846
12847
12848   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12849 set dummy $LLVMGXX; ac_word=$2
12850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12852 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12853   echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855   case $LLVMGXX in
12856   [\\/]* | ?:[\\/]*)
12857   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12858   ;;
12859   *)
12860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12862 do
12863   IFS=$as_save_IFS
12864   test -z "$as_dir" && as_dir=.
12865   for ac_exec_ext in '' $ac_executable_extensions; do
12866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12867     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12869     break 2
12870   fi
12871 done
12872 done
12873 IFS=$as_save_IFS
12874
12875   ;;
12876 esac
12877 fi
12878 LLVMGXX=$ac_cv_path_LLVMGXX
12879 if test -n "$LLVMGXX"; then
12880   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12881 echo "${ECHO_T}$LLVMGXX" >&6; }
12882 else
12883   { echo "$as_me:$LINENO: result: no" >&5
12884 echo "${ECHO_T}no" >&6; }
12885 fi
12886
12887
12888 else
12889   if test -z "$LLVMGCC"; then
12890     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12891     LLVMGCCCOMMAND="$LLVMGCC"
12892   fi
12893   if test -z "$LLVMGXX"; then
12894     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12895     LLVMGXXCOMMAND="$LLVMGXX"
12896   fi
12897
12898   LLVMGCC=$LLVMGCC
12899
12900   LLVMGXX=$LLVMGXX
12901
12902   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12903
12904   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12905
12906 fi
12907
12908
12909 # Check whether --with-llvmcc was given.
12910 if test "${with_llvmcc+set}" = set; then
12911   withval=$with_llvmcc;
12912 else
12913   with_llvmcc=check
12914 fi
12915
12916 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12917 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12918 if test "$with_llvmcc" != "check"; then
12919    if (test "$with_llvmcc" != "llvm-gcc" &&
12920        test "$with_llvmcc" != "clang" &&
12921        test "$with_llvmcc" != "none"); then
12922       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12923 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12924    { (exit 1); exit 1; }; }
12925    fi
12926    WITH_LLVMCC="$with_llvmcc"
12927 elif test -n "$LLVMGCC"; then
12928    WITH_LLVMCC=llvm-gcc
12929 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12930    WITH_LLVMCC=clang
12931 else
12932    WITH_LLVMCC=none
12933 fi
12934 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12935 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12936 LLVMCC_OPTION=$WITH_LLVMCC
12937
12938
12939 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12940 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12941
12942 ICC=no
12943 IXX=no
12944 case $CC in
12945   icc*|icpc*)
12946     ICC=yes
12947     IXX=yes
12948     ;;
12949    *)
12950     ;;
12951 esac
12952
12953 if test "$GCC" != "yes" && test "$ICC" != "yes"
12954 then
12955   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12956 echo "$as_me: error: gcc|icc required but not found" >&2;}
12957    { (exit 1); exit 1; }; }
12958 fi
12959
12960 if test "$GXX" != "yes" && test "$IXX" != "yes"
12961 then
12962   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12963 echo "$as_me: error: g++|icc required but not found" >&2;}
12964    { (exit 1); exit 1; }; }
12965 fi
12966
12967 if test "$GCC" = "yes"
12968 then
12969   cat >conftest.$ac_ext <<_ACEOF
12970 #if !defined(__GNUC__) || __GNUC__ < 3
12971 #error Unsupported GCC version
12972 #endif
12973
12974 _ACEOF
12975 rm -f conftest.$ac_objext
12976 if { (ac_try="$ac_compile"
12977 case "(($ac_try" in
12978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979   *) ac_try_echo=$ac_try;;
12980 esac
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982   (eval "$ac_compile") 2>conftest.er1
12983   ac_status=$?
12984   grep -v '^ *+' conftest.er1 >conftest.err
12985   rm -f conftest.er1
12986   cat conftest.err >&5
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } &&
12989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990   { (case "(($ac_try" in
12991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992   *) ac_try_echo=$ac_try;;
12993 esac
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995   (eval "$ac_try") 2>&5
12996   ac_status=$?
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); }; } &&
12999          { ac_try='test -s conftest.$ac_objext'
13000   { (case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005   (eval "$ac_try") 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); }; }; then
13009   :
13010 else
13011   echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13015 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13016    { (exit 1); exit 1; }; }
13017 fi
13018
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020 fi
13021
13022 if test -z "$llvm_cv_gnu_make_command"
13023 then
13024   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13025 echo "$as_me: error: GNU Make required but not found" >&2;}
13026    { (exit 1); exit 1; }; }
13027 fi
13028
13029 { echo "$as_me:$LINENO: result: ok" >&5
13030 echo "${ECHO_T}ok" >&6; }
13031
13032 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13033 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13034 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13035
13036 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13037
13038 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13039 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13040
13041
13042
13043 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13044 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13045 if test "${ac_cv_lib_m_sin+set}" = set; then
13046   echo $ECHO_N "(cached) $ECHO_C" >&6
13047 else
13048   ac_check_lib_save_LIBS=$LIBS
13049 LIBS="-lm  $LIBS"
13050 cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h.  */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h.  */
13056
13057 /* Override any GCC internal prototype to avoid an error.
13058    Use char because int might match the return type of a GCC
13059    builtin and then its argument prototype would still apply.  */
13060 #ifdef __cplusplus
13061 extern "C"
13062 #endif
13063 char sin ();
13064 int
13065 main ()
13066 {
13067 return sin ();
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (ac_try="$ac_link"
13074 case "(($ac_try" in
13075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076   *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079   (eval "$ac_link") 2>conftest.er1
13080   ac_status=$?
13081   grep -v '^ *+' conftest.er1 >conftest.err
13082   rm -f conftest.er1
13083   cat conftest.err >&5
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); } &&
13086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087   { (case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_try") 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; } &&
13096          { ac_try='test -s conftest$ac_exeext'
13097   { (case "(($ac_try" in
13098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099   *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102   (eval "$ac_try") 2>&5
13103   ac_status=$?
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); }; }; then
13106   ac_cv_lib_m_sin=yes
13107 else
13108   echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111         ac_cv_lib_m_sin=no
13112 fi
13113
13114 rm -f core conftest.err conftest.$ac_objext \
13115       conftest$ac_exeext conftest.$ac_ext
13116 LIBS=$ac_check_lib_save_LIBS
13117 fi
13118 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13119 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13120 if test $ac_cv_lib_m_sin = yes; then
13121   cat >>confdefs.h <<_ACEOF
13122 #define HAVE_LIBM 1
13123 _ACEOF
13124
13125   LIBS="-lm $LIBS"
13126
13127 fi
13128
13129 if test "$llvm_cv_os_type" = "MingW" ; then
13130
13131 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13132 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13133 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13134   echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136   ac_check_lib_save_LIBS=$LIBS
13137 LIBS="-limagehlp  $LIBS"
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h.  */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h.  */
13144
13145
13146 int
13147 main ()
13148 {
13149 return main ();
13150   ;
13151   return 0;
13152 }
13153 _ACEOF
13154 rm -f conftest.$ac_objext conftest$ac_exeext
13155 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13162   ac_status=$?
13163   grep -v '^ *+' conftest.er1 >conftest.err
13164   rm -f conftest.er1
13165   cat conftest.err >&5
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } &&
13168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13169   { (case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_try") 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); }; } &&
13178          { ac_try='test -s conftest$ac_exeext'
13179   { (case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_try") 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); }; }; then
13188   ac_cv_lib_imagehlp_main=yes
13189 else
13190   echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193         ac_cv_lib_imagehlp_main=no
13194 fi
13195
13196 rm -f core conftest.err conftest.$ac_objext \
13197       conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13199 fi
13200 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13201 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13202 if test $ac_cv_lib_imagehlp_main = yes; then
13203   cat >>confdefs.h <<_ACEOF
13204 #define HAVE_LIBIMAGEHLP 1
13205 _ACEOF
13206
13207   LIBS="-limagehlp $LIBS"
13208
13209 fi
13210
13211
13212 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13213 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13214 if test "${ac_cv_lib_psapi_main+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217   ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-lpsapi  $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
13227 int
13228 main ()
13229 {
13230 return main ();
13231   ;
13232   return 0;
13233 }
13234 _ACEOF
13235 rm -f conftest.$ac_objext conftest$ac_exeext
13236 if { (ac_try="$ac_link"
13237 case "(($ac_try" in
13238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239   *) ac_try_echo=$ac_try;;
13240 esac
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242   (eval "$ac_link") 2>conftest.er1
13243   ac_status=$?
13244   grep -v '^ *+' conftest.er1 >conftest.err
13245   rm -f conftest.er1
13246   cat conftest.err >&5
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } &&
13249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250   { (case "(($ac_try" in
13251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252   *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255   (eval "$ac_try") 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; } &&
13259          { ac_try='test -s conftest$ac_exeext'
13260   { (case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_try") 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); }; }; then
13269   ac_cv_lib_psapi_main=yes
13270 else
13271   echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274         ac_cv_lib_psapi_main=no
13275 fi
13276
13277 rm -f core conftest.err conftest.$ac_objext \
13278       conftest$ac_exeext conftest.$ac_ext
13279 LIBS=$ac_check_lib_save_LIBS
13280 fi
13281 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13282 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13283 if test $ac_cv_lib_psapi_main = yes; then
13284   cat >>confdefs.h <<_ACEOF
13285 #define HAVE_LIBPSAPI 1
13286 _ACEOF
13287
13288   LIBS="-lpsapi $LIBS"
13289
13290 fi
13291
13292 fi
13293
13294 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13295 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13296 if test "${ac_cv_search_dlopen+set}" = set; then
13297   echo $ECHO_N "(cached) $ECHO_C" >&6
13298 else
13299   ac_func_search_save_LIBS=$LIBS
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h.  */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h.  */
13306
13307 /* Override any GCC internal prototype to avoid an error.
13308    Use char because int might match the return type of a GCC
13309    builtin and then its argument prototype would still apply.  */
13310 #ifdef __cplusplus
13311 extern "C"
13312 #endif
13313 char dlopen ();
13314 int
13315 main ()
13316 {
13317 return dlopen ();
13318   ;
13319   return 0;
13320 }
13321 _ACEOF
13322 for ac_lib in '' dl; do
13323   if test -z "$ac_lib"; then
13324     ac_res="none required"
13325   else
13326     ac_res=-l$ac_lib
13327     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13328   fi
13329   rm -f conftest.$ac_objext conftest$ac_exeext
13330 if { (ac_try="$ac_link"
13331 case "(($ac_try" in
13332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333   *) ac_try_echo=$ac_try;;
13334 esac
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336   (eval "$ac_link") 2>conftest.er1
13337   ac_status=$?
13338   grep -v '^ *+' conftest.er1 >conftest.err
13339   rm -f conftest.er1
13340   cat conftest.err >&5
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); } &&
13343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13344   { (case "(($ac_try" in
13345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346   *) ac_try_echo=$ac_try;;
13347 esac
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349   (eval "$ac_try") 2>&5
13350   ac_status=$?
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); }; } &&
13353          { ac_try='test -s conftest$ac_exeext'
13354   { (case "(($ac_try" in
13355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356   *) ac_try_echo=$ac_try;;
13357 esac
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359   (eval "$ac_try") 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); }; }; then
13363   ac_cv_search_dlopen=$ac_res
13364 else
13365   echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368
13369 fi
13370
13371 rm -f core conftest.err conftest.$ac_objext \
13372       conftest$ac_exeext
13373   if test "${ac_cv_search_dlopen+set}" = set; then
13374   break
13375 fi
13376 done
13377 if test "${ac_cv_search_dlopen+set}" = set; then
13378   :
13379 else
13380   ac_cv_search_dlopen=no
13381 fi
13382 rm conftest.$ac_ext
13383 LIBS=$ac_func_search_save_LIBS
13384 fi
13385 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13386 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13387 ac_res=$ac_cv_search_dlopen
13388 if test "$ac_res" != no; then
13389   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13390
13391 cat >>confdefs.h <<\_ACEOF
13392 #define HAVE_DLOPEN 1
13393 _ACEOF
13394
13395 else
13396   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13397 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13398 fi
13399
13400
13401 if test "$llvm_cv_enable_libffi" = "yes" ; then
13402   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13403 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13404 if test "${ac_cv_search_ffi_call+set}" = set; then
13405   echo $ECHO_N "(cached) $ECHO_C" >&6
13406 else
13407   ac_func_search_save_LIBS=$LIBS
13408 cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h.  */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h.  */
13414
13415 /* Override any GCC internal prototype to avoid an error.
13416    Use char because int might match the return type of a GCC
13417    builtin and then its argument prototype would still apply.  */
13418 #ifdef __cplusplus
13419 extern "C"
13420 #endif
13421 char ffi_call ();
13422 int
13423 main ()
13424 {
13425 return ffi_call ();
13426   ;
13427   return 0;
13428 }
13429 _ACEOF
13430 for ac_lib in '' ffi; do
13431   if test -z "$ac_lib"; then
13432     ac_res="none required"
13433   else
13434     ac_res=-l$ac_lib
13435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13436   fi
13437   rm -f conftest.$ac_objext conftest$ac_exeext
13438 if { (ac_try="$ac_link"
13439 case "(($ac_try" in
13440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441   *) ac_try_echo=$ac_try;;
13442 esac
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444   (eval "$ac_link") 2>conftest.er1
13445   ac_status=$?
13446   grep -v '^ *+' conftest.er1 >conftest.err
13447   rm -f conftest.er1
13448   cat conftest.err >&5
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452   { (case "(($ac_try" in
13453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454   *) ac_try_echo=$ac_try;;
13455 esac
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457   (eval "$ac_try") 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; } &&
13461          { ac_try='test -s conftest$ac_exeext'
13462   { (case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467   (eval "$ac_try") 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; }; then
13471   ac_cv_search_ffi_call=$ac_res
13472 else
13473   echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476
13477 fi
13478
13479 rm -f core conftest.err conftest.$ac_objext \
13480       conftest$ac_exeext
13481   if test "${ac_cv_search_ffi_call+set}" = set; then
13482   break
13483 fi
13484 done
13485 if test "${ac_cv_search_ffi_call+set}" = set; then
13486   :
13487 else
13488   ac_cv_search_ffi_call=no
13489 fi
13490 rm conftest.$ac_ext
13491 LIBS=$ac_func_search_save_LIBS
13492 fi
13493 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13494 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13495 ac_res=$ac_cv_search_ffi_call
13496 if test "$ac_res" != no; then
13497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13498
13499 cat >>confdefs.h <<\_ACEOF
13500 #define HAVE_FFI_CALL 1
13501 _ACEOF
13502
13503 else
13504   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13505 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13506    { (exit 1); exit 1; }; }
13507 fi
13508
13509 fi
13510
13511 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13512 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13513 if test "${ac_cv_search_mallinfo+set}" = set; then
13514   echo $ECHO_N "(cached) $ECHO_C" >&6
13515 else
13516   ac_func_search_save_LIBS=$LIBS
13517 cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h.  */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h.  */
13523
13524 /* Override any GCC internal prototype to avoid an error.
13525    Use char because int might match the return type of a GCC
13526    builtin and then its argument prototype would still apply.  */
13527 #ifdef __cplusplus
13528 extern "C"
13529 #endif
13530 char mallinfo ();
13531 int
13532 main ()
13533 {
13534 return mallinfo ();
13535   ;
13536   return 0;
13537 }
13538 _ACEOF
13539 for ac_lib in '' malloc; do
13540   if test -z "$ac_lib"; then
13541     ac_res="none required"
13542   else
13543     ac_res=-l$ac_lib
13544     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13545   fi
13546   rm -f conftest.$ac_objext conftest$ac_exeext
13547 if { (ac_try="$ac_link"
13548 case "(($ac_try" in
13549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550   *) ac_try_echo=$ac_try;;
13551 esac
13552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553   (eval "$ac_link") 2>conftest.er1
13554   ac_status=$?
13555   grep -v '^ *+' conftest.er1 >conftest.err
13556   rm -f conftest.er1
13557   cat conftest.err >&5
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13561   { (case "(($ac_try" in
13562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563   *) ac_try_echo=$ac_try;;
13564 esac
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566   (eval "$ac_try") 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; } &&
13570          { ac_try='test -s conftest$ac_exeext'
13571   { (case "(($ac_try" in
13572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573   *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576   (eval "$ac_try") 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); }; }; then
13580   ac_cv_search_mallinfo=$ac_res
13581 else
13582   echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13584
13585
13586 fi
13587
13588 rm -f core conftest.err conftest.$ac_objext \
13589       conftest$ac_exeext
13590   if test "${ac_cv_search_mallinfo+set}" = set; then
13591   break
13592 fi
13593 done
13594 if test "${ac_cv_search_mallinfo+set}" = set; then
13595   :
13596 else
13597   ac_cv_search_mallinfo=no
13598 fi
13599 rm conftest.$ac_ext
13600 LIBS=$ac_func_search_save_LIBS
13601 fi
13602 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13603 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13604 ac_res=$ac_cv_search_mallinfo
13605 if test "$ac_res" != no; then
13606   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13607
13608 cat >>confdefs.h <<\_ACEOF
13609 #define HAVE_MALLINFO 1
13610 _ACEOF
13611
13612 fi
13613
13614
13615 if test "$ENABLE_THREADS" -eq 1 ; then
13616
13617 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13618 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13619 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13620   echo $ECHO_N "(cached) $ECHO_C" >&6
13621 else
13622   ac_check_lib_save_LIBS=$LIBS
13623 LIBS="-lpthread  $LIBS"
13624 cat >conftest.$ac_ext <<_ACEOF
13625 /* confdefs.h.  */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h.  */
13630
13631 /* Override any GCC internal prototype to avoid an error.
13632    Use char because int might match the return type of a GCC
13633    builtin and then its argument prototype would still apply.  */
13634 #ifdef __cplusplus
13635 extern "C"
13636 #endif
13637 char pthread_mutex_init ();
13638 int
13639 main ()
13640 {
13641 return pthread_mutex_init ();
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (ac_try="$ac_link"
13648 case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653   (eval "$ac_link") 2>conftest.er1
13654   ac_status=$?
13655   grep -v '^ *+' conftest.er1 >conftest.err
13656   rm -f conftest.er1
13657   cat conftest.err >&5
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); } &&
13660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661   { (case "(($ac_try" in
13662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663   *) ac_try_echo=$ac_try;;
13664 esac
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666   (eval "$ac_try") 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; } &&
13670          { ac_try='test -s conftest$ac_exeext'
13671   { (case "(($ac_try" in
13672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673   *) ac_try_echo=$ac_try;;
13674 esac
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676   (eval "$ac_try") 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; }; then
13680   ac_cv_lib_pthread_pthread_mutex_init=yes
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685         ac_cv_lib_pthread_pthread_mutex_init=no
13686 fi
13687
13688 rm -f core conftest.err conftest.$ac_objext \
13689       conftest$ac_exeext conftest.$ac_ext
13690 LIBS=$ac_check_lib_save_LIBS
13691 fi
13692 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13693 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13694 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13695   cat >>confdefs.h <<_ACEOF
13696 #define HAVE_LIBPTHREAD 1
13697 _ACEOF
13698
13699   LIBS="-lpthread $LIBS"
13700
13701 fi
13702
13703   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13704 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13705 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13706   echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708   ac_func_search_save_LIBS=$LIBS
13709 cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h.  */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h.  */
13715
13716 /* Override any GCC internal prototype to avoid an error.
13717    Use char because int might match the return type of a GCC
13718    builtin and then its argument prototype would still apply.  */
13719 #ifdef __cplusplus
13720 extern "C"
13721 #endif
13722 char pthread_mutex_lock ();
13723 int
13724 main ()
13725 {
13726 return pthread_mutex_lock ();
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 for ac_lib in '' pthread; do
13732   if test -z "$ac_lib"; then
13733     ac_res="none required"
13734   else
13735     ac_res=-l$ac_lib
13736     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13737   fi
13738   rm -f conftest.$ac_objext conftest$ac_exeext
13739 if { (ac_try="$ac_link"
13740 case "(($ac_try" in
13741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742   *) ac_try_echo=$ac_try;;
13743 esac
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745   (eval "$ac_link") 2>conftest.er1
13746   ac_status=$?
13747   grep -v '^ *+' conftest.er1 >conftest.err
13748   rm -f conftest.er1
13749   cat conftest.err >&5
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } &&
13752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753   { (case "(($ac_try" in
13754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755   *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758   (eval "$ac_try") 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; } &&
13762          { ac_try='test -s conftest$ac_exeext'
13763   { (case "(($ac_try" in
13764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765   *) ac_try_echo=$ac_try;;
13766 esac
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768   (eval "$ac_try") 2>&5
13769   ac_status=$?
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); }; }; then
13772   ac_cv_search_pthread_mutex_lock=$ac_res
13773 else
13774   echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13776
13777
13778 fi
13779
13780 rm -f core conftest.err conftest.$ac_objext \
13781       conftest$ac_exeext
13782   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13783   break
13784 fi
13785 done
13786 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13787   :
13788 else
13789   ac_cv_search_pthread_mutex_lock=no
13790 fi
13791 rm conftest.$ac_ext
13792 LIBS=$ac_func_search_save_LIBS
13793 fi
13794 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13795 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13796 ac_res=$ac_cv_search_pthread_mutex_lock
13797 if test "$ac_res" != no; then
13798   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13799
13800 cat >>confdefs.h <<\_ACEOF
13801 #define HAVE_PTHREAD_MUTEX_LOCK 1
13802 _ACEOF
13803
13804 fi
13805
13806   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13807 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13808 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13809   echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811   ac_func_search_save_LIBS=$LIBS
13812 cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h.  */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h.  */
13818
13819 /* Override any GCC internal prototype to avoid an error.
13820    Use char because int might match the return type of a GCC
13821    builtin and then its argument prototype would still apply.  */
13822 #ifdef __cplusplus
13823 extern "C"
13824 #endif
13825 char pthread_rwlock_init ();
13826 int
13827 main ()
13828 {
13829 return pthread_rwlock_init ();
13830   ;
13831   return 0;
13832 }
13833 _ACEOF
13834 for ac_lib in '' pthread; do
13835   if test -z "$ac_lib"; then
13836     ac_res="none required"
13837   else
13838     ac_res=-l$ac_lib
13839     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13840   fi
13841   rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (ac_try="$ac_link"
13843 case "(($ac_try" in
13844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845   *) ac_try_echo=$ac_try;;
13846 esac
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848   (eval "$ac_link") 2>conftest.er1
13849   ac_status=$?
13850   grep -v '^ *+' conftest.er1 >conftest.err
13851   rm -f conftest.er1
13852   cat conftest.err >&5
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); } &&
13855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856   { (case "(($ac_try" in
13857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858   *) ac_try_echo=$ac_try;;
13859 esac
13860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861   (eval "$ac_try") 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; } &&
13865          { ac_try='test -s conftest$ac_exeext'
13866   { (case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_try") 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); }; }; then
13875   ac_cv_search_pthread_rwlock_init=$ac_res
13876 else
13877   echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13879
13880
13881 fi
13882
13883 rm -f core conftest.err conftest.$ac_objext \
13884       conftest$ac_exeext
13885   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13886   break
13887 fi
13888 done
13889 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13890   :
13891 else
13892   ac_cv_search_pthread_rwlock_init=no
13893 fi
13894 rm conftest.$ac_ext
13895 LIBS=$ac_func_search_save_LIBS
13896 fi
13897 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13898 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13899 ac_res=$ac_cv_search_pthread_rwlock_init
13900 if test "$ac_res" != no; then
13901   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13902
13903 cat >>confdefs.h <<\_ACEOF
13904 #define HAVE_PTHREAD_RWLOCK_INIT 1
13905 _ACEOF
13906
13907 fi
13908
13909   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13910 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13911 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13912   echo $ECHO_N "(cached) $ECHO_C" >&6
13913 else
13914   ac_func_search_save_LIBS=$LIBS
13915 cat >conftest.$ac_ext <<_ACEOF
13916 /* confdefs.h.  */
13917 _ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h.  */
13921
13922 /* Override any GCC internal prototype to avoid an error.
13923    Use char because int might match the return type of a GCC
13924    builtin and then its argument prototype would still apply.  */
13925 #ifdef __cplusplus
13926 extern "C"
13927 #endif
13928 char pthread_getspecific ();
13929 int
13930 main ()
13931 {
13932 return pthread_getspecific ();
13933   ;
13934   return 0;
13935 }
13936 _ACEOF
13937 for ac_lib in '' pthread; do
13938   if test -z "$ac_lib"; then
13939     ac_res="none required"
13940   else
13941     ac_res=-l$ac_lib
13942     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13943   fi
13944   rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (ac_try="$ac_link"
13946 case "(($ac_try" in
13947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948   *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951   (eval "$ac_link") 2>conftest.er1
13952   ac_status=$?
13953   grep -v '^ *+' conftest.er1 >conftest.err
13954   rm -f conftest.er1
13955   cat conftest.err >&5
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); } &&
13958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959   { (case "(($ac_try" in
13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961   *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964   (eval "$ac_try") 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }; } &&
13968          { ac_try='test -s conftest$ac_exeext'
13969   { (case "(($ac_try" in
13970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971   *) ac_try_echo=$ac_try;;
13972 esac
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974   (eval "$ac_try") 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   ac_cv_search_pthread_getspecific=$ac_res
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983
13984 fi
13985
13986 rm -f core conftest.err conftest.$ac_objext \
13987       conftest$ac_exeext
13988   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13989   break
13990 fi
13991 done
13992 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13993   :
13994 else
13995   ac_cv_search_pthread_getspecific=no
13996 fi
13997 rm conftest.$ac_ext
13998 LIBS=$ac_func_search_save_LIBS
13999 fi
14000 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14001 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14002 ac_res=$ac_cv_search_pthread_getspecific
14003 if test "$ac_res" != no; then
14004   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14005
14006 cat >>confdefs.h <<\_ACEOF
14007 #define HAVE_PTHREAD_GETSPECIFIC 1
14008 _ACEOF
14009
14010 fi
14011
14012 fi
14013
14014
14015 # Check whether --with-udis86 was given.
14016 if test "${with_udis86+set}" = set; then
14017   withval=$with_udis86;
14018       USE_UDIS86=1
14019
14020       case "$withval" in
14021         /usr/lib|yes) ;;
14022         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14023       esac
14024
14025 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14026 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14027 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14028   echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030   ac_check_lib_save_LIBS=$LIBS
14031 LIBS="-ludis86  $LIBS"
14032 cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h.  */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h.  */
14038
14039 /* Override any GCC internal prototype to avoid an error.
14040    Use char because int might match the return type of a GCC
14041    builtin and then its argument prototype would still apply.  */
14042 #ifdef __cplusplus
14043 extern "C"
14044 #endif
14045 char ud_init ();
14046 int
14047 main ()
14048 {
14049 return ud_init ();
14050   ;
14051   return 0;
14052 }
14053 _ACEOF
14054 rm -f conftest.$ac_objext conftest$ac_exeext
14055 if { (ac_try="$ac_link"
14056 case "(($ac_try" in
14057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058   *) ac_try_echo=$ac_try;;
14059 esac
14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061   (eval "$ac_link") 2>conftest.er1
14062   ac_status=$?
14063   grep -v '^ *+' conftest.er1 >conftest.err
14064   rm -f conftest.er1
14065   cat conftest.err >&5
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); } &&
14068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14069   { (case "(($ac_try" in
14070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071   *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074   (eval "$ac_try") 2>&5
14075   ac_status=$?
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); }; } &&
14078          { ac_try='test -s conftest$ac_exeext'
14079   { (case "(($ac_try" in
14080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081   *) ac_try_echo=$ac_try;;
14082 esac
14083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084   (eval "$ac_try") 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); }; }; then
14088   ac_cv_lib_udis86_ud_init=yes
14089 else
14090   echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093         ac_cv_lib_udis86_ud_init=no
14094 fi
14095
14096 rm -f core conftest.err conftest.$ac_objext \
14097       conftest$ac_exeext conftest.$ac_ext
14098 LIBS=$ac_check_lib_save_LIBS
14099 fi
14100 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14101 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14102 if test $ac_cv_lib_udis86_ud_init = yes; then
14103   cat >>confdefs.h <<_ACEOF
14104 #define HAVE_LIBUDIS86 1
14105 _ACEOF
14106
14107   LIBS="-ludis86 $LIBS"
14108
14109 else
14110
14111         echo "Error! You need to have libudis86 around."
14112         exit -1
14113
14114 fi
14115
14116
14117 else
14118   USE_UDIS86=0
14119
14120 fi
14121
14122
14123 cat >>confdefs.h <<_ACEOF
14124 #define USE_UDIS86 $USE_UDIS86
14125 _ACEOF
14126
14127
14128
14129 # Check whether --with-oprofile was given.
14130 if test "${with_oprofile+set}" = set; then
14131   withval=$with_oprofile;
14132       USE_OPROFILE=1
14133
14134       case "$withval" in
14135         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14136         no) llvm_cv_oppath=
14137             USE_OPROFILE=0
14138  ;;
14139         *) llvm_cv_oppath="${withval}/lib/oprofile"
14140            CPPFLAGS="-I${withval}/include";;
14141       esac
14142       if test -n "$llvm_cv_oppath" ; then
14143         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14144                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14145 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14146 if test "${ac_cv_search_bfd_init+set}" = set; then
14147   echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149   ac_func_search_save_LIBS=$LIBS
14150 cat >conftest.$ac_ext <<_ACEOF
14151 /* confdefs.h.  */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h.  */
14156
14157 /* Override any GCC internal prototype to avoid an error.
14158    Use char because int might match the return type of a GCC
14159    builtin and then its argument prototype would still apply.  */
14160 #ifdef __cplusplus
14161 extern "C"
14162 #endif
14163 char bfd_init ();
14164 int
14165 main ()
14166 {
14167 return bfd_init ();
14168   ;
14169   return 0;
14170 }
14171 _ACEOF
14172 for ac_lib in '' bfd; do
14173   if test -z "$ac_lib"; then
14174     ac_res="none required"
14175   else
14176     ac_res=-l$ac_lib
14177     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14178   fi
14179   rm -f conftest.$ac_objext conftest$ac_exeext
14180 if { (ac_try="$ac_link"
14181 case "(($ac_try" in
14182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183   *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186   (eval "$ac_link") 2>conftest.er1
14187   ac_status=$?
14188   grep -v '^ *+' conftest.er1 >conftest.err
14189   rm -f conftest.er1
14190   cat conftest.err >&5
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } &&
14193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14194   { (case "(($ac_try" in
14195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196   *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199   (eval "$ac_try") 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; } &&
14203          { ac_try='test -s conftest$ac_exeext'
14204   { (case "(($ac_try" in
14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206   *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209   (eval "$ac_try") 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; }; then
14213   ac_cv_search_bfd_init=$ac_res
14214 else
14215   echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14217
14218
14219 fi
14220
14221 rm -f core conftest.err conftest.$ac_objext \
14222       conftest$ac_exeext
14223   if test "${ac_cv_search_bfd_init+set}" = set; then
14224   break
14225 fi
14226 done
14227 if test "${ac_cv_search_bfd_init+set}" = set; then
14228   :
14229 else
14230   ac_cv_search_bfd_init=no
14231 fi
14232 rm conftest.$ac_ext
14233 LIBS=$ac_func_search_save_LIBS
14234 fi
14235 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14236 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14237 ac_res=$ac_cv_search_bfd_init
14238 if test "$ac_res" != no; then
14239   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14240
14241 fi
14242
14243         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14244 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14245 if test "${ac_cv_search_op_open_agent+set}" = set; then
14246   echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248   ac_func_search_save_LIBS=$LIBS
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h.  */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h.  */
14255
14256 /* Override any GCC internal prototype to avoid an error.
14257    Use char because int might match the return type of a GCC
14258    builtin and then its argument prototype would still apply.  */
14259 #ifdef __cplusplus
14260 extern "C"
14261 #endif
14262 char op_open_agent ();
14263 int
14264 main ()
14265 {
14266 return op_open_agent ();
14267   ;
14268   return 0;
14269 }
14270 _ACEOF
14271 for ac_lib in '' opagent; do
14272   if test -z "$ac_lib"; then
14273     ac_res="none required"
14274   else
14275     ac_res=-l$ac_lib
14276     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14277   fi
14278   rm -f conftest.$ac_objext conftest$ac_exeext
14279 if { (ac_try="$ac_link"
14280 case "(($ac_try" in
14281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282   *) ac_try_echo=$ac_try;;
14283 esac
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285   (eval "$ac_link") 2>conftest.er1
14286   ac_status=$?
14287   grep -v '^ *+' conftest.er1 >conftest.err
14288   rm -f conftest.er1
14289   cat conftest.err >&5
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); } &&
14292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14293   { (case "(($ac_try" in
14294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295   *) ac_try_echo=$ac_try;;
14296 esac
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298   (eval "$ac_try") 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); }; } &&
14302          { ac_try='test -s conftest$ac_exeext'
14303   { (case "(($ac_try" in
14304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305   *) ac_try_echo=$ac_try;;
14306 esac
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308   (eval "$ac_try") 2>&5
14309   ac_status=$?
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); }; }; then
14312   ac_cv_search_op_open_agent=$ac_res
14313 else
14314   echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14316
14317
14318 fi
14319
14320 rm -f core conftest.err conftest.$ac_objext \
14321       conftest$ac_exeext
14322   if test "${ac_cv_search_op_open_agent+set}" = set; then
14323   break
14324 fi
14325 done
14326 if test "${ac_cv_search_op_open_agent+set}" = set; then
14327   :
14328 else
14329   ac_cv_search_op_open_agent=no
14330 fi
14331 rm conftest.$ac_ext
14332 LIBS=$ac_func_search_save_LIBS
14333 fi
14334 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14335 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14336 ac_res=$ac_cv_search_op_open_agent
14337 if test "$ac_res" != no; then
14338   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14339
14340 else
14341
14342           echo "Error! You need to have libopagent around."
14343           exit -1
14344
14345 fi
14346
14347         if test "${ac_cv_header_opagent_h+set}" = set; then
14348   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14349 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14350 if test "${ac_cv_header_opagent_h+set}" = set; then
14351   echo $ECHO_N "(cached) $ECHO_C" >&6
14352 fi
14353 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14354 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14355 else
14356   # Is the header compilable?
14357 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14358 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 $ac_includes_default
14366 #include <opagent.h>
14367 _ACEOF
14368 rm -f conftest.$ac_objext
14369 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14376   ac_status=$?
14377   grep -v '^ *+' conftest.er1 >conftest.err
14378   rm -f conftest.er1
14379   cat conftest.err >&5
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); } &&
14382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383   { (case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388   (eval "$ac_try") 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest.$ac_objext'
14393   { (case "(($ac_try" in
14394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395   *) ac_try_echo=$ac_try;;
14396 esac
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398   (eval "$ac_try") 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; }; then
14402   ac_header_compiler=yes
14403 else
14404   echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14406
14407         ac_header_compiler=no
14408 fi
14409
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412 echo "${ECHO_T}$ac_header_compiler" >&6; }
14413
14414 # Is the header present?
14415 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14416 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h.  */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h.  */
14423 #include <opagent.h>
14424 _ACEOF
14425 if { (ac_try="$ac_cpp conftest.$ac_ext"
14426 case "(($ac_try" in
14427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428   *) ac_try_echo=$ac_try;;
14429 esac
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14432   ac_status=$?
14433   grep -v '^ *+' conftest.er1 >conftest.err
14434   rm -f conftest.er1
14435   cat conftest.err >&5
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); } >/dev/null; then
14438   if test -s conftest.err; then
14439     ac_cpp_err=$ac_c_preproc_warn_flag
14440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14441   else
14442     ac_cpp_err=
14443   fi
14444 else
14445   ac_cpp_err=yes
14446 fi
14447 if test -z "$ac_cpp_err"; then
14448   ac_header_preproc=yes
14449 else
14450   echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14452
14453   ac_header_preproc=no
14454 fi
14455
14456 rm -f conftest.err conftest.$ac_ext
14457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14458 echo "${ECHO_T}$ac_header_preproc" >&6; }
14459
14460 # So?  What about this header?
14461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14462   yes:no: )
14463     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14464 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14465     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14466 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14467     ac_header_preproc=yes
14468     ;;
14469   no:yes:* )
14470     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14471 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14472     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14473 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14474     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14475 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14476     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14477 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14478     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14479 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14480     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14481 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14482     ( cat <<\_ASBOX
14483 ## ----------------------------------- ##
14484 ## Report this to llvmbugs@cs.uiuc.edu ##
14485 ## ----------------------------------- ##
14486 _ASBOX
14487      ) | sed "s/^/$as_me: WARNING:     /" >&2
14488     ;;
14489 esac
14490 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14491 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14492 if test "${ac_cv_header_opagent_h+set}" = set; then
14493   echo $ECHO_N "(cached) $ECHO_C" >&6
14494 else
14495   ac_cv_header_opagent_h=$ac_header_preproc
14496 fi
14497 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14498 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14499
14500 fi
14501 if test $ac_cv_header_opagent_h = yes; then
14502   :
14503 else
14504
14505           echo "Error! You need to have opagent.h around."
14506           exit -1
14507
14508 fi
14509
14510
14511       fi
14512
14513 else
14514
14515       USE_OPROFILE=0
14516
14517
14518 fi
14519
14520
14521 cat >>confdefs.h <<_ACEOF
14522 #define USE_OPROFILE $USE_OPROFILE
14523 _ACEOF
14524
14525
14526
14527
14528
14529
14530
14531
14532 ac_header_dirent=no
14533 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14534   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14535 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14536 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h.  */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h.  */
14546 #include <sys/types.h>
14547 #include <$ac_hdr>
14548
14549 int
14550 main ()
14551 {
14552 if ((DIR *) 0)
14553 return 0;
14554   ;
14555   return 0;
14556 }
14557 _ACEOF
14558 rm -f conftest.$ac_objext
14559 if { (ac_try="$ac_compile"
14560 case "(($ac_try" in
14561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562   *) ac_try_echo=$ac_try;;
14563 esac
14564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565   (eval "$ac_compile") 2>conftest.er1
14566   ac_status=$?
14567   grep -v '^ *+' conftest.er1 >conftest.err
14568   rm -f conftest.er1
14569   cat conftest.err >&5
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); } &&
14572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573   { (case "(($ac_try" in
14574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575   *) ac_try_echo=$ac_try;;
14576 esac
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578   (eval "$ac_try") 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; } &&
14582          { ac_try='test -s conftest.$ac_objext'
14583   { (case "(($ac_try" in
14584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585   *) ac_try_echo=$ac_try;;
14586 esac
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588   (eval "$ac_try") 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   eval "$as_ac_Header=yes"
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597         eval "$as_ac_Header=no"
14598 fi
14599
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 fi
14602 ac_res=`eval echo '${'$as_ac_Header'}'`
14603                { echo "$as_me:$LINENO: result: $ac_res" >&5
14604 echo "${ECHO_T}$ac_res" >&6; }
14605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14606   cat >>confdefs.h <<_ACEOF
14607 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14608 _ACEOF
14609
14610 ac_header_dirent=$ac_hdr; break
14611 fi
14612
14613 done
14614 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14615 if test $ac_header_dirent = dirent.h; then
14616   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14617 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14618 if test "${ac_cv_search_opendir+set}" = set; then
14619   echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621   ac_func_search_save_LIBS=$LIBS
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h.  */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h.  */
14628
14629 /* Override any GCC internal prototype to avoid an error.
14630    Use char because int might match the return type of a GCC
14631    builtin and then its argument prototype would still apply.  */
14632 #ifdef __cplusplus
14633 extern "C"
14634 #endif
14635 char opendir ();
14636 int
14637 main ()
14638 {
14639 return opendir ();
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 for ac_lib in '' dir; do
14645   if test -z "$ac_lib"; then
14646     ac_res="none required"
14647   else
14648     ac_res=-l$ac_lib
14649     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14650   fi
14651   rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (ac_try="$ac_link"
14653 case "(($ac_try" in
14654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655   *) ac_try_echo=$ac_try;;
14656 esac
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658   (eval "$ac_link") 2>conftest.er1
14659   ac_status=$?
14660   grep -v '^ *+' conftest.er1 >conftest.err
14661   rm -f conftest.er1
14662   cat conftest.err >&5
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); } &&
14665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14666   { (case "(($ac_try" in
14667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668   *) ac_try_echo=$ac_try;;
14669 esac
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671   (eval "$ac_try") 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; } &&
14675          { ac_try='test -s conftest$ac_exeext'
14676   { (case "(($ac_try" in
14677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678   *) ac_try_echo=$ac_try;;
14679 esac
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681   (eval "$ac_try") 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; }; then
14685   ac_cv_search_opendir=$ac_res
14686 else
14687   echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690
14691 fi
14692
14693 rm -f core conftest.err conftest.$ac_objext \
14694       conftest$ac_exeext
14695   if test "${ac_cv_search_opendir+set}" = set; then
14696   break
14697 fi
14698 done
14699 if test "${ac_cv_search_opendir+set}" = set; then
14700   :
14701 else
14702   ac_cv_search_opendir=no
14703 fi
14704 rm conftest.$ac_ext
14705 LIBS=$ac_func_search_save_LIBS
14706 fi
14707 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14708 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14709 ac_res=$ac_cv_search_opendir
14710 if test "$ac_res" != no; then
14711   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14712
14713 fi
14714
14715 else
14716   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14717 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14718 if test "${ac_cv_search_opendir+set}" = set; then
14719   echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721   ac_func_search_save_LIBS=$LIBS
14722 cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h.  */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h.  */
14728
14729 /* Override any GCC internal prototype to avoid an error.
14730    Use char because int might match the return type of a GCC
14731    builtin and then its argument prototype would still apply.  */
14732 #ifdef __cplusplus
14733 extern "C"
14734 #endif
14735 char opendir ();
14736 int
14737 main ()
14738 {
14739 return opendir ();
14740   ;
14741   return 0;
14742 }
14743 _ACEOF
14744 for ac_lib in '' x; do
14745   if test -z "$ac_lib"; then
14746     ac_res="none required"
14747   else
14748     ac_res=-l$ac_lib
14749     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14750   fi
14751   rm -f conftest.$ac_objext conftest$ac_exeext
14752 if { (ac_try="$ac_link"
14753 case "(($ac_try" in
14754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755   *) ac_try_echo=$ac_try;;
14756 esac
14757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758   (eval "$ac_link") 2>conftest.er1
14759   ac_status=$?
14760   grep -v '^ *+' conftest.er1 >conftest.err
14761   rm -f conftest.er1
14762   cat conftest.err >&5
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); } &&
14765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14766   { (case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_try") 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); }; } &&
14775          { ac_try='test -s conftest$ac_exeext'
14776   { (case "(($ac_try" in
14777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778   *) ac_try_echo=$ac_try;;
14779 esac
14780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781   (eval "$ac_try") 2>&5
14782   ac_status=$?
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); }; }; then
14785   ac_cv_search_opendir=$ac_res
14786 else
14787   echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14789
14790
14791 fi
14792
14793 rm -f core conftest.err conftest.$ac_objext \
14794       conftest$ac_exeext
14795   if test "${ac_cv_search_opendir+set}" = set; then
14796   break
14797 fi
14798 done
14799 if test "${ac_cv_search_opendir+set}" = set; then
14800   :
14801 else
14802   ac_cv_search_opendir=no
14803 fi
14804 rm conftest.$ac_ext
14805 LIBS=$ac_func_search_save_LIBS
14806 fi
14807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14809 ac_res=$ac_cv_search_opendir
14810 if test "$ac_res" != no; then
14811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14812
14813 fi
14814
14815 fi
14816
14817 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14818 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14819 if test "${ac_cv_header_mmap_anon+set}" = set; then
14820   echo $ECHO_N "(cached) $ECHO_C" >&6
14821 else
14822    ac_ext=c
14823 ac_cpp='$CPP $CPPFLAGS'
14824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14827
14828   cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h.  */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h.  */
14834 #include <sys/mman.h>
14835 #include <unistd.h>
14836 #include <fcntl.h>
14837 int
14838 main ()
14839 {
14840 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14841   ;
14842   return 0;
14843 }
14844 _ACEOF
14845 rm -f conftest.$ac_objext
14846 if { (ac_try="$ac_compile"
14847 case "(($ac_try" in
14848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849   *) ac_try_echo=$ac_try;;
14850 esac
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852   (eval "$ac_compile") 2>conftest.er1
14853   ac_status=$?
14854   grep -v '^ *+' conftest.er1 >conftest.err
14855   rm -f conftest.er1
14856   cat conftest.err >&5
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); } &&
14859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860   { (case "(($ac_try" in
14861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862   *) ac_try_echo=$ac_try;;
14863 esac
14864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865   (eval "$ac_try") 2>&5
14866   ac_status=$?
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); }; } &&
14869          { ac_try='test -s conftest.$ac_objext'
14870   { (case "(($ac_try" in
14871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872   *) ac_try_echo=$ac_try;;
14873 esac
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875   (eval "$ac_try") 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); }; }; then
14879   ac_cv_header_mmap_anon=yes
14880 else
14881   echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884         ac_cv_header_mmap_anon=no
14885 fi
14886
14887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14888   ac_ext=c
14889 ac_cpp='$CPP $CPPFLAGS'
14890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893
14894
14895 fi
14896 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14897 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14898 if test "$ac_cv_header_mmap_anon" = yes; then
14899
14900 cat >>confdefs.h <<\_ACEOF
14901 #define HAVE_MMAP_ANONYMOUS 1
14902 _ACEOF
14903
14904 fi
14905
14906 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14907 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14908 if test "${ac_cv_header_stat_broken+set}" = set; then
14909   echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
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 <sys/types.h>
14918 #include <sys/stat.h>
14919
14920 #if defined S_ISBLK && defined S_IFDIR
14921 # if S_ISBLK (S_IFDIR)
14922 You lose.
14923 # endif
14924 #endif
14925
14926 #if defined S_ISBLK && defined S_IFCHR
14927 # if S_ISBLK (S_IFCHR)
14928 You lose.
14929 # endif
14930 #endif
14931
14932 #if defined S_ISLNK && defined S_IFREG
14933 # if S_ISLNK (S_IFREG)
14934 You lose.
14935 # endif
14936 #endif
14937
14938 #if defined S_ISSOCK && defined S_IFREG
14939 # if S_ISSOCK (S_IFREG)
14940 You lose.
14941 # endif
14942 #endif
14943
14944 _ACEOF
14945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14946   $EGREP "You lose" >/dev/null 2>&1; then
14947   ac_cv_header_stat_broken=yes
14948 else
14949   ac_cv_header_stat_broken=no
14950 fi
14951 rm -f conftest*
14952
14953 fi
14954 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14955 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14956 if test $ac_cv_header_stat_broken = yes; then
14957
14958 cat >>confdefs.h <<\_ACEOF
14959 #define STAT_MACROS_BROKEN 1
14960 _ACEOF
14961
14962 fi
14963
14964 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14965 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14966 if test "${ac_cv_header_stdc+set}" = set; then
14967   echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969   cat >conftest.$ac_ext <<_ACEOF
14970 /* confdefs.h.  */
14971 _ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h.  */
14975 #include <stdlib.h>
14976 #include <stdarg.h>
14977 #include <string.h>
14978 #include <float.h>
14979
14980 int
14981 main ()
14982 {
14983
14984   ;
14985   return 0;
14986 }
14987 _ACEOF
14988 rm -f conftest.$ac_objext
14989 if { (ac_try="$ac_compile"
14990 case "(($ac_try" in
14991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992   *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995   (eval "$ac_compile") 2>conftest.er1
14996   ac_status=$?
14997   grep -v '^ *+' conftest.er1 >conftest.err
14998   rm -f conftest.er1
14999   cat conftest.err >&5
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } &&
15002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003   { (case "(($ac_try" in
15004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005   *) ac_try_echo=$ac_try;;
15006 esac
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008   (eval "$ac_try") 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; } &&
15012          { ac_try='test -s conftest.$ac_objext'
15013   { (case "(($ac_try" in
15014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015   *) ac_try_echo=$ac_try;;
15016 esac
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018   (eval "$ac_try") 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); }; }; then
15022   ac_cv_header_stdc=yes
15023 else
15024   echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15026
15027         ac_cv_header_stdc=no
15028 fi
15029
15030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15031
15032 if test $ac_cv_header_stdc = yes; then
15033   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15034   cat >conftest.$ac_ext <<_ACEOF
15035 /* confdefs.h.  */
15036 _ACEOF
15037 cat confdefs.h >>conftest.$ac_ext
15038 cat >>conftest.$ac_ext <<_ACEOF
15039 /* end confdefs.h.  */
15040 #include <string.h>
15041
15042 _ACEOF
15043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15044   $EGREP "memchr" >/dev/null 2>&1; then
15045   :
15046 else
15047   ac_cv_header_stdc=no
15048 fi
15049 rm -f conftest*
15050
15051 fi
15052
15053 if test $ac_cv_header_stdc = yes; then
15054   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15055   cat >conftest.$ac_ext <<_ACEOF
15056 /* confdefs.h.  */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h.  */
15061 #include <stdlib.h>
15062
15063 _ACEOF
15064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15065   $EGREP "free" >/dev/null 2>&1; then
15066   :
15067 else
15068   ac_cv_header_stdc=no
15069 fi
15070 rm -f conftest*
15071
15072 fi
15073
15074 if test $ac_cv_header_stdc = yes; then
15075   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15076   if test "$cross_compiling" = yes; then
15077   :
15078 else
15079   cat >conftest.$ac_ext <<_ACEOF
15080 /* confdefs.h.  */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h.  */
15085 #include <ctype.h>
15086 #include <stdlib.h>
15087 #if ((' ' & 0x0FF) == 0x020)
15088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15090 #else
15091 # define ISLOWER(c) \
15092                    (('a' <= (c) && (c) <= 'i') \
15093                      || ('j' <= (c) && (c) <= 'r') \
15094                      || ('s' <= (c) && (c) <= 'z'))
15095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15096 #endif
15097
15098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15099 int
15100 main ()
15101 {
15102   int i;
15103   for (i = 0; i < 256; i++)
15104     if (XOR (islower (i), ISLOWER (i))
15105         || toupper (i) != TOUPPER (i))
15106       return 2;
15107   return 0;
15108 }
15109 _ACEOF
15110 rm -f conftest$ac_exeext
15111 if { (ac_try="$ac_link"
15112 case "(($ac_try" in
15113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114   *) ac_try_echo=$ac_try;;
15115 esac
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117   (eval "$ac_link") 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15121   { (case "(($ac_try" in
15122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123   *) ac_try_echo=$ac_try;;
15124 esac
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126   (eval "$ac_try") 2>&5
15127   ac_status=$?
15128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); }; }; then
15130   :
15131 else
15132   echo "$as_me: program exited with status $ac_status" >&5
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15135
15136 ( exit $ac_status )
15137 ac_cv_header_stdc=no
15138 fi
15139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15140 fi
15141
15142
15143 fi
15144 fi
15145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15147 if test $ac_cv_header_stdc = yes; then
15148
15149 cat >>confdefs.h <<\_ACEOF
15150 #define STDC_HEADERS 1
15151 _ACEOF
15152
15153 fi
15154
15155 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15156 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15157 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15158   echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160   cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h.  */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h.  */
15166 #include <sys/types.h>
15167 #include <sys/wait.h>
15168 #ifndef WEXITSTATUS
15169 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15170 #endif
15171 #ifndef WIFEXITED
15172 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15173 #endif
15174
15175 int
15176 main ()
15177 {
15178   int s;
15179   wait (&s);
15180   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15181   ;
15182   return 0;
15183 }
15184 _ACEOF
15185 rm -f conftest.$ac_objext
15186 if { (ac_try="$ac_compile"
15187 case "(($ac_try" in
15188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189   *) ac_try_echo=$ac_try;;
15190 esac
15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192   (eval "$ac_compile") 2>conftest.er1
15193   ac_status=$?
15194   grep -v '^ *+' conftest.er1 >conftest.err
15195   rm -f conftest.er1
15196   cat conftest.err >&5
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); } &&
15199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15200   { (case "(($ac_try" in
15201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202   *) ac_try_echo=$ac_try;;
15203 esac
15204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205   (eval "$ac_try") 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; } &&
15209          { ac_try='test -s conftest.$ac_objext'
15210   { (case "(($ac_try" in
15211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212   *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215   (eval "$ac_try") 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }; }; then
15219   ac_cv_header_sys_wait_h=yes
15220 else
15221   echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15223
15224         ac_cv_header_sys_wait_h=no
15225 fi
15226
15227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15228 fi
15229 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15230 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15231 if test $ac_cv_header_sys_wait_h = yes; then
15232
15233 cat >>confdefs.h <<\_ACEOF
15234 #define HAVE_SYS_WAIT_H 1
15235 _ACEOF
15236
15237 fi
15238
15239 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15240 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15241 if test "${ac_cv_header_time+set}" = set; then
15242   echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244   cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h.  */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h.  */
15250 #include <sys/types.h>
15251 #include <sys/time.h>
15252 #include <time.h>
15253
15254 int
15255 main ()
15256 {
15257 if ((struct tm *) 0)
15258 return 0;
15259   ;
15260   return 0;
15261 }
15262 _ACEOF
15263 rm -f conftest.$ac_objext
15264 if { (ac_try="$ac_compile"
15265 case "(($ac_try" in
15266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267   *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270   (eval "$ac_compile") 2>conftest.er1
15271   ac_status=$?
15272   grep -v '^ *+' conftest.er1 >conftest.err
15273   rm -f conftest.er1
15274   cat conftest.err >&5
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); } &&
15277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15278   { (case "(($ac_try" in
15279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280   *) ac_try_echo=$ac_try;;
15281 esac
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283   (eval "$ac_try") 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; } &&
15287          { ac_try='test -s conftest.$ac_objext'
15288   { (case "(($ac_try" in
15289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290   *) ac_try_echo=$ac_try;;
15291 esac
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293   (eval "$ac_try") 2>&5
15294   ac_status=$?
15295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296   (exit $ac_status); }; }; then
15297   ac_cv_header_time=yes
15298 else
15299   echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15301
15302         ac_cv_header_time=no
15303 fi
15304
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306 fi
15307 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15308 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15309 if test $ac_cv_header_time = yes; then
15310
15311 cat >>confdefs.h <<\_ACEOF
15312 #define TIME_WITH_SYS_TIME 1
15313 _ACEOF
15314
15315 fi
15316
15317
15318
15319
15320
15321
15322
15323
15324 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15325 do
15326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 fi
15333 ac_res=`eval echo '${'$as_ac_Header'}'`
15334                { echo "$as_me:$LINENO: result: $ac_res" >&5
15335 echo "${ECHO_T}$ac_res" >&6; }
15336 else
15337   # Is the header compilable?
15338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15340 cat >conftest.$ac_ext <<_ACEOF
15341 /* confdefs.h.  */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h.  */
15346 $ac_includes_default
15347 #include <$ac_header>
15348 _ACEOF
15349 rm -f conftest.$ac_objext
15350 if { (ac_try="$ac_compile"
15351 case "(($ac_try" in
15352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353   *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356   (eval "$ac_compile") 2>conftest.er1
15357   ac_status=$?
15358   grep -v '^ *+' conftest.er1 >conftest.err
15359   rm -f conftest.er1
15360   cat conftest.err >&5
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } &&
15363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364   { (case "(($ac_try" in
15365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366   *) ac_try_echo=$ac_try;;
15367 esac
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369   (eval "$ac_try") 2>&5
15370   ac_status=$?
15371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372   (exit $ac_status); }; } &&
15373          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15380   ac_status=$?
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); }; }; then
15383   ac_header_compiler=yes
15384 else
15385   echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15387
15388         ac_header_compiler=no
15389 fi
15390
15391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15393 echo "${ECHO_T}$ac_header_compiler" >&6; }
15394
15395 # Is the header present?
15396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15398 cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h.  */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h.  */
15404 #include <$ac_header>
15405 _ACEOF
15406 if { (ac_try="$ac_cpp conftest.$ac_ext"
15407 case "(($ac_try" in
15408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409   *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15413   ac_status=$?
15414   grep -v '^ *+' conftest.er1 >conftest.err
15415   rm -f conftest.er1
15416   cat conftest.err >&5
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); } >/dev/null; then
15419   if test -s conftest.err; then
15420     ac_cpp_err=$ac_c_preproc_warn_flag
15421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15422   else
15423     ac_cpp_err=
15424   fi
15425 else
15426   ac_cpp_err=yes
15427 fi
15428 if test -z "$ac_cpp_err"; then
15429   ac_header_preproc=yes
15430 else
15431   echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15433
15434   ac_header_preproc=no
15435 fi
15436
15437 rm -f conftest.err conftest.$ac_ext
15438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15439 echo "${ECHO_T}$ac_header_preproc" >&6; }
15440
15441 # So?  What about this header?
15442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15443   yes:no: )
15444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15448     ac_header_preproc=yes
15449     ;;
15450   no:yes:* )
15451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15463     ( cat <<\_ASBOX
15464 ## ----------------------------------- ##
15465 ## Report this to llvmbugs@cs.uiuc.edu ##
15466 ## ----------------------------------- ##
15467 _ASBOX
15468      ) | sed "s/^/$as_me: WARNING:     /" >&2
15469     ;;
15470 esac
15471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476   eval "$as_ac_Header=\$ac_header_preproc"
15477 fi
15478 ac_res=`eval echo '${'$as_ac_Header'}'`
15479                { echo "$as_me:$LINENO: result: $ac_res" >&5
15480 echo "${ECHO_T}$ac_res" >&6; }
15481
15482 fi
15483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15484   cat >>confdefs.h <<_ACEOF
15485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15486 _ACEOF
15487
15488 fi
15489
15490 done
15491
15492
15493
15494
15495
15496
15497
15498 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15499 do
15500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505   echo $ECHO_N "(cached) $ECHO_C" >&6
15506 fi
15507 ac_res=`eval echo '${'$as_ac_Header'}'`
15508                { echo "$as_me:$LINENO: result: $ac_res" >&5
15509 echo "${ECHO_T}$ac_res" >&6; }
15510 else
15511   # Is the header compilable?
15512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h.  */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h.  */
15520 $ac_includes_default
15521 #include <$ac_header>
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527   *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530   (eval "$ac_compile") 2>conftest.er1
15531   ac_status=$?
15532   grep -v '^ *+' conftest.er1 >conftest.err
15533   rm -f conftest.er1
15534   cat conftest.err >&5
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); } &&
15537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15538   { (case "(($ac_try" in
15539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540   *) ac_try_echo=$ac_try;;
15541 esac
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543   (eval "$ac_try") 2>&5
15544   ac_status=$?
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); }; } &&
15547          { ac_try='test -s conftest.$ac_objext'
15548   { (case "(($ac_try" in
15549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550   *) ac_try_echo=$ac_try;;
15551 esac
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553   (eval "$ac_try") 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); }; }; then
15557   ac_header_compiler=yes
15558 else
15559   echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15561
15562         ac_header_compiler=no
15563 fi
15564
15565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15567 echo "${ECHO_T}$ac_header_compiler" >&6; }
15568
15569 # Is the header present?
15570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h.  */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h.  */
15578 #include <$ac_header>
15579 _ACEOF
15580 if { (ac_try="$ac_cpp conftest.$ac_ext"
15581 case "(($ac_try" in
15582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583   *) ac_try_echo=$ac_try;;
15584 esac
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15587   ac_status=$?
15588   grep -v '^ *+' conftest.er1 >conftest.err
15589   rm -f conftest.er1
15590   cat conftest.err >&5
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); } >/dev/null; then
15593   if test -s conftest.err; then
15594     ac_cpp_err=$ac_c_preproc_warn_flag
15595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15596   else
15597     ac_cpp_err=
15598   fi
15599 else
15600   ac_cpp_err=yes
15601 fi
15602 if test -z "$ac_cpp_err"; then
15603   ac_header_preproc=yes
15604 else
15605   echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15607
15608   ac_header_preproc=no
15609 fi
15610
15611 rm -f conftest.err conftest.$ac_ext
15612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15613 echo "${ECHO_T}$ac_header_preproc" >&6; }
15614
15615 # So?  What about this header?
15616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15617   yes:no: )
15618     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15622     ac_header_preproc=yes
15623     ;;
15624   no:yes:* )
15625     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15627     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15628 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15629     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15631     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15632 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15635     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15637     ( cat <<\_ASBOX
15638 ## ----------------------------------- ##
15639 ## Report this to llvmbugs@cs.uiuc.edu ##
15640 ## ----------------------------------- ##
15641 _ASBOX
15642      ) | sed "s/^/$as_me: WARNING:     /" >&2
15643     ;;
15644 esac
15645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648   echo $ECHO_N "(cached) $ECHO_C" >&6
15649 else
15650   eval "$as_ac_Header=\$ac_header_preproc"
15651 fi
15652 ac_res=`eval echo '${'$as_ac_Header'}'`
15653                { echo "$as_me:$LINENO: result: $ac_res" >&5
15654 echo "${ECHO_T}$ac_res" >&6; }
15655
15656 fi
15657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15658   cat >>confdefs.h <<_ACEOF
15659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15660 _ACEOF
15661
15662 fi
15663
15664 done
15665
15666
15667
15668 for ac_header in utime.h windows.h
15669 do
15670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15672   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 fi
15677 ac_res=`eval echo '${'$as_ac_Header'}'`
15678                { echo "$as_me:$LINENO: result: $ac_res" >&5
15679 echo "${ECHO_T}$ac_res" >&6; }
15680 else
15681   # Is the header compilable?
15682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15684 cat >conftest.$ac_ext <<_ACEOF
15685 /* confdefs.h.  */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h.  */
15690 $ac_includes_default
15691 #include <$ac_header>
15692 _ACEOF
15693 rm -f conftest.$ac_objext
15694 if { (ac_try="$ac_compile"
15695 case "(($ac_try" in
15696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697   *) ac_try_echo=$ac_try;;
15698 esac
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700   (eval "$ac_compile") 2>conftest.er1
15701   ac_status=$?
15702   grep -v '^ *+' conftest.er1 >conftest.err
15703   rm -f conftest.er1
15704   cat conftest.err >&5
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); } &&
15707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15708   { (case "(($ac_try" in
15709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15710   *) ac_try_echo=$ac_try;;
15711 esac
15712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15713   (eval "$ac_try") 2>&5
15714   ac_status=$?
15715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); }; } &&
15717          { ac_try='test -s conftest.$ac_objext'
15718   { (case "(($ac_try" in
15719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720   *) ac_try_echo=$ac_try;;
15721 esac
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723   (eval "$ac_try") 2>&5
15724   ac_status=$?
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); }; }; then
15727   ac_header_compiler=yes
15728 else
15729   echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15731
15732         ac_header_compiler=no
15733 fi
15734
15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15737 echo "${ECHO_T}$ac_header_compiler" >&6; }
15738
15739 # Is the header present?
15740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15742 cat >conftest.$ac_ext <<_ACEOF
15743 /* confdefs.h.  */
15744 _ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h.  */
15748 #include <$ac_header>
15749 _ACEOF
15750 if { (ac_try="$ac_cpp conftest.$ac_ext"
15751 case "(($ac_try" in
15752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753   *) ac_try_echo=$ac_try;;
15754 esac
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15757   ac_status=$?
15758   grep -v '^ *+' conftest.er1 >conftest.err
15759   rm -f conftest.er1
15760   cat conftest.err >&5
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } >/dev/null; then
15763   if test -s conftest.err; then
15764     ac_cpp_err=$ac_c_preproc_warn_flag
15765     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15766   else
15767     ac_cpp_err=
15768   fi
15769 else
15770   ac_cpp_err=yes
15771 fi
15772 if test -z "$ac_cpp_err"; then
15773   ac_header_preproc=yes
15774 else
15775   echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778   ac_header_preproc=no
15779 fi
15780
15781 rm -f conftest.err conftest.$ac_ext
15782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15783 echo "${ECHO_T}$ac_header_preproc" >&6; }
15784
15785 # So?  What about this header?
15786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15787   yes:no: )
15788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15792     ac_header_preproc=yes
15793     ;;
15794   no:yes:* )
15795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15807     ( cat <<\_ASBOX
15808 ## ----------------------------------- ##
15809 ## Report this to llvmbugs@cs.uiuc.edu ##
15810 ## ----------------------------------- ##
15811 _ASBOX
15812      ) | sed "s/^/$as_me: WARNING:     /" >&2
15813     ;;
15814 esac
15815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818   echo $ECHO_N "(cached) $ECHO_C" >&6
15819 else
15820   eval "$as_ac_Header=\$ac_header_preproc"
15821 fi
15822 ac_res=`eval echo '${'$as_ac_Header'}'`
15823                { echo "$as_me:$LINENO: result: $ac_res" >&5
15824 echo "${ECHO_T}$ac_res" >&6; }
15825
15826 fi
15827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15828   cat >>confdefs.h <<_ACEOF
15829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15830 _ACEOF
15831
15832 fi
15833
15834 done
15835
15836
15837
15838
15839
15840 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15841 do
15842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
15849 ac_res=`eval echo '${'$as_ac_Header'}'`
15850                { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15852 else
15853   # Is the header compilable?
15854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15856 cat >conftest.$ac_ext <<_ACEOF
15857 /* confdefs.h.  */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h.  */
15862 $ac_includes_default
15863 #include <$ac_header>
15864 _ACEOF
15865 rm -f conftest.$ac_objext
15866 if { (ac_try="$ac_compile"
15867 case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872   (eval "$ac_compile") 2>conftest.er1
15873   ac_status=$?
15874   grep -v '^ *+' conftest.er1 >conftest.err
15875   rm -f conftest.er1
15876   cat conftest.err >&5
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); } &&
15879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15880   { (case "(($ac_try" in
15881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882   *) ac_try_echo=$ac_try;;
15883 esac
15884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885   (eval "$ac_try") 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); }; } &&
15889          { ac_try='test -s conftest.$ac_objext'
15890   { (case "(($ac_try" in
15891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892   *) ac_try_echo=$ac_try;;
15893 esac
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895   (eval "$ac_try") 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899   ac_header_compiler=yes
15900 else
15901   echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904         ac_header_compiler=no
15905 fi
15906
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15909 echo "${ECHO_T}$ac_header_compiler" >&6; }
15910
15911 # Is the header present?
15912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15914 cat >conftest.$ac_ext <<_ACEOF
15915 /* confdefs.h.  */
15916 _ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h.  */
15920 #include <$ac_header>
15921 _ACEOF
15922 if { (ac_try="$ac_cpp conftest.$ac_ext"
15923 case "(($ac_try" in
15924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925   *) ac_try_echo=$ac_try;;
15926 esac
15927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15929   ac_status=$?
15930   grep -v '^ *+' conftest.er1 >conftest.err
15931   rm -f conftest.er1
15932   cat conftest.err >&5
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); } >/dev/null; then
15935   if test -s conftest.err; then
15936     ac_cpp_err=$ac_c_preproc_warn_flag
15937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15938   else
15939     ac_cpp_err=
15940   fi
15941 else
15942   ac_cpp_err=yes
15943 fi
15944 if test -z "$ac_cpp_err"; then
15945   ac_header_preproc=yes
15946 else
15947   echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950   ac_header_preproc=no
15951 fi
15952
15953 rm -f conftest.err conftest.$ac_ext
15954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955 echo "${ECHO_T}$ac_header_preproc" >&6; }
15956
15957 # So?  What about this header?
15958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15959   yes:no: )
15960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15964     ac_header_preproc=yes
15965     ;;
15966   no:yes:* )
15967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15969     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15971     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15973     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15974 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15977     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15979     ( cat <<\_ASBOX
15980 ## ----------------------------------- ##
15981 ## Report this to llvmbugs@cs.uiuc.edu ##
15982 ## ----------------------------------- ##
15983 _ASBOX
15984      ) | sed "s/^/$as_me: WARNING:     /" >&2
15985     ;;
15986 esac
15987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992   eval "$as_ac_Header=\$ac_header_preproc"
15993 fi
15994 ac_res=`eval echo '${'$as_ac_Header'}'`
15995                { echo "$as_me:$LINENO: result: $ac_res" >&5
15996 echo "${ECHO_T}$ac_res" >&6; }
15997
15998 fi
15999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16000   cat >>confdefs.h <<_ACEOF
16001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16002 _ACEOF
16003
16004 fi
16005
16006 done
16007
16008
16009
16010
16011
16012 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16013 do
16014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 fi
16021 ac_res=`eval echo '${'$as_ac_Header'}'`
16022                { echo "$as_me:$LINENO: result: $ac_res" >&5
16023 echo "${ECHO_T}$ac_res" >&6; }
16024 else
16025   # Is the header compilable?
16026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034 $ac_includes_default
16035 #include <$ac_header>
16036 _ACEOF
16037 rm -f conftest.$ac_objext
16038 if { (ac_try="$ac_compile"
16039 case "(($ac_try" in
16040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041   *) ac_try_echo=$ac_try;;
16042 esac
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044   (eval "$ac_compile") 2>conftest.er1
16045   ac_status=$?
16046   grep -v '^ *+' conftest.er1 >conftest.err
16047   rm -f conftest.er1
16048   cat conftest.err >&5
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); } &&
16051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16052   { (case "(($ac_try" in
16053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054   *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057   (eval "$ac_try") 2>&5
16058   ac_status=$?
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); }; } &&
16061          { ac_try='test -s conftest.$ac_objext'
16062   { (case "(($ac_try" in
16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064   *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067   (eval "$ac_try") 2>&5
16068   ac_status=$?
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; }; then
16071   ac_header_compiler=yes
16072 else
16073   echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16075
16076         ac_header_compiler=no
16077 fi
16078
16079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16081 echo "${ECHO_T}$ac_header_compiler" >&6; }
16082
16083 # Is the header present?
16084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16086 cat >conftest.$ac_ext <<_ACEOF
16087 /* confdefs.h.  */
16088 _ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h.  */
16092 #include <$ac_header>
16093 _ACEOF
16094 if { (ac_try="$ac_cpp conftest.$ac_ext"
16095 case "(($ac_try" in
16096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097   *) ac_try_echo=$ac_try;;
16098 esac
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16101   ac_status=$?
16102   grep -v '^ *+' conftest.er1 >conftest.err
16103   rm -f conftest.er1
16104   cat conftest.err >&5
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); } >/dev/null; then
16107   if test -s conftest.err; then
16108     ac_cpp_err=$ac_c_preproc_warn_flag
16109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16110   else
16111     ac_cpp_err=
16112   fi
16113 else
16114   ac_cpp_err=yes
16115 fi
16116 if test -z "$ac_cpp_err"; then
16117   ac_header_preproc=yes
16118 else
16119   echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16121
16122   ac_header_preproc=no
16123 fi
16124
16125 rm -f conftest.err conftest.$ac_ext
16126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16127 echo "${ECHO_T}$ac_header_preproc" >&6; }
16128
16129 # So?  What about this header?
16130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16131   yes:no: )
16132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16136     ac_header_preproc=yes
16137     ;;
16138   no:yes:* )
16139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16151     ( cat <<\_ASBOX
16152 ## ----------------------------------- ##
16153 ## Report this to llvmbugs@cs.uiuc.edu ##
16154 ## ----------------------------------- ##
16155 _ASBOX
16156      ) | sed "s/^/$as_me: WARNING:     /" >&2
16157     ;;
16158 esac
16159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164   eval "$as_ac_Header=\$ac_header_preproc"
16165 fi
16166 ac_res=`eval echo '${'$as_ac_Header'}'`
16167                { echo "$as_me:$LINENO: result: $ac_res" >&5
16168 echo "${ECHO_T}$ac_res" >&6; }
16169
16170 fi
16171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16172   cat >>confdefs.h <<_ACEOF
16173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16174 _ACEOF
16175
16176 fi
16177
16178 done
16179
16180 if test "$ENABLE_THREADS" -eq 1 ; then
16181
16182 for ac_header in pthread.h
16183 do
16184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189   echo $ECHO_N "(cached) $ECHO_C" >&6
16190 fi
16191 ac_res=`eval echo '${'$as_ac_Header'}'`
16192                { echo "$as_me:$LINENO: result: $ac_res" >&5
16193 echo "${ECHO_T}$ac_res" >&6; }
16194 else
16195   # Is the header compilable?
16196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h.  */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h.  */
16204 $ac_includes_default
16205 #include <$ac_header>
16206 _ACEOF
16207 rm -f conftest.$ac_objext
16208 if { (ac_try="$ac_compile"
16209 case "(($ac_try" in
16210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211   *) ac_try_echo=$ac_try;;
16212 esac
16213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214   (eval "$ac_compile") 2>conftest.er1
16215   ac_status=$?
16216   grep -v '^ *+' conftest.er1 >conftest.err
16217   rm -f conftest.er1
16218   cat conftest.err >&5
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); } &&
16221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16222   { (case "(($ac_try" in
16223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224   *) ac_try_echo=$ac_try;;
16225 esac
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227   (eval "$ac_try") 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; } &&
16231          { ac_try='test -s conftest.$ac_objext'
16232   { (case "(($ac_try" in
16233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234   *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237   (eval "$ac_try") 2>&5
16238   ac_status=$?
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); }; }; then
16241   ac_header_compiler=yes
16242 else
16243   echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16245
16246         ac_header_compiler=no
16247 fi
16248
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16251 echo "${ECHO_T}$ac_header_compiler" >&6; }
16252
16253 # Is the header present?
16254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16256 cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h.  */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h.  */
16262 #include <$ac_header>
16263 _ACEOF
16264 if { (ac_try="$ac_cpp conftest.$ac_ext"
16265 case "(($ac_try" in
16266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267   *) ac_try_echo=$ac_try;;
16268 esac
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16271   ac_status=$?
16272   grep -v '^ *+' conftest.er1 >conftest.err
16273   rm -f conftest.er1
16274   cat conftest.err >&5
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); } >/dev/null; then
16277   if test -s conftest.err; then
16278     ac_cpp_err=$ac_c_preproc_warn_flag
16279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16280   else
16281     ac_cpp_err=
16282   fi
16283 else
16284   ac_cpp_err=yes
16285 fi
16286 if test -z "$ac_cpp_err"; then
16287   ac_header_preproc=yes
16288 else
16289   echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16291
16292   ac_header_preproc=no
16293 fi
16294
16295 rm -f conftest.err conftest.$ac_ext
16296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16297 echo "${ECHO_T}$ac_header_preproc" >&6; }
16298
16299 # So?  What about this header?
16300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16301   yes:no: )
16302     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16306     ac_header_preproc=yes
16307     ;;
16308   no:yes:* )
16309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16311     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16312 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16313     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16315     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16316 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16319     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16321     ( cat <<\_ASBOX
16322 ## ----------------------------------- ##
16323 ## Report this to llvmbugs@cs.uiuc.edu ##
16324 ## ----------------------------------- ##
16325 _ASBOX
16326      ) | sed "s/^/$as_me: WARNING:     /" >&2
16327     ;;
16328 esac
16329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332   echo $ECHO_N "(cached) $ECHO_C" >&6
16333 else
16334   eval "$as_ac_Header=\$ac_header_preproc"
16335 fi
16336 ac_res=`eval echo '${'$as_ac_Header'}'`
16337                { echo "$as_me:$LINENO: result: $ac_res" >&5
16338 echo "${ECHO_T}$ac_res" >&6; }
16339
16340 fi
16341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16342   cat >>confdefs.h <<_ACEOF
16343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16344 _ACEOF
16345  HAVE_PTHREAD=1
16346
16347 else
16348   HAVE_PTHREAD=0
16349
16350 fi
16351
16352 done
16353
16354 else
16355   HAVE_PTHREAD=0
16356
16357 fi
16358
16359 if test "$llvm_cv_enable_libffi" = "yes" ; then
16360
16361
16362 for ac_header in ffi.h ffi/ffi.h
16363 do
16364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16369   echo $ECHO_N "(cached) $ECHO_C" >&6
16370 fi
16371 ac_res=`eval echo '${'$as_ac_Header'}'`
16372                { echo "$as_me:$LINENO: result: $ac_res" >&5
16373 echo "${ECHO_T}$ac_res" >&6; }
16374 else
16375   # Is the header compilable?
16376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h.  */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h.  */
16384 $ac_includes_default
16385 #include <$ac_header>
16386 _ACEOF
16387 rm -f conftest.$ac_objext
16388 if { (ac_try="$ac_compile"
16389 case "(($ac_try" in
16390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391   *) ac_try_echo=$ac_try;;
16392 esac
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394   (eval "$ac_compile") 2>conftest.er1
16395   ac_status=$?
16396   grep -v '^ *+' conftest.er1 >conftest.err
16397   rm -f conftest.er1
16398   cat conftest.err >&5
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); } &&
16401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402   { (case "(($ac_try" in
16403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404   *) ac_try_echo=$ac_try;;
16405 esac
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407   (eval "$ac_try") 2>&5
16408   ac_status=$?
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); }; } &&
16411          { ac_try='test -s conftest.$ac_objext'
16412   { (case "(($ac_try" in
16413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414   *) ac_try_echo=$ac_try;;
16415 esac
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417   (eval "$ac_try") 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; }; then
16421   ac_header_compiler=yes
16422 else
16423   echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426         ac_header_compiler=no
16427 fi
16428
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16431 echo "${ECHO_T}$ac_header_compiler" >&6; }
16432
16433 # Is the header present?
16434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h.  */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h.  */
16442 #include <$ac_header>
16443 _ACEOF
16444 if { (ac_try="$ac_cpp conftest.$ac_ext"
16445 case "(($ac_try" in
16446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447   *) ac_try_echo=$ac_try;;
16448 esac
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16451   ac_status=$?
16452   grep -v '^ *+' conftest.er1 >conftest.err
16453   rm -f conftest.er1
16454   cat conftest.err >&5
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); } >/dev/null; then
16457   if test -s conftest.err; then
16458     ac_cpp_err=$ac_c_preproc_warn_flag
16459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16460   else
16461     ac_cpp_err=
16462   fi
16463 else
16464   ac_cpp_err=yes
16465 fi
16466 if test -z "$ac_cpp_err"; then
16467   ac_header_preproc=yes
16468 else
16469   echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472   ac_header_preproc=no
16473 fi
16474
16475 rm -f conftest.err conftest.$ac_ext
16476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16477 echo "${ECHO_T}$ac_header_preproc" >&6; }
16478
16479 # So?  What about this header?
16480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16481   yes:no: )
16482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16486     ac_header_preproc=yes
16487     ;;
16488   no:yes:* )
16489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16501     ( cat <<\_ASBOX
16502 ## ----------------------------------- ##
16503 ## Report this to llvmbugs@cs.uiuc.edu ##
16504 ## ----------------------------------- ##
16505 _ASBOX
16506      ) | sed "s/^/$as_me: WARNING:     /" >&2
16507     ;;
16508 esac
16509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16512   echo $ECHO_N "(cached) $ECHO_C" >&6
16513 else
16514   eval "$as_ac_Header=\$ac_header_preproc"
16515 fi
16516 ac_res=`eval echo '${'$as_ac_Header'}'`
16517                { echo "$as_me:$LINENO: result: $ac_res" >&5
16518 echo "${ECHO_T}$ac_res" >&6; }
16519
16520 fi
16521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16522   cat >>confdefs.h <<_ACEOF
16523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16524 _ACEOF
16525
16526 fi
16527
16528 done
16529
16530 fi
16531
16532
16533
16534
16535   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16536 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16537 if test "${ac_cv_huge_val_sanity+set}" = set; then
16538   echo $ECHO_N "(cached) $ECHO_C" >&6
16539 else
16540
16541     ac_ext=cpp
16542 ac_cpp='$CXXCPP $CPPFLAGS'
16543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16546
16547     CXXFLAGS=-pedantic
16548     if test "$cross_compiling" = yes; then
16549   ac_cv_huge_val_sanity=yes
16550 else
16551   cat >conftest.$ac_ext <<_ACEOF
16552 /* confdefs.h.  */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h.  */
16557 #include <math.h>
16558 int
16559 main ()
16560 {
16561 double x = HUGE_VAL; return x != x;
16562   ;
16563   return 0;
16564 }
16565 _ACEOF
16566 rm -f conftest$ac_exeext
16567 if { (ac_try="$ac_link"
16568 case "(($ac_try" in
16569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570   *) ac_try_echo=$ac_try;;
16571 esac
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573   (eval "$ac_link") 2>&5
16574   ac_status=$?
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16577   { (case "(($ac_try" in
16578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579   *) ac_try_echo=$ac_try;;
16580 esac
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582   (eval "$ac_try") 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   ac_cv_huge_val_sanity=yes
16587 else
16588   echo "$as_me: program exited with status $ac_status" >&5
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 ( exit $ac_status )
16593 ac_cv_huge_val_sanity=no
16594 fi
16595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16596 fi
16597
16598
16599     ac_ext=c
16600 ac_cpp='$CPP $CPPFLAGS'
16601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16604
16605
16606 fi
16607 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16608 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16609   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16610
16611
16612 { echo "$as_me:$LINENO: checking for pid_t" >&5
16613 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16614 if test "${ac_cv_type_pid_t+set}" = set; then
16615   echo $ECHO_N "(cached) $ECHO_C" >&6
16616 else
16617   cat >conftest.$ac_ext <<_ACEOF
16618 /* confdefs.h.  */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h.  */
16623 $ac_includes_default
16624 typedef pid_t ac__type_new_;
16625 int
16626 main ()
16627 {
16628 if ((ac__type_new_ *) 0)
16629   return 0;
16630 if (sizeof (ac__type_new_))
16631   return 0;
16632   ;
16633   return 0;
16634 }
16635 _ACEOF
16636 rm -f conftest.$ac_objext
16637 if { (ac_try="$ac_compile"
16638 case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_compile") 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } &&
16650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16651   { (case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656   (eval "$ac_try") 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; } &&
16660          { ac_try='test -s conftest.$ac_objext'
16661   { (case "(($ac_try" in
16662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663   *) ac_try_echo=$ac_try;;
16664 esac
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666   (eval "$ac_try") 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; }; then
16670   ac_cv_type_pid_t=yes
16671 else
16672   echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675         ac_cv_type_pid_t=no
16676 fi
16677
16678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16679 fi
16680 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16681 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16682 if test $ac_cv_type_pid_t = yes; then
16683   :
16684 else
16685
16686 cat >>confdefs.h <<_ACEOF
16687 #define pid_t int
16688 _ACEOF
16689
16690 fi
16691
16692 { echo "$as_me:$LINENO: checking for size_t" >&5
16693 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16694 if test "${ac_cv_type_size_t+set}" = set; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 else
16697   cat >conftest.$ac_ext <<_ACEOF
16698 /* confdefs.h.  */
16699 _ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h.  */
16703 $ac_includes_default
16704 typedef size_t ac__type_new_;
16705 int
16706 main ()
16707 {
16708 if ((ac__type_new_ *) 0)
16709   return 0;
16710 if (sizeof (ac__type_new_))
16711   return 0;
16712   ;
16713   return 0;
16714 }
16715 _ACEOF
16716 rm -f conftest.$ac_objext
16717 if { (ac_try="$ac_compile"
16718 case "(($ac_try" in
16719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720   *) ac_try_echo=$ac_try;;
16721 esac
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723   (eval "$ac_compile") 2>conftest.er1
16724   ac_status=$?
16725   grep -v '^ *+' conftest.er1 >conftest.err
16726   rm -f conftest.er1
16727   cat conftest.err >&5
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); } &&
16730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16731   { (case "(($ac_try" in
16732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733   *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736   (eval "$ac_try") 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; } &&
16740          { ac_try='test -s conftest.$ac_objext'
16741   { (case "(($ac_try" in
16742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743   *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746   (eval "$ac_try") 2>&5
16747   ac_status=$?
16748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); }; }; then
16750   ac_cv_type_size_t=yes
16751 else
16752   echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16754
16755         ac_cv_type_size_t=no
16756 fi
16757
16758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 fi
16760 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16761 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16762 if test $ac_cv_type_size_t = yes; then
16763   :
16764 else
16765
16766 cat >>confdefs.h <<_ACEOF
16767 #define size_t unsigned int
16768 _ACEOF
16769
16770 fi
16771
16772
16773 cat >>confdefs.h <<_ACEOF
16774 #define RETSIGTYPE void
16775 _ACEOF
16776
16777 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16778 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16779 if test "${ac_cv_struct_tm+set}" = set; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782   cat >conftest.$ac_ext <<_ACEOF
16783 /* confdefs.h.  */
16784 _ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h.  */
16788 #include <sys/types.h>
16789 #include <time.h>
16790
16791 int
16792 main ()
16793 {
16794 struct tm *tp; tp->tm_sec;
16795   ;
16796   return 0;
16797 }
16798 _ACEOF
16799 rm -f conftest.$ac_objext
16800 if { (ac_try="$ac_compile"
16801 case "(($ac_try" in
16802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803   *) ac_try_echo=$ac_try;;
16804 esac
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806   (eval "$ac_compile") 2>conftest.er1
16807   ac_status=$?
16808   grep -v '^ *+' conftest.er1 >conftest.err
16809   rm -f conftest.er1
16810   cat conftest.err >&5
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); } &&
16813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16814   { (case "(($ac_try" in
16815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816   *) ac_try_echo=$ac_try;;
16817 esac
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819   (eval "$ac_try") 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); }; } &&
16823          { ac_try='test -s conftest.$ac_objext'
16824   { (case "(($ac_try" in
16825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826   *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829   (eval "$ac_try") 2>&5
16830   ac_status=$?
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); }; }; then
16833   ac_cv_struct_tm=time.h
16834 else
16835   echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16837
16838         ac_cv_struct_tm=sys/time.h
16839 fi
16840
16841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 fi
16843 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16844 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16845 if test $ac_cv_struct_tm = sys/time.h; then
16846
16847 cat >>confdefs.h <<\_ACEOF
16848 #define TM_IN_SYS_TIME 1
16849 _ACEOF
16850
16851 fi
16852
16853 { echo "$as_me:$LINENO: checking for int64_t" >&5
16854 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16855 if test "${ac_cv_type_int64_t+set}" = set; then
16856   echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858   cat >conftest.$ac_ext <<_ACEOF
16859 /* confdefs.h.  */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h.  */
16864 $ac_includes_default
16865 typedef int64_t ac__type_new_;
16866 int
16867 main ()
16868 {
16869 if ((ac__type_new_ *) 0)
16870   return 0;
16871 if (sizeof (ac__type_new_))
16872   return 0;
16873   ;
16874   return 0;
16875 }
16876 _ACEOF
16877 rm -f conftest.$ac_objext
16878 if { (ac_try="$ac_compile"
16879 case "(($ac_try" in
16880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881   *) ac_try_echo=$ac_try;;
16882 esac
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884   (eval "$ac_compile") 2>conftest.er1
16885   ac_status=$?
16886   grep -v '^ *+' conftest.er1 >conftest.err
16887   rm -f conftest.er1
16888   cat conftest.err >&5
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); } &&
16891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16892   { (case "(($ac_try" in
16893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894   *) ac_try_echo=$ac_try;;
16895 esac
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897   (eval "$ac_try") 2>&5
16898   ac_status=$?
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); }; } &&
16901          { ac_try='test -s conftest.$ac_objext'
16902   { (case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_try") 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); }; }; then
16911   ac_cv_type_int64_t=yes
16912 else
16913   echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16915
16916         ac_cv_type_int64_t=no
16917 fi
16918
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 fi
16921 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16922 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16923 if test $ac_cv_type_int64_t = yes; then
16924
16925 cat >>confdefs.h <<_ACEOF
16926 #define HAVE_INT64_T 1
16927 _ACEOF
16928
16929
16930 else
16931   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16932 echo "$as_me: error: Type int64_t required but not found" >&2;}
16933    { (exit 1); exit 1; }; }
16934 fi
16935
16936 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16937 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16938 if test "${ac_cv_type_uint64_t+set}" = set; then
16939   echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941   cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16947 $ac_includes_default
16948 typedef uint64_t ac__type_new_;
16949 int
16950 main ()
16951 {
16952 if ((ac__type_new_ *) 0)
16953   return 0;
16954 if (sizeof (ac__type_new_))
16955   return 0;
16956   ;
16957   return 0;
16958 }
16959 _ACEOF
16960 rm -f conftest.$ac_objext
16961 if { (ac_try="$ac_compile"
16962 case "(($ac_try" in
16963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964   *) ac_try_echo=$ac_try;;
16965 esac
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967   (eval "$ac_compile") 2>conftest.er1
16968   ac_status=$?
16969   grep -v '^ *+' conftest.er1 >conftest.err
16970   rm -f conftest.er1
16971   cat conftest.err >&5
16972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); } &&
16974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16975   { (case "(($ac_try" in
16976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977   *) ac_try_echo=$ac_try;;
16978 esac
16979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980   (eval "$ac_try") 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); }; } &&
16984          { ac_try='test -s conftest.$ac_objext'
16985   { (case "(($ac_try" in
16986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987   *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990   (eval "$ac_try") 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); }; }; then
16994   ac_cv_type_uint64_t=yes
16995 else
16996   echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16998
16999         ac_cv_type_uint64_t=no
17000 fi
17001
17002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17003 fi
17004 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17005 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17006 if test $ac_cv_type_uint64_t = yes; then
17007
17008 cat >>confdefs.h <<_ACEOF
17009 #define HAVE_UINT64_T 1
17010 _ACEOF
17011
17012
17013 else
17014   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17015 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17016 if test "${ac_cv_type_u_int64_t+set}" = set; then
17017   echo $ECHO_N "(cached) $ECHO_C" >&6
17018 else
17019   cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025 $ac_includes_default
17026 typedef u_int64_t ac__type_new_;
17027 int
17028 main ()
17029 {
17030 if ((ac__type_new_ *) 0)
17031   return 0;
17032 if (sizeof (ac__type_new_))
17033   return 0;
17034   ;
17035   return 0;
17036 }
17037 _ACEOF
17038 rm -f conftest.$ac_objext
17039 if { (ac_try="$ac_compile"
17040 case "(($ac_try" in
17041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042   *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045   (eval "$ac_compile") 2>conftest.er1
17046   ac_status=$?
17047   grep -v '^ *+' conftest.er1 >conftest.err
17048   rm -f conftest.er1
17049   cat conftest.err >&5
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); } &&
17052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17053   { (case "(($ac_try" in
17054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055   *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058   (eval "$ac_try") 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; } &&
17062          { ac_try='test -s conftest.$ac_objext'
17063   { (case "(($ac_try" in
17064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065   *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068   (eval "$ac_try") 2>&5
17069   ac_status=$?
17070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071   (exit $ac_status); }; }; then
17072   ac_cv_type_u_int64_t=yes
17073 else
17074   echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077         ac_cv_type_u_int64_t=no
17078 fi
17079
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081 fi
17082 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17083 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17084 if test $ac_cv_type_u_int64_t = yes; then
17085
17086 cat >>confdefs.h <<_ACEOF
17087 #define HAVE_U_INT64_T 1
17088 _ACEOF
17089
17090
17091 else
17092   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17093 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17094    { (exit 1); exit 1; }; }
17095 fi
17096
17097 fi
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17109 do
17110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17114   echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116   cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h.  */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h.  */
17122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17124 #define $ac_func innocuous_$ac_func
17125
17126 /* System header to define __stub macros and hopefully few prototypes,
17127     which can conflict with char $ac_func (); below.
17128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17129     <limits.h> exists even on freestanding compilers.  */
17130
17131 #ifdef __STDC__
17132 # include <limits.h>
17133 #else
17134 # include <assert.h>
17135 #endif
17136
17137 #undef $ac_func
17138
17139 /* Override any GCC internal prototype to avoid an error.
17140    Use char because int might match the return type of a GCC
17141    builtin and then its argument prototype would still apply.  */
17142 #ifdef __cplusplus
17143 extern "C"
17144 #endif
17145 char $ac_func ();
17146 /* The GNU C library defines this for functions which it implements
17147     to always fail with ENOSYS.  Some functions are actually named
17148     something starting with __ and the normal name is an alias.  */
17149 #if defined __stub_$ac_func || defined __stub___$ac_func
17150 choke me
17151 #endif
17152
17153 int
17154 main ()
17155 {
17156 return $ac_func ();
17157   ;
17158   return 0;
17159 }
17160 _ACEOF
17161 rm -f conftest.$ac_objext conftest$ac_exeext
17162 if { (ac_try="$ac_link"
17163 case "(($ac_try" in
17164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165   *) ac_try_echo=$ac_try;;
17166 esac
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168   (eval "$ac_link") 2>conftest.er1
17169   ac_status=$?
17170   grep -v '^ *+' conftest.er1 >conftest.err
17171   rm -f conftest.er1
17172   cat conftest.err >&5
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); } &&
17175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17176   { (case "(($ac_try" in
17177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178   *) ac_try_echo=$ac_try;;
17179 esac
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181   (eval "$ac_try") 2>&5
17182   ac_status=$?
17183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184   (exit $ac_status); }; } &&
17185          { ac_try='test -s conftest$ac_exeext'
17186   { (case "(($ac_try" in
17187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188   *) ac_try_echo=$ac_try;;
17189 esac
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191   (eval "$ac_try") 2>&5
17192   ac_status=$?
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); }; }; then
17195   eval "$as_ac_var=yes"
17196 else
17197   echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200         eval "$as_ac_var=no"
17201 fi
17202
17203 rm -f core conftest.err conftest.$ac_objext \
17204       conftest$ac_exeext conftest.$ac_ext
17205 fi
17206 ac_res=`eval echo '${'$as_ac_var'}'`
17207                { echo "$as_me:$LINENO: result: $ac_res" >&5
17208 echo "${ECHO_T}$ac_res" >&6; }
17209 if test `eval echo '${'$as_ac_var'}'` = yes; then
17210   cat >>confdefs.h <<_ACEOF
17211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17212 _ACEOF
17213
17214 fi
17215 done
17216
17217
17218
17219
17220
17221 for ac_func in powf fmodf strtof round
17222 do
17223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17227   echo $ECHO_N "(cached) $ECHO_C" >&6
17228 else
17229   cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h.  */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h.  */
17235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17237 #define $ac_func innocuous_$ac_func
17238
17239 /* System header to define __stub macros and hopefully few prototypes,
17240     which can conflict with char $ac_func (); below.
17241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17242     <limits.h> exists even on freestanding compilers.  */
17243
17244 #ifdef __STDC__
17245 # include <limits.h>
17246 #else
17247 # include <assert.h>
17248 #endif
17249
17250 #undef $ac_func
17251
17252 /* Override any GCC internal prototype to avoid an error.
17253    Use char because int might match the return type of a GCC
17254    builtin and then its argument prototype would still apply.  */
17255 #ifdef __cplusplus
17256 extern "C"
17257 #endif
17258 char $ac_func ();
17259 /* The GNU C library defines this for functions which it implements
17260     to always fail with ENOSYS.  Some functions are actually named
17261     something starting with __ and the normal name is an alias.  */
17262 #if defined __stub_$ac_func || defined __stub___$ac_func
17263 choke me
17264 #endif
17265
17266 int
17267 main ()
17268 {
17269 return $ac_func ();
17270   ;
17271   return 0;
17272 }
17273 _ACEOF
17274 rm -f conftest.$ac_objext conftest$ac_exeext
17275 if { (ac_try="$ac_link"
17276 case "(($ac_try" in
17277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278   *) ac_try_echo=$ac_try;;
17279 esac
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281   (eval "$ac_link") 2>conftest.er1
17282   ac_status=$?
17283   grep -v '^ *+' conftest.er1 >conftest.err
17284   rm -f conftest.er1
17285   cat conftest.err >&5
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); } &&
17288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17289   { (case "(($ac_try" in
17290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291   *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294   (eval "$ac_try") 2>&5
17295   ac_status=$?
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); }; } &&
17298          { ac_try='test -s conftest$ac_exeext'
17299   { (case "(($ac_try" in
17300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301   *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304   (eval "$ac_try") 2>&5
17305   ac_status=$?
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); }; }; then
17308   eval "$as_ac_var=yes"
17309 else
17310   echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313         eval "$as_ac_var=no"
17314 fi
17315
17316 rm -f core conftest.err conftest.$ac_objext \
17317       conftest$ac_exeext conftest.$ac_ext
17318 fi
17319 ac_res=`eval echo '${'$as_ac_var'}'`
17320                { echo "$as_me:$LINENO: result: $ac_res" >&5
17321 echo "${ECHO_T}$ac_res" >&6; }
17322 if test `eval echo '${'$as_ac_var'}'` = yes; then
17323   cat >>confdefs.h <<_ACEOF
17324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17325 _ACEOF
17326
17327 fi
17328 done
17329
17330
17331
17332
17333
17334
17335 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17336 do
17337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343   cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h.  */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h.  */
17349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17351 #define $ac_func innocuous_$ac_func
17352
17353 /* System header to define __stub macros and hopefully few prototypes,
17354     which can conflict with char $ac_func (); below.
17355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356     <limits.h> exists even on freestanding compilers.  */
17357
17358 #ifdef __STDC__
17359 # include <limits.h>
17360 #else
17361 # include <assert.h>
17362 #endif
17363
17364 #undef $ac_func
17365
17366 /* Override any GCC internal prototype to avoid an error.
17367    Use char because int might match the return type of a GCC
17368    builtin and then its argument prototype would still apply.  */
17369 #ifdef __cplusplus
17370 extern "C"
17371 #endif
17372 char $ac_func ();
17373 /* The GNU C library defines this for functions which it implements
17374     to always fail with ENOSYS.  Some functions are actually named
17375     something starting with __ and the normal name is an alias.  */
17376 #if defined __stub_$ac_func || defined __stub___$ac_func
17377 choke me
17378 #endif
17379
17380 int
17381 main ()
17382 {
17383 return $ac_func ();
17384   ;
17385   return 0;
17386 }
17387 _ACEOF
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (ac_try="$ac_link"
17390 case "(($ac_try" in
17391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392   *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395   (eval "$ac_link") 2>conftest.er1
17396   ac_status=$?
17397   grep -v '^ *+' conftest.er1 >conftest.err
17398   rm -f conftest.er1
17399   cat conftest.err >&5
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); } &&
17402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17403   { (case "(($ac_try" in
17404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405   *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408   (eval "$ac_try") 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); }; } &&
17412          { ac_try='test -s conftest$ac_exeext'
17413   { (case "(($ac_try" in
17414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415   *) ac_try_echo=$ac_try;;
17416 esac
17417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418   (eval "$ac_try") 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; }; then
17422   eval "$as_ac_var=yes"
17423 else
17424   echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17426
17427         eval "$as_ac_var=no"
17428 fi
17429
17430 rm -f core conftest.err conftest.$ac_objext \
17431       conftest$ac_exeext conftest.$ac_ext
17432 fi
17433 ac_res=`eval echo '${'$as_ac_var'}'`
17434                { echo "$as_me:$LINENO: result: $ac_res" >&5
17435 echo "${ECHO_T}$ac_res" >&6; }
17436 if test `eval echo '${'$as_ac_var'}'` = yes; then
17437   cat >>confdefs.h <<_ACEOF
17438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17439 _ACEOF
17440
17441 fi
17442 done
17443
17444
17445
17446
17447 for ac_func in isatty mkdtemp mkstemp
17448 do
17449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17453   echo $ECHO_N "(cached) $ECHO_C" >&6
17454 else
17455   cat >conftest.$ac_ext <<_ACEOF
17456 /* confdefs.h.  */
17457 _ACEOF
17458 cat confdefs.h >>conftest.$ac_ext
17459 cat >>conftest.$ac_ext <<_ACEOF
17460 /* end confdefs.h.  */
17461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17463 #define $ac_func innocuous_$ac_func
17464
17465 /* System header to define __stub macros and hopefully few prototypes,
17466     which can conflict with char $ac_func (); below.
17467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17468     <limits.h> exists even on freestanding compilers.  */
17469
17470 #ifdef __STDC__
17471 # include <limits.h>
17472 #else
17473 # include <assert.h>
17474 #endif
17475
17476 #undef $ac_func
17477
17478 /* Override any GCC internal prototype to avoid an error.
17479    Use char because int might match the return type of a GCC
17480    builtin and then its argument prototype would still apply.  */
17481 #ifdef __cplusplus
17482 extern "C"
17483 #endif
17484 char $ac_func ();
17485 /* The GNU C library defines this for functions which it implements
17486     to always fail with ENOSYS.  Some functions are actually named
17487     something starting with __ and the normal name is an alias.  */
17488 #if defined __stub_$ac_func || defined __stub___$ac_func
17489 choke me
17490 #endif
17491
17492 int
17493 main ()
17494 {
17495 return $ac_func ();
17496   ;
17497   return 0;
17498 }
17499 _ACEOF
17500 rm -f conftest.$ac_objext conftest$ac_exeext
17501 if { (ac_try="$ac_link"
17502 case "(($ac_try" in
17503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504   *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507   (eval "$ac_link") 2>conftest.er1
17508   ac_status=$?
17509   grep -v '^ *+' conftest.er1 >conftest.err
17510   rm -f conftest.er1
17511   cat conftest.err >&5
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); } &&
17514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17515   { (case "(($ac_try" in
17516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517   *) ac_try_echo=$ac_try;;
17518 esac
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520   (eval "$ac_try") 2>&5
17521   ac_status=$?
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); }; } &&
17524          { ac_try='test -s conftest$ac_exeext'
17525   { (case "(($ac_try" in
17526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527   *) ac_try_echo=$ac_try;;
17528 esac
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530   (eval "$ac_try") 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); }; }; then
17534   eval "$as_ac_var=yes"
17535 else
17536   echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17538
17539         eval "$as_ac_var=no"
17540 fi
17541
17542 rm -f core conftest.err conftest.$ac_objext \
17543       conftest$ac_exeext conftest.$ac_ext
17544 fi
17545 ac_res=`eval echo '${'$as_ac_var'}'`
17546                { echo "$as_me:$LINENO: result: $ac_res" >&5
17547 echo "${ECHO_T}$ac_res" >&6; }
17548 if test `eval echo '${'$as_ac_var'}'` = yes; then
17549   cat >>confdefs.h <<_ACEOF
17550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17551 _ACEOF
17552
17553 fi
17554 done
17555
17556
17557
17558
17559
17560
17561 for ac_func in mktemp realpath sbrk setrlimit strdup
17562 do
17563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17567   echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569   cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17577 #define $ac_func innocuous_$ac_func
17578
17579 /* System header to define __stub macros and hopefully few prototypes,
17580     which can conflict with char $ac_func (); below.
17581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17582     <limits.h> exists even on freestanding compilers.  */
17583
17584 #ifdef __STDC__
17585 # include <limits.h>
17586 #else
17587 # include <assert.h>
17588 #endif
17589
17590 #undef $ac_func
17591
17592 /* Override any GCC internal prototype to avoid an error.
17593    Use char because int might match the return type of a GCC
17594    builtin and then its argument prototype would still apply.  */
17595 #ifdef __cplusplus
17596 extern "C"
17597 #endif
17598 char $ac_func ();
17599 /* The GNU C library defines this for functions which it implements
17600     to always fail with ENOSYS.  Some functions are actually named
17601     something starting with __ and the normal name is an alias.  */
17602 #if defined __stub_$ac_func || defined __stub___$ac_func
17603 choke me
17604 #endif
17605
17606 int
17607 main ()
17608 {
17609 return $ac_func ();
17610   ;
17611   return 0;
17612 }
17613 _ACEOF
17614 rm -f conftest.$ac_objext conftest$ac_exeext
17615 if { (ac_try="$ac_link"
17616 case "(($ac_try" in
17617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618   *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621   (eval "$ac_link") 2>conftest.er1
17622   ac_status=$?
17623   grep -v '^ *+' conftest.er1 >conftest.err
17624   rm -f conftest.er1
17625   cat conftest.err >&5
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); } &&
17628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17629   { (case "(($ac_try" in
17630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631   *) ac_try_echo=$ac_try;;
17632 esac
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634   (eval "$ac_try") 2>&5
17635   ac_status=$?
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; } &&
17638          { ac_try='test -s conftest$ac_exeext'
17639   { (case "(($ac_try" in
17640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641   *) ac_try_echo=$ac_try;;
17642 esac
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644   (eval "$ac_try") 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); }; }; then
17648   eval "$as_ac_var=yes"
17649 else
17650   echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653         eval "$as_ac_var=no"
17654 fi
17655
17656 rm -f core conftest.err conftest.$ac_objext \
17657       conftest$ac_exeext conftest.$ac_ext
17658 fi
17659 ac_res=`eval echo '${'$as_ac_var'}'`
17660                { echo "$as_me:$LINENO: result: $ac_res" >&5
17661 echo "${ECHO_T}$ac_res" >&6; }
17662 if test `eval echo '${'$as_ac_var'}'` = yes; then
17663   cat >>confdefs.h <<_ACEOF
17664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17665 _ACEOF
17666
17667 fi
17668 done
17669
17670
17671
17672
17673
17674 for ac_func in strerror strerror_r strerror_s setenv
17675 do
17676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682   cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17690 #define $ac_func innocuous_$ac_func
17691
17692 /* System header to define __stub macros and hopefully few prototypes,
17693     which can conflict with char $ac_func (); below.
17694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17695     <limits.h> exists even on freestanding compilers.  */
17696
17697 #ifdef __STDC__
17698 # include <limits.h>
17699 #else
17700 # include <assert.h>
17701 #endif
17702
17703 #undef $ac_func
17704
17705 /* Override any GCC internal prototype to avoid an error.
17706    Use char because int might match the return type of a GCC
17707    builtin and then its argument prototype would still apply.  */
17708 #ifdef __cplusplus
17709 extern "C"
17710 #endif
17711 char $ac_func ();
17712 /* The GNU C library defines this for functions which it implements
17713     to always fail with ENOSYS.  Some functions are actually named
17714     something starting with __ and the normal name is an alias.  */
17715 #if defined __stub_$ac_func || defined __stub___$ac_func
17716 choke me
17717 #endif
17718
17719 int
17720 main ()
17721 {
17722 return $ac_func ();
17723   ;
17724   return 0;
17725 }
17726 _ACEOF
17727 rm -f conftest.$ac_objext conftest$ac_exeext
17728 if { (ac_try="$ac_link"
17729 case "(($ac_try" in
17730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731   *) ac_try_echo=$ac_try;;
17732 esac
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734   (eval "$ac_link") 2>conftest.er1
17735   ac_status=$?
17736   grep -v '^ *+' conftest.er1 >conftest.err
17737   rm -f conftest.er1
17738   cat conftest.err >&5
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); } &&
17741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17742   { (case "(($ac_try" in
17743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17744   *) ac_try_echo=$ac_try;;
17745 esac
17746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17747   (eval "$ac_try") 2>&5
17748   ac_status=$?
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); }; } &&
17751          { ac_try='test -s conftest$ac_exeext'
17752   { (case "(($ac_try" in
17753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754   *) ac_try_echo=$ac_try;;
17755 esac
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757   (eval "$ac_try") 2>&5
17758   ac_status=$?
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); }; }; then
17761   eval "$as_ac_var=yes"
17762 else
17763   echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17765
17766         eval "$as_ac_var=no"
17767 fi
17768
17769 rm -f core conftest.err conftest.$ac_objext \
17770       conftest$ac_exeext conftest.$ac_ext
17771 fi
17772 ac_res=`eval echo '${'$as_ac_var'}'`
17773                { echo "$as_me:$LINENO: result: $ac_res" >&5
17774 echo "${ECHO_T}$ac_res" >&6; }
17775 if test `eval echo '${'$as_ac_var'}'` = yes; then
17776   cat >>confdefs.h <<_ACEOF
17777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17778 _ACEOF
17779
17780 fi
17781 done
17782
17783
17784
17785
17786
17787 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17788 do
17789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17793   echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795   cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h.  */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h.  */
17801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17803 #define $ac_func innocuous_$ac_func
17804
17805 /* System header to define __stub macros and hopefully few prototypes,
17806     which can conflict with char $ac_func (); below.
17807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17808     <limits.h> exists even on freestanding compilers.  */
17809
17810 #ifdef __STDC__
17811 # include <limits.h>
17812 #else
17813 # include <assert.h>
17814 #endif
17815
17816 #undef $ac_func
17817
17818 /* Override any GCC internal prototype to avoid an error.
17819    Use char because int might match the return type of a GCC
17820    builtin and then its argument prototype would still apply.  */
17821 #ifdef __cplusplus
17822 extern "C"
17823 #endif
17824 char $ac_func ();
17825 /* The GNU C library defines this for functions which it implements
17826     to always fail with ENOSYS.  Some functions are actually named
17827     something starting with __ and the normal name is an alias.  */
17828 #if defined __stub_$ac_func || defined __stub___$ac_func
17829 choke me
17830 #endif
17831
17832 int
17833 main ()
17834 {
17835 return $ac_func ();
17836   ;
17837   return 0;
17838 }
17839 _ACEOF
17840 rm -f conftest.$ac_objext conftest$ac_exeext
17841 if { (ac_try="$ac_link"
17842 case "(($ac_try" in
17843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844   *) ac_try_echo=$ac_try;;
17845 esac
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847   (eval "$ac_link") 2>conftest.er1
17848   ac_status=$?
17849   grep -v '^ *+' conftest.er1 >conftest.err
17850   rm -f conftest.er1
17851   cat conftest.err >&5
17852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853   (exit $ac_status); } &&
17854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17855   { (case "(($ac_try" in
17856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857   *) ac_try_echo=$ac_try;;
17858 esac
17859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860   (eval "$ac_try") 2>&5
17861   ac_status=$?
17862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863   (exit $ac_status); }; } &&
17864          { ac_try='test -s conftest$ac_exeext'
17865   { (case "(($ac_try" in
17866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867   *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870   (eval "$ac_try") 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); }; }; then
17874   eval "$as_ac_var=yes"
17875 else
17876   echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17878
17879         eval "$as_ac_var=no"
17880 fi
17881
17882 rm -f core conftest.err conftest.$ac_objext \
17883       conftest$ac_exeext conftest.$ac_ext
17884 fi
17885 ac_res=`eval echo '${'$as_ac_var'}'`
17886                { echo "$as_me:$LINENO: result: $ac_res" >&5
17887 echo "${ECHO_T}$ac_res" >&6; }
17888 if test `eval echo '${'$as_ac_var'}'` = yes; then
17889   cat >>confdefs.h <<_ACEOF
17890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17891 _ACEOF
17892
17893 fi
17894 done
17895
17896
17897
17898
17899
17900 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17901 do
17902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17906   echo $ECHO_N "(cached) $ECHO_C" >&6
17907 else
17908   cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h.  */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h.  */
17914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17916 #define $ac_func innocuous_$ac_func
17917
17918 /* System header to define __stub macros and hopefully few prototypes,
17919     which can conflict with char $ac_func (); below.
17920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17921     <limits.h> exists even on freestanding compilers.  */
17922
17923 #ifdef __STDC__
17924 # include <limits.h>
17925 #else
17926 # include <assert.h>
17927 #endif
17928
17929 #undef $ac_func
17930
17931 /* Override any GCC internal prototype to avoid an error.
17932    Use char because int might match the return type of a GCC
17933    builtin and then its argument prototype would still apply.  */
17934 #ifdef __cplusplus
17935 extern "C"
17936 #endif
17937 char $ac_func ();
17938 /* The GNU C library defines this for functions which it implements
17939     to always fail with ENOSYS.  Some functions are actually named
17940     something starting with __ and the normal name is an alias.  */
17941 #if defined __stub_$ac_func || defined __stub___$ac_func
17942 choke me
17943 #endif
17944
17945 int
17946 main ()
17947 {
17948 return $ac_func ();
17949   ;
17950   return 0;
17951 }
17952 _ACEOF
17953 rm -f conftest.$ac_objext conftest$ac_exeext
17954 if { (ac_try="$ac_link"
17955 case "(($ac_try" in
17956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957   *) ac_try_echo=$ac_try;;
17958 esac
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960   (eval "$ac_link") 2>conftest.er1
17961   ac_status=$?
17962   grep -v '^ *+' conftest.er1 >conftest.err
17963   rm -f conftest.er1
17964   cat conftest.err >&5
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); } &&
17967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17968   { (case "(($ac_try" in
17969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970   *) ac_try_echo=$ac_try;;
17971 esac
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973   (eval "$ac_try") 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); }; } &&
17977          { ac_try='test -s conftest$ac_exeext'
17978   { (case "(($ac_try" in
17979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980   *) ac_try_echo=$ac_try;;
17981 esac
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983   (eval "$ac_try") 2>&5
17984   ac_status=$?
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); }; }; then
17987   eval "$as_ac_var=yes"
17988 else
17989   echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992         eval "$as_ac_var=no"
17993 fi
17994
17995 rm -f core conftest.err conftest.$ac_objext \
17996       conftest$ac_exeext conftest.$ac_ext
17997 fi
17998 ac_res=`eval echo '${'$as_ac_var'}'`
17999                { echo "$as_me:$LINENO: result: $ac_res" >&5
18000 echo "${ECHO_T}$ac_res" >&6; }
18001 if test `eval echo '${'$as_ac_var'}'` = yes; then
18002   cat >>confdefs.h <<_ACEOF
18003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18004 _ACEOF
18005
18006 fi
18007 done
18008
18009 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18010 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18011 if test "${llvm_cv_c_printf_a+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   ac_ext=c
18015 ac_cpp='$CPP $CPPFLAGS'
18016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18019
18020  if test "$cross_compiling" = yes; then
18021   llvmac_cv_c_printf_a=no
18022 else
18023   cat >conftest.$ac_ext <<_ACEOF
18024
18025   /* confdefs.h.  */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h.  */
18030
18031 #include <stdio.h>
18032 #include <stdlib.h>
18033
18034 int
18035 main ()
18036 {
18037
18038 volatile double A, B;
18039 char Buffer[100];
18040 A = 1;
18041 A /= 10.0;
18042 sprintf(Buffer, "%a", A);
18043 B = atof(Buffer);
18044 if (A != B)
18045   return (1);
18046 if (A != 0x1.999999999999ap-4)
18047   return (1);
18048 return (0);
18049   ;
18050   return 0;
18051 }
18052 _ACEOF
18053 rm -f conftest$ac_exeext
18054 if { (ac_try="$ac_link"
18055 case "(($ac_try" in
18056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057   *) ac_try_echo=$ac_try;;
18058 esac
18059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18060   (eval "$ac_link") 2>&5
18061   ac_status=$?
18062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18064   { (case "(($ac_try" in
18065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066   *) ac_try_echo=$ac_try;;
18067 esac
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069   (eval "$ac_try") 2>&5
18070   ac_status=$?
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); }; }; then
18073   llvm_cv_c_printf_a=yes
18074 else
18075   echo "$as_me: program exited with status $ac_status" >&5
18076 echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18078
18079 ( exit $ac_status )
18080 llvmac_cv_c_printf_a=no
18081 fi
18082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18083 fi
18084
18085
18086  ac_ext=c
18087 ac_cpp='$CPP $CPPFLAGS'
18088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18091
18092 fi
18093 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18094 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18095  if test "$llvm_cv_c_printf_a" = "yes"; then
18096
18097 cat >>confdefs.h <<\_ACEOF
18098 #define HAVE_PRINTF_A 1
18099 _ACEOF
18100
18101  fi
18102
18103
18104 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18105 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18106 if test "${ac_cv_func_rand48+set}" = set; then
18107   echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109   ac_ext=cpp
18110 ac_cpp='$CXXCPP $CPPFLAGS'
18111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18114
18115    cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h.  */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h.  */
18121 #include <stdlib.h>
18122 int
18123 main ()
18124 {
18125 srand48(0);lrand48();drand48();
18126   ;
18127   return 0;
18128 }
18129 _ACEOF
18130 rm -f conftest.$ac_objext
18131 if { (ac_try="$ac_compile"
18132 case "(($ac_try" in
18133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134   *) ac_try_echo=$ac_try;;
18135 esac
18136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137   (eval "$ac_compile") 2>conftest.er1
18138   ac_status=$?
18139   grep -v '^ *+' conftest.er1 >conftest.err
18140   rm -f conftest.er1
18141   cat conftest.err >&5
18142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143   (exit $ac_status); } &&
18144          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18145   { (case "(($ac_try" in
18146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147   *) ac_try_echo=$ac_try;;
18148 esac
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150   (eval "$ac_try") 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); }; } &&
18154          { ac_try='test -s conftest.$ac_objext'
18155   { (case "(($ac_try" in
18156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157   *) ac_try_echo=$ac_try;;
18158 esac
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160   (eval "$ac_try") 2>&5
18161   ac_status=$?
18162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163   (exit $ac_status); }; }; then
18164   ac_cv_func_rand48=yes
18165 else
18166   echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18168
18169         ac_cv_func_rand48=no
18170 fi
18171
18172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18173   ac_ext=c
18174 ac_cpp='$CPP $CPPFLAGS'
18175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18178
18179 fi
18180 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18181 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18182
18183 if test "$ac_cv_func_rand48" = "yes" ; then
18184
18185 cat >>confdefs.h <<\_ACEOF
18186 #define HAVE_RAND48 1
18187 _ACEOF
18188
18189 fi
18190
18191
18192
18193 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18194 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18195 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18196   echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198   ac_ext=cpp
18199 ac_cpp='$CXXCPP $CPPFLAGS'
18200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18203
18204    cat >conftest.$ac_ext <<_ACEOF
18205 /* confdefs.h.  */
18206 _ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h.  */
18210 #include <math.h>
18211 int
18212 main ()
18213 {
18214 float f; isnan(f);
18215   ;
18216   return 0;
18217 }
18218 _ACEOF
18219 rm -f conftest.$ac_objext
18220 if { (ac_try="$ac_compile"
18221 case "(($ac_try" in
18222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223   *) ac_try_echo=$ac_try;;
18224 esac
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226   (eval "$ac_compile") 2>conftest.er1
18227   ac_status=$?
18228   grep -v '^ *+' conftest.er1 >conftest.err
18229   rm -f conftest.er1
18230   cat conftest.err >&5
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); } &&
18233          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18234   { (case "(($ac_try" in
18235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236   *) ac_try_echo=$ac_try;;
18237 esac
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239   (eval "$ac_try") 2>&5
18240   ac_status=$?
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); }; } &&
18243          { ac_try='test -s conftest.$ac_objext'
18244   { (case "(($ac_try" in
18245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246   *) ac_try_echo=$ac_try;;
18247 esac
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249   (eval "$ac_try") 2>&5
18250   ac_status=$?
18251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252   (exit $ac_status); }; }; then
18253   ac_cv_func_isnan_in_math_h=yes
18254 else
18255   echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18257
18258         ac_cv_func_isnan_in_math_h=no
18259 fi
18260
18261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18262   ac_ext=c
18263 ac_cpp='$CPP $CPPFLAGS'
18264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18267
18268 fi
18269 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18270 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18271
18272
18273 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18274
18275 cat >>confdefs.h <<\_ACEOF
18276 #define HAVE_ISNAN_IN_MATH_H 1
18277 _ACEOF
18278
18279 fi
18280
18281 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18282 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18283 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18284   echo $ECHO_N "(cached) $ECHO_C" >&6
18285 else
18286   ac_ext=cpp
18287 ac_cpp='$CXXCPP $CPPFLAGS'
18288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18291
18292    cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h.  */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h.  */
18298 #include <cmath>
18299 int
18300 main ()
18301 {
18302 float f; isnan(f);
18303   ;
18304   return 0;
18305 }
18306 _ACEOF
18307 rm -f conftest.$ac_objext
18308 if { (ac_try="$ac_compile"
18309 case "(($ac_try" in
18310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311   *) ac_try_echo=$ac_try;;
18312 esac
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314   (eval "$ac_compile") 2>conftest.er1
18315   ac_status=$?
18316   grep -v '^ *+' conftest.er1 >conftest.err
18317   rm -f conftest.er1
18318   cat conftest.err >&5
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); } &&
18321          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18322   { (case "(($ac_try" in
18323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324   *) ac_try_echo=$ac_try;;
18325 esac
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327   (eval "$ac_try") 2>&5
18328   ac_status=$?
18329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); }; } &&
18331          { ac_try='test -s conftest.$ac_objext'
18332   { (case "(($ac_try" in
18333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334   *) ac_try_echo=$ac_try;;
18335 esac
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337   (eval "$ac_try") 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; }; then
18341   ac_cv_func_isnan_in_cmath=yes
18342 else
18343   echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18345
18346         ac_cv_func_isnan_in_cmath=no
18347 fi
18348
18349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18350   ac_ext=c
18351 ac_cpp='$CPP $CPPFLAGS'
18352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18355
18356 fi
18357 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18358 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18359
18360 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18361
18362 cat >>confdefs.h <<\_ACEOF
18363 #define HAVE_ISNAN_IN_CMATH 1
18364 _ACEOF
18365
18366 fi
18367
18368 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18369 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18370 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18371   echo $ECHO_N "(cached) $ECHO_C" >&6
18372 else
18373   ac_ext=cpp
18374 ac_cpp='$CXXCPP $CPPFLAGS'
18375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18378
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 #include <cmath>
18386 int
18387 main ()
18388 {
18389 float f; std::isnan(f);
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 rm -f conftest.$ac_objext
18395 if { (ac_try="$ac_compile"
18396 case "(($ac_try" in
18397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18398   *) ac_try_echo=$ac_try;;
18399 esac
18400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18401   (eval "$ac_compile") 2>conftest.er1
18402   ac_status=$?
18403   grep -v '^ *+' conftest.er1 >conftest.err
18404   rm -f conftest.er1
18405   cat conftest.err >&5
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); } &&
18408          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18409   { (case "(($ac_try" in
18410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411   *) ac_try_echo=$ac_try;;
18412 esac
18413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414   (eval "$ac_try") 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); }; } &&
18418          { ac_try='test -s conftest.$ac_objext'
18419   { (case "(($ac_try" in
18420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421   *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424   (eval "$ac_try") 2>&5
18425   ac_status=$?
18426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427   (exit $ac_status); }; }; then
18428   ac_cv_func_std_isnan_in_cmath=yes
18429 else
18430   echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18432
18433         ac_cv_func_std_isnan_in_cmath=no
18434 fi
18435
18436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437   ac_ext=c
18438 ac_cpp='$CPP $CPPFLAGS'
18439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18442
18443 fi
18444 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18445 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18446
18447 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18448
18449 cat >>confdefs.h <<\_ACEOF
18450 #define HAVE_STD_ISNAN_IN_CMATH 1
18451 _ACEOF
18452
18453 fi
18454
18455
18456 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18457 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18458 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18459   echo $ECHO_N "(cached) $ECHO_C" >&6
18460 else
18461   ac_ext=cpp
18462 ac_cpp='$CXXCPP $CPPFLAGS'
18463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18466
18467    cat >conftest.$ac_ext <<_ACEOF
18468 /* confdefs.h.  */
18469 _ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h.  */
18473 #include <math.h>
18474 int
18475 main ()
18476 {
18477 float f; isinf(f);
18478   ;
18479   return 0;
18480 }
18481 _ACEOF
18482 rm -f conftest.$ac_objext
18483 if { (ac_try="$ac_compile"
18484 case "(($ac_try" in
18485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486   *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489   (eval "$ac_compile") 2>conftest.er1
18490   ac_status=$?
18491   grep -v '^ *+' conftest.er1 >conftest.err
18492   rm -f conftest.er1
18493   cat conftest.err >&5
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); } &&
18496          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18497   { (case "(($ac_try" in
18498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499   *) ac_try_echo=$ac_try;;
18500 esac
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502   (eval "$ac_try") 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; } &&
18506          { ac_try='test -s conftest.$ac_objext'
18507   { (case "(($ac_try" in
18508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509   *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512   (eval "$ac_try") 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); }; }; then
18516   ac_cv_func_isinf_in_math_h=yes
18517 else
18518   echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18520
18521         ac_cv_func_isinf_in_math_h=no
18522 fi
18523
18524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18525   ac_ext=c
18526 ac_cpp='$CPP $CPPFLAGS'
18527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18530
18531 fi
18532 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18533 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18534
18535 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18536
18537 cat >>confdefs.h <<\_ACEOF
18538 #define HAVE_ISINF_IN_MATH_H 1
18539 _ACEOF
18540
18541 fi
18542
18543 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18544 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18545 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18546   echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548   ac_ext=cpp
18549 ac_cpp='$CXXCPP $CPPFLAGS'
18550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18553
18554    cat >conftest.$ac_ext <<_ACEOF
18555 /* confdefs.h.  */
18556 _ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h.  */
18560 #include <cmath>
18561 int
18562 main ()
18563 {
18564 float f; isinf(f);
18565   ;
18566   return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext
18570 if { (ac_try="$ac_compile"
18571 case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_compile") 2>conftest.er1
18577   ac_status=$?
18578   grep -v '^ *+' conftest.er1 >conftest.err
18579   rm -f conftest.er1
18580   cat conftest.err >&5
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); } &&
18583          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18584   { (case "(($ac_try" in
18585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586   *) ac_try_echo=$ac_try;;
18587 esac
18588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589   (eval "$ac_try") 2>&5
18590   ac_status=$?
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); }; } &&
18593          { ac_try='test -s conftest.$ac_objext'
18594   { (case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599   (eval "$ac_try") 2>&5
18600   ac_status=$?
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); }; }; then
18603   ac_cv_func_isinf_in_cmath=yes
18604 else
18605   echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18607
18608         ac_cv_func_isinf_in_cmath=no
18609 fi
18610
18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18612   ac_ext=c
18613 ac_cpp='$CPP $CPPFLAGS'
18614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18617
18618 fi
18619 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18620 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18621
18622 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18623
18624 cat >>confdefs.h <<\_ACEOF
18625 #define HAVE_ISINF_IN_CMATH 1
18626 _ACEOF
18627
18628 fi
18629
18630 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18631 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18632 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18633   echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635   ac_ext=cpp
18636 ac_cpp='$CXXCPP $CPPFLAGS'
18637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18640
18641    cat >conftest.$ac_ext <<_ACEOF
18642 /* confdefs.h.  */
18643 _ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h.  */
18647 #include <cmath>
18648 int
18649 main ()
18650 {
18651 float f; std::isinf(f)}
18652   ;
18653   return 0;
18654 }
18655 _ACEOF
18656 rm -f conftest.$ac_objext
18657 if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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_func_std_isinf_in_cmath=yes
18691 else
18692   echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18694
18695         ac_cv_func_std_isinf_in_cmath=no
18696 fi
18697
18698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699   ac_ext=c
18700 ac_cpp='$CPP $CPPFLAGS'
18701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18704
18705 fi
18706 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18707 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18708
18709 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18710
18711 cat >>confdefs.h <<\_ACEOF
18712 #define HAVE_STD_ISINF_IN_CMATH 1
18713 _ACEOF
18714
18715 fi
18716
18717 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18718 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18719 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18720   echo $ECHO_N "(cached) $ECHO_C" >&6
18721 else
18722   ac_ext=cpp
18723 ac_cpp='$CXXCPP $CPPFLAGS'
18724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18727
18728    cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h.  */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h.  */
18734 #include <ieeefp.h>
18735 int
18736 main ()
18737 {
18738 float f; finite(f);
18739   ;
18740   return 0;
18741 }
18742 _ACEOF
18743 rm -f conftest.$ac_objext
18744 if { (ac_try="$ac_compile"
18745 case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750   (eval "$ac_compile") 2>conftest.er1
18751   ac_status=$?
18752   grep -v '^ *+' conftest.er1 >conftest.err
18753   rm -f conftest.er1
18754   cat conftest.err >&5
18755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); } &&
18757          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18758   { (case "(($ac_try" in
18759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760   *) ac_try_echo=$ac_try;;
18761 esac
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763   (eval "$ac_try") 2>&5
18764   ac_status=$?
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); }; } &&
18767          { ac_try='test -s conftest.$ac_objext'
18768   { (case "(($ac_try" in
18769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770   *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773   (eval "$ac_try") 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; }; then
18777   ac_cv_func_finite_in_ieeefp_h=yes
18778 else
18779   echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782         ac_cv_func_finite_in_ieeefp_h=no
18783 fi
18784
18785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18786   ac_ext=c
18787 ac_cpp='$CPP $CPPFLAGS'
18788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18791
18792 fi
18793 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18794 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18795
18796 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18797
18798 cat >>confdefs.h <<\_ACEOF
18799 #define HAVE_FINITE_IN_IEEEFP_H 1
18800 _ACEOF
18801
18802 fi
18803
18804
18805
18806 if test "$llvm_cv_platform_type" = "Unix" ; then
18807
18808
18809 for ac_header in stdlib.h unistd.h
18810 do
18811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18813   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 fi
18818 ac_res=`eval echo '${'$as_ac_Header'}'`
18819                { echo "$as_me:$LINENO: result: $ac_res" >&5
18820 echo "${ECHO_T}$ac_res" >&6; }
18821 else
18822   # Is the header compilable?
18823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18825 cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831 $ac_includes_default
18832 #include <$ac_header>
18833 _ACEOF
18834 rm -f conftest.$ac_objext
18835 if { (ac_try="$ac_compile"
18836 case "(($ac_try" in
18837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838   *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841   (eval "$ac_compile") 2>conftest.er1
18842   ac_status=$?
18843   grep -v '^ *+' conftest.er1 >conftest.err
18844   rm -f conftest.er1
18845   cat conftest.err >&5
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); } &&
18848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849   { (case "(($ac_try" in
18850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851   *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854   (eval "$ac_try") 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; } &&
18858          { ac_try='test -s conftest.$ac_objext'
18859   { (case "(($ac_try" in
18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861   *) ac_try_echo=$ac_try;;
18862 esac
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864   (eval "$ac_try") 2>&5
18865   ac_status=$?
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); }; }; then
18868   ac_header_compiler=yes
18869 else
18870   echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873         ac_header_compiler=no
18874 fi
18875
18876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18878 echo "${ECHO_T}$ac_header_compiler" >&6; }
18879
18880 # Is the header present?
18881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18883 cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h.  */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h.  */
18889 #include <$ac_header>
18890 _ACEOF
18891 if { (ac_try="$ac_cpp conftest.$ac_ext"
18892 case "(($ac_try" in
18893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894   *) ac_try_echo=$ac_try;;
18895 esac
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18898   ac_status=$?
18899   grep -v '^ *+' conftest.er1 >conftest.err
18900   rm -f conftest.er1
18901   cat conftest.err >&5
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); } >/dev/null; then
18904   if test -s conftest.err; then
18905     ac_cpp_err=$ac_c_preproc_warn_flag
18906     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18907   else
18908     ac_cpp_err=
18909   fi
18910 else
18911   ac_cpp_err=yes
18912 fi
18913 if test -z "$ac_cpp_err"; then
18914   ac_header_preproc=yes
18915 else
18916   echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919   ac_header_preproc=no
18920 fi
18921
18922 rm -f conftest.err conftest.$ac_ext
18923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18924 echo "${ECHO_T}$ac_header_preproc" >&6; }
18925
18926 # So?  What about this header?
18927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18928   yes:no: )
18929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18933     ac_header_preproc=yes
18934     ;;
18935   no:yes:* )
18936     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18938     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18939 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18940     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18942     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18943 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18946     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18948     ( cat <<\_ASBOX
18949 ## ----------------------------------- ##
18950 ## Report this to llvmbugs@cs.uiuc.edu ##
18951 ## ----------------------------------- ##
18952 _ASBOX
18953      ) | sed "s/^/$as_me: WARNING:     /" >&2
18954     ;;
18955 esac
18956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18959   echo $ECHO_N "(cached) $ECHO_C" >&6
18960 else
18961   eval "$as_ac_Header=\$ac_header_preproc"
18962 fi
18963 ac_res=`eval echo '${'$as_ac_Header'}'`
18964                { echo "$as_me:$LINENO: result: $ac_res" >&5
18965 echo "${ECHO_T}$ac_res" >&6; }
18966
18967 fi
18968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18969   cat >>confdefs.h <<_ACEOF
18970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18971 _ACEOF
18972
18973 fi
18974
18975 done
18976
18977
18978 for ac_func in getpagesize
18979 do
18980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18984   echo $ECHO_N "(cached) $ECHO_C" >&6
18985 else
18986   cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18994 #define $ac_func innocuous_$ac_func
18995
18996 /* System header to define __stub macros and hopefully few prototypes,
18997     which can conflict with char $ac_func (); below.
18998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18999     <limits.h> exists even on freestanding compilers.  */
19000
19001 #ifdef __STDC__
19002 # include <limits.h>
19003 #else
19004 # include <assert.h>
19005 #endif
19006
19007 #undef $ac_func
19008
19009 /* Override any GCC internal prototype to avoid an error.
19010    Use char because int might match the return type of a GCC
19011    builtin and then its argument prototype would still apply.  */
19012 #ifdef __cplusplus
19013 extern "C"
19014 #endif
19015 char $ac_func ();
19016 /* The GNU C library defines this for functions which it implements
19017     to always fail with ENOSYS.  Some functions are actually named
19018     something starting with __ and the normal name is an alias.  */
19019 #if defined __stub_$ac_func || defined __stub___$ac_func
19020 choke me
19021 #endif
19022
19023 int
19024 main ()
19025 {
19026 return $ac_func ();
19027   ;
19028   return 0;
19029 }
19030 _ACEOF
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (ac_try="$ac_link"
19033 case "(($ac_try" in
19034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035   *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038   (eval "$ac_link") 2>conftest.er1
19039   ac_status=$?
19040   grep -v '^ *+' conftest.er1 >conftest.err
19041   rm -f conftest.er1
19042   cat conftest.err >&5
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); } &&
19045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19046   { (case "(($ac_try" in
19047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048   *) ac_try_echo=$ac_try;;
19049 esac
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051   (eval "$ac_try") 2>&5
19052   ac_status=$?
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); }; } &&
19055          { ac_try='test -s conftest$ac_exeext'
19056   { (case "(($ac_try" in
19057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058   *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061   (eval "$ac_try") 2>&5
19062   ac_status=$?
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); }; }; then
19065   eval "$as_ac_var=yes"
19066 else
19067   echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19069
19070         eval "$as_ac_var=no"
19071 fi
19072
19073 rm -f core conftest.err conftest.$ac_objext \
19074       conftest$ac_exeext conftest.$ac_ext
19075 fi
19076 ac_res=`eval echo '${'$as_ac_var'}'`
19077                { echo "$as_me:$LINENO: result: $ac_res" >&5
19078 echo "${ECHO_T}$ac_res" >&6; }
19079 if test `eval echo '${'$as_ac_var'}'` = yes; then
19080   cat >>confdefs.h <<_ACEOF
19081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19082 _ACEOF
19083
19084 fi
19085 done
19086
19087 { echo "$as_me:$LINENO: checking for working mmap" >&5
19088 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19089 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   if test "$cross_compiling" = yes; then
19093   ac_cv_func_mmap_fixed_mapped=no
19094 else
19095   cat >conftest.$ac_ext <<_ACEOF
19096 /* confdefs.h.  */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h.  */
19101 $ac_includes_default
19102 /* malloc might have been renamed as rpl_malloc. */
19103 #undef malloc
19104
19105 /* Thanks to Mike Haertel and Jim Avera for this test.
19106    Here is a matrix of mmap possibilities:
19107         mmap private not fixed
19108         mmap private fixed at somewhere currently unmapped
19109         mmap private fixed at somewhere already mapped
19110         mmap shared not fixed
19111         mmap shared fixed at somewhere currently unmapped
19112         mmap shared fixed at somewhere already mapped
19113    For private mappings, we should verify that changes cannot be read()
19114    back from the file, nor mmap's back from the file at a different
19115    address.  (There have been systems where private was not correctly
19116    implemented like the infamous i386 svr4.0, and systems where the
19117    VM page cache was not coherent with the file system buffer cache
19118    like early versions of FreeBSD and possibly contemporary NetBSD.)
19119    For shared mappings, we should conversely verify that changes get
19120    propagated back to all the places they're supposed to be.
19121
19122    Grep wants private fixed already mapped.
19123    The main things grep needs to know about mmap are:
19124    * does it exist and is it safe to write into the mmap'd area
19125    * how to use it (BSD variants)  */
19126
19127 #include <fcntl.h>
19128 #include <sys/mman.h>
19129
19130 #if !STDC_HEADERS && !HAVE_STDLIB_H
19131 char *malloc ();
19132 #endif
19133
19134 /* This mess was copied from the GNU getpagesize.h.  */
19135 #if !HAVE_GETPAGESIZE
19136 /* Assume that all systems that can run configure have sys/param.h.  */
19137 # if !HAVE_SYS_PARAM_H
19138 #  define HAVE_SYS_PARAM_H 1
19139 # endif
19140
19141 # ifdef _SC_PAGESIZE
19142 #  define getpagesize() sysconf(_SC_PAGESIZE)
19143 # else /* no _SC_PAGESIZE */
19144 #  if HAVE_SYS_PARAM_H
19145 #   include <sys/param.h>
19146 #   ifdef EXEC_PAGESIZE
19147 #    define getpagesize() EXEC_PAGESIZE
19148 #   else /* no EXEC_PAGESIZE */
19149 #    ifdef NBPG
19150 #     define getpagesize() NBPG * CLSIZE
19151 #     ifndef CLSIZE
19152 #      define CLSIZE 1
19153 #     endif /* no CLSIZE */
19154 #    else /* no NBPG */
19155 #     ifdef NBPC
19156 #      define getpagesize() NBPC
19157 #     else /* no NBPC */
19158 #      ifdef PAGESIZE
19159 #       define getpagesize() PAGESIZE
19160 #      endif /* PAGESIZE */
19161 #     endif /* no NBPC */
19162 #    endif /* no NBPG */
19163 #   endif /* no EXEC_PAGESIZE */
19164 #  else /* no HAVE_SYS_PARAM_H */
19165 #   define getpagesize() 8192   /* punt totally */
19166 #  endif /* no HAVE_SYS_PARAM_H */
19167 # endif /* no _SC_PAGESIZE */
19168
19169 #endif /* no HAVE_GETPAGESIZE */
19170
19171 int
19172 main ()
19173 {
19174   char *data, *data2, *data3;
19175   int i, pagesize;
19176   int fd;
19177
19178   pagesize = getpagesize ();
19179
19180   /* First, make a file with some known garbage in it. */
19181   data = (char *) malloc (pagesize);
19182   if (!data)
19183     return 1;
19184   for (i = 0; i < pagesize; ++i)
19185     *(data + i) = rand ();
19186   umask (0);
19187   fd = creat ("conftest.mmap", 0600);
19188   if (fd < 0)
19189     return 1;
19190   if (write (fd, data, pagesize) != pagesize)
19191     return 1;
19192   close (fd);
19193
19194   /* Next, try to mmap the file at a fixed address which already has
19195      something else allocated at it.  If we can, also make sure that
19196      we see the same garbage.  */
19197   fd = open ("conftest.mmap", O_RDWR);
19198   if (fd < 0)
19199     return 1;
19200   data2 = (char *) malloc (2 * pagesize);
19201   if (!data2)
19202     return 1;
19203   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19204   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19205                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19206     return 1;
19207   for (i = 0; i < pagesize; ++i)
19208     if (*(data + i) != *(data2 + i))
19209       return 1;
19210
19211   /* Finally, make sure that changes to the mapped area do not
19212      percolate back to the file as seen by read().  (This is a bug on
19213      some variants of i386 svr4.0.)  */
19214   for (i = 0; i < pagesize; ++i)
19215     *(data2 + i) = *(data2 + i) + 1;
19216   data3 = (char *) malloc (pagesize);
19217   if (!data3)
19218     return 1;
19219   if (read (fd, data3, pagesize) != pagesize)
19220     return 1;
19221   for (i = 0; i < pagesize; ++i)
19222     if (*(data + i) != *(data3 + i))
19223       return 1;
19224   close (fd);
19225   return 0;
19226 }
19227 _ACEOF
19228 rm -f conftest$ac_exeext
19229 if { (ac_try="$ac_link"
19230 case "(($ac_try" in
19231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232   *) ac_try_echo=$ac_try;;
19233 esac
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235   (eval "$ac_link") 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19239   { (case "(($ac_try" in
19240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241   *) ac_try_echo=$ac_try;;
19242 esac
19243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244   (eval "$ac_try") 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); }; }; then
19248   ac_cv_func_mmap_fixed_mapped=yes
19249 else
19250   echo "$as_me: program exited with status $ac_status" >&5
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254 ( exit $ac_status )
19255 ac_cv_func_mmap_fixed_mapped=no
19256 fi
19257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19258 fi
19259
19260
19261 fi
19262 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19263 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19264 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19265
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE_MMAP 1
19268 _ACEOF
19269
19270 fi
19271 rm -f conftest.mmap
19272
19273   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19274 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19275 if test "${ac_cv_func_mmap_file+set}" = set; then
19276   echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19278    ac_ext=c
19279 ac_cpp='$CPP $CPPFLAGS'
19280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19283
19284   if test "$cross_compiling" = yes; then
19285   ac_cv_func_mmap_file=no
19286 else
19287   cat >conftest.$ac_ext <<_ACEOF
19288
19289     /* confdefs.h.  */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h.  */
19294
19295 #include <sys/types.h>
19296 #include <sys/mman.h>
19297 #include <fcntl.h>
19298
19299 int
19300 main ()
19301 {
19302
19303   int fd;
19304   fd = creat ("foo",0777);
19305   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19306   unlink ("foo");
19307   return (fd != (int) MAP_FAILED);
19308   ;
19309   return 0;
19310 }
19311 _ACEOF
19312 rm -f conftest$ac_exeext
19313 if { (ac_try="$ac_link"
19314 case "(($ac_try" in
19315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316   *) ac_try_echo=$ac_try;;
19317 esac
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319   (eval "$ac_link") 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19323   { (case "(($ac_try" in
19324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325   *) ac_try_echo=$ac_try;;
19326 esac
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328   (eval "$ac_try") 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332   ac_cv_func_mmap_file=yes
19333 else
19334   echo "$as_me: program exited with status $ac_status" >&5
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338 ( exit $ac_status )
19339 ac_cv_func_mmap_file=no
19340 fi
19341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19342 fi
19343
19344
19345   ac_ext=c
19346 ac_cpp='$CPP $CPPFLAGS'
19347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19350
19351
19352 fi
19353 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19354 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19355 if test "$ac_cv_func_mmap_file" = yes; then
19356
19357 cat >>confdefs.h <<\_ACEOF
19358 #define HAVE_MMAP_FILE
19359 _ACEOF
19360
19361    MMAP_FILE=yes
19362
19363 fi
19364
19365   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19366 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19367 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19368   echo $ECHO_N "(cached) $ECHO_C" >&6
19369 else
19370   if test "$llvm_cv_os_type" = "Interix" ; then
19371    ac_cv_need_dev_zero_for_mmap=yes
19372  else
19373    ac_cv_need_dev_zero_for_mmap=no
19374  fi
19375
19376 fi
19377 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19378 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19379 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19380
19381 cat >>confdefs.h <<\_ACEOF
19382 #define NEED_DEV_ZERO_FOR_MMAP 1
19383 _ACEOF
19384
19385 fi
19386
19387   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19388   then
19389     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19390 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19391   fi
19392   if test "$ac_cv_func_mmap_file" = "no"
19393   then
19394     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19395 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19396   fi
19397 fi
19398
19399 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19400 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h.  */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h.  */
19407 int main() {
19408         volatile unsigned long val = 1;
19409         __sync_synchronize();
19410         __sync_val_compare_and_swap(&val, 1, 0);
19411         __sync_add_and_fetch(&val, 1);
19412         __sync_sub_and_fetch(&val, 1);
19413         return 0;
19414       }
19415
19416 _ACEOF
19417 rm -f conftest.$ac_objext conftest$ac_exeext
19418 if { (ac_try="$ac_link"
19419 case "(($ac_try" in
19420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421   *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424   (eval "$ac_link") 2>conftest.er1
19425   ac_status=$?
19426   grep -v '^ *+' conftest.er1 >conftest.err
19427   rm -f conftest.er1
19428   cat conftest.err >&5
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); } &&
19431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19441          { ac_try='test -s conftest$ac_exeext'
19442   { (case "(($ac_try" in
19443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444   *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447   (eval "$ac_try") 2>&5
19448   ac_status=$?
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); }; }; then
19451   { echo "$as_me:$LINENO: result: yes" >&5
19452 echo "${ECHO_T}yes" >&6; }
19453
19454 cat >>confdefs.h <<\_ACEOF
19455 #define LLVM_MULTITHREADED 1
19456 _ACEOF
19457
19458 else
19459   echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19461
19462         { echo "$as_me:$LINENO: result: no" >&5
19463 echo "${ECHO_T}no" >&6; }
19464
19465 cat >>confdefs.h <<\_ACEOF
19466 #define LLVM_MULTITHREADED 0
19467 _ACEOF
19468
19469   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19470 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19471 fi
19472
19473 rm -f core conftest.err conftest.$ac_objext \
19474       conftest$ac_exeext conftest.$ac_ext
19475
19476
19477
19478 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19479   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19480 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19481 if test "${llvm_cv_linux_mixed+set}" = set; then
19482   echo $ECHO_N "(cached) $ECHO_C" >&6
19483 else
19484    ac_ext=c
19485 ac_cpp='$CPP $CPPFLAGS'
19486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19489
19490   cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h.  */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h.  */
19496 #ifndef __x86_64__
19497        error: Not x86-64 even if uname says so!
19498       #endif
19499
19500 int
19501 main ()
19502 {
19503
19504   ;
19505   return 0;
19506 }
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (ac_try="$ac_compile"
19510 case "(($ac_try" in
19511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512   *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515   (eval "$ac_compile") 2>conftest.er1
19516   ac_status=$?
19517   grep -v '^ *+' conftest.er1 >conftest.err
19518   rm -f conftest.er1
19519   cat conftest.err >&5
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); } &&
19522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19523   { (case "(($ac_try" in
19524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525   *) ac_try_echo=$ac_try;;
19526 esac
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528   (eval "$ac_try") 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; } &&
19532          { ac_try='test -s conftest.$ac_objext'
19533   { (case "(($ac_try" in
19534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535   *) ac_try_echo=$ac_try;;
19536 esac
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538   (eval "$ac_try") 2>&5
19539   ac_status=$?
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); }; }; then
19542   llvm_cv_linux_mixed=no
19543 else
19544   echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19546
19547         llvm_cv_linux_mixed=yes
19548 fi
19549
19550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19551   ac_ext=c
19552 ac_cpp='$CPP $CPPFLAGS'
19553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19556
19557
19558 fi
19559 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19560 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19561
19562   if test "$llvm_cv_linux_mixed" = "yes"; then
19563     llvm_cv_target_arch="x86"
19564     ARCH="x86"
19565   fi
19566 fi
19567
19568
19569 for ac_func in __dso_handle
19570 do
19571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19575   echo $ECHO_N "(cached) $ECHO_C" >&6
19576 else
19577   cat >conftest.$ac_ext <<_ACEOF
19578 /* confdefs.h.  */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h.  */
19583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19585 #define $ac_func innocuous_$ac_func
19586
19587 /* System header to define __stub macros and hopefully few prototypes,
19588     which can conflict with char $ac_func (); below.
19589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19590     <limits.h> exists even on freestanding compilers.  */
19591
19592 #ifdef __STDC__
19593 # include <limits.h>
19594 #else
19595 # include <assert.h>
19596 #endif
19597
19598 #undef $ac_func
19599
19600 /* Override any GCC internal prototype to avoid an error.
19601    Use char because int might match the return type of a GCC
19602    builtin and then its argument prototype would still apply.  */
19603 #ifdef __cplusplus
19604 extern "C"
19605 #endif
19606 char $ac_func ();
19607 /* The GNU C library defines this for functions which it implements
19608     to always fail with ENOSYS.  Some functions are actually named
19609     something starting with __ and the normal name is an alias.  */
19610 #if defined __stub_$ac_func || defined __stub___$ac_func
19611 choke me
19612 #endif
19613
19614 int
19615 main ()
19616 {
19617 return $ac_func ();
19618   ;
19619   return 0;
19620 }
19621 _ACEOF
19622 rm -f conftest.$ac_objext conftest$ac_exeext
19623 if { (ac_try="$ac_link"
19624 case "(($ac_try" in
19625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626   *) ac_try_echo=$ac_try;;
19627 esac
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629   (eval "$ac_link") 2>conftest.er1
19630   ac_status=$?
19631   grep -v '^ *+' conftest.er1 >conftest.err
19632   rm -f conftest.er1
19633   cat conftest.err >&5
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); } &&
19636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19637   { (case "(($ac_try" in
19638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639   *) ac_try_echo=$ac_try;;
19640 esac
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642   (eval "$ac_try") 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; } &&
19646          { ac_try='test -s conftest$ac_exeext'
19647   { (case "(($ac_try" in
19648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649   *) ac_try_echo=$ac_try;;
19650 esac
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652   (eval "$ac_try") 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); }; }; then
19656   eval "$as_ac_var=yes"
19657 else
19658   echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661         eval "$as_ac_var=no"
19662 fi
19663
19664 rm -f core conftest.err conftest.$ac_objext \
19665       conftest$ac_exeext conftest.$ac_ext
19666 fi
19667 ac_res=`eval echo '${'$as_ac_var'}'`
19668                { echo "$as_me:$LINENO: result: $ac_res" >&5
19669 echo "${ECHO_T}$ac_res" >&6; }
19670 if test `eval echo '${'$as_ac_var'}'` = yes; then
19671   cat >>confdefs.h <<_ACEOF
19672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19673 _ACEOF
19674
19675 fi
19676 done
19677
19678
19679 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19680 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19681 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19682   echo $ECHO_N "(cached) $ECHO_C" >&6
19683 else
19684   llvm_cv_llvmgcc_sanity="no"
19685 if test -x "$LLVMGCC" ; then
19686   cp /dev/null conftest.c
19687   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19688       grep 'target datalayout =' > /dev/null 2>&1
19689   if test $? -eq 0 ; then
19690     llvm_cv_llvmgcc_sanity="yes"
19691   fi
19692   rm conftest.c
19693 fi
19694 fi
19695 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19696 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19697
19698 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19699   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19700 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19701   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19702   LLVMCC1=$llvmcc1path
19703
19704   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19705   LLVMCC1PLUS=$llvmcc1pluspath
19706
19707   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19708   LLVMGCCDIR=$llvmgccdir
19709
19710   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19711   LLVMGCC_LANGS=$llvmgcclangs
19712
19713   { echo "$as_me:$LINENO: result: ok" >&5
19714 echo "${ECHO_T}ok" >&6; }
19715 fi
19716
19717 SHLIBEXT=$libltdl_cv_shlibext
19718
19719
19720 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19721
19722
19723 # Translate the various configuration directories and other basic
19724 # information into substitutions that will end up in Makefile.config.in
19725 # that these configured values can be used by the makefiles
19726 if test "${prefix}" = "NONE" ; then
19727   prefix="/usr/local"
19728 fi
19729 eval LLVM_PREFIX="${prefix}";
19730 eval LLVM_BINDIR="${prefix}/bin";
19731 eval LLVM_LIBDIR="${prefix}/lib";
19732 eval LLVM_DATADIR="${prefix}/share/llvm";
19733 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19734 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19735 eval LLVM_INCLUDEDIR="${prefix}/include";
19736 eval LLVM_INFODIR="${prefix}/info";
19737 eval LLVM_MANDIR="${prefix}/man";
19738 LLVM_CONFIGTIME=`date`
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750 # Place the various directores into the config.h file as #defines so that we
19751 # can know about the installation paths within LLVM.
19752
19753 cat >>confdefs.h <<_ACEOF
19754 #define LLVM_PREFIX "$LLVM_PREFIX"
19755 _ACEOF
19756
19757
19758 cat >>confdefs.h <<_ACEOF
19759 #define LLVM_BINDIR "$LLVM_BINDIR"
19760 _ACEOF
19761
19762
19763 cat >>confdefs.h <<_ACEOF
19764 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19765 _ACEOF
19766
19767
19768 cat >>confdefs.h <<_ACEOF
19769 #define LLVM_DATADIR "$LLVM_DATADIR"
19770 _ACEOF
19771
19772
19773 cat >>confdefs.h <<_ACEOF
19774 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19775 _ACEOF
19776
19777
19778 cat >>confdefs.h <<_ACEOF
19779 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19780 _ACEOF
19781
19782
19783 cat >>confdefs.h <<_ACEOF
19784 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19785 _ACEOF
19786
19787
19788 cat >>confdefs.h <<_ACEOF
19789 #define LLVM_INFODIR "$LLVM_INFODIR"
19790 _ACEOF
19791
19792
19793 cat >>confdefs.h <<_ACEOF
19794 #define LLVM_MANDIR "$LLVM_MANDIR"
19795 _ACEOF
19796
19797
19798 cat >>confdefs.h <<_ACEOF
19799 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19800 _ACEOF
19801
19802
19803 cat >>confdefs.h <<_ACEOF
19804 #define LLVM_HOSTTRIPLE "$host"
19805 _ACEOF
19806
19807
19808 # Determine which bindings to build.
19809 if test "$BINDINGS_TO_BUILD" = auto ; then
19810   BINDINGS_TO_BUILD=""
19811   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19812     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19813   fi
19814 fi
19815 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19816
19817
19818 # This isn't really configurey, but it avoids having to repeat the list in
19819 # other files.
19820 ALL_BINDINGS=ocaml
19821
19822
19823 # Do any work necessary to ensure that bindings have what they need.
19824 binding_prereqs_failed=0
19825 for a_binding in $BINDINGS_TO_BUILD ; do
19826   case "$a_binding" in
19827   ocaml)
19828     if test "x$OCAMLC" = x ; then
19829       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19830 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19831       binding_prereqs_failed=1
19832     fi
19833     if test "x$OCAMLDEP" = x ; then
19834       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19835 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19836       binding_prereqs_failed=1
19837     fi
19838     if test "x$OCAMLOPT" = x ; then
19839       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19840 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19841           fi
19842     if test "x$with_ocaml_libdir" != xauto ; then
19843       OCAML_LIBDIR=$with_ocaml_libdir
19844
19845     else
19846       ocaml_stdlib="`"$OCAMLC" -where`"
19847       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19848       then
19849         # ocaml stdlib is beneath our prefix; use stdlib
19850         OCAML_LIBDIR=$ocaml_stdlib
19851
19852       else
19853         # ocaml stdlib is outside our prefix; use libdir/ocaml
19854         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19855
19856       fi
19857     fi
19858     ;;
19859   esac
19860 done
19861 if test "$binding_prereqs_failed" = 1 ; then
19862   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19863 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19864    { (exit 1); exit 1; }; }
19865 fi
19866
19867 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19868 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19869 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19870   echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872    ac_ext=cpp
19873 ac_cpp='$CXXCPP $CPPFLAGS'
19874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19877
19878   oldcxxflags="$CXXFLAGS"
19879   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19880   cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h.  */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h.  */
19886
19887 int
19888 main ()
19889 {
19890
19891   ;
19892   return 0;
19893 }
19894 _ACEOF
19895 rm -f conftest.$ac_objext
19896 if { (ac_try="$ac_compile"
19897 case "(($ac_try" in
19898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899   *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902   (eval "$ac_compile") 2>conftest.er1
19903   ac_status=$?
19904   grep -v '^ *+' conftest.er1 >conftest.err
19905   rm -f conftest.er1
19906   cat conftest.err >&5
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); } &&
19909          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19910   { (case "(($ac_try" in
19911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912   *) ac_try_echo=$ac_try;;
19913 esac
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915   (eval "$ac_try") 2>&5
19916   ac_status=$?
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); }; } &&
19919          { ac_try='test -s conftest.$ac_objext'
19920   { (case "(($ac_try" in
19921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922   *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925   (eval "$ac_try") 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); }; }; then
19929   llvm_cv_cxx_visibility_inlines_hidden=yes
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934         llvm_cv_cxx_visibility_inlines_hidden=no
19935 fi
19936
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19938   CXXFLAGS="$oldcxxflags"
19939   ac_ext=c
19940 ac_cpp='$CPP $CPPFLAGS'
19941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19944
19945
19946 fi
19947 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19948 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19949 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19950   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19951
19952 else
19953   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19954
19955 fi
19956
19957
19958 if test "$llvm_cv_link_use_r" = "yes" ; then
19959   RPATH="-Wl,-R"
19960 else
19961   RPATH="-Wl,-rpath"
19962 fi
19963
19964
19965 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19966   RDYNAMIC="-Wl,-export-dynamic"
19967 else
19968   RDYNAMIC=""
19969 fi
19970
19971
19972
19973 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19974
19975 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19976
19977 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19978
19979 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19980
19981 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19982
19983 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19984
19985
19986 ac_config_files="$ac_config_files Makefile.config"
19987
19988
19989 ac_config_files="$ac_config_files llvm.spec"
19990
19991
19992 ac_config_files="$ac_config_files docs/doxygen.cfg"
19993
19994
19995 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19996
19997
19998 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19999
20000
20001 ac_config_commands="$ac_config_commands setup"
20002
20003 ac_config_commands="$ac_config_commands Makefile"
20004
20005
20006 ac_config_commands="$ac_config_commands Makefile.common"
20007
20008
20009 ac_config_commands="$ac_config_commands examples/Makefile"
20010
20011
20012 ac_config_commands="$ac_config_commands lib/Makefile"
20013
20014
20015 ac_config_commands="$ac_config_commands runtime/Makefile"
20016
20017
20018 ac_config_commands="$ac_config_commands test/Makefile"
20019
20020
20021 ac_config_commands="$ac_config_commands test/Makefile.tests"
20022
20023
20024 ac_config_commands="$ac_config_commands unittests/Makefile"
20025
20026
20027 ac_config_commands="$ac_config_commands tools/Makefile"
20028
20029
20030 ac_config_commands="$ac_config_commands utils/Makefile"
20031
20032
20033 ac_config_commands="$ac_config_commands projects/Makefile"
20034
20035
20036 ac_config_commands="$ac_config_commands bindings/Makefile"
20037
20038
20039 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20040
20041
20042
20043 cat >confcache <<\_ACEOF
20044 # This file is a shell script that caches the results of configure
20045 # tests run on this system so they can be shared between configure
20046 # scripts and configure runs, see configure's option --config-cache.
20047 # It is not useful on other systems.  If it contains results you don't
20048 # want to keep, you may remove or edit it.
20049 #
20050 # config.status only pays attention to the cache file if you give it
20051 # the --recheck option to rerun configure.
20052 #
20053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20055 # following values.
20056
20057 _ACEOF
20058
20059 # The following way of writing the cache mishandles newlines in values,
20060 # but we know of no workaround that is simple, portable, and efficient.
20061 # So, we kill variables containing newlines.
20062 # Ultrix sh set writes to stderr and can't be redirected directly,
20063 # and sets the high bit in the cache file unless we assign to the vars.
20064 (
20065   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20066     eval ac_val=\$$ac_var
20067     case $ac_val in #(
20068     *${as_nl}*)
20069       case $ac_var in #(
20070       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20071 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20072       esac
20073       case $ac_var in #(
20074       _ | IFS | as_nl) ;; #(
20075       *) $as_unset $ac_var ;;
20076       esac ;;
20077     esac
20078   done
20079
20080   (set) 2>&1 |
20081     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20082     *${as_nl}ac_space=\ *)
20083       # `set' does not quote correctly, so add quotes (double-quote
20084       # substitution turns \\\\ into \\, and sed turns \\ into \).
20085       sed -n \
20086         "s/'/'\\\\''/g;
20087           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20088       ;; #(
20089     *)
20090       # `set' quotes correctly as required by POSIX, so do not add quotes.
20091       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20092       ;;
20093     esac |
20094     sort
20095 ) |
20096   sed '
20097      /^ac_cv_env_/b end
20098      t clear
20099      :clear
20100      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20101      t end
20102      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20103      :end' >>confcache
20104 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20105   if test -w "$cache_file"; then
20106     test "x$cache_file" != "x/dev/null" &&
20107       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20108 echo "$as_me: updating cache $cache_file" >&6;}
20109     cat confcache >$cache_file
20110   else
20111     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20112 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20113   fi
20114 fi
20115 rm -f confcache
20116
20117 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20118 # Let make expand exec_prefix.
20119 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20120
20121 DEFS=-DHAVE_CONFIG_H
20122
20123 ac_libobjs=
20124 ac_ltlibobjs=
20125 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20126   # 1. Remove the extension, and $U if already installed.
20127   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20128   ac_i=`echo "$ac_i" | sed "$ac_script"`
20129   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20130   #    will be set to the directory where LIBOBJS objects are built.
20131   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20132   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20133 done
20134 LIBOBJS=$ac_libobjs
20135
20136 LTLIBOBJS=$ac_ltlibobjs
20137
20138
20139 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20140   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20141 Usually this means the macro was only invoked conditionally." >&5
20142 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20143 Usually this means the macro was only invoked conditionally." >&2;}
20144    { (exit 1); exit 1; }; }
20145 fi
20146 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20147   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20148 Usually this means the macro was only invoked conditionally." >&5
20149 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20150 Usually this means the macro was only invoked conditionally." >&2;}
20151    { (exit 1); exit 1; }; }
20152 fi
20153
20154 : ${CONFIG_STATUS=./config.status}
20155 ac_clean_files_save=$ac_clean_files
20156 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20157 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20158 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20159 cat >$CONFIG_STATUS <<_ACEOF
20160 #! $SHELL
20161 # Generated by $as_me.
20162 # Run this file to recreate the current configuration.
20163 # Compiler output produced by configure, useful for debugging
20164 # configure, is in config.log if it exists.
20165
20166 debug=false
20167 ac_cs_recheck=false
20168 ac_cs_silent=false
20169 SHELL=\${CONFIG_SHELL-$SHELL}
20170 _ACEOF
20171
20172 cat >>$CONFIG_STATUS <<\_ACEOF
20173 ## --------------------- ##
20174 ## M4sh Initialization.  ##
20175 ## --------------------- ##
20176
20177 # Be Bourne compatible
20178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20179   emulate sh
20180   NULLCMD=:
20181   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20182   # is contrary to our usage.  Disable this feature.
20183   alias -g '${1+"$@"}'='"$@"'
20184   setopt NO_GLOB_SUBST
20185 else
20186   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20187 fi
20188 BIN_SH=xpg4; export BIN_SH # for Tru64
20189 DUALCASE=1; export DUALCASE # for MKS sh
20190
20191
20192 # PATH needs CR
20193 # Avoid depending upon Character Ranges.
20194 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20195 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20196 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20197 as_cr_digits='0123456789'
20198 as_cr_alnum=$as_cr_Letters$as_cr_digits
20199
20200 # The user is always right.
20201 if test "${PATH_SEPARATOR+set}" != set; then
20202   echo "#! /bin/sh" >conf$$.sh
20203   echo  "exit 0"   >>conf$$.sh
20204   chmod +x conf$$.sh
20205   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20206     PATH_SEPARATOR=';'
20207   else
20208     PATH_SEPARATOR=:
20209   fi
20210   rm -f conf$$.sh
20211 fi
20212
20213 # Support unset when possible.
20214 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20215   as_unset=unset
20216 else
20217   as_unset=false
20218 fi
20219
20220
20221 # IFS
20222 # We need space, tab and new line, in precisely that order.  Quoting is
20223 # there to prevent editors from complaining about space-tab.
20224 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20225 # splitting by setting IFS to empty value.)
20226 as_nl='
20227 '
20228 IFS=" ""        $as_nl"
20229
20230 # Find who we are.  Look in the path if we contain no directory separator.
20231 case $0 in
20232   *[\\/]* ) as_myself=$0 ;;
20233   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20234 for as_dir in $PATH
20235 do
20236   IFS=$as_save_IFS
20237   test -z "$as_dir" && as_dir=.
20238   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20239 done
20240 IFS=$as_save_IFS
20241
20242      ;;
20243 esac
20244 # We did not find ourselves, most probably we were run as `sh COMMAND'
20245 # in which case we are not to be found in the path.
20246 if test "x$as_myself" = x; then
20247   as_myself=$0
20248 fi
20249 if test ! -f "$as_myself"; then
20250   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20251   { (exit 1); exit 1; }
20252 fi
20253
20254 # Work around bugs in pre-3.0 UWIN ksh.
20255 for as_var in ENV MAIL MAILPATH
20256 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20257 done
20258 PS1='$ '
20259 PS2='> '
20260 PS4='+ '
20261
20262 # NLS nuisances.
20263 for as_var in \
20264   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20265   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20266   LC_TELEPHONE LC_TIME
20267 do
20268   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20269     eval $as_var=C; export $as_var
20270   else
20271     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20272   fi
20273 done
20274
20275 # Required to use basename.
20276 if expr a : '\(a\)' >/dev/null 2>&1 &&
20277    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20278   as_expr=expr
20279 else
20280   as_expr=false
20281 fi
20282
20283 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20284   as_basename=basename
20285 else
20286   as_basename=false
20287 fi
20288
20289
20290 # Name of the executable.
20291 as_me=`$as_basename -- "$0" ||
20292 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20293          X"$0" : 'X\(//\)$' \| \
20294          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20295 echo X/"$0" |
20296     sed '/^.*\/\([^/][^/]*\)\/*$/{
20297             s//\1/
20298             q
20299           }
20300           /^X\/\(\/\/\)$/{
20301             s//\1/
20302             q
20303           }
20304           /^X\/\(\/\).*/{
20305             s//\1/
20306             q
20307           }
20308           s/.*/./; q'`
20309
20310 # CDPATH.
20311 $as_unset CDPATH
20312
20313
20314
20315   as_lineno_1=$LINENO
20316   as_lineno_2=$LINENO
20317   test "x$as_lineno_1" != "x$as_lineno_2" &&
20318   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20319
20320   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20321   # uniformly replaced by the line number.  The first 'sed' inserts a
20322   # line-number line after each line using $LINENO; the second 'sed'
20323   # does the real work.  The second script uses 'N' to pair each
20324   # line-number line with the line containing $LINENO, and appends
20325   # trailing '-' during substitution so that $LINENO is not a special
20326   # case at line end.
20327   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20328   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20329   # E. McMahon (1931-1989) for sed's syntax.  :-)
20330   sed -n '
20331     p
20332     /[$]LINENO/=
20333   ' <$as_myself |
20334     sed '
20335       s/[$]LINENO.*/&-/
20336       t lineno
20337       b
20338       :lineno
20339       N
20340       :loop
20341       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20342       t loop
20343       s/-\n.*//
20344     ' >$as_me.lineno &&
20345   chmod +x "$as_me.lineno" ||
20346     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20347    { (exit 1); exit 1; }; }
20348
20349   # Don't try to exec as it changes $[0], causing all sort of problems
20350   # (the dirname of $[0] is not the place where we might find the
20351   # original and so on.  Autoconf is especially sensitive to this).
20352   . "./$as_me.lineno"
20353   # Exit status is that of the last command.
20354   exit
20355 }
20356
20357
20358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20359   as_dirname=dirname
20360 else
20361   as_dirname=false
20362 fi
20363
20364 ECHO_C= ECHO_N= ECHO_T=
20365 case `echo -n x` in
20366 -n*)
20367   case `echo 'x\c'` in
20368   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20369   *)   ECHO_C='\c';;
20370   esac;;
20371 *)
20372   ECHO_N='-n';;
20373 esac
20374
20375 if expr a : '\(a\)' >/dev/null 2>&1 &&
20376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20377   as_expr=expr
20378 else
20379   as_expr=false
20380 fi
20381
20382 rm -f conf$$ conf$$.exe conf$$.file
20383 if test -d conf$$.dir; then
20384   rm -f conf$$.dir/conf$$.file
20385 else
20386   rm -f conf$$.dir
20387   mkdir conf$$.dir
20388 fi
20389 echo >conf$$.file
20390 if ln -s conf$$.file conf$$ 2>/dev/null; then
20391   as_ln_s='ln -s'
20392   # ... but there are two gotchas:
20393   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20394   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20395   # In both cases, we have to default to `cp -p'.
20396   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20397     as_ln_s='cp -p'
20398 elif ln conf$$.file conf$$ 2>/dev/null; then
20399   as_ln_s=ln
20400 else
20401   as_ln_s='cp -p'
20402 fi
20403 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20404 rmdir conf$$.dir 2>/dev/null
20405
20406 if mkdir -p . 2>/dev/null; then
20407   as_mkdir_p=:
20408 else
20409   test -d ./-p && rmdir ./-p
20410   as_mkdir_p=false
20411 fi
20412
20413 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20414 # systems may use methods other than mode bits to determine executability.
20415 cat >conf$$.file <<_ASEOF
20416 #! /bin/sh
20417 exit 0
20418 _ASEOF
20419 chmod +x conf$$.file
20420 if test -x conf$$.file >/dev/null 2>&1; then
20421   as_executable_p="test -x"
20422 else
20423   as_executable_p=:
20424 fi
20425 rm -f conf$$.file
20426
20427 # Sed expression to map a string onto a valid CPP name.
20428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20429
20430 # Sed expression to map a string onto a valid variable name.
20431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20432
20433
20434 exec 6>&1
20435
20436 # Save the log message, to keep $[0] and so on meaningful, and to
20437 # report actual input values of CONFIG_FILES etc. instead of their
20438 # values after options handling.
20439 ac_log="
20440 This file was extended by llvm $as_me 2.7svn, which was
20441 generated by GNU Autoconf 2.60.  Invocation command line was
20442
20443   CONFIG_FILES    = $CONFIG_FILES
20444   CONFIG_HEADERS  = $CONFIG_HEADERS
20445   CONFIG_LINKS    = $CONFIG_LINKS
20446   CONFIG_COMMANDS = $CONFIG_COMMANDS
20447   $ $0 $@
20448
20449 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20450 "
20451
20452 _ACEOF
20453
20454 cat >>$CONFIG_STATUS <<_ACEOF
20455 # Files that config.status was made for.
20456 config_files="$ac_config_files"
20457 config_headers="$ac_config_headers"
20458 config_commands="$ac_config_commands"
20459
20460 _ACEOF
20461
20462 cat >>$CONFIG_STATUS <<\_ACEOF
20463 ac_cs_usage="\
20464 \`$as_me' instantiates files from templates according to the
20465 current configuration.
20466
20467 Usage: $0 [OPTIONS] [FILE]...
20468
20469   -h, --help       print this help, then exit
20470   -V, --version    print version number, then exit
20471   -q, --quiet      do not print progress messages
20472   -d, --debug      don't remove temporary files
20473       --recheck    update $as_me by reconfiguring in the same conditions
20474   --file=FILE[:TEMPLATE]
20475                    instantiate the configuration file FILE
20476   --header=FILE[:TEMPLATE]
20477                    instantiate the configuration header FILE
20478
20479 Configuration files:
20480 $config_files
20481
20482 Configuration headers:
20483 $config_headers
20484
20485 Configuration commands:
20486 $config_commands
20487
20488 Report bugs to <bug-autoconf@gnu.org>."
20489
20490 _ACEOF
20491 cat >>$CONFIG_STATUS <<_ACEOF
20492 ac_cs_version="\\
20493 llvm config.status 2.7svn
20494 configured by $0, generated by GNU Autoconf 2.60,
20495   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20496
20497 Copyright (C) 2006 Free Software Foundation, Inc.
20498 This config.status script is free software; the Free Software Foundation
20499 gives unlimited permission to copy, distribute and modify it."
20500
20501 ac_pwd='$ac_pwd'
20502 srcdir='$srcdir'
20503 INSTALL='$INSTALL'
20504 _ACEOF
20505
20506 cat >>$CONFIG_STATUS <<\_ACEOF
20507 # If no file are specified by the user, then we need to provide default
20508 # value.  By we need to know if files were specified by the user.
20509 ac_need_defaults=:
20510 while test $# != 0
20511 do
20512   case $1 in
20513   --*=*)
20514     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20515     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20516     ac_shift=:
20517     ;;
20518   *)
20519     ac_option=$1
20520     ac_optarg=$2
20521     ac_shift=shift
20522     ;;
20523   esac
20524
20525   case $ac_option in
20526   # Handling of the options.
20527   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20528     ac_cs_recheck=: ;;
20529   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20530     echo "$ac_cs_version"; exit ;;
20531   --debug | --debu | --deb | --de | --d | -d )
20532     debug=: ;;
20533   --file | --fil | --fi | --f )
20534     $ac_shift
20535     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20536     ac_need_defaults=false;;
20537   --header | --heade | --head | --hea )
20538     $ac_shift
20539     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20540     ac_need_defaults=false;;
20541   --he | --h)
20542     # Conflict between --help and --header
20543     { echo "$as_me: error: ambiguous option: $1
20544 Try \`$0 --help' for more information." >&2
20545    { (exit 1); exit 1; }; };;
20546   --help | --hel | -h )
20547     echo "$ac_cs_usage"; exit ;;
20548   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20549   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20550     ac_cs_silent=: ;;
20551
20552   # This is an error.
20553   -*) { echo "$as_me: error: unrecognized option: $1
20554 Try \`$0 --help' for more information." >&2
20555    { (exit 1); exit 1; }; } ;;
20556
20557   *) ac_config_targets="$ac_config_targets $1"
20558      ac_need_defaults=false ;;
20559
20560   esac
20561   shift
20562 done
20563
20564 ac_configure_extra_args=
20565
20566 if $ac_cs_silent; then
20567   exec 6>/dev/null
20568   ac_configure_extra_args="$ac_configure_extra_args --silent"
20569 fi
20570
20571 _ACEOF
20572 cat >>$CONFIG_STATUS <<_ACEOF
20573 if \$ac_cs_recheck; then
20574   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20575   CONFIG_SHELL=$SHELL
20576   export CONFIG_SHELL
20577   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20578 fi
20579
20580 _ACEOF
20581 cat >>$CONFIG_STATUS <<\_ACEOF
20582 exec 5>>config.log
20583 {
20584   echo
20585   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20586 ## Running $as_me. ##
20587 _ASBOX
20588   echo "$ac_log"
20589 } >&5
20590
20591 _ACEOF
20592 cat >>$CONFIG_STATUS <<_ACEOF
20593 #
20594 # INIT-COMMANDS
20595 #
20596 llvm_src="${srcdir}"
20597
20598 _ACEOF
20599
20600 cat >>$CONFIG_STATUS <<\_ACEOF
20601
20602 # Handling of arguments.
20603 for ac_config_target in $ac_config_targets
20604 do
20605   case $ac_config_target in
20606     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20607     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20608     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20609     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20610     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20611     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20612     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20613     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20614     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20615     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20616     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20617     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20618     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20619     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20620     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20621     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20622     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20623     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20624     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20625     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20626     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20627     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20628     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20629     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20630     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20631
20632   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20633 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20634    { (exit 1); exit 1; }; };;
20635   esac
20636 done
20637
20638
20639 # If the user did not use the arguments to specify the items to instantiate,
20640 # then the envvar interface is used.  Set only those that are not.
20641 # We use the long form for the default assignment because of an extremely
20642 # bizarre bug on SunOS 4.1.3.
20643 if $ac_need_defaults; then
20644   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20645   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20646   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20647 fi
20648
20649 # Have a temporary directory for convenience.  Make it in the build tree
20650 # simply because there is no reason against having it here, and in addition,
20651 # creating and moving files from /tmp can sometimes cause problems.
20652 # Hook for its removal unless debugging.
20653 # Note that there is a small window in which the directory will not be cleaned:
20654 # after its creation but before its name has been assigned to `$tmp'.
20655 $debug ||
20656 {
20657   tmp=
20658   trap 'exit_status=$?
20659   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20660 ' 0
20661   trap '{ (exit 1); exit 1; }' 1 2 13 15
20662 }
20663 # Create a (secure) tmp directory for tmp files.
20664
20665 {
20666   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20667   test -n "$tmp" && test -d "$tmp"
20668 }  ||
20669 {
20670   tmp=./conf$$-$RANDOM
20671   (umask 077 && mkdir "$tmp")
20672 } ||
20673 {
20674    echo "$me: cannot create a temporary directory in ." >&2
20675    { (exit 1); exit 1; }
20676 }
20677
20678 #
20679 # Set up the sed scripts for CONFIG_FILES section.
20680 #
20681
20682 # No need to generate the scripts if there are no CONFIG_FILES.
20683 # This happens for instance when ./config.status config.h
20684 if test -n "$CONFIG_FILES"; then
20685
20686 _ACEOF
20687
20688
20689
20690 ac_delim='%!_!# '
20691 for ac_last_try in false false false false false :; do
20692   cat >conf$$subs.sed <<_ACEOF
20693 SHELL!$SHELL$ac_delim
20694 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20695 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20696 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20697 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20698 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20699 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20700 exec_prefix!$exec_prefix$ac_delim
20701 prefix!$prefix$ac_delim
20702 program_transform_name!$program_transform_name$ac_delim
20703 bindir!$bindir$ac_delim
20704 sbindir!$sbindir$ac_delim
20705 libexecdir!$libexecdir$ac_delim
20706 datarootdir!$datarootdir$ac_delim
20707 datadir!$datadir$ac_delim
20708 sysconfdir!$sysconfdir$ac_delim
20709 sharedstatedir!$sharedstatedir$ac_delim
20710 localstatedir!$localstatedir$ac_delim
20711 includedir!$includedir$ac_delim
20712 oldincludedir!$oldincludedir$ac_delim
20713 docdir!$docdir$ac_delim
20714 infodir!$infodir$ac_delim
20715 htmldir!$htmldir$ac_delim
20716 dvidir!$dvidir$ac_delim
20717 pdfdir!$pdfdir$ac_delim
20718 psdir!$psdir$ac_delim
20719 libdir!$libdir$ac_delim
20720 localedir!$localedir$ac_delim
20721 mandir!$mandir$ac_delim
20722 DEFS!$DEFS$ac_delim
20723 ECHO_C!$ECHO_C$ac_delim
20724 ECHO_N!$ECHO_N$ac_delim
20725 ECHO_T!$ECHO_T$ac_delim
20726 LIBS!$LIBS$ac_delim
20727 build_alias!$build_alias$ac_delim
20728 host_alias!$host_alias$ac_delim
20729 target_alias!$target_alias$ac_delim
20730 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20731 subdirs!$subdirs$ac_delim
20732 build!$build$ac_delim
20733 build_cpu!$build_cpu$ac_delim
20734 build_vendor!$build_vendor$ac_delim
20735 build_os!$build_os$ac_delim
20736 host!$host$ac_delim
20737 host_cpu!$host_cpu$ac_delim
20738 host_vendor!$host_vendor$ac_delim
20739 host_os!$host_os$ac_delim
20740 target!$target$ac_delim
20741 target_cpu!$target_cpu$ac_delim
20742 target_vendor!$target_vendor$ac_delim
20743 target_os!$target_os$ac_delim
20744 OS!$OS$ac_delim
20745 HOST_OS!$HOST_OS$ac_delim
20746 TARGET_OS!$TARGET_OS$ac_delim
20747 LINKALL!$LINKALL$ac_delim
20748 NOLINKALL!$NOLINKALL$ac_delim
20749 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20750 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20751 ARCH!$ARCH$ac_delim
20752 ENDIAN!$ENDIAN$ac_delim
20753 CC!$CC$ac_delim
20754 CFLAGS!$CFLAGS$ac_delim
20755 LDFLAGS!$LDFLAGS$ac_delim
20756 CPPFLAGS!$CPPFLAGS$ac_delim
20757 ac_ct_CC!$ac_ct_CC$ac_delim
20758 EXEEXT!$EXEEXT$ac_delim
20759 OBJEXT!$OBJEXT$ac_delim
20760 CPP!$CPP$ac_delim
20761 GREP!$GREP$ac_delim
20762 EGREP!$EGREP$ac_delim
20763 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20764 BUILD_CC!$BUILD_CC$ac_delim
20765 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20766 BUILD_CXX!$BUILD_CXX$ac_delim
20767 CVSBUILD!$CVSBUILD$ac_delim
20768 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20769 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20770 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20771 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20772 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20773 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20774 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20775 JIT!$JIT$ac_delim
20776 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20777 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20778 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20779 ENABLE_PIC!$ENABLE_PIC$ac_delim
20780 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20781 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20782 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20783 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20784 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20785 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20786 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20787 CLANGPATH!$CLANGPATH$ac_delim
20788 CLANGXXPATH!$CLANGXXPATH$ac_delim
20789 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20790 _ACEOF
20791
20792   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20793     break
20794   elif $ac_last_try; then
20795     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20796 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20797    { (exit 1); exit 1; }; }
20798   else
20799     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20800   fi
20801 done
20802
20803 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20804 if test -n "$ac_eof"; then
20805   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20806   ac_eof=`expr $ac_eof + 1`
20807 fi
20808
20809 cat >>$CONFIG_STATUS <<_ACEOF
20810 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20812 _ACEOF
20813 sed '
20814 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20815 s/^/s,@/; s/!/@,|#_!!_#|/
20816 :n
20817 t n
20818 s/'"$ac_delim"'$/,g/; t
20819 s/$/\\/; p
20820 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20821 ' >>$CONFIG_STATUS <conf$$subs.sed
20822 rm -f conf$$subs.sed
20823 cat >>$CONFIG_STATUS <<_ACEOF
20824 CEOF$ac_eof
20825 _ACEOF
20826
20827
20828 ac_delim='%!_!# '
20829 for ac_last_try in false false false false false :; do
20830   cat >conf$$subs.sed <<_ACEOF
20831 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20832 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20833 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20834 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20835 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20836 CXX!$CXX$ac_delim
20837 CXXFLAGS!$CXXFLAGS$ac_delim
20838 ac_ct_CXX!$ac_ct_CXX$ac_delim
20839 NM!$NM$ac_delim
20840 ifGNUmake!$ifGNUmake$ac_delim
20841 LN_S!$LN_S$ac_delim
20842 CMP!$CMP$ac_delim
20843 CP!$CP$ac_delim
20844 DATE!$DATE$ac_delim
20845 FIND!$FIND$ac_delim
20846 MKDIR!$MKDIR$ac_delim
20847 MV!$MV$ac_delim
20848 RANLIB!$RANLIB$ac_delim
20849 AR!$AR$ac_delim
20850 RM!$RM$ac_delim
20851 SED!$SED$ac_delim
20852 TAR!$TAR$ac_delim
20853 BINPWD!$BINPWD$ac_delim
20854 GRAPHVIZ!$GRAPHVIZ$ac_delim
20855 DOT!$DOT$ac_delim
20856 FDP!$FDP$ac_delim
20857 NEATO!$NEATO$ac_delim
20858 TWOPI!$TWOPI$ac_delim
20859 CIRCO!$CIRCO$ac_delim
20860 GV!$GV$ac_delim
20861 DOTTY!$DOTTY$ac_delim
20862 PERL!$PERL$ac_delim
20863 HAVE_PERL!$HAVE_PERL$ac_delim
20864 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20865 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20866 INSTALL_DATA!$INSTALL_DATA$ac_delim
20867 BZIP2!$BZIP2$ac_delim
20868 DOXYGEN!$DOXYGEN$ac_delim
20869 GROFF!$GROFF$ac_delim
20870 GZIP!$GZIP$ac_delim
20871 POD2HTML!$POD2HTML$ac_delim
20872 POD2MAN!$POD2MAN$ac_delim
20873 RUNTEST!$RUNTEST$ac_delim
20874 TCLSH!$TCLSH$ac_delim
20875 ZIP!$ZIP$ac_delim
20876 OCAMLC!$OCAMLC$ac_delim
20877 OCAMLOPT!$OCAMLOPT$ac_delim
20878 OCAMLDEP!$OCAMLDEP$ac_delim
20879 OCAMLDOC!$OCAMLDOC$ac_delim
20880 GAS!$GAS$ac_delim
20881 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20882 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20883 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20884 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20885 LIBADD_DL!$LIBADD_DL$ac_delim
20886 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20887 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20888 LLVMGCC!$LLVMGCC$ac_delim
20889 LLVMGXX!$LLVMGXX$ac_delim
20890 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20891 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20892 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20893 USE_UDIS86!$USE_UDIS86$ac_delim
20894 USE_OPROFILE!$USE_OPROFILE$ac_delim
20895 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20896 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20897 MMAP_FILE!$MMAP_FILE$ac_delim
20898 LLVMCC1!$LLVMCC1$ac_delim
20899 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20900 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20901 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20902 SHLIBEXT!$SHLIBEXT$ac_delim
20903 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20904 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20905 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20906 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20907 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20908 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20909 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20910 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20911 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20912 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20913 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20914 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20915 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20916 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20917 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20918 RPATH!$RPATH$ac_delim
20919 RDYNAMIC!$RDYNAMIC$ac_delim
20920 LIBOBJS!$LIBOBJS$ac_delim
20921 LTLIBOBJS!$LTLIBOBJS$ac_delim
20922 _ACEOF
20923
20924   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
20925     break
20926   elif $ac_last_try; then
20927     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20928 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20929    { (exit 1); exit 1; }; }
20930   else
20931     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20932   fi
20933 done
20934
20935 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20936 if test -n "$ac_eof"; then
20937   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20938   ac_eof=`expr $ac_eof + 1`
20939 fi
20940
20941 cat >>$CONFIG_STATUS <<_ACEOF
20942 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20944 _ACEOF
20945 sed '
20946 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20947 s/^/s,@/; s/!/@,|#_!!_#|/
20948 :n
20949 t n
20950 s/'"$ac_delim"'$/,g/; t
20951 s/$/\\/; p
20952 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20953 ' >>$CONFIG_STATUS <conf$$subs.sed
20954 rm -f conf$$subs.sed
20955 cat >>$CONFIG_STATUS <<_ACEOF
20956 :end
20957 s/|#_!!_#|//g
20958 CEOF$ac_eof
20959 _ACEOF
20960
20961
20962 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20963 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20964 # trailing colons and then remove the whole line if VPATH becomes empty
20965 # (actually we leave an empty line to preserve line numbers).
20966 if test "x$srcdir" = x.; then
20967   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20968 s/:*\$(srcdir):*/:/
20969 s/:*\${srcdir}:*/:/
20970 s/:*@srcdir@:*/:/
20971 s/^\([^=]*=[     ]*\):*/\1/
20972 s/:*$//
20973 s/^[^=]*=[       ]*$//
20974 }'
20975 fi
20976
20977 cat >>$CONFIG_STATUS <<\_ACEOF
20978 fi # test -n "$CONFIG_FILES"
20979
20980
20981 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20982 do
20983   case $ac_tag in
20984   :[FHLC]) ac_mode=$ac_tag; continue;;
20985   esac
20986   case $ac_mode$ac_tag in
20987   :[FHL]*:*);;
20988   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20989 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20990    { (exit 1); exit 1; }; };;
20991   :[FH]-) ac_tag=-:-;;
20992   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20993   esac
20994   ac_save_IFS=$IFS
20995   IFS=:
20996   set x $ac_tag
20997   IFS=$ac_save_IFS
20998   shift
20999   ac_file=$1
21000   shift
21001
21002   case $ac_mode in
21003   :L) ac_source=$1;;
21004   :[FH])
21005     ac_file_inputs=
21006     for ac_f
21007     do
21008       case $ac_f in
21009       -) ac_f="$tmp/stdin";;
21010       *) # Look for the file first in the build tree, then in the source tree
21011          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21012          # because $ac_f cannot contain `:'.
21013          test -f "$ac_f" ||
21014            case $ac_f in
21015            [\\/$]*) false;;
21016            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21017            esac ||
21018            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21019 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21020    { (exit 1); exit 1; }; };;
21021       esac
21022       ac_file_inputs="$ac_file_inputs $ac_f"
21023     done
21024
21025     # Let's still pretend it is `configure' which instantiates (i.e., don't
21026     # use $as_me), people would be surprised to read:
21027     #    /* config.h.  Generated by config.status.  */
21028     configure_input="Generated from "`IFS=:
21029           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21030     if test x"$ac_file" != x-; then
21031       configure_input="$ac_file.  $configure_input"
21032       { echo "$as_me:$LINENO: creating $ac_file" >&5
21033 echo "$as_me: creating $ac_file" >&6;}
21034     fi
21035
21036     case $ac_tag in
21037     *:-:* | *:-) cat >"$tmp/stdin";;
21038     esac
21039     ;;
21040   esac
21041
21042   ac_dir=`$as_dirname -- "$ac_file" ||
21043 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21044          X"$ac_file" : 'X\(//\)[^/]' \| \
21045          X"$ac_file" : 'X\(//\)$' \| \
21046          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21047 echo X"$ac_file" |
21048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21049             s//\1/
21050             q
21051           }
21052           /^X\(\/\/\)[^/].*/{
21053             s//\1/
21054             q
21055           }
21056           /^X\(\/\/\)$/{
21057             s//\1/
21058             q
21059           }
21060           /^X\(\/\).*/{
21061             s//\1/
21062             q
21063           }
21064           s/.*/./; q'`
21065   { as_dir="$ac_dir"
21066   case $as_dir in #(
21067   -*) as_dir=./$as_dir;;
21068   esac
21069   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21070     as_dirs=
21071     while :; do
21072       case $as_dir in #(
21073       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21074       *) as_qdir=$as_dir;;
21075       esac
21076       as_dirs="'$as_qdir' $as_dirs"
21077       as_dir=`$as_dirname -- "$as_dir" ||
21078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21079          X"$as_dir" : 'X\(//\)[^/]' \| \
21080          X"$as_dir" : 'X\(//\)$' \| \
21081          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21082 echo X"$as_dir" |
21083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21084             s//\1/
21085             q
21086           }
21087           /^X\(\/\/\)[^/].*/{
21088             s//\1/
21089             q
21090           }
21091           /^X\(\/\/\)$/{
21092             s//\1/
21093             q
21094           }
21095           /^X\(\/\).*/{
21096             s//\1/
21097             q
21098           }
21099           s/.*/./; q'`
21100       test -d "$as_dir" && break
21101     done
21102     test -z "$as_dirs" || eval "mkdir $as_dirs"
21103   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21104 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21105    { (exit 1); exit 1; }; }; }
21106   ac_builddir=.
21107
21108 case "$ac_dir" in
21109 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21110 *)
21111   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21112   # A ".." for each directory in $ac_dir_suffix.
21113   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21114   case $ac_top_builddir_sub in
21115   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21116   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21117   esac ;;
21118 esac
21119 ac_abs_top_builddir=$ac_pwd
21120 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21121 # for backward compatibility:
21122 ac_top_builddir=$ac_top_build_prefix
21123
21124 case $srcdir in
21125   .)  # We are building in place.
21126     ac_srcdir=.
21127     ac_top_srcdir=$ac_top_builddir_sub
21128     ac_abs_top_srcdir=$ac_pwd ;;
21129   [\\/]* | ?:[\\/]* )  # Absolute name.
21130     ac_srcdir=$srcdir$ac_dir_suffix;
21131     ac_top_srcdir=$srcdir
21132     ac_abs_top_srcdir=$srcdir ;;
21133   *) # Relative name.
21134     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21135     ac_top_srcdir=$ac_top_build_prefix$srcdir
21136     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21137 esac
21138 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21139
21140
21141   case $ac_mode in
21142   :F)
21143   #
21144   # CONFIG_FILE
21145   #
21146
21147   case $INSTALL in
21148   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21149   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21150   esac
21151 _ACEOF
21152
21153 cat >>$CONFIG_STATUS <<\_ACEOF
21154 # If the template does not know about datarootdir, expand it.
21155 # FIXME: This hack should be removed a few years after 2.60.
21156 ac_datarootdir_hack=; ac_datarootdir_seen=
21157
21158 case `sed -n '/datarootdir/ {
21159   p
21160   q
21161 }
21162 /@datadir@/p
21163 /@docdir@/p
21164 /@infodir@/p
21165 /@localedir@/p
21166 /@mandir@/p
21167 ' $ac_file_inputs` in
21168 *datarootdir*) ac_datarootdir_seen=yes;;
21169 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21170   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21171 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21172 _ACEOF
21173 cat >>$CONFIG_STATUS <<_ACEOF
21174   ac_datarootdir_hack='
21175   s&@datadir@&$datadir&g
21176   s&@docdir@&$docdir&g
21177   s&@infodir@&$infodir&g
21178   s&@localedir@&$localedir&g
21179   s&@mandir@&$mandir&g
21180     s&\\\${datarootdir}&$datarootdir&g' ;;
21181 esac
21182 _ACEOF
21183
21184 # Neutralize VPATH when `$srcdir' = `.'.
21185 # Shell code in configure.ac might set extrasub.
21186 # FIXME: do we really want to maintain this feature?
21187 cat >>$CONFIG_STATUS <<_ACEOF
21188   sed "$ac_vpsub
21189 $extrasub
21190 _ACEOF
21191 cat >>$CONFIG_STATUS <<\_ACEOF
21192 :t
21193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21194 s&@configure_input@&$configure_input&;t t
21195 s&@top_builddir@&$ac_top_builddir_sub&;t t
21196 s&@srcdir@&$ac_srcdir&;t t
21197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21198 s&@top_srcdir@&$ac_top_srcdir&;t t
21199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21200 s&@builddir@&$ac_builddir&;t t
21201 s&@abs_builddir@&$ac_abs_builddir&;t t
21202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21203 s&@INSTALL@&$ac_INSTALL&;t t
21204 $ac_datarootdir_hack
21205 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21206
21207 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21208   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21209   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21210   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21211 which seems to be undefined.  Please make sure it is defined." >&5
21212 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21213 which seems to be undefined.  Please make sure it is defined." >&2;}
21214
21215   rm -f "$tmp/stdin"
21216   case $ac_file in
21217   -) cat "$tmp/out"; rm -f "$tmp/out";;
21218   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21219   esac
21220  ;;
21221   :H)
21222   #
21223   # CONFIG_HEADER
21224   #
21225 _ACEOF
21226
21227 # Transform confdefs.h into a sed script `conftest.defines', that
21228 # substitutes the proper values into config.h.in to produce config.h.
21229 rm -f conftest.defines conftest.tail
21230 # First, append a space to every undef/define line, to ease matching.
21231 echo 's/$/ /' >conftest.defines
21232 # Then, protect against being on the right side of a sed subst, or in
21233 # an unquoted here document, in config.status.  If some macros were
21234 # called several times there might be several #defines for the same
21235 # symbol, which is useless.  But do not sort them, since the last
21236 # AC_DEFINE must be honored.
21237 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21238 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21239 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21240 # PARAMS is the parameter list in the macro definition--in most cases, it's
21241 # just an empty string.
21242 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21243 ac_dB='\\)[      (].*,\\1define\\2'
21244 ac_dC=' '
21245 ac_dD=' ,'
21246
21247 uniq confdefs.h |
21248   sed -n '
21249         t rset
21250         :rset
21251         s/^[     ]*#[    ]*define[       ][      ]*//
21252         t ok
21253         d
21254         :ok
21255         s/[\\&,]/\\&/g
21256         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21257         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21258   ' >>conftest.defines
21259
21260 # Remove the space that was appended to ease matching.
21261 # Then replace #undef with comments.  This is necessary, for
21262 # example, in the case of _POSIX_SOURCE, which is predefined and required
21263 # on some systems where configure will not decide to define it.
21264 # (The regexp can be short, since the line contains either #define or #undef.)
21265 echo 's/ $//
21266 s,^[     #]*u.*,/* & */,' >>conftest.defines
21267
21268 # Break up conftest.defines:
21269 ac_max_sed_lines=50
21270
21271 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21272 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21273 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21274 # et cetera.
21275 ac_in='$ac_file_inputs'
21276 ac_out='"$tmp/out1"'
21277 ac_nxt='"$tmp/out2"'
21278
21279 while :
21280 do
21281   # Write a here document:
21282     cat >>$CONFIG_STATUS <<_ACEOF
21283     # First, check the format of the line:
21284     cat >"\$tmp/defines.sed" <<\\CEOF
21285 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21286 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21287 b
21288 :def
21289 _ACEOF
21290   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21291   echo 'CEOF
21292     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21293   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21294   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21295   grep . conftest.tail >/dev/null || break
21296   rm -f conftest.defines
21297   mv conftest.tail conftest.defines
21298 done
21299 rm -f conftest.defines conftest.tail
21300
21301 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21302 cat >>$CONFIG_STATUS <<\_ACEOF
21303   if test x"$ac_file" != x-; then
21304     echo "/* $configure_input  */" >"$tmp/config.h"
21305     cat "$ac_result" >>"$tmp/config.h"
21306     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21307       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21308 echo "$as_me: $ac_file is unchanged" >&6;}
21309     else
21310       rm -f $ac_file
21311       mv "$tmp/config.h" $ac_file
21312     fi
21313   else
21314     echo "/* $configure_input  */"
21315     cat "$ac_result"
21316   fi
21317   rm -f "$tmp/out12"
21318  ;;
21319
21320   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21321 echo "$as_me: executing $ac_file commands" >&6;}
21322  ;;
21323   esac
21324
21325
21326   case $ac_file$ac_mode in
21327     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21328    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21329     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21330    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21331     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21332    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21333     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21334    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21335     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21336    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21337     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21338    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21339     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21340    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21341     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21342    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21343     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21344    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21345     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21346    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21347     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21348    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21349     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21350    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21351     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21352    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21353
21354   esac
21355 done # for ac_tag
21356
21357
21358 { (exit 0); exit 0; }
21359 _ACEOF
21360 chmod +x $CONFIG_STATUS
21361 ac_clean_files=$ac_clean_files_save
21362
21363
21364 # configure is writing to config.log, and then calls config.status.
21365 # config.status does its own redirection, appending to config.log.
21366 # Unfortunately, on DOS this fails, as config.log is still kept open
21367 # by configure, so config.status won't be able to write to it; its
21368 # output is simply discarded.  So we exec the FD to /dev/null,
21369 # effectively closing config.log, so it can be properly (re)opened and
21370 # appended to by config.status.  When coming back to configure, we
21371 # need to make the FD available again.
21372 if test "$no_create" != yes; then
21373   ac_cs_success=:
21374   ac_config_status_args=
21375   test "$silent" = yes &&
21376     ac_config_status_args="$ac_config_status_args --quiet"
21377   exec 5>/dev/null
21378   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21379   exec 5>>config.log
21380   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21381   # would make configure fail if this is the last instruction.
21382   $ac_cs_success || { (exit 1); exit 1; }
21383 fi
21384
21385 #
21386 # CONFIG_SUBDIRS section.
21387 #
21388 if test "$no_recursion" != yes; then
21389
21390   # Remove --cache-file and --srcdir arguments so they do not pile up.
21391   ac_sub_configure_args=
21392   ac_prev=
21393   eval "set x $ac_configure_args"
21394   shift
21395   for ac_arg
21396   do
21397     if test -n "$ac_prev"; then
21398       ac_prev=
21399       continue
21400     fi
21401     case $ac_arg in
21402     -cache-file | --cache-file | --cache-fil | --cache-fi \
21403     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21404       ac_prev=cache_file ;;
21405     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21406     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21407     | --c=*)
21408       ;;
21409     --config-cache | -C)
21410       ;;
21411     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21412       ac_prev=srcdir ;;
21413     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21414       ;;
21415     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21416       ac_prev=prefix ;;
21417     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21418       ;;
21419     *)
21420       case $ac_arg in
21421       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21422       esac
21423       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21424     esac
21425   done
21426
21427   # Always prepend --prefix to ensure using the same prefix
21428   # in subdir configurations.
21429   ac_arg="--prefix=$prefix"
21430   case $ac_arg in
21431   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21432   esac
21433   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21434
21435   ac_popdir=`pwd`
21436   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21437
21438     # Do not complain, so a configure script can configure whichever
21439     # parts of a large source tree are present.
21440     test -d "$srcdir/$ac_dir" || continue
21441
21442     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21443     echo "$as_me:$LINENO: $ac_msg" >&5
21444     echo "$ac_msg" >&6
21445     { as_dir="$ac_dir"
21446   case $as_dir in #(
21447   -*) as_dir=./$as_dir;;
21448   esac
21449   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21450     as_dirs=
21451     while :; do
21452       case $as_dir in #(
21453       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21454       *) as_qdir=$as_dir;;
21455       esac
21456       as_dirs="'$as_qdir' $as_dirs"
21457       as_dir=`$as_dirname -- "$as_dir" ||
21458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21459          X"$as_dir" : 'X\(//\)[^/]' \| \
21460          X"$as_dir" : 'X\(//\)$' \| \
21461          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21462 echo X"$as_dir" |
21463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21464             s//\1/
21465             q
21466           }
21467           /^X\(\/\/\)[^/].*/{
21468             s//\1/
21469             q
21470           }
21471           /^X\(\/\/\)$/{
21472             s//\1/
21473             q
21474           }
21475           /^X\(\/\).*/{
21476             s//\1/
21477             q
21478           }
21479           s/.*/./; q'`
21480       test -d "$as_dir" && break
21481     done
21482     test -z "$as_dirs" || eval "mkdir $as_dirs"
21483   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21485    { (exit 1); exit 1; }; }; }
21486     ac_builddir=.
21487
21488 case "$ac_dir" in
21489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21490 *)
21491   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21492   # A ".." for each directory in $ac_dir_suffix.
21493   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21494   case $ac_top_builddir_sub in
21495   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21496   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21497   esac ;;
21498 esac
21499 ac_abs_top_builddir=$ac_pwd
21500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21501 # for backward compatibility:
21502 ac_top_builddir=$ac_top_build_prefix
21503
21504 case $srcdir in
21505   .)  # We are building in place.
21506     ac_srcdir=.
21507     ac_top_srcdir=$ac_top_builddir_sub
21508     ac_abs_top_srcdir=$ac_pwd ;;
21509   [\\/]* | ?:[\\/]* )  # Absolute name.
21510     ac_srcdir=$srcdir$ac_dir_suffix;
21511     ac_top_srcdir=$srcdir
21512     ac_abs_top_srcdir=$srcdir ;;
21513   *) # Relative name.
21514     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21515     ac_top_srcdir=$ac_top_build_prefix$srcdir
21516     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21517 esac
21518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21519
21520
21521     cd "$ac_dir"
21522
21523     # Check for guested configure; otherwise get Cygnus style configure.
21524     if test -f "$ac_srcdir/configure.gnu"; then
21525       ac_sub_configure=$ac_srcdir/configure.gnu
21526     elif test -f "$ac_srcdir/configure"; then
21527       ac_sub_configure=$ac_srcdir/configure
21528     elif test -f "$ac_srcdir/configure.in"; then
21529       # This should be Cygnus configure.
21530       ac_sub_configure=$ac_aux_dir/configure
21531     else
21532       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21534       ac_sub_configure=
21535     fi
21536
21537     # The recursion is here.
21538     if test -n "$ac_sub_configure"; then
21539       # Make the cache file name correct relative to the subdirectory.
21540       case $cache_file in
21541       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21542       *) # Relative name.
21543         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21544       esac
21545
21546       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21547 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21548       # The eval makes quoting arguments work.
21549       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21550            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21551         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21552 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21553    { (exit 1); exit 1; }; }
21554     fi
21555
21556     cd "$ac_popdir"
21557   done
21558 fi
21559