MC/Mach-O: Lift relocation emission logic a bit higher to separate evaluation / reloc...
[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
16181 for ac_header in valgrind/valgrind.h
16182 do
16183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16185   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16188   echo $ECHO_N "(cached) $ECHO_C" >&6
16189 fi
16190 ac_res=`eval echo '${'$as_ac_Header'}'`
16191                { echo "$as_me:$LINENO: result: $ac_res" >&5
16192 echo "${ECHO_T}$ac_res" >&6; }
16193 else
16194   # Is the header compilable?
16195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16197 cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h.  */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h.  */
16203 $ac_includes_default
16204 #include <$ac_header>
16205 _ACEOF
16206 rm -f conftest.$ac_objext
16207 if { (ac_try="$ac_compile"
16208 case "(($ac_try" in
16209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210   *) ac_try_echo=$ac_try;;
16211 esac
16212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213   (eval "$ac_compile") 2>conftest.er1
16214   ac_status=$?
16215   grep -v '^ *+' conftest.er1 >conftest.err
16216   rm -f conftest.er1
16217   cat conftest.err >&5
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); } &&
16220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16221   { (case "(($ac_try" in
16222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223   *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226   (eval "$ac_try") 2>&5
16227   ac_status=$?
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); }; } &&
16230          { ac_try='test -s conftest.$ac_objext'
16231   { (case "(($ac_try" in
16232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233   *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236   (eval "$ac_try") 2>&5
16237   ac_status=$?
16238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); }; }; then
16240   ac_header_compiler=yes
16241 else
16242   echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16244
16245         ac_header_compiler=no
16246 fi
16247
16248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16250 echo "${ECHO_T}$ac_header_compiler" >&6; }
16251
16252 # Is the header present?
16253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16255 cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h.  */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h.  */
16261 #include <$ac_header>
16262 _ACEOF
16263 if { (ac_try="$ac_cpp conftest.$ac_ext"
16264 case "(($ac_try" in
16265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266   *) ac_try_echo=$ac_try;;
16267 esac
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16270   ac_status=$?
16271   grep -v '^ *+' conftest.er1 >conftest.err
16272   rm -f conftest.er1
16273   cat conftest.err >&5
16274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275   (exit $ac_status); } >/dev/null; then
16276   if test -s conftest.err; then
16277     ac_cpp_err=$ac_c_preproc_warn_flag
16278     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16279   else
16280     ac_cpp_err=
16281   fi
16282 else
16283   ac_cpp_err=yes
16284 fi
16285 if test -z "$ac_cpp_err"; then
16286   ac_header_preproc=yes
16287 else
16288   echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16290
16291   ac_header_preproc=no
16292 fi
16293
16294 rm -f conftest.err conftest.$ac_ext
16295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16296 echo "${ECHO_T}$ac_header_preproc" >&6; }
16297
16298 # So?  What about this header?
16299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16300   yes:no: )
16301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16305     ac_header_preproc=yes
16306     ;;
16307   no:yes:* )
16308     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16310     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16311 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16312     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16314     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16315 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16318     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16320     ( cat <<\_ASBOX
16321 ## ----------------------------------- ##
16322 ## Report this to llvmbugs@cs.uiuc.edu ##
16323 ## ----------------------------------- ##
16324 _ASBOX
16325      ) | sed "s/^/$as_me: WARNING:     /" >&2
16326     ;;
16327 esac
16328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16331   echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333   eval "$as_ac_Header=\$ac_header_preproc"
16334 fi
16335 ac_res=`eval echo '${'$as_ac_Header'}'`
16336                { echo "$as_me:$LINENO: result: $ac_res" >&5
16337 echo "${ECHO_T}$ac_res" >&6; }
16338
16339 fi
16340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16341   cat >>confdefs.h <<_ACEOF
16342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16343 _ACEOF
16344
16345 fi
16346
16347 done
16348
16349 if test "$ENABLE_THREADS" -eq 1 ; then
16350
16351 for ac_header in pthread.h
16352 do
16353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358   echo $ECHO_N "(cached) $ECHO_C" >&6
16359 fi
16360 ac_res=`eval echo '${'$as_ac_Header'}'`
16361                { echo "$as_me:$LINENO: result: $ac_res" >&5
16362 echo "${ECHO_T}$ac_res" >&6; }
16363 else
16364   # Is the header compilable?
16365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h.  */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h.  */
16373 $ac_includes_default
16374 #include <$ac_header>
16375 _ACEOF
16376 rm -f conftest.$ac_objext
16377 if { (ac_try="$ac_compile"
16378 case "(($ac_try" in
16379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380   *) ac_try_echo=$ac_try;;
16381 esac
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383   (eval "$ac_compile") 2>conftest.er1
16384   ac_status=$?
16385   grep -v '^ *+' conftest.er1 >conftest.err
16386   rm -f conftest.er1
16387   cat conftest.err >&5
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); } &&
16390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391   { (case "(($ac_try" in
16392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393   *) ac_try_echo=$ac_try;;
16394 esac
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396   (eval "$ac_try") 2>&5
16397   ac_status=$?
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); }; } &&
16400          { ac_try='test -s conftest.$ac_objext'
16401   { (case "(($ac_try" in
16402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403   *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406   (eval "$ac_try") 2>&5
16407   ac_status=$?
16408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409   (exit $ac_status); }; }; then
16410   ac_header_compiler=yes
16411 else
16412   echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415         ac_header_compiler=no
16416 fi
16417
16418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16420 echo "${ECHO_T}$ac_header_compiler" >&6; }
16421
16422 # Is the header present?
16423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16425 cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h.  */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h.  */
16431 #include <$ac_header>
16432 _ACEOF
16433 if { (ac_try="$ac_cpp conftest.$ac_ext"
16434 case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16440   ac_status=$?
16441   grep -v '^ *+' conftest.er1 >conftest.err
16442   rm -f conftest.er1
16443   cat conftest.err >&5
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); } >/dev/null; then
16446   if test -s conftest.err; then
16447     ac_cpp_err=$ac_c_preproc_warn_flag
16448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16449   else
16450     ac_cpp_err=
16451   fi
16452 else
16453   ac_cpp_err=yes
16454 fi
16455 if test -z "$ac_cpp_err"; then
16456   ac_header_preproc=yes
16457 else
16458   echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16460
16461   ac_header_preproc=no
16462 fi
16463
16464 rm -f conftest.err conftest.$ac_ext
16465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16466 echo "${ECHO_T}$ac_header_preproc" >&6; }
16467
16468 # So?  What about this header?
16469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16470   yes:no: )
16471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16475     ac_header_preproc=yes
16476     ;;
16477   no:yes:* )
16478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16490     ( cat <<\_ASBOX
16491 ## ----------------------------------- ##
16492 ## Report this to llvmbugs@cs.uiuc.edu ##
16493 ## ----------------------------------- ##
16494 _ASBOX
16495      ) | sed "s/^/$as_me: WARNING:     /" >&2
16496     ;;
16497 esac
16498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16501   echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503   eval "$as_ac_Header=\$ac_header_preproc"
16504 fi
16505 ac_res=`eval echo '${'$as_ac_Header'}'`
16506                { echo "$as_me:$LINENO: result: $ac_res" >&5
16507 echo "${ECHO_T}$ac_res" >&6; }
16508
16509 fi
16510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16511   cat >>confdefs.h <<_ACEOF
16512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16513 _ACEOF
16514  HAVE_PTHREAD=1
16515
16516 else
16517   HAVE_PTHREAD=0
16518
16519 fi
16520
16521 done
16522
16523 else
16524   HAVE_PTHREAD=0
16525
16526 fi
16527
16528 if test "$llvm_cv_enable_libffi" = "yes" ; then
16529
16530
16531 for ac_header in ffi.h ffi/ffi.h
16532 do
16533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16535   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16538   echo $ECHO_N "(cached) $ECHO_C" >&6
16539 fi
16540 ac_res=`eval echo '${'$as_ac_Header'}'`
16541                { echo "$as_me:$LINENO: result: $ac_res" >&5
16542 echo "${ECHO_T}$ac_res" >&6; }
16543 else
16544   # Is the header compilable?
16545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 $ac_includes_default
16554 #include <$ac_header>
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (ac_try="$ac_compile"
16558 case "(($ac_try" in
16559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560   *) ac_try_echo=$ac_try;;
16561 esac
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563   (eval "$ac_compile") 2>conftest.er1
16564   ac_status=$?
16565   grep -v '^ *+' conftest.er1 >conftest.err
16566   rm -f conftest.er1
16567   cat conftest.err >&5
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); } &&
16570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16571   { (case "(($ac_try" in
16572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573   *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576   (eval "$ac_try") 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; } &&
16580          { ac_try='test -s conftest.$ac_objext'
16581   { (case "(($ac_try" in
16582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583   *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586   (eval "$ac_try") 2>&5
16587   ac_status=$?
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); }; }; then
16590   ac_header_compiler=yes
16591 else
16592   echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595         ac_header_compiler=no
16596 fi
16597
16598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16600 echo "${ECHO_T}$ac_header_compiler" >&6; }
16601
16602 # Is the header present?
16603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16605 cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h.  */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h.  */
16611 #include <$ac_header>
16612 _ACEOF
16613 if { (ac_try="$ac_cpp conftest.$ac_ext"
16614 case "(($ac_try" in
16615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616   *) ac_try_echo=$ac_try;;
16617 esac
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16620   ac_status=$?
16621   grep -v '^ *+' conftest.er1 >conftest.err
16622   rm -f conftest.er1
16623   cat conftest.err >&5
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); } >/dev/null; then
16626   if test -s conftest.err; then
16627     ac_cpp_err=$ac_c_preproc_warn_flag
16628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16629   else
16630     ac_cpp_err=
16631   fi
16632 else
16633   ac_cpp_err=yes
16634 fi
16635 if test -z "$ac_cpp_err"; then
16636   ac_header_preproc=yes
16637 else
16638   echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641   ac_header_preproc=no
16642 fi
16643
16644 rm -f conftest.err conftest.$ac_ext
16645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16646 echo "${ECHO_T}$ac_header_preproc" >&6; }
16647
16648 # So?  What about this header?
16649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16650   yes:no: )
16651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16655     ac_header_preproc=yes
16656     ;;
16657   no:yes:* )
16658     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16660     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16661 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16662     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16664     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16665 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16668     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16670     ( cat <<\_ASBOX
16671 ## ----------------------------------- ##
16672 ## Report this to llvmbugs@cs.uiuc.edu ##
16673 ## ----------------------------------- ##
16674 _ASBOX
16675      ) | sed "s/^/$as_me: WARNING:     /" >&2
16676     ;;
16677 esac
16678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16681   echo $ECHO_N "(cached) $ECHO_C" >&6
16682 else
16683   eval "$as_ac_Header=\$ac_header_preproc"
16684 fi
16685 ac_res=`eval echo '${'$as_ac_Header'}'`
16686                { echo "$as_me:$LINENO: result: $ac_res" >&5
16687 echo "${ECHO_T}$ac_res" >&6; }
16688
16689 fi
16690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16691   cat >>confdefs.h <<_ACEOF
16692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16693 _ACEOF
16694
16695 fi
16696
16697 done
16698
16699 fi
16700
16701
16702
16703
16704   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16705 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16706 if test "${ac_cv_huge_val_sanity+set}" = set; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709
16710     ac_ext=cpp
16711 ac_cpp='$CXXCPP $CPPFLAGS'
16712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16715
16716     ac_save_CXXFLAGS=$CXXFLAGS
16717     CXXFLAGS=-pedantic
16718     if test "$cross_compiling" = yes; then
16719   ac_cv_huge_val_sanity=yes
16720 else
16721   cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727 #include <math.h>
16728 int
16729 main ()
16730 {
16731 double x = HUGE_VAL; return x != x;
16732   ;
16733   return 0;
16734 }
16735 _ACEOF
16736 rm -f conftest$ac_exeext
16737 if { (ac_try="$ac_link"
16738 case "(($ac_try" in
16739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740   *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743   (eval "$ac_link") 2>&5
16744   ac_status=$?
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16747   { (case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752   (eval "$ac_try") 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; }; then
16756   ac_cv_huge_val_sanity=yes
16757 else
16758   echo "$as_me: program exited with status $ac_status" >&5
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 ( exit $ac_status )
16763 ac_cv_huge_val_sanity=no
16764 fi
16765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16766 fi
16767
16768
16769     CXXFLAGS=$ac_save_CXXFLAGS
16770     ac_ext=c
16771 ac_cpp='$CPP $CPPFLAGS'
16772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16775
16776
16777 fi
16778 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16779 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16780   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16781
16782
16783 { echo "$as_me:$LINENO: checking for pid_t" >&5
16784 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16785 if test "${ac_cv_type_pid_t+set}" = set; then
16786   echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788   cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h.  */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h.  */
16794 $ac_includes_default
16795 typedef pid_t ac__type_new_;
16796 int
16797 main ()
16798 {
16799 if ((ac__type_new_ *) 0)
16800   return 0;
16801 if (sizeof (ac__type_new_))
16802   return 0;
16803   ;
16804   return 0;
16805 }
16806 _ACEOF
16807 rm -f conftest.$ac_objext
16808 if { (ac_try="$ac_compile"
16809 case "(($ac_try" in
16810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811   *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814   (eval "$ac_compile") 2>conftest.er1
16815   ac_status=$?
16816   grep -v '^ *+' conftest.er1 >conftest.err
16817   rm -f conftest.er1
16818   cat conftest.err >&5
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); } &&
16821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822   { (case "(($ac_try" in
16823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824   *) ac_try_echo=$ac_try;;
16825 esac
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827   (eval "$ac_try") 2>&5
16828   ac_status=$?
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); }; } &&
16831          { ac_try='test -s conftest.$ac_objext'
16832   { (case "(($ac_try" in
16833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834   *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837   (eval "$ac_try") 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; }; then
16841   ac_cv_type_pid_t=yes
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846         ac_cv_type_pid_t=no
16847 fi
16848
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850 fi
16851 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16852 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16853 if test $ac_cv_type_pid_t = yes; then
16854   :
16855 else
16856
16857 cat >>confdefs.h <<_ACEOF
16858 #define pid_t int
16859 _ACEOF
16860
16861 fi
16862
16863 { echo "$as_me:$LINENO: checking for size_t" >&5
16864 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16865 if test "${ac_cv_type_size_t+set}" = set; then
16866   echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868   cat >conftest.$ac_ext <<_ACEOF
16869 /* confdefs.h.  */
16870 _ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h.  */
16874 $ac_includes_default
16875 typedef size_t ac__type_new_;
16876 int
16877 main ()
16878 {
16879 if ((ac__type_new_ *) 0)
16880   return 0;
16881 if (sizeof (ac__type_new_))
16882   return 0;
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 rm -f conftest.$ac_objext
16888 if { (ac_try="$ac_compile"
16889 case "(($ac_try" in
16890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891   *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894   (eval "$ac_compile") 2>conftest.er1
16895   ac_status=$?
16896   grep -v '^ *+' conftest.er1 >conftest.err
16897   rm -f conftest.er1
16898   cat conftest.err >&5
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); } &&
16901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16911          { ac_try='test -s conftest.$ac_objext'
16912   { (case "(($ac_try" in
16913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914   *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917   (eval "$ac_try") 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; }; then
16921   ac_cv_type_size_t=yes
16922 else
16923   echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16925
16926         ac_cv_type_size_t=no
16927 fi
16928
16929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16930 fi
16931 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16932 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16933 if test $ac_cv_type_size_t = yes; then
16934   :
16935 else
16936
16937 cat >>confdefs.h <<_ACEOF
16938 #define size_t unsigned int
16939 _ACEOF
16940
16941 fi
16942
16943
16944 cat >>confdefs.h <<_ACEOF
16945 #define RETSIGTYPE void
16946 _ACEOF
16947
16948 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16949 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16950 if test "${ac_cv_struct_tm+set}" = set; then
16951   echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953   cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h.  */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h.  */
16959 #include <sys/types.h>
16960 #include <time.h>
16961
16962 int
16963 main ()
16964 {
16965 struct tm *tp; tp->tm_sec;
16966   ;
16967   return 0;
16968 }
16969 _ACEOF
16970 rm -f conftest.$ac_objext
16971 if { (ac_try="$ac_compile"
16972 case "(($ac_try" in
16973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974   *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977   (eval "$ac_compile") 2>conftest.er1
16978   ac_status=$?
16979   grep -v '^ *+' conftest.er1 >conftest.err
16980   rm -f conftest.er1
16981   cat conftest.err >&5
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } &&
16984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16994          { ac_try='test -s conftest.$ac_objext'
16995   { (case "(($ac_try" in
16996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997   *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000   (eval "$ac_try") 2>&5
17001   ac_status=$?
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); }; }; then
17004   ac_cv_struct_tm=time.h
17005 else
17006   echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009         ac_cv_struct_tm=sys/time.h
17010 fi
17011
17012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17013 fi
17014 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17015 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17016 if test $ac_cv_struct_tm = sys/time.h; then
17017
17018 cat >>confdefs.h <<\_ACEOF
17019 #define TM_IN_SYS_TIME 1
17020 _ACEOF
17021
17022 fi
17023
17024 { echo "$as_me:$LINENO: checking for int64_t" >&5
17025 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17026 if test "${ac_cv_type_int64_t+set}" = set; then
17027   echo $ECHO_N "(cached) $ECHO_C" >&6
17028 else
17029   cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h.  */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h.  */
17035 $ac_includes_default
17036 typedef int64_t ac__type_new_;
17037 int
17038 main ()
17039 {
17040 if ((ac__type_new_ *) 0)
17041   return 0;
17042 if (sizeof (ac__type_new_))
17043   return 0;
17044   ;
17045   return 0;
17046 }
17047 _ACEOF
17048 rm -f conftest.$ac_objext
17049 if { (ac_try="$ac_compile"
17050 case "(($ac_try" in
17051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052   *) ac_try_echo=$ac_try;;
17053 esac
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055   (eval "$ac_compile") 2>conftest.er1
17056   ac_status=$?
17057   grep -v '^ *+' conftest.er1 >conftest.err
17058   rm -f conftest.er1
17059   cat conftest.err >&5
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); } &&
17062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17072          { ac_try='test -s conftest.$ac_objext'
17073   { (case "(($ac_try" in
17074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075   *) ac_try_echo=$ac_try;;
17076 esac
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078   (eval "$ac_try") 2>&5
17079   ac_status=$?
17080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081   (exit $ac_status); }; }; then
17082   ac_cv_type_int64_t=yes
17083 else
17084   echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.$ac_ext >&5
17086
17087         ac_cv_type_int64_t=no
17088 fi
17089
17090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17091 fi
17092 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17093 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17094 if test $ac_cv_type_int64_t = yes; then
17095
17096 cat >>confdefs.h <<_ACEOF
17097 #define HAVE_INT64_T 1
17098 _ACEOF
17099
17100
17101 else
17102   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17103 echo "$as_me: error: Type int64_t required but not found" >&2;}
17104    { (exit 1); exit 1; }; }
17105 fi
17106
17107 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17108 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17109 if test "${ac_cv_type_uint64_t+set}" = set; then
17110   echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112   cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h.  */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h.  */
17118 $ac_includes_default
17119 typedef uint64_t ac__type_new_;
17120 int
17121 main ()
17122 {
17123 if ((ac__type_new_ *) 0)
17124   return 0;
17125 if (sizeof (ac__type_new_))
17126   return 0;
17127   ;
17128   return 0;
17129 }
17130 _ACEOF
17131 rm -f conftest.$ac_objext
17132 if { (ac_try="$ac_compile"
17133 case "(($ac_try" in
17134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135   *) ac_try_echo=$ac_try;;
17136 esac
17137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138   (eval "$ac_compile") 2>conftest.er1
17139   ac_status=$?
17140   grep -v '^ *+' conftest.er1 >conftest.err
17141   rm -f conftest.er1
17142   cat conftest.err >&5
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); } &&
17145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17146   { (case "(($ac_try" in
17147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148   *) ac_try_echo=$ac_try;;
17149 esac
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151   (eval "$ac_try") 2>&5
17152   ac_status=$?
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); }; } &&
17155          { ac_try='test -s conftest.$ac_objext'
17156   { (case "(($ac_try" in
17157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158   *) ac_try_echo=$ac_try;;
17159 esac
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161   (eval "$ac_try") 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); }; }; then
17165   ac_cv_type_uint64_t=yes
17166 else
17167   echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17169
17170         ac_cv_type_uint64_t=no
17171 fi
17172
17173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174 fi
17175 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17176 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17177 if test $ac_cv_type_uint64_t = yes; then
17178
17179 cat >>confdefs.h <<_ACEOF
17180 #define HAVE_UINT64_T 1
17181 _ACEOF
17182
17183
17184 else
17185   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17186 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17187 if test "${ac_cv_type_u_int64_t+set}" = set; then
17188   echo $ECHO_N "(cached) $ECHO_C" >&6
17189 else
17190   cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h.  */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h.  */
17196 $ac_includes_default
17197 typedef u_int64_t ac__type_new_;
17198 int
17199 main ()
17200 {
17201 if ((ac__type_new_ *) 0)
17202   return 0;
17203 if (sizeof (ac__type_new_))
17204   return 0;
17205   ;
17206   return 0;
17207 }
17208 _ACEOF
17209 rm -f conftest.$ac_objext
17210 if { (ac_try="$ac_compile"
17211 case "(($ac_try" in
17212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213   *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216   (eval "$ac_compile") 2>conftest.er1
17217   ac_status=$?
17218   grep -v '^ *+' conftest.er1 >conftest.err
17219   rm -f conftest.er1
17220   cat conftest.err >&5
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); } &&
17223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17224   { (case "(($ac_try" in
17225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226   *) ac_try_echo=$ac_try;;
17227 esac
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229   (eval "$ac_try") 2>&5
17230   ac_status=$?
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); }; } &&
17233          { ac_try='test -s conftest.$ac_objext'
17234   { (case "(($ac_try" in
17235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236   *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239   (eval "$ac_try") 2>&5
17240   ac_status=$?
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); }; }; then
17243   ac_cv_type_u_int64_t=yes
17244 else
17245   echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248         ac_cv_type_u_int64_t=no
17249 fi
17250
17251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252 fi
17253 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17254 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17255 if test $ac_cv_type_u_int64_t = yes; then
17256
17257 cat >>confdefs.h <<_ACEOF
17258 #define HAVE_U_INT64_T 1
17259 _ACEOF
17260
17261
17262 else
17263   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17264 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17265    { (exit 1); exit 1; }; }
17266 fi
17267
17268 fi
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17280 do
17281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17285   echo $ECHO_N "(cached) $ECHO_C" >&6
17286 else
17287   cat >conftest.$ac_ext <<_ACEOF
17288 /* confdefs.h.  */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h.  */
17293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17295 #define $ac_func innocuous_$ac_func
17296
17297 /* System header to define __stub macros and hopefully few prototypes,
17298     which can conflict with char $ac_func (); below.
17299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17300     <limits.h> exists even on freestanding compilers.  */
17301
17302 #ifdef __STDC__
17303 # include <limits.h>
17304 #else
17305 # include <assert.h>
17306 #endif
17307
17308 #undef $ac_func
17309
17310 /* Override any GCC internal prototype to avoid an error.
17311    Use char because int might match the return type of a GCC
17312    builtin and then its argument prototype would still apply.  */
17313 #ifdef __cplusplus
17314 extern "C"
17315 #endif
17316 char $ac_func ();
17317 /* The GNU C library defines this for functions which it implements
17318     to always fail with ENOSYS.  Some functions are actually named
17319     something starting with __ and the normal name is an alias.  */
17320 #if defined __stub_$ac_func || defined __stub___$ac_func
17321 choke me
17322 #endif
17323
17324 int
17325 main ()
17326 {
17327 return $ac_func ();
17328   ;
17329   return 0;
17330 }
17331 _ACEOF
17332 rm -f conftest.$ac_objext conftest$ac_exeext
17333 if { (ac_try="$ac_link"
17334 case "(($ac_try" in
17335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336   *) ac_try_echo=$ac_try;;
17337 esac
17338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339   (eval "$ac_link") 2>conftest.er1
17340   ac_status=$?
17341   grep -v '^ *+' conftest.er1 >conftest.err
17342   rm -f conftest.er1
17343   cat conftest.err >&5
17344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); } &&
17346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17347   { (case "(($ac_try" in
17348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349   *) ac_try_echo=$ac_try;;
17350 esac
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352   (eval "$ac_try") 2>&5
17353   ac_status=$?
17354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); }; } &&
17356          { ac_try='test -s conftest$ac_exeext'
17357   { (case "(($ac_try" in
17358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359   *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362   (eval "$ac_try") 2>&5
17363   ac_status=$?
17364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); }; }; then
17366   eval "$as_ac_var=yes"
17367 else
17368   echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371         eval "$as_ac_var=no"
17372 fi
17373
17374 rm -f core conftest.err conftest.$ac_objext \
17375       conftest$ac_exeext conftest.$ac_ext
17376 fi
17377 ac_res=`eval echo '${'$as_ac_var'}'`
17378                { echo "$as_me:$LINENO: result: $ac_res" >&5
17379 echo "${ECHO_T}$ac_res" >&6; }
17380 if test `eval echo '${'$as_ac_var'}'` = yes; then
17381   cat >>confdefs.h <<_ACEOF
17382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17383 _ACEOF
17384
17385 fi
17386 done
17387
17388
17389
17390
17391
17392 for ac_func in powf fmodf strtof round
17393 do
17394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17398   echo $ECHO_N "(cached) $ECHO_C" >&6
17399 else
17400   cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h.  */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h.  */
17406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17408 #define $ac_func innocuous_$ac_func
17409
17410 /* System header to define __stub macros and hopefully few prototypes,
17411     which can conflict with char $ac_func (); below.
17412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17413     <limits.h> exists even on freestanding compilers.  */
17414
17415 #ifdef __STDC__
17416 # include <limits.h>
17417 #else
17418 # include <assert.h>
17419 #endif
17420
17421 #undef $ac_func
17422
17423 /* Override any GCC internal prototype to avoid an error.
17424    Use char because int might match the return type of a GCC
17425    builtin and then its argument prototype would still apply.  */
17426 #ifdef __cplusplus
17427 extern "C"
17428 #endif
17429 char $ac_func ();
17430 /* The GNU C library defines this for functions which it implements
17431     to always fail with ENOSYS.  Some functions are actually named
17432     something starting with __ and the normal name is an alias.  */
17433 #if defined __stub_$ac_func || defined __stub___$ac_func
17434 choke me
17435 #endif
17436
17437 int
17438 main ()
17439 {
17440 return $ac_func ();
17441   ;
17442   return 0;
17443 }
17444 _ACEOF
17445 rm -f conftest.$ac_objext conftest$ac_exeext
17446 if { (ac_try="$ac_link"
17447 case "(($ac_try" in
17448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449   *) ac_try_echo=$ac_try;;
17450 esac
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452   (eval "$ac_link") 2>conftest.er1
17453   ac_status=$?
17454   grep -v '^ *+' conftest.er1 >conftest.err
17455   rm -f conftest.er1
17456   cat conftest.err >&5
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); } &&
17459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17460   { (case "(($ac_try" in
17461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462   *) ac_try_echo=$ac_try;;
17463 esac
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465   (eval "$ac_try") 2>&5
17466   ac_status=$?
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); }; } &&
17469          { ac_try='test -s conftest$ac_exeext'
17470   { (case "(($ac_try" in
17471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472   *) ac_try_echo=$ac_try;;
17473 esac
17474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475   (eval "$ac_try") 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }; }; then
17479   eval "$as_ac_var=yes"
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484         eval "$as_ac_var=no"
17485 fi
17486
17487 rm -f core conftest.err conftest.$ac_objext \
17488       conftest$ac_exeext conftest.$ac_ext
17489 fi
17490 ac_res=`eval echo '${'$as_ac_var'}'`
17491                { echo "$as_me:$LINENO: result: $ac_res" >&5
17492 echo "${ECHO_T}$ac_res" >&6; }
17493 if test `eval echo '${'$as_ac_var'}'` = yes; then
17494   cat >>confdefs.h <<_ACEOF
17495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17496 _ACEOF
17497
17498 fi
17499 done
17500
17501
17502
17503
17504
17505
17506 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17507 do
17508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17512   echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514   cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h.  */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h.  */
17520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17522 #define $ac_func innocuous_$ac_func
17523
17524 /* System header to define __stub macros and hopefully few prototypes,
17525     which can conflict with char $ac_func (); below.
17526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17527     <limits.h> exists even on freestanding compilers.  */
17528
17529 #ifdef __STDC__
17530 # include <limits.h>
17531 #else
17532 # include <assert.h>
17533 #endif
17534
17535 #undef $ac_func
17536
17537 /* Override any GCC internal prototype to avoid an error.
17538    Use char because int might match the return type of a GCC
17539    builtin and then its argument prototype would still apply.  */
17540 #ifdef __cplusplus
17541 extern "C"
17542 #endif
17543 char $ac_func ();
17544 /* The GNU C library defines this for functions which it implements
17545     to always fail with ENOSYS.  Some functions are actually named
17546     something starting with __ and the normal name is an alias.  */
17547 #if defined __stub_$ac_func || defined __stub___$ac_func
17548 choke me
17549 #endif
17550
17551 int
17552 main ()
17553 {
17554 return $ac_func ();
17555   ;
17556   return 0;
17557 }
17558 _ACEOF
17559 rm -f conftest.$ac_objext conftest$ac_exeext
17560 if { (ac_try="$ac_link"
17561 case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_link") 2>conftest.er1
17567   ac_status=$?
17568   grep -v '^ *+' conftest.er1 >conftest.err
17569   rm -f conftest.er1
17570   cat conftest.err >&5
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } &&
17573          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17574   { (case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579   (eval "$ac_try") 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; } &&
17583          { ac_try='test -s conftest$ac_exeext'
17584   { (case "(($ac_try" in
17585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586   *) ac_try_echo=$ac_try;;
17587 esac
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589   (eval "$ac_try") 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; }; then
17593   eval "$as_ac_var=yes"
17594 else
17595   echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598         eval "$as_ac_var=no"
17599 fi
17600
17601 rm -f core conftest.err conftest.$ac_objext \
17602       conftest$ac_exeext conftest.$ac_ext
17603 fi
17604 ac_res=`eval echo '${'$as_ac_var'}'`
17605                { echo "$as_me:$LINENO: result: $ac_res" >&5
17606 echo "${ECHO_T}$ac_res" >&6; }
17607 if test `eval echo '${'$as_ac_var'}'` = yes; then
17608   cat >>confdefs.h <<_ACEOF
17609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17610 _ACEOF
17611
17612 fi
17613 done
17614
17615
17616
17617
17618 for ac_func in isatty mkdtemp mkstemp
17619 do
17620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17624   echo $ECHO_N "(cached) $ECHO_C" >&6
17625 else
17626   cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h.  */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h.  */
17632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17634 #define $ac_func innocuous_$ac_func
17635
17636 /* System header to define __stub macros and hopefully few prototypes,
17637     which can conflict with char $ac_func (); below.
17638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17639     <limits.h> exists even on freestanding compilers.  */
17640
17641 #ifdef __STDC__
17642 # include <limits.h>
17643 #else
17644 # include <assert.h>
17645 #endif
17646
17647 #undef $ac_func
17648
17649 /* Override any GCC internal prototype to avoid an error.
17650    Use char because int might match the return type of a GCC
17651    builtin and then its argument prototype would still apply.  */
17652 #ifdef __cplusplus
17653 extern "C"
17654 #endif
17655 char $ac_func ();
17656 /* The GNU C library defines this for functions which it implements
17657     to always fail with ENOSYS.  Some functions are actually named
17658     something starting with __ and the normal name is an alias.  */
17659 #if defined __stub_$ac_func || defined __stub___$ac_func
17660 choke me
17661 #endif
17662
17663 int
17664 main ()
17665 {
17666 return $ac_func ();
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 rm -f conftest.$ac_objext conftest$ac_exeext
17672 if { (ac_try="$ac_link"
17673 case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_link") 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } &&
17685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686   { (case "(($ac_try" in
17687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688   *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691   (eval "$ac_try") 2>&5
17692   ac_status=$?
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); }; } &&
17695          { ac_try='test -s conftest$ac_exeext'
17696   { (case "(($ac_try" in
17697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698   *) ac_try_echo=$ac_try;;
17699 esac
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701   (eval "$ac_try") 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; }; then
17705   eval "$as_ac_var=yes"
17706 else
17707   echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17709
17710         eval "$as_ac_var=no"
17711 fi
17712
17713 rm -f core conftest.err conftest.$ac_objext \
17714       conftest$ac_exeext conftest.$ac_ext
17715 fi
17716 ac_res=`eval echo '${'$as_ac_var'}'`
17717                { echo "$as_me:$LINENO: result: $ac_res" >&5
17718 echo "${ECHO_T}$ac_res" >&6; }
17719 if test `eval echo '${'$as_ac_var'}'` = yes; then
17720   cat >>confdefs.h <<_ACEOF
17721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17722 _ACEOF
17723
17724 fi
17725 done
17726
17727
17728
17729
17730
17731
17732 for ac_func in mktemp realpath sbrk setrlimit strdup
17733 do
17734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17738   echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740   cat >conftest.$ac_ext <<_ACEOF
17741 /* confdefs.h.  */
17742 _ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h.  */
17746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17748 #define $ac_func innocuous_$ac_func
17749
17750 /* System header to define __stub macros and hopefully few prototypes,
17751     which can conflict with char $ac_func (); below.
17752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17753     <limits.h> exists even on freestanding compilers.  */
17754
17755 #ifdef __STDC__
17756 # include <limits.h>
17757 #else
17758 # include <assert.h>
17759 #endif
17760
17761 #undef $ac_func
17762
17763 /* Override any GCC internal prototype to avoid an error.
17764    Use char because int might match the return type of a GCC
17765    builtin and then its argument prototype would still apply.  */
17766 #ifdef __cplusplus
17767 extern "C"
17768 #endif
17769 char $ac_func ();
17770 /* The GNU C library defines this for functions which it implements
17771     to always fail with ENOSYS.  Some functions are actually named
17772     something starting with __ and the normal name is an alias.  */
17773 #if defined __stub_$ac_func || defined __stub___$ac_func
17774 choke me
17775 #endif
17776
17777 int
17778 main ()
17779 {
17780 return $ac_func ();
17781   ;
17782   return 0;
17783 }
17784 _ACEOF
17785 rm -f conftest.$ac_objext conftest$ac_exeext
17786 if { (ac_try="$ac_link"
17787 case "(($ac_try" in
17788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789   *) ac_try_echo=$ac_try;;
17790 esac
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792   (eval "$ac_link") 2>conftest.er1
17793   ac_status=$?
17794   grep -v '^ *+' conftest.er1 >conftest.err
17795   rm -f conftest.er1
17796   cat conftest.err >&5
17797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798   (exit $ac_status); } &&
17799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17800   { (case "(($ac_try" in
17801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802   *) ac_try_echo=$ac_try;;
17803 esac
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805   (eval "$ac_try") 2>&5
17806   ac_status=$?
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); }; } &&
17809          { ac_try='test -s conftest$ac_exeext'
17810   { (case "(($ac_try" in
17811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812   *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815   (eval "$ac_try") 2>&5
17816   ac_status=$?
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); }; }; then
17819   eval "$as_ac_var=yes"
17820 else
17821   echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824         eval "$as_ac_var=no"
17825 fi
17826
17827 rm -f core conftest.err conftest.$ac_objext \
17828       conftest$ac_exeext conftest.$ac_ext
17829 fi
17830 ac_res=`eval echo '${'$as_ac_var'}'`
17831                { echo "$as_me:$LINENO: result: $ac_res" >&5
17832 echo "${ECHO_T}$ac_res" >&6; }
17833 if test `eval echo '${'$as_ac_var'}'` = yes; then
17834   cat >>confdefs.h <<_ACEOF
17835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17836 _ACEOF
17837
17838 fi
17839 done
17840
17841
17842
17843
17844
17845 for ac_func in strerror strerror_r strerror_s setenv
17846 do
17847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853   cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17861 #define $ac_func innocuous_$ac_func
17862
17863 /* System header to define __stub macros and hopefully few prototypes,
17864     which can conflict with char $ac_func (); below.
17865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17866     <limits.h> exists even on freestanding compilers.  */
17867
17868 #ifdef __STDC__
17869 # include <limits.h>
17870 #else
17871 # include <assert.h>
17872 #endif
17873
17874 #undef $ac_func
17875
17876 /* Override any GCC internal prototype to avoid an error.
17877    Use char because int might match the return type of a GCC
17878    builtin and then its argument prototype would still apply.  */
17879 #ifdef __cplusplus
17880 extern "C"
17881 #endif
17882 char $ac_func ();
17883 /* The GNU C library defines this for functions which it implements
17884     to always fail with ENOSYS.  Some functions are actually named
17885     something starting with __ and the normal name is an alias.  */
17886 #if defined __stub_$ac_func || defined __stub___$ac_func
17887 choke me
17888 #endif
17889
17890 int
17891 main ()
17892 {
17893 return $ac_func ();
17894   ;
17895   return 0;
17896 }
17897 _ACEOF
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (ac_try="$ac_link"
17900 case "(($ac_try" in
17901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902   *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905   (eval "$ac_link") 2>conftest.er1
17906   ac_status=$?
17907   grep -v '^ *+' conftest.er1 >conftest.err
17908   rm -f conftest.er1
17909   cat conftest.err >&5
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } &&
17912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17913   { (case "(($ac_try" in
17914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915   *) ac_try_echo=$ac_try;;
17916 esac
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918   (eval "$ac_try") 2>&5
17919   ac_status=$?
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); }; } &&
17922          { ac_try='test -s conftest$ac_exeext'
17923   { (case "(($ac_try" in
17924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925   *) ac_try_echo=$ac_try;;
17926 esac
17927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928   (eval "$ac_try") 2>&5
17929   ac_status=$?
17930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931   (exit $ac_status); }; }; then
17932   eval "$as_ac_var=yes"
17933 else
17934   echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937         eval "$as_ac_var=no"
17938 fi
17939
17940 rm -f core conftest.err conftest.$ac_objext \
17941       conftest$ac_exeext conftest.$ac_ext
17942 fi
17943 ac_res=`eval echo '${'$as_ac_var'}'`
17944                { echo "$as_me:$LINENO: result: $ac_res" >&5
17945 echo "${ECHO_T}$ac_res" >&6; }
17946 if test `eval echo '${'$as_ac_var'}'` = yes; then
17947   cat >>confdefs.h <<_ACEOF
17948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17949 _ACEOF
17950
17951 fi
17952 done
17953
17954
17955
17956
17957
17958 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17959 do
17960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17964   echo $ECHO_N "(cached) $ECHO_C" >&6
17965 else
17966   cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h.  */
17968 _ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h.  */
17972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17974 #define $ac_func innocuous_$ac_func
17975
17976 /* System header to define __stub macros and hopefully few prototypes,
17977     which can conflict with char $ac_func (); below.
17978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17979     <limits.h> exists even on freestanding compilers.  */
17980
17981 #ifdef __STDC__
17982 # include <limits.h>
17983 #else
17984 # include <assert.h>
17985 #endif
17986
17987 #undef $ac_func
17988
17989 /* Override any GCC internal prototype to avoid an error.
17990    Use char because int might match the return type of a GCC
17991    builtin and then its argument prototype would still apply.  */
17992 #ifdef __cplusplus
17993 extern "C"
17994 #endif
17995 char $ac_func ();
17996 /* The GNU C library defines this for functions which it implements
17997     to always fail with ENOSYS.  Some functions are actually named
17998     something starting with __ and the normal name is an alias.  */
17999 #if defined __stub_$ac_func || defined __stub___$ac_func
18000 choke me
18001 #endif
18002
18003 int
18004 main ()
18005 {
18006 return $ac_func ();
18007   ;
18008   return 0;
18009 }
18010 _ACEOF
18011 rm -f conftest.$ac_objext conftest$ac_exeext
18012 if { (ac_try="$ac_link"
18013 case "(($ac_try" in
18014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015   *) ac_try_echo=$ac_try;;
18016 esac
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018   (eval "$ac_link") 2>conftest.er1
18019   ac_status=$?
18020   grep -v '^ *+' conftest.er1 >conftest.err
18021   rm -f conftest.er1
18022   cat conftest.err >&5
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); } &&
18025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18026   { (case "(($ac_try" in
18027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028   *) ac_try_echo=$ac_try;;
18029 esac
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031   (eval "$ac_try") 2>&5
18032   ac_status=$?
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); }; } &&
18035          { ac_try='test -s conftest$ac_exeext'
18036   { (case "(($ac_try" in
18037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038   *) ac_try_echo=$ac_try;;
18039 esac
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041   (eval "$ac_try") 2>&5
18042   ac_status=$?
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); }; }; then
18045   eval "$as_ac_var=yes"
18046 else
18047   echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18049
18050         eval "$as_ac_var=no"
18051 fi
18052
18053 rm -f core conftest.err conftest.$ac_objext \
18054       conftest$ac_exeext conftest.$ac_ext
18055 fi
18056 ac_res=`eval echo '${'$as_ac_var'}'`
18057                { echo "$as_me:$LINENO: result: $ac_res" >&5
18058 echo "${ECHO_T}$ac_res" >&6; }
18059 if test `eval echo '${'$as_ac_var'}'` = yes; then
18060   cat >>confdefs.h <<_ACEOF
18061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18062 _ACEOF
18063
18064 fi
18065 done
18066
18067
18068
18069
18070
18071 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18072 do
18073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18077   echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079   cat >conftest.$ac_ext <<_ACEOF
18080 /* confdefs.h.  */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h.  */
18085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18087 #define $ac_func innocuous_$ac_func
18088
18089 /* System header to define __stub macros and hopefully few prototypes,
18090     which can conflict with char $ac_func (); below.
18091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18092     <limits.h> exists even on freestanding compilers.  */
18093
18094 #ifdef __STDC__
18095 # include <limits.h>
18096 #else
18097 # include <assert.h>
18098 #endif
18099
18100 #undef $ac_func
18101
18102 /* Override any GCC internal prototype to avoid an error.
18103    Use char because int might match the return type of a GCC
18104    builtin and then its argument prototype would still apply.  */
18105 #ifdef __cplusplus
18106 extern "C"
18107 #endif
18108 char $ac_func ();
18109 /* The GNU C library defines this for functions which it implements
18110     to always fail with ENOSYS.  Some functions are actually named
18111     something starting with __ and the normal name is an alias.  */
18112 #if defined __stub_$ac_func || defined __stub___$ac_func
18113 choke me
18114 #endif
18115
18116 int
18117 main ()
18118 {
18119 return $ac_func ();
18120   ;
18121   return 0;
18122 }
18123 _ACEOF
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (ac_try="$ac_link"
18126 case "(($ac_try" in
18127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128   *) ac_try_echo=$ac_try;;
18129 esac
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131   (eval "$ac_link") 2>conftest.er1
18132   ac_status=$?
18133   grep -v '^ *+' conftest.er1 >conftest.err
18134   rm -f conftest.er1
18135   cat conftest.err >&5
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); } &&
18138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18139   { (case "(($ac_try" in
18140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141   *) ac_try_echo=$ac_try;;
18142 esac
18143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18144   (eval "$ac_try") 2>&5
18145   ac_status=$?
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); }; } &&
18148          { ac_try='test -s conftest$ac_exeext'
18149   { (case "(($ac_try" in
18150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151   *) ac_try_echo=$ac_try;;
18152 esac
18153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18154   (eval "$ac_try") 2>&5
18155   ac_status=$?
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); }; }; then
18158   eval "$as_ac_var=yes"
18159 else
18160   echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18162
18163         eval "$as_ac_var=no"
18164 fi
18165
18166 rm -f core conftest.err conftest.$ac_objext \
18167       conftest$ac_exeext conftest.$ac_ext
18168 fi
18169 ac_res=`eval echo '${'$as_ac_var'}'`
18170                { echo "$as_me:$LINENO: result: $ac_res" >&5
18171 echo "${ECHO_T}$ac_res" >&6; }
18172 if test `eval echo '${'$as_ac_var'}'` = yes; then
18173   cat >>confdefs.h <<_ACEOF
18174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18175 _ACEOF
18176
18177 fi
18178 done
18179
18180 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18181 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18182 if test "${llvm_cv_c_printf_a+set}" = set; then
18183   echo $ECHO_N "(cached) $ECHO_C" >&6
18184 else
18185   ac_ext=c
18186 ac_cpp='$CPP $CPPFLAGS'
18187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18190
18191  if test "$cross_compiling" = yes; then
18192   llvmac_cv_c_printf_a=no
18193 else
18194   cat >conftest.$ac_ext <<_ACEOF
18195
18196   /* confdefs.h.  */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h.  */
18201
18202 #include <stdio.h>
18203 #include <stdlib.h>
18204
18205 int
18206 main ()
18207 {
18208
18209 volatile double A, B;
18210 char Buffer[100];
18211 A = 1;
18212 A /= 10.0;
18213 sprintf(Buffer, "%a", A);
18214 B = atof(Buffer);
18215 if (A != B)
18216   return (1);
18217 if (A != 0x1.999999999999ap-4)
18218   return (1);
18219 return (0);
18220   ;
18221   return 0;
18222 }
18223 _ACEOF
18224 rm -f conftest$ac_exeext
18225 if { (ac_try="$ac_link"
18226 case "(($ac_try" in
18227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228   *) ac_try_echo=$ac_try;;
18229 esac
18230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231   (eval "$ac_link") 2>&5
18232   ac_status=$?
18233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18235   { (case "(($ac_try" in
18236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237   *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240   (eval "$ac_try") 2>&5
18241   ac_status=$?
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); }; }; then
18244   llvm_cv_c_printf_a=yes
18245 else
18246   echo "$as_me: program exited with status $ac_status" >&5
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.$ac_ext >&5
18249
18250 ( exit $ac_status )
18251 llvmac_cv_c_printf_a=no
18252 fi
18253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18254 fi
18255
18256
18257  ac_ext=c
18258 ac_cpp='$CPP $CPPFLAGS'
18259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18262
18263 fi
18264 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18265 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18266  if test "$llvm_cv_c_printf_a" = "yes"; then
18267
18268 cat >>confdefs.h <<\_ACEOF
18269 #define HAVE_PRINTF_A 1
18270 _ACEOF
18271
18272  fi
18273
18274
18275 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18276 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18277 if test "${ac_cv_func_rand48+set}" = set; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280   ac_ext=cpp
18281 ac_cpp='$CXXCPP $CPPFLAGS'
18282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18285
18286    cat >conftest.$ac_ext <<_ACEOF
18287 /* confdefs.h.  */
18288 _ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h.  */
18292 #include <stdlib.h>
18293 int
18294 main ()
18295 {
18296 srand48(0);lrand48();drand48();
18297   ;
18298   return 0;
18299 }
18300 _ACEOF
18301 rm -f conftest.$ac_objext
18302 if { (ac_try="$ac_compile"
18303 case "(($ac_try" in
18304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305   *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308   (eval "$ac_compile") 2>conftest.er1
18309   ac_status=$?
18310   grep -v '^ *+' conftest.er1 >conftest.err
18311   rm -f conftest.er1
18312   cat conftest.err >&5
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); } &&
18315          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18316   { (case "(($ac_try" in
18317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318   *) ac_try_echo=$ac_try;;
18319 esac
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321   (eval "$ac_try") 2>&5
18322   ac_status=$?
18323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324   (exit $ac_status); }; } &&
18325          { ac_try='test -s conftest.$ac_objext'
18326   { (case "(($ac_try" in
18327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328   *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331   (eval "$ac_try") 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; }; then
18335   ac_cv_func_rand48=yes
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340         ac_cv_func_rand48=no
18341 fi
18342
18343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18344   ac_ext=c
18345 ac_cpp='$CPP $CPPFLAGS'
18346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349
18350 fi
18351 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18352 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18353
18354 if test "$ac_cv_func_rand48" = "yes" ; then
18355
18356 cat >>confdefs.h <<\_ACEOF
18357 #define HAVE_RAND48 1
18358 _ACEOF
18359
18360 fi
18361
18362
18363
18364 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18365 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18366 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   ac_ext=cpp
18370 ac_cpp='$CXXCPP $CPPFLAGS'
18371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18374
18375    cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h.  */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h.  */
18381 #include <math.h>
18382 int
18383 main ()
18384 {
18385 float f; isnan(f);
18386   ;
18387   return 0;
18388 }
18389 _ACEOF
18390 rm -f conftest.$ac_objext
18391 if { (ac_try="$ac_compile"
18392 case "(($ac_try" in
18393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394   *) ac_try_echo=$ac_try;;
18395 esac
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397   (eval "$ac_compile") 2>conftest.er1
18398   ac_status=$?
18399   grep -v '^ *+' conftest.er1 >conftest.err
18400   rm -f conftest.er1
18401   cat conftest.err >&5
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); } &&
18404          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18405   { (case "(($ac_try" in
18406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407   *) ac_try_echo=$ac_try;;
18408 esac
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410   (eval "$ac_try") 2>&5
18411   ac_status=$?
18412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413   (exit $ac_status); }; } &&
18414          { ac_try='test -s conftest.$ac_objext'
18415   { (case "(($ac_try" in
18416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417   *) ac_try_echo=$ac_try;;
18418 esac
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420   (eval "$ac_try") 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); }; }; then
18424   ac_cv_func_isnan_in_math_h=yes
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429         ac_cv_func_isnan_in_math_h=no
18430 fi
18431
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433   ac_ext=c
18434 ac_cpp='$CPP $CPPFLAGS'
18435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18438
18439 fi
18440 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18441 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18442
18443
18444 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18445
18446 cat >>confdefs.h <<\_ACEOF
18447 #define HAVE_ISNAN_IN_MATH_H 1
18448 _ACEOF
18449
18450 fi
18451
18452 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18453 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18454 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18455   echo $ECHO_N "(cached) $ECHO_C" >&6
18456 else
18457   ac_ext=cpp
18458 ac_cpp='$CXXCPP $CPPFLAGS'
18459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18462
18463    cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h.  */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h.  */
18469 #include <cmath>
18470 int
18471 main ()
18472 {
18473 float f; isnan(f);
18474   ;
18475   return 0;
18476 }
18477 _ACEOF
18478 rm -f conftest.$ac_objext
18479 if { (ac_try="$ac_compile"
18480 case "(($ac_try" in
18481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482   *) ac_try_echo=$ac_try;;
18483 esac
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485   (eval "$ac_compile") 2>conftest.er1
18486   ac_status=$?
18487   grep -v '^ *+' conftest.er1 >conftest.err
18488   rm -f conftest.er1
18489   cat conftest.err >&5
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); } &&
18492          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18493   { (case "(($ac_try" in
18494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495   *) ac_try_echo=$ac_try;;
18496 esac
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498   (eval "$ac_try") 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; } &&
18502          { ac_try='test -s conftest.$ac_objext'
18503   { (case "(($ac_try" in
18504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505   *) ac_try_echo=$ac_try;;
18506 esac
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508   (eval "$ac_try") 2>&5
18509   ac_status=$?
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); }; }; then
18512   ac_cv_func_isnan_in_cmath=yes
18513 else
18514   echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18516
18517         ac_cv_func_isnan_in_cmath=no
18518 fi
18519
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521   ac_ext=c
18522 ac_cpp='$CPP $CPPFLAGS'
18523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18526
18527 fi
18528 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18529 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18530
18531 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18532
18533 cat >>confdefs.h <<\_ACEOF
18534 #define HAVE_ISNAN_IN_CMATH 1
18535 _ACEOF
18536
18537 fi
18538
18539 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18540 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18541 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18542   echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544   ac_ext=cpp
18545 ac_cpp='$CXXCPP $CPPFLAGS'
18546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18549
18550    cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h.  */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h.  */
18556 #include <cmath>
18557 int
18558 main ()
18559 {
18560 float f; std::isnan(f);
18561   ;
18562   return 0;
18563 }
18564 _ACEOF
18565 rm -f conftest.$ac_objext
18566 if { (ac_try="$ac_compile"
18567 case "(($ac_try" in
18568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569   *) ac_try_echo=$ac_try;;
18570 esac
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572   (eval "$ac_compile") 2>conftest.er1
18573   ac_status=$?
18574   grep -v '^ *+' conftest.er1 >conftest.err
18575   rm -f conftest.er1
18576   cat conftest.err >&5
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); } &&
18579          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18580   { (case "(($ac_try" in
18581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582   *) ac_try_echo=$ac_try;;
18583 esac
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585   (eval "$ac_try") 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; } &&
18589          { ac_try='test -s conftest.$ac_objext'
18590   { (case "(($ac_try" in
18591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592   *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595   (eval "$ac_try") 2>&5
18596   ac_status=$?
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); }; }; then
18599   ac_cv_func_std_isnan_in_cmath=yes
18600 else
18601   echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18603
18604         ac_cv_func_std_isnan_in_cmath=no
18605 fi
18606
18607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18608   ac_ext=c
18609 ac_cpp='$CPP $CPPFLAGS'
18610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18613
18614 fi
18615 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18616 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18617
18618 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18619
18620 cat >>confdefs.h <<\_ACEOF
18621 #define HAVE_STD_ISNAN_IN_CMATH 1
18622 _ACEOF
18623
18624 fi
18625
18626
18627 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18628 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18629 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18630   echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632   ac_ext=cpp
18633 ac_cpp='$CXXCPP $CPPFLAGS'
18634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18637
18638    cat >conftest.$ac_ext <<_ACEOF
18639 /* confdefs.h.  */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h.  */
18644 #include <math.h>
18645 int
18646 main ()
18647 {
18648 float f; isinf(f);
18649   ;
18650   return 0;
18651 }
18652 _ACEOF
18653 rm -f conftest.$ac_objext
18654 if { (ac_try="$ac_compile"
18655 case "(($ac_try" in
18656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657   *) ac_try_echo=$ac_try;;
18658 esac
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660   (eval "$ac_compile") 2>conftest.er1
18661   ac_status=$?
18662   grep -v '^ *+' conftest.er1 >conftest.err
18663   rm -f conftest.er1
18664   cat conftest.err >&5
18665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666   (exit $ac_status); } &&
18667          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18668   { (case "(($ac_try" in
18669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670   *) ac_try_echo=$ac_try;;
18671 esac
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673   (eval "$ac_try") 2>&5
18674   ac_status=$?
18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); }; } &&
18677          { ac_try='test -s conftest.$ac_objext'
18678   { (case "(($ac_try" in
18679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680   *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683   (eval "$ac_try") 2>&5
18684   ac_status=$?
18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); }; }; then
18687   ac_cv_func_isinf_in_math_h=yes
18688 else
18689   echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18691
18692         ac_cv_func_isinf_in_math_h=no
18693 fi
18694
18695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18696   ac_ext=c
18697 ac_cpp='$CPP $CPPFLAGS'
18698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18701
18702 fi
18703 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18704 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18705
18706 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18707
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_ISINF_IN_MATH_H 1
18710 _ACEOF
18711
18712 fi
18713
18714 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18715 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18716 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18717   echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719   ac_ext=cpp
18720 ac_cpp='$CXXCPP $CPPFLAGS'
18721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18724
18725    cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h.  */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h.  */
18731 #include <cmath>
18732 int
18733 main ()
18734 {
18735 float f; isinf(f);
18736   ;
18737   return 0;
18738 }
18739 _ACEOF
18740 rm -f conftest.$ac_objext
18741 if { (ac_try="$ac_compile"
18742 case "(($ac_try" in
18743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744   *) ac_try_echo=$ac_try;;
18745 esac
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747   (eval "$ac_compile") 2>conftest.er1
18748   ac_status=$?
18749   grep -v '^ *+' conftest.er1 >conftest.err
18750   rm -f conftest.er1
18751   cat conftest.err >&5
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); } &&
18754          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18755   { (case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760   (eval "$ac_try") 2>&5
18761   ac_status=$?
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); }; } &&
18764          { ac_try='test -s conftest.$ac_objext'
18765   { (case "(($ac_try" in
18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767   *) ac_try_echo=$ac_try;;
18768 esac
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770   (eval "$ac_try") 2>&5
18771   ac_status=$?
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); }; }; then
18774   ac_cv_func_isinf_in_cmath=yes
18775 else
18776   echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779         ac_cv_func_isinf_in_cmath=no
18780 fi
18781
18782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783   ac_ext=c
18784 ac_cpp='$CPP $CPPFLAGS'
18785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18788
18789 fi
18790 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18791 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18792
18793 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18794
18795 cat >>confdefs.h <<\_ACEOF
18796 #define HAVE_ISINF_IN_CMATH 1
18797 _ACEOF
18798
18799 fi
18800
18801 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18802 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18803 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18804   echo $ECHO_N "(cached) $ECHO_C" >&6
18805 else
18806   ac_ext=cpp
18807 ac_cpp='$CXXCPP $CPPFLAGS'
18808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18811
18812    cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h.  */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h.  */
18818 #include <cmath>
18819 int
18820 main ()
18821 {
18822 float f; std::isinf(f)}
18823   ;
18824   return 0;
18825 }
18826 _ACEOF
18827 rm -f conftest.$ac_objext
18828 if { (ac_try="$ac_compile"
18829 case "(($ac_try" in
18830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831   *) ac_try_echo=$ac_try;;
18832 esac
18833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834   (eval "$ac_compile") 2>conftest.er1
18835   ac_status=$?
18836   grep -v '^ *+' conftest.er1 >conftest.err
18837   rm -f conftest.er1
18838   cat conftest.err >&5
18839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840   (exit $ac_status); } &&
18841          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18842   { (case "(($ac_try" in
18843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844   *) ac_try_echo=$ac_try;;
18845 esac
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847   (eval "$ac_try") 2>&5
18848   ac_status=$?
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); }; } &&
18851          { ac_try='test -s conftest.$ac_objext'
18852   { (case "(($ac_try" in
18853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854   *) ac_try_echo=$ac_try;;
18855 esac
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857   (eval "$ac_try") 2>&5
18858   ac_status=$?
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); }; }; then
18861   ac_cv_func_std_isinf_in_cmath=yes
18862 else
18863   echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18865
18866         ac_cv_func_std_isinf_in_cmath=no
18867 fi
18868
18869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18870   ac_ext=c
18871 ac_cpp='$CPP $CPPFLAGS'
18872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18875
18876 fi
18877 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18878 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18879
18880 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18881
18882 cat >>confdefs.h <<\_ACEOF
18883 #define HAVE_STD_ISINF_IN_CMATH 1
18884 _ACEOF
18885
18886 fi
18887
18888 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18889 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18890 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893   ac_ext=cpp
18894 ac_cpp='$CXXCPP $CPPFLAGS'
18895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18898
18899    cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h.  */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h.  */
18905 #include <ieeefp.h>
18906 int
18907 main ()
18908 {
18909 float f; finite(f);
18910   ;
18911   return 0;
18912 }
18913 _ACEOF
18914 rm -f conftest.$ac_objext
18915 if { (ac_try="$ac_compile"
18916 case "(($ac_try" in
18917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918   *) ac_try_echo=$ac_try;;
18919 esac
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921   (eval "$ac_compile") 2>conftest.er1
18922   ac_status=$?
18923   grep -v '^ *+' conftest.er1 >conftest.err
18924   rm -f conftest.er1
18925   cat conftest.err >&5
18926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927   (exit $ac_status); } &&
18928          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18929   { (case "(($ac_try" in
18930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931   *) ac_try_echo=$ac_try;;
18932 esac
18933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934   (eval "$ac_try") 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; } &&
18938          { ac_try='test -s conftest.$ac_objext'
18939   { (case "(($ac_try" in
18940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941   *) ac_try_echo=$ac_try;;
18942 esac
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944   (eval "$ac_try") 2>&5
18945   ac_status=$?
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); }; }; then
18948   ac_cv_func_finite_in_ieeefp_h=yes
18949 else
18950   echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18952
18953         ac_cv_func_finite_in_ieeefp_h=no
18954 fi
18955
18956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18957   ac_ext=c
18958 ac_cpp='$CPP $CPPFLAGS'
18959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18962
18963 fi
18964 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18965 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18966
18967 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18968
18969 cat >>confdefs.h <<\_ACEOF
18970 #define HAVE_FINITE_IN_IEEEFP_H 1
18971 _ACEOF
18972
18973 fi
18974
18975
18976
18977 if test "$llvm_cv_platform_type" = "Unix" ; then
18978
18979
18980 for ac_header in stdlib.h unistd.h
18981 do
18982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18984   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18987   echo $ECHO_N "(cached) $ECHO_C" >&6
18988 fi
18989 ac_res=`eval echo '${'$as_ac_Header'}'`
18990                { echo "$as_me:$LINENO: result: $ac_res" >&5
18991 echo "${ECHO_T}$ac_res" >&6; }
18992 else
18993   # Is the header compilable?
18994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h.  */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h.  */
19002 $ac_includes_default
19003 #include <$ac_header>
19004 _ACEOF
19005 rm -f conftest.$ac_objext
19006 if { (ac_try="$ac_compile"
19007 case "(($ac_try" in
19008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009   *) ac_try_echo=$ac_try;;
19010 esac
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012   (eval "$ac_compile") 2>conftest.er1
19013   ac_status=$?
19014   grep -v '^ *+' conftest.er1 >conftest.err
19015   rm -f conftest.er1
19016   cat conftest.err >&5
19017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018   (exit $ac_status); } &&
19019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19020   { (case "(($ac_try" in
19021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022   *) ac_try_echo=$ac_try;;
19023 esac
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025   (eval "$ac_try") 2>&5
19026   ac_status=$?
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); }; } &&
19029          { ac_try='test -s conftest.$ac_objext'
19030   { (case "(($ac_try" in
19031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032   *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035   (eval "$ac_try") 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; }; then
19039   ac_header_compiler=yes
19040 else
19041   echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19043
19044         ac_header_compiler=no
19045 fi
19046
19047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19049 echo "${ECHO_T}$ac_header_compiler" >&6; }
19050
19051 # Is the header present?
19052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19054 cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h.  */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h.  */
19060 #include <$ac_header>
19061 _ACEOF
19062 if { (ac_try="$ac_cpp conftest.$ac_ext"
19063 case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } >/dev/null; then
19075   if test -s conftest.err; then
19076     ac_cpp_err=$ac_c_preproc_warn_flag
19077     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19078   else
19079     ac_cpp_err=
19080   fi
19081 else
19082   ac_cpp_err=yes
19083 fi
19084 if test -z "$ac_cpp_err"; then
19085   ac_header_preproc=yes
19086 else
19087   echo "$as_me: failed program was:" >&5
19088 sed 's/^/| /' conftest.$ac_ext >&5
19089
19090   ac_header_preproc=no
19091 fi
19092
19093 rm -f conftest.err conftest.$ac_ext
19094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19095 echo "${ECHO_T}$ac_header_preproc" >&6; }
19096
19097 # So?  What about this header?
19098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19099   yes:no: )
19100     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19104     ac_header_preproc=yes
19105     ;;
19106   no:yes:* )
19107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19109     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19110 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19111     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19113     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19114 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19117     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19119     ( cat <<\_ASBOX
19120 ## ----------------------------------- ##
19121 ## Report this to llvmbugs@cs.uiuc.edu ##
19122 ## ----------------------------------- ##
19123 _ASBOX
19124      ) | sed "s/^/$as_me: WARNING:     /" >&2
19125     ;;
19126 esac
19127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19130   echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132   eval "$as_ac_Header=\$ac_header_preproc"
19133 fi
19134 ac_res=`eval echo '${'$as_ac_Header'}'`
19135                { echo "$as_me:$LINENO: result: $ac_res" >&5
19136 echo "${ECHO_T}$ac_res" >&6; }
19137
19138 fi
19139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19140   cat >>confdefs.h <<_ACEOF
19141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19142 _ACEOF
19143
19144 fi
19145
19146 done
19147
19148
19149 for ac_func in getpagesize
19150 do
19151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19155   echo $ECHO_N "(cached) $ECHO_C" >&6
19156 else
19157   cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19165 #define $ac_func innocuous_$ac_func
19166
19167 /* System header to define __stub macros and hopefully few prototypes,
19168     which can conflict with char $ac_func (); below.
19169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19170     <limits.h> exists even on freestanding compilers.  */
19171
19172 #ifdef __STDC__
19173 # include <limits.h>
19174 #else
19175 # include <assert.h>
19176 #endif
19177
19178 #undef $ac_func
19179
19180 /* Override any GCC internal prototype to avoid an error.
19181    Use char because int might match the return type of a GCC
19182    builtin and then its argument prototype would still apply.  */
19183 #ifdef __cplusplus
19184 extern "C"
19185 #endif
19186 char $ac_func ();
19187 /* The GNU C library defines this for functions which it implements
19188     to always fail with ENOSYS.  Some functions are actually named
19189     something starting with __ and the normal name is an alias.  */
19190 #if defined __stub_$ac_func || defined __stub___$ac_func
19191 choke me
19192 #endif
19193
19194 int
19195 main ()
19196 {
19197 return $ac_func ();
19198   ;
19199   return 0;
19200 }
19201 _ACEOF
19202 rm -f conftest.$ac_objext conftest$ac_exeext
19203 if { (ac_try="$ac_link"
19204 case "(($ac_try" in
19205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206   *) ac_try_echo=$ac_try;;
19207 esac
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209   (eval "$ac_link") 2>conftest.er1
19210   ac_status=$?
19211   grep -v '^ *+' conftest.er1 >conftest.err
19212   rm -f conftest.er1
19213   cat conftest.err >&5
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); } &&
19216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19217   { (case "(($ac_try" in
19218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219   *) ac_try_echo=$ac_try;;
19220 esac
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222   (eval "$ac_try") 2>&5
19223   ac_status=$?
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); }; } &&
19226          { ac_try='test -s conftest$ac_exeext'
19227   { (case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232   (eval "$ac_try") 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); }; }; then
19236   eval "$as_ac_var=yes"
19237 else
19238   echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19240
19241         eval "$as_ac_var=no"
19242 fi
19243
19244 rm -f core conftest.err conftest.$ac_objext \
19245       conftest$ac_exeext conftest.$ac_ext
19246 fi
19247 ac_res=`eval echo '${'$as_ac_var'}'`
19248                { echo "$as_me:$LINENO: result: $ac_res" >&5
19249 echo "${ECHO_T}$ac_res" >&6; }
19250 if test `eval echo '${'$as_ac_var'}'` = yes; then
19251   cat >>confdefs.h <<_ACEOF
19252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19253 _ACEOF
19254
19255 fi
19256 done
19257
19258 { echo "$as_me:$LINENO: checking for working mmap" >&5
19259 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19260 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19261   echo $ECHO_N "(cached) $ECHO_C" >&6
19262 else
19263   if test "$cross_compiling" = yes; then
19264   ac_cv_func_mmap_fixed_mapped=no
19265 else
19266   cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272 $ac_includes_default
19273 /* malloc might have been renamed as rpl_malloc. */
19274 #undef malloc
19275
19276 /* Thanks to Mike Haertel and Jim Avera for this test.
19277    Here is a matrix of mmap possibilities:
19278         mmap private not fixed
19279         mmap private fixed at somewhere currently unmapped
19280         mmap private fixed at somewhere already mapped
19281         mmap shared not fixed
19282         mmap shared fixed at somewhere currently unmapped
19283         mmap shared fixed at somewhere already mapped
19284    For private mappings, we should verify that changes cannot be read()
19285    back from the file, nor mmap's back from the file at a different
19286    address.  (There have been systems where private was not correctly
19287    implemented like the infamous i386 svr4.0, and systems where the
19288    VM page cache was not coherent with the file system buffer cache
19289    like early versions of FreeBSD and possibly contemporary NetBSD.)
19290    For shared mappings, we should conversely verify that changes get
19291    propagated back to all the places they're supposed to be.
19292
19293    Grep wants private fixed already mapped.
19294    The main things grep needs to know about mmap are:
19295    * does it exist and is it safe to write into the mmap'd area
19296    * how to use it (BSD variants)  */
19297
19298 #include <fcntl.h>
19299 #include <sys/mman.h>
19300
19301 #if !STDC_HEADERS && !HAVE_STDLIB_H
19302 char *malloc ();
19303 #endif
19304
19305 /* This mess was copied from the GNU getpagesize.h.  */
19306 #if !HAVE_GETPAGESIZE
19307 /* Assume that all systems that can run configure have sys/param.h.  */
19308 # if !HAVE_SYS_PARAM_H
19309 #  define HAVE_SYS_PARAM_H 1
19310 # endif
19311
19312 # ifdef _SC_PAGESIZE
19313 #  define getpagesize() sysconf(_SC_PAGESIZE)
19314 # else /* no _SC_PAGESIZE */
19315 #  if HAVE_SYS_PARAM_H
19316 #   include <sys/param.h>
19317 #   ifdef EXEC_PAGESIZE
19318 #    define getpagesize() EXEC_PAGESIZE
19319 #   else /* no EXEC_PAGESIZE */
19320 #    ifdef NBPG
19321 #     define getpagesize() NBPG * CLSIZE
19322 #     ifndef CLSIZE
19323 #      define CLSIZE 1
19324 #     endif /* no CLSIZE */
19325 #    else /* no NBPG */
19326 #     ifdef NBPC
19327 #      define getpagesize() NBPC
19328 #     else /* no NBPC */
19329 #      ifdef PAGESIZE
19330 #       define getpagesize() PAGESIZE
19331 #      endif /* PAGESIZE */
19332 #     endif /* no NBPC */
19333 #    endif /* no NBPG */
19334 #   endif /* no EXEC_PAGESIZE */
19335 #  else /* no HAVE_SYS_PARAM_H */
19336 #   define getpagesize() 8192   /* punt totally */
19337 #  endif /* no HAVE_SYS_PARAM_H */
19338 # endif /* no _SC_PAGESIZE */
19339
19340 #endif /* no HAVE_GETPAGESIZE */
19341
19342 int
19343 main ()
19344 {
19345   char *data, *data2, *data3;
19346   int i, pagesize;
19347   int fd;
19348
19349   pagesize = getpagesize ();
19350
19351   /* First, make a file with some known garbage in it. */
19352   data = (char *) malloc (pagesize);
19353   if (!data)
19354     return 1;
19355   for (i = 0; i < pagesize; ++i)
19356     *(data + i) = rand ();
19357   umask (0);
19358   fd = creat ("conftest.mmap", 0600);
19359   if (fd < 0)
19360     return 1;
19361   if (write (fd, data, pagesize) != pagesize)
19362     return 1;
19363   close (fd);
19364
19365   /* Next, try to mmap the file at a fixed address which already has
19366      something else allocated at it.  If we can, also make sure that
19367      we see the same garbage.  */
19368   fd = open ("conftest.mmap", O_RDWR);
19369   if (fd < 0)
19370     return 1;
19371   data2 = (char *) malloc (2 * pagesize);
19372   if (!data2)
19373     return 1;
19374   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19375   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19376                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19377     return 1;
19378   for (i = 0; i < pagesize; ++i)
19379     if (*(data + i) != *(data2 + i))
19380       return 1;
19381
19382   /* Finally, make sure that changes to the mapped area do not
19383      percolate back to the file as seen by read().  (This is a bug on
19384      some variants of i386 svr4.0.)  */
19385   for (i = 0; i < pagesize; ++i)
19386     *(data2 + i) = *(data2 + i) + 1;
19387   data3 = (char *) malloc (pagesize);
19388   if (!data3)
19389     return 1;
19390   if (read (fd, data3, pagesize) != pagesize)
19391     return 1;
19392   for (i = 0; i < pagesize; ++i)
19393     if (*(data + i) != *(data3 + i))
19394       return 1;
19395   close (fd);
19396   return 0;
19397 }
19398 _ACEOF
19399 rm -f conftest$ac_exeext
19400 if { (ac_try="$ac_link"
19401 case "(($ac_try" in
19402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403   *) ac_try_echo=$ac_try;;
19404 esac
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406   (eval "$ac_link") 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19410   { (case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415   (eval "$ac_try") 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); }; }; then
19419   ac_cv_func_mmap_fixed_mapped=yes
19420 else
19421   echo "$as_me: program exited with status $ac_status" >&5
19422 echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19424
19425 ( exit $ac_status )
19426 ac_cv_func_mmap_fixed_mapped=no
19427 fi
19428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19429 fi
19430
19431
19432 fi
19433 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19434 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19435 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19436
19437 cat >>confdefs.h <<\_ACEOF
19438 #define HAVE_MMAP 1
19439 _ACEOF
19440
19441 fi
19442 rm -f conftest.mmap
19443
19444   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19445 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19446 if test "${ac_cv_func_mmap_file+set}" = set; then
19447   echo $ECHO_N "(cached) $ECHO_C" >&6
19448 else
19449    ac_ext=c
19450 ac_cpp='$CPP $CPPFLAGS'
19451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19454
19455   if test "$cross_compiling" = yes; then
19456   ac_cv_func_mmap_file=no
19457 else
19458   cat >conftest.$ac_ext <<_ACEOF
19459
19460     /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465
19466 #include <sys/types.h>
19467 #include <sys/mman.h>
19468 #include <fcntl.h>
19469
19470 int
19471 main ()
19472 {
19473
19474   int fd;
19475   fd = creat ("foo",0777);
19476   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19477   unlink ("foo");
19478   return (fd != (int) MAP_FAILED);
19479   ;
19480   return 0;
19481 }
19482 _ACEOF
19483 rm -f conftest$ac_exeext
19484 if { (ac_try="$ac_link"
19485 case "(($ac_try" in
19486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487   *) ac_try_echo=$ac_try;;
19488 esac
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490   (eval "$ac_link") 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19494   { (case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_try") 2>&5
19500   ac_status=$?
19501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502   (exit $ac_status); }; }; then
19503   ac_cv_func_mmap_file=yes
19504 else
19505   echo "$as_me: program exited with status $ac_status" >&5
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ( exit $ac_status )
19510 ac_cv_func_mmap_file=no
19511 fi
19512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19513 fi
19514
19515
19516   ac_ext=c
19517 ac_cpp='$CPP $CPPFLAGS'
19518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19521
19522
19523 fi
19524 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19525 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19526 if test "$ac_cv_func_mmap_file" = yes; then
19527
19528 cat >>confdefs.h <<\_ACEOF
19529 #define HAVE_MMAP_FILE
19530 _ACEOF
19531
19532    MMAP_FILE=yes
19533
19534 fi
19535
19536   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19537 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19538 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19539   echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541   if test "$llvm_cv_os_type" = "Interix" ; then
19542    ac_cv_need_dev_zero_for_mmap=yes
19543  else
19544    ac_cv_need_dev_zero_for_mmap=no
19545  fi
19546
19547 fi
19548 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19549 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19550 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19551
19552 cat >>confdefs.h <<\_ACEOF
19553 #define NEED_DEV_ZERO_FOR_MMAP 1
19554 _ACEOF
19555
19556 fi
19557
19558   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19559   then
19560     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19561 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19562   fi
19563   if test "$ac_cv_func_mmap_file" = "no"
19564   then
19565     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19566 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19567   fi
19568 fi
19569
19570 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19571 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19572 cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578 int main() {
19579         volatile unsigned long val = 1;
19580         __sync_synchronize();
19581         __sync_val_compare_and_swap(&val, 1, 0);
19582         __sync_add_and_fetch(&val, 1);
19583         __sync_sub_and_fetch(&val, 1);
19584         return 0;
19585       }
19586
19587 _ACEOF
19588 rm -f conftest.$ac_objext conftest$ac_exeext
19589 if { (ac_try="$ac_link"
19590 case "(($ac_try" in
19591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592   *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595   (eval "$ac_link") 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } &&
19602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19603   { (case "(($ac_try" in
19604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605   *) ac_try_echo=$ac_try;;
19606 esac
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608   (eval "$ac_try") 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; } &&
19612          { ac_try='test -s conftest$ac_exeext'
19613   { (case "(($ac_try" in
19614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615   *) ac_try_echo=$ac_try;;
19616 esac
19617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618   (eval "$ac_try") 2>&5
19619   ac_status=$?
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); }; }; then
19622   { echo "$as_me:$LINENO: result: yes" >&5
19623 echo "${ECHO_T}yes" >&6; }
19624
19625 cat >>confdefs.h <<\_ACEOF
19626 #define LLVM_MULTITHREADED 1
19627 _ACEOF
19628
19629 else
19630   echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19632
19633         { echo "$as_me:$LINENO: result: no" >&5
19634 echo "${ECHO_T}no" >&6; }
19635
19636 cat >>confdefs.h <<\_ACEOF
19637 #define LLVM_MULTITHREADED 0
19638 _ACEOF
19639
19640   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19641 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19642 fi
19643
19644 rm -f core conftest.err conftest.$ac_objext \
19645       conftest$ac_exeext conftest.$ac_ext
19646
19647
19648
19649 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19650   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19651 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19652 if test "${llvm_cv_linux_mixed+set}" = set; then
19653   echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655    ac_ext=c
19656 ac_cpp='$CPP $CPPFLAGS'
19657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19660
19661   cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h.  */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h.  */
19667 #ifndef __x86_64__
19668        error: Not x86-64 even if uname says so!
19669       #endif
19670
19671 int
19672 main ()
19673 {
19674
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_compile") 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } &&
19693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19694   { (case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_try") 2>&5
19700   ac_status=$?
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); }; } &&
19703          { ac_try='test -s conftest.$ac_objext'
19704   { (case "(($ac_try" in
19705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706   *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709   (eval "$ac_try") 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; }; then
19713   llvm_cv_linux_mixed=no
19714 else
19715   echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718         llvm_cv_linux_mixed=yes
19719 fi
19720
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722   ac_ext=c
19723 ac_cpp='$CPP $CPPFLAGS'
19724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19727
19728
19729 fi
19730 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19731 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19732
19733   if test "$llvm_cv_linux_mixed" = "yes"; then
19734     llvm_cv_target_arch="x86"
19735     ARCH="x86"
19736   fi
19737 fi
19738
19739
19740 for ac_func in __dso_handle
19741 do
19742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19746   echo $ECHO_N "(cached) $ECHO_C" >&6
19747 else
19748   cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h.  */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h.  */
19754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19756 #define $ac_func innocuous_$ac_func
19757
19758 /* System header to define __stub macros and hopefully few prototypes,
19759     which can conflict with char $ac_func (); below.
19760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19761     <limits.h> exists even on freestanding compilers.  */
19762
19763 #ifdef __STDC__
19764 # include <limits.h>
19765 #else
19766 # include <assert.h>
19767 #endif
19768
19769 #undef $ac_func
19770
19771 /* Override any GCC internal prototype to avoid an error.
19772    Use char because int might match the return type of a GCC
19773    builtin and then its argument prototype would still apply.  */
19774 #ifdef __cplusplus
19775 extern "C"
19776 #endif
19777 char $ac_func ();
19778 /* The GNU C library defines this for functions which it implements
19779     to always fail with ENOSYS.  Some functions are actually named
19780     something starting with __ and the normal name is an alias.  */
19781 #if defined __stub_$ac_func || defined __stub___$ac_func
19782 choke me
19783 #endif
19784
19785 int
19786 main ()
19787 {
19788 return $ac_func ();
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (ac_try="$ac_link"
19795 case "(($ac_try" in
19796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797   *) ac_try_echo=$ac_try;;
19798 esac
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800   (eval "$ac_link") 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19808   { (case "(($ac_try" in
19809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810   *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813   (eval "$ac_try") 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); }; } &&
19817          { ac_try='test -s conftest$ac_exeext'
19818   { (case "(($ac_try" in
19819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820   *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823   (eval "$ac_try") 2>&5
19824   ac_status=$?
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); }; }; then
19827   eval "$as_ac_var=yes"
19828 else
19829   echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19831
19832         eval "$as_ac_var=no"
19833 fi
19834
19835 rm -f core conftest.err conftest.$ac_objext \
19836       conftest$ac_exeext conftest.$ac_ext
19837 fi
19838 ac_res=`eval echo '${'$as_ac_var'}'`
19839                { echo "$as_me:$LINENO: result: $ac_res" >&5
19840 echo "${ECHO_T}$ac_res" >&6; }
19841 if test `eval echo '${'$as_ac_var'}'` = yes; then
19842   cat >>confdefs.h <<_ACEOF
19843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19844 _ACEOF
19845
19846 fi
19847 done
19848
19849
19850 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19851 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19852 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19853   echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855   llvm_cv_llvmgcc_sanity="no"
19856 if test -x "$LLVMGCC" ; then
19857   cp /dev/null conftest.c
19858   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19859       grep 'target datalayout =' > /dev/null 2>&1
19860   if test $? -eq 0 ; then
19861     llvm_cv_llvmgcc_sanity="yes"
19862   fi
19863   rm conftest.c
19864 fi
19865 fi
19866 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19867 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19868
19869 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19870   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19871 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19872   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19873   LLVMCC1=$llvmcc1path
19874
19875   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19876   LLVMCC1PLUS=$llvmcc1pluspath
19877
19878   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19879   LLVMGCCDIR=$llvmgccdir
19880
19881   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19882   LLVMGCC_LANGS=$llvmgcclangs
19883
19884   { echo "$as_me:$LINENO: result: ok" >&5
19885 echo "${ECHO_T}ok" >&6; }
19886 fi
19887
19888 SHLIBEXT=$libltdl_cv_shlibext
19889
19890
19891 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19892
19893
19894 # Translate the various configuration directories and other basic
19895 # information into substitutions that will end up in Makefile.config.in
19896 # that these configured values can be used by the makefiles
19897 if test "${prefix}" = "NONE" ; then
19898   prefix="/usr/local"
19899 fi
19900 eval LLVM_PREFIX="${prefix}";
19901 eval LLVM_BINDIR="${prefix}/bin";
19902 eval LLVM_LIBDIR="${prefix}/lib";
19903 eval LLVM_DATADIR="${prefix}/share/llvm";
19904 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19905 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19906 eval LLVM_INCLUDEDIR="${prefix}/include";
19907 eval LLVM_INFODIR="${prefix}/info";
19908 eval LLVM_MANDIR="${prefix}/man";
19909 LLVM_CONFIGTIME=`date`
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921 # Place the various directores into the config.h file as #defines so that we
19922 # can know about the installation paths within LLVM.
19923
19924 cat >>confdefs.h <<_ACEOF
19925 #define LLVM_PREFIX "$LLVM_PREFIX"
19926 _ACEOF
19927
19928
19929 cat >>confdefs.h <<_ACEOF
19930 #define LLVM_BINDIR "$LLVM_BINDIR"
19931 _ACEOF
19932
19933
19934 cat >>confdefs.h <<_ACEOF
19935 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19936 _ACEOF
19937
19938
19939 cat >>confdefs.h <<_ACEOF
19940 #define LLVM_DATADIR "$LLVM_DATADIR"
19941 _ACEOF
19942
19943
19944 cat >>confdefs.h <<_ACEOF
19945 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19946 _ACEOF
19947
19948
19949 cat >>confdefs.h <<_ACEOF
19950 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19951 _ACEOF
19952
19953
19954 cat >>confdefs.h <<_ACEOF
19955 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19956 _ACEOF
19957
19958
19959 cat >>confdefs.h <<_ACEOF
19960 #define LLVM_INFODIR "$LLVM_INFODIR"
19961 _ACEOF
19962
19963
19964 cat >>confdefs.h <<_ACEOF
19965 #define LLVM_MANDIR "$LLVM_MANDIR"
19966 _ACEOF
19967
19968
19969 cat >>confdefs.h <<_ACEOF
19970 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19971 _ACEOF
19972
19973
19974 cat >>confdefs.h <<_ACEOF
19975 #define LLVM_HOSTTRIPLE "$host"
19976 _ACEOF
19977
19978
19979 # Determine which bindings to build.
19980 if test "$BINDINGS_TO_BUILD" = auto ; then
19981   BINDINGS_TO_BUILD=""
19982   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19983     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19984   fi
19985 fi
19986 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19987
19988
19989 # This isn't really configurey, but it avoids having to repeat the list in
19990 # other files.
19991 ALL_BINDINGS=ocaml
19992
19993
19994 # Do any work necessary to ensure that bindings have what they need.
19995 binding_prereqs_failed=0
19996 for a_binding in $BINDINGS_TO_BUILD ; do
19997   case "$a_binding" in
19998   ocaml)
19999     if test "x$OCAMLC" = x ; then
20000       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20001 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20002       binding_prereqs_failed=1
20003     fi
20004     if test "x$OCAMLDEP" = x ; then
20005       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20006 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20007       binding_prereqs_failed=1
20008     fi
20009     if test "x$OCAMLOPT" = x ; then
20010       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20011 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20012           fi
20013     if test "x$with_ocaml_libdir" != xauto ; then
20014       OCAML_LIBDIR=$with_ocaml_libdir
20015
20016     else
20017       ocaml_stdlib="`"$OCAMLC" -where`"
20018       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20019       then
20020         # ocaml stdlib is beneath our prefix; use stdlib
20021         OCAML_LIBDIR=$ocaml_stdlib
20022
20023       else
20024         # ocaml stdlib is outside our prefix; use libdir/ocaml
20025         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20026
20027       fi
20028     fi
20029     ;;
20030   esac
20031 done
20032 if test "$binding_prereqs_failed" = 1 ; then
20033   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20034 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20035    { (exit 1); exit 1; }; }
20036 fi
20037
20038 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20039 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20040 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20041   echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043    ac_ext=cpp
20044 ac_cpp='$CXXCPP $CPPFLAGS'
20045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20048
20049   oldcxxflags="$CXXFLAGS"
20050   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20051   cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h.  */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h.  */
20057
20058 int
20059 main ()
20060 {
20061
20062   ;
20063   return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (ac_try="$ac_compile"
20068 case "(($ac_try" in
20069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070   *) ac_try_echo=$ac_try;;
20071 esac
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073   (eval "$ac_compile") 2>conftest.er1
20074   ac_status=$?
20075   grep -v '^ *+' conftest.er1 >conftest.err
20076   rm -f conftest.er1
20077   cat conftest.err >&5
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); } &&
20080          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20081   { (case "(($ac_try" in
20082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083   *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086   (eval "$ac_try") 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; } &&
20090          { ac_try='test -s conftest.$ac_objext'
20091   { (case "(($ac_try" in
20092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093   *) ac_try_echo=$ac_try;;
20094 esac
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096   (eval "$ac_try") 2>&5
20097   ac_status=$?
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); }; }; then
20100   llvm_cv_cxx_visibility_inlines_hidden=yes
20101 else
20102   echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105         llvm_cv_cxx_visibility_inlines_hidden=no
20106 fi
20107
20108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109   CXXFLAGS="$oldcxxflags"
20110   ac_ext=c
20111 ac_cpp='$CPP $CPPFLAGS'
20112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20115
20116
20117 fi
20118 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20119 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20120 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20121   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20122
20123 else
20124   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20125
20126 fi
20127
20128
20129 if test "$llvm_cv_link_use_r" = "yes" ; then
20130   RPATH="-Wl,-R"
20131 else
20132   RPATH="-Wl,-rpath"
20133 fi
20134
20135
20136 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20137   RDYNAMIC="-Wl,-export-dynamic"
20138 else
20139   RDYNAMIC=""
20140 fi
20141
20142
20143
20144 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20145
20146 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20147
20148 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20149
20150 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20151
20152 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20153
20154 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20155
20156
20157 ac_config_files="$ac_config_files Makefile.config"
20158
20159
20160 ac_config_files="$ac_config_files llvm.spec"
20161
20162
20163 ac_config_files="$ac_config_files docs/doxygen.cfg"
20164
20165
20166 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20167
20168
20169 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20170
20171
20172 ac_config_commands="$ac_config_commands setup"
20173
20174 ac_config_commands="$ac_config_commands Makefile"
20175
20176
20177 ac_config_commands="$ac_config_commands Makefile.common"
20178
20179
20180 ac_config_commands="$ac_config_commands examples/Makefile"
20181
20182
20183 ac_config_commands="$ac_config_commands lib/Makefile"
20184
20185
20186 ac_config_commands="$ac_config_commands runtime/Makefile"
20187
20188
20189 ac_config_commands="$ac_config_commands test/Makefile"
20190
20191
20192 ac_config_commands="$ac_config_commands test/Makefile.tests"
20193
20194
20195 ac_config_commands="$ac_config_commands unittests/Makefile"
20196
20197
20198 ac_config_commands="$ac_config_commands tools/Makefile"
20199
20200
20201 ac_config_commands="$ac_config_commands utils/Makefile"
20202
20203
20204 ac_config_commands="$ac_config_commands projects/Makefile"
20205
20206
20207 ac_config_commands="$ac_config_commands bindings/Makefile"
20208
20209
20210 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20211
20212
20213
20214 cat >confcache <<\_ACEOF
20215 # This file is a shell script that caches the results of configure
20216 # tests run on this system so they can be shared between configure
20217 # scripts and configure runs, see configure's option --config-cache.
20218 # It is not useful on other systems.  If it contains results you don't
20219 # want to keep, you may remove or edit it.
20220 #
20221 # config.status only pays attention to the cache file if you give it
20222 # the --recheck option to rerun configure.
20223 #
20224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20226 # following values.
20227
20228 _ACEOF
20229
20230 # The following way of writing the cache mishandles newlines in values,
20231 # but we know of no workaround that is simple, portable, and efficient.
20232 # So, we kill variables containing newlines.
20233 # Ultrix sh set writes to stderr and can't be redirected directly,
20234 # and sets the high bit in the cache file unless we assign to the vars.
20235 (
20236   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20237     eval ac_val=\$$ac_var
20238     case $ac_val in #(
20239     *${as_nl}*)
20240       case $ac_var in #(
20241       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20242 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20243       esac
20244       case $ac_var in #(
20245       _ | IFS | as_nl) ;; #(
20246       *) $as_unset $ac_var ;;
20247       esac ;;
20248     esac
20249   done
20250
20251   (set) 2>&1 |
20252     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20253     *${as_nl}ac_space=\ *)
20254       # `set' does not quote correctly, so add quotes (double-quote
20255       # substitution turns \\\\ into \\, and sed turns \\ into \).
20256       sed -n \
20257         "s/'/'\\\\''/g;
20258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20259       ;; #(
20260     *)
20261       # `set' quotes correctly as required by POSIX, so do not add quotes.
20262       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20263       ;;
20264     esac |
20265     sort
20266 ) |
20267   sed '
20268      /^ac_cv_env_/b end
20269      t clear
20270      :clear
20271      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20272      t end
20273      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20274      :end' >>confcache
20275 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20276   if test -w "$cache_file"; then
20277     test "x$cache_file" != "x/dev/null" &&
20278       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20279 echo "$as_me: updating cache $cache_file" >&6;}
20280     cat confcache >$cache_file
20281   else
20282     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20283 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20284   fi
20285 fi
20286 rm -f confcache
20287
20288 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20289 # Let make expand exec_prefix.
20290 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20291
20292 DEFS=-DHAVE_CONFIG_H
20293
20294 ac_libobjs=
20295 ac_ltlibobjs=
20296 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20297   # 1. Remove the extension, and $U if already installed.
20298   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20299   ac_i=`echo "$ac_i" | sed "$ac_script"`
20300   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20301   #    will be set to the directory where LIBOBJS objects are built.
20302   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20303   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20304 done
20305 LIBOBJS=$ac_libobjs
20306
20307 LTLIBOBJS=$ac_ltlibobjs
20308
20309
20310 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20311   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20312 Usually this means the macro was only invoked conditionally." >&5
20313 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20314 Usually this means the macro was only invoked conditionally." >&2;}
20315    { (exit 1); exit 1; }; }
20316 fi
20317 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20318   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20319 Usually this means the macro was only invoked conditionally." >&5
20320 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20321 Usually this means the macro was only invoked conditionally." >&2;}
20322    { (exit 1); exit 1; }; }
20323 fi
20324
20325 : ${CONFIG_STATUS=./config.status}
20326 ac_clean_files_save=$ac_clean_files
20327 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20328 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20329 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20330 cat >$CONFIG_STATUS <<_ACEOF
20331 #! $SHELL
20332 # Generated by $as_me.
20333 # Run this file to recreate the current configuration.
20334 # Compiler output produced by configure, useful for debugging
20335 # configure, is in config.log if it exists.
20336
20337 debug=false
20338 ac_cs_recheck=false
20339 ac_cs_silent=false
20340 SHELL=\${CONFIG_SHELL-$SHELL}
20341 _ACEOF
20342
20343 cat >>$CONFIG_STATUS <<\_ACEOF
20344 ## --------------------- ##
20345 ## M4sh Initialization.  ##
20346 ## --------------------- ##
20347
20348 # Be Bourne compatible
20349 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20350   emulate sh
20351   NULLCMD=:
20352   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20353   # is contrary to our usage.  Disable this feature.
20354   alias -g '${1+"$@"}'='"$@"'
20355   setopt NO_GLOB_SUBST
20356 else
20357   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20358 fi
20359 BIN_SH=xpg4; export BIN_SH # for Tru64
20360 DUALCASE=1; export DUALCASE # for MKS sh
20361
20362
20363 # PATH needs CR
20364 # Avoid depending upon Character Ranges.
20365 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20366 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20367 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20368 as_cr_digits='0123456789'
20369 as_cr_alnum=$as_cr_Letters$as_cr_digits
20370
20371 # The user is always right.
20372 if test "${PATH_SEPARATOR+set}" != set; then
20373   echo "#! /bin/sh" >conf$$.sh
20374   echo  "exit 0"   >>conf$$.sh
20375   chmod +x conf$$.sh
20376   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20377     PATH_SEPARATOR=';'
20378   else
20379     PATH_SEPARATOR=:
20380   fi
20381   rm -f conf$$.sh
20382 fi
20383
20384 # Support unset when possible.
20385 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20386   as_unset=unset
20387 else
20388   as_unset=false
20389 fi
20390
20391
20392 # IFS
20393 # We need space, tab and new line, in precisely that order.  Quoting is
20394 # there to prevent editors from complaining about space-tab.
20395 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20396 # splitting by setting IFS to empty value.)
20397 as_nl='
20398 '
20399 IFS=" ""        $as_nl"
20400
20401 # Find who we are.  Look in the path if we contain no directory separator.
20402 case $0 in
20403   *[\\/]* ) as_myself=$0 ;;
20404   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20405 for as_dir in $PATH
20406 do
20407   IFS=$as_save_IFS
20408   test -z "$as_dir" && as_dir=.
20409   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20410 done
20411 IFS=$as_save_IFS
20412
20413      ;;
20414 esac
20415 # We did not find ourselves, most probably we were run as `sh COMMAND'
20416 # in which case we are not to be found in the path.
20417 if test "x$as_myself" = x; then
20418   as_myself=$0
20419 fi
20420 if test ! -f "$as_myself"; then
20421   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20422   { (exit 1); exit 1; }
20423 fi
20424
20425 # Work around bugs in pre-3.0 UWIN ksh.
20426 for as_var in ENV MAIL MAILPATH
20427 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20428 done
20429 PS1='$ '
20430 PS2='> '
20431 PS4='+ '
20432
20433 # NLS nuisances.
20434 for as_var in \
20435   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20436   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20437   LC_TELEPHONE LC_TIME
20438 do
20439   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20440     eval $as_var=C; export $as_var
20441   else
20442     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20443   fi
20444 done
20445
20446 # Required to use basename.
20447 if expr a : '\(a\)' >/dev/null 2>&1 &&
20448    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20449   as_expr=expr
20450 else
20451   as_expr=false
20452 fi
20453
20454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20455   as_basename=basename
20456 else
20457   as_basename=false
20458 fi
20459
20460
20461 # Name of the executable.
20462 as_me=`$as_basename -- "$0" ||
20463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20464          X"$0" : 'X\(//\)$' \| \
20465          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20466 echo X/"$0" |
20467     sed '/^.*\/\([^/][^/]*\)\/*$/{
20468             s//\1/
20469             q
20470           }
20471           /^X\/\(\/\/\)$/{
20472             s//\1/
20473             q
20474           }
20475           /^X\/\(\/\).*/{
20476             s//\1/
20477             q
20478           }
20479           s/.*/./; q'`
20480
20481 # CDPATH.
20482 $as_unset CDPATH
20483
20484
20485
20486   as_lineno_1=$LINENO
20487   as_lineno_2=$LINENO
20488   test "x$as_lineno_1" != "x$as_lineno_2" &&
20489   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20490
20491   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20492   # uniformly replaced by the line number.  The first 'sed' inserts a
20493   # line-number line after each line using $LINENO; the second 'sed'
20494   # does the real work.  The second script uses 'N' to pair each
20495   # line-number line with the line containing $LINENO, and appends
20496   # trailing '-' during substitution so that $LINENO is not a special
20497   # case at line end.
20498   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20499   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20500   # E. McMahon (1931-1989) for sed's syntax.  :-)
20501   sed -n '
20502     p
20503     /[$]LINENO/=
20504   ' <$as_myself |
20505     sed '
20506       s/[$]LINENO.*/&-/
20507       t lineno
20508       b
20509       :lineno
20510       N
20511       :loop
20512       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20513       t loop
20514       s/-\n.*//
20515     ' >$as_me.lineno &&
20516   chmod +x "$as_me.lineno" ||
20517     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20518    { (exit 1); exit 1; }; }
20519
20520   # Don't try to exec as it changes $[0], causing all sort of problems
20521   # (the dirname of $[0] is not the place where we might find the
20522   # original and so on.  Autoconf is especially sensitive to this).
20523   . "./$as_me.lineno"
20524   # Exit status is that of the last command.
20525   exit
20526 }
20527
20528
20529 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20530   as_dirname=dirname
20531 else
20532   as_dirname=false
20533 fi
20534
20535 ECHO_C= ECHO_N= ECHO_T=
20536 case `echo -n x` in
20537 -n*)
20538   case `echo 'x\c'` in
20539   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20540   *)   ECHO_C='\c';;
20541   esac;;
20542 *)
20543   ECHO_N='-n';;
20544 esac
20545
20546 if expr a : '\(a\)' >/dev/null 2>&1 &&
20547    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20548   as_expr=expr
20549 else
20550   as_expr=false
20551 fi
20552
20553 rm -f conf$$ conf$$.exe conf$$.file
20554 if test -d conf$$.dir; then
20555   rm -f conf$$.dir/conf$$.file
20556 else
20557   rm -f conf$$.dir
20558   mkdir conf$$.dir
20559 fi
20560 echo >conf$$.file
20561 if ln -s conf$$.file conf$$ 2>/dev/null; then
20562   as_ln_s='ln -s'
20563   # ... but there are two gotchas:
20564   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20565   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20566   # In both cases, we have to default to `cp -p'.
20567   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20568     as_ln_s='cp -p'
20569 elif ln conf$$.file conf$$ 2>/dev/null; then
20570   as_ln_s=ln
20571 else
20572   as_ln_s='cp -p'
20573 fi
20574 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20575 rmdir conf$$.dir 2>/dev/null
20576
20577 if mkdir -p . 2>/dev/null; then
20578   as_mkdir_p=:
20579 else
20580   test -d ./-p && rmdir ./-p
20581   as_mkdir_p=false
20582 fi
20583
20584 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20585 # systems may use methods other than mode bits to determine executability.
20586 cat >conf$$.file <<_ASEOF
20587 #! /bin/sh
20588 exit 0
20589 _ASEOF
20590 chmod +x conf$$.file
20591 if test -x conf$$.file >/dev/null 2>&1; then
20592   as_executable_p="test -x"
20593 else
20594   as_executable_p=:
20595 fi
20596 rm -f conf$$.file
20597
20598 # Sed expression to map a string onto a valid CPP name.
20599 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20600
20601 # Sed expression to map a string onto a valid variable name.
20602 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20603
20604
20605 exec 6>&1
20606
20607 # Save the log message, to keep $[0] and so on meaningful, and to
20608 # report actual input values of CONFIG_FILES etc. instead of their
20609 # values after options handling.
20610 ac_log="
20611 This file was extended by llvm $as_me 2.7svn, which was
20612 generated by GNU Autoconf 2.60.  Invocation command line was
20613
20614   CONFIG_FILES    = $CONFIG_FILES
20615   CONFIG_HEADERS  = $CONFIG_HEADERS
20616   CONFIG_LINKS    = $CONFIG_LINKS
20617   CONFIG_COMMANDS = $CONFIG_COMMANDS
20618   $ $0 $@
20619
20620 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20621 "
20622
20623 _ACEOF
20624
20625 cat >>$CONFIG_STATUS <<_ACEOF
20626 # Files that config.status was made for.
20627 config_files="$ac_config_files"
20628 config_headers="$ac_config_headers"
20629 config_commands="$ac_config_commands"
20630
20631 _ACEOF
20632
20633 cat >>$CONFIG_STATUS <<\_ACEOF
20634 ac_cs_usage="\
20635 \`$as_me' instantiates files from templates according to the
20636 current configuration.
20637
20638 Usage: $0 [OPTIONS] [FILE]...
20639
20640   -h, --help       print this help, then exit
20641   -V, --version    print version number, then exit
20642   -q, --quiet      do not print progress messages
20643   -d, --debug      don't remove temporary files
20644       --recheck    update $as_me by reconfiguring in the same conditions
20645   --file=FILE[:TEMPLATE]
20646                    instantiate the configuration file FILE
20647   --header=FILE[:TEMPLATE]
20648                    instantiate the configuration header FILE
20649
20650 Configuration files:
20651 $config_files
20652
20653 Configuration headers:
20654 $config_headers
20655
20656 Configuration commands:
20657 $config_commands
20658
20659 Report bugs to <bug-autoconf@gnu.org>."
20660
20661 _ACEOF
20662 cat >>$CONFIG_STATUS <<_ACEOF
20663 ac_cs_version="\\
20664 llvm config.status 2.7svn
20665 configured by $0, generated by GNU Autoconf 2.60,
20666   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20667
20668 Copyright (C) 2006 Free Software Foundation, Inc.
20669 This config.status script is free software; the Free Software Foundation
20670 gives unlimited permission to copy, distribute and modify it."
20671
20672 ac_pwd='$ac_pwd'
20673 srcdir='$srcdir'
20674 INSTALL='$INSTALL'
20675 _ACEOF
20676
20677 cat >>$CONFIG_STATUS <<\_ACEOF
20678 # If no file are specified by the user, then we need to provide default
20679 # value.  By we need to know if files were specified by the user.
20680 ac_need_defaults=:
20681 while test $# != 0
20682 do
20683   case $1 in
20684   --*=*)
20685     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20686     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20687     ac_shift=:
20688     ;;
20689   *)
20690     ac_option=$1
20691     ac_optarg=$2
20692     ac_shift=shift
20693     ;;
20694   esac
20695
20696   case $ac_option in
20697   # Handling of the options.
20698   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20699     ac_cs_recheck=: ;;
20700   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20701     echo "$ac_cs_version"; exit ;;
20702   --debug | --debu | --deb | --de | --d | -d )
20703     debug=: ;;
20704   --file | --fil | --fi | --f )
20705     $ac_shift
20706     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20707     ac_need_defaults=false;;
20708   --header | --heade | --head | --hea )
20709     $ac_shift
20710     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20711     ac_need_defaults=false;;
20712   --he | --h)
20713     # Conflict between --help and --header
20714     { echo "$as_me: error: ambiguous option: $1
20715 Try \`$0 --help' for more information." >&2
20716    { (exit 1); exit 1; }; };;
20717   --help | --hel | -h )
20718     echo "$ac_cs_usage"; exit ;;
20719   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20720   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20721     ac_cs_silent=: ;;
20722
20723   # This is an error.
20724   -*) { echo "$as_me: error: unrecognized option: $1
20725 Try \`$0 --help' for more information." >&2
20726    { (exit 1); exit 1; }; } ;;
20727
20728   *) ac_config_targets="$ac_config_targets $1"
20729      ac_need_defaults=false ;;
20730
20731   esac
20732   shift
20733 done
20734
20735 ac_configure_extra_args=
20736
20737 if $ac_cs_silent; then
20738   exec 6>/dev/null
20739   ac_configure_extra_args="$ac_configure_extra_args --silent"
20740 fi
20741
20742 _ACEOF
20743 cat >>$CONFIG_STATUS <<_ACEOF
20744 if \$ac_cs_recheck; then
20745   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20746   CONFIG_SHELL=$SHELL
20747   export CONFIG_SHELL
20748   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20749 fi
20750
20751 _ACEOF
20752 cat >>$CONFIG_STATUS <<\_ACEOF
20753 exec 5>>config.log
20754 {
20755   echo
20756   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20757 ## Running $as_me. ##
20758 _ASBOX
20759   echo "$ac_log"
20760 } >&5
20761
20762 _ACEOF
20763 cat >>$CONFIG_STATUS <<_ACEOF
20764 #
20765 # INIT-COMMANDS
20766 #
20767 llvm_src="${srcdir}"
20768
20769 _ACEOF
20770
20771 cat >>$CONFIG_STATUS <<\_ACEOF
20772
20773 # Handling of arguments.
20774 for ac_config_target in $ac_config_targets
20775 do
20776   case $ac_config_target in
20777     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20778     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20779     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20780     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20781     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20782     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20783     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20784     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20785     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20786     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20787     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20788     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20789     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20790     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20791     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20792     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20793     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20794     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20795     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20796     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20797     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20798     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20799     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20800     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20801     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20802
20803   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20804 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20805    { (exit 1); exit 1; }; };;
20806   esac
20807 done
20808
20809
20810 # If the user did not use the arguments to specify the items to instantiate,
20811 # then the envvar interface is used.  Set only those that are not.
20812 # We use the long form for the default assignment because of an extremely
20813 # bizarre bug on SunOS 4.1.3.
20814 if $ac_need_defaults; then
20815   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20816   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20817   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20818 fi
20819
20820 # Have a temporary directory for convenience.  Make it in the build tree
20821 # simply because there is no reason against having it here, and in addition,
20822 # creating and moving files from /tmp can sometimes cause problems.
20823 # Hook for its removal unless debugging.
20824 # Note that there is a small window in which the directory will not be cleaned:
20825 # after its creation but before its name has been assigned to `$tmp'.
20826 $debug ||
20827 {
20828   tmp=
20829   trap 'exit_status=$?
20830   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20831 ' 0
20832   trap '{ (exit 1); exit 1; }' 1 2 13 15
20833 }
20834 # Create a (secure) tmp directory for tmp files.
20835
20836 {
20837   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20838   test -n "$tmp" && test -d "$tmp"
20839 }  ||
20840 {
20841   tmp=./conf$$-$RANDOM
20842   (umask 077 && mkdir "$tmp")
20843 } ||
20844 {
20845    echo "$me: cannot create a temporary directory in ." >&2
20846    { (exit 1); exit 1; }
20847 }
20848
20849 #
20850 # Set up the sed scripts for CONFIG_FILES section.
20851 #
20852
20853 # No need to generate the scripts if there are no CONFIG_FILES.
20854 # This happens for instance when ./config.status config.h
20855 if test -n "$CONFIG_FILES"; then
20856
20857 _ACEOF
20858
20859
20860
20861 ac_delim='%!_!# '
20862 for ac_last_try in false false false false false :; do
20863   cat >conf$$subs.sed <<_ACEOF
20864 SHELL!$SHELL$ac_delim
20865 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20866 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20867 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20868 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20869 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20870 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20871 exec_prefix!$exec_prefix$ac_delim
20872 prefix!$prefix$ac_delim
20873 program_transform_name!$program_transform_name$ac_delim
20874 bindir!$bindir$ac_delim
20875 sbindir!$sbindir$ac_delim
20876 libexecdir!$libexecdir$ac_delim
20877 datarootdir!$datarootdir$ac_delim
20878 datadir!$datadir$ac_delim
20879 sysconfdir!$sysconfdir$ac_delim
20880 sharedstatedir!$sharedstatedir$ac_delim
20881 localstatedir!$localstatedir$ac_delim
20882 includedir!$includedir$ac_delim
20883 oldincludedir!$oldincludedir$ac_delim
20884 docdir!$docdir$ac_delim
20885 infodir!$infodir$ac_delim
20886 htmldir!$htmldir$ac_delim
20887 dvidir!$dvidir$ac_delim
20888 pdfdir!$pdfdir$ac_delim
20889 psdir!$psdir$ac_delim
20890 libdir!$libdir$ac_delim
20891 localedir!$localedir$ac_delim
20892 mandir!$mandir$ac_delim
20893 DEFS!$DEFS$ac_delim
20894 ECHO_C!$ECHO_C$ac_delim
20895 ECHO_N!$ECHO_N$ac_delim
20896 ECHO_T!$ECHO_T$ac_delim
20897 LIBS!$LIBS$ac_delim
20898 build_alias!$build_alias$ac_delim
20899 host_alias!$host_alias$ac_delim
20900 target_alias!$target_alias$ac_delim
20901 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20902 subdirs!$subdirs$ac_delim
20903 build!$build$ac_delim
20904 build_cpu!$build_cpu$ac_delim
20905 build_vendor!$build_vendor$ac_delim
20906 build_os!$build_os$ac_delim
20907 host!$host$ac_delim
20908 host_cpu!$host_cpu$ac_delim
20909 host_vendor!$host_vendor$ac_delim
20910 host_os!$host_os$ac_delim
20911 target!$target$ac_delim
20912 target_cpu!$target_cpu$ac_delim
20913 target_vendor!$target_vendor$ac_delim
20914 target_os!$target_os$ac_delim
20915 OS!$OS$ac_delim
20916 HOST_OS!$HOST_OS$ac_delim
20917 TARGET_OS!$TARGET_OS$ac_delim
20918 LINKALL!$LINKALL$ac_delim
20919 NOLINKALL!$NOLINKALL$ac_delim
20920 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20921 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20922 ARCH!$ARCH$ac_delim
20923 ENDIAN!$ENDIAN$ac_delim
20924 CC!$CC$ac_delim
20925 CFLAGS!$CFLAGS$ac_delim
20926 LDFLAGS!$LDFLAGS$ac_delim
20927 CPPFLAGS!$CPPFLAGS$ac_delim
20928 ac_ct_CC!$ac_ct_CC$ac_delim
20929 EXEEXT!$EXEEXT$ac_delim
20930 OBJEXT!$OBJEXT$ac_delim
20931 CPP!$CPP$ac_delim
20932 GREP!$GREP$ac_delim
20933 EGREP!$EGREP$ac_delim
20934 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20935 BUILD_CC!$BUILD_CC$ac_delim
20936 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20937 BUILD_CXX!$BUILD_CXX$ac_delim
20938 CVSBUILD!$CVSBUILD$ac_delim
20939 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20940 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20941 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20942 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20943 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20944 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20945 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20946 JIT!$JIT$ac_delim
20947 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20948 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20949 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20950 ENABLE_PIC!$ENABLE_PIC$ac_delim
20951 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20952 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20953 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20954 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20955 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20956 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20957 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20958 CLANGPATH!$CLANGPATH$ac_delim
20959 CLANGXXPATH!$CLANGXXPATH$ac_delim
20960 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20961 _ACEOF
20962
20963   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20964     break
20965   elif $ac_last_try; then
20966     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20967 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20968    { (exit 1); exit 1; }; }
20969   else
20970     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20971   fi
20972 done
20973
20974 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20975 if test -n "$ac_eof"; then
20976   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20977   ac_eof=`expr $ac_eof + 1`
20978 fi
20979
20980 cat >>$CONFIG_STATUS <<_ACEOF
20981 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20982 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20983 _ACEOF
20984 sed '
20985 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20986 s/^/s,@/; s/!/@,|#_!!_#|/
20987 :n
20988 t n
20989 s/'"$ac_delim"'$/,g/; t
20990 s/$/\\/; p
20991 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20992 ' >>$CONFIG_STATUS <conf$$subs.sed
20993 rm -f conf$$subs.sed
20994 cat >>$CONFIG_STATUS <<_ACEOF
20995 CEOF$ac_eof
20996 _ACEOF
20997
20998
20999 ac_delim='%!_!# '
21000 for ac_last_try in false false false false false :; do
21001   cat >conf$$subs.sed <<_ACEOF
21002 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21003 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21004 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21005 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21006 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21007 CXX!$CXX$ac_delim
21008 CXXFLAGS!$CXXFLAGS$ac_delim
21009 ac_ct_CXX!$ac_ct_CXX$ac_delim
21010 NM!$NM$ac_delim
21011 ifGNUmake!$ifGNUmake$ac_delim
21012 LN_S!$LN_S$ac_delim
21013 CMP!$CMP$ac_delim
21014 CP!$CP$ac_delim
21015 DATE!$DATE$ac_delim
21016 FIND!$FIND$ac_delim
21017 MKDIR!$MKDIR$ac_delim
21018 MV!$MV$ac_delim
21019 RANLIB!$RANLIB$ac_delim
21020 AR!$AR$ac_delim
21021 RM!$RM$ac_delim
21022 SED!$SED$ac_delim
21023 TAR!$TAR$ac_delim
21024 BINPWD!$BINPWD$ac_delim
21025 GRAPHVIZ!$GRAPHVIZ$ac_delim
21026 DOT!$DOT$ac_delim
21027 FDP!$FDP$ac_delim
21028 NEATO!$NEATO$ac_delim
21029 TWOPI!$TWOPI$ac_delim
21030 CIRCO!$CIRCO$ac_delim
21031 GV!$GV$ac_delim
21032 DOTTY!$DOTTY$ac_delim
21033 PERL!$PERL$ac_delim
21034 HAVE_PERL!$HAVE_PERL$ac_delim
21035 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21036 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21037 INSTALL_DATA!$INSTALL_DATA$ac_delim
21038 BZIP2!$BZIP2$ac_delim
21039 DOXYGEN!$DOXYGEN$ac_delim
21040 GROFF!$GROFF$ac_delim
21041 GZIP!$GZIP$ac_delim
21042 POD2HTML!$POD2HTML$ac_delim
21043 POD2MAN!$POD2MAN$ac_delim
21044 RUNTEST!$RUNTEST$ac_delim
21045 TCLSH!$TCLSH$ac_delim
21046 ZIP!$ZIP$ac_delim
21047 OCAMLC!$OCAMLC$ac_delim
21048 OCAMLOPT!$OCAMLOPT$ac_delim
21049 OCAMLDEP!$OCAMLDEP$ac_delim
21050 OCAMLDOC!$OCAMLDOC$ac_delim
21051 GAS!$GAS$ac_delim
21052 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21053 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21054 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21055 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21056 LIBADD_DL!$LIBADD_DL$ac_delim
21057 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21058 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21059 LLVMGCC!$LLVMGCC$ac_delim
21060 LLVMGXX!$LLVMGXX$ac_delim
21061 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21062 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21063 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21064 USE_UDIS86!$USE_UDIS86$ac_delim
21065 USE_OPROFILE!$USE_OPROFILE$ac_delim
21066 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21067 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21068 MMAP_FILE!$MMAP_FILE$ac_delim
21069 LLVMCC1!$LLVMCC1$ac_delim
21070 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21071 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21072 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21073 SHLIBEXT!$SHLIBEXT$ac_delim
21074 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21075 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21076 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21077 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21078 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21079 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21080 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21081 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21082 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21083 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21084 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21085 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21086 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21087 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21088 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21089 RPATH!$RPATH$ac_delim
21090 RDYNAMIC!$RDYNAMIC$ac_delim
21091 LIBOBJS!$LIBOBJS$ac_delim
21092 LTLIBOBJS!$LTLIBOBJS$ac_delim
21093 _ACEOF
21094
21095   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21096     break
21097   elif $ac_last_try; then
21098     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21099 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21100    { (exit 1); exit 1; }; }
21101   else
21102     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21103   fi
21104 done
21105
21106 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21107 if test -n "$ac_eof"; then
21108   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21109   ac_eof=`expr $ac_eof + 1`
21110 fi
21111
21112 cat >>$CONFIG_STATUS <<_ACEOF
21113 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21115 _ACEOF
21116 sed '
21117 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21118 s/^/s,@/; s/!/@,|#_!!_#|/
21119 :n
21120 t n
21121 s/'"$ac_delim"'$/,g/; t
21122 s/$/\\/; p
21123 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21124 ' >>$CONFIG_STATUS <conf$$subs.sed
21125 rm -f conf$$subs.sed
21126 cat >>$CONFIG_STATUS <<_ACEOF
21127 :end
21128 s/|#_!!_#|//g
21129 CEOF$ac_eof
21130 _ACEOF
21131
21132
21133 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21134 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21135 # trailing colons and then remove the whole line if VPATH becomes empty
21136 # (actually we leave an empty line to preserve line numbers).
21137 if test "x$srcdir" = x.; then
21138   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21139 s/:*\$(srcdir):*/:/
21140 s/:*\${srcdir}:*/:/
21141 s/:*@srcdir@:*/:/
21142 s/^\([^=]*=[     ]*\):*/\1/
21143 s/:*$//
21144 s/^[^=]*=[       ]*$//
21145 }'
21146 fi
21147
21148 cat >>$CONFIG_STATUS <<\_ACEOF
21149 fi # test -n "$CONFIG_FILES"
21150
21151
21152 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21153 do
21154   case $ac_tag in
21155   :[FHLC]) ac_mode=$ac_tag; continue;;
21156   esac
21157   case $ac_mode$ac_tag in
21158   :[FHL]*:*);;
21159   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21160 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21161    { (exit 1); exit 1; }; };;
21162   :[FH]-) ac_tag=-:-;;
21163   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21164   esac
21165   ac_save_IFS=$IFS
21166   IFS=:
21167   set x $ac_tag
21168   IFS=$ac_save_IFS
21169   shift
21170   ac_file=$1
21171   shift
21172
21173   case $ac_mode in
21174   :L) ac_source=$1;;
21175   :[FH])
21176     ac_file_inputs=
21177     for ac_f
21178     do
21179       case $ac_f in
21180       -) ac_f="$tmp/stdin";;
21181       *) # Look for the file first in the build tree, then in the source tree
21182          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21183          # because $ac_f cannot contain `:'.
21184          test -f "$ac_f" ||
21185            case $ac_f in
21186            [\\/$]*) false;;
21187            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21188            esac ||
21189            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21190 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21191    { (exit 1); exit 1; }; };;
21192       esac
21193       ac_file_inputs="$ac_file_inputs $ac_f"
21194     done
21195
21196     # Let's still pretend it is `configure' which instantiates (i.e., don't
21197     # use $as_me), people would be surprised to read:
21198     #    /* config.h.  Generated by config.status.  */
21199     configure_input="Generated from "`IFS=:
21200           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21201     if test x"$ac_file" != x-; then
21202       configure_input="$ac_file.  $configure_input"
21203       { echo "$as_me:$LINENO: creating $ac_file" >&5
21204 echo "$as_me: creating $ac_file" >&6;}
21205     fi
21206
21207     case $ac_tag in
21208     *:-:* | *:-) cat >"$tmp/stdin";;
21209     esac
21210     ;;
21211   esac
21212
21213   ac_dir=`$as_dirname -- "$ac_file" ||
21214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21215          X"$ac_file" : 'X\(//\)[^/]' \| \
21216          X"$ac_file" : 'X\(//\)$' \| \
21217          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21218 echo X"$ac_file" |
21219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21220             s//\1/
21221             q
21222           }
21223           /^X\(\/\/\)[^/].*/{
21224             s//\1/
21225             q
21226           }
21227           /^X\(\/\/\)$/{
21228             s//\1/
21229             q
21230           }
21231           /^X\(\/\).*/{
21232             s//\1/
21233             q
21234           }
21235           s/.*/./; q'`
21236   { as_dir="$ac_dir"
21237   case $as_dir in #(
21238   -*) as_dir=./$as_dir;;
21239   esac
21240   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21241     as_dirs=
21242     while :; do
21243       case $as_dir in #(
21244       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21245       *) as_qdir=$as_dir;;
21246       esac
21247       as_dirs="'$as_qdir' $as_dirs"
21248       as_dir=`$as_dirname -- "$as_dir" ||
21249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21250          X"$as_dir" : 'X\(//\)[^/]' \| \
21251          X"$as_dir" : 'X\(//\)$' \| \
21252          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21253 echo X"$as_dir" |
21254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21255             s//\1/
21256             q
21257           }
21258           /^X\(\/\/\)[^/].*/{
21259             s//\1/
21260             q
21261           }
21262           /^X\(\/\/\)$/{
21263             s//\1/
21264             q
21265           }
21266           /^X\(\/\).*/{
21267             s//\1/
21268             q
21269           }
21270           s/.*/./; q'`
21271       test -d "$as_dir" && break
21272     done
21273     test -z "$as_dirs" || eval "mkdir $as_dirs"
21274   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21275 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21276    { (exit 1); exit 1; }; }; }
21277   ac_builddir=.
21278
21279 case "$ac_dir" in
21280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21281 *)
21282   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21283   # A ".." for each directory in $ac_dir_suffix.
21284   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21285   case $ac_top_builddir_sub in
21286   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21287   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21288   esac ;;
21289 esac
21290 ac_abs_top_builddir=$ac_pwd
21291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21292 # for backward compatibility:
21293 ac_top_builddir=$ac_top_build_prefix
21294
21295 case $srcdir in
21296   .)  # We are building in place.
21297     ac_srcdir=.
21298     ac_top_srcdir=$ac_top_builddir_sub
21299     ac_abs_top_srcdir=$ac_pwd ;;
21300   [\\/]* | ?:[\\/]* )  # Absolute name.
21301     ac_srcdir=$srcdir$ac_dir_suffix;
21302     ac_top_srcdir=$srcdir
21303     ac_abs_top_srcdir=$srcdir ;;
21304   *) # Relative name.
21305     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21306     ac_top_srcdir=$ac_top_build_prefix$srcdir
21307     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21308 esac
21309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21310
21311
21312   case $ac_mode in
21313   :F)
21314   #
21315   # CONFIG_FILE
21316   #
21317
21318   case $INSTALL in
21319   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21320   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21321   esac
21322 _ACEOF
21323
21324 cat >>$CONFIG_STATUS <<\_ACEOF
21325 # If the template does not know about datarootdir, expand it.
21326 # FIXME: This hack should be removed a few years after 2.60.
21327 ac_datarootdir_hack=; ac_datarootdir_seen=
21328
21329 case `sed -n '/datarootdir/ {
21330   p
21331   q
21332 }
21333 /@datadir@/p
21334 /@docdir@/p
21335 /@infodir@/p
21336 /@localedir@/p
21337 /@mandir@/p
21338 ' $ac_file_inputs` in
21339 *datarootdir*) ac_datarootdir_seen=yes;;
21340 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21341   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21342 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21343 _ACEOF
21344 cat >>$CONFIG_STATUS <<_ACEOF
21345   ac_datarootdir_hack='
21346   s&@datadir@&$datadir&g
21347   s&@docdir@&$docdir&g
21348   s&@infodir@&$infodir&g
21349   s&@localedir@&$localedir&g
21350   s&@mandir@&$mandir&g
21351     s&\\\${datarootdir}&$datarootdir&g' ;;
21352 esac
21353 _ACEOF
21354
21355 # Neutralize VPATH when `$srcdir' = `.'.
21356 # Shell code in configure.ac might set extrasub.
21357 # FIXME: do we really want to maintain this feature?
21358 cat >>$CONFIG_STATUS <<_ACEOF
21359   sed "$ac_vpsub
21360 $extrasub
21361 _ACEOF
21362 cat >>$CONFIG_STATUS <<\_ACEOF
21363 :t
21364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21365 s&@configure_input@&$configure_input&;t t
21366 s&@top_builddir@&$ac_top_builddir_sub&;t t
21367 s&@srcdir@&$ac_srcdir&;t t
21368 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21369 s&@top_srcdir@&$ac_top_srcdir&;t t
21370 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21371 s&@builddir@&$ac_builddir&;t t
21372 s&@abs_builddir@&$ac_abs_builddir&;t t
21373 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21374 s&@INSTALL@&$ac_INSTALL&;t t
21375 $ac_datarootdir_hack
21376 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21377
21378 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21379   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21380   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21381   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21382 which seems to be undefined.  Please make sure it is defined." >&5
21383 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21384 which seems to be undefined.  Please make sure it is defined." >&2;}
21385
21386   rm -f "$tmp/stdin"
21387   case $ac_file in
21388   -) cat "$tmp/out"; rm -f "$tmp/out";;
21389   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21390   esac
21391  ;;
21392   :H)
21393   #
21394   # CONFIG_HEADER
21395   #
21396 _ACEOF
21397
21398 # Transform confdefs.h into a sed script `conftest.defines', that
21399 # substitutes the proper values into config.h.in to produce config.h.
21400 rm -f conftest.defines conftest.tail
21401 # First, append a space to every undef/define line, to ease matching.
21402 echo 's/$/ /' >conftest.defines
21403 # Then, protect against being on the right side of a sed subst, or in
21404 # an unquoted here document, in config.status.  If some macros were
21405 # called several times there might be several #defines for the same
21406 # symbol, which is useless.  But do not sort them, since the last
21407 # AC_DEFINE must be honored.
21408 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21409 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21410 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21411 # PARAMS is the parameter list in the macro definition--in most cases, it's
21412 # just an empty string.
21413 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21414 ac_dB='\\)[      (].*,\\1define\\2'
21415 ac_dC=' '
21416 ac_dD=' ,'
21417
21418 uniq confdefs.h |
21419   sed -n '
21420         t rset
21421         :rset
21422         s/^[     ]*#[    ]*define[       ][      ]*//
21423         t ok
21424         d
21425         :ok
21426         s/[\\&,]/\\&/g
21427         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21428         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21429   ' >>conftest.defines
21430
21431 # Remove the space that was appended to ease matching.
21432 # Then replace #undef with comments.  This is necessary, for
21433 # example, in the case of _POSIX_SOURCE, which is predefined and required
21434 # on some systems where configure will not decide to define it.
21435 # (The regexp can be short, since the line contains either #define or #undef.)
21436 echo 's/ $//
21437 s,^[     #]*u.*,/* & */,' >>conftest.defines
21438
21439 # Break up conftest.defines:
21440 ac_max_sed_lines=50
21441
21442 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21443 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21444 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21445 # et cetera.
21446 ac_in='$ac_file_inputs'
21447 ac_out='"$tmp/out1"'
21448 ac_nxt='"$tmp/out2"'
21449
21450 while :
21451 do
21452   # Write a here document:
21453     cat >>$CONFIG_STATUS <<_ACEOF
21454     # First, check the format of the line:
21455     cat >"\$tmp/defines.sed" <<\\CEOF
21456 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21457 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21458 b
21459 :def
21460 _ACEOF
21461   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21462   echo 'CEOF
21463     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21464   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21465   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21466   grep . conftest.tail >/dev/null || break
21467   rm -f conftest.defines
21468   mv conftest.tail conftest.defines
21469 done
21470 rm -f conftest.defines conftest.tail
21471
21472 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21473 cat >>$CONFIG_STATUS <<\_ACEOF
21474   if test x"$ac_file" != x-; then
21475     echo "/* $configure_input  */" >"$tmp/config.h"
21476     cat "$ac_result" >>"$tmp/config.h"
21477     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21478       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21479 echo "$as_me: $ac_file is unchanged" >&6;}
21480     else
21481       rm -f $ac_file
21482       mv "$tmp/config.h" $ac_file
21483     fi
21484   else
21485     echo "/* $configure_input  */"
21486     cat "$ac_result"
21487   fi
21488   rm -f "$tmp/out12"
21489  ;;
21490
21491   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21492 echo "$as_me: executing $ac_file commands" >&6;}
21493  ;;
21494   esac
21495
21496
21497   case $ac_file$ac_mode in
21498     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21499    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21500     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21501    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21502     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21503    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21504     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21505    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21506     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21507    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21508     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21509    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21510     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21511    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21512     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21513    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21514     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21515    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21516     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21517    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21518     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21519    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21520     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21521    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21522     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21523    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21524
21525   esac
21526 done # for ac_tag
21527
21528
21529 { (exit 0); exit 0; }
21530 _ACEOF
21531 chmod +x $CONFIG_STATUS
21532 ac_clean_files=$ac_clean_files_save
21533
21534
21535 # configure is writing to config.log, and then calls config.status.
21536 # config.status does its own redirection, appending to config.log.
21537 # Unfortunately, on DOS this fails, as config.log is still kept open
21538 # by configure, so config.status won't be able to write to it; its
21539 # output is simply discarded.  So we exec the FD to /dev/null,
21540 # effectively closing config.log, so it can be properly (re)opened and
21541 # appended to by config.status.  When coming back to configure, we
21542 # need to make the FD available again.
21543 if test "$no_create" != yes; then
21544   ac_cs_success=:
21545   ac_config_status_args=
21546   test "$silent" = yes &&
21547     ac_config_status_args="$ac_config_status_args --quiet"
21548   exec 5>/dev/null
21549   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21550   exec 5>>config.log
21551   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21552   # would make configure fail if this is the last instruction.
21553   $ac_cs_success || { (exit 1); exit 1; }
21554 fi
21555
21556 #
21557 # CONFIG_SUBDIRS section.
21558 #
21559 if test "$no_recursion" != yes; then
21560
21561   # Remove --cache-file and --srcdir arguments so they do not pile up.
21562   ac_sub_configure_args=
21563   ac_prev=
21564   eval "set x $ac_configure_args"
21565   shift
21566   for ac_arg
21567   do
21568     if test -n "$ac_prev"; then
21569       ac_prev=
21570       continue
21571     fi
21572     case $ac_arg in
21573     -cache-file | --cache-file | --cache-fil | --cache-fi \
21574     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21575       ac_prev=cache_file ;;
21576     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21577     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21578     | --c=*)
21579       ;;
21580     --config-cache | -C)
21581       ;;
21582     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21583       ac_prev=srcdir ;;
21584     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21585       ;;
21586     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21587       ac_prev=prefix ;;
21588     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21589       ;;
21590     *)
21591       case $ac_arg in
21592       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21593       esac
21594       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21595     esac
21596   done
21597
21598   # Always prepend --prefix to ensure using the same prefix
21599   # in subdir configurations.
21600   ac_arg="--prefix=$prefix"
21601   case $ac_arg in
21602   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21603   esac
21604   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21605
21606   ac_popdir=`pwd`
21607   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21608
21609     # Do not complain, so a configure script can configure whichever
21610     # parts of a large source tree are present.
21611     test -d "$srcdir/$ac_dir" || continue
21612
21613     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21614     echo "$as_me:$LINENO: $ac_msg" >&5
21615     echo "$ac_msg" >&6
21616     { as_dir="$ac_dir"
21617   case $as_dir in #(
21618   -*) as_dir=./$as_dir;;
21619   esac
21620   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21621     as_dirs=
21622     while :; do
21623       case $as_dir in #(
21624       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21625       *) as_qdir=$as_dir;;
21626       esac
21627       as_dirs="'$as_qdir' $as_dirs"
21628       as_dir=`$as_dirname -- "$as_dir" ||
21629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21630          X"$as_dir" : 'X\(//\)[^/]' \| \
21631          X"$as_dir" : 'X\(//\)$' \| \
21632          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21633 echo X"$as_dir" |
21634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21635             s//\1/
21636             q
21637           }
21638           /^X\(\/\/\)[^/].*/{
21639             s//\1/
21640             q
21641           }
21642           /^X\(\/\/\)$/{
21643             s//\1/
21644             q
21645           }
21646           /^X\(\/\).*/{
21647             s//\1/
21648             q
21649           }
21650           s/.*/./; q'`
21651       test -d "$as_dir" && break
21652     done
21653     test -z "$as_dirs" || eval "mkdir $as_dirs"
21654   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21655 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21656    { (exit 1); exit 1; }; }; }
21657     ac_builddir=.
21658
21659 case "$ac_dir" in
21660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21661 *)
21662   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21663   # A ".." for each directory in $ac_dir_suffix.
21664   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21665   case $ac_top_builddir_sub in
21666   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21667   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21668   esac ;;
21669 esac
21670 ac_abs_top_builddir=$ac_pwd
21671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21672 # for backward compatibility:
21673 ac_top_builddir=$ac_top_build_prefix
21674
21675 case $srcdir in
21676   .)  # We are building in place.
21677     ac_srcdir=.
21678     ac_top_srcdir=$ac_top_builddir_sub
21679     ac_abs_top_srcdir=$ac_pwd ;;
21680   [\\/]* | ?:[\\/]* )  # Absolute name.
21681     ac_srcdir=$srcdir$ac_dir_suffix;
21682     ac_top_srcdir=$srcdir
21683     ac_abs_top_srcdir=$srcdir ;;
21684   *) # Relative name.
21685     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21686     ac_top_srcdir=$ac_top_build_prefix$srcdir
21687     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21688 esac
21689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21690
21691
21692     cd "$ac_dir"
21693
21694     # Check for guested configure; otherwise get Cygnus style configure.
21695     if test -f "$ac_srcdir/configure.gnu"; then
21696       ac_sub_configure=$ac_srcdir/configure.gnu
21697     elif test -f "$ac_srcdir/configure"; then
21698       ac_sub_configure=$ac_srcdir/configure
21699     elif test -f "$ac_srcdir/configure.in"; then
21700       # This should be Cygnus configure.
21701       ac_sub_configure=$ac_aux_dir/configure
21702     else
21703       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21704 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21705       ac_sub_configure=
21706     fi
21707
21708     # The recursion is here.
21709     if test -n "$ac_sub_configure"; then
21710       # Make the cache file name correct relative to the subdirectory.
21711       case $cache_file in
21712       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21713       *) # Relative name.
21714         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21715       esac
21716
21717       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21718 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21719       # The eval makes quoting arguments work.
21720       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21721            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21722         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21723 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21724    { (exit 1); exit 1; }; }
21725     fi
21726
21727     cd "$ac_popdir"
21728   done
21729 fi
21730