This is the first patch to put the needed bits in place to eventually allow code
[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/llvm-kernel'
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868   # If the previous option needs an argument, assign it.
869   if test -n "$ac_prev"; then
870     eval $ac_prev=\$ac_option
871     ac_prev=
872     continue
873   fi
874
875   case $ac_option in
876   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877   *)    ac_optarg=yes ;;
878   esac
879
880   # Accept the important Cygnus configure options, so we can diagnose typos.
881
882   case $ac_dashdash$ac_option in
883   --)
884     ac_dashdash=yes ;;
885
886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
887     ac_prev=bindir ;;
888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889     bindir=$ac_optarg ;;
890
891   -build | --build | --buil | --bui | --bu)
892     ac_prev=build_alias ;;
893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894     build_alias=$ac_optarg ;;
895
896   -cache-file | --cache-file | --cache-fil | --cache-fi \
897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898     ac_prev=cache_file ;;
899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901     cache_file=$ac_optarg ;;
902
903   --config-cache | -C)
904     cache_file=config.cache ;;
905
906   -datadir | --datadir | --datadi | --datad)
907     ac_prev=datadir ;;
908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
909     datadir=$ac_optarg ;;
910
911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912   | --dataroo | --dataro | --datar)
913     ac_prev=datarootdir ;;
914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916     datarootdir=$ac_optarg ;;
917
918   -disable-* | --disable-*)
919     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923    { (exit 1); exit 1; }; }
924     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925     eval enable_$ac_feature=no ;;
926
927   -docdir | --docdir | --docdi | --doc | --do)
928     ac_prev=docdir ;;
929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930     docdir=$ac_optarg ;;
931
932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933     ac_prev=dvidir ;;
934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935     dvidir=$ac_optarg ;;
936
937   -enable-* | --enable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944     eval enable_$ac_feature=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138       { echo "$as_me: error: invalid package name: $ac_package" >&2
1139    { (exit 1); exit 1; }; }
1140     ac_package=`echo $ac_package| sed 's/-/_/g'`
1141     eval with_$ac_package=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package | sed 's/-/_/g'`
1150     eval with_$ac_package=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172    { (exit 1); exit 1; }; }
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180    { (exit 1); exit 1; }; }
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   { echo "$as_me: error: missing argument to $ac_option" >&2
1198    { (exit 1); exit 1; }; }
1199 fi
1200
1201 # Be sure to have absolute directory names.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213    { (exit 1); exit 1; }; }
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   { echo "$as_me: error: Working directory cannot be determined" >&2
1244    { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   { echo "$as_me: error: pwd does not report name of working directory" >&2
1247    { (exit 1); exit 1; }; }
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$0" : 'X\(//\)[^/]' \| \
1257          X"$0" : 'X\(//\)$' \| \
1258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292    { (exit 1); exit 1; }; }
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR           user executables [EPREFIX/bin]
1353   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR       program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR           object code libraries [EPREFIX/lib]
1359   --includedir=DIR       C header files [PREFIX/include]
1360   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR          info documentation [DATAROOTDIR/info]
1364   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR           man documentation [DATAROOTDIR/man]
1366   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1367   --htmldir=DIR          html documentation [DOCDIR]
1368   --dvidir=DIR           dvi documentation [DOCDIR]
1369   --pdfdir=DIR           pdf documentation [DOCDIR]
1370   --psdir=DIR            ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378   --target=TARGET   configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383   case $ac_init_help in
1384      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1385    esac
1386   cat <<\_ACEOF
1387
1388 Optional Features:
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --enable-optimized      Compile with optimizations enabled (default is NO)
1392   --enable-profiling      Compile with profiling enabled (default is NO)
1393   --enable-assertions     Compile with assertion checks enabled (default is
1394                           YES)
1395   --enable-expensive-checks
1396                           Compile with expensive debug checks enabled (default
1397                           is NO)
1398   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1399                           NO)
1400   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1401                           optimization is on and YES if it's off)
1402   --enable-jit            Enable Just In Time Compiling (default is YES)
1403   --enable-doxygen        Build doxygen documentation (default is NO)
1404   --enable-threads        Use threads if available (default is YES)
1405   --enable-pic            Build LLVM with Position Independent Code (default
1406                           is YES)
1407   --enable-shared         Link LLVM tools shared (default is NO)
1408   --enable-targets        Build specific host targets: all or
1409                           target1,target2,... Valid targets are: host, x86,
1410                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1411                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1412                           and cpp (default=all)
1413   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1414                           %a (default is YES)
1415   --enable-bindings       Build specific language bindings:
1416                           all,auto,none,{binding-name} (default=auto)
1417   --enable-libffi         Check for the presence of libffi (default is NO)
1418   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1419                           Win32)
1420   --enable-llvmc-dynamic-plugins
1421                           Enable dynamic LLVMC plugins (default is YES)
1422   --enable-ltdl-install   install libltdl
1423
1424 Optional Packages:
1425   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1426   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1427   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1428                           searches PATH)
1429   --with-llvmgcc          Specify location of llvm-gcc driver (default
1430                           searches PATH)
1431   --with-llvmgxx          Specify location of llvm-g++ driver (default
1432                           searches PATH)
1433   --with-clang            Specify location of clang compiler (default is
1434                           --with-built-clang)
1435   --with-built-clang      Use the compiled Clang as the LLVM compiler
1436                           (default=check)
1437   --with-optimize-option  Select the compiler options to use for optimized
1438                           builds
1439   --with-extra-options    Specify additional options to compile LLVM with
1440   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1441                           is stdlib)
1442   --with-c-include-dirs   Colon separated list of directories clang will
1443                           search for headers
1444   --with-cxx-include-root Directory with the libstdc++ headers.
1445   --with-cxx-include-arch Architecture of the libstdc++ headers.
1446   --with-cxx-include-32bit-dir
1447                           32 bit multilib dir.
1448   --with-cxx-include-64bit-dir
1449                           64 bit multilib directory.
1450   --with-binutils-include Specify path to binutils/include/ containing
1451                           plugin-api.h file for gold plugin.
1452   --with-tclinclude       directory where tcl headers are
1453   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1454                           clang, or none; default=check)
1455   --with-udis86=<path>    Use udis86 external x86 disassembler library
1456   --with-oprofile=<prefix>
1457                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1458
1459 Some influential environment variables:
1460   CC          C compiler command
1461   CFLAGS      C compiler flags
1462   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463               nonstandard directory <lib dir>
1464   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465               you have headers in a nonstandard directory <include dir>
1466   CPP         C preprocessor
1467   CXX         C++ compiler command
1468   CXXFLAGS    C++ compiler flags
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <llvmbugs@cs.uiuc.edu>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" || continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 llvm configure 2.7svn
1535 generated by GNU Autoconf 2.60
1536
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541
1542 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1543 _ACEOF
1544   exit
1545 fi
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1549
1550 It was created by llvm $as_me 2.7svn, which was
1551 generated by GNU Autoconf 2.60.  Invocation command line was
1552
1553   $ $0 $@
1554
1555 _ACEOF
1556 exec 5>>config.log
1557 {
1558 cat <<_ASUNAME
1559 ## --------- ##
1560 ## Platform. ##
1561 ## --------- ##
1562
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1571
1572 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1573 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1576 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1577 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1578 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1579
1580 _ASUNAME
1581
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   echo "PATH: $as_dir"
1588 done
1589 IFS=$as_save_IFS
1590
1591 } >&5
1592
1593 cat >&5 <<_ACEOF
1594
1595
1596 ## ----------- ##
1597 ## Core tests. ##
1598 ## ----------- ##
1599
1600 _ACEOF
1601
1602
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_configure_args=
1609 ac_configure_args0=
1610 ac_configure_args1=
1611 ac_must_keep_next=false
1612 for ac_pass in 1 2
1613 do
1614   for ac_arg
1615   do
1616     case $ac_arg in
1617     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619     | -silent | --silent | --silen | --sile | --sil)
1620       continue ;;
1621     *\'*)
1622       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623     esac
1624     case $ac_pass in
1625     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626     2)
1627       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628       if test $ac_must_keep_next = true; then
1629         ac_must_keep_next=false # Got value, back to normal.
1630       else
1631         case $ac_arg in
1632           *=* | --config-cache | -C | -disable-* | --disable-* \
1633           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635           | -with-* | --with-* | -without-* | --without-* | --x)
1636             case "$ac_configure_args0 " in
1637               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638             esac
1639             ;;
1640           -* ) ac_must_keep_next=true ;;
1641         esac
1642       fi
1643       ac_configure_args="$ac_configure_args '$ac_arg'"
1644       ;;
1645     esac
1646   done
1647 done
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log.  We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657   # Save into config.log some information that might help in debugging.
1658   {
1659     echo
1660
1661     cat <<\_ASBOX
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1665 _ASBOX
1666     echo
1667     # The following way of writing the cache mishandles newlines in values,
1668 (
1669   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670     eval ac_val=\$$ac_var
1671     case $ac_val in #(
1672     *${as_nl}*)
1673       case $ac_var in #(
1674       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676       esac
1677       case $ac_var in #(
1678       _ | IFS | as_nl) ;; #(
1679       *) $as_unset $ac_var ;;
1680       esac ;;
1681     esac
1682   done
1683   (set) 2>&1 |
1684     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685     *${as_nl}ac_space=\ *)
1686       sed -n \
1687         "s/'\''/'\''\\\\'\'''\''/g;
1688           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689       ;; #(
1690     *)
1691       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1692       ;;
1693     esac |
1694     sort
1695 )
1696     echo
1697
1698     cat <<\_ASBOX
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1702 _ASBOX
1703     echo
1704     for ac_var in $ac_subst_vars
1705     do
1706       eval ac_val=\$$ac_var
1707       case $ac_val in
1708       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709       esac
1710       echo "$ac_var='\''$ac_val'\''"
1711     done | sort
1712     echo
1713
1714     if test -n "$ac_subst_files"; then
1715       cat <<\_ASBOX
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1719 _ASBOX
1720       echo
1721       for ac_var in $ac_subst_files
1722       do
1723         eval ac_val=\$$ac_var
1724         case $ac_val in
1725         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726         esac
1727         echo "$ac_var='\''$ac_val'\''"
1728       done | sort
1729       echo
1730     fi
1731
1732     if test -s confdefs.h; then
1733       cat <<\_ASBOX
1734 ## ----------- ##
1735 ## confdefs.h. ##
1736 ## ----------- ##
1737 _ASBOX
1738       echo
1739       cat confdefs.h
1740       echo
1741     fi
1742     test "$ac_signal" != 0 &&
1743       echo "$as_me: caught signal $ac_signal"
1744     echo "$as_me: exit $exit_status"
1745   } >&5
1746   rm -f core *.core core.conftest.* &&
1747     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748     exit $exit_status
1749 ' 0
1750 for ac_signal in 1 2 13 15; do
1751   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 done
1753 ac_signal=0
1754
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1757
1758 # Predefined preprocessor variables.
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 _ACEOF
1763
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 _ACEOF
1768
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 _ACEOF
1783
1784
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788   set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 else
1792   set x "$ac_default_prefix/share/config.site" \
1793         "$ac_default_prefix/etc/config.site"
1794 fi
1795 shift
1796 for ac_site_file
1797 do
1798   if test -r "$ac_site_file"; then
1799     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801     sed 's/^/| /' "$ac_site_file" >&5
1802     . "$ac_site_file"
1803   fi
1804 done
1805
1806 if test -r "$cache_file"; then
1807   # Some versions of bash will fail to source /dev/null (special
1808   # files actually), so we avoid doing that.
1809   if test -f "$cache_file"; then
1810     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1812     case $cache_file in
1813       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814       *)                      . "./$cache_file";;
1815     esac
1816   fi
1817 else
1818   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1820   >$cache_file
1821 fi
1822
1823 # Check that the precious variables saved in the cache have kept the same
1824 # value.
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828   eval ac_new_set=\$ac_env_${ac_var}_set
1829   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830   eval ac_new_val=\$ac_env_${ac_var}_value
1831   case $ac_old_set,$ac_new_set in
1832     set,)
1833       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835       ac_cache_corrupted=: ;;
1836     ,set)
1837       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839       ac_cache_corrupted=: ;;
1840     ,);;
1841     *)
1842       if test "x$ac_old_val" != "x$ac_new_val"; then
1843         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1846 echo "$as_me:   former value:  $ac_old_val" >&2;}
1847         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1848 echo "$as_me:   current value: $ac_new_val" >&2;}
1849         ac_cache_corrupted=:
1850       fi;;
1851   esac
1852   # Pass precious variables to config.status.
1853   if test "$ac_new_set" = set; then
1854     case $ac_new_val in
1855     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856     *) ac_arg=$ac_var=$ac_new_val ;;
1857     esac
1858     case " $ac_configure_args " in
1859       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1860       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861     esac
1862   fi
1863 done
1864 if $ac_cache_corrupted; then
1865   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869    { (exit 1); exit 1; }; }
1870 fi
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896 ac_ext=c
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
1904 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1905
1906
1907
1908
1909
1910
1911
1912 ac_aux_dir=
1913 for ac_dir in autoconf "$srcdir"/autoconf; do
1914   if test -f "$ac_dir/install-sh"; then
1915     ac_aux_dir=$ac_dir
1916     ac_install_sh="$ac_aux_dir/install-sh -c"
1917     break
1918   elif test -f "$ac_dir/install.sh"; then
1919     ac_aux_dir=$ac_dir
1920     ac_install_sh="$ac_aux_dir/install.sh -c"
1921     break
1922   elif test -f "$ac_dir/shtool"; then
1923     ac_aux_dir=$ac_dir
1924     ac_install_sh="$ac_aux_dir/shtool install -c"
1925     break
1926   fi
1927 done
1928 if test -z "$ac_aux_dir"; then
1929   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1930 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1931    { (exit 1); exit 1; }; }
1932 fi
1933
1934 # These three variables are undocumented and unsupported,
1935 # and are intended to be withdrawn in a future Autoconf release.
1936 # They can cause serious problems if a builder's source tree is in a directory
1937 # whose full name contains unusual characters.
1938 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1939 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1940 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1941
1942
1943
1944 if test ${srcdir} != "." ; then
1945   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1946     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1947 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1948    { (exit 1); exit 1; }; }
1949   fi
1950 fi
1951
1952 for i in `ls ${srcdir}/projects`
1953 do
1954   if test -d ${srcdir}/projects/${i} ; then
1955     case ${i} in
1956       CVS) ;;
1957       sample)       subdirs="$subdirs projects/sample"
1958     ;;
1959       privbracket)  subdirs="$subdirs projects/privbracket"
1960  ;;
1961       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1962  ;;
1963       # llvm-test is the old name of the test-suite, kept here for backwards
1964       # compatibility
1965       llvm-test)    subdirs="$subdirs projects/llvm-test"
1966  ;;
1967       test-suite)   subdirs="$subdirs projects/test-suite"
1968  ;;
1969       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1970 ;;
1971       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
1972   ;;
1973       llvm-java)    subdirs="$subdirs projects/llvm-java"
1974  ;;
1975       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1976    ;;
1977       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1978  ;;
1979       poolalloc)    subdirs="$subdirs projects/poolalloc"
1980  ;;
1981       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
1982  ;;
1983       *)
1984         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1985 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1986         ;;
1987     esac
1988   fi
1989 done
1990
1991
1992 # Make sure we can run config.sub.
1993 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1994   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1996    { (exit 1); exit 1; }; }
1997
1998 { echo "$as_me:$LINENO: checking build system type" >&5
1999 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2000 if test "${ac_cv_build+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   ac_build_alias=$build_alias
2004 test "x$ac_build_alias" = x &&
2005   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006 test "x$ac_build_alias" = x &&
2007   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009    { (exit 1); exit 1; }; }
2010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2011   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2013    { (exit 1); exit 1; }; }
2014
2015 fi
2016 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017 echo "${ECHO_T}$ac_cv_build" >&6; }
2018 case $ac_cv_build in
2019 *-*-*) ;;
2020 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021 echo "$as_me: error: invalid value of canonical build" >&2;}
2022    { (exit 1); exit 1; }; };;
2023 esac
2024 build=$ac_cv_build
2025 ac_save_IFS=$IFS; IFS='-'
2026 set x $ac_cv_build
2027 shift
2028 build_cpu=$1
2029 build_vendor=$2
2030 shift; shift
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2033 build_os=$*
2034 IFS=$ac_save_IFS
2035 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2036
2037
2038 { echo "$as_me:$LINENO: checking host system type" >&5
2039 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2040 if test "${ac_cv_host+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   if test "x$host_alias" = x; then
2044   ac_cv_host=$ac_cv_build
2045 else
2046   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2047     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2049    { (exit 1); exit 1; }; }
2050 fi
2051
2052 fi
2053 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054 echo "${ECHO_T}$ac_cv_host" >&6; }
2055 case $ac_cv_host in
2056 *-*-*) ;;
2057 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058 echo "$as_me: error: invalid value of canonical host" >&2;}
2059    { (exit 1); exit 1; }; };;
2060 esac
2061 host=$ac_cv_host
2062 ac_save_IFS=$IFS; IFS='-'
2063 set x $ac_cv_host
2064 shift
2065 host_cpu=$1
2066 host_vendor=$2
2067 shift; shift
2068 # Remember, the first character of IFS is used to create $*,
2069 # except with old shells:
2070 host_os=$*
2071 IFS=$ac_save_IFS
2072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2073
2074
2075 { echo "$as_me:$LINENO: checking target system type" >&5
2076 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2077 if test "${ac_cv_target+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test "x$target_alias" = x; then
2081   ac_cv_target=$ac_cv_host
2082 else
2083   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2084     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2085 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2086    { (exit 1); exit 1; }; }
2087 fi
2088
2089 fi
2090 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2091 echo "${ECHO_T}$ac_cv_target" >&6; }
2092 case $ac_cv_target in
2093 *-*-*) ;;
2094 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2095 echo "$as_me: error: invalid value of canonical target" >&2;}
2096    { (exit 1); exit 1; }; };;
2097 esac
2098 target=$ac_cv_target
2099 ac_save_IFS=$IFS; IFS='-'
2100 set x $ac_cv_target
2101 shift
2102 target_cpu=$1
2103 target_vendor=$2
2104 shift; shift
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2107 target_os=$*
2108 IFS=$ac_save_IFS
2109 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2110
2111
2112 # The aliases save the names the user supplied, while $host etc.
2113 # will get canonicalized.
2114 test -n "$target_alias" &&
2115   test "$program_prefix$program_suffix$program_transform_name" = \
2116     NONENONEs,x,x, &&
2117   program_prefix=${target_alias}-
2118
2119 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2120 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2121 if test "${llvm_cv_os_type+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   case $host in
2125   *-*-aix*)
2126     llvm_cv_link_all_option="-Wl,--whole-archive"
2127     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2128     llvm_cv_os_type="AIX"
2129     llvm_cv_platform_type="Unix" ;;
2130   *-*-irix*)
2131     llvm_cv_link_all_option="-Wl,--whole-archive"
2132     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2133     llvm_cv_os_type="IRIX"
2134     llvm_cv_platform_type="Unix" ;;
2135   *-*-cygwin*)
2136     llvm_cv_link_all_option="-Wl,--whole-archive"
2137     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2138     llvm_cv_os_type="Cygwin"
2139     llvm_cv_platform_type="Unix" ;;
2140   *-*-darwin*)
2141     llvm_cv_link_all_option="-Wl,-all_load"
2142     llvm_cv_no_link_all_option="-Wl,-noall_load"
2143     llvm_cv_os_type="Darwin"
2144     llvm_cv_platform_type="Unix" ;;
2145   *-*-freebsd*)
2146     llvm_cv_link_all_option="-Wl,--whole-archive"
2147     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2148     llvm_cv_os_type="FreeBSD"
2149     llvm_cv_platform_type="Unix" ;;
2150   *-*-openbsd*)
2151     llvm_cv_link_all_option="-Wl,--whole-archive"
2152     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153     llvm_cv_os_type="OpenBSD"
2154     llvm_cv_platform_type="Unix" ;;
2155   *-*-netbsd*)
2156     llvm_cv_link_all_option="-Wl,--whole-archive"
2157     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158     llvm_cv_os_type="NetBSD"
2159     llvm_cv_platform_type="Unix" ;;
2160   *-*-dragonfly*)
2161     llvm_cv_link_all_option="-Wl,--whole-archive"
2162     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163     llvm_cv_os_type="DragonFly"
2164     llvm_cv_platform_type="Unix" ;;
2165   *-*-hpux*)
2166     llvm_cv_link_all_option="-Wl,--whole-archive"
2167     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2168     llvm_cv_os_type="HP-UX"
2169     llvm_cv_platform_type="Unix" ;;
2170   *-*-interix*)
2171     llvm_cv_link_all_option="-Wl,--whole-archive"
2172     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2173     llvm_cv_os_type="Interix"
2174     llvm_cv_platform_type="Unix" ;;
2175   *-*-linux*)
2176     llvm_cv_link_all_option="-Wl,--whole-archive"
2177     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2178     llvm_cv_os_type="Linux"
2179     llvm_cv_platform_type="Unix" ;;
2180   *-*-solaris*)
2181     llvm_cv_link_all_option="-Wl,-z,allextract"
2182     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2183     llvm_cv_os_type="SunOS"
2184     llvm_cv_platform_type="Unix" ;;
2185   *-*-auroraux*)
2186     llvm_cv_link_all_option="-Wl,-z,allextract"
2187     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2188     llvm_cv_os_type="AuroraUX"
2189     llvm_cv_platform_type="Unix" ;;
2190   *-*-win32*)
2191     llvm_cv_link_all_option="-Wl,--whole-archive"
2192     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193     llvm_cv_os_type="Win32"
2194     llvm_cv_platform_type="Win32" ;;
2195   *-*-mingw*)
2196     llvm_cv_link_all_option="-Wl,--whole-archive"
2197     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198     llvm_cv_os_type="MingW"
2199     llvm_cv_platform_type="Win32" ;;
2200   *-*-haiku*)
2201     llvm_cv_link_all_option="-Wl,--whole-archive"
2202     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203     llvm_cv_os_type="Haiku"
2204     llvm_cv_platform_type="Unix" ;;
2205   *-unknown-eabi*)
2206     llvm_cv_link_all_option="-Wl,--whole-archive"
2207     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208     llvm_cv_os_type="Freestanding"
2209     llvm_cv_platform_type="Unix" ;;
2210   *-unknown-elf*)
2211     llvm_cv_link_all_option="-Wl,--whole-archive"
2212     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2213     llvm_cv_os_type="Freestanding"
2214     llvm_cv_platform_type="Unix" ;;
2215   *)
2216     llvm_cv_link_all_option=""
2217     llvm_cv_no_link_all_option=""
2218     llvm_cv_os_type="Unknown"
2219     llvm_cv_platform_type="Unknown" ;;
2220 esac
2221 fi
2222 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2223 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2224
2225 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2226 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2227 if test "${llvm_cv_target_os_type+set}" = set; then
2228   echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230   case $target in
2231   *-*-aix*)
2232     llvm_cv_target_os_type="AIX" ;;
2233   *-*-irix*)
2234     llvm_cv_target_os_type="IRIX" ;;
2235   *-*-cygwin*)
2236     llvm_cv_target_os_type="Cygwin" ;;
2237   *-*-darwin*)
2238     llvm_cv_target_os_type="Darwin" ;;
2239   *-*-freebsd*)
2240     llvm_cv_target_os_type="FreeBSD" ;;
2241   *-*-openbsd*)
2242     llvm_cv_target_os_type="OpenBSD" ;;
2243   *-*-netbsd*)
2244     llvm_cv_target_os_type="NetBSD" ;;
2245   *-*-dragonfly*)
2246     llvm_cv_target_os_type="DragonFly" ;;
2247   *-*-hpux*)
2248     llvm_cv_target_os_type="HP-UX" ;;
2249   *-*-interix*)
2250     llvm_cv_target_os_type="Interix" ;;
2251   *-*-linux*)
2252     llvm_cv_target_os_type="Linux" ;;
2253   *-*-solaris*)
2254     llvm_cv_target_os_type="SunOS" ;;
2255   *-*-auroraux*)
2256     llvm_cv_target_os_type="AuroraUX" ;;
2257   *-*-win32*)
2258     llvm_cv_target_os_type="Win32" ;;
2259   *-*-mingw*)
2260     llvm_cv_target_os_type="MingW" ;;
2261   *-*-haiku*)
2262     llvm_cv_target_os_type="Haiku" ;;
2263   *-unknown-eabi*)
2264     llvm_cv_target_os_type="Freestanding" ;;
2265   *)
2266     llvm_cv_target_os_type="Unknown" ;;
2267 esac
2268 fi
2269 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2270 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2271
2272 if test "$llvm_cv_os_type" = "Unknown" ; then
2273   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2274 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2275    { (exit 1); exit 1; }; }
2276 fi
2277
2278 OS=$llvm_cv_os_type
2279
2280 HOST_OS=$llvm_cv_os_type
2281
2282 TARGET_OS=$llvm_cv_target_os_type
2283
2284
2285 LINKALL=$llvm_cv_link_all_option
2286
2287 NOLINKALL=$llvm_cv_no_link_all_option
2288
2289
2290 case $llvm_cv_platform_type in
2291   Unix)
2292
2293 cat >>confdefs.h <<\_ACEOF
2294 #define LLVM_ON_UNIX 1
2295 _ACEOF
2296
2297     LLVM_ON_UNIX=1
2298
2299     LLVM_ON_WIN32=0
2300
2301     ;;
2302   Win32)
2303
2304 cat >>confdefs.h <<\_ACEOF
2305 #define LLVM_ON_WIN32 1
2306 _ACEOF
2307
2308     LLVM_ON_UNIX=0
2309
2310     LLVM_ON_WIN32=1
2311
2312     ;;
2313 esac
2314
2315 { echo "$as_me:$LINENO: checking target architecture" >&5
2316 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2317 if test "${llvm_cv_target_arch+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320   case $target in
2321   i?86-*)                 llvm_cv_target_arch="x86" ;;
2322   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2323   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2324   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2325   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2326   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2327   mips-*)                 llvm_cv_target_arch="Mips" ;;
2328   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2329   xcore-*)                llvm_cv_target_arch="XCore" ;;
2330   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2331   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2332   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2333   *)                      llvm_cv_target_arch="Unknown" ;;
2334 esac
2335 fi
2336 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2337 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2338
2339 if test "$llvm_cv_target_arch" = "Unknown" ; then
2340   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2341 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2342 fi
2343
2344 # Determine the LLVM native architecture for the target
2345 case "$llvm_cv_target_arch" in
2346     x86)     LLVM_NATIVE_ARCH="X86" ;;
2347     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2348     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2349 esac
2350
2351 ARCH=$llvm_cv_target_arch
2352
2353
2354 ac_ext=c
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_CC+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   if test -n "$CC"; then
2368   ac_cv_prog_CC="$CC" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375   for ac_exec_ext in '' $ac_executable_extensions; do
2376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2377     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379     break 2
2380   fi
2381 done
2382 done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 CC=$ac_cv_prog_CC
2388 if test -n "$CC"; then
2389   { echo "$as_me:$LINENO: result: $CC" >&5
2390 echo "${ECHO_T}$CC" >&6; }
2391 else
2392   { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2394 fi
2395
2396
2397 fi
2398 if test -z "$ac_cv_prog_CC"; then
2399   ac_ct_CC=$CC
2400   # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   if test -n "$ac_ct_CC"; then
2408   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2417     ac_cv_prog_ac_ct_CC="gcc"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423 IFS=$as_save_IFS
2424
2425 fi
2426 fi
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6; }
2431 else
2432   { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2434 fi
2435
2436   if test "x$ac_ct_CC" = x; then
2437     CC=""
2438   else
2439     case $cross_compiling:$ac_tool_warned in
2440 yes:)
2441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet.  If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&5
2444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet.  If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2447 ac_tool_warned=yes ;;
2448 esac
2449     CC=$ac_ct_CC
2450   fi
2451 else
2452   CC="$ac_cv_prog_CC"
2453 fi
2454
2455 if test -z "$CC"; then
2456           if test -n "$ac_tool_prefix"; then
2457     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$CC"; then
2465   ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_CC="${ac_tool_prefix}cc"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 CC=$ac_cv_prog_CC
2485 if test -n "$CC"; then
2486   { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493
2494   fi
2495 fi
2496 if test -z "$CC"; then
2497   # Extract the first word of "cc", so it can be a program name with args.
2498 set dummy cc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   if test -n "$CC"; then
2505   ac_cv_prog_CC="$CC" # Let the user override the test.
2506 else
2507   ac_prog_rejected=no
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513   for ac_exec_ext in '' $ac_executable_extensions; do
2514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2515     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516        ac_prog_rejected=yes
2517        continue
2518      fi
2519     ac_cv_prog_CC="cc"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 if test $ac_prog_rejected = yes; then
2528   # We found a bogon in the path, so make sure we never use it.
2529   set dummy $ac_cv_prog_CC
2530   shift
2531   if test $# != 0; then
2532     # We chose a different compiler from the bogus one.
2533     # However, it has the same basename, so the bogon will be chosen
2534     # first if we set CC to just the basename; use the full file name.
2535     shift
2536     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2537   fi
2538 fi
2539 fi
2540 fi
2541 CC=$ac_cv_prog_CC
2542 if test -n "$CC"; then
2543   { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2545 else
2546   { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2548 fi
2549
2550
2551 fi
2552 if test -z "$CC"; then
2553   if test -n "$ac_tool_prefix"; then
2554   for ac_prog in cl.exe
2555   do
2556     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_CC+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   if test -n "$CC"; then
2564   ac_cv_prog_CC="$CC" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569   IFS=$as_save_IFS
2570   test -z "$as_dir" && as_dir=.
2571   for ac_exec_ext in '' $ac_executable_extensions; do
2572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2573     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575     break 2
2576   fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 fi
2582 fi
2583 CC=$ac_cv_prog_CC
2584 if test -n "$CC"; then
2585   { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2587 else
2588   { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2590 fi
2591
2592
2593     test -n "$CC" && break
2594   done
2595 fi
2596 if test -z "$CC"; then
2597   ac_ct_CC=$CC
2598   for ac_prog in cl.exe
2599 do
2600   # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if test -n "$ac_ct_CC"; then
2608   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615   for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_ac_ct_CC="$ac_prog"
2618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628 if test -n "$ac_ct_CC"; then
2629   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2630 echo "${ECHO_T}$ac_ct_CC" >&6; }
2631 else
2632   { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2634 fi
2635
2636
2637   test -n "$ac_ct_CC" && break
2638 done
2639
2640   if test "x$ac_ct_CC" = x; then
2641     CC=""
2642   else
2643     case $cross_compiling:$ac_tool_warned in
2644 yes:)
2645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet.  If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&5
2648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet.  If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651 ac_tool_warned=yes ;;
2652 esac
2653     CC=$ac_ct_CC
2654   fi
2655 fi
2656
2657 fi
2658
2659
2660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&2;}
2664    { (exit 1); exit 1; }; }
2665
2666 # Provide some information about the compiler.
2667 echo "$as_me:$LINENO: checking for C compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (ac_try="$ac_compiler --version >&5"
2670 case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675   (eval "$ac_compiler --version >&5") 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }
2679 { (ac_try="$ac_compiler -v >&5"
2680 case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685   (eval "$ac_compiler -v >&5") 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }
2689 { (ac_try="$ac_compiler -V >&5"
2690 case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_compiler -V >&5") 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }
2699
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706
2707 int
2708 main ()
2709 {
2710
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 ac_clean_files_save=$ac_clean_files
2716 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2717 # Try to create an executable without -o first, disregard a.out.
2718 # It will help us diagnose broken compilers, and finding out an intuition
2719 # of exeext.
2720 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2721 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2722 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2723 #
2724 # List of possible output files, starting from the most likely.
2725 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2726 # only as a last resort.  b.out is created by i960 compilers.
2727 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2728 #
2729 # The IRIX 6 linker writes into existing files which may not be
2730 # executable, retaining their permissions.  Remove them first so a
2731 # subsequent execution test works.
2732 ac_rmfiles=
2733 for ac_file in $ac_files
2734 do
2735   case $ac_file in
2736     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738   esac
2739 done
2740 rm -f $ac_rmfiles
2741
2742 if { (ac_try="$ac_link_default"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_link_default") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; then
2752   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2755 # so that the user can short-circuit this test for compilers unknown to
2756 # Autoconf.
2757 for ac_file in $ac_files
2758 do
2759   test -f "$ac_file" || continue
2760   case $ac_file in
2761     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2762         ;;
2763     [ab].out )
2764         # We found the default executable, but exeext='' is most
2765         # certainly right.
2766         break;;
2767     *.* )
2768         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769         then :; else
2770            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771         fi
2772         # We set ac_cv_exeext here because the later test for it is not
2773         # safe: cross compilers may not add the suffix if given an `-o'
2774         # argument, so we may need to know it at that point already.
2775         # Even if this section looks crufty: it has the advantage of
2776         # actually working.
2777         break;;
2778     * )
2779         break;;
2780   esac
2781 done
2782 test "$ac_cv_exeext" = no && ac_cv_exeext=
2783
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&2;}
2792    { (exit 77); exit 77; }; }
2793 fi
2794
2795 ac_exeext=$ac_cv_exeext
2796 { echo "$as_me:$LINENO: result: $ac_file" >&5
2797 echo "${ECHO_T}$ac_file" >&6; }
2798
2799 # Check that the compiler produces executables we can run.  If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806   if { ac_try='./$ac_file'
2807   { (case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812   (eval "$ac_try") 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816     cross_compiling=no
2817   else
2818     if test "$cross_compiling" = maybe; then
2819         cross_compiling=yes
2820     else
2821         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827    { (exit 1); exit 1; }; }
2828     fi
2829   fi
2830 fi
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2833
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2842
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_link") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; then
2855   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2858 # `rm'.
2859 for ac_file in conftest.exe conftest conftest.*; do
2860   test -f "$ac_file" || continue
2861   case $ac_file in
2862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864           break;;
2865     * ) break;;
2866   esac
2867 done
2868 else
2869   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873    { (exit 1); exit 1; }; }
2874 fi
2875
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2879
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2882 ac_exeext=$EXEEXT
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886   echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888   cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894
2895 int
2896 main ()
2897 {
2898
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2905 case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_compile") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; then
2914   for ac_file in conftest.o conftest.obj conftest.*; do
2915   test -f "$ac_file" || continue;
2916   case $ac_file in
2917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919        break;;
2920   esac
2921 done
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930    { (exit 1); exit 1; }; }
2931 fi
2932
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934 fi
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2938 ac_objext=$OBJEXT
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h.  */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h.  */
2950
2951 int
2952 main ()
2953 {
2954 #ifndef __GNUC__
2955        choke me
2956 #endif
2957
2958   ;
2959   return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_compile") 2>conftest.er1
2970   ac_status=$?
2971   grep -v '^ *+' conftest.er1 >conftest.err
2972   rm -f conftest.er1
2973   cat conftest.err >&5
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); } &&
2976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2977   { (case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_try") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; } &&
2986          { ac_try='test -s conftest.$ac_objext'
2987   { (case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_try") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }; }; then
2996   ac_compiler_gnu=yes
2997 else
2998   echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001         ac_compiler_gnu=no
3002 fi
3003
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3006
3007 fi
3008 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3009 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3010 GCC=`test $ac_compiler_gnu = yes && echo yes`
3011 ac_test_CFLAGS=${CFLAGS+set}
3012 ac_save_CFLAGS=$CFLAGS
3013 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3014 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_cc_g+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   ac_save_c_werror_flag=$ac_c_werror_flag
3019    ac_c_werror_flag=yes
3020    ac_cv_prog_cc_g=no
3021    CFLAGS="-g"
3022    cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032
3033   ;
3034   return 0;
3035 }
3036 _ACEOF
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3039 case "(($ac_try" in
3040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041   *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044   (eval "$ac_compile") 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } &&
3051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052   { (case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_try") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; } &&
3061          { ac_try='test -s conftest.$ac_objext'
3062   { (case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_try") 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; }; then
3071   ac_cv_prog_cc_g=yes
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076         CFLAGS=""
3077       cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_compile") 2>conftest.er1
3100   ac_status=$?
3101   grep -v '^ *+' conftest.er1 >conftest.err
3102   rm -f conftest.er1
3103   cat conftest.err >&5
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } &&
3106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107   { (case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_try") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; } &&
3116          { ac_try='test -s conftest.$ac_objext'
3117   { (case "(($ac_try" in
3118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119   *) ac_try_echo=$ac_try;;
3120 esac
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122   (eval "$ac_try") 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; }; then
3126   :
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131         ac_c_werror_flag=$ac_save_c_werror_flag
3132          CFLAGS="-g"
3133          cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h.  */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h.  */
3139
3140 int
3141 main ()
3142 {
3143
3144   ;
3145   return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3150 case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_compile") 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; } &&
3172          { ac_try='test -s conftest.$ac_objext'
3173   { (case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_try") 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182   ac_cv_prog_cc_g=yes
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
3188 fi
3189
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 fi
3192
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 fi
3195
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197    ac_c_werror_flag=$ac_save_c_werror_flag
3198 fi
3199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3200 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3201 if test "$ac_test_CFLAGS" = set; then
3202   CFLAGS=$ac_save_CFLAGS
3203 elif test $ac_cv_prog_cc_g = yes; then
3204   if test "$GCC" = yes; then
3205     CFLAGS="-g -O2"
3206   else
3207     CFLAGS="-g"
3208   fi
3209 else
3210   if test "$GCC" = yes; then
3211     CFLAGS="-O2"
3212   else
3213     CFLAGS=
3214   fi
3215 fi
3216 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3217 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3218 if test "${ac_cv_prog_cc_c89+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   ac_cv_prog_cc_c89=no
3222 ac_save_CC=$CC
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h.  */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h.  */
3229 #include <stdarg.h>
3230 #include <stdio.h>
3231 #include <sys/types.h>
3232 #include <sys/stat.h>
3233 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3234 struct buf { int x; };
3235 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236 static char *e (p, i)
3237      char **p;
3238      int i;
3239 {
3240   return p[i];
3241 }
3242 static char *f (char * (*g) (char **, int), char **p, ...)
3243 {
3244   char *s;
3245   va_list v;
3246   va_start (v,p);
3247   s = g (p, va_arg (v,int));
3248   va_end (v);
3249   return s;
3250 }
3251
3252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3253    function prototypes and stuff, but not '\xHH' hex character constants.
3254    These don't provoke an error unfortunately, instead are silently treated
3255    as 'x'.  The following induces an error, until -std is added to get
3256    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3257    array size at least.  It's necessary to write '\x00'==0 to get something
3258    that's true only with -std.  */
3259 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260
3261 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262    inside strings and character constants.  */
3263 #define FOO(x) 'x'
3264 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265
3266 int test (int i, double x);
3267 struct s1 {int (*f) (int a);};
3268 struct s2 {int (*f) (double a);};
3269 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3270 int argc;
3271 char **argv;
3272 int
3273 main ()
3274 {
3275 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3276   ;
3277   return 0;
3278 }
3279 _ACEOF
3280 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282 do
3283   CC="$ac_save_CC $ac_arg"
3284   rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3286 case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_compile") 2>conftest.er1
3292   ac_status=$?
3293   grep -v '^ *+' conftest.er1 >conftest.err
3294   rm -f conftest.er1
3295   cat conftest.err >&5
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } &&
3298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299   { (case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304   (eval "$ac_try") 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; } &&
3308          { ac_try='test -s conftest.$ac_objext'
3309   { (case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_try") 2>&5
3315   ac_status=$?
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); }; }; then
3318   ac_cv_prog_cc_c89=$ac_arg
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
3324 fi
3325
3326 rm -f core conftest.err conftest.$ac_objext
3327   test "x$ac_cv_prog_cc_c89" != "xno" && break
3328 done
3329 rm -f conftest.$ac_ext
3330 CC=$ac_save_CC
3331
3332 fi
3333 # AC_CACHE_VAL
3334 case "x$ac_cv_prog_cc_c89" in
3335   x)
3336     { echo "$as_me:$LINENO: result: none needed" >&5
3337 echo "${ECHO_T}none needed" >&6; } ;;
3338   xno)
3339     { echo "$as_me:$LINENO: result: unsupported" >&5
3340 echo "${ECHO_T}unsupported" >&6; } ;;
3341   *)
3342     CC="$CC $ac_cv_prog_cc_c89"
3343     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3345 esac
3346
3347
3348 ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353
3354
3355 ac_ext=c
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3361 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3362 # On Suns, sometimes $CPP names a directory.
3363 if test -n "$CPP" && test -d "$CPP"; then
3364   CPP=
3365 fi
3366 if test -z "$CPP"; then
3367   if test "${ac_cv_prog_CPP+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370       # Double quotes because CPP needs to be expanded
3371     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3372     do
3373       ac_preproc_ok=false
3374 for ac_c_preproc_warn_flag in '' yes
3375 do
3376   # Use a header file that comes with gcc, so configuring glibc
3377   # with a fresh cross-compiler works.
3378   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379   # <limits.h> exists even on freestanding compilers.
3380   # On the NeXT, cc -E runs the code through the compiler's parser,
3381   # not just through cpp. "Syntax error" is here to catch this case.
3382   cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388 #ifdef __STDC__
3389 # include <limits.h>
3390 #else
3391 # include <assert.h>
3392 #endif
3393                      Syntax error
3394 _ACEOF
3395 if { (ac_try="$ac_cpp conftest.$ac_ext"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } >/dev/null; then
3408   if test -s conftest.err; then
3409     ac_cpp_err=$ac_c_preproc_warn_flag
3410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411   else
3412     ac_cpp_err=
3413   fi
3414 else
3415   ac_cpp_err=yes
3416 fi
3417 if test -z "$ac_cpp_err"; then
3418   :
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423   # Broken: fails on valid input.
3424 continue
3425 fi
3426
3427 rm -f conftest.err conftest.$ac_ext
3428
3429   # OK, works on sane cases.  Now check whether nonexistent headers
3430   # can be detected and how.
3431   cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h.  */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h.  */
3437 #include <ac_nonexistent.h>
3438 _ACEOF
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } >/dev/null; then
3452   if test -s conftest.err; then
3453     ac_cpp_err=$ac_c_preproc_warn_flag
3454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455   else
3456     ac_cpp_err=
3457   fi
3458 else
3459   ac_cpp_err=yes
3460 fi
3461 if test -z "$ac_cpp_err"; then
3462   # Broken: success on invalid input.
3463 continue
3464 else
3465   echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468   # Passes both tests.
3469 ac_preproc_ok=:
3470 break
3471 fi
3472
3473 rm -f conftest.err conftest.$ac_ext
3474
3475 done
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3479   break
3480 fi
3481
3482     done
3483     ac_cv_prog_CPP=$CPP
3484
3485 fi
3486   CPP=$ac_cv_prog_CPP
3487 else
3488   ac_cv_prog_CPP=$CPP
3489 fi
3490 { echo "$as_me:$LINENO: result: $CPP" >&5
3491 echo "${ECHO_T}$CPP" >&6; }
3492 ac_preproc_ok=false
3493 for ac_c_preproc_warn_flag in '' yes
3494 do
3495   # Use a header file that comes with gcc, so configuring glibc
3496   # with a fresh cross-compiler works.
3497   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498   # <limits.h> exists even on freestanding compilers.
3499   # On the NeXT, cc -E runs the code through the compiler's parser,
3500   # not just through cpp. "Syntax error" is here to catch this case.
3501   cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h.  */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h.  */
3507 #ifdef __STDC__
3508 # include <limits.h>
3509 #else
3510 # include <assert.h>
3511 #endif
3512                      Syntax error
3513 _ACEOF
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } >/dev/null; then
3527   if test -s conftest.err; then
3528     ac_cpp_err=$ac_c_preproc_warn_flag
3529     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530   else
3531     ac_cpp_err=
3532   fi
3533 else
3534   ac_cpp_err=yes
3535 fi
3536 if test -z "$ac_cpp_err"; then
3537   :
3538 else
3539   echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542   # Broken: fails on valid input.
3543 continue
3544 fi
3545
3546 rm -f conftest.err conftest.$ac_ext
3547
3548   # OK, works on sane cases.  Now check whether nonexistent headers
3549   # can be detected and how.
3550   cat >conftest.$ac_ext <<_ACEOF
3551 /* confdefs.h.  */
3552 _ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h.  */
3556 #include <ac_nonexistent.h>
3557 _ACEOF
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } >/dev/null; then
3571   if test -s conftest.err; then
3572     ac_cpp_err=$ac_c_preproc_warn_flag
3573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574   else
3575     ac_cpp_err=
3576   fi
3577 else
3578   ac_cpp_err=yes
3579 fi
3580 if test -z "$ac_cpp_err"; then
3581   # Broken: success on invalid input.
3582 continue
3583 else
3584   echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3586
3587   # Passes both tests.
3588 ac_preproc_ok=:
3589 break
3590 fi
3591
3592 rm -f conftest.err conftest.$ac_ext
3593
3594 done
3595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3596 rm -f conftest.err conftest.$ac_ext
3597 if $ac_preproc_ok; then
3598   :
3599 else
3600   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3601 See \`config.log' for more details." >&5
3602 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&2;}
3604    { (exit 1); exit 1; }; }
3605 fi
3606
3607 ac_ext=c
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
3613
3614 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3615 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3616 if test "${ac_cv_path_GREP+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   # Extract the first word of "grep ggrep" to use in msg output
3620 if test -z "$GREP"; then
3621 set dummy grep ggrep; ac_prog_name=$2
3622 if test "${ac_cv_path_GREP+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   ac_path_GREP_found=false
3626 # Loop through the user's path and test for each of PROGNAME-LIST
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632   for ac_prog in grep ggrep; do
3633   for ac_exec_ext in '' $ac_executable_extensions; do
3634     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3635     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3636     # Check for GNU ac_path_GREP and select it if it is found.
3637   # Check for GNU $ac_path_GREP
3638 case `"$ac_path_GREP" --version 2>&1` in
3639 *GNU*)
3640   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3641 *)
3642   ac_count=0
3643   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3644   while :
3645   do
3646     cat "conftest.in" "conftest.in" >"conftest.tmp"
3647     mv "conftest.tmp" "conftest.in"
3648     cp "conftest.in" "conftest.nl"
3649     echo 'GREP' >> "conftest.nl"
3650     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3652     ac_count=`expr $ac_count + 1`
3653     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3654       # Best one so far, save it but keep looking for a better one
3655       ac_cv_path_GREP="$ac_path_GREP"
3656       ac_path_GREP_max=$ac_count
3657     fi
3658     # 10*(2^10) chars as input seems more than enough
3659     test $ac_count -gt 10 && break
3660   done
3661   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662 esac
3663
3664
3665     $ac_path_GREP_found && break 3
3666   done
3667 done
3668
3669 done
3670 IFS=$as_save_IFS
3671
3672
3673 fi
3674
3675 GREP="$ac_cv_path_GREP"
3676 if test -z "$GREP"; then
3677   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3678 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3679    { (exit 1); exit 1; }; }
3680 fi
3681
3682 else
3683   ac_cv_path_GREP=$GREP
3684 fi
3685
3686
3687 fi
3688 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3689 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3690  GREP="$ac_cv_path_GREP"
3691
3692
3693 { echo "$as_me:$LINENO: checking for egrep" >&5
3694 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3695 if test "${ac_cv_path_EGREP+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3699    then ac_cv_path_EGREP="$GREP -E"
3700    else
3701      # Extract the first word of "egrep" to use in msg output
3702 if test -z "$EGREP"; then
3703 set dummy egrep; ac_prog_name=$2
3704 if test "${ac_cv_path_EGREP+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   ac_path_EGREP_found=false
3708 # Loop through the user's path and test for each of PROGNAME-LIST
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711 do
3712   IFS=$as_save_IFS
3713   test -z "$as_dir" && as_dir=.
3714   for ac_prog in egrep; do
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3717     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3718     # Check for GNU ac_path_EGREP and select it if it is found.
3719   # Check for GNU $ac_path_EGREP
3720 case `"$ac_path_EGREP" --version 2>&1` in
3721 *GNU*)
3722   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3723 *)
3724   ac_count=0
3725   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3726   while :
3727   do
3728     cat "conftest.in" "conftest.in" >"conftest.tmp"
3729     mv "conftest.tmp" "conftest.in"
3730     cp "conftest.in" "conftest.nl"
3731     echo 'EGREP' >> "conftest.nl"
3732     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3734     ac_count=`expr $ac_count + 1`
3735     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3736       # Best one so far, save it but keep looking for a better one
3737       ac_cv_path_EGREP="$ac_path_EGREP"
3738       ac_path_EGREP_max=$ac_count
3739     fi
3740     # 10*(2^10) chars as input seems more than enough
3741     test $ac_count -gt 10 && break
3742   done
3743   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744 esac
3745
3746
3747     $ac_path_EGREP_found && break 3
3748   done
3749 done
3750
3751 done
3752 IFS=$as_save_IFS
3753
3754
3755 fi
3756
3757 EGREP="$ac_cv_path_EGREP"
3758 if test -z "$EGREP"; then
3759   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761    { (exit 1); exit 1; }; }
3762 fi
3763
3764 else
3765   ac_cv_path_EGREP=$EGREP
3766 fi
3767
3768
3769    fi
3770 fi
3771 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3772 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3773  EGREP="$ac_cv_path_EGREP"
3774
3775
3776 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3778 if test "${ac_cv_header_stdc+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 #include <stdlib.h>
3788 #include <stdarg.h>
3789 #include <string.h>
3790 #include <float.h>
3791
3792 int
3793 main ()
3794 {
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3802 case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807   (eval "$ac_compile") 2>conftest.er1
3808   ac_status=$?
3809   grep -v '^ *+' conftest.er1 >conftest.err
3810   rm -f conftest.er1
3811   cat conftest.err >&5
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); } &&
3814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3815   { (case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820   (eval "$ac_try") 2>&5
3821   ac_status=$?
3822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); }; } &&
3824          { ac_try='test -s conftest.$ac_objext'
3825   { (case "(($ac_try" in
3826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827   *) ac_try_echo=$ac_try;;
3828 esac
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830   (eval "$ac_try") 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); }; }; then
3834   ac_cv_header_stdc=yes
3835 else
3836   echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839         ac_cv_header_stdc=no
3840 fi
3841
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843
3844 if test $ac_cv_header_stdc = yes; then
3845   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3846   cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h.  */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h.  */
3852 #include <string.h>
3853
3854 _ACEOF
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856   $EGREP "memchr" >/dev/null 2>&1; then
3857   :
3858 else
3859   ac_cv_header_stdc=no
3860 fi
3861 rm -f conftest*
3862
3863 fi
3864
3865 if test $ac_cv_header_stdc = yes; then
3866   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3867   cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h.  */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h.  */
3873 #include <stdlib.h>
3874
3875 _ACEOF
3876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3877   $EGREP "free" >/dev/null 2>&1; then
3878   :
3879 else
3880   ac_cv_header_stdc=no
3881 fi
3882 rm -f conftest*
3883
3884 fi
3885
3886 if test $ac_cv_header_stdc = yes; then
3887   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3888   if test "$cross_compiling" = yes; then
3889   :
3890 else
3891   cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 #include <ctype.h>
3898 #include <stdlib.h>
3899 #if ((' ' & 0x0FF) == 0x020)
3900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3902 #else
3903 # define ISLOWER(c) \
3904                    (('a' <= (c) && (c) <= 'i') \
3905                      || ('j' <= (c) && (c) <= 'r') \
3906                      || ('s' <= (c) && (c) <= 'z'))
3907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3908 #endif
3909
3910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3911 int
3912 main ()
3913 {
3914   int i;
3915   for (i = 0; i < 256; i++)
3916     if (XOR (islower (i), ISLOWER (i))
3917         || toupper (i) != TOUPPER (i))
3918       return 2;
3919   return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest$ac_exeext
3923 if { (ac_try="$ac_link"
3924 case "(($ac_try" in
3925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926   *) ac_try_echo=$ac_try;;
3927 esac
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929   (eval "$ac_link") 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933   { (case "(($ac_try" in
3934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935   *) ac_try_echo=$ac_try;;
3936 esac
3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938   (eval "$ac_try") 2>&5
3939   ac_status=$?
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); }; }; then
3942   :
3943 else
3944   echo "$as_me: program exited with status $ac_status" >&5
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 ( exit $ac_status )
3949 ac_cv_header_stdc=no
3950 fi
3951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3952 fi
3953
3954
3955 fi
3956 fi
3957 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3958 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3959 if test $ac_cv_header_stdc = yes; then
3960
3961 cat >>confdefs.h <<\_ACEOF
3962 #define STDC_HEADERS 1
3963 _ACEOF
3964
3965 fi
3966
3967 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3978                   inttypes.h stdint.h unistd.h
3979 do
3980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h.  */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h.  */
3992 $ac_includes_default
3993
3994 #include <$ac_header>
3995 _ACEOF
3996 rm -f conftest.$ac_objext
3997 if { (ac_try="$ac_compile"
3998 case "(($ac_try" in
3999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000   *) ac_try_echo=$ac_try;;
4001 esac
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003   (eval "$ac_compile") 2>conftest.er1
4004   ac_status=$?
4005   grep -v '^ *+' conftest.er1 >conftest.err
4006   rm -f conftest.er1
4007   cat conftest.err >&5
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); } &&
4010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4011   { (case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016   (eval "$ac_try") 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); }; } &&
4020          { ac_try='test -s conftest.$ac_objext'
4021   { (case "(($ac_try" in
4022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023   *) ac_try_echo=$ac_try;;
4024 esac
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026   (eval "$ac_try") 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }; }; then
4030   eval "$as_ac_Header=yes"
4031 else
4032   echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035         eval "$as_ac_Header=no"
4036 fi
4037
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 fi
4040 ac_res=`eval echo '${'$as_ac_Header'}'`
4041                { echo "$as_me:$LINENO: result: $ac_res" >&5
4042 echo "${ECHO_T}$ac_res" >&6; }
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044   cat >>confdefs.h <<_ACEOF
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4046 _ACEOF
4047
4048 fi
4049
4050 done
4051
4052
4053 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4054 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4055 if test "${ac_cv_c_bigendian+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   # See if sys/param.h defines the BYTE_ORDER macro.
4059 cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065 #include <sys/types.h>
4066 #include <sys/param.h>
4067
4068 int
4069 main ()
4070 {
4071 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4072  bogus endian macros
4073 #endif
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086   (eval "$ac_compile") 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } &&
4093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4094   { (case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099   (eval "$ac_try") 2>&5
4100   ac_status=$?
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); }; } &&
4103          { ac_try='test -s conftest.$ac_objext'
4104   { (case "(($ac_try" in
4105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106   *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109   (eval "$ac_try") 2>&5
4110   ac_status=$?
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); }; }; then
4113   # It does; now see whether it defined to BIG_ENDIAN or not.
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 #include <sys/types.h>
4121 #include <sys/param.h>
4122
4123 int
4124 main ()
4125 {
4126 #if BYTE_ORDER != BIG_ENDIAN
4127  not big endian
4128 #endif
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_compile") 2>conftest.er1
4142   ac_status=$?
4143   grep -v '^ *+' conftest.er1 >conftest.err
4144   rm -f conftest.er1
4145   cat conftest.err >&5
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); } &&
4148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149   { (case "(($ac_try" in
4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151   *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154   (eval "$ac_try") 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); }; } &&
4158          { ac_try='test -s conftest.$ac_objext'
4159   { (case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_try") 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; }; then
4168   ac_cv_c_bigendian=yes
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173         ac_cv_c_bigendian=no
4174 fi
4175
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 else
4178   echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181         # It does not; compile a test program.
4182 if test "$cross_compiling" = yes; then
4183   # try to guess the endianness by grepping values into an object file
4184   ac_cv_c_bigendian=unknown
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4192 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4193 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4194 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4195 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4196 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4197 int
4198 main ()
4199 {
4200  _ascii (); _ebcdic ();
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4207 case "(($ac_try" in
4208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209   *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212   (eval "$ac_compile") 2>conftest.er1
4213   ac_status=$?
4214   grep -v '^ *+' conftest.er1 >conftest.err
4215   rm -f conftest.er1
4216   cat conftest.err >&5
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); } &&
4219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4220   { (case "(($ac_try" in
4221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222   *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225   (eval "$ac_try") 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); }; } &&
4229          { ac_try='test -s conftest.$ac_objext'
4230   { (case "(($ac_try" in
4231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232   *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235   (eval "$ac_try") 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }; }; then
4239   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4240   ac_cv_c_bigendian=yes
4241 fi
4242 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4243   if test "$ac_cv_c_bigendian" = unknown; then
4244     ac_cv_c_bigendian=no
4245   else
4246     # finding both strings is unlikely to happen, but who knows?
4247     ac_cv_c_bigendian=unknown
4248   fi
4249 fi
4250 else
4251   echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254
4255 fi
4256
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 else
4259   cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h.  */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h.  */
4265 $ac_includes_default
4266 int
4267 main ()
4268 {
4269
4270   /* Are we little or big endian?  From Harbison&Steele.  */
4271   union
4272   {
4273     long int l;
4274     char c[sizeof (long int)];
4275   } u;
4276   u.l = 1;
4277   return u.c[sizeof (long int) - 1] == 1;
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest$ac_exeext
4284 if { (ac_try="$ac_link"
4285 case "(($ac_try" in
4286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287   *) ac_try_echo=$ac_try;;
4288 esac
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290   (eval "$ac_link") 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4294   { (case "(($ac_try" in
4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296   *) ac_try_echo=$ac_try;;
4297 esac
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299   (eval "$ac_try") 2>&5
4300   ac_status=$?
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); }; }; then
4303   ac_cv_c_bigendian=no
4304 else
4305   echo "$as_me: program exited with status $ac_status" >&5
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309 ( exit $ac_status )
4310 ac_cv_c_bigendian=yes
4311 fi
4312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4313 fi
4314
4315
4316 fi
4317
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 fi
4320 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4321 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4322 case $ac_cv_c_bigendian in
4323   yes)
4324     ENDIAN=big
4325  ;;
4326   no)
4327     ENDIAN=little
4328  ;;
4329   *)
4330     { { echo "$as_me:$LINENO: error: unknown endianness
4331 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4332 echo "$as_me: error: unknown endianness
4333 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4334    { (exit 1); exit 1; }; } ;;
4335 esac
4336
4337
4338 if test "$cross_compiling" = yes; then
4339   LLVM_CROSS_COMPILING=1
4340
4341
4342 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4343 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4344 if test "${ac_cv_build_exeext+set}" = set; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4348   ac_cv_build_exeext=.exe
4349 else
4350   ac_build_prefix=${build_alias}-
4351
4352   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4353 set dummy ${ac_build_prefix}gcc; ac_word=$2
4354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4356 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   if test -n "$BUILD_CC"; then
4360   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367   for ac_exec_ext in '' $ac_executable_extensions; do
4368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4369     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 BUILD_CC=$ac_cv_prog_BUILD_CC
4380 if test -n "$BUILD_CC"; then
4381   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4382 echo "${ECHO_T}$BUILD_CC" >&6; }
4383 else
4384   { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4386 fi
4387
4388
4389   if test -z "$BUILD_CC"; then
4390      # Extract the first word of "gcc", so it can be a program name with args.
4391 set dummy gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   if test -n "$BUILD_CC"; then
4398   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407     ac_cv_prog_BUILD_CC="gcc"
4408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415 fi
4416 fi
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4421 else
4422   { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4424 fi
4425
4426
4427      if test -z "$BUILD_CC"; then
4428        # Extract the first word of "cc", so it can be a program name with args.
4429 set dummy cc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$BUILD_CC"; then
4436   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438   ac_prog_rejected=no
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444   for ac_exec_ext in '' $ac_executable_extensions; do
4445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4446     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4447        ac_prog_rejected=yes
4448        continue
4449      fi
4450     ac_cv_prog_BUILD_CC="cc"
4451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452     break 2
4453   fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 if test $ac_prog_rejected = yes; then
4459   # We found a bogon in the path, so make sure we never use it.
4460   set dummy $ac_cv_prog_BUILD_CC
4461   shift
4462   if test $# != 0; then
4463     # We chose a different compiler from the bogus one.
4464     # However, it has the same basename, so the bogon will be chosen
4465     # first if we set BUILD_CC to just the basename; use the full file name.
4466     shift
4467     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4468   fi
4469 fi
4470 fi
4471 fi
4472 BUILD_CC=$ac_cv_prog_BUILD_CC
4473 if test -n "$BUILD_CC"; then
4474   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475 echo "${ECHO_T}$BUILD_CC" >&6; }
4476 else
4477   { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4479 fi
4480
4481
4482      fi
4483   fi
4484   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4485 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4486    { (exit 1); exit 1; }; }
4487   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4488   rm -f conftest*
4489   echo 'int main () { return 0; }' > conftest.$ac_ext
4490   ac_cv_build_exeext=
4491   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4492   (eval $ac_build_link) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }; then
4496     for file in conftest.*; do
4497       case $file in
4498       *.c | *.o | *.obj | *.dSYM) ;;
4499       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4500       esac
4501     done
4502   else
4503     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4504 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4505    { (exit 1); exit 1; }; }
4506   fi
4507   rm -f conftest*
4508   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4509 fi
4510 fi
4511
4512 BUILD_EXEEXT=""
4513 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4514 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4515 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4516 ac_build_exeext=$BUILD_EXEEXT
4517
4518   ac_build_prefix=${build_alias}-
4519   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4520 set dummy ${ac_build_prefix}g++; ac_word=$2
4521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4523 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4524   echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526   if test -n "$BUILD_CXX"; then
4527   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534   for ac_exec_ext in '' $ac_executable_extensions; do
4535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4536     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544 fi
4545 fi
4546 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4547 if test -n "$BUILD_CXX"; then
4548   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4549 echo "${ECHO_T}$BUILD_CXX" >&6; }
4550 else
4551   { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4553 fi
4554
4555
4556   if test -z "$BUILD_CXX"; then
4557      # Extract the first word of "g++", so it can be a program name with args.
4558 set dummy g++; ac_word=$2
4559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4561 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   if test -n "$BUILD_CXX"; then
4565   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572   for ac_exec_ext in '' $ac_executable_extensions; do
4573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4574     ac_cv_prog_BUILD_CXX="g++"
4575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576     break 2
4577   fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4581
4582 fi
4583 fi
4584 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4585 if test -n "$BUILD_CXX"; then
4586   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4587 echo "${ECHO_T}$BUILD_CXX" >&6; }
4588 else
4589   { echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6; }
4591 fi
4592
4593
4594      if test -z "$BUILD_CXX"; then
4595        # Extract the first word of "c++", so it can be a program name with args.
4596 set dummy c++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600   echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602   if test -n "$BUILD_CXX"; then
4603   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 else
4605   ac_prog_rejected=no
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611   for ac_exec_ext in '' $ac_executable_extensions; do
4612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4613     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4614        ac_prog_rejected=yes
4615        continue
4616      fi
4617     ac_cv_prog_BUILD_CXX="c++"
4618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619     break 2
4620   fi
4621 done
4622 done
4623 IFS=$as_save_IFS
4624
4625 if test $ac_prog_rejected = yes; then
4626   # We found a bogon in the path, so make sure we never use it.
4627   set dummy $ac_cv_prog_BUILD_CXX
4628   shift
4629   if test $# != 0; then
4630     # We chose a different compiler from the bogus one.
4631     # However, it has the same basename, so the bogon will be chosen
4632     # first if we set BUILD_CXX to just the basename; use the full file name.
4633     shift
4634     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4635   fi
4636 fi
4637 fi
4638 fi
4639 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4640 if test -n "$BUILD_CXX"; then
4641   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4642 echo "${ECHO_T}$BUILD_CXX" >&6; }
4643 else
4644   { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4646 fi
4647
4648
4649      fi
4650   fi
4651 else
4652   LLVM_CROSS_COMPILING=0
4653
4654 fi
4655
4656 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4657   cvsbuild="yes"
4658   optimize="no"
4659   CVSBUILD=CVSBUILD=1
4660
4661 else
4662   cvsbuild="no"
4663   optimize="yes"
4664 fi
4665
4666
4667 # Check whether --enable-optimized was given.
4668 if test "${enable_optimized+set}" = set; then
4669   enableval=$enable_optimized;
4670 else
4671   enableval=$optimize
4672 fi
4673
4674 if test ${enableval} = "no" ; then
4675   ENABLE_OPTIMIZED=
4676
4677 else
4678   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4679
4680 fi
4681
4682 # Check whether --enable-profiling was given.
4683 if test "${enable_profiling+set}" = set; then
4684   enableval=$enable_profiling;
4685 else
4686   enableval="no"
4687 fi
4688
4689 if test ${enableval} = "no" ; then
4690   ENABLE_PROFILING=
4691
4692 else
4693   ENABLE_PROFILING=ENABLE_PROFILING=1
4694
4695 fi
4696
4697 # Check whether --enable-assertions was given.
4698 if test "${enable_assertions+set}" = set; then
4699   enableval=$enable_assertions;
4700 else
4701   enableval="yes"
4702 fi
4703
4704 if test ${enableval} = "yes" ; then
4705   DISABLE_ASSERTIONS=
4706
4707 else
4708   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4709
4710 fi
4711
4712 # Check whether --enable-expensive-checks was given.
4713 if test "${enable_expensive_checks+set}" = set; then
4714   enableval=$enable_expensive_checks;
4715 else
4716   enableval="no"
4717 fi
4718
4719 if test ${enableval} = "yes" ; then
4720   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4721
4722   EXPENSIVE_CHECKS=yes
4723
4724 else
4725   ENABLE_EXPENSIVE_CHECKS=
4726
4727   EXPENSIVE_CHECKS=no
4728
4729 fi
4730
4731 # Check whether --enable-debug-runtime was given.
4732 if test "${enable_debug_runtime+set}" = set; then
4733   enableval=$enable_debug_runtime;
4734 else
4735   enableval=no
4736 fi
4737
4738 if test ${enableval} = "no" ; then
4739   DEBUG_RUNTIME=
4740
4741 else
4742   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4743
4744 fi
4745
4746 # Check whether --enable-debug-symbols was given.
4747 if test "${enable_debug_symbols+set}" = set; then
4748   enableval=$enable_debug_symbols;
4749 else
4750   enableval=no
4751 fi
4752
4753 if test ${enableval} = "no" ; then
4754   DEBUG_SYMBOLS=
4755
4756 else
4757   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4758
4759 fi
4760
4761 # Check whether --enable-jit was given.
4762 if test "${enable_jit+set}" = set; then
4763   enableval=$enable_jit;
4764 else
4765   enableval=default
4766 fi
4767
4768 if test ${enableval} = "no"
4769 then
4770   JIT=
4771
4772 else
4773   case "$llvm_cv_target_arch" in
4774     x86)         TARGET_HAS_JIT=1
4775  ;;
4776     Sparc)       TARGET_HAS_JIT=0
4777  ;;
4778     PowerPC)     TARGET_HAS_JIT=1
4779  ;;
4780     x86_64)      TARGET_HAS_JIT=1
4781  ;;
4782     Alpha)       TARGET_HAS_JIT=1
4783  ;;
4784     ARM)         TARGET_HAS_JIT=1
4785  ;;
4786     Mips)        TARGET_HAS_JIT=0
4787  ;;
4788     PIC16)       TARGET_HAS_JIT=0
4789  ;;
4790     XCore)       TARGET_HAS_JIT=0
4791  ;;
4792     MSP430)      TARGET_HAS_JIT=0
4793  ;;
4794     SystemZ)     TARGET_HAS_JIT=0
4795  ;;
4796     Blackfin)    TARGET_HAS_JIT=0
4797  ;;
4798     *)           TARGET_HAS_JIT=0
4799  ;;
4800   esac
4801 fi
4802
4803 # Check whether --enable-doxygen was given.
4804 if test "${enable_doxygen+set}" = set; then
4805   enableval=$enable_doxygen;
4806 else
4807   enableval=default
4808 fi
4809
4810 case "$enableval" in
4811   yes) ENABLE_DOXYGEN=1
4812  ;;
4813   no)  ENABLE_DOXYGEN=0
4814  ;;
4815   default) ENABLE_DOXYGEN=0
4816  ;;
4817   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4818 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4819    { (exit 1); exit 1; }; } ;;
4820 esac
4821
4822 # Check whether --enable-threads was given.
4823 if test "${enable_threads+set}" = set; then
4824   enableval=$enable_threads;
4825 else
4826   enableval=default
4827 fi
4828
4829 case "$enableval" in
4830   yes) ENABLE_THREADS=1
4831  ;;
4832   no)  ENABLE_THREADS=0
4833  ;;
4834   default) ENABLE_THREADS=1
4835  ;;
4836   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4837 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4838    { (exit 1); exit 1; }; } ;;
4839 esac
4840
4841 cat >>confdefs.h <<_ACEOF
4842 #define ENABLE_THREADS $ENABLE_THREADS
4843 _ACEOF
4844
4845
4846 # Check whether --enable-pic was given.
4847 if test "${enable_pic+set}" = set; then
4848   enableval=$enable_pic;
4849 else
4850   enableval=default
4851 fi
4852
4853 case "$enableval" in
4854   yes) ENABLE_PIC=1
4855  ;;
4856   no)  ENABLE_PIC=0
4857  ;;
4858   default) ENABLE_PIC=1
4859  ;;
4860   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4861 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4862    { (exit 1); exit 1; }; } ;;
4863 esac
4864
4865 cat >>confdefs.h <<_ACEOF
4866 #define ENABLE_PIC $ENABLE_PIC
4867 _ACEOF
4868
4869
4870 # Check whether --enable-shared was given.
4871 if test "${enable_shared+set}" = set; then
4872   enableval=$enable_shared;
4873 else
4874   enableval=default
4875 fi
4876
4877 case "$enableval" in
4878   yes) ENABLE_SHARED=1
4879  ;;
4880   no)  ENABLE_SHARED=0
4881  ;;
4882   default) ENABLE_SHARED=0
4883  ;;
4884   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4885 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4886    { (exit 1); exit 1; }; } ;;
4887 esac
4888
4889 TARGETS_TO_BUILD=""
4890 # Check whether --enable-targets was given.
4891 if test "${enable_targets+set}" = set; then
4892   enableval=$enable_targets;
4893 else
4894   enableval=all
4895 fi
4896
4897 if test "$enableval" = host-only ; then
4898   enableval=host
4899 fi
4900 case "$enableval" in
4901   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4902   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4903       case "$a_target" in
4904         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4905         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4906         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4907         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4908         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4909         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4910         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4911         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4912         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4913         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4914         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4915         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4916         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4917         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4918         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4919         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4920         host) case "$llvm_cv_target_arch" in
4921             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4922             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4923             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4924             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4925             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4926             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4927             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4928             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4929             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4930             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4931             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4932             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4933             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4934             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4935 echo "$as_me: error: Can not set target to build" >&2;}
4936    { (exit 1); exit 1; }; } ;;
4937           esac ;;
4938         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4939 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4940    { (exit 1); exit 1; }; } ;;
4941       esac
4942   done
4943   ;;
4944 esac
4945 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4946
4947
4948 # Determine whether we are building LLVM support for the native architecture.
4949 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4950 for a_target in $TARGETS_TO_BUILD; do
4951   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4952     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4953
4954 cat >>confdefs.h <<_ACEOF
4955 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4956 _ACEOF
4957
4958   fi
4959 done
4960
4961 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4962 # target feature def files.
4963 LLVM_ENUM_TARGETS=""
4964 LLVM_ENUM_ASM_PRINTERS=""
4965 LLVM_ENUM_ASM_PARSERS=""
4966 LLVM_ENUM_DISASSEMBLERS=""
4967 for target_to_build in $TARGETS_TO_BUILD; do
4968   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4969   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4970     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4971   fi
4972   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4973     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4974   fi
4975   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4976     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4977   fi
4978 done
4979
4980
4981
4982
4983
4984 # Check whether --enable-cbe-printf-a was given.
4985 if test "${enable_cbe_printf_a+set}" = set; then
4986   enableval=$enable_cbe_printf_a;
4987 else
4988   enableval=default
4989 fi
4990
4991 case "$enableval" in
4992   yes) ENABLE_CBE_PRINTF_A=1
4993  ;;
4994   no)  ENABLE_CBE_PRINTF_A=0
4995  ;;
4996   default)  ENABLE_CBE_PRINTF_A=1
4997  ;;
4998   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4999 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5000    { (exit 1); exit 1; }; } ;;
5001 esac
5002
5003 cat >>confdefs.h <<_ACEOF
5004 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5005 _ACEOF
5006
5007
5008
5009 # Check whether --with-llvmgccdir was given.
5010 if test "${with_llvmgccdir+set}" = set; then
5011   withval=$with_llvmgccdir;
5012 else
5013   withval=default
5014 fi
5015
5016 case "$withval" in
5017   default) WITH_LLVMGCCDIR=default ;;
5018   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5019   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5020 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5021    { (exit 1); exit 1; }; } ;;
5022 esac
5023
5024
5025 # Check whether --with-llvmgcc was given.
5026 if test "${with_llvmgcc+set}" = set; then
5027   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5028       WITH_LLVMGCCDIR=""
5029 fi
5030
5031
5032
5033 # Check whether --with-llvmgxx was given.
5034 if test "${with_llvmgxx+set}" = set; then
5035   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5036     WITH_LLVMGCCDIR=""
5037 fi
5038
5039
5040 if test -n "$LLVMGCC"; then
5041    LLVMGCCCOMMAND="$LLVMGCC"
5042 fi
5043
5044 if test -n "$LLVMGXX"; then
5045    LLVMGXXCOMMAND="$LLVMGXX"
5046 fi
5047
5048 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5049    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5050 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5051    { (exit 1); exit 1; }; };
5052 fi
5053
5054 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5055    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5056 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5057    { (exit 1); exit 1; }; };
5058 fi
5059
5060
5061 # Check whether --with-clang was given.
5062 if test "${with_clang+set}" = set; then
5063   withval=$with_clang;
5064 else
5065   with_clang=default
5066 fi
5067
5068
5069
5070 # Check whether --with-built-clang was given.
5071 if test "${with_built_clang+set}" = set; then
5072   withval=$with_built_clang;
5073 else
5074   with_built_clang=check
5075 fi
5076
5077
5078 { echo "$as_me:$LINENO: checking clang compiler" >&5
5079 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5080 WITH_CLANGPATH=""
5081 WITH_BUILT_CLANG=0
5082 if test "$with_clang" != "default"; then
5083    WITH_CLANGPATH="$with_clang"
5084    if ! test -x "$WITH_CLANGPATH"; then
5085      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5086 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5087    { (exit 1); exit 1; }; }
5088    fi
5089 elif test "$with_built_clang" = "yes"; then
5090    WITH_BUILT_CLANG=1
5091 elif test "$with_built_clang" = "no"; then
5092    WITH_BUILT_CLANG=0
5093 else
5094    if test "$with_built_clang" != "check"; then
5095       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5096 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5097    { (exit 1); exit 1; }; }
5098    fi
5099
5100    if test -f ${srcdir}/tools/clang/README.txt; then
5101      WITH_BUILT_CLANG=1
5102    fi
5103 fi
5104
5105 if ! test -z "$WITH_CLANGPATH"; then
5106    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5107 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5108    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5109 elif test "$WITH_BUILT_CLANG" = "1"; then
5110    { echo "$as_me:$LINENO: result: built" >&5
5111 echo "${ECHO_T}built" >&6; }
5112 else
5113    { echo "$as_me:$LINENO: result: none" >&5
5114 echo "${ECHO_T}none" >&6; }
5115 fi
5116 CLANGPATH=$WITH_CLANGPATH
5117
5118 CLANGXXPATH=$WITH_CLANGXXPATH
5119
5120 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5121
5122
5123
5124 # Check whether --with-optimize-option was given.
5125 if test "${with_optimize_option+set}" = set; then
5126   withval=$with_optimize_option;
5127 else
5128   withval=default
5129 fi
5130
5131 { echo "$as_me:$LINENO: checking optimization flags" >&5
5132 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5133 case "$withval" in
5134   default)
5135     case "$llvm_cv_os_type" in
5136     MingW) optimize_option=-O3 ;;
5137     *)     optimize_option=-O2 ;;
5138     esac ;;
5139   *) optimize_option="$withval" ;;
5140 esac
5141 OPTIMIZE_OPTION=$optimize_option
5142
5143 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5144 echo "${ECHO_T}$optimize_option" >&6; }
5145
5146
5147 # Check whether --with-extra-options was given.
5148 if test "${with_extra_options+set}" = set; then
5149   withval=$with_extra_options;
5150 else
5151   withval=default
5152 fi
5153
5154 case "$withval" in
5155   default) EXTRA_OPTIONS= ;;
5156   *) EXTRA_OPTIONS=$withval ;;
5157 esac
5158 EXTRA_OPTIONS=$EXTRA_OPTIONS
5159
5160
5161 # Check whether --enable-bindings was given.
5162 if test "${enable_bindings+set}" = set; then
5163   enableval=$enable_bindings;
5164 else
5165   enableval=default
5166 fi
5167
5168 BINDINGS_TO_BUILD=""
5169 case "$enableval" in
5170   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5171   all ) BINDINGS_TO_BUILD="ocaml" ;;
5172   none | no) BINDINGS_TO_BUILD="" ;;
5173   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5174       case "$a_binding" in
5175         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5176         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5177 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5178    { (exit 1); exit 1; }; } ;;
5179       esac
5180   done
5181   ;;
5182 esac
5183
5184
5185 # Check whether --with-ocaml-libdir was given.
5186 if test "${with_ocaml_libdir+set}" = set; then
5187   withval=$with_ocaml_libdir;
5188 else
5189   withval=auto
5190 fi
5191
5192 case "$withval" in
5193   auto) with_ocaml_libdir="$withval" ;;
5194   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5195   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5196 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5197    { (exit 1); exit 1; }; } ;;
5198 esac
5199
5200
5201 # Check whether --with-c-include-dirs was given.
5202 if test "${with_c_include_dirs+set}" = set; then
5203   withval=$with_c_include_dirs;
5204 else
5205   withval=""
5206 fi
5207
5208
5209 cat >>confdefs.h <<_ACEOF
5210 #define C_INCLUDE_DIRS "$withval"
5211 _ACEOF
5212
5213
5214
5215 # Check whether --with-cxx-include-root was given.
5216 if test "${with_cxx_include_root+set}" = set; then
5217   withval=$with_cxx_include_root;
5218 else
5219   withval=""
5220 fi
5221
5222
5223 cat >>confdefs.h <<_ACEOF
5224 #define CXX_INCLUDE_ROOT "$withval"
5225 _ACEOF
5226
5227
5228
5229 # Check whether --with-cxx-include-arch was given.
5230 if test "${with_cxx_include_arch+set}" = set; then
5231   withval=$with_cxx_include_arch;
5232 else
5233   withval=""
5234 fi
5235
5236
5237 cat >>confdefs.h <<_ACEOF
5238 #define CXX_INCLUDE_ARCH "$withval"
5239 _ACEOF
5240
5241
5242
5243 # Check whether --with-cxx-include-32bit-dir was given.
5244 if test "${with_cxx_include_32bit_dir+set}" = set; then
5245   withval=$with_cxx_include_32bit_dir;
5246 else
5247   withval=""
5248 fi
5249
5250
5251 cat >>confdefs.h <<_ACEOF
5252 #define CXX_INCLUDE_32BIT_DIR "$withval"
5253 _ACEOF
5254
5255
5256
5257 # Check whether --with-cxx-include-64bit-dir was given.
5258 if test "${with_cxx_include_64bit_dir+set}" = set; then
5259   withval=$with_cxx_include_64bit_dir;
5260 else
5261   withval=""
5262 fi
5263
5264
5265 cat >>confdefs.h <<_ACEOF
5266 #define CXX_INCLUDE_64BIT_DIR "$withval"
5267 _ACEOF
5268
5269
5270
5271 # Check whether --with-binutils-include was given.
5272 if test "${with_binutils_include+set}" = set; then
5273   withval=$with_binutils_include;
5274 else
5275   withval=default
5276 fi
5277
5278 case "$withval" in
5279   default) WITH_BINUTILS_INCDIR=default ;;
5280   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5281   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5282 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5283    { (exit 1); exit 1; }; } ;;
5284 esac
5285 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5286   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5287
5288   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5289      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5290      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5291 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5292    { (exit 1); exit 1; }; };
5293   fi
5294 fi
5295
5296 # Check whether --enable-libffi was given.
5297 if test "${enable_libffi+set}" = set; then
5298   enableval=$enable_libffi; case "$enableval" in
5299     yes) llvm_cv_enable_libffi="yes" ;;
5300     no)  llvm_cv_enable_libffi="no"  ;;
5301     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5302 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5303    { (exit 1); exit 1; }; } ;;
5304   esac
5305 else
5306   llvm_cv_enable_libffi=no
5307 fi
5308
5309
5310 if test "$llvm_cv_os_type" = "Win32" ; then
5311    llvmc_dynamic="yes"
5312 else
5313    llvmc_dynamic="no"
5314 fi
5315
5316 # Check whether --enable-llvmc-dynamic was given.
5317 if test "${enable_llvmc_dynamic+set}" = set; then
5318   enableval=$enable_llvmc_dynamic;
5319 else
5320   enableval=$llvmc_dynamic
5321 fi
5322
5323 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5324    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5325
5326 else
5327    ENABLE_LLVMC_DYNAMIC=
5328
5329 fi
5330
5331 # Check whether --enable-llvmc-dynamic-plugins was given.
5332 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5333   enableval=$enable_llvmc_dynamic_plugins;
5334 else
5335   enableval=yes
5336 fi
5337
5338 if test ${enableval} = "yes" ; then
5339    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5340
5341 else
5342    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5343
5344 fi
5345
5346
5347 ac_ext=c
5348 ac_cpp='$CPP $CPPFLAGS'
5349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5353 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5354 # On Suns, sometimes $CPP names a directory.
5355 if test -n "$CPP" && test -d "$CPP"; then
5356   CPP=
5357 fi
5358 if test -z "$CPP"; then
5359   if test "${ac_cv_prog_CPP+set}" = set; then
5360   echo $ECHO_N "(cached) $ECHO_C" >&6
5361 else
5362       # Double quotes because CPP needs to be expanded
5363     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5364     do
5365       ac_preproc_ok=false
5366 for ac_c_preproc_warn_flag in '' yes
5367 do
5368   # Use a header file that comes with gcc, so configuring glibc
5369   # with a fresh cross-compiler works.
5370   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371   # <limits.h> exists even on freestanding compilers.
5372   # On the NeXT, cc -E runs the code through the compiler's parser,
5373   # not just through cpp. "Syntax error" is here to catch this case.
5374   cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h.  */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h.  */
5380 #ifdef __STDC__
5381 # include <limits.h>
5382 #else
5383 # include <assert.h>
5384 #endif
5385                      Syntax error
5386 _ACEOF
5387 if { (ac_try="$ac_cpp conftest.$ac_ext"
5388 case "(($ac_try" in
5389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390   *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } >/dev/null; then
5400   if test -s conftest.err; then
5401     ac_cpp_err=$ac_c_preproc_warn_flag
5402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403   else
5404     ac_cpp_err=
5405   fi
5406 else
5407   ac_cpp_err=yes
5408 fi
5409 if test -z "$ac_cpp_err"; then
5410   :
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415   # Broken: fails on valid input.
5416 continue
5417 fi
5418
5419 rm -f conftest.err conftest.$ac_ext
5420
5421   # OK, works on sane cases.  Now check whether nonexistent headers
5422   # can be detected and how.
5423   cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h.  */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h.  */
5429 #include <ac_nonexistent.h>
5430 _ACEOF
5431 if { (ac_try="$ac_cpp conftest.$ac_ext"
5432 case "(($ac_try" in
5433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434   *) ac_try_echo=$ac_try;;
5435 esac
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5438   ac_status=$?
5439   grep -v '^ *+' conftest.er1 >conftest.err
5440   rm -f conftest.er1
5441   cat conftest.err >&5
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } >/dev/null; then
5444   if test -s conftest.err; then
5445     ac_cpp_err=$ac_c_preproc_warn_flag
5446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5447   else
5448     ac_cpp_err=
5449   fi
5450 else
5451   ac_cpp_err=yes
5452 fi
5453 if test -z "$ac_cpp_err"; then
5454   # Broken: success on invalid input.
5455 continue
5456 else
5457   echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5459
5460   # Passes both tests.
5461 ac_preproc_ok=:
5462 break
5463 fi
5464
5465 rm -f conftest.err conftest.$ac_ext
5466
5467 done
5468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5469 rm -f conftest.err conftest.$ac_ext
5470 if $ac_preproc_ok; then
5471   break
5472 fi
5473
5474     done
5475     ac_cv_prog_CPP=$CPP
5476
5477 fi
5478   CPP=$ac_cv_prog_CPP
5479 else
5480   ac_cv_prog_CPP=$CPP
5481 fi
5482 { echo "$as_me:$LINENO: result: $CPP" >&5
5483 echo "${ECHO_T}$CPP" >&6; }
5484 ac_preproc_ok=false
5485 for ac_c_preproc_warn_flag in '' yes
5486 do
5487   # Use a header file that comes with gcc, so configuring glibc
5488   # with a fresh cross-compiler works.
5489   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490   # <limits.h> exists even on freestanding compilers.
5491   # On the NeXT, cc -E runs the code through the compiler's parser,
5492   # not just through cpp. "Syntax error" is here to catch this case.
5493   cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h.  */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h.  */
5499 #ifdef __STDC__
5500 # include <limits.h>
5501 #else
5502 # include <assert.h>
5503 #endif
5504                      Syntax error
5505 _ACEOF
5506 if { (ac_try="$ac_cpp conftest.$ac_ext"
5507 case "(($ac_try" in
5508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509   *) ac_try_echo=$ac_try;;
5510 esac
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5513   ac_status=$?
5514   grep -v '^ *+' conftest.er1 >conftest.err
5515   rm -f conftest.er1
5516   cat conftest.err >&5
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } >/dev/null; then
5519   if test -s conftest.err; then
5520     ac_cpp_err=$ac_c_preproc_warn_flag
5521     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5522   else
5523     ac_cpp_err=
5524   fi
5525 else
5526   ac_cpp_err=yes
5527 fi
5528 if test -z "$ac_cpp_err"; then
5529   :
5530 else
5531   echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5533
5534   # Broken: fails on valid input.
5535 continue
5536 fi
5537
5538 rm -f conftest.err conftest.$ac_ext
5539
5540   # OK, works on sane cases.  Now check whether nonexistent headers
5541   # can be detected and how.
5542   cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h.  */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h.  */
5548 #include <ac_nonexistent.h>
5549 _ACEOF
5550 if { (ac_try="$ac_cpp conftest.$ac_ext"
5551 case "(($ac_try" in
5552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553   *) ac_try_echo=$ac_try;;
5554 esac
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5557   ac_status=$?
5558   grep -v '^ *+' conftest.er1 >conftest.err
5559   rm -f conftest.er1
5560   cat conftest.err >&5
5561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); } >/dev/null; then
5563   if test -s conftest.err; then
5564     ac_cpp_err=$ac_c_preproc_warn_flag
5565     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5566   else
5567     ac_cpp_err=
5568   fi
5569 else
5570   ac_cpp_err=yes
5571 fi
5572 if test -z "$ac_cpp_err"; then
5573   # Broken: success on invalid input.
5574 continue
5575 else
5576   echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579   # Passes both tests.
5580 ac_preproc_ok=:
5581 break
5582 fi
5583
5584 rm -f conftest.err conftest.$ac_ext
5585
5586 done
5587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5588 rm -f conftest.err conftest.$ac_ext
5589 if $ac_preproc_ok; then
5590   :
5591 else
5592   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5593 See \`config.log' for more details." >&5
5594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5595 See \`config.log' for more details." >&2;}
5596    { (exit 1); exit 1; }; }
5597 fi
5598
5599 ac_ext=c
5600 ac_cpp='$CPP $CPPFLAGS'
5601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5604
5605 ac_ext=c
5606 ac_cpp='$CPP $CPPFLAGS'
5607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5610 if test -n "$ac_tool_prefix"; then
5611   for ac_prog in gcc
5612   do
5613     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5617 if test "${ac_cv_prog_CC+set}" = set; then
5618   echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620   if test -n "$CC"; then
5621   ac_cv_prog_CC="$CC" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626   IFS=$as_save_IFS
5627   test -z "$as_dir" && as_dir=.
5628   for ac_exec_ext in '' $ac_executable_extensions; do
5629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5630     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5632     break 2
5633   fi
5634 done
5635 done
5636 IFS=$as_save_IFS
5637
5638 fi
5639 fi
5640 CC=$ac_cv_prog_CC
5641 if test -n "$CC"; then
5642   { echo "$as_me:$LINENO: result: $CC" >&5
5643 echo "${ECHO_T}$CC" >&6; }
5644 else
5645   { echo "$as_me:$LINENO: result: no" >&5
5646 echo "${ECHO_T}no" >&6; }
5647 fi
5648
5649
5650     test -n "$CC" && break
5651   done
5652 fi
5653 if test -z "$CC"; then
5654   ac_ct_CC=$CC
5655   for ac_prog in gcc
5656 do
5657   # Extract the first word of "$ac_prog", so it can be a program name with args.
5658 set dummy $ac_prog; ac_word=$2
5659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   if test -n "$ac_ct_CC"; then
5665   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5666 else
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5669 do
5670   IFS=$as_save_IFS
5671   test -z "$as_dir" && as_dir=.
5672   for ac_exec_ext in '' $ac_executable_extensions; do
5673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5674     ac_cv_prog_ac_ct_CC="$ac_prog"
5675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5676     break 2
5677   fi
5678 done
5679 done
5680 IFS=$as_save_IFS
5681
5682 fi
5683 fi
5684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5685 if test -n "$ac_ct_CC"; then
5686   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5687 echo "${ECHO_T}$ac_ct_CC" >&6; }
5688 else
5689   { echo "$as_me:$LINENO: result: no" >&5
5690 echo "${ECHO_T}no" >&6; }
5691 fi
5692
5693
5694   test -n "$ac_ct_CC" && break
5695 done
5696
5697   if test "x$ac_ct_CC" = x; then
5698     CC=""
5699   else
5700     case $cross_compiling:$ac_tool_warned in
5701 yes:)
5702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5703 whose name does not start with the host triplet.  If you think this
5704 configuration is useful to you, please write to autoconf@gnu.org." >&5
5705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5706 whose name does not start with the host triplet.  If you think this
5707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5708 ac_tool_warned=yes ;;
5709 esac
5710     CC=$ac_ct_CC
5711   fi
5712 fi
5713
5714
5715 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5716 See \`config.log' for more details." >&5
5717 echo "$as_me: error: no acceptable C compiler found in \$PATH
5718 See \`config.log' for more details." >&2;}
5719    { (exit 1); exit 1; }; }
5720
5721 # Provide some information about the compiler.
5722 echo "$as_me:$LINENO: checking for C compiler version" >&5
5723 ac_compiler=`set X $ac_compile; echo $2`
5724 { (ac_try="$ac_compiler --version >&5"
5725 case "(($ac_try" in
5726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727   *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730   (eval "$ac_compiler --version >&5") 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }
5734 { (ac_try="$ac_compiler -v >&5"
5735 case "(($ac_try" in
5736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737   *) ac_try_echo=$ac_try;;
5738 esac
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740   (eval "$ac_compiler -v >&5") 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }
5744 { (ac_try="$ac_compiler -V >&5"
5745 case "(($ac_try" in
5746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747   *) ac_try_echo=$ac_try;;
5748 esac
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750   (eval "$ac_compiler -V >&5") 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }
5754
5755 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5756 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5757 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h.  */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h.  */
5766
5767 int
5768 main ()
5769 {
5770 #ifndef __GNUC__
5771        choke me
5772 #endif
5773
5774   ;
5775   return 0;
5776 }
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (ac_try="$ac_compile"
5780 case "(($ac_try" in
5781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782   *) ac_try_echo=$ac_try;;
5783 esac
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785   (eval "$ac_compile") 2>conftest.er1
5786   ac_status=$?
5787   grep -v '^ *+' conftest.er1 >conftest.err
5788   rm -f conftest.er1
5789   cat conftest.err >&5
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); } &&
5792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5793   { (case "(($ac_try" in
5794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795   *) ac_try_echo=$ac_try;;
5796 esac
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798   (eval "$ac_try") 2>&5
5799   ac_status=$?
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); }; } &&
5802          { ac_try='test -s conftest.$ac_objext'
5803   { (case "(($ac_try" in
5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805   *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808   (eval "$ac_try") 2>&5
5809   ac_status=$?
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); }; }; then
5812   ac_compiler_gnu=yes
5813 else
5814   echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817         ac_compiler_gnu=no
5818 fi
5819
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5822
5823 fi
5824 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5825 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5826 GCC=`test $ac_compiler_gnu = yes && echo yes`
5827 ac_test_CFLAGS=${CFLAGS+set}
5828 ac_save_CFLAGS=$CFLAGS
5829 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5830 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5831 if test "${ac_cv_prog_cc_g+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   ac_save_c_werror_flag=$ac_c_werror_flag
5835    ac_c_werror_flag=yes
5836    ac_cv_prog_cc_g=no
5837    CFLAGS="-g"
5838    cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h.  */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h.  */
5844
5845 int
5846 main ()
5847 {
5848
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5855 case "(($ac_try" in
5856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857   *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860   (eval "$ac_compile") 2>conftest.er1
5861   ac_status=$?
5862   grep -v '^ *+' conftest.er1 >conftest.err
5863   rm -f conftest.er1
5864   cat conftest.err >&5
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); } &&
5867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868   { (case "(($ac_try" in
5869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870   *) ac_try_echo=$ac_try;;
5871 esac
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873   (eval "$ac_try") 2>&5
5874   ac_status=$?
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); }; } &&
5877          { ac_try='test -s conftest.$ac_objext'
5878   { (case "(($ac_try" in
5879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880   *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883   (eval "$ac_try") 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; }; then
5887   ac_cv_prog_cc_g=yes
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892         CFLAGS=""
5893       cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h.  */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h.  */
5899
5900 int
5901 main ()
5902 {
5903
5904   ;
5905   return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5910 case "(($ac_try" in
5911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912   *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915   (eval "$ac_compile") 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } &&
5922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5923   { (case "(($ac_try" in
5924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925   *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928   (eval "$ac_try") 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; } &&
5932          { ac_try='test -s conftest.$ac_objext'
5933   { (case "(($ac_try" in
5934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935   *) ac_try_echo=$ac_try;;
5936 esac
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938   (eval "$ac_try") 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; }; then
5942   :
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5946
5947         ac_c_werror_flag=$ac_save_c_werror_flag
5948          CFLAGS="-g"
5949          cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h.  */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h.  */
5955
5956 int
5957 main ()
5958 {
5959
5960   ;
5961   return 0;
5962 }
5963 _ACEOF
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5966 case "(($ac_try" in
5967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968   *) ac_try_echo=$ac_try;;
5969 esac
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971   (eval "$ac_compile") 2>conftest.er1
5972   ac_status=$?
5973   grep -v '^ *+' conftest.er1 >conftest.err
5974   rm -f conftest.er1
5975   cat conftest.err >&5
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } &&
5978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5979   { (case "(($ac_try" in
5980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981   *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984   (eval "$ac_try") 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; } &&
5988          { ac_try='test -s conftest.$ac_objext'
5989   { (case "(($ac_try" in
5990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991   *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994   (eval "$ac_try") 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; }; then
5998   ac_cv_prog_cc_g=yes
5999 else
6000   echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003
6004 fi
6005
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 fi
6008
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 fi
6011
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013    ac_c_werror_flag=$ac_save_c_werror_flag
6014 fi
6015 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6017 if test "$ac_test_CFLAGS" = set; then
6018   CFLAGS=$ac_save_CFLAGS
6019 elif test $ac_cv_prog_cc_g = yes; then
6020   if test "$GCC" = yes; then
6021     CFLAGS="-g -O2"
6022   else
6023     CFLAGS="-g"
6024   fi
6025 else
6026   if test "$GCC" = yes; then
6027     CFLAGS="-O2"
6028   else
6029     CFLAGS=
6030   fi
6031 fi
6032 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6033 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6034 if test "${ac_cv_prog_cc_c89+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   ac_cv_prog_cc_c89=no
6038 ac_save_CC=$CC
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h.  */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h.  */
6045 #include <stdarg.h>
6046 #include <stdio.h>
6047 #include <sys/types.h>
6048 #include <sys/stat.h>
6049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6050 struct buf { int x; };
6051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6052 static char *e (p, i)
6053      char **p;
6054      int i;
6055 {
6056   return p[i];
6057 }
6058 static char *f (char * (*g) (char **, int), char **p, ...)
6059 {
6060   char *s;
6061   va_list v;
6062   va_start (v,p);
6063   s = g (p, va_arg (v,int));
6064   va_end (v);
6065   return s;
6066 }
6067
6068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6069    function prototypes and stuff, but not '\xHH' hex character constants.
6070    These don't provoke an error unfortunately, instead are silently treated
6071    as 'x'.  The following induces an error, until -std is added to get
6072    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6073    array size at least.  It's necessary to write '\x00'==0 to get something
6074    that's true only with -std.  */
6075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6076
6077 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6078    inside strings and character constants.  */
6079 #define FOO(x) 'x'
6080 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6081
6082 int test (int i, double x);
6083 struct s1 {int (*f) (int a);};
6084 struct s2 {int (*f) (double a);};
6085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6086 int argc;
6087 char **argv;
6088 int
6089 main ()
6090 {
6091 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6092   ;
6093   return 0;
6094 }
6095 _ACEOF
6096 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6097         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6098 do
6099   CC="$ac_save_CC $ac_arg"
6100   rm -f conftest.$ac_objext
6101 if { (ac_try="$ac_compile"
6102 case "(($ac_try" in
6103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104   *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107   (eval "$ac_compile") 2>conftest.er1
6108   ac_status=$?
6109   grep -v '^ *+' conftest.er1 >conftest.err
6110   rm -f conftest.er1
6111   cat conftest.err >&5
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6115   { (case "(($ac_try" in
6116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117   *) ac_try_echo=$ac_try;;
6118 esac
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120   (eval "$ac_try") 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); }; } &&
6124          { ac_try='test -s conftest.$ac_objext'
6125   { (case "(($ac_try" in
6126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127   *) ac_try_echo=$ac_try;;
6128 esac
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130   (eval "$ac_try") 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; }; then
6134   ac_cv_prog_cc_c89=$ac_arg
6135 else
6136   echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6138
6139
6140 fi
6141
6142 rm -f core conftest.err conftest.$ac_objext
6143   test "x$ac_cv_prog_cc_c89" != "xno" && break
6144 done
6145 rm -f conftest.$ac_ext
6146 CC=$ac_save_CC
6147
6148 fi
6149 # AC_CACHE_VAL
6150 case "x$ac_cv_prog_cc_c89" in
6151   x)
6152     { echo "$as_me:$LINENO: result: none needed" >&5
6153 echo "${ECHO_T}none needed" >&6; } ;;
6154   xno)
6155     { echo "$as_me:$LINENO: result: unsupported" >&5
6156 echo "${ECHO_T}unsupported" >&6; } ;;
6157   *)
6158     CC="$CC $ac_cv_prog_cc_c89"
6159     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6160 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6161 esac
6162
6163
6164 ac_ext=c
6165 ac_cpp='$CPP $CPPFLAGS'
6166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169
6170 ac_ext=cpp
6171 ac_cpp='$CXXCPP $CPPFLAGS'
6172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6175 if test -z "$CXX"; then
6176   if test -n "$CCC"; then
6177     CXX=$CCC
6178   else
6179     if test -n "$ac_tool_prefix"; then
6180   for ac_prog in g++
6181   do
6182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_CXX+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   if test -n "$CXX"; then
6190   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197   for ac_exec_ext in '' $ac_executable_extensions; do
6198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201     break 2
6202   fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 CXX=$ac_cv_prog_CXX
6210 if test -n "$CXX"; then
6211   { echo "$as_me:$LINENO: result: $CXX" >&5
6212 echo "${ECHO_T}$CXX" >&6; }
6213 else
6214   { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6217
6218
6219     test -n "$CXX" && break
6220   done
6221 fi
6222 if test -z "$CXX"; then
6223   ac_ct_CXX=$CXX
6224   for ac_prog in g++
6225 do
6226   # Extract the first word of "$ac_prog", so it can be a program name with args.
6227 set dummy $ac_prog; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   if test -n "$ac_ct_CXX"; then
6234   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241   for ac_exec_ext in '' $ac_executable_extensions; do
6242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6243     ac_cv_prog_ac_ct_CXX="$ac_prog"
6244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248 done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6254 if test -n "$ac_ct_CXX"; then
6255   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6256 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6257 else
6258   { echo "$as_me:$LINENO: result: no" >&5
6259 echo "${ECHO_T}no" >&6; }
6260 fi
6261
6262
6263   test -n "$ac_ct_CXX" && break
6264 done
6265
6266   if test "x$ac_ct_CXX" = x; then
6267     CXX="g++"
6268   else
6269     case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272 whose name does not start with the host triplet.  If you think this
6273 configuration is useful to you, please write to autoconf@gnu.org." >&5
6274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet.  If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6277 ac_tool_warned=yes ;;
6278 esac
6279     CXX=$ac_ct_CXX
6280   fi
6281 fi
6282
6283   fi
6284 fi
6285 # Provide some information about the compiler.
6286 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6287 ac_compiler=`set X $ac_compile; echo $2`
6288 { (ac_try="$ac_compiler --version >&5"
6289 case "(($ac_try" in
6290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291   *) ac_try_echo=$ac_try;;
6292 esac
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294   (eval "$ac_compiler --version >&5") 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); }
6298 { (ac_try="$ac_compiler -v >&5"
6299 case "(($ac_try" in
6300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301   *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304   (eval "$ac_compiler -v >&5") 2>&5
6305   ac_status=$?
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); }
6308 { (ac_try="$ac_compiler -V >&5"
6309 case "(($ac_try" in
6310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311   *) ac_try_echo=$ac_try;;
6312 esac
6313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314   (eval "$ac_compiler -V >&5") 2>&5
6315   ac_status=$?
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); }
6318
6319 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6320 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6321 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330
6331 int
6332 main ()
6333 {
6334 #ifndef __GNUC__
6335        choke me
6336 #endif
6337
6338   ;
6339   return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6344 case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349   (eval "$ac_compile") 2>conftest.er1
6350   ac_status=$?
6351   grep -v '^ *+' conftest.er1 >conftest.err
6352   rm -f conftest.er1
6353   cat conftest.err >&5
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } &&
6356          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6357   { (case "(($ac_try" in
6358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359   *) ac_try_echo=$ac_try;;
6360 esac
6361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362   (eval "$ac_try") 2>&5
6363   ac_status=$?
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); }; } &&
6366          { ac_try='test -s conftest.$ac_objext'
6367   { (case "(($ac_try" in
6368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369   *) ac_try_echo=$ac_try;;
6370 esac
6371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372   (eval "$ac_try") 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; }; then
6376   ac_compiler_gnu=yes
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381         ac_compiler_gnu=no
6382 fi
6383
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6386
6387 fi
6388 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6389 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6390 GXX=`test $ac_compiler_gnu = yes && echo yes`
6391 ac_test_CXXFLAGS=${CXXFLAGS+set}
6392 ac_save_CXXFLAGS=$CXXFLAGS
6393 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6394 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_cxx_g+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6399    ac_cxx_werror_flag=yes
6400    ac_cv_prog_cxx_g=no
6401    CXXFLAGS="-g"
6402    cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h.  */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h.  */
6408
6409 int
6410 main ()
6411 {
6412
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6419 case "(($ac_try" in
6420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421   *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424   (eval "$ac_compile") 2>conftest.er1
6425   ac_status=$?
6426   grep -v '^ *+' conftest.er1 >conftest.err
6427   rm -f conftest.er1
6428   cat conftest.err >&5
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } &&
6431          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6432   { (case "(($ac_try" in
6433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434   *) ac_try_echo=$ac_try;;
6435 esac
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437   (eval "$ac_try") 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; } &&
6441          { ac_try='test -s conftest.$ac_objext'
6442   { (case "(($ac_try" in
6443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444   *) ac_try_echo=$ac_try;;
6445 esac
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447   (eval "$ac_try") 2>&5
6448   ac_status=$?
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); }; }; then
6451   ac_cv_prog_cxx_g=yes
6452 else
6453   echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6455
6456         CXXFLAGS=""
6457       cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h.  */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h.  */
6463
6464 int
6465 main ()
6466 {
6467
6468   ;
6469   return 0;
6470 }
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (ac_try="$ac_compile"
6474 case "(($ac_try" in
6475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476   *) ac_try_echo=$ac_try;;
6477 esac
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479   (eval "$ac_compile") 2>conftest.er1
6480   ac_status=$?
6481   grep -v '^ *+' conftest.er1 >conftest.err
6482   rm -f conftest.er1
6483   cat conftest.err >&5
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); } &&
6486          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6487   { (case "(($ac_try" in
6488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489   *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492   (eval "$ac_try") 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); }; } &&
6496          { ac_try='test -s conftest.$ac_objext'
6497   { (case "(($ac_try" in
6498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499   *) ac_try_echo=$ac_try;;
6500 esac
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502   (eval "$ac_try") 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); }; }; then
6506   :
6507 else
6508   echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6512          CXXFLAGS="-g"
6513          cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h.  */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h.  */
6519
6520 int
6521 main ()
6522 {
6523
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (ac_try="$ac_compile"
6530 case "(($ac_try" in
6531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532   *) ac_try_echo=$ac_try;;
6533 esac
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535   (eval "$ac_compile") 2>conftest.er1
6536   ac_status=$?
6537   grep -v '^ *+' conftest.er1 >conftest.err
6538   rm -f conftest.er1
6539   cat conftest.err >&5
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); } &&
6542          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6543   { (case "(($ac_try" in
6544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545   *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548   (eval "$ac_try") 2>&5
6549   ac_status=$?
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); }; } &&
6552          { ac_try='test -s conftest.$ac_objext'
6553   { (case "(($ac_try" in
6554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555   *) ac_try_echo=$ac_try;;
6556 esac
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558   (eval "$ac_try") 2>&5
6559   ac_status=$?
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); }; }; then
6562   ac_cv_prog_cxx_g=yes
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6566
6567
6568 fi
6569
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 fi
6572
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6578 fi
6579 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6580 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6581 if test "$ac_test_CXXFLAGS" = set; then
6582   CXXFLAGS=$ac_save_CXXFLAGS
6583 elif test $ac_cv_prog_cxx_g = yes; then
6584   if test "$GXX" = yes; then
6585     CXXFLAGS="-g -O2"
6586   else
6587     CXXFLAGS="-g"
6588   fi
6589 else
6590   if test "$GXX" = yes; then
6591     CXXFLAGS="-O2"
6592   else
6593     CXXFLAGS=
6594   fi
6595 fi
6596 ac_ext=c
6597 ac_cpp='$CPP $CPPFLAGS'
6598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601
6602
6603 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6604 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6605 if test "${lt_cv_path_NM+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   if test -n "$NM"; then
6609   # Let the user override the test.
6610   lt_cv_path_NM="$NM"
6611 else
6612   lt_nm_to_check="${ac_tool_prefix}nm"
6613   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6614     lt_nm_to_check="$lt_nm_to_check nm"
6615   fi
6616   for lt_tmp_nm in $lt_nm_to_check; do
6617     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6618     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6619       IFS="$lt_save_ifs"
6620       test -z "$ac_dir" && ac_dir=.
6621       tmp_nm="$ac_dir/$lt_tmp_nm"
6622       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6623         # Check to see if the nm accepts a BSD-compat flag.
6624         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6625         #   nm: unknown option "B" ignored
6626         # Tru64's nm complains that /dev/null is an invalid object file
6627         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6628         */dev/null* | *'Invalid file or object type'*)
6629           lt_cv_path_NM="$tmp_nm -B"
6630           break
6631           ;;
6632         *)
6633           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6634           */dev/null*)
6635             lt_cv_path_NM="$tmp_nm -p"
6636             break
6637             ;;
6638           *)
6639             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6640             continue # so that we can try to find one that supports BSD flags
6641             ;;
6642           esac
6643           ;;
6644         esac
6645       fi
6646     done
6647     IFS="$lt_save_ifs"
6648   done
6649   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6650 fi
6651 fi
6652 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6653 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6654 NM="$lt_cv_path_NM"
6655
6656
6657
6658 { echo "$as_me:$LINENO: checking for GNU make" >&5
6659 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6660 if test "${llvm_cv_gnu_make_command+set}" = set; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   llvm_cv_gnu_make_command=''
6664  for a in "$MAKE" make gmake gnumake ; do
6665   if test -z "$a" ; then continue ; fi ;
6666   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6667   then
6668    llvm_cv_gnu_make_command=$a ;
6669    break;
6670   fi
6671  done
6672 fi
6673 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6674 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6675  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6676    ifGNUmake='' ;
6677  else
6678    ifGNUmake='#' ;
6679    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6680 echo "${ECHO_T}\"Not found\"" >&6; };
6681  fi
6682
6683
6684 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6685 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6686 LN_S=$as_ln_s
6687 if test "$LN_S" = "ln -s"; then
6688   { echo "$as_me:$LINENO: result: yes" >&5
6689 echo "${ECHO_T}yes" >&6; }
6690 else
6691   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6692 echo "${ECHO_T}no, using $LN_S" >&6; }
6693 fi
6694
6695 # Extract the first word of "cmp", so it can be a program name with args.
6696 set dummy cmp; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_CMP+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   case $CMP in
6703   [\\/]* | ?:[\\/]*)
6704   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6705   ;;
6706   *)
6707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712   for ac_exec_ext in '' $ac_executable_extensions; do
6713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6723   ;;
6724 esac
6725 fi
6726 CMP=$ac_cv_path_CMP
6727 if test -n "$CMP"; then
6728   { echo "$as_me:$LINENO: result: $CMP" >&5
6729 echo "${ECHO_T}$CMP" >&6; }
6730 else
6731   { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6733 fi
6734
6735
6736 # Extract the first word of "cp", so it can be a program name with args.
6737 set dummy cp; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_CP+set}" = set; then
6741   echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743   case $CP in
6744   [\\/]* | ?:[\\/]*)
6745   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6746   ;;
6747   *)
6748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751   IFS=$as_save_IFS
6752   test -z "$as_dir" && as_dir=.
6753   for ac_exec_ext in '' $ac_executable_extensions; do
6754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757     break 2
6758   fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6764   ;;
6765 esac
6766 fi
6767 CP=$ac_cv_path_CP
6768 if test -n "$CP"; then
6769   { echo "$as_me:$LINENO: result: $CP" >&5
6770 echo "${ECHO_T}$CP" >&6; }
6771 else
6772   { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6774 fi
6775
6776
6777 # Extract the first word of "date", so it can be a program name with args.
6778 set dummy date; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_path_DATE+set}" = set; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   case $DATE in
6785   [\\/]* | ?:[\\/]*)
6786   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6787   ;;
6788   *)
6789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794   for ac_exec_ext in '' $ac_executable_extensions; do
6795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6796     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6805   ;;
6806 esac
6807 fi
6808 DATE=$ac_cv_path_DATE
6809 if test -n "$DATE"; then
6810   { echo "$as_me:$LINENO: result: $DATE" >&5
6811 echo "${ECHO_T}$DATE" >&6; }
6812 else
6813   { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6815 fi
6816
6817
6818 # Extract the first word of "find", so it can be a program name with args.
6819 set dummy find; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_FIND+set}" = set; then
6823   echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825   case $FIND in
6826   [\\/]* | ?:[\\/]*)
6827   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6828   ;;
6829   *)
6830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835   for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6846   ;;
6847 esac
6848 fi
6849 FIND=$ac_cv_path_FIND
6850 if test -n "$FIND"; then
6851   { echo "$as_me:$LINENO: result: $FIND" >&5
6852 echo "${ECHO_T}$FIND" >&6; }
6853 else
6854   { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6856 fi
6857
6858
6859 # Extract the first word of "grep", so it can be a program name with args.
6860 set dummy grep; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_path_GREP+set}" = set; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   case $GREP in
6867   [\\/]* | ?:[\\/]*)
6868   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6869   ;;
6870   *)
6871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876   for ac_exec_ext in '' $ac_executable_extensions; do
6877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6887   ;;
6888 esac
6889 fi
6890 GREP=$ac_cv_path_GREP
6891 if test -n "$GREP"; then
6892   { echo "$as_me:$LINENO: result: $GREP" >&5
6893 echo "${ECHO_T}$GREP" >&6; }
6894 else
6895   { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6897 fi
6898
6899
6900 # Extract the first word of "mkdir", so it can be a program name with args.
6901 set dummy mkdir; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_MKDIR+set}" = set; then
6905   echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907   case $MKDIR in
6908   [\\/]* | ?:[\\/]*)
6909   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6910   ;;
6911   *)
6912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917   for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6928   ;;
6929 esac
6930 fi
6931 MKDIR=$ac_cv_path_MKDIR
6932 if test -n "$MKDIR"; then
6933   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6934 echo "${ECHO_T}$MKDIR" >&6; }
6935 else
6936   { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6938 fi
6939
6940
6941 # Extract the first word of "mv", so it can be a program name with args.
6942 set dummy mv; ac_word=$2
6943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6945 if test "${ac_cv_path_MV+set}" = set; then
6946   echo $ECHO_N "(cached) $ECHO_C" >&6
6947 else
6948   case $MV in
6949   [\\/]* | ?:[\\/]*)
6950   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6951   ;;
6952   *)
6953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958   for ac_exec_ext in '' $ac_executable_extensions; do
6959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6960     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962     break 2
6963   fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6969   ;;
6970 esac
6971 fi
6972 MV=$ac_cv_path_MV
6973 if test -n "$MV"; then
6974   { echo "$as_me:$LINENO: result: $MV" >&5
6975 echo "${ECHO_T}$MV" >&6; }
6976 else
6977   { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6979 fi
6980
6981
6982 if test -n "$ac_tool_prefix"; then
6983   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_prog_RANLIB+set}" = set; then
6988   echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990   if test -n "$RANLIB"; then
6991   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998   for ac_exec_ext in '' $ac_executable_extensions; do
6999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 RANLIB=$ac_cv_prog_RANLIB
7011 if test -n "$RANLIB"; then
7012   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7013 echo "${ECHO_T}$RANLIB" >&6; }
7014 else
7015   { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7017 fi
7018
7019
7020 fi
7021 if test -z "$ac_cv_prog_RANLIB"; then
7022   ac_ct_RANLIB=$RANLIB
7023   # Extract the first word of "ranlib", so it can be a program name with args.
7024 set dummy ranlib; ac_word=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   if test -n "$ac_ct_RANLIB"; then
7031   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038   for ac_exec_ext in '' $ac_executable_extensions; do
7039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7040     ac_cv_prog_ac_ct_RANLIB="ranlib"
7041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045 done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7051 if test -n "$ac_ct_RANLIB"; then
7052   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7053 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7054 else
7055   { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7057 fi
7058
7059   if test "x$ac_ct_RANLIB" = x; then
7060     RANLIB=":"
7061   else
7062     case $cross_compiling:$ac_tool_warned in
7063 yes:)
7064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7065 whose name does not start with the host triplet.  If you think this
7066 configuration is useful to you, please write to autoconf@gnu.org." >&5
7067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7068 whose name does not start with the host triplet.  If you think this
7069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7070 ac_tool_warned=yes ;;
7071 esac
7072     RANLIB=$ac_ct_RANLIB
7073   fi
7074 else
7075   RANLIB="$ac_cv_prog_RANLIB"
7076 fi
7077
7078 if test -n "$ac_tool_prefix"; then
7079   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}ar; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_prog_AR+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   if test -n "$AR"; then
7087   ac_cv_prog_AR="$AR" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094   for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_prog_AR="${ac_tool_prefix}ar"
7097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 AR=$ac_cv_prog_AR
7107 if test -n "$AR"; then
7108   { echo "$as_me:$LINENO: result: $AR" >&5
7109 echo "${ECHO_T}$AR" >&6; }
7110 else
7111   { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7113 fi
7114
7115
7116 fi
7117 if test -z "$ac_cv_prog_AR"; then
7118   ac_ct_AR=$AR
7119   # Extract the first word of "ar", so it can be a program name with args.
7120 set dummy ar; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   if test -n "$ac_ct_AR"; then
7127   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136     ac_cv_prog_ac_ct_AR="ar"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144 fi
7145 fi
7146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7147 if test -n "$ac_ct_AR"; then
7148   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7149 echo "${ECHO_T}$ac_ct_AR" >&6; }
7150 else
7151   { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7153 fi
7154
7155   if test "x$ac_ct_AR" = x; then
7156     AR="false"
7157   else
7158     case $cross_compiling:$ac_tool_warned in
7159 yes:)
7160 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7161 whose name does not start with the host triplet.  If you think this
7162 configuration is useful to you, please write to autoconf@gnu.org." >&5
7163 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7164 whose name does not start with the host triplet.  If you think this
7165 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7166 ac_tool_warned=yes ;;
7167 esac
7168     AR=$ac_ct_AR
7169   fi
7170 else
7171   AR="$ac_cv_prog_AR"
7172 fi
7173
7174 # Extract the first word of "rm", so it can be a program name with args.
7175 set dummy rm; ac_word=$2
7176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178 if test "${ac_cv_path_RM+set}" = set; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181   case $RM in
7182   [\\/]* | ?:[\\/]*)
7183   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7184   ;;
7185   *)
7186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7188 do
7189   IFS=$as_save_IFS
7190   test -z "$as_dir" && as_dir=.
7191   for ac_exec_ext in '' $ac_executable_extensions; do
7192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7193     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7195     break 2
7196   fi
7197 done
7198 done
7199 IFS=$as_save_IFS
7200
7201   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7202   ;;
7203 esac
7204 fi
7205 RM=$ac_cv_path_RM
7206 if test -n "$RM"; then
7207   { echo "$as_me:$LINENO: result: $RM" >&5
7208 echo "${ECHO_T}$RM" >&6; }
7209 else
7210   { echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6; }
7212 fi
7213
7214
7215 # Extract the first word of "sed", so it can be a program name with args.
7216 set dummy sed; ac_word=$2
7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219 if test "${ac_cv_path_SED+set}" = set; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   case $SED in
7223   [\\/]* | ?:[\\/]*)
7224   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7225   ;;
7226   *)
7227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232   for ac_exec_ext in '' $ac_executable_extensions; do
7233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7234     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239 done
7240 IFS=$as_save_IFS
7241
7242   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7243   ;;
7244 esac
7245 fi
7246 SED=$ac_cv_path_SED
7247 if test -n "$SED"; then
7248   { echo "$as_me:$LINENO: result: $SED" >&5
7249 echo "${ECHO_T}$SED" >&6; }
7250 else
7251   { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7253 fi
7254
7255
7256 # Extract the first word of "tar", so it can be a program name with args.
7257 set dummy tar; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_TAR+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   case $TAR in
7264   [\\/]* | ?:[\\/]*)
7265   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7266   ;;
7267   *)
7268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273   for ac_exec_ext in '' $ac_executable_extensions; do
7274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7284   ;;
7285 esac
7286 fi
7287 TAR=$ac_cv_path_TAR
7288 if test -n "$TAR"; then
7289   { echo "$as_me:$LINENO: result: $TAR" >&5
7290 echo "${ECHO_T}$TAR" >&6; }
7291 else
7292   { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7294 fi
7295
7296
7297 # Extract the first word of "pwd", so it can be a program name with args.
7298 set dummy pwd; ac_word=$2
7299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301 if test "${ac_cv_path_BINPWD+set}" = set; then
7302   echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304   case $BINPWD in
7305   [\\/]* | ?:[\\/]*)
7306   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7307   ;;
7308   *)
7309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314   for ac_exec_ext in '' $ac_executable_extensions; do
7315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7316     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318     break 2
7319   fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7325   ;;
7326 esac
7327 fi
7328 BINPWD=$ac_cv_path_BINPWD
7329 if test -n "$BINPWD"; then
7330   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7331 echo "${ECHO_T}$BINPWD" >&6; }
7332 else
7333   { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7335 fi
7336
7337
7338
7339 # Extract the first word of "Graphviz", so it can be a program name with args.
7340 set dummy Graphviz; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7344   echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346   case $GRAPHVIZ in
7347   [\\/]* | ?:[\\/]*)
7348   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7349   ;;
7350   *)
7351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356   for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7367   ;;
7368 esac
7369 fi
7370 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7371 if test -n "$GRAPHVIZ"; then
7372   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7373 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7374 else
7375   { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7377 fi
7378
7379
7380 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7381
7382 cat >>confdefs.h <<\_ACEOF
7383 #define HAVE_GRAPHVIZ 1
7384 _ACEOF
7385
7386     if test "$llvm_cv_os_type" = "MingW" ; then
7387     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7388   fi
7389
7390 cat >>confdefs.h <<_ACEOF
7391 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7392 _ACEOF
7393
7394 fi
7395 # Extract the first word of "dot", so it can be a program name with args.
7396 set dummy dot; ac_word=$2
7397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399 if test "${ac_cv_path_DOT+set}" = set; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402   case $DOT in
7403   [\\/]* | ?:[\\/]*)
7404   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7405   ;;
7406   *)
7407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410   IFS=$as_save_IFS
7411   test -z "$as_dir" && as_dir=.
7412   for ac_exec_ext in '' $ac_executable_extensions; do
7413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7414     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416     break 2
7417   fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7423   ;;
7424 esac
7425 fi
7426 DOT=$ac_cv_path_DOT
7427 if test -n "$DOT"; then
7428   { echo "$as_me:$LINENO: result: $DOT" >&5
7429 echo "${ECHO_T}$DOT" >&6; }
7430 else
7431   { echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6; }
7433 fi
7434
7435
7436 if test "$DOT" != "echo dot" ; then
7437
7438 cat >>confdefs.h <<\_ACEOF
7439 #define HAVE_DOT 1
7440 _ACEOF
7441
7442     if test "$llvm_cv_os_type" = "MingW" ; then
7443     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7444   fi
7445
7446 cat >>confdefs.h <<_ACEOF
7447 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7448 _ACEOF
7449
7450 fi
7451 # Extract the first word of "fdp", so it can be a program name with args.
7452 set dummy fdp; ac_word=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_FDP+set}" = set; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   case $FDP in
7459   [\\/]* | ?:[\\/]*)
7460   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7461   ;;
7462   *)
7463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7479   ;;
7480 esac
7481 fi
7482 FDP=$ac_cv_path_FDP
7483 if test -n "$FDP"; then
7484   { echo "$as_me:$LINENO: result: $FDP" >&5
7485 echo "${ECHO_T}$FDP" >&6; }
7486 else
7487   { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7489 fi
7490
7491
7492 if test "$FDP" != "echo fdp" ; then
7493
7494 cat >>confdefs.h <<\_ACEOF
7495 #define HAVE_FDP 1
7496 _ACEOF
7497
7498     if test "$llvm_cv_os_type" = "MingW" ; then
7499     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7500   fi
7501
7502 cat >>confdefs.h <<_ACEOF
7503 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7504 _ACEOF
7505
7506 fi
7507 # Extract the first word of "neato", so it can be a program name with args.
7508 set dummy neato; ac_word=$2
7509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511 if test "${ac_cv_path_NEATO+set}" = set; then
7512   echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514   case $NEATO in
7515   [\\/]* | ?:[\\/]*)
7516   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7517   ;;
7518   *)
7519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524   for ac_exec_ext in '' $ac_executable_extensions; do
7525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7526     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531 done
7532 IFS=$as_save_IFS
7533
7534   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7535   ;;
7536 esac
7537 fi
7538 NEATO=$ac_cv_path_NEATO
7539 if test -n "$NEATO"; then
7540   { echo "$as_me:$LINENO: result: $NEATO" >&5
7541 echo "${ECHO_T}$NEATO" >&6; }
7542 else
7543   { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7545 fi
7546
7547
7548 if test "$NEATO" != "echo neato" ; then
7549
7550 cat >>confdefs.h <<\_ACEOF
7551 #define HAVE_NEATO 1
7552 _ACEOF
7553
7554     if test "$llvm_cv_os_type" = "MingW" ; then
7555     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7556   fi
7557
7558 cat >>confdefs.h <<_ACEOF
7559 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7560 _ACEOF
7561
7562 fi
7563 # Extract the first word of "twopi", so it can be a program name with args.
7564 set dummy twopi; ac_word=$2
7565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567 if test "${ac_cv_path_TWOPI+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   case $TWOPI in
7571   [\\/]* | ?:[\\/]*)
7572   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7573   ;;
7574   *)
7575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580   for ac_exec_ext in '' $ac_executable_extensions; do
7581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7582     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7591   ;;
7592 esac
7593 fi
7594 TWOPI=$ac_cv_path_TWOPI
7595 if test -n "$TWOPI"; then
7596   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7597 echo "${ECHO_T}$TWOPI" >&6; }
7598 else
7599   { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7601 fi
7602
7603
7604 if test "$TWOPI" != "echo twopi" ; then
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_TWOPI 1
7608 _ACEOF
7609
7610     if test "$llvm_cv_os_type" = "MingW" ; then
7611     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7612   fi
7613
7614 cat >>confdefs.h <<_ACEOF
7615 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7616 _ACEOF
7617
7618 fi
7619 # Extract the first word of "circo", so it can be a program name with args.
7620 set dummy circo; ac_word=$2
7621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7623 if test "${ac_cv_path_CIRCO+set}" = set; then
7624   echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626   case $CIRCO in
7627   [\\/]* | ?:[\\/]*)
7628   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7629   ;;
7630   *)
7631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634   IFS=$as_save_IFS
7635   test -z "$as_dir" && as_dir=.
7636   for ac_exec_ext in '' $ac_executable_extensions; do
7637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7638     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640     break 2
7641   fi
7642 done
7643 done
7644 IFS=$as_save_IFS
7645
7646   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7647   ;;
7648 esac
7649 fi
7650 CIRCO=$ac_cv_path_CIRCO
7651 if test -n "$CIRCO"; then
7652   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7653 echo "${ECHO_T}$CIRCO" >&6; }
7654 else
7655   { echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6; }
7657 fi
7658
7659
7660 if test "$CIRCO" != "echo circo" ; then
7661
7662 cat >>confdefs.h <<\_ACEOF
7663 #define HAVE_CIRCO 1
7664 _ACEOF
7665
7666     if test "$llvm_cv_os_type" = "MingW" ; then
7667     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7668   fi
7669
7670 cat >>confdefs.h <<_ACEOF
7671 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7672 _ACEOF
7673
7674 fi
7675 for ac_prog in gv gsview32
7676 do
7677   # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy $ac_prog; ac_word=$2
7679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681 if test "${ac_cv_path_GV+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   case $GV in
7685   [\\/]* | ?:[\\/]*)
7686   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7687   ;;
7688   *)
7689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692   IFS=$as_save_IFS
7693   test -z "$as_dir" && as_dir=.
7694   for ac_exec_ext in '' $ac_executable_extensions; do
7695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7696     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698     break 2
7699   fi
7700 done
7701 done
7702 IFS=$as_save_IFS
7703
7704   ;;
7705 esac
7706 fi
7707 GV=$ac_cv_path_GV
7708 if test -n "$GV"; then
7709   { echo "$as_me:$LINENO: result: $GV" >&5
7710 echo "${ECHO_T}$GV" >&6; }
7711 else
7712   { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7714 fi
7715
7716
7717   test -n "$GV" && break
7718 done
7719 test -n "$GV" || GV="echo gv"
7720
7721 if test "$GV" != "echo gv" ; then
7722
7723 cat >>confdefs.h <<\_ACEOF
7724 #define HAVE_GV 1
7725 _ACEOF
7726
7727     if test "$llvm_cv_os_type" = "MingW" ; then
7728     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7729   fi
7730
7731 cat >>confdefs.h <<_ACEOF
7732 #define LLVM_PATH_GV "$GV${EXEEXT}"
7733 _ACEOF
7734
7735 fi
7736 # Extract the first word of "dotty", so it can be a program name with args.
7737 set dummy dotty; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_path_DOTTY+set}" = set; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743   case $DOTTY in
7744   [\\/]* | ?:[\\/]*)
7745   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7746   ;;
7747   *)
7748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753   for ac_exec_ext in '' $ac_executable_extensions; do
7754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7755     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760 done
7761 IFS=$as_save_IFS
7762
7763   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7764   ;;
7765 esac
7766 fi
7767 DOTTY=$ac_cv_path_DOTTY
7768 if test -n "$DOTTY"; then
7769   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7770 echo "${ECHO_T}$DOTTY" >&6; }
7771 else
7772   { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7775
7776
7777 if test "$DOTTY" != "echo dotty" ; then
7778
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_DOTTY 1
7781 _ACEOF
7782
7783     if test "$llvm_cv_os_type" = "MingW" ; then
7784     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7785   fi
7786
7787 cat >>confdefs.h <<_ACEOF
7788 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7789 _ACEOF
7790
7791 fi
7792
7793
7794 # Extract the first word of "perl", so it can be a program name with args.
7795 set dummy perl; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_path_PERL+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   case $PERL in
7802   [\\/]* | ?:[\\/]*)
7803   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7804   ;;
7805   *)
7806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811   for ac_exec_ext in '' $ac_executable_extensions; do
7812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7813     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7822   ;;
7823 esac
7824 fi
7825 PERL=$ac_cv_path_PERL
7826 if test -n "$PERL"; then
7827   { echo "$as_me:$LINENO: result: $PERL" >&5
7828 echo "${ECHO_T}$PERL" >&6; }
7829 else
7830   { echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6; }
7832 fi
7833
7834
7835 if test "$PERL" != "none"; then
7836   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7837 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7838   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7839     { echo "$as_me:$LINENO: result: yes" >&5
7840 echo "${ECHO_T}yes" >&6; }
7841   else
7842     PERL=none
7843     { echo "$as_me:$LINENO: result: not found" >&5
7844 echo "${ECHO_T}not found" >&6; }
7845   fi
7846 fi
7847
7848
7849 if test x"$PERL" = xnone; then
7850    HAVE_PERL=0
7851
7852    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7853 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7854    { (exit 1); exit 1; }; }
7855 else
7856    HAVE_PERL=1
7857
7858 fi
7859
7860 # Find a good install program.  We prefer a C program (faster),
7861 # so one script is as good as another.  But avoid the broken or
7862 # incompatible versions:
7863 # SysV /etc/install, /usr/sbin/install
7864 # SunOS /usr/etc/install
7865 # IRIX /sbin/install
7866 # AIX /bin/install
7867 # AmigaOS /C/install, which installs bootblocks on floppy discs
7868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7871 # OS/2's system install, which has a completely different semantic
7872 # ./install, which can be erroneously created by make from ./install.sh.
7873 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7874 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7875 if test -z "$INSTALL"; then
7876 if test "${ac_cv_path_install+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7881 do
7882   IFS=$as_save_IFS
7883   test -z "$as_dir" && as_dir=.
7884   # Account for people who put trailing slashes in PATH elements.
7885 case $as_dir/ in
7886   ./ | .// | /cC/* | \
7887   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7888   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7889   /usr/ucb/* ) ;;
7890   *)
7891     # OSF1 and SCO ODT 3.0 have their own names for install.
7892     # Don't use installbsd from OSF since it installs stuff as root
7893     # by default.
7894     for ac_prog in ginstall scoinst install; do
7895       for ac_exec_ext in '' $ac_executable_extensions; do
7896         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7897           if test $ac_prog = install &&
7898             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7899             # AIX install.  It has an incompatible calling convention.
7900             :
7901           elif test $ac_prog = install &&
7902             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7903             # program-specific install script used by HP pwplus--don't use.
7904             :
7905           else
7906             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7907             break 3
7908           fi
7909         fi
7910       done
7911     done
7912     ;;
7913 esac
7914 done
7915 IFS=$as_save_IFS
7916
7917
7918 fi
7919   if test "${ac_cv_path_install+set}" = set; then
7920     INSTALL=$ac_cv_path_install
7921   else
7922     # As a last resort, use the slow shell script.  Don't cache a
7923     # value for INSTALL within a source directory, because that will
7924     # break other packages using the cache if that directory is
7925     # removed, or if the value is a relative name.
7926     INSTALL=$ac_install_sh
7927   fi
7928 fi
7929 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7930 echo "${ECHO_T}$INSTALL" >&6; }
7931
7932 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7933 # It thinks the first close brace ends the variable substitution.
7934 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7935
7936 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7937
7938 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7939
7940
7941 # Extract the first word of "bzip2", so it can be a program name with args.
7942 set dummy bzip2; ac_word=$2
7943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7945 if test "${ac_cv_path_BZIP2+set}" = set; then
7946   echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948   case $BZIP2 in
7949   [\\/]* | ?:[\\/]*)
7950   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7951   ;;
7952   *)
7953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958   for ac_exec_ext in '' $ac_executable_extensions; do
7959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7960     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965 done
7966 IFS=$as_save_IFS
7967
7968   ;;
7969 esac
7970 fi
7971 BZIP2=$ac_cv_path_BZIP2
7972 if test -n "$BZIP2"; then
7973   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7974 echo "${ECHO_T}$BZIP2" >&6; }
7975 else
7976   { echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6; }
7978 fi
7979
7980
7981 # Extract the first word of "doxygen", so it can be a program name with args.
7982 set dummy doxygen; ac_word=$2
7983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7985 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   case $DOXYGEN in
7989   [\\/]* | ?:[\\/]*)
7990   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7991   ;;
7992   *)
7993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996   IFS=$as_save_IFS
7997   test -z "$as_dir" && as_dir=.
7998   for ac_exec_ext in '' $ac_executable_extensions; do
7999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8000     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002     break 2
8003   fi
8004 done
8005 done
8006 IFS=$as_save_IFS
8007
8008   ;;
8009 esac
8010 fi
8011 DOXYGEN=$ac_cv_path_DOXYGEN
8012 if test -n "$DOXYGEN"; then
8013   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8014 echo "${ECHO_T}$DOXYGEN" >&6; }
8015 else
8016   { echo "$as_me:$LINENO: result: no" >&5
8017 echo "${ECHO_T}no" >&6; }
8018 fi
8019
8020
8021 # Extract the first word of "groff", so it can be a program name with args.
8022 set dummy groff; ac_word=$2
8023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8025 if test "${ac_cv_path_GROFF+set}" = set; then
8026   echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028   case $GROFF in
8029   [\\/]* | ?:[\\/]*)
8030   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8031   ;;
8032   *)
8033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036   IFS=$as_save_IFS
8037   test -z "$as_dir" && as_dir=.
8038   for ac_exec_ext in '' $ac_executable_extensions; do
8039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8040     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8042     break 2
8043   fi
8044 done
8045 done
8046 IFS=$as_save_IFS
8047
8048   ;;
8049 esac
8050 fi
8051 GROFF=$ac_cv_path_GROFF
8052 if test -n "$GROFF"; then
8053   { echo "$as_me:$LINENO: result: $GROFF" >&5
8054 echo "${ECHO_T}$GROFF" >&6; }
8055 else
8056   { echo "$as_me:$LINENO: result: no" >&5
8057 echo "${ECHO_T}no" >&6; }
8058 fi
8059
8060
8061 # Extract the first word of "gzip", so it can be a program name with args.
8062 set dummy gzip; ac_word=$2
8063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8065 if test "${ac_cv_path_GZIP+set}" = set; then
8066   echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068   case $GZIP in
8069   [\\/]* | ?:[\\/]*)
8070   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8071   ;;
8072   *)
8073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076   IFS=$as_save_IFS
8077   test -z "$as_dir" && as_dir=.
8078   for ac_exec_ext in '' $ac_executable_extensions; do
8079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8080     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8082     break 2
8083   fi
8084 done
8085 done
8086 IFS=$as_save_IFS
8087
8088   ;;
8089 esac
8090 fi
8091 GZIP=$ac_cv_path_GZIP
8092 if test -n "$GZIP"; then
8093   { echo "$as_me:$LINENO: result: $GZIP" >&5
8094 echo "${ECHO_T}$GZIP" >&6; }
8095 else
8096   { echo "$as_me:$LINENO: result: no" >&5
8097 echo "${ECHO_T}no" >&6; }
8098 fi
8099
8100
8101 # Extract the first word of "pod2html", so it can be a program name with args.
8102 set dummy pod2html; ac_word=$2
8103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8105 if test "${ac_cv_path_POD2HTML+set}" = set; then
8106   echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108   case $POD2HTML in
8109   [\\/]* | ?:[\\/]*)
8110   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8111   ;;
8112   *)
8113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8115 do
8116   IFS=$as_save_IFS
8117   test -z "$as_dir" && as_dir=.
8118   for ac_exec_ext in '' $ac_executable_extensions; do
8119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8120     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122     break 2
8123   fi
8124 done
8125 done
8126 IFS=$as_save_IFS
8127
8128   ;;
8129 esac
8130 fi
8131 POD2HTML=$ac_cv_path_POD2HTML
8132 if test -n "$POD2HTML"; then
8133   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8134 echo "${ECHO_T}$POD2HTML" >&6; }
8135 else
8136   { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8138 fi
8139
8140
8141 # Extract the first word of "pod2man", so it can be a program name with args.
8142 set dummy pod2man; ac_word=$2
8143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8145 if test "${ac_cv_path_POD2MAN+set}" = set; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148   case $POD2MAN in
8149   [\\/]* | ?:[\\/]*)
8150   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8151   ;;
8152   *)
8153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8155 do
8156   IFS=$as_save_IFS
8157   test -z "$as_dir" && as_dir=.
8158   for ac_exec_ext in '' $ac_executable_extensions; do
8159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8160     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8162     break 2
8163   fi
8164 done
8165 done
8166 IFS=$as_save_IFS
8167
8168   ;;
8169 esac
8170 fi
8171 POD2MAN=$ac_cv_path_POD2MAN
8172 if test -n "$POD2MAN"; then
8173   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8174 echo "${ECHO_T}$POD2MAN" >&6; }
8175 else
8176   { echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6; }
8178 fi
8179
8180
8181 # Extract the first word of "runtest", so it can be a program name with args.
8182 set dummy runtest; ac_word=$2
8183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8185 if test "${ac_cv_path_RUNTEST+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   case $RUNTEST in
8189   [\\/]* | ?:[\\/]*)
8190   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8191   ;;
8192   *)
8193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196   IFS=$as_save_IFS
8197   test -z "$as_dir" && as_dir=.
8198   for ac_exec_ext in '' $ac_executable_extensions; do
8199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8200     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203   fi
8204 done
8205 done
8206 IFS=$as_save_IFS
8207
8208   ;;
8209 esac
8210 fi
8211 RUNTEST=$ac_cv_path_RUNTEST
8212 if test -n "$RUNTEST"; then
8213   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8214 echo "${ECHO_T}$RUNTEST" >&6; }
8215 else
8216   { echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6; }
8218 fi
8219
8220
8221
8222 no_itcl=true
8223 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8224 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8225
8226 # Check whether --with-tclinclude was given.
8227 if test "${with_tclinclude+set}" = set; then
8228   withval=$with_tclinclude; with_tclinclude=${withval}
8229 else
8230   with_tclinclude=''
8231 fi
8232
8233 if test "${ac_cv_path_tclsh+set}" = set; then
8234   echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236
8237 if test x"${with_tclinclude}" != x ; then
8238   if test -f ${with_tclinclude}/tclsh ; then
8239     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8240   elif test -f ${with_tclinclude}/src/tclsh ; then
8241     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8242   else
8243     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8244 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8245    { (exit 1); exit 1; }; }
8246   fi
8247 fi
8248 fi
8249
8250
8251 if test x"${ac_cv_path_tclsh}" = x ; then
8252   { echo "$as_me:$LINENO: result: none" >&5
8253 echo "${ECHO_T}none" >&6; }
8254   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
8255 do
8256   # Extract the first word of "$ac_prog", so it can be a program name with args.
8257 set dummy $ac_prog; ac_word=$2
8258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8260 if test "${ac_cv_path_TCLSH+set}" = set; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263   case $TCLSH in
8264   [\\/]* | ?:[\\/]*)
8265   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8266   ;;
8267   *)
8268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271   IFS=$as_save_IFS
8272   test -z "$as_dir" && as_dir=.
8273   for ac_exec_ext in '' $ac_executable_extensions; do
8274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8275     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277     break 2
8278   fi
8279 done
8280 done
8281 IFS=$as_save_IFS
8282
8283   ;;
8284 esac
8285 fi
8286 TCLSH=$ac_cv_path_TCLSH
8287 if test -n "$TCLSH"; then
8288   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8289 echo "${ECHO_T}$TCLSH" >&6; }
8290 else
8291   { echo "$as_me:$LINENO: result: no" >&5
8292 echo "${ECHO_T}no" >&6; }
8293 fi
8294
8295
8296   test -n "$TCLSH" && break
8297 done
8298
8299   if test x"${TCLSH}" = x ; then
8300     ac_cv_path_tclsh='';
8301   else
8302     ac_cv_path_tclsh="${TCLSH}";
8303   fi
8304 else
8305   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8306 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8307   TCLSH="${ac_cv_path_tclsh}"
8308
8309 fi
8310
8311 # Extract the first word of "zip", so it can be a program name with args.
8312 set dummy zip; ac_word=$2
8313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8315 if test "${ac_cv_path_ZIP+set}" = set; then
8316   echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318   case $ZIP in
8319   [\\/]* | ?:[\\/]*)
8320   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8321   ;;
8322   *)
8323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8325 do
8326   IFS=$as_save_IFS
8327   test -z "$as_dir" && as_dir=.
8328   for ac_exec_ext in '' $ac_executable_extensions; do
8329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8330     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8332     break 2
8333   fi
8334 done
8335 done
8336 IFS=$as_save_IFS
8337
8338   ;;
8339 esac
8340 fi
8341 ZIP=$ac_cv_path_ZIP
8342 if test -n "$ZIP"; then
8343   { echo "$as_me:$LINENO: result: $ZIP" >&5
8344 echo "${ECHO_T}$ZIP" >&6; }
8345 else
8346   { echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6; }
8348 fi
8349
8350
8351 for ac_prog in ocamlc
8352 do
8353   # Extract the first word of "$ac_prog", so it can be a program name with args.
8354 set dummy $ac_prog; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_path_OCAMLC+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   case $OCAMLC in
8361   [\\/]* | ?:[\\/]*)
8362   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8363   ;;
8364   *)
8365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8367 do
8368   IFS=$as_save_IFS
8369   test -z "$as_dir" && as_dir=.
8370   for ac_exec_ext in '' $ac_executable_extensions; do
8371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8372     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8374     break 2
8375   fi
8376 done
8377 done
8378 IFS=$as_save_IFS
8379
8380   ;;
8381 esac
8382 fi
8383 OCAMLC=$ac_cv_path_OCAMLC
8384 if test -n "$OCAMLC"; then
8385   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8386 echo "${ECHO_T}$OCAMLC" >&6; }
8387 else
8388   { echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6; }
8390 fi
8391
8392
8393   test -n "$OCAMLC" && break
8394 done
8395
8396 for ac_prog in ocamlopt
8397 do
8398   # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8403   echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405   case $OCAMLOPT in
8406   [\\/]* | ?:[\\/]*)
8407   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8408   ;;
8409   *)
8410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415   for ac_exec_ext in '' $ac_executable_extensions; do
8416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8417     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419     break 2
8420   fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425   ;;
8426 esac
8427 fi
8428 OCAMLOPT=$ac_cv_path_OCAMLOPT
8429 if test -n "$OCAMLOPT"; then
8430   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8431 echo "${ECHO_T}$OCAMLOPT" >&6; }
8432 else
8433   { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8435 fi
8436
8437
8438   test -n "$OCAMLOPT" && break
8439 done
8440
8441 for ac_prog in ocamldep
8442 do
8443   # Extract the first word of "$ac_prog", so it can be a program name with args.
8444 set dummy $ac_prog; ac_word=$2
8445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8447 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8448   echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450   case $OCAMLDEP in
8451   [\\/]* | ?:[\\/]*)
8452   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8453   ;;
8454   *)
8455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8457 do
8458   IFS=$as_save_IFS
8459   test -z "$as_dir" && as_dir=.
8460   for ac_exec_ext in '' $ac_executable_extensions; do
8461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8462     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8464     break 2
8465   fi
8466 done
8467 done
8468 IFS=$as_save_IFS
8469
8470   ;;
8471 esac
8472 fi
8473 OCAMLDEP=$ac_cv_path_OCAMLDEP
8474 if test -n "$OCAMLDEP"; then
8475   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8476 echo "${ECHO_T}$OCAMLDEP" >&6; }
8477 else
8478   { echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6; }
8480 fi
8481
8482
8483   test -n "$OCAMLDEP" && break
8484 done
8485
8486 for ac_prog in ocamldoc
8487 do
8488   # Extract the first word of "$ac_prog", so it can be a program name with args.
8489 set dummy $ac_prog; ac_word=$2
8490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8492 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   case $OCAMLDOC in
8496   [\\/]* | ?:[\\/]*)
8497   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8498   ;;
8499   *)
8500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8502 do
8503   IFS=$as_save_IFS
8504   test -z "$as_dir" && as_dir=.
8505   for ac_exec_ext in '' $ac_executable_extensions; do
8506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8507     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509     break 2
8510   fi
8511 done
8512 done
8513 IFS=$as_save_IFS
8514
8515   ;;
8516 esac
8517 fi
8518 OCAMLDOC=$ac_cv_path_OCAMLDOC
8519 if test -n "$OCAMLDOC"; then
8520   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8521 echo "${ECHO_T}$OCAMLDOC" >&6; }
8522 else
8523   { echo "$as_me:$LINENO: result: no" >&5
8524 echo "${ECHO_T}no" >&6; }
8525 fi
8526
8527
8528   test -n "$OCAMLDOC" && break
8529 done
8530
8531 for ac_prog in gas as
8532 do
8533   # Extract the first word of "$ac_prog", so it can be a program name with args.
8534 set dummy $ac_prog; ac_word=$2
8535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8537 if test "${ac_cv_path_GAS+set}" = set; then
8538   echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540   case $GAS in
8541   [\\/]* | ?:[\\/]*)
8542   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8543   ;;
8544   *)
8545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8547 do
8548   IFS=$as_save_IFS
8549   test -z "$as_dir" && as_dir=.
8550   for ac_exec_ext in '' $ac_executable_extensions; do
8551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8552     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8554     break 2
8555   fi
8556 done
8557 done
8558 IFS=$as_save_IFS
8559
8560   ;;
8561 esac
8562 fi
8563 GAS=$ac_cv_path_GAS
8564 if test -n "$GAS"; then
8565   { echo "$as_me:$LINENO: result: $GAS" >&5
8566 echo "${ECHO_T}$GAS" >&6; }
8567 else
8568   { echo "$as_me:$LINENO: result: no" >&5
8569 echo "${ECHO_T}no" >&6; }
8570 fi
8571
8572
8573   test -n "$GAS" && break
8574 done
8575
8576
8577 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8578 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8579 if test "${llvm_cv_link_use_r+set}" = set; then
8580   echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582    ac_ext=c
8583 ac_cpp='$CPP $CPPFLAGS'
8584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8587
8588   oldcflags="$CFLAGS"
8589   CFLAGS="$CFLAGS -Wl,-R."
8590   cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596
8597 int
8598 main ()
8599 {
8600 int main() { return 0; }
8601   ;
8602   return 0;
8603 }
8604 _ACEOF
8605 rm -f conftest.$ac_objext conftest$ac_exeext
8606 if { (ac_try="$ac_link"
8607 case "(($ac_try" in
8608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609   *) ac_try_echo=$ac_try;;
8610 esac
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612   (eval "$ac_link") 2>conftest.er1
8613   ac_status=$?
8614   grep -v '^ *+' conftest.er1 >conftest.err
8615   rm -f conftest.er1
8616   cat conftest.err >&5
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } &&
8619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620   { (case "(($ac_try" in
8621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622   *) ac_try_echo=$ac_try;;
8623 esac
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625   (eval "$ac_try") 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); }; } &&
8629          { ac_try='test -s conftest$ac_exeext'
8630   { (case "(($ac_try" in
8631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632   *) ac_try_echo=$ac_try;;
8633 esac
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635   (eval "$ac_try") 2>&5
8636   ac_status=$?
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); }; }; then
8639   llvm_cv_link_use_r=yes
8640 else
8641   echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644         llvm_cv_link_use_r=no
8645 fi
8646
8647 rm -f core conftest.err conftest.$ac_objext \
8648       conftest$ac_exeext conftest.$ac_ext
8649   CFLAGS="$oldcflags"
8650   ac_ext=c
8651 ac_cpp='$CPP $CPPFLAGS'
8652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8655
8656
8657 fi
8658 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8659 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8660 if test "$llvm_cv_link_use_r" = yes ; then
8661
8662 cat >>confdefs.h <<\_ACEOF
8663 #define HAVE_LINK_R 1
8664 _ACEOF
8665
8666   fi
8667
8668
8669 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8670 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8671 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8672   echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674    ac_ext=c
8675 ac_cpp='$CPP $CPPFLAGS'
8676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8679
8680   oldcflags="$CFLAGS"
8681   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8682   cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h.  */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h.  */
8688
8689 int
8690 main ()
8691 {
8692 int main() { return 0; }
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 rm -f conftest.$ac_objext conftest$ac_exeext
8698 if { (ac_try="$ac_link"
8699 case "(($ac_try" in
8700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701   *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704   (eval "$ac_link") 2>conftest.er1
8705   ac_status=$?
8706   grep -v '^ *+' conftest.er1 >conftest.err
8707   rm -f conftest.er1
8708   cat conftest.err >&5
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } &&
8711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712   { (case "(($ac_try" in
8713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714   *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717   (eval "$ac_try") 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); }; } &&
8721          { ac_try='test -s conftest$ac_exeext'
8722   { (case "(($ac_try" in
8723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724   *) ac_try_echo=$ac_try;;
8725 esac
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727   (eval "$ac_try") 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; }; then
8731   llvm_cv_link_use_export_dynamic=yes
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736         llvm_cv_link_use_export_dynamic=no
8737 fi
8738
8739 rm -f core conftest.err conftest.$ac_objext \
8740       conftest$ac_exeext conftest.$ac_ext
8741   CFLAGS="$oldcflags"
8742   ac_ext=c
8743 ac_cpp='$CPP $CPPFLAGS'
8744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8747
8748
8749 fi
8750 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8751 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8752 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8753
8754 cat >>confdefs.h <<\_ACEOF
8755 #define HAVE_LINK_EXPORT_DYNAMIC 1
8756 _ACEOF
8757
8758   fi
8759
8760
8761
8762
8763 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8764 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8765 if test "${ac_cv_c_const+set}" = set; then
8766   echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768   cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h.  */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h.  */
8774
8775 int
8776 main ()
8777 {
8778 /* FIXME: Include the comments suggested by Paul. */
8779 #ifndef __cplusplus
8780   /* Ultrix mips cc rejects this.  */
8781   typedef int charset[2];
8782   const charset x;
8783   /* SunOS 4.1.1 cc rejects this.  */
8784   char const *const *ccp;
8785   char **p;
8786   /* NEC SVR4.0.2 mips cc rejects this.  */
8787   struct point {int x, y;};
8788   static struct point const zero = {0,0};
8789   /* AIX XL C 1.02.0.0 rejects this.
8790      It does not let you subtract one const X* pointer from another in
8791      an arm of an if-expression whose if-part is not a constant
8792      expression */
8793   const char *g = "string";
8794   ccp = &g + (g ? g-g : 0);
8795   /* HPUX 7.0 cc rejects these. */
8796   ++ccp;
8797   p = (char**) ccp;
8798   ccp = (char const *const *) p;
8799   { /* SCO 3.2v4 cc rejects this.  */
8800     char *t;
8801     char const *s = 0 ? (char *) 0 : (char const *) 0;
8802
8803     *t++ = 0;
8804     if (s) return 0;
8805   }
8806   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8807     int x[] = {25, 17};
8808     const int *foo = &x[0];
8809     ++foo;
8810   }
8811   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8812     typedef const int *iptr;
8813     iptr p = 0;
8814     ++p;
8815   }
8816   { /* AIX XL C 1.02.0.0 rejects this saying
8817        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8818     struct s { int j; const int *ap[3]; };
8819     struct s *b; b->j = 5;
8820   }
8821   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8822     const int foo = 10;
8823     if (!foo) return 0;
8824   }
8825   return !x[0] && !zero.x;
8826 #endif
8827
8828   ;
8829   return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext
8833 if { (ac_try="$ac_compile"
8834 case "(($ac_try" in
8835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836   *) ac_try_echo=$ac_try;;
8837 esac
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839   (eval "$ac_compile") 2>conftest.er1
8840   ac_status=$?
8841   grep -v '^ *+' conftest.er1 >conftest.err
8842   rm -f conftest.er1
8843   cat conftest.err >&5
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } &&
8846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8847   { (case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_try") 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); }; } &&
8856          { ac_try='test -s conftest.$ac_objext'
8857   { (case "(($ac_try" in
8858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859   *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862   (eval "$ac_try") 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; }; then
8866   ac_cv_c_const=yes
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871         ac_cv_c_const=no
8872 fi
8873
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875 fi
8876 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8877 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8878 if test $ac_cv_c_const = no; then
8879
8880 cat >>confdefs.h <<\_ACEOF
8881 #define const
8882 _ACEOF
8883
8884 fi
8885
8886
8887
8888
8889
8890
8891 ac_header_dirent=no
8892 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8893   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8894 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8895 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8897   echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899   cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905 #include <sys/types.h>
8906 #include <$ac_hdr>
8907
8908 int
8909 main ()
8910 {
8911 if ((DIR *) 0)
8912 return 0;
8913   ;
8914   return 0;
8915 }
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (ac_try="$ac_compile"
8919 case "(($ac_try" in
8920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921   *) ac_try_echo=$ac_try;;
8922 esac
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924   (eval "$ac_compile") 2>conftest.er1
8925   ac_status=$?
8926   grep -v '^ *+' conftest.er1 >conftest.err
8927   rm -f conftest.er1
8928   cat conftest.err >&5
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } &&
8931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8932   { (case "(($ac_try" in
8933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934   *) ac_try_echo=$ac_try;;
8935 esac
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937   (eval "$ac_try") 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; } &&
8941          { ac_try='test -s conftest.$ac_objext'
8942   { (case "(($ac_try" in
8943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944   *) ac_try_echo=$ac_try;;
8945 esac
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947   (eval "$ac_try") 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; }; then
8951   eval "$as_ac_Header=yes"
8952 else
8953   echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956         eval "$as_ac_Header=no"
8957 fi
8958
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 fi
8961 ac_res=`eval echo '${'$as_ac_Header'}'`
8962                { echo "$as_me:$LINENO: result: $ac_res" >&5
8963 echo "${ECHO_T}$ac_res" >&6; }
8964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8965   cat >>confdefs.h <<_ACEOF
8966 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8967 _ACEOF
8968
8969 ac_header_dirent=$ac_hdr; break
8970 fi
8971
8972 done
8973 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8974 if test $ac_header_dirent = dirent.h; then
8975   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8977 if test "${ac_cv_search_opendir+set}" = set; then
8978   echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980   ac_func_search_save_LIBS=$LIBS
8981 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987
8988 /* Override any GCC internal prototype to avoid an error.
8989    Use char because int might match the return type of a GCC
8990    builtin and then its argument prototype would still apply.  */
8991 #ifdef __cplusplus
8992 extern "C"
8993 #endif
8994 char opendir ();
8995 int
8996 main ()
8997 {
8998 return opendir ();
8999   ;
9000   return 0;
9001 }
9002 _ACEOF
9003 for ac_lib in '' dir; do
9004   if test -z "$ac_lib"; then
9005     ac_res="none required"
9006   else
9007     ac_res=-l$ac_lib
9008     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9009   fi
9010   rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (ac_try="$ac_link"
9012 case "(($ac_try" in
9013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9014   *) ac_try_echo=$ac_try;;
9015 esac
9016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9017   (eval "$ac_link") 2>conftest.er1
9018   ac_status=$?
9019   grep -v '^ *+' conftest.er1 >conftest.err
9020   rm -f conftest.er1
9021   cat conftest.err >&5
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); } &&
9024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9025   { (case "(($ac_try" in
9026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027   *) ac_try_echo=$ac_try;;
9028 esac
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030   (eval "$ac_try") 2>&5
9031   ac_status=$?
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); }; } &&
9034          { ac_try='test -s conftest$ac_exeext'
9035   { (case "(($ac_try" in
9036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037   *) ac_try_echo=$ac_try;;
9038 esac
9039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040   (eval "$ac_try") 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); }; }; then
9044   ac_cv_search_opendir=$ac_res
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049
9050 fi
9051
9052 rm -f core conftest.err conftest.$ac_objext \
9053       conftest$ac_exeext
9054   if test "${ac_cv_search_opendir+set}" = set; then
9055   break
9056 fi
9057 done
9058 if test "${ac_cv_search_opendir+set}" = set; then
9059   :
9060 else
9061   ac_cv_search_opendir=no
9062 fi
9063 rm conftest.$ac_ext
9064 LIBS=$ac_func_search_save_LIBS
9065 fi
9066 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9067 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9068 ac_res=$ac_cv_search_opendir
9069 if test "$ac_res" != no; then
9070   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9071
9072 fi
9073
9074 else
9075   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9076 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9077 if test "${ac_cv_search_opendir+set}" = set; then
9078   echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080   ac_func_search_save_LIBS=$LIBS
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h.  */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h.  */
9087
9088 /* Override any GCC internal prototype to avoid an error.
9089    Use char because int might match the return type of a GCC
9090    builtin and then its argument prototype would still apply.  */
9091 #ifdef __cplusplus
9092 extern "C"
9093 #endif
9094 char opendir ();
9095 int
9096 main ()
9097 {
9098 return opendir ();
9099   ;
9100   return 0;
9101 }
9102 _ACEOF
9103 for ac_lib in '' x; do
9104   if test -z "$ac_lib"; then
9105     ac_res="none required"
9106   else
9107     ac_res=-l$ac_lib
9108     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9109   fi
9110   rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (ac_try="$ac_link"
9112 case "(($ac_try" in
9113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114   *) ac_try_echo=$ac_try;;
9115 esac
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117   (eval "$ac_link") 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } &&
9124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9125   { (case "(($ac_try" in
9126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127   *) ac_try_echo=$ac_try;;
9128 esac
9129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130   (eval "$ac_try") 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; } &&
9134          { ac_try='test -s conftest$ac_exeext'
9135   { (case "(($ac_try" in
9136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137   *) ac_try_echo=$ac_try;;
9138 esac
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140   (eval "$ac_try") 2>&5
9141   ac_status=$?
9142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143   (exit $ac_status); }; }; then
9144   ac_cv_search_opendir=$ac_res
9145 else
9146   echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9148
9149
9150 fi
9151
9152 rm -f core conftest.err conftest.$ac_objext \
9153       conftest$ac_exeext
9154   if test "${ac_cv_search_opendir+set}" = set; then
9155   break
9156 fi
9157 done
9158 if test "${ac_cv_search_opendir+set}" = set; then
9159   :
9160 else
9161   ac_cv_search_opendir=no
9162 fi
9163 rm conftest.$ac_ext
9164 LIBS=$ac_func_search_save_LIBS
9165 fi
9166 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9167 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9168 ac_res=$ac_cv_search_opendir
9169 if test "$ac_res" != no; then
9170   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9171
9172 fi
9173
9174 fi
9175
9176
9177 for ac_header in dlfcn.h
9178 do
9179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9181   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 fi
9186 ac_res=`eval echo '${'$as_ac_Header'}'`
9187                { echo "$as_me:$LINENO: result: $ac_res" >&5
9188 echo "${ECHO_T}$ac_res" >&6; }
9189 else
9190   # Is the header compilable?
9191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h.  */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h.  */
9199 $ac_includes_default
9200 #include <$ac_header>
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (ac_try="$ac_compile"
9204 case "(($ac_try" in
9205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206   *) ac_try_echo=$ac_try;;
9207 esac
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209   (eval "$ac_compile") 2>conftest.er1
9210   ac_status=$?
9211   grep -v '^ *+' conftest.er1 >conftest.err
9212   rm -f conftest.er1
9213   cat conftest.err >&5
9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); } &&
9216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9217   { (case "(($ac_try" in
9218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219   *) ac_try_echo=$ac_try;;
9220 esac
9221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222   (eval "$ac_try") 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); }; } &&
9226          { ac_try='test -s conftest.$ac_objext'
9227   { (case "(($ac_try" in
9228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229   *) ac_try_echo=$ac_try;;
9230 esac
9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232   (eval "$ac_try") 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; }; then
9236   ac_header_compiler=yes
9237 else
9238   echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9240
9241         ac_header_compiler=no
9242 fi
9243
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246 echo "${ECHO_T}$ac_header_compiler" >&6; }
9247
9248 # Is the header present?
9249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h.  */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h.  */
9257 #include <$ac_header>
9258 _ACEOF
9259 if { (ac_try="$ac_cpp conftest.$ac_ext"
9260 case "(($ac_try" in
9261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262   *) ac_try_echo=$ac_try;;
9263 esac
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9266   ac_status=$?
9267   grep -v '^ *+' conftest.er1 >conftest.err
9268   rm -f conftest.er1
9269   cat conftest.err >&5
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); } >/dev/null; then
9272   if test -s conftest.err; then
9273     ac_cpp_err=$ac_c_preproc_warn_flag
9274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9275   else
9276     ac_cpp_err=
9277   fi
9278 else
9279   ac_cpp_err=yes
9280 fi
9281 if test -z "$ac_cpp_err"; then
9282   ac_header_preproc=yes
9283 else
9284   echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9286
9287   ac_header_preproc=no
9288 fi
9289
9290 rm -f conftest.err conftest.$ac_ext
9291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6; }
9293
9294 # So?  What about this header?
9295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9296   yes:no: )
9297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9301     ac_header_preproc=yes
9302     ;;
9303   no:yes:* )
9304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9316     ( cat <<\_ASBOX
9317 ## ----------------------------------- ##
9318 ## Report this to llvmbugs@cs.uiuc.edu ##
9319 ## ----------------------------------- ##
9320 _ASBOX
9321      ) | sed "s/^/$as_me: WARNING:     /" >&2
9322     ;;
9323 esac
9324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329   eval "$as_ac_Header=\$ac_header_preproc"
9330 fi
9331 ac_res=`eval echo '${'$as_ac_Header'}'`
9332                { echo "$as_me:$LINENO: result: $ac_res" >&5
9333 echo "${ECHO_T}$ac_res" >&6; }
9334
9335 fi
9336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9337   cat >>confdefs.h <<_ACEOF
9338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9339 _ACEOF
9340
9341 fi
9342
9343 done
9344
9345 # Check whether --enable-ltdl-install was given.
9346 if test "${enable_ltdl_install+set}" = set; then
9347   enableval=$enable_ltdl_install;
9348 fi
9349
9350
9351
9352
9353 if test x"${enable_ltdl_install-no}" != xno; then
9354   INSTALL_LTDL_TRUE=
9355   INSTALL_LTDL_FALSE='#'
9356 else
9357   INSTALL_LTDL_TRUE='#'
9358   INSTALL_LTDL_FALSE=
9359 fi
9360
9361
9362
9363 if test x"${enable_ltdl_convenience-no}" != xno; then
9364   CONVENIENCE_LTDL_TRUE=
9365   CONVENIENCE_LTDL_FALSE='#'
9366 else
9367   CONVENIENCE_LTDL_TRUE='#'
9368   CONVENIENCE_LTDL_FALSE=
9369 fi
9370
9371
9372 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9373 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9374 library_names_spec=
9375 libname_spec='lib$name'
9376 soname_spec=
9377 shrext_cmds=".so"
9378 postinstall_cmds=
9379 postuninstall_cmds=
9380 finish_cmds=
9381 finish_eval=
9382 shlibpath_var=
9383 shlibpath_overrides_runpath=unknown
9384 version_type=none
9385 dynamic_linker="$host_os ld.so"
9386 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9387 if test "$GCC" = yes; then
9388   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9389   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9390     # if the path contains ";" then we assume it to be the separator
9391     # otherwise default to the standard path separator (i.e. ":") - it is
9392     # assumed that no part of a normal pathname contains ";" but that should
9393     # okay in the real world where ";" in dirpaths is itself problematic.
9394     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9395   else
9396     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9397   fi
9398 else
9399   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9400 fi
9401 need_lib_prefix=unknown
9402 hardcode_into_libs=no
9403
9404 # when you set need_version to no, make sure it does not cause -set_version
9405 # flags to be left without arguments
9406 need_version=unknown
9407
9408 case $host_os in
9409 aix3*)
9410   version_type=linux
9411   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9412   shlibpath_var=LIBPATH
9413
9414   # AIX 3 has no versioning support, so we append a major version to the name.
9415   soname_spec='${libname}${release}${shared_ext}$major'
9416   ;;
9417
9418 aix4* | aix5*)
9419   version_type=linux
9420   need_lib_prefix=no
9421   need_version=no
9422   hardcode_into_libs=yes
9423   if test "$host_cpu" = ia64; then
9424     # AIX 5 supports IA64
9425     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9426     shlibpath_var=LD_LIBRARY_PATH
9427   else
9428     # With GCC up to 2.95.x, collect2 would create an import file
9429     # for dependence libraries.  The import file would start with
9430     # the line `#! .'.  This would cause the generated library to
9431     # depend on `.', always an invalid library.  This was fixed in
9432     # development snapshots of GCC prior to 3.0.
9433     case $host_os in
9434       aix4 | aix4.[01] | aix4.[01].*)
9435       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9436            echo ' yes '
9437            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9438         :
9439       else
9440         can_build_shared=no
9441       fi
9442       ;;
9443     esac
9444     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9445     # soname into executable. Probably we can add versioning support to
9446     # collect2, so additional links can be useful in future.
9447     if test "$aix_use_runtimelinking" = yes; then
9448       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9449       # instead of lib<name>.a to let people know that these are not
9450       # typical AIX shared libraries.
9451       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452     else
9453       # We preserve .a as extension for shared libraries through AIX4.2
9454       # and later when we are not doing run time linking.
9455       library_names_spec='${libname}${release}.a $libname.a'
9456       soname_spec='${libname}${release}${shared_ext}$major'
9457     fi
9458     shlibpath_var=LIBPATH
9459   fi
9460   ;;
9461
9462 amigaos*)
9463   library_names_spec='$libname.ixlibrary $libname.a'
9464   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9465   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'
9466   ;;
9467
9468 beos*)
9469   library_names_spec='${libname}${shared_ext}'
9470   dynamic_linker="$host_os ld.so"
9471   shlibpath_var=LIBRARY_PATH
9472   ;;
9473
9474 bsdi[45]*)
9475   version_type=linux
9476   need_version=no
9477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478   soname_spec='${libname}${release}${shared_ext}$major'
9479   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9480   shlibpath_var=LD_LIBRARY_PATH
9481   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9482   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9483   # the default ld.so.conf also contains /usr/contrib/lib and
9484   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9485   # libtool to hard-code these into programs
9486   ;;
9487
9488 cygwin* | mingw* | pw32*)
9489   version_type=windows
9490   shrext_cmds=".dll"
9491   need_version=no
9492   need_lib_prefix=no
9493
9494   case $GCC,$host_os in
9495   yes,cygwin* | yes,mingw* | yes,pw32*)
9496     library_names_spec='$libname.dll.a'
9497     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9498     postinstall_cmds='base_file=`basename \${file}`~
9499       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9500       dldir=$destdir/`dirname \$dlpath`~
9501       test -d \$dldir || mkdir -p \$dldir~
9502       $install_prog $dir/$dlname \$dldir/$dlname~
9503       chmod a+x \$dldir/$dlname'
9504     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9505       dlpath=$dir/\$dldll~
9506        $rm \$dlpath'
9507     shlibpath_overrides_runpath=yes
9508
9509     case $host_os in
9510     cygwin*)
9511       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9512       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9513       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9514       ;;
9515     mingw*)
9516       # MinGW DLLs use traditional 'lib' prefix
9517       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9518       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9519       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9520         # It is most probably a Windows format PATH printed by
9521         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9522         # path with ; separators, and with drive letters. We can handle the
9523         # drive letters (cygwin fileutils understands them), so leave them,
9524         # especially as we might pass files found there to a mingw objdump,
9525         # which wouldn't understand a cygwinified path. Ahh.
9526         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9527       else
9528         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9529       fi
9530       ;;
9531     pw32*)
9532       # pw32 DLLs use 'pw' prefix rather than 'lib'
9533       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9534       ;;
9535     esac
9536     ;;
9537
9538   *)
9539     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9540     ;;
9541   esac
9542   dynamic_linker='Win32 ld.exe'
9543   # FIXME: first we should search . and the directory the executable is in
9544   shlibpath_var=PATH
9545   ;;
9546
9547 darwin* | rhapsody*)
9548   dynamic_linker="$host_os dyld"
9549   version_type=darwin
9550   need_lib_prefix=no
9551   need_version=no
9552   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9553   soname_spec='${libname}${release}${major}$shared_ext'
9554   shlibpath_overrides_runpath=yes
9555   shlibpath_var=DYLD_LIBRARY_PATH
9556   shrext_cmds='.dylib'
9557   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9558   if test "$GCC" = yes; then
9559     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"`
9560   else
9561     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9562   fi
9563   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9564   ;;
9565
9566 dgux*)
9567   version_type=linux
9568   need_lib_prefix=no
9569   need_version=no
9570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9571   soname_spec='${libname}${release}${shared_ext}$major'
9572   shlibpath_var=LD_LIBRARY_PATH
9573   ;;
9574
9575 freebsd1*)
9576   dynamic_linker=no
9577   ;;
9578
9579 kfreebsd*-gnu)
9580   version_type=linux
9581   need_lib_prefix=no
9582   need_version=no
9583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9584   soname_spec='${libname}${release}${shared_ext}$major'
9585   shlibpath_var=LD_LIBRARY_PATH
9586   shlibpath_overrides_runpath=no
9587   hardcode_into_libs=yes
9588   dynamic_linker='GNU ld.so'
9589   ;;
9590
9591 freebsd* | dragonfly*)
9592   # DragonFly does not have aout.  When/if they implement a new
9593   # versioning mechanism, adjust this.
9594   if test -x /usr/bin/objformat; then
9595     objformat=`/usr/bin/objformat`
9596   else
9597     case $host_os in
9598     freebsd[123]*) objformat=aout ;;
9599     *) objformat=elf ;;
9600     esac
9601   fi
9602   version_type=freebsd-$objformat
9603   case $version_type in
9604     freebsd-elf*)
9605       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9606       need_version=no
9607       need_lib_prefix=no
9608       ;;
9609     freebsd-*)
9610       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9611       need_version=yes
9612       ;;
9613   esac
9614   shlibpath_var=LD_LIBRARY_PATH
9615   case $host_os in
9616   freebsd2*)
9617     shlibpath_overrides_runpath=yes
9618     ;;
9619   freebsd3.[01]* | freebsdelf3.[01]*)
9620     shlibpath_overrides_runpath=yes
9621     hardcode_into_libs=yes
9622     ;;
9623   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9624   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9625     shlibpath_overrides_runpath=no
9626     hardcode_into_libs=yes
9627     ;;
9628   freebsd*) # from 4.6 on
9629     shlibpath_overrides_runpath=yes
9630     hardcode_into_libs=yes
9631     ;;
9632   esac
9633   ;;
9634
9635 gnu*)
9636   version_type=linux
9637   need_lib_prefix=no
9638   need_version=no
9639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9640   soname_spec='${libname}${release}${shared_ext}$major'
9641   shlibpath_var=LD_LIBRARY_PATH
9642   hardcode_into_libs=yes
9643   ;;
9644
9645 hpux9* | hpux10* | hpux11*)
9646   # Give a soname corresponding to the major version so that dld.sl refuses to
9647   # link against other versions.
9648   version_type=sunos
9649   need_lib_prefix=no
9650   need_version=no
9651   case $host_cpu in
9652   ia64*)
9653     shrext_cmds='.so'
9654     hardcode_into_libs=yes
9655     dynamic_linker="$host_os dld.so"
9656     shlibpath_var=LD_LIBRARY_PATH
9657     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659     soname_spec='${libname}${release}${shared_ext}$major'
9660     if test "X$HPUX_IA64_MODE" = X32; then
9661       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9662     else
9663       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9664     fi
9665     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9666     ;;
9667    hppa*64*)
9668      shrext_cmds='.sl'
9669      hardcode_into_libs=yes
9670      dynamic_linker="$host_os dld.sl"
9671      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9672      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9673      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674      soname_spec='${libname}${release}${shared_ext}$major'
9675      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9676      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9677      ;;
9678    *)
9679     shrext_cmds='.sl'
9680     dynamic_linker="$host_os dld.sl"
9681     shlibpath_var=SHLIB_PATH
9682     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684     soname_spec='${libname}${release}${shared_ext}$major'
9685     ;;
9686   esac
9687   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9688   postinstall_cmds='chmod 555 $lib'
9689   ;;
9690
9691 interix3*)
9692   version_type=linux
9693   need_lib_prefix=no
9694   need_version=no
9695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9696   soname_spec='${libname}${release}${shared_ext}$major'
9697   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9698   shlibpath_var=LD_LIBRARY_PATH
9699   shlibpath_overrides_runpath=no
9700   hardcode_into_libs=yes
9701   ;;
9702
9703 irix5* | irix6* | nonstopux*)
9704   case $host_os in
9705     nonstopux*) version_type=nonstopux ;;
9706     *)
9707         if test "$lt_cv_prog_gnu_ld" = yes; then
9708                 version_type=linux
9709         else
9710                 version_type=irix
9711         fi ;;
9712   esac
9713   need_lib_prefix=no
9714   need_version=no
9715   soname_spec='${libname}${release}${shared_ext}$major'
9716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9717   case $host_os in
9718   irix5* | nonstopux*)
9719     libsuff= shlibsuff=
9720     ;;
9721   *)
9722     case $LD in # libtool.m4 will add one of these switches to LD
9723     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9724       libsuff= shlibsuff= libmagic=32-bit;;
9725     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9726       libsuff=32 shlibsuff=N32 libmagic=N32;;
9727     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9728       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9729     *) libsuff= shlibsuff= libmagic=never-match;;
9730     esac
9731     ;;
9732   esac
9733   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9734   shlibpath_overrides_runpath=no
9735   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9736   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9737   hardcode_into_libs=yes
9738   ;;
9739
9740 # No shared lib support for Linux oldld, aout, or coff.
9741 linux*oldld* | linux*aout* | linux*coff*)
9742   dynamic_linker=no
9743   ;;
9744
9745 # This must be Linux ELF.
9746 linux*)
9747   version_type=linux
9748   need_lib_prefix=no
9749   need_version=no
9750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751   soname_spec='${libname}${release}${shared_ext}$major'
9752   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9753   shlibpath_var=LD_LIBRARY_PATH
9754   shlibpath_overrides_runpath=no
9755   # This implies no fast_install, which is unacceptable.
9756   # Some rework will be needed to allow for fast_install
9757   # before this can be enabled.
9758   hardcode_into_libs=yes
9759
9760   # Append ld.so.conf contents to the search path
9761   if test -f /etc/ld.so.conf; then
9762     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' ' '`
9763     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9764   fi
9765
9766   # We used to test for /lib/ld.so.1 and disable shared libraries on
9767   # powerpc, because MkLinux only supported shared libraries with the
9768   # GNU dynamic linker.  Since this was broken with cross compilers,
9769   # most powerpc-linux boxes support dynamic linking these days and
9770   # people can always --disable-shared, the test was removed, and we
9771   # assume the GNU/Linux dynamic linker is in use.
9772   dynamic_linker='GNU/Linux ld.so'
9773   ;;
9774
9775 knetbsd*-gnu)
9776   version_type=linux
9777   need_lib_prefix=no
9778   need_version=no
9779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9780   soname_spec='${libname}${release}${shared_ext}$major'
9781   shlibpath_var=LD_LIBRARY_PATH
9782   shlibpath_overrides_runpath=no
9783   hardcode_into_libs=yes
9784   dynamic_linker='GNU ld.so'
9785   ;;
9786
9787 netbsd*)
9788   version_type=sunos
9789   need_lib_prefix=no
9790   need_version=no
9791   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9793     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9794     dynamic_linker='NetBSD (a.out) ld.so'
9795   else
9796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9797     soname_spec='${libname}${release}${shared_ext}$major'
9798     dynamic_linker='NetBSD ld.elf_so'
9799   fi
9800   shlibpath_var=LD_LIBRARY_PATH
9801   shlibpath_overrides_runpath=yes
9802   hardcode_into_libs=yes
9803   ;;
9804
9805 newsos6)
9806   version_type=linux
9807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808   shlibpath_var=LD_LIBRARY_PATH
9809   shlibpath_overrides_runpath=yes
9810   ;;
9811
9812 nto-qnx*)
9813   version_type=linux
9814   need_lib_prefix=no
9815   need_version=no
9816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817   soname_spec='${libname}${release}${shared_ext}$major'
9818   shlibpath_var=LD_LIBRARY_PATH
9819   shlibpath_overrides_runpath=yes
9820   ;;
9821
9822 openbsd*)
9823   version_type=sunos
9824   sys_lib_dlsearch_path_spec="/usr/lib"
9825   need_lib_prefix=no
9826   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9827   case $host_os in
9828     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9829     *)                         need_version=no  ;;
9830   esac
9831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9832   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9833   shlibpath_var=LD_LIBRARY_PATH
9834   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9835     case $host_os in
9836       openbsd2.[89] | openbsd2.[89].*)
9837         shlibpath_overrides_runpath=no
9838         ;;
9839       *)
9840         shlibpath_overrides_runpath=yes
9841         ;;
9842       esac
9843   else
9844     shlibpath_overrides_runpath=yes
9845   fi
9846   ;;
9847
9848 os2*)
9849   libname_spec='$name'
9850   shrext_cmds=".dll"
9851   need_lib_prefix=no
9852   library_names_spec='$libname${shared_ext} $libname.a'
9853   dynamic_linker='OS/2 ld.exe'
9854   shlibpath_var=LIBPATH
9855   ;;
9856
9857 osf3* | osf4* | osf5*)
9858   version_type=osf
9859   need_lib_prefix=no
9860   need_version=no
9861   soname_spec='${libname}${release}${shared_ext}$major'
9862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863   shlibpath_var=LD_LIBRARY_PATH
9864   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9865   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9866   ;;
9867
9868 solaris*)
9869   version_type=linux
9870   need_lib_prefix=no
9871   need_version=no
9872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873   soname_spec='${libname}${release}${shared_ext}$major'
9874   shlibpath_var=LD_LIBRARY_PATH
9875   shlibpath_overrides_runpath=yes
9876   hardcode_into_libs=yes
9877   # ldd complains unless libraries are executable
9878   postinstall_cmds='chmod +x $lib'
9879   ;;
9880
9881 sunos4*)
9882   version_type=sunos
9883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9884   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9885   shlibpath_var=LD_LIBRARY_PATH
9886   shlibpath_overrides_runpath=yes
9887   if test "$with_gnu_ld" = yes; then
9888     need_lib_prefix=no
9889   fi
9890   need_version=yes
9891   ;;
9892
9893 sysv4 | sysv4.3*)
9894   version_type=linux
9895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896   soname_spec='${libname}${release}${shared_ext}$major'
9897   shlibpath_var=LD_LIBRARY_PATH
9898   case $host_vendor in
9899     sni)
9900       shlibpath_overrides_runpath=no
9901       need_lib_prefix=no
9902       export_dynamic_flag_spec='${wl}-Blargedynsym'
9903       runpath_var=LD_RUN_PATH
9904       ;;
9905     siemens)
9906       need_lib_prefix=no
9907       ;;
9908     motorola)
9909       need_lib_prefix=no
9910       need_version=no
9911       shlibpath_overrides_runpath=no
9912       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9913       ;;
9914   esac
9915   ;;
9916
9917 sysv4*MP*)
9918   if test -d /usr/nec ;then
9919     version_type=linux
9920     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9921     soname_spec='$libname${shared_ext}.$major'
9922     shlibpath_var=LD_LIBRARY_PATH
9923   fi
9924   ;;
9925
9926 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9927   version_type=freebsd-elf
9928   need_lib_prefix=no
9929   need_version=no
9930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9931   soname_spec='${libname}${release}${shared_ext}$major'
9932   shlibpath_var=LD_LIBRARY_PATH
9933   hardcode_into_libs=yes
9934   if test "$with_gnu_ld" = yes; then
9935     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9936     shlibpath_overrides_runpath=no
9937   else
9938     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9939     shlibpath_overrides_runpath=yes
9940     case $host_os in
9941       sco3.2v5*)
9942         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9943         ;;
9944     esac
9945   fi
9946   sys_lib_dlsearch_path_spec='/usr/lib'
9947   ;;
9948
9949 uts4*)
9950   version_type=linux
9951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952   soname_spec='${libname}${release}${shared_ext}$major'
9953   shlibpath_var=LD_LIBRARY_PATH
9954   ;;
9955
9956 *)
9957   dynamic_linker=no
9958   ;;
9959 esac
9960 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9961 echo "${ECHO_T}$dynamic_linker" >&6; }
9962 test "$dynamic_linker" = no && can_build_shared=no
9963
9964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9965 if test "$GCC" = yes; then
9966   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9967 fi
9968
9969
9970 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9971 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9972 if test "${libltdl_cv_shlibext+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975
9976 module=yes
9977 eval libltdl_cv_shlibext=$shrext_cmds
9978
9979 fi
9980 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9981 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9982 if test -n "$libltdl_cv_shlibext"; then
9983
9984 cat >>confdefs.h <<_ACEOF
9985 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9986 _ACEOF
9987
9988 fi
9989
9990
9991 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9992 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9993 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9994   echo $ECHO_N "(cached) $ECHO_C" >&6
9995 else
9996   libltdl_cv_shlibpath_var="$shlibpath_var"
9997 fi
9998 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9999 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10000 if test -n "$libltdl_cv_shlibpath_var"; then
10001
10002 cat >>confdefs.h <<_ACEOF
10003 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10004 _ACEOF
10005
10006 fi
10007
10008
10009 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10010 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10011 if test "${libltdl_cv_sys_search_path+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10015 fi
10016 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10017 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10018 if test -n "$libltdl_cv_sys_search_path"; then
10019   sys_search_path=
10020   for dir in $libltdl_cv_sys_search_path; do
10021     if test -z "$sys_search_path"; then
10022       sys_search_path="$dir"
10023     else
10024       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10025     fi
10026   done
10027
10028 cat >>confdefs.h <<_ACEOF
10029 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10030 _ACEOF
10031
10032 fi
10033
10034 { echo "$as_me:$LINENO: checking for objdir" >&5
10035 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10036 if test "${libltdl_cv_objdir+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   libltdl_cv_objdir="$objdir"
10040   if test -n "$objdir"; then
10041     :
10042   else
10043     rm -f .libs 2>/dev/null
10044     mkdir .libs 2>/dev/null
10045     if test -d .libs; then
10046       libltdl_cv_objdir=.libs
10047     else
10048       # MS-DOS does not allow filenames that begin with a dot.
10049       libltdl_cv_objdir=_libs
10050     fi
10051   rmdir .libs 2>/dev/null
10052   fi
10053
10054 fi
10055 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10056 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10057
10058 cat >>confdefs.h <<_ACEOF
10059 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10060 _ACEOF
10061
10062
10063
10064
10065
10066
10067 # Check for command to grab the raw symbol name followed by C symbol from nm.
10068 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10069 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10070 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10071   echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073
10074 # These are sane defaults that work on at least a few old systems.
10075 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10076
10077 # Character class describing NM global symbol codes.
10078 symcode='[BCDEGRST]'
10079
10080 # Regexp to match symbols that can be accessed directly from C.
10081 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10082
10083 # Transform an extracted symbol line into a proper C declaration
10084 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10085
10086 # Transform an extracted symbol line into symbol name and symbol address
10087 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'"
10088
10089 # Define system-specific variables.
10090 case $host_os in
10091 aix*)
10092   symcode='[BCDT]'
10093   ;;
10094 cygwin* | mingw* | pw32*)
10095   symcode='[ABCDGISTW]'
10096   ;;
10097 hpux*) # Its linker distinguishes data from code symbols
10098   if test "$host_cpu" = ia64; then
10099     symcode='[ABCDEGRST]'
10100   fi
10101   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10102   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'"
10103   ;;
10104 linux*)
10105   if test "$host_cpu" = ia64; then
10106     symcode='[ABCDGIRSTW]'
10107     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10108     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'"
10109   fi
10110   ;;
10111 irix* | nonstopux*)
10112   symcode='[BCDEGRST]'
10113   ;;
10114 osf*)
10115   symcode='[BCDEGQRST]'
10116   ;;
10117 solaris*)
10118   symcode='[BDRT]'
10119   ;;
10120 sco3.2v5*)
10121   symcode='[DT]'
10122   ;;
10123 sysv4.2uw2*)
10124   symcode='[DT]'
10125   ;;
10126 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10127   symcode='[ABDT]'
10128   ;;
10129 sysv4)
10130   symcode='[DFNSTU]'
10131   ;;
10132 esac
10133
10134 # Handle CRLF in mingw tool chain
10135 opt_cr=
10136 case $build_os in
10137 mingw*)
10138   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10139   ;;
10140 esac
10141
10142 # If we're using GNU nm, then use its standard symbol codes.
10143 case `$NM -V 2>&1` in
10144 *GNU* | *'with BFD'*)
10145   symcode='[ABCDGIRSTW]' ;;
10146 esac
10147
10148 # Try without a prefix undercore, then with it.
10149 for ac_symprfx in "" "_"; do
10150
10151   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10152   symxfrm="\\1 $ac_symprfx\\2 \\2"
10153
10154   # Write the raw and C identifiers.
10155   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10156
10157   # Check to see that the pipe works correctly.
10158   pipe_works=no
10159
10160   rm -f conftest*
10161   cat > conftest.$ac_ext <<EOF
10162 #ifdef __cplusplus
10163 extern "C" {
10164 #endif
10165 char nm_test_var;
10166 void nm_test_func(){}
10167 #ifdef __cplusplus
10168 }
10169 #endif
10170 int main(){nm_test_var='a';nm_test_func();return(0);}
10171 EOF
10172
10173   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174   (eval $ac_compile) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); }; then
10178     # Now try to grab the symbols.
10179     nlist=conftest.nm
10180     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10181   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } && test -s "$nlist"; then
10185       # Try sorting and uniquifying the output.
10186       if sort "$nlist" | uniq > "$nlist"T; then
10187         mv -f "$nlist"T "$nlist"
10188       else
10189         rm -f "$nlist"T
10190       fi
10191
10192       # Make sure that we snagged all the symbols we need.
10193       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10194         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10195           cat <<EOF > conftest.$ac_ext
10196 #ifdef __cplusplus
10197 extern "C" {
10198 #endif
10199
10200 EOF
10201           # Now generate the symbol file.
10202           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10203
10204           cat <<EOF >> conftest.$ac_ext
10205 #if defined (__STDC__) && __STDC__
10206 # define lt_ptr_t void *
10207 #else
10208 # define lt_ptr_t char *
10209 # define const
10210 #endif
10211
10212 /* The mapping between symbol names and symbols. */
10213 const struct {
10214   const char *name;
10215   lt_ptr_t address;
10216 }
10217 lt_preloaded_symbols[] =
10218 {
10219 EOF
10220           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10221           cat <<\EOF >> conftest.$ac_ext
10222   {0, (lt_ptr_t) 0}
10223 };
10224
10225 #ifdef __cplusplus
10226 }
10227 #endif
10228 EOF
10229           # Now try linking the two files.
10230           mv conftest.$ac_objext conftstm.$ac_objext
10231           lt_save_LIBS="$LIBS"
10232           lt_save_CFLAGS="$CFLAGS"
10233           LIBS="conftstm.$ac_objext"
10234           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10235           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10236   (eval $ac_link) 2>&5
10237   ac_status=$?
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10240             pipe_works=yes
10241           fi
10242           LIBS="$lt_save_LIBS"
10243           CFLAGS="$lt_save_CFLAGS"
10244         else
10245           echo "cannot find nm_test_func in $nlist" >&5
10246         fi
10247       else
10248         echo "cannot find nm_test_var in $nlist" >&5
10249       fi
10250     else
10251       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10252     fi
10253   else
10254     echo "$progname: failed program was:" >&5
10255     cat conftest.$ac_ext >&5
10256   fi
10257   rm -f conftest* conftst*
10258
10259   # Do not use the global_symbol_pipe unless it works.
10260   if test "$pipe_works" = yes; then
10261     break
10262   else
10263     lt_cv_sys_global_symbol_pipe=
10264   fi
10265 done
10266
10267 fi
10268
10269 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10270   lt_cv_sys_global_symbol_to_cdecl=
10271 fi
10272 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10273   { echo "$as_me:$LINENO: result: failed" >&5
10274 echo "${ECHO_T}failed" >&6; }
10275 else
10276   { echo "$as_me:$LINENO: result: ok" >&5
10277 echo "${ECHO_T}ok" >&6; }
10278 fi
10279
10280
10281 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10282 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10283 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10284   echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10287     libltdl_cv_preloaded_symbols=yes
10288   else
10289     libltdl_cv_preloaded_symbols=no
10290   fi
10291
10292 fi
10293 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10294 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10295 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10296
10297 cat >>confdefs.h <<\_ACEOF
10298 #define HAVE_PRELOADED_SYMBOLS 1
10299 _ACEOF
10300
10301 fi
10302
10303 LIBADD_DL=
10304
10305 ac_ext=c
10306 ac_cpp='$CPP $CPPFLAGS'
10307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10310
10311
10312 { echo "$as_me:$LINENO: checking for shl_load" >&5
10313 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10314 if test "${ac_cv_func_shl_load+set}" = set; then
10315   echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317   cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h.  */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h.  */
10323 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10325 #define shl_load innocuous_shl_load
10326
10327 /* System header to define __stub macros and hopefully few prototypes,
10328     which can conflict with char shl_load (); below.
10329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10330     <limits.h> exists even on freestanding compilers.  */
10331
10332 #ifdef __STDC__
10333 # include <limits.h>
10334 #else
10335 # include <assert.h>
10336 #endif
10337
10338 #undef shl_load
10339
10340 /* Override any GCC internal prototype to avoid an error.
10341    Use char because int might match the return type of a GCC
10342    builtin and then its argument prototype would still apply.  */
10343 #ifdef __cplusplus
10344 extern "C"
10345 #endif
10346 char shl_load ();
10347 /* The GNU C library defines this for functions which it implements
10348     to always fail with ENOSYS.  Some functions are actually named
10349     something starting with __ and the normal name is an alias.  */
10350 #if defined __stub_shl_load || defined __stub___shl_load
10351 choke me
10352 #endif
10353
10354 int
10355 main ()
10356 {
10357 return shl_load ();
10358   ;
10359   return 0;
10360 }
10361 _ACEOF
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (ac_try="$ac_link"
10364 case "(($ac_try" in
10365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366   *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369   (eval "$ac_link") 2>conftest.er1
10370   ac_status=$?
10371   grep -v '^ *+' conftest.er1 >conftest.err
10372   rm -f conftest.er1
10373   cat conftest.err >&5
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } &&
10376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10377   { (case "(($ac_try" in
10378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379   *) ac_try_echo=$ac_try;;
10380 esac
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382   (eval "$ac_try") 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); }; } &&
10386          { ac_try='test -s conftest$ac_exeext'
10387   { (case "(($ac_try" in
10388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389   *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392   (eval "$ac_try") 2>&5
10393   ac_status=$?
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); }; }; then
10396   ac_cv_func_shl_load=yes
10397 else
10398   echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10400
10401         ac_cv_func_shl_load=no
10402 fi
10403
10404 rm -f core conftest.err conftest.$ac_objext \
10405       conftest$ac_exeext conftest.$ac_ext
10406 fi
10407 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10408 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10409 if test $ac_cv_func_shl_load = yes; then
10410
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_SHL_LOAD 1
10413 _ACEOF
10414
10415 else
10416   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10417 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10418 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10419   echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421   ac_check_lib_save_LIBS=$LIBS
10422 LIBS="-ldld  $LIBS"
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429
10430 /* Override any GCC internal prototype to avoid an error.
10431    Use char because int might match the return type of a GCC
10432    builtin and then its argument prototype would still apply.  */
10433 #ifdef __cplusplus
10434 extern "C"
10435 #endif
10436 char shl_load ();
10437 int
10438 main ()
10439 {
10440 return shl_load ();
10441   ;
10442   return 0;
10443 }
10444 _ACEOF
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (ac_try="$ac_link"
10447 case "(($ac_try" in
10448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449   *) ac_try_echo=$ac_try;;
10450 esac
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452   (eval "$ac_link") 2>conftest.er1
10453   ac_status=$?
10454   grep -v '^ *+' conftest.er1 >conftest.err
10455   rm -f conftest.er1
10456   cat conftest.err >&5
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); } &&
10459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10460   { (case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465   (eval "$ac_try") 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; } &&
10469          { ac_try='test -s conftest$ac_exeext'
10470   { (case "(($ac_try" in
10471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472   *) ac_try_echo=$ac_try;;
10473 esac
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475   (eval "$ac_try") 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); }; }; then
10479   ac_cv_lib_dld_shl_load=yes
10480 else
10481   echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10483
10484         ac_cv_lib_dld_shl_load=no
10485 fi
10486
10487 rm -f core conftest.err conftest.$ac_objext \
10488       conftest$ac_exeext conftest.$ac_ext
10489 LIBS=$ac_check_lib_save_LIBS
10490 fi
10491 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10492 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10493 if test $ac_cv_lib_dld_shl_load = yes; then
10494
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_SHL_LOAD 1
10497 _ACEOF
10498
10499         LIBADD_DL="$LIBADD_DL -ldld"
10500 else
10501   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-ldl  $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514
10515 /* Override any GCC internal prototype to avoid an error.
10516    Use char because int might match the return type of a GCC
10517    builtin and then its argument prototype would still apply.  */
10518 #ifdef __cplusplus
10519 extern "C"
10520 #endif
10521 char dlopen ();
10522 int
10523 main ()
10524 {
10525 return dlopen ();
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_link") 2>conftest.er1
10538   ac_status=$?
10539   grep -v '^ *+' conftest.er1 >conftest.err
10540   rm -f conftest.er1
10541   cat conftest.err >&5
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } &&
10544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10545   { (case "(($ac_try" in
10546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547   *) ac_try_echo=$ac_try;;
10548 esac
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550   (eval "$ac_try") 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; } &&
10554          { ac_try='test -s conftest$ac_exeext'
10555   { (case "(($ac_try" in
10556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557   *) ac_try_echo=$ac_try;;
10558 esac
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560   (eval "$ac_try") 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); }; }; then
10564   ac_cv_lib_dl_dlopen=yes
10565 else
10566   echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10568
10569         ac_cv_lib_dl_dlopen=no
10570 fi
10571
10572 rm -f core conftest.err conftest.$ac_objext \
10573       conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10575 fi
10576 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10578 if test $ac_cv_lib_dl_dlopen = yes; then
10579
10580 cat >>confdefs.h <<\_ACEOF
10581 #define HAVE_LIBDL 1
10582 _ACEOF
10583
10584                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10585 else
10586   cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h.  */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h.  */
10592 #if HAVE_DLFCN_H
10593 #  include <dlfcn.h>
10594 #endif
10595
10596 int
10597 main ()
10598 {
10599 dlopen(0, 0);
10600   ;
10601   return 0;
10602 }
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (ac_try="$ac_link"
10606 case "(($ac_try" in
10607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608   *) ac_try_echo=$ac_try;;
10609 esac
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611   (eval "$ac_link") 2>conftest.er1
10612   ac_status=$?
10613   grep -v '^ *+' conftest.er1 >conftest.err
10614   rm -f conftest.er1
10615   cat conftest.err >&5
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); } &&
10618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10619   { (case "(($ac_try" in
10620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621   *) ac_try_echo=$ac_try;;
10622 esac
10623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10624   (eval "$ac_try") 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); }; } &&
10628          { ac_try='test -s conftest$ac_exeext'
10629   { (case "(($ac_try" in
10630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631   *) ac_try_echo=$ac_try;;
10632 esac
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634   (eval "$ac_try") 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }; }; then
10638
10639 cat >>confdefs.h <<\_ACEOF
10640 #define HAVE_LIBDL 1
10641 _ACEOF
10642  libltdl_cv_func_dlopen="yes"
10643 else
10644   echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10648 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10649 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10650   echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652   ac_check_lib_save_LIBS=$LIBS
10653 LIBS="-lsvld  $LIBS"
10654 cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h.  */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h.  */
10660
10661 /* Override any GCC internal prototype to avoid an error.
10662    Use char because int might match the return type of a GCC
10663    builtin and then its argument prototype would still apply.  */
10664 #ifdef __cplusplus
10665 extern "C"
10666 #endif
10667 char dlopen ();
10668 int
10669 main ()
10670 {
10671 return dlopen ();
10672   ;
10673   return 0;
10674 }
10675 _ACEOF
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (ac_try="$ac_link"
10678 case "(($ac_try" in
10679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680   *) ac_try_echo=$ac_try;;
10681 esac
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683   (eval "$ac_link") 2>conftest.er1
10684   ac_status=$?
10685   grep -v '^ *+' conftest.er1 >conftest.err
10686   rm -f conftest.er1
10687   cat conftest.err >&5
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); } &&
10690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10691   { (case "(($ac_try" in
10692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693   *) ac_try_echo=$ac_try;;
10694 esac
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696   (eval "$ac_try") 2>&5
10697   ac_status=$?
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); }; } &&
10700          { ac_try='test -s conftest$ac_exeext'
10701   { (case "(($ac_try" in
10702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703   *) ac_try_echo=$ac_try;;
10704 esac
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706   (eval "$ac_try") 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; }; then
10710   ac_cv_lib_svld_dlopen=yes
10711 else
10712   echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715         ac_cv_lib_svld_dlopen=no
10716 fi
10717
10718 rm -f core conftest.err conftest.$ac_objext \
10719       conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_lib_save_LIBS
10721 fi
10722 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10723 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10724 if test $ac_cv_lib_svld_dlopen = yes; then
10725
10726 cat >>confdefs.h <<\_ACEOF
10727 #define HAVE_LIBDL 1
10728 _ACEOF
10729
10730                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10731 else
10732   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10733 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10734 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10735   echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737   ac_check_lib_save_LIBS=$LIBS
10738 LIBS="-ldld  $LIBS"
10739 cat >conftest.$ac_ext <<_ACEOF
10740 /* confdefs.h.  */
10741 _ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h.  */
10745
10746 /* Override any GCC internal prototype to avoid an error.
10747    Use char because int might match the return type of a GCC
10748    builtin and then its argument prototype would still apply.  */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 char dld_link ();
10753 int
10754 main ()
10755 {
10756 return dld_link ();
10757   ;
10758   return 0;
10759 }
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765   *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768   (eval "$ac_link") 2>conftest.er1
10769   ac_status=$?
10770   grep -v '^ *+' conftest.er1 >conftest.err
10771   rm -f conftest.er1
10772   cat conftest.err >&5
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } &&
10775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10776   { (case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781   (eval "$ac_try") 2>&5
10782   ac_status=$?
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); }; } &&
10785          { ac_try='test -s conftest$ac_exeext'
10786   { (case "(($ac_try" in
10787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788   *) ac_try_echo=$ac_try;;
10789 esac
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791   (eval "$ac_try") 2>&5
10792   ac_status=$?
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); }; }; then
10795   ac_cv_lib_dld_dld_link=yes
10796 else
10797   echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800         ac_cv_lib_dld_dld_link=no
10801 fi
10802
10803 rm -f core conftest.err conftest.$ac_objext \
10804       conftest$ac_exeext conftest.$ac_ext
10805 LIBS=$ac_check_lib_save_LIBS
10806 fi
10807 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10808 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10809 if test $ac_cv_lib_dld_dld_link = yes; then
10810
10811 cat >>confdefs.h <<\_ACEOF
10812 #define HAVE_DLD 1
10813 _ACEOF
10814
10815                 LIBADD_DL="$LIBADD_DL -ldld"
10816 else
10817   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10818 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10819 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10820   echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822   cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h.  */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h.  */
10828 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10830 #define _dyld_func_lookup innocuous__dyld_func_lookup
10831
10832 /* System header to define __stub macros and hopefully few prototypes,
10833     which can conflict with char _dyld_func_lookup (); below.
10834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10835     <limits.h> exists even on freestanding compilers.  */
10836
10837 #ifdef __STDC__
10838 # include <limits.h>
10839 #else
10840 # include <assert.h>
10841 #endif
10842
10843 #undef _dyld_func_lookup
10844
10845 /* Override any GCC internal prototype to avoid an error.
10846    Use char because int might match the return type of a GCC
10847    builtin and then its argument prototype would still apply.  */
10848 #ifdef __cplusplus
10849 extern "C"
10850 #endif
10851 char _dyld_func_lookup ();
10852 /* The GNU C library defines this for functions which it implements
10853     to always fail with ENOSYS.  Some functions are actually named
10854     something starting with __ and the normal name is an alias.  */
10855 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10856 choke me
10857 #endif
10858
10859 int
10860 main ()
10861 {
10862 return _dyld_func_lookup ();
10863   ;
10864   return 0;
10865 }
10866 _ACEOF
10867 rm -f conftest.$ac_objext conftest$ac_exeext
10868 if { (ac_try="$ac_link"
10869 case "(($ac_try" in
10870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871   *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874   (eval "$ac_link") 2>conftest.er1
10875   ac_status=$?
10876   grep -v '^ *+' conftest.er1 >conftest.err
10877   rm -f conftest.er1
10878   cat conftest.err >&5
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); } &&
10881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10882   { (case "(($ac_try" in
10883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884   *) ac_try_echo=$ac_try;;
10885 esac
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887   (eval "$ac_try") 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; } &&
10891          { ac_try='test -s conftest$ac_exeext'
10892   { (case "(($ac_try" in
10893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894   *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897   (eval "$ac_try") 2>&5
10898   ac_status=$?
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); }; }; then
10901   ac_cv_func__dyld_func_lookup=yes
10902 else
10903   echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10905
10906         ac_cv_func__dyld_func_lookup=no
10907 fi
10908
10909 rm -f core conftest.err conftest.$ac_objext \
10910       conftest$ac_exeext conftest.$ac_ext
10911 fi
10912 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10913 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10914 if test $ac_cv_func__dyld_func_lookup = yes; then
10915
10916 cat >>confdefs.h <<\_ACEOF
10917 #define HAVE_DYLD 1
10918 _ACEOF
10919
10920 fi
10921
10922
10923 fi
10924
10925
10926 fi
10927
10928
10929 fi
10930
10931 rm -f core conftest.err conftest.$ac_objext \
10932       conftest$ac_exeext conftest.$ac_ext
10933
10934 fi
10935
10936
10937 fi
10938
10939
10940 fi
10941
10942
10943 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10944 then
10945   lt_save_LIBS="$LIBS"
10946   LIBS="$LIBS $LIBADD_DL"
10947
10948 for ac_func in dlerror
10949 do
10950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10954   echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956   cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10964 #define $ac_func innocuous_$ac_func
10965
10966 /* System header to define __stub macros and hopefully few prototypes,
10967     which can conflict with char $ac_func (); below.
10968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10969     <limits.h> exists even on freestanding compilers.  */
10970
10971 #ifdef __STDC__
10972 # include <limits.h>
10973 #else
10974 # include <assert.h>
10975 #endif
10976
10977 #undef $ac_func
10978
10979 /* Override any GCC internal prototype to avoid an error.
10980    Use char because int might match the return type of a GCC
10981    builtin and then its argument prototype would still apply.  */
10982 #ifdef __cplusplus
10983 extern "C"
10984 #endif
10985 char $ac_func ();
10986 /* The GNU C library defines this for functions which it implements
10987     to always fail with ENOSYS.  Some functions are actually named
10988     something starting with __ and the normal name is an alias.  */
10989 #if defined __stub_$ac_func || defined __stub___$ac_func
10990 choke me
10991 #endif
10992
10993 int
10994 main ()
10995 {
10996 return $ac_func ();
10997   ;
10998   return 0;
10999 }
11000 _ACEOF
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (ac_try="$ac_link"
11003 case "(($ac_try" in
11004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005   *) ac_try_echo=$ac_try;;
11006 esac
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008   (eval "$ac_link") 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016   { (case "(($ac_try" in
11017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018   *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021   (eval "$ac_try") 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; } &&
11025          { ac_try='test -s conftest$ac_exeext'
11026   { (case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031   (eval "$ac_try") 2>&5
11032   ac_status=$?
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); }; }; then
11035   eval "$as_ac_var=yes"
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040         eval "$as_ac_var=no"
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext \
11044       conftest$ac_exeext conftest.$ac_ext
11045 fi
11046 ac_res=`eval echo '${'$as_ac_var'}'`
11047                { echo "$as_me:$LINENO: result: $ac_res" >&5
11048 echo "${ECHO_T}$ac_res" >&6; }
11049 if test `eval echo '${'$as_ac_var'}'` = yes; then
11050   cat >>confdefs.h <<_ACEOF
11051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11052 _ACEOF
11053
11054 fi
11055 done
11056
11057   LIBS="$lt_save_LIBS"
11058 fi
11059 ac_ext=c
11060 ac_cpp='$CPP $CPPFLAGS'
11061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11064
11065
11066
11067 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11068 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11069 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11070   echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072   ac_cv_sys_symbol_underscore=no
11073   cat > conftest.$ac_ext <<EOF
11074 void nm_test_func(){}
11075 int main(){nm_test_func;return 0;}
11076 EOF
11077   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11078   (eval $ac_compile) 2>&5
11079   ac_status=$?
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); }; then
11082     # Now try to grab the symbols.
11083     ac_nlist=conftest.nm
11084     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11085   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); } && test -s "$ac_nlist"; then
11089       # See whether the symbols have a leading underscore.
11090       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11091         ac_cv_sys_symbol_underscore=yes
11092       else
11093         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11094           :
11095         else
11096           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11097         fi
11098       fi
11099     else
11100       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11101     fi
11102   else
11103     echo "configure: failed program was:" >&5
11104     cat conftest.c >&5
11105   fi
11106   rm -rf conftest*
11107
11108 fi
11109 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11110 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11111
11112
11113 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11114   if test x"$libltdl_cv_func_dlopen" = xyes ||
11115      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11116         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11117 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11118 if test "${libltdl_cv_need_uscore+set}" = set; then
11119   echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121   libltdl_cv_need_uscore=unknown
11122           save_LIBS="$LIBS"
11123           LIBS="$LIBS $LIBADD_DL"
11124           if test "$cross_compiling" = yes; then :
11125   libltdl_cv_need_uscore=cross
11126 else
11127   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11128   lt_status=$lt_dlunknown
11129   cat > conftest.$ac_ext <<EOF
11130 #line 11130 "configure"
11131 #include "confdefs.h"
11132
11133 #if HAVE_DLFCN_H
11134 #include <dlfcn.h>
11135 #endif
11136
11137 #include <stdio.h>
11138
11139 #ifdef RTLD_GLOBAL
11140 #  define LT_DLGLOBAL           RTLD_GLOBAL
11141 #else
11142 #  ifdef DL_GLOBAL
11143 #    define LT_DLGLOBAL         DL_GLOBAL
11144 #  else
11145 #    define LT_DLGLOBAL         0
11146 #  endif
11147 #endif
11148
11149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11150    find out it does not work in some platform. */
11151 #ifndef LT_DLLAZY_OR_NOW
11152 #  ifdef RTLD_LAZY
11153 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11154 #  else
11155 #    ifdef DL_LAZY
11156 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11157 #    else
11158 #      ifdef RTLD_NOW
11159 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11160 #      else
11161 #        ifdef DL_NOW
11162 #          define LT_DLLAZY_OR_NOW      DL_NOW
11163 #        else
11164 #          define LT_DLLAZY_OR_NOW      0
11165 #        endif
11166 #      endif
11167 #    endif
11168 #  endif
11169 #endif
11170
11171 #ifdef __cplusplus
11172 extern "C" void exit (int);
11173 #endif
11174
11175 void fnord() { int i=42;}
11176 int main ()
11177 {
11178   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11179   int status = $lt_dlunknown;
11180
11181   if (self)
11182     {
11183       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11184       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11185       /* dlclose (self); */
11186     }
11187   else
11188     puts (dlerror ());
11189
11190     exit (status);
11191 }
11192 EOF
11193   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194   (eval $ac_link) 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11198     (./conftest; exit; ) >&5 2>/dev/null
11199     lt_status=$?
11200     case x$lt_status in
11201       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11202       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11203       x$lt_dlunknown|x*)  ;;
11204     esac
11205   else :
11206     # compilation failed
11207
11208   fi
11209 fi
11210 rm -fr conftest*
11211
11212           LIBS="$save_LIBS"
11213
11214 fi
11215 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11216 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11217   fi
11218 fi
11219
11220 if test x"$libltdl_cv_need_uscore" = xyes; then
11221
11222 cat >>confdefs.h <<\_ACEOF
11223 #define NEED_USCORE 1
11224 _ACEOF
11225
11226 fi
11227
11228
11229 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11230 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11231 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11232   echo $ECHO_N "(cached) $ECHO_C" >&6
11233 else
11234   # PORTME does your system automatically load deplibs for dlopen?
11235   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11236   # For now, we just catch OSes we know something about -- in the
11237   # future, we'll try test this programmatically.
11238   libltdl_cv_sys_dlopen_deplibs=unknown
11239   case "$host_os" in
11240   aix3*|aix4.1.*|aix4.2.*)
11241     # Unknown whether this is true for these versions of AIX, but
11242     # we want this `case' here to explicitly catch those versions.
11243     libltdl_cv_sys_dlopen_deplibs=unknown
11244     ;;
11245   aix[45]*)
11246     libltdl_cv_sys_dlopen_deplibs=yes
11247     ;;
11248   darwin*)
11249     # Assuming the user has installed a libdl from somewhere, this is true
11250     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11251     libltdl_cv_sys_dlopen_deplibs=yes
11252     ;;
11253   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11254     # GNU and its variants, using gnu ld.so (Glibc)
11255     libltdl_cv_sys_dlopen_deplibs=yes
11256     ;;
11257   hpux10*|hpux11*)
11258     libltdl_cv_sys_dlopen_deplibs=yes
11259     ;;
11260   interix*)
11261     libltdl_cv_sys_dlopen_deplibs=yes
11262     ;;
11263   irix[12345]*|irix6.[01]*)
11264     # Catch all versions of IRIX before 6.2, and indicate that we don't
11265     # know how it worked for any of those versions.
11266     libltdl_cv_sys_dlopen_deplibs=unknown
11267     ;;
11268   irix*)
11269     # The case above catches anything before 6.2, and it's known that
11270     # at 6.2 and later dlopen does load deplibs.
11271     libltdl_cv_sys_dlopen_deplibs=yes
11272     ;;
11273   netbsd*)
11274     libltdl_cv_sys_dlopen_deplibs=yes
11275     ;;
11276   openbsd*)
11277     libltdl_cv_sys_dlopen_deplibs=yes
11278     ;;
11279   osf[1234]*)
11280     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11281     # it did *not* use an RPATH in a shared library to find objects the
11282     # library depends on, so we explictly say `no'.
11283     libltdl_cv_sys_dlopen_deplibs=no
11284     ;;
11285   osf5.0|osf5.0a|osf5.1)
11286     # dlopen *does* load deplibs and with the right loader patch applied
11287     # it even uses RPATH in a shared library to search for shared objects
11288     # that the library depends on, but there's no easy way to know if that
11289     # patch is installed.  Since this is the case, all we can really
11290     # say is unknown -- it depends on the patch being installed.  If
11291     # it is, this changes to `yes'.  Without it, it would be `no'.
11292     libltdl_cv_sys_dlopen_deplibs=unknown
11293     ;;
11294   osf*)
11295     # the two cases above should catch all versions of osf <= 5.1.  Read
11296     # the comments above for what we know about them.
11297     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11298     # is used to find them so we can finally say `yes'.
11299     libltdl_cv_sys_dlopen_deplibs=yes
11300     ;;
11301   solaris*)
11302     libltdl_cv_sys_dlopen_deplibs=yes
11303     ;;
11304   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11305     libltdl_cv_sys_dlopen_deplibs=yes
11306     ;;
11307   esac
11308
11309 fi
11310 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11311 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11312 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11313
11314 cat >>confdefs.h <<\_ACEOF
11315 #define LTDL_DLOPEN_DEPLIBS 1
11316 _ACEOF
11317
11318 fi
11319
11320
11321 for ac_header in argz.h
11322 do
11323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 fi
11330 ac_res=`eval echo '${'$as_ac_Header'}'`
11331                { echo "$as_me:$LINENO: result: $ac_res" >&5
11332 echo "${ECHO_T}$ac_res" >&6; }
11333 else
11334   # Is the header compilable?
11335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343 $ac_includes_default
11344 #include <$ac_header>
11345 _ACEOF
11346 rm -f conftest.$ac_objext
11347 if { (ac_try="$ac_compile"
11348 case "(($ac_try" in
11349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350   *) ac_try_echo=$ac_try;;
11351 esac
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353   (eval "$ac_compile") 2>conftest.er1
11354   ac_status=$?
11355   grep -v '^ *+' conftest.er1 >conftest.err
11356   rm -f conftest.er1
11357   cat conftest.err >&5
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); } &&
11360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11361   { (case "(($ac_try" in
11362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363   *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366   (eval "$ac_try") 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; } &&
11370          { ac_try='test -s conftest.$ac_objext'
11371   { (case "(($ac_try" in
11372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373   *) ac_try_echo=$ac_try;;
11374 esac
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376   (eval "$ac_try") 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; }; then
11380   ac_header_compiler=yes
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11384
11385         ac_header_compiler=no
11386 fi
11387
11388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11390 echo "${ECHO_T}$ac_header_compiler" >&6; }
11391
11392 # Is the header present?
11393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h.  */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h.  */
11401 #include <$ac_header>
11402 _ACEOF
11403 if { (ac_try="$ac_cpp conftest.$ac_ext"
11404 case "(($ac_try" in
11405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406   *) ac_try_echo=$ac_try;;
11407 esac
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11410   ac_status=$?
11411   grep -v '^ *+' conftest.er1 >conftest.err
11412   rm -f conftest.er1
11413   cat conftest.err >&5
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); } >/dev/null; then
11416   if test -s conftest.err; then
11417     ac_cpp_err=$ac_c_preproc_warn_flag
11418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11419   else
11420     ac_cpp_err=
11421   fi
11422 else
11423   ac_cpp_err=yes
11424 fi
11425 if test -z "$ac_cpp_err"; then
11426   ac_header_preproc=yes
11427 else
11428   echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11430
11431   ac_header_preproc=no
11432 fi
11433
11434 rm -f conftest.err conftest.$ac_ext
11435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11436 echo "${ECHO_T}$ac_header_preproc" >&6; }
11437
11438 # So?  What about this header?
11439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11440   yes:no: )
11441     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11445     ac_header_preproc=yes
11446     ;;
11447   no:yes:* )
11448     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11450     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11451 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11452     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11454     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11455 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11458     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11460     ( cat <<\_ASBOX
11461 ## ----------------------------------- ##
11462 ## Report this to llvmbugs@cs.uiuc.edu ##
11463 ## ----------------------------------- ##
11464 _ASBOX
11465      ) | sed "s/^/$as_me: WARNING:     /" >&2
11466     ;;
11467 esac
11468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11471   echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473   eval "$as_ac_Header=\$ac_header_preproc"
11474 fi
11475 ac_res=`eval echo '${'$as_ac_Header'}'`
11476                { echo "$as_me:$LINENO: result: $ac_res" >&5
11477 echo "${ECHO_T}$ac_res" >&6; }
11478
11479 fi
11480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11481   cat >>confdefs.h <<_ACEOF
11482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11483 _ACEOF
11484
11485 fi
11486
11487 done
11488
11489
11490 { echo "$as_me:$LINENO: checking for error_t" >&5
11491 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11492 if test "${ac_cv_type_error_t+set}" = set; then
11493   echo $ECHO_N "(cached) $ECHO_C" >&6
11494 else
11495   cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 #if HAVE_ARGZ_H
11502 #  include <argz.h>
11503 #endif
11504
11505 typedef error_t ac__type_new_;
11506 int
11507 main ()
11508 {
11509 if ((ac__type_new_ *) 0)
11510   return 0;
11511 if (sizeof (ac__type_new_))
11512   return 0;
11513   ;
11514   return 0;
11515 }
11516 _ACEOF
11517 rm -f conftest.$ac_objext
11518 if { (ac_try="$ac_compile"
11519 case "(($ac_try" in
11520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521   *) ac_try_echo=$ac_try;;
11522 esac
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524   (eval "$ac_compile") 2>conftest.er1
11525   ac_status=$?
11526   grep -v '^ *+' conftest.er1 >conftest.err
11527   rm -f conftest.er1
11528   cat conftest.err >&5
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); } &&
11531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11532   { (case "(($ac_try" in
11533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534   *) ac_try_echo=$ac_try;;
11535 esac
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537   (eval "$ac_try") 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); }; } &&
11541          { ac_try='test -s conftest.$ac_objext'
11542   { (case "(($ac_try" in
11543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544   *) ac_try_echo=$ac_try;;
11545 esac
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547   (eval "$ac_try") 2>&5
11548   ac_status=$?
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); }; }; then
11551   ac_cv_type_error_t=yes
11552 else
11553   echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11555
11556         ac_cv_type_error_t=no
11557 fi
11558
11559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 fi
11561 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11562 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11563 if test $ac_cv_type_error_t = yes; then
11564
11565 cat >>confdefs.h <<_ACEOF
11566 #define HAVE_ERROR_T 1
11567 _ACEOF
11568
11569
11570 else
11571
11572 cat >>confdefs.h <<\_ACEOF
11573 #define error_t int
11574 _ACEOF
11575
11576 fi
11577
11578
11579
11580
11581
11582
11583
11584 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11585 do
11586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h.  */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h.  */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11600 #define $ac_func innocuous_$ac_func
11601
11602 /* System header to define __stub macros and hopefully few prototypes,
11603     which can conflict with char $ac_func (); below.
11604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605     <limits.h> exists even on freestanding compilers.  */
11606
11607 #ifdef __STDC__
11608 # include <limits.h>
11609 #else
11610 # include <assert.h>
11611 #endif
11612
11613 #undef $ac_func
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616    Use char because int might match the return type of a GCC
11617    builtin and then its argument prototype would still apply.  */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char $ac_func ();
11622 /* The GNU C library defines this for functions which it implements
11623     to always fail with ENOSYS.  Some functions are actually named
11624     something starting with __ and the normal name is an alias.  */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11626 choke me
11627 #endif
11628
11629 int
11630 main ()
11631 {
11632 return $ac_func ();
11633   ;
11634   return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (ac_try="$ac_link"
11639 case "(($ac_try" in
11640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641   *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644   (eval "$ac_link") 2>conftest.er1
11645   ac_status=$?
11646   grep -v '^ *+' conftest.er1 >conftest.err
11647   rm -f conftest.er1
11648   cat conftest.err >&5
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); } &&
11651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652   { (case "(($ac_try" in
11653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654   *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657   (eval "$ac_try") 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; } &&
11661          { ac_try='test -s conftest$ac_exeext'
11662   { (case "(($ac_try" in
11663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664   *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667   (eval "$ac_try") 2>&5
11668   ac_status=$?
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); }; }; then
11671   eval "$as_ac_var=yes"
11672 else
11673   echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11675
11676         eval "$as_ac_var=no"
11677 fi
11678
11679 rm -f core conftest.err conftest.$ac_objext \
11680       conftest$ac_exeext conftest.$ac_ext
11681 fi
11682 ac_res=`eval echo '${'$as_ac_var'}'`
11683                { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11685 if test `eval echo '${'$as_ac_var'}'` = yes; then
11686   cat >>confdefs.h <<_ACEOF
11687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11688 _ACEOF
11689
11690 fi
11691 done
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11721                   stdio.h unistd.h
11722 do
11723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11725   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11728   echo $ECHO_N "(cached) $ECHO_C" >&6
11729 fi
11730 ac_res=`eval echo '${'$as_ac_Header'}'`
11731                { echo "$as_me:$LINENO: result: $ac_res" >&5
11732 echo "${ECHO_T}$ac_res" >&6; }
11733 else
11734   # Is the header compilable?
11735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h.  */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h.  */
11743 $ac_includes_default
11744 #include <$ac_header>
11745 _ACEOF
11746 rm -f conftest.$ac_objext
11747 if { (ac_try="$ac_compile"
11748 case "(($ac_try" in
11749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750   *) ac_try_echo=$ac_try;;
11751 esac
11752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753   (eval "$ac_compile") 2>conftest.er1
11754   ac_status=$?
11755   grep -v '^ *+' conftest.er1 >conftest.err
11756   rm -f conftest.er1
11757   cat conftest.err >&5
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); } &&
11760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11761   { (case "(($ac_try" in
11762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763   *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766   (eval "$ac_try") 2>&5
11767   ac_status=$?
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); }; } &&
11770          { ac_try='test -s conftest.$ac_objext'
11771   { (case "(($ac_try" in
11772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773   *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776   (eval "$ac_try") 2>&5
11777   ac_status=$?
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); }; }; then
11780   ac_header_compiler=yes
11781 else
11782   echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11784
11785         ac_header_compiler=no
11786 fi
11787
11788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11790 echo "${ECHO_T}$ac_header_compiler" >&6; }
11791
11792 # Is the header present?
11793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h.  */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h.  */
11801 #include <$ac_header>
11802 _ACEOF
11803 if { (ac_try="$ac_cpp conftest.$ac_ext"
11804 case "(($ac_try" in
11805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806   *) ac_try_echo=$ac_try;;
11807 esac
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11810   ac_status=$?
11811   grep -v '^ *+' conftest.er1 >conftest.err
11812   rm -f conftest.er1
11813   cat conftest.err >&5
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); } >/dev/null; then
11816   if test -s conftest.err; then
11817     ac_cpp_err=$ac_c_preproc_warn_flag
11818     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11819   else
11820     ac_cpp_err=
11821   fi
11822 else
11823   ac_cpp_err=yes
11824 fi
11825 if test -z "$ac_cpp_err"; then
11826   ac_header_preproc=yes
11827 else
11828   echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831   ac_header_preproc=no
11832 fi
11833
11834 rm -f conftest.err conftest.$ac_ext
11835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11836 echo "${ECHO_T}$ac_header_preproc" >&6; }
11837
11838 # So?  What about this header?
11839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11840   yes:no: )
11841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11845     ac_header_preproc=yes
11846     ;;
11847   no:yes:* )
11848     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11850     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11851 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11852     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11854     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11855 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11858     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11860     ( cat <<\_ASBOX
11861 ## ----------------------------------- ##
11862 ## Report this to llvmbugs@cs.uiuc.edu ##
11863 ## ----------------------------------- ##
11864 _ASBOX
11865      ) | sed "s/^/$as_me: WARNING:     /" >&2
11866     ;;
11867 esac
11868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11871   echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873   eval "$as_ac_Header=\$ac_header_preproc"
11874 fi
11875 ac_res=`eval echo '${'$as_ac_Header'}'`
11876                { echo "$as_me:$LINENO: result: $ac_res" >&5
11877 echo "${ECHO_T}$ac_res" >&6; }
11878
11879 fi
11880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11881   cat >>confdefs.h <<_ACEOF
11882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11883 _ACEOF
11884
11885 fi
11886
11887 done
11888
11889
11890
11891
11892
11893 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11894 do
11895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11897   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11900   echo $ECHO_N "(cached) $ECHO_C" >&6
11901 fi
11902 ac_res=`eval echo '${'$as_ac_Header'}'`
11903                { echo "$as_me:$LINENO: result: $ac_res" >&5
11904 echo "${ECHO_T}$ac_res" >&6; }
11905 else
11906   # Is the header compilable?
11907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11909 cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915 $ac_includes_default
11916 #include <$ac_header>
11917 _ACEOF
11918 rm -f conftest.$ac_objext
11919 if { (ac_try="$ac_compile"
11920 case "(($ac_try" in
11921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922   *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925   (eval "$ac_compile") 2>conftest.er1
11926   ac_status=$?
11927   grep -v '^ *+' conftest.er1 >conftest.err
11928   rm -f conftest.er1
11929   cat conftest.err >&5
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; } &&
11942          { ac_try='test -s conftest.$ac_objext'
11943   { (case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_try") 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   ac_header_compiler=yes
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957         ac_header_compiler=no
11958 fi
11959
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11962 echo "${ECHO_T}$ac_header_compiler" >&6; }
11963
11964 # Is the header present?
11965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h.  */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h.  */
11973 #include <$ac_header>
11974 _ACEOF
11975 if { (ac_try="$ac_cpp conftest.$ac_ext"
11976 case "(($ac_try" in
11977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978   *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11982   ac_status=$?
11983   grep -v '^ *+' conftest.er1 >conftest.err
11984   rm -f conftest.er1
11985   cat conftest.err >&5
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } >/dev/null; then
11988   if test -s conftest.err; then
11989     ac_cpp_err=$ac_c_preproc_warn_flag
11990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11991   else
11992     ac_cpp_err=
11993   fi
11994 else
11995   ac_cpp_err=yes
11996 fi
11997 if test -z "$ac_cpp_err"; then
11998   ac_header_preproc=yes
11999 else
12000   echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12002
12003   ac_header_preproc=no
12004 fi
12005
12006 rm -f conftest.err conftest.$ac_ext
12007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12008 echo "${ECHO_T}$ac_header_preproc" >&6; }
12009
12010 # So?  What about this header?
12011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12012   yes:no: )
12013     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12017     ac_header_preproc=yes
12018     ;;
12019   no:yes:* )
12020     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12022     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12023 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12024     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12026     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12027 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12030     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12032     ( cat <<\_ASBOX
12033 ## ----------------------------------- ##
12034 ## Report this to llvmbugs@cs.uiuc.edu ##
12035 ## ----------------------------------- ##
12036 _ASBOX
12037      ) | sed "s/^/$as_me: WARNING:     /" >&2
12038     ;;
12039 esac
12040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12043   echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045   eval "$as_ac_Header=\$ac_header_preproc"
12046 fi
12047 ac_res=`eval echo '${'$as_ac_Header'}'`
12048                { echo "$as_me:$LINENO: result: $ac_res" >&5
12049 echo "${ECHO_T}$ac_res" >&6; }
12050
12051 fi
12052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12053   cat >>confdefs.h <<_ACEOF
12054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12055 _ACEOF
12056
12057 fi
12058
12059 done
12060
12061
12062
12063 for ac_header in string.h strings.h
12064 do
12065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12067   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12070   echo $ECHO_N "(cached) $ECHO_C" >&6
12071 fi
12072 ac_res=`eval echo '${'$as_ac_Header'}'`
12073                { echo "$as_me:$LINENO: result: $ac_res" >&5
12074 echo "${ECHO_T}$ac_res" >&6; }
12075 else
12076   # Is the header compilable?
12077 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12079 cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h.  */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h.  */
12085 $ac_includes_default
12086 #include <$ac_header>
12087 _ACEOF
12088 rm -f conftest.$ac_objext
12089 if { (ac_try="$ac_compile"
12090 case "(($ac_try" in
12091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092   *) ac_try_echo=$ac_try;;
12093 esac
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095   (eval "$ac_compile") 2>conftest.er1
12096   ac_status=$?
12097   grep -v '^ *+' conftest.er1 >conftest.err
12098   rm -f conftest.er1
12099   cat conftest.err >&5
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); } &&
12102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12103   { (case "(($ac_try" in
12104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105   *) ac_try_echo=$ac_try;;
12106 esac
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108   (eval "$ac_try") 2>&5
12109   ac_status=$?
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); }; } &&
12112          { ac_try='test -s conftest.$ac_objext'
12113   { (case "(($ac_try" in
12114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115   *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118   (eval "$ac_try") 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   ac_header_compiler=yes
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127         ac_header_compiler=no
12128 fi
12129
12130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12132 echo "${ECHO_T}$ac_header_compiler" >&6; }
12133
12134 # Is the header present?
12135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 #include <$ac_header>
12144 _ACEOF
12145 if { (ac_try="$ac_cpp conftest.$ac_ext"
12146 case "(($ac_try" in
12147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148   *) ac_try_echo=$ac_try;;
12149 esac
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12152   ac_status=$?
12153   grep -v '^ *+' conftest.er1 >conftest.err
12154   rm -f conftest.er1
12155   cat conftest.err >&5
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); } >/dev/null; then
12158   if test -s conftest.err; then
12159     ac_cpp_err=$ac_c_preproc_warn_flag
12160     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12161   else
12162     ac_cpp_err=
12163   fi
12164 else
12165   ac_cpp_err=yes
12166 fi
12167 if test -z "$ac_cpp_err"; then
12168   ac_header_preproc=yes
12169 else
12170   echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173   ac_header_preproc=no
12174 fi
12175
12176 rm -f conftest.err conftest.$ac_ext
12177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12178 echo "${ECHO_T}$ac_header_preproc" >&6; }
12179
12180 # So?  What about this header?
12181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12182   yes:no: )
12183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12187     ac_header_preproc=yes
12188     ;;
12189   no:yes:* )
12190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12192     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12193 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12194     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12196     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12197 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12200     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12202     ( cat <<\_ASBOX
12203 ## ----------------------------------- ##
12204 ## Report this to llvmbugs@cs.uiuc.edu ##
12205 ## ----------------------------------- ##
12206 _ASBOX
12207      ) | sed "s/^/$as_me: WARNING:     /" >&2
12208     ;;
12209 esac
12210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   eval "$as_ac_Header=\$ac_header_preproc"
12216 fi
12217 ac_res=`eval echo '${'$as_ac_Header'}'`
12218                { echo "$as_me:$LINENO: result: $ac_res" >&5
12219 echo "${ECHO_T}$ac_res" >&6; }
12220
12221 fi
12222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12223   cat >>confdefs.h <<_ACEOF
12224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12225 _ACEOF
12226  break
12227 fi
12228
12229 done
12230
12231
12232
12233
12234 for ac_func in strchr index
12235 do
12236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12240   echo $ECHO_N "(cached) $ECHO_C" >&6
12241 else
12242   cat >conftest.$ac_ext <<_ACEOF
12243 /* confdefs.h.  */
12244 _ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h.  */
12248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12250 #define $ac_func innocuous_$ac_func
12251
12252 /* System header to define __stub macros and hopefully few prototypes,
12253     which can conflict with char $ac_func (); below.
12254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12255     <limits.h> exists even on freestanding compilers.  */
12256
12257 #ifdef __STDC__
12258 # include <limits.h>
12259 #else
12260 # include <assert.h>
12261 #endif
12262
12263 #undef $ac_func
12264
12265 /* Override any GCC internal prototype to avoid an error.
12266    Use char because int might match the return type of a GCC
12267    builtin and then its argument prototype would still apply.  */
12268 #ifdef __cplusplus
12269 extern "C"
12270 #endif
12271 char $ac_func ();
12272 /* The GNU C library defines this for functions which it implements
12273     to always fail with ENOSYS.  Some functions are actually named
12274     something starting with __ and the normal name is an alias.  */
12275 #if defined __stub_$ac_func || defined __stub___$ac_func
12276 choke me
12277 #endif
12278
12279 int
12280 main ()
12281 {
12282 return $ac_func ();
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (ac_try="$ac_link"
12289 case "(($ac_try" in
12290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291   *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294   (eval "$ac_link") 2>conftest.er1
12295   ac_status=$?
12296   grep -v '^ *+' conftest.er1 >conftest.err
12297   rm -f conftest.er1
12298   cat conftest.err >&5
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); } &&
12301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12302   { (case "(($ac_try" in
12303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304   *) ac_try_echo=$ac_try;;
12305 esac
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307   (eval "$ac_try") 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; } &&
12311          { ac_try='test -s conftest$ac_exeext'
12312   { (case "(($ac_try" in
12313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314   *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317   (eval "$ac_try") 2>&5
12318   ac_status=$?
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); }; }; then
12321   eval "$as_ac_var=yes"
12322 else
12323   echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12325
12326         eval "$as_ac_var=no"
12327 fi
12328
12329 rm -f core conftest.err conftest.$ac_objext \
12330       conftest$ac_exeext conftest.$ac_ext
12331 fi
12332 ac_res=`eval echo '${'$as_ac_var'}'`
12333                { echo "$as_me:$LINENO: result: $ac_res" >&5
12334 echo "${ECHO_T}$ac_res" >&6; }
12335 if test `eval echo '${'$as_ac_var'}'` = yes; then
12336   cat >>confdefs.h <<_ACEOF
12337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12338 _ACEOF
12339  break
12340 fi
12341 done
12342
12343
12344
12345 for ac_func in strrchr rindex
12346 do
12347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12351   echo $ECHO_N "(cached) $ECHO_C" >&6
12352 else
12353   cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h.  */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h.  */
12359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12361 #define $ac_func innocuous_$ac_func
12362
12363 /* System header to define __stub macros and hopefully few prototypes,
12364     which can conflict with char $ac_func (); below.
12365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12366     <limits.h> exists even on freestanding compilers.  */
12367
12368 #ifdef __STDC__
12369 # include <limits.h>
12370 #else
12371 # include <assert.h>
12372 #endif
12373
12374 #undef $ac_func
12375
12376 /* Override any GCC internal prototype to avoid an error.
12377    Use char because int might match the return type of a GCC
12378    builtin and then its argument prototype would still apply.  */
12379 #ifdef __cplusplus
12380 extern "C"
12381 #endif
12382 char $ac_func ();
12383 /* The GNU C library defines this for functions which it implements
12384     to always fail with ENOSYS.  Some functions are actually named
12385     something starting with __ and the normal name is an alias.  */
12386 #if defined __stub_$ac_func || defined __stub___$ac_func
12387 choke me
12388 #endif
12389
12390 int
12391 main ()
12392 {
12393 return $ac_func ();
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402   *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405   (eval "$ac_link") 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } &&
12412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413   { (case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_try") 2>&5
12419   ac_status=$?
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); }; } &&
12422          { ac_try='test -s conftest$ac_exeext'
12423   { (case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_try") 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; }; then
12432   eval "$as_ac_var=yes"
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437         eval "$as_ac_var=no"
12438 fi
12439
12440 rm -f core conftest.err conftest.$ac_objext \
12441       conftest$ac_exeext conftest.$ac_ext
12442 fi
12443 ac_res=`eval echo '${'$as_ac_var'}'`
12444                { echo "$as_me:$LINENO: result: $ac_res" >&5
12445 echo "${ECHO_T}$ac_res" >&6; }
12446 if test `eval echo '${'$as_ac_var'}'` = yes; then
12447   cat >>confdefs.h <<_ACEOF
12448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12449 _ACEOF
12450  break
12451 fi
12452 done
12453
12454
12455
12456 for ac_func in memcpy bcopy
12457 do
12458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12462   echo $ECHO_N "(cached) $ECHO_C" >&6
12463 else
12464   cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h.  */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h.  */
12470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12472 #define $ac_func innocuous_$ac_func
12473
12474 /* System header to define __stub macros and hopefully few prototypes,
12475     which can conflict with char $ac_func (); below.
12476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12477     <limits.h> exists even on freestanding compilers.  */
12478
12479 #ifdef __STDC__
12480 # include <limits.h>
12481 #else
12482 # include <assert.h>
12483 #endif
12484
12485 #undef $ac_func
12486
12487 /* Override any GCC internal prototype to avoid an error.
12488    Use char because int might match the return type of a GCC
12489    builtin and then its argument prototype would still apply.  */
12490 #ifdef __cplusplus
12491 extern "C"
12492 #endif
12493 char $ac_func ();
12494 /* The GNU C library defines this for functions which it implements
12495     to always fail with ENOSYS.  Some functions are actually named
12496     something starting with __ and the normal name is an alias.  */
12497 #if defined __stub_$ac_func || defined __stub___$ac_func
12498 choke me
12499 #endif
12500
12501 int
12502 main ()
12503 {
12504 return $ac_func ();
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 rm -f conftest.$ac_objext conftest$ac_exeext
12510 if { (ac_try="$ac_link"
12511 case "(($ac_try" in
12512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513   *) ac_try_echo=$ac_try;;
12514 esac
12515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516   (eval "$ac_link") 2>conftest.er1
12517   ac_status=$?
12518   grep -v '^ *+' conftest.er1 >conftest.err
12519   rm -f conftest.er1
12520   cat conftest.err >&5
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } &&
12523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12524   { (case "(($ac_try" in
12525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526   *) ac_try_echo=$ac_try;;
12527 esac
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529   (eval "$ac_try") 2>&5
12530   ac_status=$?
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); }; } &&
12533          { ac_try='test -s conftest$ac_exeext'
12534   { (case "(($ac_try" in
12535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536   *) ac_try_echo=$ac_try;;
12537 esac
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539   (eval "$ac_try") 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; }; then
12543   eval "$as_ac_var=yes"
12544 else
12545   echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548         eval "$as_ac_var=no"
12549 fi
12550
12551 rm -f core conftest.err conftest.$ac_objext \
12552       conftest$ac_exeext conftest.$ac_ext
12553 fi
12554 ac_res=`eval echo '${'$as_ac_var'}'`
12555                { echo "$as_me:$LINENO: result: $ac_res" >&5
12556 echo "${ECHO_T}$ac_res" >&6; }
12557 if test `eval echo '${'$as_ac_var'}'` = yes; then
12558   cat >>confdefs.h <<_ACEOF
12559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12560 _ACEOF
12561  break
12562 fi
12563 done
12564
12565
12566
12567 for ac_func in memmove strcmp
12568 do
12569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12573   echo $ECHO_N "(cached) $ECHO_C" >&6
12574 else
12575   cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h.  */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h.  */
12581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12583 #define $ac_func innocuous_$ac_func
12584
12585 /* System header to define __stub macros and hopefully few prototypes,
12586     which can conflict with char $ac_func (); below.
12587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12588     <limits.h> exists even on freestanding compilers.  */
12589
12590 #ifdef __STDC__
12591 # include <limits.h>
12592 #else
12593 # include <assert.h>
12594 #endif
12595
12596 #undef $ac_func
12597
12598 /* Override any GCC internal prototype to avoid an error.
12599    Use char because int might match the return type of a GCC
12600    builtin and then its argument prototype would still apply.  */
12601 #ifdef __cplusplus
12602 extern "C"
12603 #endif
12604 char $ac_func ();
12605 /* The GNU C library defines this for functions which it implements
12606     to always fail with ENOSYS.  Some functions are actually named
12607     something starting with __ and the normal name is an alias.  */
12608 #if defined __stub_$ac_func || defined __stub___$ac_func
12609 choke me
12610 #endif
12611
12612 int
12613 main ()
12614 {
12615 return $ac_func ();
12616   ;
12617   return 0;
12618 }
12619 _ACEOF
12620 rm -f conftest.$ac_objext conftest$ac_exeext
12621 if { (ac_try="$ac_link"
12622 case "(($ac_try" in
12623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624   *) ac_try_echo=$ac_try;;
12625 esac
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627   (eval "$ac_link") 2>conftest.er1
12628   ac_status=$?
12629   grep -v '^ *+' conftest.er1 >conftest.err
12630   rm -f conftest.er1
12631   cat conftest.err >&5
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); } &&
12634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635   { (case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640   (eval "$ac_try") 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); }; } &&
12644          { ac_try='test -s conftest$ac_exeext'
12645   { (case "(($ac_try" in
12646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647   *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650   (eval "$ac_try") 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; }; then
12654   eval "$as_ac_var=yes"
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659         eval "$as_ac_var=no"
12660 fi
12661
12662 rm -f core conftest.err conftest.$ac_objext \
12663       conftest$ac_exeext conftest.$ac_ext
12664 fi
12665 ac_res=`eval echo '${'$as_ac_var'}'`
12666                { echo "$as_me:$LINENO: result: $ac_res" >&5
12667 echo "${ECHO_T}$ac_res" >&6; }
12668 if test `eval echo '${'$as_ac_var'}'` = yes; then
12669   cat >>confdefs.h <<_ACEOF
12670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12671 _ACEOF
12672
12673 fi
12674 done
12675
12676
12677
12678
12679 for ac_func in closedir opendir readdir
12680 do
12681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687   cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12695 #define $ac_func innocuous_$ac_func
12696
12697 /* System header to define __stub macros and hopefully few prototypes,
12698     which can conflict with char $ac_func (); below.
12699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12700     <limits.h> exists even on freestanding compilers.  */
12701
12702 #ifdef __STDC__
12703 # include <limits.h>
12704 #else
12705 # include <assert.h>
12706 #endif
12707
12708 #undef $ac_func
12709
12710 /* Override any GCC internal prototype to avoid an error.
12711    Use char because int might match the return type of a GCC
12712    builtin and then its argument prototype would still apply.  */
12713 #ifdef __cplusplus
12714 extern "C"
12715 #endif
12716 char $ac_func ();
12717 /* The GNU C library defines this for functions which it implements
12718     to always fail with ENOSYS.  Some functions are actually named
12719     something starting with __ and the normal name is an alias.  */
12720 #if defined __stub_$ac_func || defined __stub___$ac_func
12721 choke me
12722 #endif
12723
12724 int
12725 main ()
12726 {
12727 return $ac_func ();
12728   ;
12729   return 0;
12730 }
12731 _ACEOF
12732 rm -f conftest.$ac_objext conftest$ac_exeext
12733 if { (ac_try="$ac_link"
12734 case "(($ac_try" in
12735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736   *) ac_try_echo=$ac_try;;
12737 esac
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739   (eval "$ac_link") 2>conftest.er1
12740   ac_status=$?
12741   grep -v '^ *+' conftest.er1 >conftest.err
12742   rm -f conftest.er1
12743   cat conftest.err >&5
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); } &&
12746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12747   { (case "(($ac_try" in
12748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749   *) ac_try_echo=$ac_try;;
12750 esac
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752   (eval "$ac_try") 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; } &&
12756          { ac_try='test -s conftest$ac_exeext'
12757   { (case "(($ac_try" in
12758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759   *) ac_try_echo=$ac_try;;
12760 esac
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762   (eval "$ac_try") 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); }; }; then
12766   eval "$as_ac_var=yes"
12767 else
12768   echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12770
12771         eval "$as_ac_var=no"
12772 fi
12773
12774 rm -f core conftest.err conftest.$ac_objext \
12775       conftest$ac_exeext conftest.$ac_ext
12776 fi
12777 ac_res=`eval echo '${'$as_ac_var'}'`
12778                { echo "$as_me:$LINENO: result: $ac_res" >&5
12779 echo "${ECHO_T}$ac_res" >&6; }
12780 if test `eval echo '${'$as_ac_var'}'` = yes; then
12781   cat >>confdefs.h <<_ACEOF
12782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12783 _ACEOF
12784
12785 fi
12786 done
12787
12788
12789
12790 if test "$WITH_LLVMGCCDIR" = "default" ; then
12791   LLVMGCC="llvm-gcc${EXEEXT}"
12792   LLVMGXX="llvm-g++${EXEEXT}"
12793   LLVMGCCCOMMAND="$LLVMGCC"
12794   LLVMGXXCOMMAND="$LLVMGXX"
12795   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12796
12797   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12798
12799   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12800 set dummy $LLVMGCC; ac_word=$2
12801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12803 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12804   echo $ECHO_N "(cached) $ECHO_C" >&6
12805 else
12806   case $LLVMGCC in
12807   [\\/]* | ?:[\\/]*)
12808   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12809   ;;
12810   *)
12811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12813 do
12814   IFS=$as_save_IFS
12815   test -z "$as_dir" && as_dir=.
12816   for ac_exec_ext in '' $ac_executable_extensions; do
12817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12818     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12820     break 2
12821   fi
12822 done
12823 done
12824 IFS=$as_save_IFS
12825
12826   ;;
12827 esac
12828 fi
12829 LLVMGCC=$ac_cv_path_LLVMGCC
12830 if test -n "$LLVMGCC"; then
12831   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12832 echo "${ECHO_T}$LLVMGCC" >&6; }
12833 else
12834   { echo "$as_me:$LINENO: result: no" >&5
12835 echo "${ECHO_T}no" >&6; }
12836 fi
12837
12838
12839   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12840 set dummy $LLVMGXX; ac_word=$2
12841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12843 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12844   echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846   case $LLVMGXX in
12847   [\\/]* | ?:[\\/]*)
12848   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12849   ;;
12850   *)
12851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12853 do
12854   IFS=$as_save_IFS
12855   test -z "$as_dir" && as_dir=.
12856   for ac_exec_ext in '' $ac_executable_extensions; do
12857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12858     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12860     break 2
12861   fi
12862 done
12863 done
12864 IFS=$as_save_IFS
12865
12866   ;;
12867 esac
12868 fi
12869 LLVMGXX=$ac_cv_path_LLVMGXX
12870 if test -n "$LLVMGXX"; then
12871   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12872 echo "${ECHO_T}$LLVMGXX" >&6; }
12873 else
12874   { echo "$as_me:$LINENO: result: no" >&5
12875 echo "${ECHO_T}no" >&6; }
12876 fi
12877
12878
12879 else
12880   if test -z "$LLVMGCC"; then
12881     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12882     LLVMGCCCOMMAND="$LLVMGCC"
12883   fi
12884   if test -z "$LLVMGXX"; then
12885     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12886     LLVMGXXCOMMAND="$LLVMGXX"
12887   fi
12888
12889   LLVMGCC=$LLVMGCC
12890
12891   LLVMGXX=$LLVMGXX
12892
12893   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12894
12895   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12896
12897 fi
12898
12899
12900 # Check whether --with-llvmcc was given.
12901 if test "${with_llvmcc+set}" = set; then
12902   withval=$with_llvmcc;
12903 else
12904   with_llvmcc=check
12905 fi
12906
12907 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12908 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12909 if test "$with_llvmcc" != "check"; then
12910    if (test "$with_llvmcc" != "llvm-gcc" &&
12911        test "$with_llvmcc" != "clang" &&
12912        test "$with_llvmcc" != "none"); then
12913       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12914 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12915    { (exit 1); exit 1; }; }
12916    fi
12917    WITH_LLVMCC="$with_llvmcc"
12918 elif test -n "$LLVMGCC"; then
12919    WITH_LLVMCC=llvm-gcc
12920 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12921    WITH_LLVMCC=clang
12922 else
12923    WITH_LLVMCC=none
12924 fi
12925 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12926 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12927 LLVMCC_OPTION=$WITH_LLVMCC
12928
12929
12930 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12931 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12932
12933 ICC=no
12934 IXX=no
12935 case $CC in
12936   icc*|icpc*)
12937     ICC=yes
12938     IXX=yes
12939     ;;
12940    *)
12941     ;;
12942 esac
12943
12944 if test "$GCC" != "yes" && test "$ICC" != "yes"
12945 then
12946   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12947 echo "$as_me: error: gcc|icc required but not found" >&2;}
12948    { (exit 1); exit 1; }; }
12949 fi
12950
12951 if test "$GXX" != "yes" && test "$IXX" != "yes"
12952 then
12953   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12954 echo "$as_me: error: g++|icc required but not found" >&2;}
12955    { (exit 1); exit 1; }; }
12956 fi
12957
12958 if test "$GCC" = "yes"
12959 then
12960   cat >conftest.$ac_ext <<_ACEOF
12961 #if !defined(__GNUC__) || __GNUC__ < 3
12962 #error Unsupported GCC version
12963 #endif
12964
12965 _ACEOF
12966 rm -f conftest.$ac_objext
12967 if { (ac_try="$ac_compile"
12968 case "(($ac_try" in
12969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970   *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973   (eval "$ac_compile") 2>conftest.er1
12974   ac_status=$?
12975   grep -v '^ *+' conftest.er1 >conftest.err
12976   rm -f conftest.er1
12977   cat conftest.err >&5
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); } &&
12980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12981   { (case "(($ac_try" in
12982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983   *) ac_try_echo=$ac_try;;
12984 esac
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986   (eval "$ac_try") 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; } &&
12990          { ac_try='test -s conftest.$ac_objext'
12991   { (case "(($ac_try" in
12992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993   *) ac_try_echo=$ac_try;;
12994 esac
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996   (eval "$ac_try") 2>&5
12997   ac_status=$?
12998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999   (exit $ac_status); }; }; then
13000   :
13001 else
13002   echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13004
13005         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13006 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13007    { (exit 1); exit 1; }; }
13008 fi
13009
13010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011 fi
13012
13013 if test -z "$llvm_cv_gnu_make_command"
13014 then
13015   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13016 echo "$as_me: error: GNU Make required but not found" >&2;}
13017    { (exit 1); exit 1; }; }
13018 fi
13019
13020 { echo "$as_me:$LINENO: result: ok" >&5
13021 echo "${ECHO_T}ok" >&6; }
13022
13023 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13024 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13025 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13026
13027 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13028
13029 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13030 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13031
13032
13033
13034 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13035 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13036 if test "${ac_cv_lib_m_sin+set}" = set; then
13037   echo $ECHO_N "(cached) $ECHO_C" >&6
13038 else
13039   ac_check_lib_save_LIBS=$LIBS
13040 LIBS="-lm  $LIBS"
13041 cat >conftest.$ac_ext <<_ACEOF
13042 /* confdefs.h.  */
13043 _ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h.  */
13047
13048 /* Override any GCC internal prototype to avoid an error.
13049    Use char because int might match the return type of a GCC
13050    builtin and then its argument prototype would still apply.  */
13051 #ifdef __cplusplus
13052 extern "C"
13053 #endif
13054 char sin ();
13055 int
13056 main ()
13057 {
13058 return sin ();
13059   ;
13060   return 0;
13061 }
13062 _ACEOF
13063 rm -f conftest.$ac_objext conftest$ac_exeext
13064 if { (ac_try="$ac_link"
13065 case "(($ac_try" in
13066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067   *) ac_try_echo=$ac_try;;
13068 esac
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070   (eval "$ac_link") 2>conftest.er1
13071   ac_status=$?
13072   grep -v '^ *+' conftest.er1 >conftest.err
13073   rm -f conftest.er1
13074   cat conftest.err >&5
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); } &&
13077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13078   { (case "(($ac_try" in
13079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080   *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083   (eval "$ac_try") 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; } &&
13087          { ac_try='test -s conftest$ac_exeext'
13088   { (case "(($ac_try" in
13089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090   *) ac_try_echo=$ac_try;;
13091 esac
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093   (eval "$ac_try") 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); }; }; then
13097   ac_cv_lib_m_sin=yes
13098 else
13099   echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102         ac_cv_lib_m_sin=no
13103 fi
13104
13105 rm -f core conftest.err conftest.$ac_objext \
13106       conftest$ac_exeext conftest.$ac_ext
13107 LIBS=$ac_check_lib_save_LIBS
13108 fi
13109 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13110 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13111 if test $ac_cv_lib_m_sin = yes; then
13112   cat >>confdefs.h <<_ACEOF
13113 #define HAVE_LIBM 1
13114 _ACEOF
13115
13116   LIBS="-lm $LIBS"
13117
13118 fi
13119
13120 if test "$llvm_cv_os_type" = "MingW" ; then
13121
13122 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13123 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13124 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13125   echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127   ac_check_lib_save_LIBS=$LIBS
13128 LIBS="-limagehlp  $LIBS"
13129 cat >conftest.$ac_ext <<_ACEOF
13130 /* confdefs.h.  */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h.  */
13135
13136
13137 int
13138 main ()
13139 {
13140 return main ();
13141   ;
13142   return 0;
13143 }
13144 _ACEOF
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (ac_try="$ac_link"
13147 case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152   (eval "$ac_link") 2>conftest.er1
13153   ac_status=$?
13154   grep -v '^ *+' conftest.er1 >conftest.err
13155   rm -f conftest.er1
13156   cat conftest.err >&5
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); } &&
13159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13160   { (case "(($ac_try" in
13161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162   *) ac_try_echo=$ac_try;;
13163 esac
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165   (eval "$ac_try") 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); }; } &&
13169          { ac_try='test -s conftest$ac_exeext'
13170   { (case "(($ac_try" in
13171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172   *) ac_try_echo=$ac_try;;
13173 esac
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175   (eval "$ac_try") 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); }; }; then
13179   ac_cv_lib_imagehlp_main=yes
13180 else
13181   echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13183
13184         ac_cv_lib_imagehlp_main=no
13185 fi
13186
13187 rm -f core conftest.err conftest.$ac_objext \
13188       conftest$ac_exeext conftest.$ac_ext
13189 LIBS=$ac_check_lib_save_LIBS
13190 fi
13191 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13192 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13193 if test $ac_cv_lib_imagehlp_main = yes; then
13194   cat >>confdefs.h <<_ACEOF
13195 #define HAVE_LIBIMAGEHLP 1
13196 _ACEOF
13197
13198   LIBS="-limagehlp $LIBS"
13199
13200 fi
13201
13202
13203 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13204 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13205 if test "${ac_cv_lib_psapi_main+set}" = set; then
13206   echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208   ac_check_lib_save_LIBS=$LIBS
13209 LIBS="-lpsapi  $LIBS"
13210 cat >conftest.$ac_ext <<_ACEOF
13211 /* confdefs.h.  */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h.  */
13216
13217
13218 int
13219 main ()
13220 {
13221 return main ();
13222   ;
13223   return 0;
13224 }
13225 _ACEOF
13226 rm -f conftest.$ac_objext conftest$ac_exeext
13227 if { (ac_try="$ac_link"
13228 case "(($ac_try" in
13229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230   *) ac_try_echo=$ac_try;;
13231 esac
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233   (eval "$ac_link") 2>conftest.er1
13234   ac_status=$?
13235   grep -v '^ *+' conftest.er1 >conftest.err
13236   rm -f conftest.er1
13237   cat conftest.err >&5
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); } &&
13240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241   { (case "(($ac_try" in
13242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243   *) ac_try_echo=$ac_try;;
13244 esac
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246   (eval "$ac_try") 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; } &&
13250          { ac_try='test -s conftest$ac_exeext'
13251   { (case "(($ac_try" in
13252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253   *) ac_try_echo=$ac_try;;
13254 esac
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256   (eval "$ac_try") 2>&5
13257   ac_status=$?
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); }; }; then
13260   ac_cv_lib_psapi_main=yes
13261 else
13262   echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265         ac_cv_lib_psapi_main=no
13266 fi
13267
13268 rm -f core conftest.err conftest.$ac_objext \
13269       conftest$ac_exeext conftest.$ac_ext
13270 LIBS=$ac_check_lib_save_LIBS
13271 fi
13272 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13273 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13274 if test $ac_cv_lib_psapi_main = yes; then
13275   cat >>confdefs.h <<_ACEOF
13276 #define HAVE_LIBPSAPI 1
13277 _ACEOF
13278
13279   LIBS="-lpsapi $LIBS"
13280
13281 fi
13282
13283 fi
13284
13285 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13286 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13287 if test "${ac_cv_search_dlopen+set}" = set; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290   ac_func_search_save_LIBS=$LIBS
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h.  */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h.  */
13297
13298 /* Override any GCC internal prototype to avoid an error.
13299    Use char because int might match the return type of a GCC
13300    builtin and then its argument prototype would still apply.  */
13301 #ifdef __cplusplus
13302 extern "C"
13303 #endif
13304 char dlopen ();
13305 int
13306 main ()
13307 {
13308 return dlopen ();
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 for ac_lib in '' dl; do
13314   if test -z "$ac_lib"; then
13315     ac_res="none required"
13316   else
13317     ac_res=-l$ac_lib
13318     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13319   fi
13320   rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (ac_try="$ac_link"
13322 case "(($ac_try" in
13323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324   *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327   (eval "$ac_link") 2>conftest.er1
13328   ac_status=$?
13329   grep -v '^ *+' conftest.er1 >conftest.err
13330   rm -f conftest.er1
13331   cat conftest.err >&5
13332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333   (exit $ac_status); } &&
13334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13335   { (case "(($ac_try" in
13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337   *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340   (eval "$ac_try") 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; } &&
13344          { ac_try='test -s conftest$ac_exeext'
13345   { (case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350   (eval "$ac_try") 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; }; then
13354   ac_cv_search_dlopen=$ac_res
13355 else
13356   echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359
13360 fi
13361
13362 rm -f core conftest.err conftest.$ac_objext \
13363       conftest$ac_exeext
13364   if test "${ac_cv_search_dlopen+set}" = set; then
13365   break
13366 fi
13367 done
13368 if test "${ac_cv_search_dlopen+set}" = set; then
13369   :
13370 else
13371   ac_cv_search_dlopen=no
13372 fi
13373 rm conftest.$ac_ext
13374 LIBS=$ac_func_search_save_LIBS
13375 fi
13376 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13377 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13378 ac_res=$ac_cv_search_dlopen
13379 if test "$ac_res" != no; then
13380   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13381
13382 cat >>confdefs.h <<\_ACEOF
13383 #define HAVE_DLOPEN 1
13384 _ACEOF
13385
13386 else
13387   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13388 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13389 fi
13390
13391
13392 if test "$llvm_cv_enable_libffi" = "yes" ; then
13393   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13394 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13395 if test "${ac_cv_search_ffi_call+set}" = set; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398   ac_func_search_save_LIBS=$LIBS
13399 cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405
13406 /* Override any GCC internal prototype to avoid an error.
13407    Use char because int might match the return type of a GCC
13408    builtin and then its argument prototype would still apply.  */
13409 #ifdef __cplusplus
13410 extern "C"
13411 #endif
13412 char ffi_call ();
13413 int
13414 main ()
13415 {
13416 return ffi_call ();
13417   ;
13418   return 0;
13419 }
13420 _ACEOF
13421 for ac_lib in '' ffi; do
13422   if test -z "$ac_lib"; then
13423     ac_res="none required"
13424   else
13425     ac_res=-l$ac_lib
13426     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13427   fi
13428   rm -f conftest.$ac_objext conftest$ac_exeext
13429 if { (ac_try="$ac_link"
13430 case "(($ac_try" in
13431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432   *) ac_try_echo=$ac_try;;
13433 esac
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435   (eval "$ac_link") 2>conftest.er1
13436   ac_status=$?
13437   grep -v '^ *+' conftest.er1 >conftest.err
13438   rm -f conftest.er1
13439   cat conftest.err >&5
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13443   { (case "(($ac_try" in
13444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445   *) ac_try_echo=$ac_try;;
13446 esac
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448   (eval "$ac_try") 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; } &&
13452          { ac_try='test -s conftest$ac_exeext'
13453   { (case "(($ac_try" in
13454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455   *) ac_try_echo=$ac_try;;
13456 esac
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458   (eval "$ac_try") 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462   ac_cv_search_ffi_call=$ac_res
13463 else
13464   echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467
13468 fi
13469
13470 rm -f core conftest.err conftest.$ac_objext \
13471       conftest$ac_exeext
13472   if test "${ac_cv_search_ffi_call+set}" = set; then
13473   break
13474 fi
13475 done
13476 if test "${ac_cv_search_ffi_call+set}" = set; then
13477   :
13478 else
13479   ac_cv_search_ffi_call=no
13480 fi
13481 rm conftest.$ac_ext
13482 LIBS=$ac_func_search_save_LIBS
13483 fi
13484 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13485 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13486 ac_res=$ac_cv_search_ffi_call
13487 if test "$ac_res" != no; then
13488   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13489
13490 cat >>confdefs.h <<\_ACEOF
13491 #define HAVE_FFI_CALL 1
13492 _ACEOF
13493
13494 else
13495   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13496 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13497    { (exit 1); exit 1; }; }
13498 fi
13499
13500 fi
13501
13502 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13503 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13504 if test "${ac_cv_search_mallinfo+set}" = set; then
13505   echo $ECHO_N "(cached) $ECHO_C" >&6
13506 else
13507   ac_func_search_save_LIBS=$LIBS
13508 cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h.  */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h.  */
13514
13515 /* Override any GCC internal prototype to avoid an error.
13516    Use char because int might match the return type of a GCC
13517    builtin and then its argument prototype would still apply.  */
13518 #ifdef __cplusplus
13519 extern "C"
13520 #endif
13521 char mallinfo ();
13522 int
13523 main ()
13524 {
13525 return mallinfo ();
13526   ;
13527   return 0;
13528 }
13529 _ACEOF
13530 for ac_lib in '' malloc; do
13531   if test -z "$ac_lib"; then
13532     ac_res="none required"
13533   else
13534     ac_res=-l$ac_lib
13535     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13536   fi
13537   rm -f conftest.$ac_objext conftest$ac_exeext
13538 if { (ac_try="$ac_link"
13539 case "(($ac_try" in
13540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541   *) ac_try_echo=$ac_try;;
13542 esac
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544   (eval "$ac_link") 2>conftest.er1
13545   ac_status=$?
13546   grep -v '^ *+' conftest.er1 >conftest.err
13547   rm -f conftest.er1
13548   cat conftest.err >&5
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); } &&
13551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13552   { (case "(($ac_try" in
13553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554   *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557   (eval "$ac_try") 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; } &&
13561          { ac_try='test -s conftest$ac_exeext'
13562   { (case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567   (eval "$ac_try") 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); }; }; then
13571   ac_cv_search_mallinfo=$ac_res
13572 else
13573   echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13575
13576
13577 fi
13578
13579 rm -f core conftest.err conftest.$ac_objext \
13580       conftest$ac_exeext
13581   if test "${ac_cv_search_mallinfo+set}" = set; then
13582   break
13583 fi
13584 done
13585 if test "${ac_cv_search_mallinfo+set}" = set; then
13586   :
13587 else
13588   ac_cv_search_mallinfo=no
13589 fi
13590 rm conftest.$ac_ext
13591 LIBS=$ac_func_search_save_LIBS
13592 fi
13593 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13594 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13595 ac_res=$ac_cv_search_mallinfo
13596 if test "$ac_res" != no; then
13597   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13598
13599 cat >>confdefs.h <<\_ACEOF
13600 #define HAVE_MALLINFO 1
13601 _ACEOF
13602
13603 fi
13604
13605
13606 if test "$ENABLE_THREADS" -eq 1 ; then
13607
13608 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13609 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13610 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613   ac_check_lib_save_LIBS=$LIBS
13614 LIBS="-lpthread  $LIBS"
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h.  */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h.  */
13621
13622 /* Override any GCC internal prototype to avoid an error.
13623    Use char because int might match the return type of a GCC
13624    builtin and then its argument prototype would still apply.  */
13625 #ifdef __cplusplus
13626 extern "C"
13627 #endif
13628 char pthread_mutex_init ();
13629 int
13630 main ()
13631 {
13632 return pthread_mutex_init ();
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 rm -f conftest.$ac_objext conftest$ac_exeext
13638 if { (ac_try="$ac_link"
13639 case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_link") 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } &&
13651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652   { (case "(($ac_try" in
13653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654   *) ac_try_echo=$ac_try;;
13655 esac
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657   (eval "$ac_try") 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); }; } &&
13661          { ac_try='test -s conftest$ac_exeext'
13662   { (case "(($ac_try" in
13663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664   *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667   (eval "$ac_try") 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; }; then
13671   ac_cv_lib_pthread_pthread_mutex_init=yes
13672 else
13673   echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13675
13676         ac_cv_lib_pthread_pthread_mutex_init=no
13677 fi
13678
13679 rm -f core conftest.err conftest.$ac_objext \
13680       conftest$ac_exeext conftest.$ac_ext
13681 LIBS=$ac_check_lib_save_LIBS
13682 fi
13683 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13684 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13685 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13686   cat >>confdefs.h <<_ACEOF
13687 #define HAVE_LIBPTHREAD 1
13688 _ACEOF
13689
13690   LIBS="-lpthread $LIBS"
13691
13692 fi
13693
13694   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13695 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13696 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13697   echo $ECHO_N "(cached) $ECHO_C" >&6
13698 else
13699   ac_func_search_save_LIBS=$LIBS
13700 cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13706
13707 /* Override any GCC internal prototype to avoid an error.
13708    Use char because int might match the return type of a GCC
13709    builtin and then its argument prototype would still apply.  */
13710 #ifdef __cplusplus
13711 extern "C"
13712 #endif
13713 char pthread_mutex_lock ();
13714 int
13715 main ()
13716 {
13717 return pthread_mutex_lock ();
13718   ;
13719   return 0;
13720 }
13721 _ACEOF
13722 for ac_lib in '' pthread; do
13723   if test -z "$ac_lib"; then
13724     ac_res="none required"
13725   else
13726     ac_res=-l$ac_lib
13727     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13728   fi
13729   rm -f conftest.$ac_objext conftest$ac_exeext
13730 if { (ac_try="$ac_link"
13731 case "(($ac_try" in
13732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733   *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736   (eval "$ac_link") 2>conftest.er1
13737   ac_status=$?
13738   grep -v '^ *+' conftest.er1 >conftest.err
13739   rm -f conftest.er1
13740   cat conftest.err >&5
13741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742   (exit $ac_status); } &&
13743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13744   { (case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_try") 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; } &&
13753          { ac_try='test -s conftest$ac_exeext'
13754   { (case "(($ac_try" in
13755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756   *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759   (eval "$ac_try") 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; }; then
13763   ac_cv_search_pthread_mutex_lock=$ac_res
13764 else
13765   echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13767
13768
13769 fi
13770
13771 rm -f core conftest.err conftest.$ac_objext \
13772       conftest$ac_exeext
13773   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13774   break
13775 fi
13776 done
13777 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13778   :
13779 else
13780   ac_cv_search_pthread_mutex_lock=no
13781 fi
13782 rm conftest.$ac_ext
13783 LIBS=$ac_func_search_save_LIBS
13784 fi
13785 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13786 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13787 ac_res=$ac_cv_search_pthread_mutex_lock
13788 if test "$ac_res" != no; then
13789   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13790
13791 cat >>confdefs.h <<\_ACEOF
13792 #define HAVE_PTHREAD_MUTEX_LOCK 1
13793 _ACEOF
13794
13795 fi
13796
13797   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13798 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13799 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   ac_func_search_save_LIBS=$LIBS
13803 cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809
13810 /* Override any GCC internal prototype to avoid an error.
13811    Use char because int might match the return type of a GCC
13812    builtin and then its argument prototype would still apply.  */
13813 #ifdef __cplusplus
13814 extern "C"
13815 #endif
13816 char pthread_rwlock_init ();
13817 int
13818 main ()
13819 {
13820 return pthread_rwlock_init ();
13821   ;
13822   return 0;
13823 }
13824 _ACEOF
13825 for ac_lib in '' pthread; do
13826   if test -z "$ac_lib"; then
13827     ac_res="none required"
13828   else
13829     ac_res=-l$ac_lib
13830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13831   fi
13832   rm -f conftest.$ac_objext conftest$ac_exeext
13833 if { (ac_try="$ac_link"
13834 case "(($ac_try" in
13835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836   *) ac_try_echo=$ac_try;;
13837 esac
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839   (eval "$ac_link") 2>conftest.er1
13840   ac_status=$?
13841   grep -v '^ *+' conftest.er1 >conftest.err
13842   rm -f conftest.er1
13843   cat conftest.err >&5
13844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845   (exit $ac_status); } &&
13846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13847   { (case "(($ac_try" in
13848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849   *) ac_try_echo=$ac_try;;
13850 esac
13851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852   (eval "$ac_try") 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); }; } &&
13856          { ac_try='test -s conftest$ac_exeext'
13857   { (case "(($ac_try" in
13858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859   *) ac_try_echo=$ac_try;;
13860 esac
13861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862   (eval "$ac_try") 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); }; }; then
13866   ac_cv_search_pthread_rwlock_init=$ac_res
13867 else
13868   echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871
13872 fi
13873
13874 rm -f core conftest.err conftest.$ac_objext \
13875       conftest$ac_exeext
13876   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13877   break
13878 fi
13879 done
13880 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13881   :
13882 else
13883   ac_cv_search_pthread_rwlock_init=no
13884 fi
13885 rm conftest.$ac_ext
13886 LIBS=$ac_func_search_save_LIBS
13887 fi
13888 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13889 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13890 ac_res=$ac_cv_search_pthread_rwlock_init
13891 if test "$ac_res" != no; then
13892   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13893
13894 cat >>confdefs.h <<\_ACEOF
13895 #define HAVE_PTHREAD_RWLOCK_INIT 1
13896 _ACEOF
13897
13898 fi
13899
13900   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13901 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13902 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13903   echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905   ac_func_search_save_LIBS=$LIBS
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912
13913 /* Override any GCC internal prototype to avoid an error.
13914    Use char because int might match the return type of a GCC
13915    builtin and then its argument prototype would still apply.  */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 char pthread_getspecific ();
13920 int
13921 main ()
13922 {
13923 return pthread_getspecific ();
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 for ac_lib in '' pthread; do
13929   if test -z "$ac_lib"; then
13930     ac_res="none required"
13931   else
13932     ac_res=-l$ac_lib
13933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13934   fi
13935   rm -f conftest.$ac_objext conftest$ac_exeext
13936 if { (ac_try="$ac_link"
13937 case "(($ac_try" in
13938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939   *) ac_try_echo=$ac_try;;
13940 esac
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942   (eval "$ac_link") 2>conftest.er1
13943   ac_status=$?
13944   grep -v '^ *+' conftest.er1 >conftest.err
13945   rm -f conftest.er1
13946   cat conftest.err >&5
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); } &&
13949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13950   { (case "(($ac_try" in
13951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952   *) ac_try_echo=$ac_try;;
13953 esac
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955   (eval "$ac_try") 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; } &&
13959          { ac_try='test -s conftest$ac_exeext'
13960   { (case "(($ac_try" in
13961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962   *) ac_try_echo=$ac_try;;
13963 esac
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965   (eval "$ac_try") 2>&5
13966   ac_status=$?
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); }; }; then
13969   ac_cv_search_pthread_getspecific=$ac_res
13970 else
13971   echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13973
13974
13975 fi
13976
13977 rm -f core conftest.err conftest.$ac_objext \
13978       conftest$ac_exeext
13979   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13980   break
13981 fi
13982 done
13983 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13984   :
13985 else
13986   ac_cv_search_pthread_getspecific=no
13987 fi
13988 rm conftest.$ac_ext
13989 LIBS=$ac_func_search_save_LIBS
13990 fi
13991 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13992 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13993 ac_res=$ac_cv_search_pthread_getspecific
13994 if test "$ac_res" != no; then
13995   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13996
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_PTHREAD_GETSPECIFIC 1
13999 _ACEOF
14000
14001 fi
14002
14003 fi
14004
14005
14006 # Check whether --with-udis86 was given.
14007 if test "${with_udis86+set}" = set; then
14008   withval=$with_udis86;
14009       USE_UDIS86=1
14010
14011       case "$withval" in
14012         /usr/lib|yes) ;;
14013         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14014       esac
14015
14016 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14017 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14018 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14019   echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021   ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-ludis86  $LIBS"
14023 cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h.  */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h.  */
14029
14030 /* Override any GCC internal prototype to avoid an error.
14031    Use char because int might match the return type of a GCC
14032    builtin and then its argument prototype would still apply.  */
14033 #ifdef __cplusplus
14034 extern "C"
14035 #endif
14036 char ud_init ();
14037 int
14038 main ()
14039 {
14040 return ud_init ();
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 rm -f conftest.$ac_objext conftest$ac_exeext
14046 if { (ac_try="$ac_link"
14047 case "(($ac_try" in
14048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049   *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052   (eval "$ac_link") 2>conftest.er1
14053   ac_status=$?
14054   grep -v '^ *+' conftest.er1 >conftest.err
14055   rm -f conftest.er1
14056   cat conftest.err >&5
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); } &&
14059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14060   { (case "(($ac_try" in
14061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062   *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065   (eval "$ac_try") 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); }; } &&
14069          { ac_try='test -s conftest$ac_exeext'
14070   { (case "(($ac_try" in
14071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072   *) ac_try_echo=$ac_try;;
14073 esac
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075   (eval "$ac_try") 2>&5
14076   ac_status=$?
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); }; }; then
14079   ac_cv_lib_udis86_ud_init=yes
14080 else
14081   echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084         ac_cv_lib_udis86_ud_init=no
14085 fi
14086
14087 rm -f core conftest.err conftest.$ac_objext \
14088       conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14090 fi
14091 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14092 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14093 if test $ac_cv_lib_udis86_ud_init = yes; then
14094   cat >>confdefs.h <<_ACEOF
14095 #define HAVE_LIBUDIS86 1
14096 _ACEOF
14097
14098   LIBS="-ludis86 $LIBS"
14099
14100 else
14101
14102         echo "Error! You need to have libudis86 around."
14103         exit -1
14104
14105 fi
14106
14107
14108 else
14109   USE_UDIS86=0
14110
14111 fi
14112
14113
14114 cat >>confdefs.h <<_ACEOF
14115 #define USE_UDIS86 $USE_UDIS86
14116 _ACEOF
14117
14118
14119
14120 # Check whether --with-oprofile was given.
14121 if test "${with_oprofile+set}" = set; then
14122   withval=$with_oprofile;
14123       USE_OPROFILE=1
14124
14125       case "$withval" in
14126         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14127         no) llvm_cv_oppath=
14128             USE_OPROFILE=0
14129  ;;
14130         *) llvm_cv_oppath="${withval}/lib/oprofile"
14131            CPPFLAGS="-I${withval}/include";;
14132       esac
14133       if test -n "$llvm_cv_oppath" ; then
14134         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14135                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14136 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14137 if test "${ac_cv_search_bfd_init+set}" = set; then
14138   echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140   ac_func_search_save_LIBS=$LIBS
14141 cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147
14148 /* Override any GCC internal prototype to avoid an error.
14149    Use char because int might match the return type of a GCC
14150    builtin and then its argument prototype would still apply.  */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char bfd_init ();
14155 int
14156 main ()
14157 {
14158 return bfd_init ();
14159   ;
14160   return 0;
14161 }
14162 _ACEOF
14163 for ac_lib in '' bfd; do
14164   if test -z "$ac_lib"; then
14165     ac_res="none required"
14166   else
14167     ac_res=-l$ac_lib
14168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14169   fi
14170   rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (ac_try="$ac_link"
14172 case "(($ac_try" in
14173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174   *) ac_try_echo=$ac_try;;
14175 esac
14176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14177   (eval "$ac_link") 2>conftest.er1
14178   ac_status=$?
14179   grep -v '^ *+' conftest.er1 >conftest.err
14180   rm -f conftest.er1
14181   cat conftest.err >&5
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); } &&
14184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14185   { (case "(($ac_try" in
14186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187   *) ac_try_echo=$ac_try;;
14188 esac
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190   (eval "$ac_try") 2>&5
14191   ac_status=$?
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); }; } &&
14194          { ac_try='test -s conftest$ac_exeext'
14195   { (case "(($ac_try" in
14196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197   *) ac_try_echo=$ac_try;;
14198 esac
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200   (eval "$ac_try") 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; }; then
14204   ac_cv_search_bfd_init=$ac_res
14205 else
14206   echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14208
14209
14210 fi
14211
14212 rm -f core conftest.err conftest.$ac_objext \
14213       conftest$ac_exeext
14214   if test "${ac_cv_search_bfd_init+set}" = set; then
14215   break
14216 fi
14217 done
14218 if test "${ac_cv_search_bfd_init+set}" = set; then
14219   :
14220 else
14221   ac_cv_search_bfd_init=no
14222 fi
14223 rm conftest.$ac_ext
14224 LIBS=$ac_func_search_save_LIBS
14225 fi
14226 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14227 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14228 ac_res=$ac_cv_search_bfd_init
14229 if test "$ac_res" != no; then
14230   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14231
14232 fi
14233
14234         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14235 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14236 if test "${ac_cv_search_op_open_agent+set}" = set; then
14237   echo $ECHO_N "(cached) $ECHO_C" >&6
14238 else
14239   ac_func_search_save_LIBS=$LIBS
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h.  */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h.  */
14246
14247 /* Override any GCC internal prototype to avoid an error.
14248    Use char because int might match the return type of a GCC
14249    builtin and then its argument prototype would still apply.  */
14250 #ifdef __cplusplus
14251 extern "C"
14252 #endif
14253 char op_open_agent ();
14254 int
14255 main ()
14256 {
14257 return op_open_agent ();
14258   ;
14259   return 0;
14260 }
14261 _ACEOF
14262 for ac_lib in '' opagent; do
14263   if test -z "$ac_lib"; then
14264     ac_res="none required"
14265   else
14266     ac_res=-l$ac_lib
14267     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14268   fi
14269   rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (ac_try="$ac_link"
14271 case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276   (eval "$ac_link") 2>conftest.er1
14277   ac_status=$?
14278   grep -v '^ *+' conftest.er1 >conftest.err
14279   rm -f conftest.er1
14280   cat conftest.err >&5
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); } &&
14283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14284   { (case "(($ac_try" in
14285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286   *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289   (eval "$ac_try") 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; } &&
14293          { ac_try='test -s conftest$ac_exeext'
14294   { (case "(($ac_try" in
14295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296   *) ac_try_echo=$ac_try;;
14297 esac
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299   (eval "$ac_try") 2>&5
14300   ac_status=$?
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); }; }; then
14303   ac_cv_search_op_open_agent=$ac_res
14304 else
14305   echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14307
14308
14309 fi
14310
14311 rm -f core conftest.err conftest.$ac_objext \
14312       conftest$ac_exeext
14313   if test "${ac_cv_search_op_open_agent+set}" = set; then
14314   break
14315 fi
14316 done
14317 if test "${ac_cv_search_op_open_agent+set}" = set; then
14318   :
14319 else
14320   ac_cv_search_op_open_agent=no
14321 fi
14322 rm conftest.$ac_ext
14323 LIBS=$ac_func_search_save_LIBS
14324 fi
14325 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14326 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14327 ac_res=$ac_cv_search_op_open_agent
14328 if test "$ac_res" != no; then
14329   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14330
14331 else
14332
14333           echo "Error! You need to have libopagent around."
14334           exit -1
14335
14336 fi
14337
14338         if test "${ac_cv_header_opagent_h+set}" = set; then
14339   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14340 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14341 if test "${ac_cv_header_opagent_h+set}" = set; then
14342   echo $ECHO_N "(cached) $ECHO_C" >&6
14343 fi
14344 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14345 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14346 else
14347   # Is the header compilable?
14348 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14349 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h.  */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h.  */
14356 $ac_includes_default
14357 #include <opagent.h>
14358 _ACEOF
14359 rm -f conftest.$ac_objext
14360 if { (ac_try="$ac_compile"
14361 case "(($ac_try" in
14362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363   *) ac_try_echo=$ac_try;;
14364 esac
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366   (eval "$ac_compile") 2>conftest.er1
14367   ac_status=$?
14368   grep -v '^ *+' conftest.er1 >conftest.err
14369   rm -f conftest.er1
14370   cat conftest.err >&5
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14374   { (case "(($ac_try" in
14375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376   *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379   (eval "$ac_try") 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; } &&
14383          { ac_try='test -s conftest.$ac_objext'
14384   { (case "(($ac_try" in
14385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386   *) ac_try_echo=$ac_try;;
14387 esac
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389   (eval "$ac_try") 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; }; then
14393   ac_header_compiler=yes
14394 else
14395   echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14397
14398         ac_header_compiler=no
14399 fi
14400
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14403 echo "${ECHO_T}$ac_header_compiler" >&6; }
14404
14405 # Is the header present?
14406 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14407 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h.  */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h.  */
14414 #include <opagent.h>
14415 _ACEOF
14416 if { (ac_try="$ac_cpp conftest.$ac_ext"
14417 case "(($ac_try" in
14418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419   *) ac_try_echo=$ac_try;;
14420 esac
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14423   ac_status=$?
14424   grep -v '^ *+' conftest.er1 >conftest.err
14425   rm -f conftest.er1
14426   cat conftest.err >&5
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); } >/dev/null; then
14429   if test -s conftest.err; then
14430     ac_cpp_err=$ac_c_preproc_warn_flag
14431     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14432   else
14433     ac_cpp_err=
14434   fi
14435 else
14436   ac_cpp_err=yes
14437 fi
14438 if test -z "$ac_cpp_err"; then
14439   ac_header_preproc=yes
14440 else
14441   echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14443
14444   ac_header_preproc=no
14445 fi
14446
14447 rm -f conftest.err conftest.$ac_ext
14448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14449 echo "${ECHO_T}$ac_header_preproc" >&6; }
14450
14451 # So?  What about this header?
14452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14453   yes:no: )
14454     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14455 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14456     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14457 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14458     ac_header_preproc=yes
14459     ;;
14460   no:yes:* )
14461     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14462 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14463     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14464 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14465     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14466 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14467     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14468 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14469     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14470 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14471     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14472 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14473     ( cat <<\_ASBOX
14474 ## ----------------------------------- ##
14475 ## Report this to llvmbugs@cs.uiuc.edu ##
14476 ## ----------------------------------- ##
14477 _ASBOX
14478      ) | sed "s/^/$as_me: WARNING:     /" >&2
14479     ;;
14480 esac
14481 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14482 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14483 if test "${ac_cv_header_opagent_h+set}" = set; then
14484   echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486   ac_cv_header_opagent_h=$ac_header_preproc
14487 fi
14488 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14489 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14490
14491 fi
14492 if test $ac_cv_header_opagent_h = yes; then
14493   :
14494 else
14495
14496           echo "Error! You need to have opagent.h around."
14497           exit -1
14498
14499 fi
14500
14501
14502       fi
14503
14504 else
14505
14506       USE_OPROFILE=0
14507
14508
14509 fi
14510
14511
14512 cat >>confdefs.h <<_ACEOF
14513 #define USE_OPROFILE $USE_OPROFILE
14514 _ACEOF
14515
14516
14517
14518
14519
14520
14521
14522
14523 ac_header_dirent=no
14524 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14525   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14526 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14527 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531   cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h.  */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h.  */
14537 #include <sys/types.h>
14538 #include <$ac_hdr>
14539
14540 int
14541 main ()
14542 {
14543 if ((DIR *) 0)
14544 return 0;
14545   ;
14546   return 0;
14547 }
14548 _ACEOF
14549 rm -f conftest.$ac_objext
14550 if { (ac_try="$ac_compile"
14551 case "(($ac_try" in
14552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553   *) ac_try_echo=$ac_try;;
14554 esac
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556   (eval "$ac_compile") 2>conftest.er1
14557   ac_status=$?
14558   grep -v '^ *+' conftest.er1 >conftest.err
14559   rm -f conftest.er1
14560   cat conftest.err >&5
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } &&
14563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14564   { (case "(($ac_try" in
14565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566   *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569   (eval "$ac_try") 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; } &&
14573          { ac_try='test -s conftest.$ac_objext'
14574   { (case "(($ac_try" in
14575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576   *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579   (eval "$ac_try") 2>&5
14580   ac_status=$?
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); }; }; then
14583   eval "$as_ac_Header=yes"
14584 else
14585   echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14587
14588         eval "$as_ac_Header=no"
14589 fi
14590
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 fi
14593 ac_res=`eval echo '${'$as_ac_Header'}'`
14594                { echo "$as_me:$LINENO: result: $ac_res" >&5
14595 echo "${ECHO_T}$ac_res" >&6; }
14596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14597   cat >>confdefs.h <<_ACEOF
14598 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14599 _ACEOF
14600
14601 ac_header_dirent=$ac_hdr; break
14602 fi
14603
14604 done
14605 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14606 if test $ac_header_dirent = dirent.h; then
14607   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14608 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14609 if test "${ac_cv_search_opendir+set}" = set; then
14610   echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612   ac_func_search_save_LIBS=$LIBS
14613 cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h.  */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h.  */
14619
14620 /* Override any GCC internal prototype to avoid an error.
14621    Use char because int might match the return type of a GCC
14622    builtin and then its argument prototype would still apply.  */
14623 #ifdef __cplusplus
14624 extern "C"
14625 #endif
14626 char opendir ();
14627 int
14628 main ()
14629 {
14630 return opendir ();
14631   ;
14632   return 0;
14633 }
14634 _ACEOF
14635 for ac_lib in '' dir; do
14636   if test -z "$ac_lib"; then
14637     ac_res="none required"
14638   else
14639     ac_res=-l$ac_lib
14640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14641   fi
14642   rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (ac_try="$ac_link"
14644 case "(($ac_try" in
14645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646   *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649   (eval "$ac_link") 2>conftest.er1
14650   ac_status=$?
14651   grep -v '^ *+' conftest.er1 >conftest.err
14652   rm -f conftest.er1
14653   cat conftest.err >&5
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } &&
14656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657   { (case "(($ac_try" in
14658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659   *) ac_try_echo=$ac_try;;
14660 esac
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662   (eval "$ac_try") 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); }; } &&
14666          { ac_try='test -s conftest$ac_exeext'
14667   { (case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672   (eval "$ac_try") 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; }; then
14676   ac_cv_search_opendir=$ac_res
14677 else
14678   echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681
14682 fi
14683
14684 rm -f core conftest.err conftest.$ac_objext \
14685       conftest$ac_exeext
14686   if test "${ac_cv_search_opendir+set}" = set; then
14687   break
14688 fi
14689 done
14690 if test "${ac_cv_search_opendir+set}" = set; then
14691   :
14692 else
14693   ac_cv_search_opendir=no
14694 fi
14695 rm conftest.$ac_ext
14696 LIBS=$ac_func_search_save_LIBS
14697 fi
14698 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14699 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14700 ac_res=$ac_cv_search_opendir
14701 if test "$ac_res" != no; then
14702   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14703
14704 fi
14705
14706 else
14707   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14708 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14709 if test "${ac_cv_search_opendir+set}" = set; then
14710   echo $ECHO_N "(cached) $ECHO_C" >&6
14711 else
14712   ac_func_search_save_LIBS=$LIBS
14713 cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h.  */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h.  */
14719
14720 /* Override any GCC internal prototype to avoid an error.
14721    Use char because int might match the return type of a GCC
14722    builtin and then its argument prototype would still apply.  */
14723 #ifdef __cplusplus
14724 extern "C"
14725 #endif
14726 char opendir ();
14727 int
14728 main ()
14729 {
14730 return opendir ();
14731   ;
14732   return 0;
14733 }
14734 _ACEOF
14735 for ac_lib in '' x; do
14736   if test -z "$ac_lib"; then
14737     ac_res="none required"
14738   else
14739     ac_res=-l$ac_lib
14740     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14741   fi
14742   rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (ac_try="$ac_link"
14744 case "(($ac_try" in
14745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746   *) ac_try_echo=$ac_try;;
14747 esac
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749   (eval "$ac_link") 2>conftest.er1
14750   ac_status=$?
14751   grep -v '^ *+' conftest.er1 >conftest.err
14752   rm -f conftest.er1
14753   cat conftest.err >&5
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14757   { (case "(($ac_try" in
14758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759   *) ac_try_echo=$ac_try;;
14760 esac
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762   (eval "$ac_try") 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; } &&
14766          { ac_try='test -s conftest$ac_exeext'
14767   { (case "(($ac_try" in
14768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769   *) ac_try_echo=$ac_try;;
14770 esac
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772   (eval "$ac_try") 2>&5
14773   ac_status=$?
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); }; }; then
14776   ac_cv_search_opendir=$ac_res
14777 else
14778   echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14780
14781
14782 fi
14783
14784 rm -f core conftest.err conftest.$ac_objext \
14785       conftest$ac_exeext
14786   if test "${ac_cv_search_opendir+set}" = set; then
14787   break
14788 fi
14789 done
14790 if test "${ac_cv_search_opendir+set}" = set; then
14791   :
14792 else
14793   ac_cv_search_opendir=no
14794 fi
14795 rm conftest.$ac_ext
14796 LIBS=$ac_func_search_save_LIBS
14797 fi
14798 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14799 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14800 ac_res=$ac_cv_search_opendir
14801 if test "$ac_res" != no; then
14802   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14803
14804 fi
14805
14806 fi
14807
14808 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14809 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14810 if test "${ac_cv_header_mmap_anon+set}" = set; then
14811   echo $ECHO_N "(cached) $ECHO_C" >&6
14812 else
14813    ac_ext=c
14814 ac_cpp='$CPP $CPPFLAGS'
14815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14818
14819   cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825 #include <sys/mman.h>
14826 #include <unistd.h>
14827 #include <fcntl.h>
14828 int
14829 main ()
14830 {
14831 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14832   ;
14833   return 0;
14834 }
14835 _ACEOF
14836 rm -f conftest.$ac_objext
14837 if { (ac_try="$ac_compile"
14838 case "(($ac_try" in
14839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840   *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843   (eval "$ac_compile") 2>conftest.er1
14844   ac_status=$?
14845   grep -v '^ *+' conftest.er1 >conftest.err
14846   rm -f conftest.er1
14847   cat conftest.err >&5
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); } &&
14850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14851   { (case "(($ac_try" in
14852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853   *) ac_try_echo=$ac_try;;
14854 esac
14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856   (eval "$ac_try") 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); }; } &&
14860          { ac_try='test -s conftest.$ac_objext'
14861   { (case "(($ac_try" in
14862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863   *) ac_try_echo=$ac_try;;
14864 esac
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866   (eval "$ac_try") 2>&5
14867   ac_status=$?
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); }; }; then
14870   ac_cv_header_mmap_anon=yes
14871 else
14872   echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14874
14875         ac_cv_header_mmap_anon=no
14876 fi
14877
14878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879   ac_ext=c
14880 ac_cpp='$CPP $CPPFLAGS'
14881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14884
14885
14886 fi
14887 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14888 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14889 if test "$ac_cv_header_mmap_anon" = yes; then
14890
14891 cat >>confdefs.h <<\_ACEOF
14892 #define HAVE_MMAP_ANONYMOUS 1
14893 _ACEOF
14894
14895 fi
14896
14897 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14898 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14899 if test "${ac_cv_header_stat_broken+set}" = set; then
14900   echo $ECHO_N "(cached) $ECHO_C" >&6
14901 else
14902   cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908 #include <sys/types.h>
14909 #include <sys/stat.h>
14910
14911 #if defined S_ISBLK && defined S_IFDIR
14912 # if S_ISBLK (S_IFDIR)
14913 You lose.
14914 # endif
14915 #endif
14916
14917 #if defined S_ISBLK && defined S_IFCHR
14918 # if S_ISBLK (S_IFCHR)
14919 You lose.
14920 # endif
14921 #endif
14922
14923 #if defined S_ISLNK && defined S_IFREG
14924 # if S_ISLNK (S_IFREG)
14925 You lose.
14926 # endif
14927 #endif
14928
14929 #if defined S_ISSOCK && defined S_IFREG
14930 # if S_ISSOCK (S_IFREG)
14931 You lose.
14932 # endif
14933 #endif
14934
14935 _ACEOF
14936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14937   $EGREP "You lose" >/dev/null 2>&1; then
14938   ac_cv_header_stat_broken=yes
14939 else
14940   ac_cv_header_stat_broken=no
14941 fi
14942 rm -f conftest*
14943
14944 fi
14945 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14946 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14947 if test $ac_cv_header_stat_broken = yes; then
14948
14949 cat >>confdefs.h <<\_ACEOF
14950 #define STAT_MACROS_BROKEN 1
14951 _ACEOF
14952
14953 fi
14954
14955 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14956 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14957 if test "${ac_cv_header_stdc+set}" = set; then
14958   echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960   cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h.  */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h.  */
14966 #include <stdlib.h>
14967 #include <stdarg.h>
14968 #include <string.h>
14969 #include <float.h>
14970
14971 int
14972 main ()
14973 {
14974
14975   ;
14976   return 0;
14977 }
14978 _ACEOF
14979 rm -f conftest.$ac_objext
14980 if { (ac_try="$ac_compile"
14981 case "(($ac_try" in
14982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983   *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986   (eval "$ac_compile") 2>conftest.er1
14987   ac_status=$?
14988   grep -v '^ *+' conftest.er1 >conftest.err
14989   rm -f conftest.er1
14990   cat conftest.err >&5
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); } &&
14993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14994   { (case "(($ac_try" in
14995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996   *) ac_try_echo=$ac_try;;
14997 esac
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999   (eval "$ac_try") 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; } &&
15003          { ac_try='test -s conftest.$ac_objext'
15004   { (case "(($ac_try" in
15005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006   *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009   (eval "$ac_try") 2>&5
15010   ac_status=$?
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); }; }; then
15013   ac_cv_header_stdc=yes
15014 else
15015   echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15017
15018         ac_cv_header_stdc=no
15019 fi
15020
15021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15022
15023 if test $ac_cv_header_stdc = yes; then
15024   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15025   cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h.  */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h.  */
15031 #include <string.h>
15032
15033 _ACEOF
15034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15035   $EGREP "memchr" >/dev/null 2>&1; then
15036   :
15037 else
15038   ac_cv_header_stdc=no
15039 fi
15040 rm -f conftest*
15041
15042 fi
15043
15044 if test $ac_cv_header_stdc = yes; then
15045   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15046   cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h.  */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h.  */
15052 #include <stdlib.h>
15053
15054 _ACEOF
15055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15056   $EGREP "free" >/dev/null 2>&1; then
15057   :
15058 else
15059   ac_cv_header_stdc=no
15060 fi
15061 rm -f conftest*
15062
15063 fi
15064
15065 if test $ac_cv_header_stdc = yes; then
15066   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15067   if test "$cross_compiling" = yes; then
15068   :
15069 else
15070   cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076 #include <ctype.h>
15077 #include <stdlib.h>
15078 #if ((' ' & 0x0FF) == 0x020)
15079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15081 #else
15082 # define ISLOWER(c) \
15083                    (('a' <= (c) && (c) <= 'i') \
15084                      || ('j' <= (c) && (c) <= 'r') \
15085                      || ('s' <= (c) && (c) <= 'z'))
15086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15087 #endif
15088
15089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15090 int
15091 main ()
15092 {
15093   int i;
15094   for (i = 0; i < 256; i++)
15095     if (XOR (islower (i), ISLOWER (i))
15096         || toupper (i) != TOUPPER (i))
15097       return 2;
15098   return 0;
15099 }
15100 _ACEOF
15101 rm -f conftest$ac_exeext
15102 if { (ac_try="$ac_link"
15103 case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108   (eval "$ac_link") 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   :
15122 else
15123   echo "$as_me: program exited with status $ac_status" >&5
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15126
15127 ( exit $ac_status )
15128 ac_cv_header_stdc=no
15129 fi
15130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15131 fi
15132
15133
15134 fi
15135 fi
15136 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15137 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15138 if test $ac_cv_header_stdc = yes; then
15139
15140 cat >>confdefs.h <<\_ACEOF
15141 #define STDC_HEADERS 1
15142 _ACEOF
15143
15144 fi
15145
15146 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15147 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15148 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15149   echo $ECHO_N "(cached) $ECHO_C" >&6
15150 else
15151   cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h.  */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h.  */
15157 #include <sys/types.h>
15158 #include <sys/wait.h>
15159 #ifndef WEXITSTATUS
15160 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15161 #endif
15162 #ifndef WIFEXITED
15163 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15164 #endif
15165
15166 int
15167 main ()
15168 {
15169   int s;
15170   wait (&s);
15171   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15172   ;
15173   return 0;
15174 }
15175 _ACEOF
15176 rm -f conftest.$ac_objext
15177 if { (ac_try="$ac_compile"
15178 case "(($ac_try" in
15179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180   *) ac_try_echo=$ac_try;;
15181 esac
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183   (eval "$ac_compile") 2>conftest.er1
15184   ac_status=$?
15185   grep -v '^ *+' conftest.er1 >conftest.err
15186   rm -f conftest.er1
15187   cat conftest.err >&5
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); } &&
15190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191   { (case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_try") 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); }; } &&
15200          { ac_try='test -s conftest.$ac_objext'
15201   { (case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_try") 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; }; then
15210   ac_cv_header_sys_wait_h=yes
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215         ac_cv_header_sys_wait_h=no
15216 fi
15217
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 fi
15220 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15221 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15222 if test $ac_cv_header_sys_wait_h = yes; then
15223
15224 cat >>confdefs.h <<\_ACEOF
15225 #define HAVE_SYS_WAIT_H 1
15226 _ACEOF
15227
15228 fi
15229
15230 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15231 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15232 if test "${ac_cv_header_time+set}" = set; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 #include <sys/types.h>
15242 #include <sys/time.h>
15243 #include <time.h>
15244
15245 int
15246 main ()
15247 {
15248 if ((struct tm *) 0)
15249 return 0;
15250   ;
15251   return 0;
15252 }
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (ac_try="$ac_compile"
15256 case "(($ac_try" in
15257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258   *) ac_try_echo=$ac_try;;
15259 esac
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261   (eval "$ac_compile") 2>conftest.er1
15262   ac_status=$?
15263   grep -v '^ *+' conftest.er1 >conftest.err
15264   rm -f conftest.er1
15265   cat conftest.err >&5
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15269   { (case "(($ac_try" in
15270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271   *) ac_try_echo=$ac_try;;
15272 esac
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274   (eval "$ac_try") 2>&5
15275   ac_status=$?
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); }; } &&
15278          { ac_try='test -s conftest.$ac_objext'
15279   { (case "(($ac_try" in
15280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281   *) ac_try_echo=$ac_try;;
15282 esac
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284   (eval "$ac_try") 2>&5
15285   ac_status=$?
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); }; }; then
15288   ac_cv_header_time=yes
15289 else
15290   echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15292
15293         ac_cv_header_time=no
15294 fi
15295
15296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297 fi
15298 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15299 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15300 if test $ac_cv_header_time = yes; then
15301
15302 cat >>confdefs.h <<\_ACEOF
15303 #define TIME_WITH_SYS_TIME 1
15304 _ACEOF
15305
15306 fi
15307
15308
15309
15310
15311
15312
15313
15314
15315 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15316 do
15317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15319   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15322   echo $ECHO_N "(cached) $ECHO_C" >&6
15323 fi
15324 ac_res=`eval echo '${'$as_ac_Header'}'`
15325                { echo "$as_me:$LINENO: result: $ac_res" >&5
15326 echo "${ECHO_T}$ac_res" >&6; }
15327 else
15328   # Is the header compilable?
15329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15331 cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337 $ac_includes_default
15338 #include <$ac_header>
15339 _ACEOF
15340 rm -f conftest.$ac_objext
15341 if { (ac_try="$ac_compile"
15342 case "(($ac_try" in
15343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344   *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347   (eval "$ac_compile") 2>conftest.er1
15348   ac_status=$?
15349   grep -v '^ *+' conftest.er1 >conftest.err
15350   rm -f conftest.er1
15351   cat conftest.err >&5
15352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353   (exit $ac_status); } &&
15354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15355   { (case "(($ac_try" in
15356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357   *) ac_try_echo=$ac_try;;
15358 esac
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360   (eval "$ac_try") 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); }; } &&
15364          { ac_try='test -s conftest.$ac_objext'
15365   { (case "(($ac_try" in
15366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367   *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370   (eval "$ac_try") 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); }; }; then
15374   ac_header_compiler=yes
15375 else
15376   echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15378
15379         ac_header_compiler=no
15380 fi
15381
15382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15384 echo "${ECHO_T}$ac_header_compiler" >&6; }
15385
15386 # Is the header present?
15387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15389 cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h.  */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h.  */
15395 #include <$ac_header>
15396 _ACEOF
15397 if { (ac_try="$ac_cpp conftest.$ac_ext"
15398 case "(($ac_try" in
15399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400   *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15404   ac_status=$?
15405   grep -v '^ *+' conftest.er1 >conftest.err
15406   rm -f conftest.er1
15407   cat conftest.err >&5
15408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409   (exit $ac_status); } >/dev/null; then
15410   if test -s conftest.err; then
15411     ac_cpp_err=$ac_c_preproc_warn_flag
15412     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15413   else
15414     ac_cpp_err=
15415   fi
15416 else
15417   ac_cpp_err=yes
15418 fi
15419 if test -z "$ac_cpp_err"; then
15420   ac_header_preproc=yes
15421 else
15422   echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425   ac_header_preproc=no
15426 fi
15427
15428 rm -f conftest.err conftest.$ac_ext
15429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15430 echo "${ECHO_T}$ac_header_preproc" >&6; }
15431
15432 # So?  What about this header?
15433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15434   yes:no: )
15435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15439     ac_header_preproc=yes
15440     ;;
15441   no:yes:* )
15442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15454     ( cat <<\_ASBOX
15455 ## ----------------------------------- ##
15456 ## Report this to llvmbugs@cs.uiuc.edu ##
15457 ## ----------------------------------- ##
15458 _ASBOX
15459      ) | sed "s/^/$as_me: WARNING:     /" >&2
15460     ;;
15461 esac
15462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15465   echo $ECHO_N "(cached) $ECHO_C" >&6
15466 else
15467   eval "$as_ac_Header=\$ac_header_preproc"
15468 fi
15469 ac_res=`eval echo '${'$as_ac_Header'}'`
15470                { echo "$as_me:$LINENO: result: $ac_res" >&5
15471 echo "${ECHO_T}$ac_res" >&6; }
15472
15473 fi
15474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15475   cat >>confdefs.h <<_ACEOF
15476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15477 _ACEOF
15478
15479 fi
15480
15481 done
15482
15483
15484
15485
15486
15487
15488
15489 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15490 do
15491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15493   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496   echo $ECHO_N "(cached) $ECHO_C" >&6
15497 fi
15498 ac_res=`eval echo '${'$as_ac_Header'}'`
15499                { echo "$as_me:$LINENO: result: $ac_res" >&5
15500 echo "${ECHO_T}$ac_res" >&6; }
15501 else
15502   # Is the header compilable?
15503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15505 cat >conftest.$ac_ext <<_ACEOF
15506 /* confdefs.h.  */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h.  */
15511 $ac_includes_default
15512 #include <$ac_header>
15513 _ACEOF
15514 rm -f conftest.$ac_objext
15515 if { (ac_try="$ac_compile"
15516 case "(($ac_try" in
15517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518   *) ac_try_echo=$ac_try;;
15519 esac
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521   (eval "$ac_compile") 2>conftest.er1
15522   ac_status=$?
15523   grep -v '^ *+' conftest.er1 >conftest.err
15524   rm -f conftest.er1
15525   cat conftest.err >&5
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); } &&
15528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15529   { (case "(($ac_try" in
15530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531   *) ac_try_echo=$ac_try;;
15532 esac
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534   (eval "$ac_try") 2>&5
15535   ac_status=$?
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); }; } &&
15538          { ac_try='test -s conftest.$ac_objext'
15539   { (case "(($ac_try" in
15540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541   *) ac_try_echo=$ac_try;;
15542 esac
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544   (eval "$ac_try") 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); }; }; then
15548   ac_header_compiler=yes
15549 else
15550   echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553         ac_header_compiler=no
15554 fi
15555
15556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15558 echo "${ECHO_T}$ac_header_compiler" >&6; }
15559
15560 # Is the header present?
15561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15563 cat >conftest.$ac_ext <<_ACEOF
15564 /* confdefs.h.  */
15565 _ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h.  */
15569 #include <$ac_header>
15570 _ACEOF
15571 if { (ac_try="$ac_cpp conftest.$ac_ext"
15572 case "(($ac_try" in
15573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574   *) ac_try_echo=$ac_try;;
15575 esac
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } >/dev/null; then
15584   if test -s conftest.err; then
15585     ac_cpp_err=$ac_c_preproc_warn_flag
15586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15587   else
15588     ac_cpp_err=
15589   fi
15590 else
15591   ac_cpp_err=yes
15592 fi
15593 if test -z "$ac_cpp_err"; then
15594   ac_header_preproc=yes
15595 else
15596   echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599   ac_header_preproc=no
15600 fi
15601
15602 rm -f conftest.err conftest.$ac_ext
15603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15604 echo "${ECHO_T}$ac_header_preproc" >&6; }
15605
15606 # So?  What about this header?
15607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15608   yes:no: )
15609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15613     ac_header_preproc=yes
15614     ;;
15615   no:yes:* )
15616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15618     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15619 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15620     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15622     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15623 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15626     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15628     ( cat <<\_ASBOX
15629 ## ----------------------------------- ##
15630 ## Report this to llvmbugs@cs.uiuc.edu ##
15631 ## ----------------------------------- ##
15632 _ASBOX
15633      ) | sed "s/^/$as_me: WARNING:     /" >&2
15634     ;;
15635 esac
15636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15639   echo $ECHO_N "(cached) $ECHO_C" >&6
15640 else
15641   eval "$as_ac_Header=\$ac_header_preproc"
15642 fi
15643 ac_res=`eval echo '${'$as_ac_Header'}'`
15644                { echo "$as_me:$LINENO: result: $ac_res" >&5
15645 echo "${ECHO_T}$ac_res" >&6; }
15646
15647 fi
15648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15649   cat >>confdefs.h <<_ACEOF
15650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15651 _ACEOF
15652
15653 fi
15654
15655 done
15656
15657
15658
15659 for ac_header in utime.h windows.h
15660 do
15661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15663   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15666   echo $ECHO_N "(cached) $ECHO_C" >&6
15667 fi
15668 ac_res=`eval echo '${'$as_ac_Header'}'`
15669                { echo "$as_me:$LINENO: result: $ac_res" >&5
15670 echo "${ECHO_T}$ac_res" >&6; }
15671 else
15672   # Is the header compilable?
15673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15675 cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h.  */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h.  */
15681 $ac_includes_default
15682 #include <$ac_header>
15683 _ACEOF
15684 rm -f conftest.$ac_objext
15685 if { (ac_try="$ac_compile"
15686 case "(($ac_try" in
15687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688   *) ac_try_echo=$ac_try;;
15689 esac
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691   (eval "$ac_compile") 2>conftest.er1
15692   ac_status=$?
15693   grep -v '^ *+' conftest.er1 >conftest.err
15694   rm -f conftest.er1
15695   cat conftest.err >&5
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); } &&
15698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15699   { (case "(($ac_try" in
15700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701   *) ac_try_echo=$ac_try;;
15702 esac
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704   (eval "$ac_try") 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; } &&
15708          { ac_try='test -s conftest.$ac_objext'
15709   { (case "(($ac_try" in
15710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711   *) ac_try_echo=$ac_try;;
15712 esac
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714   (eval "$ac_try") 2>&5
15715   ac_status=$?
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); }; }; then
15718   ac_header_compiler=yes
15719 else
15720   echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723         ac_header_compiler=no
15724 fi
15725
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15728 echo "${ECHO_T}$ac_header_compiler" >&6; }
15729
15730 # Is the header present?
15731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h.  */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h.  */
15739 #include <$ac_header>
15740 _ACEOF
15741 if { (ac_try="$ac_cpp conftest.$ac_ext"
15742 case "(($ac_try" in
15743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744   *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15748   ac_status=$?
15749   grep -v '^ *+' conftest.er1 >conftest.err
15750   rm -f conftest.er1
15751   cat conftest.err >&5
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); } >/dev/null; then
15754   if test -s conftest.err; then
15755     ac_cpp_err=$ac_c_preproc_warn_flag
15756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15757   else
15758     ac_cpp_err=
15759   fi
15760 else
15761   ac_cpp_err=yes
15762 fi
15763 if test -z "$ac_cpp_err"; then
15764   ac_header_preproc=yes
15765 else
15766   echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769   ac_header_preproc=no
15770 fi
15771
15772 rm -f conftest.err conftest.$ac_ext
15773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15774 echo "${ECHO_T}$ac_header_preproc" >&6; }
15775
15776 # So?  What about this header?
15777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15778   yes:no: )
15779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15783     ac_header_preproc=yes
15784     ;;
15785   no:yes:* )
15786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15788     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15789 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15790     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15792     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15793 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15796     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15798     ( cat <<\_ASBOX
15799 ## ----------------------------------- ##
15800 ## Report this to llvmbugs@cs.uiuc.edu ##
15801 ## ----------------------------------- ##
15802 _ASBOX
15803      ) | sed "s/^/$as_me: WARNING:     /" >&2
15804     ;;
15805 esac
15806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15809   echo $ECHO_N "(cached) $ECHO_C" >&6
15810 else
15811   eval "$as_ac_Header=\$ac_header_preproc"
15812 fi
15813 ac_res=`eval echo '${'$as_ac_Header'}'`
15814                { echo "$as_me:$LINENO: result: $ac_res" >&5
15815 echo "${ECHO_T}$ac_res" >&6; }
15816
15817 fi
15818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15819   cat >>confdefs.h <<_ACEOF
15820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15821 _ACEOF
15822
15823 fi
15824
15825 done
15826
15827
15828
15829
15830
15831 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15832 do
15833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838   echo $ECHO_N "(cached) $ECHO_C" >&6
15839 fi
15840 ac_res=`eval echo '${'$as_ac_Header'}'`
15841                { echo "$as_me:$LINENO: result: $ac_res" >&5
15842 echo "${ECHO_T}$ac_res" >&6; }
15843 else
15844   # Is the header compilable?
15845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15847 cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853 $ac_includes_default
15854 #include <$ac_header>
15855 _ACEOF
15856 rm -f conftest.$ac_objext
15857 if { (ac_try="$ac_compile"
15858 case "(($ac_try" in
15859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860   *) ac_try_echo=$ac_try;;
15861 esac
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863   (eval "$ac_compile") 2>conftest.er1
15864   ac_status=$?
15865   grep -v '^ *+' conftest.er1 >conftest.err
15866   rm -f conftest.er1
15867   cat conftest.err >&5
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } &&
15870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15871   { (case "(($ac_try" in
15872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873   *) ac_try_echo=$ac_try;;
15874 esac
15875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876   (eval "$ac_try") 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); }; } &&
15880          { ac_try='test -s conftest.$ac_objext'
15881   { (case "(($ac_try" in
15882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883   *) ac_try_echo=$ac_try;;
15884 esac
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886   (eval "$ac_try") 2>&5
15887   ac_status=$?
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); }; }; then
15890   ac_header_compiler=yes
15891 else
15892   echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15894
15895         ac_header_compiler=no
15896 fi
15897
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15900 echo "${ECHO_T}$ac_header_compiler" >&6; }
15901
15902 # Is the header present?
15903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15905 cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h.  */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h.  */
15911 #include <$ac_header>
15912 _ACEOF
15913 if { (ac_try="$ac_cpp conftest.$ac_ext"
15914 case "(($ac_try" in
15915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916   *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15920   ac_status=$?
15921   grep -v '^ *+' conftest.er1 >conftest.err
15922   rm -f conftest.er1
15923   cat conftest.err >&5
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } >/dev/null; then
15926   if test -s conftest.err; then
15927     ac_cpp_err=$ac_c_preproc_warn_flag
15928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15929   else
15930     ac_cpp_err=
15931   fi
15932 else
15933   ac_cpp_err=yes
15934 fi
15935 if test -z "$ac_cpp_err"; then
15936   ac_header_preproc=yes
15937 else
15938   echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941   ac_header_preproc=no
15942 fi
15943
15944 rm -f conftest.err conftest.$ac_ext
15945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15946 echo "${ECHO_T}$ac_header_preproc" >&6; }
15947
15948 # So?  What about this header?
15949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15950   yes:no: )
15951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15955     ac_header_preproc=yes
15956     ;;
15957   no:yes:* )
15958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15970     ( cat <<\_ASBOX
15971 ## ----------------------------------- ##
15972 ## Report this to llvmbugs@cs.uiuc.edu ##
15973 ## ----------------------------------- ##
15974 _ASBOX
15975      ) | sed "s/^/$as_me: WARNING:     /" >&2
15976     ;;
15977 esac
15978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15981   echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983   eval "$as_ac_Header=\$ac_header_preproc"
15984 fi
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986                { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15988
15989 fi
15990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15991   cat >>confdefs.h <<_ACEOF
15992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15993 _ACEOF
15994
15995 fi
15996
15997 done
15998
15999
16000
16001
16002
16003 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16004 do
16005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16007   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010   echo $ECHO_N "(cached) $ECHO_C" >&6
16011 fi
16012 ac_res=`eval echo '${'$as_ac_Header'}'`
16013                { echo "$as_me:$LINENO: result: $ac_res" >&5
16014 echo "${ECHO_T}$ac_res" >&6; }
16015 else
16016   # Is the header compilable?
16017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16019 cat >conftest.$ac_ext <<_ACEOF
16020 /* confdefs.h.  */
16021 _ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h.  */
16025 $ac_includes_default
16026 #include <$ac_header>
16027 _ACEOF
16028 rm -f conftest.$ac_objext
16029 if { (ac_try="$ac_compile"
16030 case "(($ac_try" in
16031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032   *) ac_try_echo=$ac_try;;
16033 esac
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035   (eval "$ac_compile") 2>conftest.er1
16036   ac_status=$?
16037   grep -v '^ *+' conftest.er1 >conftest.err
16038   rm -f conftest.er1
16039   cat conftest.err >&5
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); } &&
16042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16043   { (case "(($ac_try" in
16044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045   *) ac_try_echo=$ac_try;;
16046 esac
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048   (eval "$ac_try") 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; } &&
16052          { ac_try='test -s conftest.$ac_objext'
16053   { (case "(($ac_try" in
16054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055   *) ac_try_echo=$ac_try;;
16056 esac
16057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16058   (eval "$ac_try") 2>&5
16059   ac_status=$?
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); }; }; then
16062   ac_header_compiler=yes
16063 else
16064   echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067         ac_header_compiler=no
16068 fi
16069
16070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16072 echo "${ECHO_T}$ac_header_compiler" >&6; }
16073
16074 # Is the header present?
16075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16077 cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h.  */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h.  */
16083 #include <$ac_header>
16084 _ACEOF
16085 if { (ac_try="$ac_cpp conftest.$ac_ext"
16086 case "(($ac_try" in
16087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088   *) ac_try_echo=$ac_try;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16092   ac_status=$?
16093   grep -v '^ *+' conftest.er1 >conftest.err
16094   rm -f conftest.er1
16095   cat conftest.err >&5
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); } >/dev/null; then
16098   if test -s conftest.err; then
16099     ac_cpp_err=$ac_c_preproc_warn_flag
16100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16101   else
16102     ac_cpp_err=
16103   fi
16104 else
16105   ac_cpp_err=yes
16106 fi
16107 if test -z "$ac_cpp_err"; then
16108   ac_header_preproc=yes
16109 else
16110   echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16112
16113   ac_header_preproc=no
16114 fi
16115
16116 rm -f conftest.err conftest.$ac_ext
16117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16118 echo "${ECHO_T}$ac_header_preproc" >&6; }
16119
16120 # So?  What about this header?
16121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16122   yes:no: )
16123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16127     ac_header_preproc=yes
16128     ;;
16129   no:yes:* )
16130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16142     ( cat <<\_ASBOX
16143 ## ----------------------------------- ##
16144 ## Report this to llvmbugs@cs.uiuc.edu ##
16145 ## ----------------------------------- ##
16146 _ASBOX
16147      ) | sed "s/^/$as_me: WARNING:     /" >&2
16148     ;;
16149 esac
16150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16153   echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155   eval "$as_ac_Header=\$ac_header_preproc"
16156 fi
16157 ac_res=`eval echo '${'$as_ac_Header'}'`
16158                { echo "$as_me:$LINENO: result: $ac_res" >&5
16159 echo "${ECHO_T}$ac_res" >&6; }
16160
16161 fi
16162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16163   cat >>confdefs.h <<_ACEOF
16164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16165 _ACEOF
16166
16167 fi
16168
16169 done
16170
16171 if test "$ENABLE_THREADS" -eq 1 ; then
16172
16173 for ac_header in pthread.h
16174 do
16175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16177   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180   echo $ECHO_N "(cached) $ECHO_C" >&6
16181 fi
16182 ac_res=`eval echo '${'$as_ac_Header'}'`
16183                { echo "$as_me:$LINENO: result: $ac_res" >&5
16184 echo "${ECHO_T}$ac_res" >&6; }
16185 else
16186   # Is the header compilable?
16187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h.  */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h.  */
16195 $ac_includes_default
16196 #include <$ac_header>
16197 _ACEOF
16198 rm -f conftest.$ac_objext
16199 if { (ac_try="$ac_compile"
16200 case "(($ac_try" in
16201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202   *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205   (eval "$ac_compile") 2>conftest.er1
16206   ac_status=$?
16207   grep -v '^ *+' conftest.er1 >conftest.err
16208   rm -f conftest.er1
16209   cat conftest.err >&5
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } &&
16212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16213   { (case "(($ac_try" in
16214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215   *) ac_try_echo=$ac_try;;
16216 esac
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218   (eval "$ac_try") 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; } &&
16222          { ac_try='test -s conftest.$ac_objext'
16223   { (case "(($ac_try" in
16224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225   *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228   (eval "$ac_try") 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); }; }; then
16232   ac_header_compiler=yes
16233 else
16234   echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16236
16237         ac_header_compiler=no
16238 fi
16239
16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16242 echo "${ECHO_T}$ac_header_compiler" >&6; }
16243
16244 # Is the header present?
16245 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253 #include <$ac_header>
16254 _ACEOF
16255 if { (ac_try="$ac_cpp conftest.$ac_ext"
16256 case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16262   ac_status=$?
16263   grep -v '^ *+' conftest.er1 >conftest.err
16264   rm -f conftest.er1
16265   cat conftest.err >&5
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } >/dev/null; then
16268   if test -s conftest.err; then
16269     ac_cpp_err=$ac_c_preproc_warn_flag
16270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16271   else
16272     ac_cpp_err=
16273   fi
16274 else
16275   ac_cpp_err=yes
16276 fi
16277 if test -z "$ac_cpp_err"; then
16278   ac_header_preproc=yes
16279 else
16280   echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16282
16283   ac_header_preproc=no
16284 fi
16285
16286 rm -f conftest.err conftest.$ac_ext
16287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16288 echo "${ECHO_T}$ac_header_preproc" >&6; }
16289
16290 # So?  What about this header?
16291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16292   yes:no: )
16293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16297     ac_header_preproc=yes
16298     ;;
16299   no:yes:* )
16300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16312     ( cat <<\_ASBOX
16313 ## ----------------------------------- ##
16314 ## Report this to llvmbugs@cs.uiuc.edu ##
16315 ## ----------------------------------- ##
16316 _ASBOX
16317      ) | sed "s/^/$as_me: WARNING:     /" >&2
16318     ;;
16319 esac
16320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323   echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325   eval "$as_ac_Header=\$ac_header_preproc"
16326 fi
16327 ac_res=`eval echo '${'$as_ac_Header'}'`
16328                { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16330
16331 fi
16332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16333   cat >>confdefs.h <<_ACEOF
16334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16335 _ACEOF
16336  HAVE_PTHREAD=1
16337
16338 else
16339   HAVE_PTHREAD=0
16340
16341 fi
16342
16343 done
16344
16345 else
16346   HAVE_PTHREAD=0
16347
16348 fi
16349
16350 if test "$llvm_cv_enable_libffi" = "yes" ; then
16351
16352
16353 for ac_header in ffi.h ffi/ffi.h
16354 do
16355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360   echo $ECHO_N "(cached) $ECHO_C" >&6
16361 fi
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363                { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16365 else
16366   # Is the header compilable?
16367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h.  */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h.  */
16375 $ac_includes_default
16376 #include <$ac_header>
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382   *) ac_try_echo=$ac_try;;
16383 esac
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385   (eval "$ac_compile") 2>conftest.er1
16386   ac_status=$?
16387   grep -v '^ *+' conftest.er1 >conftest.err
16388   rm -f conftest.er1
16389   cat conftest.err >&5
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16393   { (case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_try") 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; } &&
16402          { ac_try='test -s conftest.$ac_objext'
16403   { (case "(($ac_try" in
16404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405   *) ac_try_echo=$ac_try;;
16406 esac
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408   (eval "$ac_try") 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }; }; then
16412   ac_header_compiler=yes
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417         ac_header_compiler=no
16418 fi
16419
16420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16422 echo "${ECHO_T}$ac_header_compiler" >&6; }
16423
16424 # Is the header present?
16425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16427 cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 #include <$ac_header>
16434 _ACEOF
16435 if { (ac_try="$ac_cpp conftest.$ac_ext"
16436 case "(($ac_try" in
16437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438   *) ac_try_echo=$ac_try;;
16439 esac
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16442   ac_status=$?
16443   grep -v '^ *+' conftest.er1 >conftest.err
16444   rm -f conftest.er1
16445   cat conftest.err >&5
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); } >/dev/null; then
16448   if test -s conftest.err; then
16449     ac_cpp_err=$ac_c_preproc_warn_flag
16450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16451   else
16452     ac_cpp_err=
16453   fi
16454 else
16455   ac_cpp_err=yes
16456 fi
16457 if test -z "$ac_cpp_err"; then
16458   ac_header_preproc=yes
16459 else
16460   echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16462
16463   ac_header_preproc=no
16464 fi
16465
16466 rm -f conftest.err conftest.$ac_ext
16467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16468 echo "${ECHO_T}$ac_header_preproc" >&6; }
16469
16470 # So?  What about this header?
16471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16472   yes:no: )
16473     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16477     ac_header_preproc=yes
16478     ;;
16479   no:yes:* )
16480     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16482     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16483 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16484     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16486     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16487 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16490     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16492     ( cat <<\_ASBOX
16493 ## ----------------------------------- ##
16494 ## Report this to llvmbugs@cs.uiuc.edu ##
16495 ## ----------------------------------- ##
16496 _ASBOX
16497      ) | sed "s/^/$as_me: WARNING:     /" >&2
16498     ;;
16499 esac
16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505   eval "$as_ac_Header=\$ac_header_preproc"
16506 fi
16507 ac_res=`eval echo '${'$as_ac_Header'}'`
16508                { echo "$as_me:$LINENO: result: $ac_res" >&5
16509 echo "${ECHO_T}$ac_res" >&6; }
16510
16511 fi
16512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16513   cat >>confdefs.h <<_ACEOF
16514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16515 _ACEOF
16516
16517 fi
16518
16519 done
16520
16521 fi
16522
16523
16524
16525
16526   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16527 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16528 if test "${ac_cv_huge_val_sanity+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531
16532     ac_ext=cpp
16533 ac_cpp='$CXXCPP $CPPFLAGS'
16534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16537
16538     CXXFLAGS=-pedantic
16539     if test "$cross_compiling" = yes; then
16540   ac_cv_huge_val_sanity=yes
16541 else
16542   cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h.  */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h.  */
16548 #include <math.h>
16549 int
16550 main ()
16551 {
16552 double x = HUGE_VAL; return x != x;
16553   ;
16554   return 0;
16555 }
16556 _ACEOF
16557 rm -f conftest$ac_exeext
16558 if { (ac_try="$ac_link"
16559 case "(($ac_try" in
16560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561   *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564   (eval "$ac_link") 2>&5
16565   ac_status=$?
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16568   { (case "(($ac_try" in
16569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570   *) ac_try_echo=$ac_try;;
16571 esac
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573   (eval "$ac_try") 2>&5
16574   ac_status=$?
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); }; }; then
16577   ac_cv_huge_val_sanity=yes
16578 else
16579   echo "$as_me: program exited with status $ac_status" >&5
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583 ( exit $ac_status )
16584 ac_cv_huge_val_sanity=no
16585 fi
16586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16587 fi
16588
16589
16590     ac_ext=c
16591 ac_cpp='$CPP $CPPFLAGS'
16592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16595
16596
16597 fi
16598 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16599 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16600   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16601
16602
16603 { echo "$as_me:$LINENO: checking for pid_t" >&5
16604 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16605 if test "${ac_cv_type_pid_t+set}" = set; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608   cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h.  */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h.  */
16614 $ac_includes_default
16615 typedef pid_t ac__type_new_;
16616 int
16617 main ()
16618 {
16619 if ((ac__type_new_ *) 0)
16620   return 0;
16621 if (sizeof (ac__type_new_))
16622   return 0;
16623   ;
16624   return 0;
16625 }
16626 _ACEOF
16627 rm -f conftest.$ac_objext
16628 if { (ac_try="$ac_compile"
16629 case "(($ac_try" in
16630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631   *) ac_try_echo=$ac_try;;
16632 esac
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634   (eval "$ac_compile") 2>conftest.er1
16635   ac_status=$?
16636   grep -v '^ *+' conftest.er1 >conftest.err
16637   rm -f conftest.er1
16638   cat conftest.err >&5
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); } &&
16641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16642   { (case "(($ac_try" in
16643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644   *) ac_try_echo=$ac_try;;
16645 esac
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647   (eval "$ac_try") 2>&5
16648   ac_status=$?
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); }; } &&
16651          { ac_try='test -s conftest.$ac_objext'
16652   { (case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657   (eval "$ac_try") 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); }; }; then
16661   ac_cv_type_pid_t=yes
16662 else
16663   echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666         ac_cv_type_pid_t=no
16667 fi
16668
16669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16670 fi
16671 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16672 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16673 if test $ac_cv_type_pid_t = yes; then
16674   :
16675 else
16676
16677 cat >>confdefs.h <<_ACEOF
16678 #define pid_t int
16679 _ACEOF
16680
16681 fi
16682
16683 { echo "$as_me:$LINENO: checking for size_t" >&5
16684 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16685 if test "${ac_cv_type_size_t+set}" = set; then
16686   echo $ECHO_N "(cached) $ECHO_C" >&6
16687 else
16688   cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h.  */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h.  */
16694 $ac_includes_default
16695 typedef size_t ac__type_new_;
16696 int
16697 main ()
16698 {
16699 if ((ac__type_new_ *) 0)
16700   return 0;
16701 if (sizeof (ac__type_new_))
16702   return 0;
16703   ;
16704   return 0;
16705 }
16706 _ACEOF
16707 rm -f conftest.$ac_objext
16708 if { (ac_try="$ac_compile"
16709 case "(($ac_try" in
16710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711   *) ac_try_echo=$ac_try;;
16712 esac
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714   (eval "$ac_compile") 2>conftest.er1
16715   ac_status=$?
16716   grep -v '^ *+' conftest.er1 >conftest.err
16717   rm -f conftest.er1
16718   cat conftest.err >&5
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); } &&
16721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16722   { (case "(($ac_try" in
16723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724   *) ac_try_echo=$ac_try;;
16725 esac
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727   (eval "$ac_try") 2>&5
16728   ac_status=$?
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); }; } &&
16731          { ac_try='test -s conftest.$ac_objext'
16732   { (case "(($ac_try" in
16733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734   *) ac_try_echo=$ac_try;;
16735 esac
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737   (eval "$ac_try") 2>&5
16738   ac_status=$?
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); }; }; then
16741   ac_cv_type_size_t=yes
16742 else
16743   echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16745
16746         ac_cv_type_size_t=no
16747 fi
16748
16749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16750 fi
16751 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16752 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16753 if test $ac_cv_type_size_t = yes; then
16754   :
16755 else
16756
16757 cat >>confdefs.h <<_ACEOF
16758 #define size_t unsigned int
16759 _ACEOF
16760
16761 fi
16762
16763
16764 cat >>confdefs.h <<_ACEOF
16765 #define RETSIGTYPE void
16766 _ACEOF
16767
16768 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16769 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16770 if test "${ac_cv_struct_tm+set}" = set; then
16771   echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773   cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h.  */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h.  */
16779 #include <sys/types.h>
16780 #include <time.h>
16781
16782 int
16783 main ()
16784 {
16785 struct tm *tp; tp->tm_sec;
16786   ;
16787   return 0;
16788 }
16789 _ACEOF
16790 rm -f conftest.$ac_objext
16791 if { (ac_try="$ac_compile"
16792 case "(($ac_try" in
16793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794   *) ac_try_echo=$ac_try;;
16795 esac
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797   (eval "$ac_compile") 2>conftest.er1
16798   ac_status=$?
16799   grep -v '^ *+' conftest.er1 >conftest.err
16800   rm -f conftest.er1
16801   cat conftest.err >&5
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); } &&
16804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16805   { (case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810   (eval "$ac_try") 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; } &&
16814          { ac_try='test -s conftest.$ac_objext'
16815   { (case "(($ac_try" in
16816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817   *) ac_try_echo=$ac_try;;
16818 esac
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820   (eval "$ac_try") 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); }; }; then
16824   ac_cv_struct_tm=time.h
16825 else
16826   echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16828
16829         ac_cv_struct_tm=sys/time.h
16830 fi
16831
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833 fi
16834 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16835 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16836 if test $ac_cv_struct_tm = sys/time.h; then
16837
16838 cat >>confdefs.h <<\_ACEOF
16839 #define TM_IN_SYS_TIME 1
16840 _ACEOF
16841
16842 fi
16843
16844 { echo "$as_me:$LINENO: checking for int64_t" >&5
16845 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16846 if test "${ac_cv_type_int64_t+set}" = set; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849   cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h.  */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h.  */
16855 $ac_includes_default
16856 typedef int64_t ac__type_new_;
16857 int
16858 main ()
16859 {
16860 if ((ac__type_new_ *) 0)
16861   return 0;
16862 if (sizeof (ac__type_new_))
16863   return 0;
16864   ;
16865   return 0;
16866 }
16867 _ACEOF
16868 rm -f conftest.$ac_objext
16869 if { (ac_try="$ac_compile"
16870 case "(($ac_try" in
16871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872   *) ac_try_echo=$ac_try;;
16873 esac
16874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875   (eval "$ac_compile") 2>conftest.er1
16876   ac_status=$?
16877   grep -v '^ *+' conftest.er1 >conftest.err
16878   rm -f conftest.er1
16879   cat conftest.err >&5
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); } &&
16882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16883   { (case "(($ac_try" in
16884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885   *) ac_try_echo=$ac_try;;
16886 esac
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888   (eval "$ac_try") 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; } &&
16892          { ac_try='test -s conftest.$ac_objext'
16893   { (case "(($ac_try" in
16894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895   *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898   (eval "$ac_try") 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; }; then
16902   ac_cv_type_int64_t=yes
16903 else
16904   echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16906
16907         ac_cv_type_int64_t=no
16908 fi
16909
16910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16911 fi
16912 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16913 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16914 if test $ac_cv_type_int64_t = yes; then
16915
16916 cat >>confdefs.h <<_ACEOF
16917 #define HAVE_INT64_T 1
16918 _ACEOF
16919
16920
16921 else
16922   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16923 echo "$as_me: error: Type int64_t required but not found" >&2;}
16924    { (exit 1); exit 1; }; }
16925 fi
16926
16927 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16928 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16929 if test "${ac_cv_type_uint64_t+set}" = set; then
16930   echo $ECHO_N "(cached) $ECHO_C" >&6
16931 else
16932   cat >conftest.$ac_ext <<_ACEOF
16933 /* confdefs.h.  */
16934 _ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h.  */
16938 $ac_includes_default
16939 typedef uint64_t ac__type_new_;
16940 int
16941 main ()
16942 {
16943 if ((ac__type_new_ *) 0)
16944   return 0;
16945 if (sizeof (ac__type_new_))
16946   return 0;
16947   ;
16948   return 0;
16949 }
16950 _ACEOF
16951 rm -f conftest.$ac_objext
16952 if { (ac_try="$ac_compile"
16953 case "(($ac_try" in
16954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955   *) ac_try_echo=$ac_try;;
16956 esac
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958   (eval "$ac_compile") 2>conftest.er1
16959   ac_status=$?
16960   grep -v '^ *+' conftest.er1 >conftest.err
16961   rm -f conftest.er1
16962   cat conftest.err >&5
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); } &&
16965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16966   { (case "(($ac_try" in
16967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968   *) ac_try_echo=$ac_try;;
16969 esac
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971   (eval "$ac_try") 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }; } &&
16975          { ac_try='test -s conftest.$ac_objext'
16976   { (case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_try") 2>&5
16982   ac_status=$?
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); }; }; then
16985   ac_cv_type_uint64_t=yes
16986 else
16987   echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990         ac_cv_type_uint64_t=no
16991 fi
16992
16993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16994 fi
16995 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16996 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16997 if test $ac_cv_type_uint64_t = yes; then
16998
16999 cat >>confdefs.h <<_ACEOF
17000 #define HAVE_UINT64_T 1
17001 _ACEOF
17002
17003
17004 else
17005   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17006 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17007 if test "${ac_cv_type_u_int64_t+set}" = set; then
17008   echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010   cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h.  */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h.  */
17016 $ac_includes_default
17017 typedef u_int64_t ac__type_new_;
17018 int
17019 main ()
17020 {
17021 if ((ac__type_new_ *) 0)
17022   return 0;
17023 if (sizeof (ac__type_new_))
17024   return 0;
17025   ;
17026   return 0;
17027 }
17028 _ACEOF
17029 rm -f conftest.$ac_objext
17030 if { (ac_try="$ac_compile"
17031 case "(($ac_try" in
17032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033   *) ac_try_echo=$ac_try;;
17034 esac
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036   (eval "$ac_compile") 2>conftest.er1
17037   ac_status=$?
17038   grep -v '^ *+' conftest.er1 >conftest.err
17039   rm -f conftest.er1
17040   cat conftest.err >&5
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); } &&
17043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17044   { (case "(($ac_try" in
17045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046   *) ac_try_echo=$ac_try;;
17047 esac
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049   (eval "$ac_try") 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; } &&
17053          { ac_try='test -s conftest.$ac_objext'
17054   { (case "(($ac_try" in
17055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056   *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059   (eval "$ac_try") 2>&5
17060   ac_status=$?
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); }; }; then
17063   ac_cv_type_u_int64_t=yes
17064 else
17065   echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17067
17068         ac_cv_type_u_int64_t=no
17069 fi
17070
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072 fi
17073 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17074 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17075 if test $ac_cv_type_u_int64_t = yes; then
17076
17077 cat >>confdefs.h <<_ACEOF
17078 #define HAVE_U_INT64_T 1
17079 _ACEOF
17080
17081
17082 else
17083   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17084 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17085    { (exit 1); exit 1; }; }
17086 fi
17087
17088 fi
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17100 do
17101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17105   echo $ECHO_N "(cached) $ECHO_C" >&6
17106 else
17107   cat >conftest.$ac_ext <<_ACEOF
17108 /* confdefs.h.  */
17109 _ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h.  */
17113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17115 #define $ac_func innocuous_$ac_func
17116
17117 /* System header to define __stub macros and hopefully few prototypes,
17118     which can conflict with char $ac_func (); below.
17119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17120     <limits.h> exists even on freestanding compilers.  */
17121
17122 #ifdef __STDC__
17123 # include <limits.h>
17124 #else
17125 # include <assert.h>
17126 #endif
17127
17128 #undef $ac_func
17129
17130 /* Override any GCC internal prototype to avoid an error.
17131    Use char because int might match the return type of a GCC
17132    builtin and then its argument prototype would still apply.  */
17133 #ifdef __cplusplus
17134 extern "C"
17135 #endif
17136 char $ac_func ();
17137 /* The GNU C library defines this for functions which it implements
17138     to always fail with ENOSYS.  Some functions are actually named
17139     something starting with __ and the normal name is an alias.  */
17140 #if defined __stub_$ac_func || defined __stub___$ac_func
17141 choke me
17142 #endif
17143
17144 int
17145 main ()
17146 {
17147 return $ac_func ();
17148   ;
17149   return 0;
17150 }
17151 _ACEOF
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (ac_try="$ac_link"
17154 case "(($ac_try" in
17155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156   *) ac_try_echo=$ac_try;;
17157 esac
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159   (eval "$ac_link") 2>conftest.er1
17160   ac_status=$?
17161   grep -v '^ *+' conftest.er1 >conftest.err
17162   rm -f conftest.er1
17163   cat conftest.err >&5
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); } &&
17166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167   { (case "(($ac_try" in
17168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169   *) ac_try_echo=$ac_try;;
17170 esac
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172   (eval "$ac_try") 2>&5
17173   ac_status=$?
17174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175   (exit $ac_status); }; } &&
17176          { ac_try='test -s conftest$ac_exeext'
17177   { (case "(($ac_try" in
17178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179   *) ac_try_echo=$ac_try;;
17180 esac
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182   (eval "$ac_try") 2>&5
17183   ac_status=$?
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); }; }; then
17186   eval "$as_ac_var=yes"
17187 else
17188   echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191         eval "$as_ac_var=no"
17192 fi
17193
17194 rm -f core conftest.err conftest.$ac_objext \
17195       conftest$ac_exeext conftest.$ac_ext
17196 fi
17197 ac_res=`eval echo '${'$as_ac_var'}'`
17198                { echo "$as_me:$LINENO: result: $ac_res" >&5
17199 echo "${ECHO_T}$ac_res" >&6; }
17200 if test `eval echo '${'$as_ac_var'}'` = yes; then
17201   cat >>confdefs.h <<_ACEOF
17202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17203 _ACEOF
17204
17205 fi
17206 done
17207
17208
17209
17210
17211
17212 for ac_func in powf fmodf strtof round
17213 do
17214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17218   echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220   cat >conftest.$ac_ext <<_ACEOF
17221 /* confdefs.h.  */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h.  */
17226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17228 #define $ac_func innocuous_$ac_func
17229
17230 /* System header to define __stub macros and hopefully few prototypes,
17231     which can conflict with char $ac_func (); below.
17232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233     <limits.h> exists even on freestanding compilers.  */
17234
17235 #ifdef __STDC__
17236 # include <limits.h>
17237 #else
17238 # include <assert.h>
17239 #endif
17240
17241 #undef $ac_func
17242
17243 /* Override any GCC internal prototype to avoid an error.
17244    Use char because int might match the return type of a GCC
17245    builtin and then its argument prototype would still apply.  */
17246 #ifdef __cplusplus
17247 extern "C"
17248 #endif
17249 char $ac_func ();
17250 /* The GNU C library defines this for functions which it implements
17251     to always fail with ENOSYS.  Some functions are actually named
17252     something starting with __ and the normal name is an alias.  */
17253 #if defined __stub_$ac_func || defined __stub___$ac_func
17254 choke me
17255 #endif
17256
17257 int
17258 main ()
17259 {
17260 return $ac_func ();
17261   ;
17262   return 0;
17263 }
17264 _ACEOF
17265 rm -f conftest.$ac_objext conftest$ac_exeext
17266 if { (ac_try="$ac_link"
17267 case "(($ac_try" in
17268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269   *) ac_try_echo=$ac_try;;
17270 esac
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272   (eval "$ac_link") 2>conftest.er1
17273   ac_status=$?
17274   grep -v '^ *+' conftest.er1 >conftest.err
17275   rm -f conftest.er1
17276   cat conftest.err >&5
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); } &&
17279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17280   { (case "(($ac_try" in
17281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282   *) ac_try_echo=$ac_try;;
17283 esac
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285   (eval "$ac_try") 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; } &&
17289          { ac_try='test -s conftest$ac_exeext'
17290   { (case "(($ac_try" in
17291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292   *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295   (eval "$ac_try") 2>&5
17296   ac_status=$?
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); }; }; then
17299   eval "$as_ac_var=yes"
17300 else
17301   echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17303
17304         eval "$as_ac_var=no"
17305 fi
17306
17307 rm -f core conftest.err conftest.$ac_objext \
17308       conftest$ac_exeext conftest.$ac_ext
17309 fi
17310 ac_res=`eval echo '${'$as_ac_var'}'`
17311                { echo "$as_me:$LINENO: result: $ac_res" >&5
17312 echo "${ECHO_T}$ac_res" >&6; }
17313 if test `eval echo '${'$as_ac_var'}'` = yes; then
17314   cat >>confdefs.h <<_ACEOF
17315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17316 _ACEOF
17317
17318 fi
17319 done
17320
17321
17322
17323
17324
17325
17326 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17327 do
17328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17329 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17332   echo $ECHO_N "(cached) $ECHO_C" >&6
17333 else
17334   cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h.  */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h.  */
17340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17342 #define $ac_func innocuous_$ac_func
17343
17344 /* System header to define __stub macros and hopefully few prototypes,
17345     which can conflict with char $ac_func (); below.
17346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17347     <limits.h> exists even on freestanding compilers.  */
17348
17349 #ifdef __STDC__
17350 # include <limits.h>
17351 #else
17352 # include <assert.h>
17353 #endif
17354
17355 #undef $ac_func
17356
17357 /* Override any GCC internal prototype to avoid an error.
17358    Use char because int might match the return type of a GCC
17359    builtin and then its argument prototype would still apply.  */
17360 #ifdef __cplusplus
17361 extern "C"
17362 #endif
17363 char $ac_func ();
17364 /* The GNU C library defines this for functions which it implements
17365     to always fail with ENOSYS.  Some functions are actually named
17366     something starting with __ and the normal name is an alias.  */
17367 #if defined __stub_$ac_func || defined __stub___$ac_func
17368 choke me
17369 #endif
17370
17371 int
17372 main ()
17373 {
17374 return $ac_func ();
17375   ;
17376   return 0;
17377 }
17378 _ACEOF
17379 rm -f conftest.$ac_objext conftest$ac_exeext
17380 if { (ac_try="$ac_link"
17381 case "(($ac_try" in
17382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383   *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386   (eval "$ac_link") 2>conftest.er1
17387   ac_status=$?
17388   grep -v '^ *+' conftest.er1 >conftest.err
17389   rm -f conftest.er1
17390   cat conftest.err >&5
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); } &&
17393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17394   { (case "(($ac_try" in
17395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396   *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399   (eval "$ac_try") 2>&5
17400   ac_status=$?
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); }; } &&
17403          { ac_try='test -s conftest$ac_exeext'
17404   { (case "(($ac_try" in
17405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406   *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409   (eval "$ac_try") 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); }; }; then
17413   eval "$as_ac_var=yes"
17414 else
17415   echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17417
17418         eval "$as_ac_var=no"
17419 fi
17420
17421 rm -f core conftest.err conftest.$ac_objext \
17422       conftest$ac_exeext conftest.$ac_ext
17423 fi
17424 ac_res=`eval echo '${'$as_ac_var'}'`
17425                { echo "$as_me:$LINENO: result: $ac_res" >&5
17426 echo "${ECHO_T}$ac_res" >&6; }
17427 if test `eval echo '${'$as_ac_var'}'` = yes; then
17428   cat >>confdefs.h <<_ACEOF
17429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17430 _ACEOF
17431
17432 fi
17433 done
17434
17435
17436
17437
17438 for ac_func in isatty mkdtemp mkstemp
17439 do
17440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17444   echo $ECHO_N "(cached) $ECHO_C" >&6
17445 else
17446   cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h.  */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h.  */
17452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17454 #define $ac_func innocuous_$ac_func
17455
17456 /* System header to define __stub macros and hopefully few prototypes,
17457     which can conflict with char $ac_func (); below.
17458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17459     <limits.h> exists even on freestanding compilers.  */
17460
17461 #ifdef __STDC__
17462 # include <limits.h>
17463 #else
17464 # include <assert.h>
17465 #endif
17466
17467 #undef $ac_func
17468
17469 /* Override any GCC internal prototype to avoid an error.
17470    Use char because int might match the return type of a GCC
17471    builtin and then its argument prototype would still apply.  */
17472 #ifdef __cplusplus
17473 extern "C"
17474 #endif
17475 char $ac_func ();
17476 /* The GNU C library defines this for functions which it implements
17477     to always fail with ENOSYS.  Some functions are actually named
17478     something starting with __ and the normal name is an alias.  */
17479 #if defined __stub_$ac_func || defined __stub___$ac_func
17480 choke me
17481 #endif
17482
17483 int
17484 main ()
17485 {
17486 return $ac_func ();
17487   ;
17488   return 0;
17489 }
17490 _ACEOF
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (ac_try="$ac_link"
17493 case "(($ac_try" in
17494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495   *) ac_try_echo=$ac_try;;
17496 esac
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498   (eval "$ac_link") 2>conftest.er1
17499   ac_status=$?
17500   grep -v '^ *+' conftest.er1 >conftest.err
17501   rm -f conftest.er1
17502   cat conftest.err >&5
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } &&
17505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17506   { (case "(($ac_try" in
17507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508   *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511   (eval "$ac_try") 2>&5
17512   ac_status=$?
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); }; } &&
17515          { ac_try='test -s conftest$ac_exeext'
17516   { (case "(($ac_try" in
17517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518   *) ac_try_echo=$ac_try;;
17519 esac
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521   (eval "$ac_try") 2>&5
17522   ac_status=$?
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); }; }; then
17525   eval "$as_ac_var=yes"
17526 else
17527   echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17529
17530         eval "$as_ac_var=no"
17531 fi
17532
17533 rm -f core conftest.err conftest.$ac_objext \
17534       conftest$ac_exeext conftest.$ac_ext
17535 fi
17536 ac_res=`eval echo '${'$as_ac_var'}'`
17537                { echo "$as_me:$LINENO: result: $ac_res" >&5
17538 echo "${ECHO_T}$ac_res" >&6; }
17539 if test `eval echo '${'$as_ac_var'}'` = yes; then
17540   cat >>confdefs.h <<_ACEOF
17541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17542 _ACEOF
17543
17544 fi
17545 done
17546
17547
17548
17549
17550
17551
17552 for ac_func in mktemp realpath sbrk setrlimit strdup
17553 do
17554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560   cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h.  */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h.  */
17566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17568 #define $ac_func innocuous_$ac_func
17569
17570 /* System header to define __stub macros and hopefully few prototypes,
17571     which can conflict with char $ac_func (); below.
17572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573     <limits.h> exists even on freestanding compilers.  */
17574
17575 #ifdef __STDC__
17576 # include <limits.h>
17577 #else
17578 # include <assert.h>
17579 #endif
17580
17581 #undef $ac_func
17582
17583 /* Override any GCC internal prototype to avoid an error.
17584    Use char because int might match the return type of a GCC
17585    builtin and then its argument prototype would still apply.  */
17586 #ifdef __cplusplus
17587 extern "C"
17588 #endif
17589 char $ac_func ();
17590 /* The GNU C library defines this for functions which it implements
17591     to always fail with ENOSYS.  Some functions are actually named
17592     something starting with __ and the normal name is an alias.  */
17593 #if defined __stub_$ac_func || defined __stub___$ac_func
17594 choke me
17595 #endif
17596
17597 int
17598 main ()
17599 {
17600 return $ac_func ();
17601   ;
17602   return 0;
17603 }
17604 _ACEOF
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (ac_try="$ac_link"
17607 case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612   (eval "$ac_link") 2>conftest.er1
17613   ac_status=$?
17614   grep -v '^ *+' conftest.er1 >conftest.err
17615   rm -f conftest.er1
17616   cat conftest.err >&5
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); } &&
17619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17620   { (case "(($ac_try" in
17621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622   *) ac_try_echo=$ac_try;;
17623 esac
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625   (eval "$ac_try") 2>&5
17626   ac_status=$?
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); }; } &&
17629          { ac_try='test -s conftest$ac_exeext'
17630   { (case "(($ac_try" in
17631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632   *) ac_try_echo=$ac_try;;
17633 esac
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635   (eval "$ac_try") 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; }; then
17639   eval "$as_ac_var=yes"
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644         eval "$as_ac_var=no"
17645 fi
17646
17647 rm -f core conftest.err conftest.$ac_objext \
17648       conftest$ac_exeext conftest.$ac_ext
17649 fi
17650 ac_res=`eval echo '${'$as_ac_var'}'`
17651                { echo "$as_me:$LINENO: result: $ac_res" >&5
17652 echo "${ECHO_T}$ac_res" >&6; }
17653 if test `eval echo '${'$as_ac_var'}'` = yes; then
17654   cat >>confdefs.h <<_ACEOF
17655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17656 _ACEOF
17657
17658 fi
17659 done
17660
17661
17662
17663
17664
17665 for ac_func in strerror strerror_r strerror_s setenv
17666 do
17667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17671   echo $ECHO_N "(cached) $ECHO_C" >&6
17672 else
17673   cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h.  */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h.  */
17679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17681 #define $ac_func innocuous_$ac_func
17682
17683 /* System header to define __stub macros and hopefully few prototypes,
17684     which can conflict with char $ac_func (); below.
17685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686     <limits.h> exists even on freestanding compilers.  */
17687
17688 #ifdef __STDC__
17689 # include <limits.h>
17690 #else
17691 # include <assert.h>
17692 #endif
17693
17694 #undef $ac_func
17695
17696 /* Override any GCC internal prototype to avoid an error.
17697    Use char because int might match the return type of a GCC
17698    builtin and then its argument prototype would still apply.  */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 char $ac_func ();
17703 /* The GNU C library defines this for functions which it implements
17704     to always fail with ENOSYS.  Some functions are actually named
17705     something starting with __ and the normal name is an alias.  */
17706 #if defined __stub_$ac_func || defined __stub___$ac_func
17707 choke me
17708 #endif
17709
17710 int
17711 main ()
17712 {
17713 return $ac_func ();
17714   ;
17715   return 0;
17716 }
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722   *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725   (eval "$ac_link") 2>conftest.er1
17726   ac_status=$?
17727   grep -v '^ *+' conftest.er1 >conftest.err
17728   rm -f conftest.er1
17729   cat conftest.err >&5
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); } &&
17732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733   { (case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_try") 2>&5
17739   ac_status=$?
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); }; } &&
17742          { ac_try='test -s conftest$ac_exeext'
17743   { (case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748   (eval "$ac_try") 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; }; then
17752   eval "$as_ac_var=yes"
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757         eval "$as_ac_var=no"
17758 fi
17759
17760 rm -f core conftest.err conftest.$ac_objext \
17761       conftest$ac_exeext conftest.$ac_ext
17762 fi
17763 ac_res=`eval echo '${'$as_ac_var'}'`
17764                { echo "$as_me:$LINENO: result: $ac_res" >&5
17765 echo "${ECHO_T}$ac_res" >&6; }
17766 if test `eval echo '${'$as_ac_var'}'` = yes; then
17767   cat >>confdefs.h <<_ACEOF
17768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17769 _ACEOF
17770
17771 fi
17772 done
17773
17774
17775
17776
17777
17778 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17779 do
17780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17784   echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786   cat >conftest.$ac_ext <<_ACEOF
17787 /* confdefs.h.  */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h.  */
17792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17794 #define $ac_func innocuous_$ac_func
17795
17796 /* System header to define __stub macros and hopefully few prototypes,
17797     which can conflict with char $ac_func (); below.
17798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17799     <limits.h> exists even on freestanding compilers.  */
17800
17801 #ifdef __STDC__
17802 # include <limits.h>
17803 #else
17804 # include <assert.h>
17805 #endif
17806
17807 #undef $ac_func
17808
17809 /* Override any GCC internal prototype to avoid an error.
17810    Use char because int might match the return type of a GCC
17811    builtin and then its argument prototype would still apply.  */
17812 #ifdef __cplusplus
17813 extern "C"
17814 #endif
17815 char $ac_func ();
17816 /* The GNU C library defines this for functions which it implements
17817     to always fail with ENOSYS.  Some functions are actually named
17818     something starting with __ and the normal name is an alias.  */
17819 #if defined __stub_$ac_func || defined __stub___$ac_func
17820 choke me
17821 #endif
17822
17823 int
17824 main ()
17825 {
17826 return $ac_func ();
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (ac_try="$ac_link"
17833 case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838   (eval "$ac_link") 2>conftest.er1
17839   ac_status=$?
17840   grep -v '^ *+' conftest.er1 >conftest.err
17841   rm -f conftest.er1
17842   cat conftest.err >&5
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); } &&
17845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846   { (case "(($ac_try" in
17847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848   *) ac_try_echo=$ac_try;;
17849 esac
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851   (eval "$ac_try") 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }; } &&
17855          { ac_try='test -s conftest$ac_exeext'
17856   { (case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861   (eval "$ac_try") 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); }; }; then
17865   eval "$as_ac_var=yes"
17866 else
17867   echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17869
17870         eval "$as_ac_var=no"
17871 fi
17872
17873 rm -f core conftest.err conftest.$ac_objext \
17874       conftest$ac_exeext conftest.$ac_ext
17875 fi
17876 ac_res=`eval echo '${'$as_ac_var'}'`
17877                { echo "$as_me:$LINENO: result: $ac_res" >&5
17878 echo "${ECHO_T}$ac_res" >&6; }
17879 if test `eval echo '${'$as_ac_var'}'` = yes; then
17880   cat >>confdefs.h <<_ACEOF
17881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17882 _ACEOF
17883
17884 fi
17885 done
17886
17887
17888
17889
17890
17891 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17892 do
17893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17897   echo $ECHO_N "(cached) $ECHO_C" >&6
17898 else
17899   cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h.  */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h.  */
17905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17907 #define $ac_func innocuous_$ac_func
17908
17909 /* System header to define __stub macros and hopefully few prototypes,
17910     which can conflict with char $ac_func (); below.
17911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17912     <limits.h> exists even on freestanding compilers.  */
17913
17914 #ifdef __STDC__
17915 # include <limits.h>
17916 #else
17917 # include <assert.h>
17918 #endif
17919
17920 #undef $ac_func
17921
17922 /* Override any GCC internal prototype to avoid an error.
17923    Use char because int might match the return type of a GCC
17924    builtin and then its argument prototype would still apply.  */
17925 #ifdef __cplusplus
17926 extern "C"
17927 #endif
17928 char $ac_func ();
17929 /* The GNU C library defines this for functions which it implements
17930     to always fail with ENOSYS.  Some functions are actually named
17931     something starting with __ and the normal name is an alias.  */
17932 #if defined __stub_$ac_func || defined __stub___$ac_func
17933 choke me
17934 #endif
17935
17936 int
17937 main ()
17938 {
17939 return $ac_func ();
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (ac_try="$ac_link"
17946 case "(($ac_try" in
17947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948   *) ac_try_echo=$ac_try;;
17949 esac
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951   (eval "$ac_link") 2>conftest.er1
17952   ac_status=$?
17953   grep -v '^ *+' conftest.er1 >conftest.err
17954   rm -f conftest.er1
17955   cat conftest.err >&5
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); } &&
17958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17959   { (case "(($ac_try" in
17960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961   *) ac_try_echo=$ac_try;;
17962 esac
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964   (eval "$ac_try") 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); }; } &&
17968          { ac_try='test -s conftest$ac_exeext'
17969   { (case "(($ac_try" in
17970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971   *) ac_try_echo=$ac_try;;
17972 esac
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974   (eval "$ac_try") 2>&5
17975   ac_status=$?
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); }; }; then
17978   eval "$as_ac_var=yes"
17979 else
17980   echo "$as_me: failed program was:" >&5
17981 sed 's/^/| /' conftest.$ac_ext >&5
17982
17983         eval "$as_ac_var=no"
17984 fi
17985
17986 rm -f core conftest.err conftest.$ac_objext \
17987       conftest$ac_exeext conftest.$ac_ext
17988 fi
17989 ac_res=`eval echo '${'$as_ac_var'}'`
17990                { echo "$as_me:$LINENO: result: $ac_res" >&5
17991 echo "${ECHO_T}$ac_res" >&6; }
17992 if test `eval echo '${'$as_ac_var'}'` = yes; then
17993   cat >>confdefs.h <<_ACEOF
17994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17995 _ACEOF
17996
17997 fi
17998 done
17999
18000 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18001 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18002 if test "${llvm_cv_c_printf_a+set}" = set; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005   ac_ext=c
18006 ac_cpp='$CPP $CPPFLAGS'
18007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18010
18011  if test "$cross_compiling" = yes; then
18012   llvmac_cv_c_printf_a=no
18013 else
18014   cat >conftest.$ac_ext <<_ACEOF
18015
18016   /* confdefs.h.  */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h.  */
18021
18022 #include <stdio.h>
18023 #include <stdlib.h>
18024
18025 int
18026 main ()
18027 {
18028
18029 volatile double A, B;
18030 char Buffer[100];
18031 A = 1;
18032 A /= 10.0;
18033 sprintf(Buffer, "%a", A);
18034 B = atof(Buffer);
18035 if (A != B)
18036   return (1);
18037 if (A != 0x1.999999999999ap-4)
18038   return (1);
18039 return (0);
18040   ;
18041   return 0;
18042 }
18043 _ACEOF
18044 rm -f conftest$ac_exeext
18045 if { (ac_try="$ac_link"
18046 case "(($ac_try" in
18047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048   *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051   (eval "$ac_link") 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18055   { (case "(($ac_try" in
18056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057   *) ac_try_echo=$ac_try;;
18058 esac
18059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18060   (eval "$ac_try") 2>&5
18061   ac_status=$?
18062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063   (exit $ac_status); }; }; then
18064   llvm_cv_c_printf_a=yes
18065 else
18066   echo "$as_me: program exited with status $ac_status" >&5
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18069
18070 ( exit $ac_status )
18071 llvmac_cv_c_printf_a=no
18072 fi
18073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18074 fi
18075
18076
18077  ac_ext=c
18078 ac_cpp='$CPP $CPPFLAGS'
18079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18082
18083 fi
18084 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18085 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18086  if test "$llvm_cv_c_printf_a" = "yes"; then
18087
18088 cat >>confdefs.h <<\_ACEOF
18089 #define HAVE_PRINTF_A 1
18090 _ACEOF
18091
18092  fi
18093
18094
18095 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18096 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18097 if test "${ac_cv_func_rand48+set}" = set; then
18098   echo $ECHO_N "(cached) $ECHO_C" >&6
18099 else
18100   ac_ext=cpp
18101 ac_cpp='$CXXCPP $CPPFLAGS'
18102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18105
18106    cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112 #include <stdlib.h>
18113 int
18114 main ()
18115 {
18116 srand48(0);lrand48();drand48();
18117   ;
18118   return 0;
18119 }
18120 _ACEOF
18121 rm -f conftest.$ac_objext
18122 if { (ac_try="$ac_compile"
18123 case "(($ac_try" in
18124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125   *) ac_try_echo=$ac_try;;
18126 esac
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128   (eval "$ac_compile") 2>conftest.er1
18129   ac_status=$?
18130   grep -v '^ *+' conftest.er1 >conftest.err
18131   rm -f conftest.er1
18132   cat conftest.err >&5
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } &&
18135          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18136   { (case "(($ac_try" in
18137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138   *) ac_try_echo=$ac_try;;
18139 esac
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141   (eval "$ac_try") 2>&5
18142   ac_status=$?
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); }; } &&
18145          { ac_try='test -s conftest.$ac_objext'
18146   { (case "(($ac_try" in
18147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148   *) ac_try_echo=$ac_try;;
18149 esac
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151   (eval "$ac_try") 2>&5
18152   ac_status=$?
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); }; }; then
18155   ac_cv_func_rand48=yes
18156 else
18157   echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160         ac_cv_func_rand48=no
18161 fi
18162
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164   ac_ext=c
18165 ac_cpp='$CPP $CPPFLAGS'
18166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18169
18170 fi
18171 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18172 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18173
18174 if test "$ac_cv_func_rand48" = "yes" ; then
18175
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_RAND48 1
18178 _ACEOF
18179
18180 fi
18181
18182
18183
18184 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18185 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18186 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18187   echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189   ac_ext=cpp
18190 ac_cpp='$CXXCPP $CPPFLAGS'
18191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18194
18195    cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h.  */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h.  */
18201 #include <math.h>
18202 int
18203 main ()
18204 {
18205 float f; isnan(f);
18206   ;
18207   return 0;
18208 }
18209 _ACEOF
18210 rm -f conftest.$ac_objext
18211 if { (ac_try="$ac_compile"
18212 case "(($ac_try" in
18213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214   *) ac_try_echo=$ac_try;;
18215 esac
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217   (eval "$ac_compile") 2>conftest.er1
18218   ac_status=$?
18219   grep -v '^ *+' conftest.er1 >conftest.err
18220   rm -f conftest.er1
18221   cat conftest.err >&5
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); } &&
18224          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18225   { (case "(($ac_try" in
18226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227   *) ac_try_echo=$ac_try;;
18228 esac
18229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230   (eval "$ac_try") 2>&5
18231   ac_status=$?
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); }; } &&
18234          { ac_try='test -s conftest.$ac_objext'
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   ac_cv_func_isnan_in_math_h=yes
18245 else
18246   echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18248
18249         ac_cv_func_isnan_in_math_h=no
18250 fi
18251
18252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18253   ac_ext=c
18254 ac_cpp='$CPP $CPPFLAGS'
18255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18258
18259 fi
18260 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18261 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18262
18263
18264 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18265
18266 cat >>confdefs.h <<\_ACEOF
18267 #define HAVE_ISNAN_IN_MATH_H 1
18268 _ACEOF
18269
18270 fi
18271
18272 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18273 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18274 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18275   echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277   ac_ext=cpp
18278 ac_cpp='$CXXCPP $CPPFLAGS'
18279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18282
18283    cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h.  */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h.  */
18289 #include <cmath>
18290 int
18291 main ()
18292 {
18293 float f; isnan(f);
18294   ;
18295   return 0;
18296 }
18297 _ACEOF
18298 rm -f conftest.$ac_objext
18299 if { (ac_try="$ac_compile"
18300 case "(($ac_try" in
18301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302   *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305   (eval "$ac_compile") 2>conftest.er1
18306   ac_status=$?
18307   grep -v '^ *+' conftest.er1 >conftest.err
18308   rm -f conftest.er1
18309   cat conftest.err >&5
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); } &&
18312          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18313   { (case "(($ac_try" in
18314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315   *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318   (eval "$ac_try") 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); }; } &&
18322          { ac_try='test -s conftest.$ac_objext'
18323   { (case "(($ac_try" in
18324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325   *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328   (eval "$ac_try") 2>&5
18329   ac_status=$?
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); }; }; then
18332   ac_cv_func_isnan_in_cmath=yes
18333 else
18334   echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18336
18337         ac_cv_func_isnan_in_cmath=no
18338 fi
18339
18340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18341   ac_ext=c
18342 ac_cpp='$CPP $CPPFLAGS'
18343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18346
18347 fi
18348 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18349 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18350
18351 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18352
18353 cat >>confdefs.h <<\_ACEOF
18354 #define HAVE_ISNAN_IN_CMATH 1
18355 _ACEOF
18356
18357 fi
18358
18359 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18360 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18361 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18362   echo $ECHO_N "(cached) $ECHO_C" >&6
18363 else
18364   ac_ext=cpp
18365 ac_cpp='$CXXCPP $CPPFLAGS'
18366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18369
18370    cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h.  */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h.  */
18376 #include <cmath>
18377 int
18378 main ()
18379 {
18380 float f; std::isnan(f);
18381   ;
18382   return 0;
18383 }
18384 _ACEOF
18385 rm -f conftest.$ac_objext
18386 if { (ac_try="$ac_compile"
18387 case "(($ac_try" in
18388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389   *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392   (eval "$ac_compile") 2>conftest.er1
18393   ac_status=$?
18394   grep -v '^ *+' conftest.er1 >conftest.err
18395   rm -f conftest.er1
18396   cat conftest.err >&5
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); } &&
18399          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18400   { (case "(($ac_try" in
18401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402   *) ac_try_echo=$ac_try;;
18403 esac
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405   (eval "$ac_try") 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); }; } &&
18409          { ac_try='test -s conftest.$ac_objext'
18410   { (case "(($ac_try" in
18411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412   *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415   (eval "$ac_try") 2>&5
18416   ac_status=$?
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); }; }; then
18419   ac_cv_func_std_isnan_in_cmath=yes
18420 else
18421   echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18423
18424         ac_cv_func_std_isnan_in_cmath=no
18425 fi
18426
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428   ac_ext=c
18429 ac_cpp='$CPP $CPPFLAGS'
18430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18433
18434 fi
18435 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18436 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18437
18438 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18439
18440 cat >>confdefs.h <<\_ACEOF
18441 #define HAVE_STD_ISNAN_IN_CMATH 1
18442 _ACEOF
18443
18444 fi
18445
18446
18447 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18448 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18449 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18450   echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18452   ac_ext=cpp
18453 ac_cpp='$CXXCPP $CPPFLAGS'
18454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18457
18458    cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h.  */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h.  */
18464 #include <math.h>
18465 int
18466 main ()
18467 {
18468 float f; isinf(f);
18469   ;
18470   return 0;
18471 }
18472 _ACEOF
18473 rm -f conftest.$ac_objext
18474 if { (ac_try="$ac_compile"
18475 case "(($ac_try" in
18476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477   *) ac_try_echo=$ac_try;;
18478 esac
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480   (eval "$ac_compile") 2>conftest.er1
18481   ac_status=$?
18482   grep -v '^ *+' conftest.er1 >conftest.err
18483   rm -f conftest.er1
18484   cat conftest.err >&5
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); } &&
18487          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18488   { (case "(($ac_try" in
18489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490   *) ac_try_echo=$ac_try;;
18491 esac
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493   (eval "$ac_try") 2>&5
18494   ac_status=$?
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); }; } &&
18497          { ac_try='test -s conftest.$ac_objext'
18498   { (case "(($ac_try" in
18499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500   *) ac_try_echo=$ac_try;;
18501 esac
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503   (eval "$ac_try") 2>&5
18504   ac_status=$?
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); }; }; then
18507   ac_cv_func_isinf_in_math_h=yes
18508 else
18509   echo "$as_me: failed program was:" >&5
18510 sed 's/^/| /' conftest.$ac_ext >&5
18511
18512         ac_cv_func_isinf_in_math_h=no
18513 fi
18514
18515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18516   ac_ext=c
18517 ac_cpp='$CPP $CPPFLAGS'
18518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18521
18522 fi
18523 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18524 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18525
18526 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18527
18528 cat >>confdefs.h <<\_ACEOF
18529 #define HAVE_ISINF_IN_MATH_H 1
18530 _ACEOF
18531
18532 fi
18533
18534 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18535 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18536 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18537   echo $ECHO_N "(cached) $ECHO_C" >&6
18538 else
18539   ac_ext=cpp
18540 ac_cpp='$CXXCPP $CPPFLAGS'
18541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18544
18545    cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h.  */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h.  */
18551 #include <cmath>
18552 int
18553 main ()
18554 {
18555 float f; isinf(f);
18556   ;
18557   return 0;
18558 }
18559 _ACEOF
18560 rm -f conftest.$ac_objext
18561 if { (ac_try="$ac_compile"
18562 case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567   (eval "$ac_compile") 2>conftest.er1
18568   ac_status=$?
18569   grep -v '^ *+' conftest.er1 >conftest.err
18570   rm -f conftest.er1
18571   cat conftest.err >&5
18572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573   (exit $ac_status); } &&
18574          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18575   { (case "(($ac_try" in
18576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577   *) ac_try_echo=$ac_try;;
18578 esac
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580   (eval "$ac_try") 2>&5
18581   ac_status=$?
18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583   (exit $ac_status); }; } &&
18584          { ac_try='test -s conftest.$ac_objext'
18585   { (case "(($ac_try" in
18586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587   *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590   (eval "$ac_try") 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); }; }; then
18594   ac_cv_func_isinf_in_cmath=yes
18595 else
18596   echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18598
18599         ac_cv_func_isinf_in_cmath=no
18600 fi
18601
18602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18603   ac_ext=c
18604 ac_cpp='$CPP $CPPFLAGS'
18605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18608
18609 fi
18610 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18611 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18612
18613 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18614
18615 cat >>confdefs.h <<\_ACEOF
18616 #define HAVE_ISINF_IN_CMATH 1
18617 _ACEOF
18618
18619 fi
18620
18621 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18622 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18623 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   ac_ext=cpp
18627 ac_cpp='$CXXCPP $CPPFLAGS'
18628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18631
18632    cat >conftest.$ac_ext <<_ACEOF
18633 /* confdefs.h.  */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h.  */
18638 #include <cmath>
18639 int
18640 main ()
18641 {
18642 float f; std::isinf(f)}
18643   ;
18644   return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest.$ac_objext
18648 if { (ac_try="$ac_compile"
18649 case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_compile") 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } &&
18661          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18662   { (case "(($ac_try" in
18663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664   *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667   (eval "$ac_try") 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; } &&
18671          { ac_try='test -s conftest.$ac_objext'
18672   { (case "(($ac_try" in
18673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674   *) ac_try_echo=$ac_try;;
18675 esac
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677   (eval "$ac_try") 2>&5
18678   ac_status=$?
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); }; }; then
18681   ac_cv_func_std_isinf_in_cmath=yes
18682 else
18683   echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18685
18686         ac_cv_func_std_isinf_in_cmath=no
18687 fi
18688
18689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18690   ac_ext=c
18691 ac_cpp='$CPP $CPPFLAGS'
18692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18695
18696 fi
18697 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18698 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18699
18700 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18701
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE_STD_ISINF_IN_CMATH 1
18704 _ACEOF
18705
18706 fi
18707
18708 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18709 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18710 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713   ac_ext=cpp
18714 ac_cpp='$CXXCPP $CPPFLAGS'
18715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18718
18719    cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h.  */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h.  */
18725 #include <ieeefp.h>
18726 int
18727 main ()
18728 {
18729 float f; finite(f);
18730   ;
18731   return 0;
18732 }
18733 _ACEOF
18734 rm -f conftest.$ac_objext
18735 if { (ac_try="$ac_compile"
18736 case "(($ac_try" in
18737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738   *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741   (eval "$ac_compile") 2>conftest.er1
18742   ac_status=$?
18743   grep -v '^ *+' conftest.er1 >conftest.err
18744   rm -f conftest.er1
18745   cat conftest.err >&5
18746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747   (exit $ac_status); } &&
18748          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18749   { (case "(($ac_try" in
18750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751   *) ac_try_echo=$ac_try;;
18752 esac
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754   (eval "$ac_try") 2>&5
18755   ac_status=$?
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); }; } &&
18758          { ac_try='test -s conftest.$ac_objext'
18759   { (case "(($ac_try" in
18760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761   *) ac_try_echo=$ac_try;;
18762 esac
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764   (eval "$ac_try") 2>&5
18765   ac_status=$?
18766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); }; }; then
18768   ac_cv_func_finite_in_ieeefp_h=yes
18769 else
18770   echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18772
18773         ac_cv_func_finite_in_ieeefp_h=no
18774 fi
18775
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18777   ac_ext=c
18778 ac_cpp='$CPP $CPPFLAGS'
18779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18782
18783 fi
18784 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18785 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18786
18787 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18788
18789 cat >>confdefs.h <<\_ACEOF
18790 #define HAVE_FINITE_IN_IEEEFP_H 1
18791 _ACEOF
18792
18793 fi
18794
18795
18796
18797 if test "$llvm_cv_platform_type" = "Unix" ; then
18798
18799
18800 for ac_header in stdlib.h unistd.h
18801 do
18802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18804   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18807   echo $ECHO_N "(cached) $ECHO_C" >&6
18808 fi
18809 ac_res=`eval echo '${'$as_ac_Header'}'`
18810                { echo "$as_me:$LINENO: result: $ac_res" >&5
18811 echo "${ECHO_T}$ac_res" >&6; }
18812 else
18813   # Is the header compilable?
18814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18816 cat >conftest.$ac_ext <<_ACEOF
18817 /* confdefs.h.  */
18818 _ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h.  */
18822 $ac_includes_default
18823 #include <$ac_header>
18824 _ACEOF
18825 rm -f conftest.$ac_objext
18826 if { (ac_try="$ac_compile"
18827 case "(($ac_try" in
18828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829   *) ac_try_echo=$ac_try;;
18830 esac
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832   (eval "$ac_compile") 2>conftest.er1
18833   ac_status=$?
18834   grep -v '^ *+' conftest.er1 >conftest.err
18835   rm -f conftest.er1
18836   cat conftest.err >&5
18837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838   (exit $ac_status); } &&
18839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18840   { (case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845   (eval "$ac_try") 2>&5
18846   ac_status=$?
18847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848   (exit $ac_status); }; } &&
18849          { ac_try='test -s conftest.$ac_objext'
18850   { (case "(($ac_try" in
18851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852   *) ac_try_echo=$ac_try;;
18853 esac
18854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855   (eval "$ac_try") 2>&5
18856   ac_status=$?
18857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858   (exit $ac_status); }; }; then
18859   ac_header_compiler=yes
18860 else
18861   echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18863
18864         ac_header_compiler=no
18865 fi
18866
18867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18869 echo "${ECHO_T}$ac_header_compiler" >&6; }
18870
18871 # Is the header present?
18872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h.  */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h.  */
18880 #include <$ac_header>
18881 _ACEOF
18882 if { (ac_try="$ac_cpp conftest.$ac_ext"
18883 case "(($ac_try" in
18884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885   *) ac_try_echo=$ac_try;;
18886 esac
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18889   ac_status=$?
18890   grep -v '^ *+' conftest.er1 >conftest.err
18891   rm -f conftest.er1
18892   cat conftest.err >&5
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } >/dev/null; then
18895   if test -s conftest.err; then
18896     ac_cpp_err=$ac_c_preproc_warn_flag
18897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18898   else
18899     ac_cpp_err=
18900   fi
18901 else
18902   ac_cpp_err=yes
18903 fi
18904 if test -z "$ac_cpp_err"; then
18905   ac_header_preproc=yes
18906 else
18907   echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910   ac_header_preproc=no
18911 fi
18912
18913 rm -f conftest.err conftest.$ac_ext
18914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18915 echo "${ECHO_T}$ac_header_preproc" >&6; }
18916
18917 # So?  What about this header?
18918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18919   yes:no: )
18920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18924     ac_header_preproc=yes
18925     ;;
18926   no:yes:* )
18927     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18929     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18930 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18931     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18933     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18934 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18937     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18939     ( cat <<\_ASBOX
18940 ## ----------------------------------- ##
18941 ## Report this to llvmbugs@cs.uiuc.edu ##
18942 ## ----------------------------------- ##
18943 _ASBOX
18944      ) | sed "s/^/$as_me: WARNING:     /" >&2
18945     ;;
18946 esac
18947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18950   echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952   eval "$as_ac_Header=\$ac_header_preproc"
18953 fi
18954 ac_res=`eval echo '${'$as_ac_Header'}'`
18955                { echo "$as_me:$LINENO: result: $ac_res" >&5
18956 echo "${ECHO_T}$ac_res" >&6; }
18957
18958 fi
18959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18960   cat >>confdefs.h <<_ACEOF
18961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18962 _ACEOF
18963
18964 fi
18965
18966 done
18967
18968
18969 for ac_func in getpagesize
18970 do
18971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18975   echo $ECHO_N "(cached) $ECHO_C" >&6
18976 else
18977   cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h.  */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h.  */
18983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18985 #define $ac_func innocuous_$ac_func
18986
18987 /* System header to define __stub macros and hopefully few prototypes,
18988     which can conflict with char $ac_func (); below.
18989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18990     <limits.h> exists even on freestanding compilers.  */
18991
18992 #ifdef __STDC__
18993 # include <limits.h>
18994 #else
18995 # include <assert.h>
18996 #endif
18997
18998 #undef $ac_func
18999
19000 /* Override any GCC internal prototype to avoid an error.
19001    Use char because int might match the return type of a GCC
19002    builtin and then its argument prototype would still apply.  */
19003 #ifdef __cplusplus
19004 extern "C"
19005 #endif
19006 char $ac_func ();
19007 /* The GNU C library defines this for functions which it implements
19008     to always fail with ENOSYS.  Some functions are actually named
19009     something starting with __ and the normal name is an alias.  */
19010 #if defined __stub_$ac_func || defined __stub___$ac_func
19011 choke me
19012 #endif
19013
19014 int
19015 main ()
19016 {
19017 return $ac_func ();
19018   ;
19019   return 0;
19020 }
19021 _ACEOF
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (ac_try="$ac_link"
19024 case "(($ac_try" in
19025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026   *) ac_try_echo=$ac_try;;
19027 esac
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029   (eval "$ac_link") 2>conftest.er1
19030   ac_status=$?
19031   grep -v '^ *+' conftest.er1 >conftest.err
19032   rm -f conftest.er1
19033   cat conftest.err >&5
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); } &&
19036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19037   { (case "(($ac_try" in
19038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039   *) ac_try_echo=$ac_try;;
19040 esac
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042   (eval "$ac_try") 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; } &&
19046          { ac_try='test -s conftest$ac_exeext'
19047   { (case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_try") 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }; }; then
19056   eval "$as_ac_var=yes"
19057 else
19058   echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19060
19061         eval "$as_ac_var=no"
19062 fi
19063
19064 rm -f core conftest.err conftest.$ac_objext \
19065       conftest$ac_exeext conftest.$ac_ext
19066 fi
19067 ac_res=`eval echo '${'$as_ac_var'}'`
19068                { echo "$as_me:$LINENO: result: $ac_res" >&5
19069 echo "${ECHO_T}$ac_res" >&6; }
19070 if test `eval echo '${'$as_ac_var'}'` = yes; then
19071   cat >>confdefs.h <<_ACEOF
19072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19073 _ACEOF
19074
19075 fi
19076 done
19077
19078 { echo "$as_me:$LINENO: checking for working mmap" >&5
19079 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19080 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19081   echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083   if test "$cross_compiling" = yes; then
19084   ac_cv_func_mmap_fixed_mapped=no
19085 else
19086   cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092 $ac_includes_default
19093 /* malloc might have been renamed as rpl_malloc. */
19094 #undef malloc
19095
19096 /* Thanks to Mike Haertel and Jim Avera for this test.
19097    Here is a matrix of mmap possibilities:
19098         mmap private not fixed
19099         mmap private fixed at somewhere currently unmapped
19100         mmap private fixed at somewhere already mapped
19101         mmap shared not fixed
19102         mmap shared fixed at somewhere currently unmapped
19103         mmap shared fixed at somewhere already mapped
19104    For private mappings, we should verify that changes cannot be read()
19105    back from the file, nor mmap's back from the file at a different
19106    address.  (There have been systems where private was not correctly
19107    implemented like the infamous i386 svr4.0, and systems where the
19108    VM page cache was not coherent with the file system buffer cache
19109    like early versions of FreeBSD and possibly contemporary NetBSD.)
19110    For shared mappings, we should conversely verify that changes get
19111    propagated back to all the places they're supposed to be.
19112
19113    Grep wants private fixed already mapped.
19114    The main things grep needs to know about mmap are:
19115    * does it exist and is it safe to write into the mmap'd area
19116    * how to use it (BSD variants)  */
19117
19118 #include <fcntl.h>
19119 #include <sys/mman.h>
19120
19121 #if !STDC_HEADERS && !HAVE_STDLIB_H
19122 char *malloc ();
19123 #endif
19124
19125 /* This mess was copied from the GNU getpagesize.h.  */
19126 #if !HAVE_GETPAGESIZE
19127 /* Assume that all systems that can run configure have sys/param.h.  */
19128 # if !HAVE_SYS_PARAM_H
19129 #  define HAVE_SYS_PARAM_H 1
19130 # endif
19131
19132 # ifdef _SC_PAGESIZE
19133 #  define getpagesize() sysconf(_SC_PAGESIZE)
19134 # else /* no _SC_PAGESIZE */
19135 #  if HAVE_SYS_PARAM_H
19136 #   include <sys/param.h>
19137 #   ifdef EXEC_PAGESIZE
19138 #    define getpagesize() EXEC_PAGESIZE
19139 #   else /* no EXEC_PAGESIZE */
19140 #    ifdef NBPG
19141 #     define getpagesize() NBPG * CLSIZE
19142 #     ifndef CLSIZE
19143 #      define CLSIZE 1
19144 #     endif /* no CLSIZE */
19145 #    else /* no NBPG */
19146 #     ifdef NBPC
19147 #      define getpagesize() NBPC
19148 #     else /* no NBPC */
19149 #      ifdef PAGESIZE
19150 #       define getpagesize() PAGESIZE
19151 #      endif /* PAGESIZE */
19152 #     endif /* no NBPC */
19153 #    endif /* no NBPG */
19154 #   endif /* no EXEC_PAGESIZE */
19155 #  else /* no HAVE_SYS_PARAM_H */
19156 #   define getpagesize() 8192   /* punt totally */
19157 #  endif /* no HAVE_SYS_PARAM_H */
19158 # endif /* no _SC_PAGESIZE */
19159
19160 #endif /* no HAVE_GETPAGESIZE */
19161
19162 int
19163 main ()
19164 {
19165   char *data, *data2, *data3;
19166   int i, pagesize;
19167   int fd;
19168
19169   pagesize = getpagesize ();
19170
19171   /* First, make a file with some known garbage in it. */
19172   data = (char *) malloc (pagesize);
19173   if (!data)
19174     return 1;
19175   for (i = 0; i < pagesize; ++i)
19176     *(data + i) = rand ();
19177   umask (0);
19178   fd = creat ("conftest.mmap", 0600);
19179   if (fd < 0)
19180     return 1;
19181   if (write (fd, data, pagesize) != pagesize)
19182     return 1;
19183   close (fd);
19184
19185   /* Next, try to mmap the file at a fixed address which already has
19186      something else allocated at it.  If we can, also make sure that
19187      we see the same garbage.  */
19188   fd = open ("conftest.mmap", O_RDWR);
19189   if (fd < 0)
19190     return 1;
19191   data2 = (char *) malloc (2 * pagesize);
19192   if (!data2)
19193     return 1;
19194   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19195   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19196                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19197     return 1;
19198   for (i = 0; i < pagesize; ++i)
19199     if (*(data + i) != *(data2 + i))
19200       return 1;
19201
19202   /* Finally, make sure that changes to the mapped area do not
19203      percolate back to the file as seen by read().  (This is a bug on
19204      some variants of i386 svr4.0.)  */
19205   for (i = 0; i < pagesize; ++i)
19206     *(data2 + i) = *(data2 + i) + 1;
19207   data3 = (char *) malloc (pagesize);
19208   if (!data3)
19209     return 1;
19210   if (read (fd, data3, pagesize) != pagesize)
19211     return 1;
19212   for (i = 0; i < pagesize; ++i)
19213     if (*(data + i) != *(data3 + i))
19214       return 1;
19215   close (fd);
19216   return 0;
19217 }
19218 _ACEOF
19219 rm -f conftest$ac_exeext
19220 if { (ac_try="$ac_link"
19221 case "(($ac_try" in
19222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223   *) ac_try_echo=$ac_try;;
19224 esac
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226   (eval "$ac_link") 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19230   { (case "(($ac_try" in
19231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232   *) ac_try_echo=$ac_try;;
19233 esac
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235   (eval "$ac_try") 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; }; then
19239   ac_cv_func_mmap_fixed_mapped=yes
19240 else
19241   echo "$as_me: program exited with status $ac_status" >&5
19242 echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19244
19245 ( exit $ac_status )
19246 ac_cv_func_mmap_fixed_mapped=no
19247 fi
19248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19249 fi
19250
19251
19252 fi
19253 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19254 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19255 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19256
19257 cat >>confdefs.h <<\_ACEOF
19258 #define HAVE_MMAP 1
19259 _ACEOF
19260
19261 fi
19262 rm -f conftest.mmap
19263
19264   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19265 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19266 if test "${ac_cv_func_mmap_file+set}" = set; then
19267   echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269    ac_ext=c
19270 ac_cpp='$CPP $CPPFLAGS'
19271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19274
19275   if test "$cross_compiling" = yes; then
19276   ac_cv_func_mmap_file=no
19277 else
19278   cat >conftest.$ac_ext <<_ACEOF
19279
19280     /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285
19286 #include <sys/types.h>
19287 #include <sys/mman.h>
19288 #include <fcntl.h>
19289
19290 int
19291 main ()
19292 {
19293
19294   int fd;
19295   fd = creat ("foo",0777);
19296   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19297   unlink ("foo");
19298   return (fd != (int) MAP_FAILED);
19299   ;
19300   return 0;
19301 }
19302 _ACEOF
19303 rm -f conftest$ac_exeext
19304 if { (ac_try="$ac_link"
19305 case "(($ac_try" in
19306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307   *) ac_try_echo=$ac_try;;
19308 esac
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310   (eval "$ac_link") 2>&5
19311   ac_status=$?
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19314   { (case "(($ac_try" in
19315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316   *) ac_try_echo=$ac_try;;
19317 esac
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319   (eval "$ac_try") 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; }; then
19323   ac_cv_func_mmap_file=yes
19324 else
19325   echo "$as_me: program exited with status $ac_status" >&5
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19328
19329 ( exit $ac_status )
19330 ac_cv_func_mmap_file=no
19331 fi
19332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19333 fi
19334
19335
19336   ac_ext=c
19337 ac_cpp='$CPP $CPPFLAGS'
19338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19341
19342
19343 fi
19344 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19345 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19346 if test "$ac_cv_func_mmap_file" = yes; then
19347
19348 cat >>confdefs.h <<\_ACEOF
19349 #define HAVE_MMAP_FILE
19350 _ACEOF
19351
19352    MMAP_FILE=yes
19353
19354 fi
19355
19356   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19357 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19358 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19359   echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361   if test "$llvm_cv_os_type" = "Interix" ; then
19362    ac_cv_need_dev_zero_for_mmap=yes
19363  else
19364    ac_cv_need_dev_zero_for_mmap=no
19365  fi
19366
19367 fi
19368 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19369 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19370 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19371
19372 cat >>confdefs.h <<\_ACEOF
19373 #define NEED_DEV_ZERO_FOR_MMAP 1
19374 _ACEOF
19375
19376 fi
19377
19378   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19379   then
19380     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19381 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19382   fi
19383   if test "$ac_cv_func_mmap_file" = "no"
19384   then
19385     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19386 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19387   fi
19388 fi
19389
19390 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19391 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h.  */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h.  */
19398 int main() {
19399         volatile unsigned long val = 1;
19400         __sync_synchronize();
19401         __sync_val_compare_and_swap(&val, 1, 0);
19402         __sync_add_and_fetch(&val, 1);
19403         __sync_sub_and_fetch(&val, 1);
19404         return 0;
19405       }
19406
19407 _ACEOF
19408 rm -f conftest.$ac_objext conftest$ac_exeext
19409 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19416   ac_status=$?
19417   grep -v '^ *+' conftest.er1 >conftest.err
19418   rm -f conftest.er1
19419   cat conftest.err >&5
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); } &&
19422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19423   { (case "(($ac_try" in
19424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425   *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428   (eval "$ac_try") 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest$ac_exeext'
19433   { (case "(($ac_try" in
19434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435   *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438   (eval "$ac_try") 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); }; }; then
19442   { echo "$as_me:$LINENO: result: yes" >&5
19443 echo "${ECHO_T}yes" >&6; }
19444
19445 cat >>confdefs.h <<\_ACEOF
19446 #define LLVM_MULTITHREADED 1
19447 _ACEOF
19448
19449 else
19450   echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453         { echo "$as_me:$LINENO: result: no" >&5
19454 echo "${ECHO_T}no" >&6; }
19455
19456 cat >>confdefs.h <<\_ACEOF
19457 #define LLVM_MULTITHREADED 0
19458 _ACEOF
19459
19460   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19461 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19462 fi
19463
19464 rm -f core conftest.err conftest.$ac_objext \
19465       conftest$ac_exeext conftest.$ac_ext
19466
19467
19468
19469 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19470   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19471 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19472 if test "${llvm_cv_linux_mixed+set}" = set; then
19473   echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475    ac_ext=c
19476 ac_cpp='$CPP $CPPFLAGS'
19477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19480
19481   cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h.  */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h.  */
19487 #ifndef __x86_64__
19488        error: Not x86-64 even if uname says so!
19489       #endif
19490
19491 int
19492 main ()
19493 {
19494
19495   ;
19496   return 0;
19497 }
19498 _ACEOF
19499 rm -f conftest.$ac_objext
19500 if { (ac_try="$ac_compile"
19501 case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_compile") 2>conftest.er1
19507   ac_status=$?
19508   grep -v '^ *+' conftest.er1 >conftest.err
19509   rm -f conftest.er1
19510   cat conftest.err >&5
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); } &&
19513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19514   { (case "(($ac_try" in
19515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516   *) ac_try_echo=$ac_try;;
19517 esac
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519   (eval "$ac_try") 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); }; } &&
19523          { ac_try='test -s conftest.$ac_objext'
19524   { (case "(($ac_try" in
19525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526   *) ac_try_echo=$ac_try;;
19527 esac
19528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529   (eval "$ac_try") 2>&5
19530   ac_status=$?
19531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532   (exit $ac_status); }; }; then
19533   llvm_cv_linux_mixed=no
19534 else
19535   echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538         llvm_cv_linux_mixed=yes
19539 fi
19540
19541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19542   ac_ext=c
19543 ac_cpp='$CPP $CPPFLAGS'
19544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19547
19548
19549 fi
19550 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19551 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19552
19553   if test "$llvm_cv_linux_mixed" = "yes"; then
19554     llvm_cv_target_arch="x86"
19555     ARCH="x86"
19556   fi
19557 fi
19558
19559
19560 for ac_func in __dso_handle
19561 do
19562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19566   echo $ECHO_N "(cached) $ECHO_C" >&6
19567 else
19568   cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h.  */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h.  */
19574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19576 #define $ac_func innocuous_$ac_func
19577
19578 /* System header to define __stub macros and hopefully few prototypes,
19579     which can conflict with char $ac_func (); below.
19580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19581     <limits.h> exists even on freestanding compilers.  */
19582
19583 #ifdef __STDC__
19584 # include <limits.h>
19585 #else
19586 # include <assert.h>
19587 #endif
19588
19589 #undef $ac_func
19590
19591 /* Override any GCC internal prototype to avoid an error.
19592    Use char because int might match the return type of a GCC
19593    builtin and then its argument prototype would still apply.  */
19594 #ifdef __cplusplus
19595 extern "C"
19596 #endif
19597 char $ac_func ();
19598 /* The GNU C library defines this for functions which it implements
19599     to always fail with ENOSYS.  Some functions are actually named
19600     something starting with __ and the normal name is an alias.  */
19601 #if defined __stub_$ac_func || defined __stub___$ac_func
19602 choke me
19603 #endif
19604
19605 int
19606 main ()
19607 {
19608 return $ac_func ();
19609   ;
19610   return 0;
19611 }
19612 _ACEOF
19613 rm -f conftest.$ac_objext conftest$ac_exeext
19614 if { (ac_try="$ac_link"
19615 case "(($ac_try" in
19616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617   *) ac_try_echo=$ac_try;;
19618 esac
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620   (eval "$ac_link") 2>conftest.er1
19621   ac_status=$?
19622   grep -v '^ *+' conftest.er1 >conftest.err
19623   rm -f conftest.er1
19624   cat conftest.err >&5
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); } &&
19627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19628   { (case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_try") 2>&5
19634   ac_status=$?
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); }; } &&
19637          { ac_try='test -s conftest$ac_exeext'
19638   { (case "(($ac_try" in
19639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640   *) ac_try_echo=$ac_try;;
19641 esac
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643   (eval "$ac_try") 2>&5
19644   ac_status=$?
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); }; }; then
19647   eval "$as_ac_var=yes"
19648 else
19649   echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19651
19652         eval "$as_ac_var=no"
19653 fi
19654
19655 rm -f core conftest.err conftest.$ac_objext \
19656       conftest$ac_exeext conftest.$ac_ext
19657 fi
19658 ac_res=`eval echo '${'$as_ac_var'}'`
19659                { echo "$as_me:$LINENO: result: $ac_res" >&5
19660 echo "${ECHO_T}$ac_res" >&6; }
19661 if test `eval echo '${'$as_ac_var'}'` = yes; then
19662   cat >>confdefs.h <<_ACEOF
19663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19664 _ACEOF
19665
19666 fi
19667 done
19668
19669
19670 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19671 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19672 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675   llvm_cv_llvmgcc_sanity="no"
19676 if test -x "$LLVMGCC" ; then
19677   cp /dev/null conftest.c
19678   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19679       grep 'target datalayout =' > /dev/null 2>&1
19680   if test $? -eq 0 ; then
19681     llvm_cv_llvmgcc_sanity="yes"
19682   fi
19683   rm conftest.c
19684 fi
19685 fi
19686 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19687 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19688
19689 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19690   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19691 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19692   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19693   LLVMCC1=$llvmcc1path
19694
19695   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19696   LLVMCC1PLUS=$llvmcc1pluspath
19697
19698   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19699   LLVMGCCDIR=$llvmgccdir
19700
19701   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19702   LLVMGCC_LANGS=$llvmgcclangs
19703
19704   { echo "$as_me:$LINENO: result: ok" >&5
19705 echo "${ECHO_T}ok" >&6; }
19706 fi
19707
19708 SHLIBEXT=$libltdl_cv_shlibext
19709
19710
19711 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19712
19713
19714 # Translate the various configuration directories and other basic
19715 # information into substitutions that will end up in Makefile.config.in
19716 # that these configured values can be used by the makefiles
19717 if test "${prefix}" = "NONE" ; then
19718   prefix="/usr/local"
19719 fi
19720 eval LLVM_PREFIX="${prefix}";
19721 eval LLVM_BINDIR="${prefix}/bin";
19722 eval LLVM_LIBDIR="${prefix}/lib";
19723 eval LLVM_DATADIR="${prefix}/share/llvm";
19724 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19725 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19726 eval LLVM_INCLUDEDIR="${prefix}/include";
19727 eval LLVM_INFODIR="${prefix}/info";
19728 eval LLVM_MANDIR="${prefix}/man";
19729 LLVM_CONFIGTIME=`date`
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741 # Place the various directores into the config.h file as #defines so that we
19742 # can know about the installation paths within LLVM.
19743
19744 cat >>confdefs.h <<_ACEOF
19745 #define LLVM_PREFIX "$LLVM_PREFIX"
19746 _ACEOF
19747
19748
19749 cat >>confdefs.h <<_ACEOF
19750 #define LLVM_BINDIR "$LLVM_BINDIR"
19751 _ACEOF
19752
19753
19754 cat >>confdefs.h <<_ACEOF
19755 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19756 _ACEOF
19757
19758
19759 cat >>confdefs.h <<_ACEOF
19760 #define LLVM_DATADIR "$LLVM_DATADIR"
19761 _ACEOF
19762
19763
19764 cat >>confdefs.h <<_ACEOF
19765 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19766 _ACEOF
19767
19768
19769 cat >>confdefs.h <<_ACEOF
19770 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19771 _ACEOF
19772
19773
19774 cat >>confdefs.h <<_ACEOF
19775 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19776 _ACEOF
19777
19778
19779 cat >>confdefs.h <<_ACEOF
19780 #define LLVM_INFODIR "$LLVM_INFODIR"
19781 _ACEOF
19782
19783
19784 cat >>confdefs.h <<_ACEOF
19785 #define LLVM_MANDIR "$LLVM_MANDIR"
19786 _ACEOF
19787
19788
19789 cat >>confdefs.h <<_ACEOF
19790 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19791 _ACEOF
19792
19793
19794 cat >>confdefs.h <<_ACEOF
19795 #define LLVM_HOSTTRIPLE "$host"
19796 _ACEOF
19797
19798
19799 # Determine which bindings to build.
19800 if test "$BINDINGS_TO_BUILD" = auto ; then
19801   BINDINGS_TO_BUILD=""
19802   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19803     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19804   fi
19805 fi
19806 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19807
19808
19809 # This isn't really configurey, but it avoids having to repeat the list in
19810 # other files.
19811 ALL_BINDINGS=ocaml
19812
19813
19814 # Do any work necessary to ensure that bindings have what they need.
19815 binding_prereqs_failed=0
19816 for a_binding in $BINDINGS_TO_BUILD ; do
19817   case "$a_binding" in
19818   ocaml)
19819     if test "x$OCAMLC" = x ; then
19820       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19821 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19822       binding_prereqs_failed=1
19823     fi
19824     if test "x$OCAMLDEP" = x ; then
19825       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19826 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19827       binding_prereqs_failed=1
19828     fi
19829     if test "x$OCAMLOPT" = x ; then
19830       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19831 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19832           fi
19833     if test "x$with_ocaml_libdir" != xauto ; then
19834       OCAML_LIBDIR=$with_ocaml_libdir
19835
19836     else
19837       ocaml_stdlib="`"$OCAMLC" -where`"
19838       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19839       then
19840         # ocaml stdlib is beneath our prefix; use stdlib
19841         OCAML_LIBDIR=$ocaml_stdlib
19842
19843       else
19844         # ocaml stdlib is outside our prefix; use libdir/ocaml
19845         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19846
19847       fi
19848     fi
19849     ;;
19850   esac
19851 done
19852 if test "$binding_prereqs_failed" = 1 ; then
19853   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19854 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19855    { (exit 1); exit 1; }; }
19856 fi
19857
19858 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19859 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19860 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19861   echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863    ac_ext=cpp
19864 ac_cpp='$CXXCPP $CPPFLAGS'
19865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19868
19869   oldcxxflags="$CXXFLAGS"
19870   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19871   cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877
19878 int
19879 main ()
19880 {
19881
19882   ;
19883   return 0;
19884 }
19885 _ACEOF
19886 rm -f conftest.$ac_objext
19887 if { (ac_try="$ac_compile"
19888 case "(($ac_try" in
19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890   *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893   (eval "$ac_compile") 2>conftest.er1
19894   ac_status=$?
19895   grep -v '^ *+' conftest.er1 >conftest.err
19896   rm -f conftest.er1
19897   cat conftest.err >&5
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); } &&
19900          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19901   { (case "(($ac_try" in
19902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903   *) ac_try_echo=$ac_try;;
19904 esac
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906   (eval "$ac_try") 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); }; } &&
19910          { ac_try='test -s conftest.$ac_objext'
19911   { (case "(($ac_try" in
19912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913   *) ac_try_echo=$ac_try;;
19914 esac
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916   (eval "$ac_try") 2>&5
19917   ac_status=$?
19918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919   (exit $ac_status); }; }; then
19920   llvm_cv_cxx_visibility_inlines_hidden=yes
19921 else
19922   echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19924
19925         llvm_cv_cxx_visibility_inlines_hidden=no
19926 fi
19927
19928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19929   CXXFLAGS="$oldcxxflags"
19930   ac_ext=c
19931 ac_cpp='$CPP $CPPFLAGS'
19932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19935
19936
19937 fi
19938 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19939 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19940 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19941   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19942
19943 else
19944   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19945
19946 fi
19947
19948
19949 if test "$llvm_cv_link_use_r" = "yes" ; then
19950   RPATH="-Wl,-R"
19951 else
19952   RPATH="-Wl,-rpath"
19953 fi
19954
19955
19956 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19957   RDYNAMIC="-Wl,-export-dynamic"
19958 else
19959   RDYNAMIC=""
19960 fi
19961
19962
19963
19964 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19965
19966 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19967
19968 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19969
19970 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19971
19972 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19973
19974 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19975
19976
19977 ac_config_files="$ac_config_files Makefile.config"
19978
19979
19980 ac_config_files="$ac_config_files llvm.spec"
19981
19982
19983 ac_config_files="$ac_config_files docs/doxygen.cfg"
19984
19985
19986 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19987
19988
19989 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19990
19991
19992 ac_config_commands="$ac_config_commands setup"
19993
19994 ac_config_commands="$ac_config_commands Makefile"
19995
19996
19997 ac_config_commands="$ac_config_commands Makefile.common"
19998
19999
20000 ac_config_commands="$ac_config_commands examples/Makefile"
20001
20002
20003 ac_config_commands="$ac_config_commands lib/Makefile"
20004
20005
20006 ac_config_commands="$ac_config_commands runtime/Makefile"
20007
20008
20009 ac_config_commands="$ac_config_commands test/Makefile"
20010
20011
20012 ac_config_commands="$ac_config_commands test/Makefile.tests"
20013
20014
20015 ac_config_commands="$ac_config_commands unittests/Makefile"
20016
20017
20018 ac_config_commands="$ac_config_commands tools/Makefile"
20019
20020
20021 ac_config_commands="$ac_config_commands utils/Makefile"
20022
20023
20024 ac_config_commands="$ac_config_commands projects/Makefile"
20025
20026
20027 ac_config_commands="$ac_config_commands bindings/Makefile"
20028
20029
20030 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20031
20032
20033
20034 cat >confcache <<\_ACEOF
20035 # This file is a shell script that caches the results of configure
20036 # tests run on this system so they can be shared between configure
20037 # scripts and configure runs, see configure's option --config-cache.
20038 # It is not useful on other systems.  If it contains results you don't
20039 # want to keep, you may remove or edit it.
20040 #
20041 # config.status only pays attention to the cache file if you give it
20042 # the --recheck option to rerun configure.
20043 #
20044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20046 # following values.
20047
20048 _ACEOF
20049
20050 # The following way of writing the cache mishandles newlines in values,
20051 # but we know of no workaround that is simple, portable, and efficient.
20052 # So, we kill variables containing newlines.
20053 # Ultrix sh set writes to stderr and can't be redirected directly,
20054 # and sets the high bit in the cache file unless we assign to the vars.
20055 (
20056   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20057     eval ac_val=\$$ac_var
20058     case $ac_val in #(
20059     *${as_nl}*)
20060       case $ac_var in #(
20061       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20062 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20063       esac
20064       case $ac_var in #(
20065       _ | IFS | as_nl) ;; #(
20066       *) $as_unset $ac_var ;;
20067       esac ;;
20068     esac
20069   done
20070
20071   (set) 2>&1 |
20072     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20073     *${as_nl}ac_space=\ *)
20074       # `set' does not quote correctly, so add quotes (double-quote
20075       # substitution turns \\\\ into \\, and sed turns \\ into \).
20076       sed -n \
20077         "s/'/'\\\\''/g;
20078           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20079       ;; #(
20080     *)
20081       # `set' quotes correctly as required by POSIX, so do not add quotes.
20082       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20083       ;;
20084     esac |
20085     sort
20086 ) |
20087   sed '
20088      /^ac_cv_env_/b end
20089      t clear
20090      :clear
20091      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20092      t end
20093      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20094      :end' >>confcache
20095 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20096   if test -w "$cache_file"; then
20097     test "x$cache_file" != "x/dev/null" &&
20098       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20099 echo "$as_me: updating cache $cache_file" >&6;}
20100     cat confcache >$cache_file
20101   else
20102     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20103 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20104   fi
20105 fi
20106 rm -f confcache
20107
20108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20109 # Let make expand exec_prefix.
20110 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20111
20112 DEFS=-DHAVE_CONFIG_H
20113
20114 ac_libobjs=
20115 ac_ltlibobjs=
20116 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20117   # 1. Remove the extension, and $U if already installed.
20118   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20119   ac_i=`echo "$ac_i" | sed "$ac_script"`
20120   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20121   #    will be set to the directory where LIBOBJS objects are built.
20122   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20123   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20124 done
20125 LIBOBJS=$ac_libobjs
20126
20127 LTLIBOBJS=$ac_ltlibobjs
20128
20129
20130 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20131   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20132 Usually this means the macro was only invoked conditionally." >&5
20133 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20134 Usually this means the macro was only invoked conditionally." >&2;}
20135    { (exit 1); exit 1; }; }
20136 fi
20137 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20138   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20139 Usually this means the macro was only invoked conditionally." >&5
20140 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20141 Usually this means the macro was only invoked conditionally." >&2;}
20142    { (exit 1); exit 1; }; }
20143 fi
20144
20145 : ${CONFIG_STATUS=./config.status}
20146 ac_clean_files_save=$ac_clean_files
20147 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20148 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20149 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20150 cat >$CONFIG_STATUS <<_ACEOF
20151 #! $SHELL
20152 # Generated by $as_me.
20153 # Run this file to recreate the current configuration.
20154 # Compiler output produced by configure, useful for debugging
20155 # configure, is in config.log if it exists.
20156
20157 debug=false
20158 ac_cs_recheck=false
20159 ac_cs_silent=false
20160 SHELL=\${CONFIG_SHELL-$SHELL}
20161 _ACEOF
20162
20163 cat >>$CONFIG_STATUS <<\_ACEOF
20164 ## --------------------- ##
20165 ## M4sh Initialization.  ##
20166 ## --------------------- ##
20167
20168 # Be Bourne compatible
20169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20170   emulate sh
20171   NULLCMD=:
20172   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20173   # is contrary to our usage.  Disable this feature.
20174   alias -g '${1+"$@"}'='"$@"'
20175   setopt NO_GLOB_SUBST
20176 else
20177   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20178 fi
20179 BIN_SH=xpg4; export BIN_SH # for Tru64
20180 DUALCASE=1; export DUALCASE # for MKS sh
20181
20182
20183 # PATH needs CR
20184 # Avoid depending upon Character Ranges.
20185 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20186 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20187 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20188 as_cr_digits='0123456789'
20189 as_cr_alnum=$as_cr_Letters$as_cr_digits
20190
20191 # The user is always right.
20192 if test "${PATH_SEPARATOR+set}" != set; then
20193   echo "#! /bin/sh" >conf$$.sh
20194   echo  "exit 0"   >>conf$$.sh
20195   chmod +x conf$$.sh
20196   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20197     PATH_SEPARATOR=';'
20198   else
20199     PATH_SEPARATOR=:
20200   fi
20201   rm -f conf$$.sh
20202 fi
20203
20204 # Support unset when possible.
20205 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20206   as_unset=unset
20207 else
20208   as_unset=false
20209 fi
20210
20211
20212 # IFS
20213 # We need space, tab and new line, in precisely that order.  Quoting is
20214 # there to prevent editors from complaining about space-tab.
20215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20216 # splitting by setting IFS to empty value.)
20217 as_nl='
20218 '
20219 IFS=" ""        $as_nl"
20220
20221 # Find who we are.  Look in the path if we contain no directory separator.
20222 case $0 in
20223   *[\\/]* ) as_myself=$0 ;;
20224   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225 for as_dir in $PATH
20226 do
20227   IFS=$as_save_IFS
20228   test -z "$as_dir" && as_dir=.
20229   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20230 done
20231 IFS=$as_save_IFS
20232
20233      ;;
20234 esac
20235 # We did not find ourselves, most probably we were run as `sh COMMAND'
20236 # in which case we are not to be found in the path.
20237 if test "x$as_myself" = x; then
20238   as_myself=$0
20239 fi
20240 if test ! -f "$as_myself"; then
20241   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20242   { (exit 1); exit 1; }
20243 fi
20244
20245 # Work around bugs in pre-3.0 UWIN ksh.
20246 for as_var in ENV MAIL MAILPATH
20247 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20248 done
20249 PS1='$ '
20250 PS2='> '
20251 PS4='+ '
20252
20253 # NLS nuisances.
20254 for as_var in \
20255   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20256   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20257   LC_TELEPHONE LC_TIME
20258 do
20259   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20260     eval $as_var=C; export $as_var
20261   else
20262     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20263   fi
20264 done
20265
20266 # Required to use basename.
20267 if expr a : '\(a\)' >/dev/null 2>&1 &&
20268    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20269   as_expr=expr
20270 else
20271   as_expr=false
20272 fi
20273
20274 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20275   as_basename=basename
20276 else
20277   as_basename=false
20278 fi
20279
20280
20281 # Name of the executable.
20282 as_me=`$as_basename -- "$0" ||
20283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20284          X"$0" : 'X\(//\)$' \| \
20285          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20286 echo X/"$0" |
20287     sed '/^.*\/\([^/][^/]*\)\/*$/{
20288             s//\1/
20289             q
20290           }
20291           /^X\/\(\/\/\)$/{
20292             s//\1/
20293             q
20294           }
20295           /^X\/\(\/\).*/{
20296             s//\1/
20297             q
20298           }
20299           s/.*/./; q'`
20300
20301 # CDPATH.
20302 $as_unset CDPATH
20303
20304
20305
20306   as_lineno_1=$LINENO
20307   as_lineno_2=$LINENO
20308   test "x$as_lineno_1" != "x$as_lineno_2" &&
20309   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20310
20311   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20312   # uniformly replaced by the line number.  The first 'sed' inserts a
20313   # line-number line after each line using $LINENO; the second 'sed'
20314   # does the real work.  The second script uses 'N' to pair each
20315   # line-number line with the line containing $LINENO, and appends
20316   # trailing '-' during substitution so that $LINENO is not a special
20317   # case at line end.
20318   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20319   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20320   # E. McMahon (1931-1989) for sed's syntax.  :-)
20321   sed -n '
20322     p
20323     /[$]LINENO/=
20324   ' <$as_myself |
20325     sed '
20326       s/[$]LINENO.*/&-/
20327       t lineno
20328       b
20329       :lineno
20330       N
20331       :loop
20332       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20333       t loop
20334       s/-\n.*//
20335     ' >$as_me.lineno &&
20336   chmod +x "$as_me.lineno" ||
20337     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20338    { (exit 1); exit 1; }; }
20339
20340   # Don't try to exec as it changes $[0], causing all sort of problems
20341   # (the dirname of $[0] is not the place where we might find the
20342   # original and so on.  Autoconf is especially sensitive to this).
20343   . "./$as_me.lineno"
20344   # Exit status is that of the last command.
20345   exit
20346 }
20347
20348
20349 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20350   as_dirname=dirname
20351 else
20352   as_dirname=false
20353 fi
20354
20355 ECHO_C= ECHO_N= ECHO_T=
20356 case `echo -n x` in
20357 -n*)
20358   case `echo 'x\c'` in
20359   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20360   *)   ECHO_C='\c';;
20361   esac;;
20362 *)
20363   ECHO_N='-n';;
20364 esac
20365
20366 if expr a : '\(a\)' >/dev/null 2>&1 &&
20367    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20368   as_expr=expr
20369 else
20370   as_expr=false
20371 fi
20372
20373 rm -f conf$$ conf$$.exe conf$$.file
20374 if test -d conf$$.dir; then
20375   rm -f conf$$.dir/conf$$.file
20376 else
20377   rm -f conf$$.dir
20378   mkdir conf$$.dir
20379 fi
20380 echo >conf$$.file
20381 if ln -s conf$$.file conf$$ 2>/dev/null; then
20382   as_ln_s='ln -s'
20383   # ... but there are two gotchas:
20384   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20385   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20386   # In both cases, we have to default to `cp -p'.
20387   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20388     as_ln_s='cp -p'
20389 elif ln conf$$.file conf$$ 2>/dev/null; then
20390   as_ln_s=ln
20391 else
20392   as_ln_s='cp -p'
20393 fi
20394 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20395 rmdir conf$$.dir 2>/dev/null
20396
20397 if mkdir -p . 2>/dev/null; then
20398   as_mkdir_p=:
20399 else
20400   test -d ./-p && rmdir ./-p
20401   as_mkdir_p=false
20402 fi
20403
20404 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20405 # systems may use methods other than mode bits to determine executability.
20406 cat >conf$$.file <<_ASEOF
20407 #! /bin/sh
20408 exit 0
20409 _ASEOF
20410 chmod +x conf$$.file
20411 if test -x conf$$.file >/dev/null 2>&1; then
20412   as_executable_p="test -x"
20413 else
20414   as_executable_p=:
20415 fi
20416 rm -f conf$$.file
20417
20418 # Sed expression to map a string onto a valid CPP name.
20419 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20420
20421 # Sed expression to map a string onto a valid variable name.
20422 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20423
20424
20425 exec 6>&1
20426
20427 # Save the log message, to keep $[0] and so on meaningful, and to
20428 # report actual input values of CONFIG_FILES etc. instead of their
20429 # values after options handling.
20430 ac_log="
20431 This file was extended by llvm $as_me 2.7svn, which was
20432 generated by GNU Autoconf 2.60.  Invocation command line was
20433
20434   CONFIG_FILES    = $CONFIG_FILES
20435   CONFIG_HEADERS  = $CONFIG_HEADERS
20436   CONFIG_LINKS    = $CONFIG_LINKS
20437   CONFIG_COMMANDS = $CONFIG_COMMANDS
20438   $ $0 $@
20439
20440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20441 "
20442
20443 _ACEOF
20444
20445 cat >>$CONFIG_STATUS <<_ACEOF
20446 # Files that config.status was made for.
20447 config_files="$ac_config_files"
20448 config_headers="$ac_config_headers"
20449 config_commands="$ac_config_commands"
20450
20451 _ACEOF
20452
20453 cat >>$CONFIG_STATUS <<\_ACEOF
20454 ac_cs_usage="\
20455 \`$as_me' instantiates files from templates according to the
20456 current configuration.
20457
20458 Usage: $0 [OPTIONS] [FILE]...
20459
20460   -h, --help       print this help, then exit
20461   -V, --version    print version number, then exit
20462   -q, --quiet      do not print progress messages
20463   -d, --debug      don't remove temporary files
20464       --recheck    update $as_me by reconfiguring in the same conditions
20465   --file=FILE[:TEMPLATE]
20466                    instantiate the configuration file FILE
20467   --header=FILE[:TEMPLATE]
20468                    instantiate the configuration header FILE
20469
20470 Configuration files:
20471 $config_files
20472
20473 Configuration headers:
20474 $config_headers
20475
20476 Configuration commands:
20477 $config_commands
20478
20479 Report bugs to <bug-autoconf@gnu.org>."
20480
20481 _ACEOF
20482 cat >>$CONFIG_STATUS <<_ACEOF
20483 ac_cs_version="\\
20484 llvm config.status 2.7svn
20485 configured by $0, generated by GNU Autoconf 2.60,
20486   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20487
20488 Copyright (C) 2006 Free Software Foundation, Inc.
20489 This config.status script is free software; the Free Software Foundation
20490 gives unlimited permission to copy, distribute and modify it."
20491
20492 ac_pwd='$ac_pwd'
20493 srcdir='$srcdir'
20494 INSTALL='$INSTALL'
20495 _ACEOF
20496
20497 cat >>$CONFIG_STATUS <<\_ACEOF
20498 # If no file are specified by the user, then we need to provide default
20499 # value.  By we need to know if files were specified by the user.
20500 ac_need_defaults=:
20501 while test $# != 0
20502 do
20503   case $1 in
20504   --*=*)
20505     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20506     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20507     ac_shift=:
20508     ;;
20509   *)
20510     ac_option=$1
20511     ac_optarg=$2
20512     ac_shift=shift
20513     ;;
20514   esac
20515
20516   case $ac_option in
20517   # Handling of the options.
20518   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20519     ac_cs_recheck=: ;;
20520   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20521     echo "$ac_cs_version"; exit ;;
20522   --debug | --debu | --deb | --de | --d | -d )
20523     debug=: ;;
20524   --file | --fil | --fi | --f )
20525     $ac_shift
20526     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20527     ac_need_defaults=false;;
20528   --header | --heade | --head | --hea )
20529     $ac_shift
20530     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20531     ac_need_defaults=false;;
20532   --he | --h)
20533     # Conflict between --help and --header
20534     { echo "$as_me: error: ambiguous option: $1
20535 Try \`$0 --help' for more information." >&2
20536    { (exit 1); exit 1; }; };;
20537   --help | --hel | -h )
20538     echo "$ac_cs_usage"; exit ;;
20539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20540   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20541     ac_cs_silent=: ;;
20542
20543   # This is an error.
20544   -*) { echo "$as_me: error: unrecognized option: $1
20545 Try \`$0 --help' for more information." >&2
20546    { (exit 1); exit 1; }; } ;;
20547
20548   *) ac_config_targets="$ac_config_targets $1"
20549      ac_need_defaults=false ;;
20550
20551   esac
20552   shift
20553 done
20554
20555 ac_configure_extra_args=
20556
20557 if $ac_cs_silent; then
20558   exec 6>/dev/null
20559   ac_configure_extra_args="$ac_configure_extra_args --silent"
20560 fi
20561
20562 _ACEOF
20563 cat >>$CONFIG_STATUS <<_ACEOF
20564 if \$ac_cs_recheck; then
20565   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20566   CONFIG_SHELL=$SHELL
20567   export CONFIG_SHELL
20568   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20569 fi
20570
20571 _ACEOF
20572 cat >>$CONFIG_STATUS <<\_ACEOF
20573 exec 5>>config.log
20574 {
20575   echo
20576   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20577 ## Running $as_me. ##
20578 _ASBOX
20579   echo "$ac_log"
20580 } >&5
20581
20582 _ACEOF
20583 cat >>$CONFIG_STATUS <<_ACEOF
20584 #
20585 # INIT-COMMANDS
20586 #
20587 llvm_src="${srcdir}"
20588
20589 _ACEOF
20590
20591 cat >>$CONFIG_STATUS <<\_ACEOF
20592
20593 # Handling of arguments.
20594 for ac_config_target in $ac_config_targets
20595 do
20596   case $ac_config_target in
20597     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20598     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20599     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20600     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20601     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20602     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20603     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20604     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20605     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20606     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20607     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20608     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20609     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20610     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20611     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20612     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20613     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20614     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20615     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20616     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20617     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20618     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20619     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20620     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20621     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20622
20623   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20624 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20625    { (exit 1); exit 1; }; };;
20626   esac
20627 done
20628
20629
20630 # If the user did not use the arguments to specify the items to instantiate,
20631 # then the envvar interface is used.  Set only those that are not.
20632 # We use the long form for the default assignment because of an extremely
20633 # bizarre bug on SunOS 4.1.3.
20634 if $ac_need_defaults; then
20635   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20636   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20637   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20638 fi
20639
20640 # Have a temporary directory for convenience.  Make it in the build tree
20641 # simply because there is no reason against having it here, and in addition,
20642 # creating and moving files from /tmp can sometimes cause problems.
20643 # Hook for its removal unless debugging.
20644 # Note that there is a small window in which the directory will not be cleaned:
20645 # after its creation but before its name has been assigned to `$tmp'.
20646 $debug ||
20647 {
20648   tmp=
20649   trap 'exit_status=$?
20650   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20651 ' 0
20652   trap '{ (exit 1); exit 1; }' 1 2 13 15
20653 }
20654 # Create a (secure) tmp directory for tmp files.
20655
20656 {
20657   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20658   test -n "$tmp" && test -d "$tmp"
20659 }  ||
20660 {
20661   tmp=./conf$$-$RANDOM
20662   (umask 077 && mkdir "$tmp")
20663 } ||
20664 {
20665    echo "$me: cannot create a temporary directory in ." >&2
20666    { (exit 1); exit 1; }
20667 }
20668
20669 #
20670 # Set up the sed scripts for CONFIG_FILES section.
20671 #
20672
20673 # No need to generate the scripts if there are no CONFIG_FILES.
20674 # This happens for instance when ./config.status config.h
20675 if test -n "$CONFIG_FILES"; then
20676
20677 _ACEOF
20678
20679
20680
20681 ac_delim='%!_!# '
20682 for ac_last_try in false false false false false :; do
20683   cat >conf$$subs.sed <<_ACEOF
20684 SHELL!$SHELL$ac_delim
20685 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20686 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20687 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20688 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20689 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20690 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20691 exec_prefix!$exec_prefix$ac_delim
20692 prefix!$prefix$ac_delim
20693 program_transform_name!$program_transform_name$ac_delim
20694 bindir!$bindir$ac_delim
20695 sbindir!$sbindir$ac_delim
20696 libexecdir!$libexecdir$ac_delim
20697 datarootdir!$datarootdir$ac_delim
20698 datadir!$datadir$ac_delim
20699 sysconfdir!$sysconfdir$ac_delim
20700 sharedstatedir!$sharedstatedir$ac_delim
20701 localstatedir!$localstatedir$ac_delim
20702 includedir!$includedir$ac_delim
20703 oldincludedir!$oldincludedir$ac_delim
20704 docdir!$docdir$ac_delim
20705 infodir!$infodir$ac_delim
20706 htmldir!$htmldir$ac_delim
20707 dvidir!$dvidir$ac_delim
20708 pdfdir!$pdfdir$ac_delim
20709 psdir!$psdir$ac_delim
20710 libdir!$libdir$ac_delim
20711 localedir!$localedir$ac_delim
20712 mandir!$mandir$ac_delim
20713 DEFS!$DEFS$ac_delim
20714 ECHO_C!$ECHO_C$ac_delim
20715 ECHO_N!$ECHO_N$ac_delim
20716 ECHO_T!$ECHO_T$ac_delim
20717 LIBS!$LIBS$ac_delim
20718 build_alias!$build_alias$ac_delim
20719 host_alias!$host_alias$ac_delim
20720 target_alias!$target_alias$ac_delim
20721 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20722 subdirs!$subdirs$ac_delim
20723 build!$build$ac_delim
20724 build_cpu!$build_cpu$ac_delim
20725 build_vendor!$build_vendor$ac_delim
20726 build_os!$build_os$ac_delim
20727 host!$host$ac_delim
20728 host_cpu!$host_cpu$ac_delim
20729 host_vendor!$host_vendor$ac_delim
20730 host_os!$host_os$ac_delim
20731 target!$target$ac_delim
20732 target_cpu!$target_cpu$ac_delim
20733 target_vendor!$target_vendor$ac_delim
20734 target_os!$target_os$ac_delim
20735 OS!$OS$ac_delim
20736 HOST_OS!$HOST_OS$ac_delim
20737 TARGET_OS!$TARGET_OS$ac_delim
20738 LINKALL!$LINKALL$ac_delim
20739 NOLINKALL!$NOLINKALL$ac_delim
20740 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20741 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20742 ARCH!$ARCH$ac_delim
20743 ENDIAN!$ENDIAN$ac_delim
20744 CC!$CC$ac_delim
20745 CFLAGS!$CFLAGS$ac_delim
20746 LDFLAGS!$LDFLAGS$ac_delim
20747 CPPFLAGS!$CPPFLAGS$ac_delim
20748 ac_ct_CC!$ac_ct_CC$ac_delim
20749 EXEEXT!$EXEEXT$ac_delim
20750 OBJEXT!$OBJEXT$ac_delim
20751 CPP!$CPP$ac_delim
20752 GREP!$GREP$ac_delim
20753 EGREP!$EGREP$ac_delim
20754 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20755 BUILD_CC!$BUILD_CC$ac_delim
20756 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20757 BUILD_CXX!$BUILD_CXX$ac_delim
20758 CVSBUILD!$CVSBUILD$ac_delim
20759 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20760 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20761 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20762 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20763 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20764 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20765 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20766 JIT!$JIT$ac_delim
20767 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20768 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20769 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20770 ENABLE_PIC!$ENABLE_PIC$ac_delim
20771 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20772 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20773 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20774 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20775 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20776 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20777 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20778 CLANGPATH!$CLANGPATH$ac_delim
20779 CLANGXXPATH!$CLANGXXPATH$ac_delim
20780 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20781 _ACEOF
20782
20783   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20784     break
20785   elif $ac_last_try; then
20786     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20787 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20788    { (exit 1); exit 1; }; }
20789   else
20790     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20791   fi
20792 done
20793
20794 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20795 if test -n "$ac_eof"; then
20796   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20797   ac_eof=`expr $ac_eof + 1`
20798 fi
20799
20800 cat >>$CONFIG_STATUS <<_ACEOF
20801 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20802 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20803 _ACEOF
20804 sed '
20805 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20806 s/^/s,@/; s/!/@,|#_!!_#|/
20807 :n
20808 t n
20809 s/'"$ac_delim"'$/,g/; t
20810 s/$/\\/; p
20811 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20812 ' >>$CONFIG_STATUS <conf$$subs.sed
20813 rm -f conf$$subs.sed
20814 cat >>$CONFIG_STATUS <<_ACEOF
20815 CEOF$ac_eof
20816 _ACEOF
20817
20818
20819 ac_delim='%!_!# '
20820 for ac_last_try in false false false false false :; do
20821   cat >conf$$subs.sed <<_ACEOF
20822 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20823 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20824 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20825 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20826 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20827 CXX!$CXX$ac_delim
20828 CXXFLAGS!$CXXFLAGS$ac_delim
20829 ac_ct_CXX!$ac_ct_CXX$ac_delim
20830 NM!$NM$ac_delim
20831 ifGNUmake!$ifGNUmake$ac_delim
20832 LN_S!$LN_S$ac_delim
20833 CMP!$CMP$ac_delim
20834 CP!$CP$ac_delim
20835 DATE!$DATE$ac_delim
20836 FIND!$FIND$ac_delim
20837 MKDIR!$MKDIR$ac_delim
20838 MV!$MV$ac_delim
20839 RANLIB!$RANLIB$ac_delim
20840 AR!$AR$ac_delim
20841 RM!$RM$ac_delim
20842 SED!$SED$ac_delim
20843 TAR!$TAR$ac_delim
20844 BINPWD!$BINPWD$ac_delim
20845 GRAPHVIZ!$GRAPHVIZ$ac_delim
20846 DOT!$DOT$ac_delim
20847 FDP!$FDP$ac_delim
20848 NEATO!$NEATO$ac_delim
20849 TWOPI!$TWOPI$ac_delim
20850 CIRCO!$CIRCO$ac_delim
20851 GV!$GV$ac_delim
20852 DOTTY!$DOTTY$ac_delim
20853 PERL!$PERL$ac_delim
20854 HAVE_PERL!$HAVE_PERL$ac_delim
20855 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20856 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20857 INSTALL_DATA!$INSTALL_DATA$ac_delim
20858 BZIP2!$BZIP2$ac_delim
20859 DOXYGEN!$DOXYGEN$ac_delim
20860 GROFF!$GROFF$ac_delim
20861 GZIP!$GZIP$ac_delim
20862 POD2HTML!$POD2HTML$ac_delim
20863 POD2MAN!$POD2MAN$ac_delim
20864 RUNTEST!$RUNTEST$ac_delim
20865 TCLSH!$TCLSH$ac_delim
20866 ZIP!$ZIP$ac_delim
20867 OCAMLC!$OCAMLC$ac_delim
20868 OCAMLOPT!$OCAMLOPT$ac_delim
20869 OCAMLDEP!$OCAMLDEP$ac_delim
20870 OCAMLDOC!$OCAMLDOC$ac_delim
20871 GAS!$GAS$ac_delim
20872 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20873 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20874 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20875 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20876 LIBADD_DL!$LIBADD_DL$ac_delim
20877 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20878 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20879 LLVMGCC!$LLVMGCC$ac_delim
20880 LLVMGXX!$LLVMGXX$ac_delim
20881 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20882 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20883 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20884 USE_UDIS86!$USE_UDIS86$ac_delim
20885 USE_OPROFILE!$USE_OPROFILE$ac_delim
20886 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20887 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20888 MMAP_FILE!$MMAP_FILE$ac_delim
20889 LLVMCC1!$LLVMCC1$ac_delim
20890 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20891 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20892 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20893 SHLIBEXT!$SHLIBEXT$ac_delim
20894 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20895 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20896 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20897 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20898 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20899 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20900 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20901 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20902 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20903 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20904 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20905 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20906 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20907 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20908 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20909 RPATH!$RPATH$ac_delim
20910 RDYNAMIC!$RDYNAMIC$ac_delim
20911 LIBOBJS!$LIBOBJS$ac_delim
20912 LTLIBOBJS!$LTLIBOBJS$ac_delim
20913 _ACEOF
20914
20915   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
20916     break
20917   elif $ac_last_try; then
20918     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20919 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20920    { (exit 1); exit 1; }; }
20921   else
20922     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20923   fi
20924 done
20925
20926 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20927 if test -n "$ac_eof"; then
20928   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20929   ac_eof=`expr $ac_eof + 1`
20930 fi
20931
20932 cat >>$CONFIG_STATUS <<_ACEOF
20933 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20935 _ACEOF
20936 sed '
20937 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20938 s/^/s,@/; s/!/@,|#_!!_#|/
20939 :n
20940 t n
20941 s/'"$ac_delim"'$/,g/; t
20942 s/$/\\/; p
20943 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20944 ' >>$CONFIG_STATUS <conf$$subs.sed
20945 rm -f conf$$subs.sed
20946 cat >>$CONFIG_STATUS <<_ACEOF
20947 :end
20948 s/|#_!!_#|//g
20949 CEOF$ac_eof
20950 _ACEOF
20951
20952
20953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20955 # trailing colons and then remove the whole line if VPATH becomes empty
20956 # (actually we leave an empty line to preserve line numbers).
20957 if test "x$srcdir" = x.; then
20958   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20959 s/:*\$(srcdir):*/:/
20960 s/:*\${srcdir}:*/:/
20961 s/:*@srcdir@:*/:/
20962 s/^\([^=]*=[     ]*\):*/\1/
20963 s/:*$//
20964 s/^[^=]*=[       ]*$//
20965 }'
20966 fi
20967
20968 cat >>$CONFIG_STATUS <<\_ACEOF
20969 fi # test -n "$CONFIG_FILES"
20970
20971
20972 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20973 do
20974   case $ac_tag in
20975   :[FHLC]) ac_mode=$ac_tag; continue;;
20976   esac
20977   case $ac_mode$ac_tag in
20978   :[FHL]*:*);;
20979   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20980 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20981    { (exit 1); exit 1; }; };;
20982   :[FH]-) ac_tag=-:-;;
20983   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20984   esac
20985   ac_save_IFS=$IFS
20986   IFS=:
20987   set x $ac_tag
20988   IFS=$ac_save_IFS
20989   shift
20990   ac_file=$1
20991   shift
20992
20993   case $ac_mode in
20994   :L) ac_source=$1;;
20995   :[FH])
20996     ac_file_inputs=
20997     for ac_f
20998     do
20999       case $ac_f in
21000       -) ac_f="$tmp/stdin";;
21001       *) # Look for the file first in the build tree, then in the source tree
21002          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21003          # because $ac_f cannot contain `:'.
21004          test -f "$ac_f" ||
21005            case $ac_f in
21006            [\\/$]*) false;;
21007            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21008            esac ||
21009            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21010 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21011    { (exit 1); exit 1; }; };;
21012       esac
21013       ac_file_inputs="$ac_file_inputs $ac_f"
21014     done
21015
21016     # Let's still pretend it is `configure' which instantiates (i.e., don't
21017     # use $as_me), people would be surprised to read:
21018     #    /* config.h.  Generated by config.status.  */
21019     configure_input="Generated from "`IFS=:
21020           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21021     if test x"$ac_file" != x-; then
21022       configure_input="$ac_file.  $configure_input"
21023       { echo "$as_me:$LINENO: creating $ac_file" >&5
21024 echo "$as_me: creating $ac_file" >&6;}
21025     fi
21026
21027     case $ac_tag in
21028     *:-:* | *:-) cat >"$tmp/stdin";;
21029     esac
21030     ;;
21031   esac
21032
21033   ac_dir=`$as_dirname -- "$ac_file" ||
21034 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21035          X"$ac_file" : 'X\(//\)[^/]' \| \
21036          X"$ac_file" : 'X\(//\)$' \| \
21037          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21038 echo X"$ac_file" |
21039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21040             s//\1/
21041             q
21042           }
21043           /^X\(\/\/\)[^/].*/{
21044             s//\1/
21045             q
21046           }
21047           /^X\(\/\/\)$/{
21048             s//\1/
21049             q
21050           }
21051           /^X\(\/\).*/{
21052             s//\1/
21053             q
21054           }
21055           s/.*/./; q'`
21056   { as_dir="$ac_dir"
21057   case $as_dir in #(
21058   -*) as_dir=./$as_dir;;
21059   esac
21060   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21061     as_dirs=
21062     while :; do
21063       case $as_dir in #(
21064       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21065       *) as_qdir=$as_dir;;
21066       esac
21067       as_dirs="'$as_qdir' $as_dirs"
21068       as_dir=`$as_dirname -- "$as_dir" ||
21069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21070          X"$as_dir" : 'X\(//\)[^/]' \| \
21071          X"$as_dir" : 'X\(//\)$' \| \
21072          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21073 echo X"$as_dir" |
21074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21075             s//\1/
21076             q
21077           }
21078           /^X\(\/\/\)[^/].*/{
21079             s//\1/
21080             q
21081           }
21082           /^X\(\/\/\)$/{
21083             s//\1/
21084             q
21085           }
21086           /^X\(\/\).*/{
21087             s//\1/
21088             q
21089           }
21090           s/.*/./; q'`
21091       test -d "$as_dir" && break
21092     done
21093     test -z "$as_dirs" || eval "mkdir $as_dirs"
21094   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21095 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21096    { (exit 1); exit 1; }; }; }
21097   ac_builddir=.
21098
21099 case "$ac_dir" in
21100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21101 *)
21102   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21103   # A ".." for each directory in $ac_dir_suffix.
21104   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21105   case $ac_top_builddir_sub in
21106   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21107   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21108   esac ;;
21109 esac
21110 ac_abs_top_builddir=$ac_pwd
21111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21112 # for backward compatibility:
21113 ac_top_builddir=$ac_top_build_prefix
21114
21115 case $srcdir in
21116   .)  # We are building in place.
21117     ac_srcdir=.
21118     ac_top_srcdir=$ac_top_builddir_sub
21119     ac_abs_top_srcdir=$ac_pwd ;;
21120   [\\/]* | ?:[\\/]* )  # Absolute name.
21121     ac_srcdir=$srcdir$ac_dir_suffix;
21122     ac_top_srcdir=$srcdir
21123     ac_abs_top_srcdir=$srcdir ;;
21124   *) # Relative name.
21125     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21126     ac_top_srcdir=$ac_top_build_prefix$srcdir
21127     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21128 esac
21129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21130
21131
21132   case $ac_mode in
21133   :F)
21134   #
21135   # CONFIG_FILE
21136   #
21137
21138   case $INSTALL in
21139   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21140   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21141   esac
21142 _ACEOF
21143
21144 cat >>$CONFIG_STATUS <<\_ACEOF
21145 # If the template does not know about datarootdir, expand it.
21146 # FIXME: This hack should be removed a few years after 2.60.
21147 ac_datarootdir_hack=; ac_datarootdir_seen=
21148
21149 case `sed -n '/datarootdir/ {
21150   p
21151   q
21152 }
21153 /@datadir@/p
21154 /@docdir@/p
21155 /@infodir@/p
21156 /@localedir@/p
21157 /@mandir@/p
21158 ' $ac_file_inputs` in
21159 *datarootdir*) ac_datarootdir_seen=yes;;
21160 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21161   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21162 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21163 _ACEOF
21164 cat >>$CONFIG_STATUS <<_ACEOF
21165   ac_datarootdir_hack='
21166   s&@datadir@&$datadir&g
21167   s&@docdir@&$docdir&g
21168   s&@infodir@&$infodir&g
21169   s&@localedir@&$localedir&g
21170   s&@mandir@&$mandir&g
21171     s&\\\${datarootdir}&$datarootdir&g' ;;
21172 esac
21173 _ACEOF
21174
21175 # Neutralize VPATH when `$srcdir' = `.'.
21176 # Shell code in configure.ac might set extrasub.
21177 # FIXME: do we really want to maintain this feature?
21178 cat >>$CONFIG_STATUS <<_ACEOF
21179   sed "$ac_vpsub
21180 $extrasub
21181 _ACEOF
21182 cat >>$CONFIG_STATUS <<\_ACEOF
21183 :t
21184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21185 s&@configure_input@&$configure_input&;t t
21186 s&@top_builddir@&$ac_top_builddir_sub&;t t
21187 s&@srcdir@&$ac_srcdir&;t t
21188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21189 s&@top_srcdir@&$ac_top_srcdir&;t t
21190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21191 s&@builddir@&$ac_builddir&;t t
21192 s&@abs_builddir@&$ac_abs_builddir&;t t
21193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21194 s&@INSTALL@&$ac_INSTALL&;t t
21195 $ac_datarootdir_hack
21196 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21197
21198 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21199   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21200   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21201   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21202 which seems to be undefined.  Please make sure it is defined." >&5
21203 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21204 which seems to be undefined.  Please make sure it is defined." >&2;}
21205
21206   rm -f "$tmp/stdin"
21207   case $ac_file in
21208   -) cat "$tmp/out"; rm -f "$tmp/out";;
21209   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21210   esac
21211  ;;
21212   :H)
21213   #
21214   # CONFIG_HEADER
21215   #
21216 _ACEOF
21217
21218 # Transform confdefs.h into a sed script `conftest.defines', that
21219 # substitutes the proper values into config.h.in to produce config.h.
21220 rm -f conftest.defines conftest.tail
21221 # First, append a space to every undef/define line, to ease matching.
21222 echo 's/$/ /' >conftest.defines
21223 # Then, protect against being on the right side of a sed subst, or in
21224 # an unquoted here document, in config.status.  If some macros were
21225 # called several times there might be several #defines for the same
21226 # symbol, which is useless.  But do not sort them, since the last
21227 # AC_DEFINE must be honored.
21228 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21229 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21230 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21231 # PARAMS is the parameter list in the macro definition--in most cases, it's
21232 # just an empty string.
21233 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21234 ac_dB='\\)[      (].*,\\1define\\2'
21235 ac_dC=' '
21236 ac_dD=' ,'
21237
21238 uniq confdefs.h |
21239   sed -n '
21240         t rset
21241         :rset
21242         s/^[     ]*#[    ]*define[       ][      ]*//
21243         t ok
21244         d
21245         :ok
21246         s/[\\&,]/\\&/g
21247         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21248         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21249   ' >>conftest.defines
21250
21251 # Remove the space that was appended to ease matching.
21252 # Then replace #undef with comments.  This is necessary, for
21253 # example, in the case of _POSIX_SOURCE, which is predefined and required
21254 # on some systems where configure will not decide to define it.
21255 # (The regexp can be short, since the line contains either #define or #undef.)
21256 echo 's/ $//
21257 s,^[     #]*u.*,/* & */,' >>conftest.defines
21258
21259 # Break up conftest.defines:
21260 ac_max_sed_lines=50
21261
21262 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21263 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21264 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21265 # et cetera.
21266 ac_in='$ac_file_inputs'
21267 ac_out='"$tmp/out1"'
21268 ac_nxt='"$tmp/out2"'
21269
21270 while :
21271 do
21272   # Write a here document:
21273     cat >>$CONFIG_STATUS <<_ACEOF
21274     # First, check the format of the line:
21275     cat >"\$tmp/defines.sed" <<\\CEOF
21276 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21277 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21278 b
21279 :def
21280 _ACEOF
21281   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21282   echo 'CEOF
21283     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21284   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21285   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21286   grep . conftest.tail >/dev/null || break
21287   rm -f conftest.defines
21288   mv conftest.tail conftest.defines
21289 done
21290 rm -f conftest.defines conftest.tail
21291
21292 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21293 cat >>$CONFIG_STATUS <<\_ACEOF
21294   if test x"$ac_file" != x-; then
21295     echo "/* $configure_input  */" >"$tmp/config.h"
21296     cat "$ac_result" >>"$tmp/config.h"
21297     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21298       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21299 echo "$as_me: $ac_file is unchanged" >&6;}
21300     else
21301       rm -f $ac_file
21302       mv "$tmp/config.h" $ac_file
21303     fi
21304   else
21305     echo "/* $configure_input  */"
21306     cat "$ac_result"
21307   fi
21308   rm -f "$tmp/out12"
21309  ;;
21310
21311   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21312 echo "$as_me: executing $ac_file commands" >&6;}
21313  ;;
21314   esac
21315
21316
21317   case $ac_file$ac_mode in
21318     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21319    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21320     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21321    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21322     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21323    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21324     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21325    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21326     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21327    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21328     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21329    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21330     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21331    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21332     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21333    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21334     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21335    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21336     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21337    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21338     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21339    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21340     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21341    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21342     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21343    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21344
21345   esac
21346 done # for ac_tag
21347
21348
21349 { (exit 0); exit 0; }
21350 _ACEOF
21351 chmod +x $CONFIG_STATUS
21352 ac_clean_files=$ac_clean_files_save
21353
21354
21355 # configure is writing to config.log, and then calls config.status.
21356 # config.status does its own redirection, appending to config.log.
21357 # Unfortunately, on DOS this fails, as config.log is still kept open
21358 # by configure, so config.status won't be able to write to it; its
21359 # output is simply discarded.  So we exec the FD to /dev/null,
21360 # effectively closing config.log, so it can be properly (re)opened and
21361 # appended to by config.status.  When coming back to configure, we
21362 # need to make the FD available again.
21363 if test "$no_create" != yes; then
21364   ac_cs_success=:
21365   ac_config_status_args=
21366   test "$silent" = yes &&
21367     ac_config_status_args="$ac_config_status_args --quiet"
21368   exec 5>/dev/null
21369   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21370   exec 5>>config.log
21371   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21372   # would make configure fail if this is the last instruction.
21373   $ac_cs_success || { (exit 1); exit 1; }
21374 fi
21375
21376 #
21377 # CONFIG_SUBDIRS section.
21378 #
21379 if test "$no_recursion" != yes; then
21380
21381   # Remove --cache-file and --srcdir arguments so they do not pile up.
21382   ac_sub_configure_args=
21383   ac_prev=
21384   eval "set x $ac_configure_args"
21385   shift
21386   for ac_arg
21387   do
21388     if test -n "$ac_prev"; then
21389       ac_prev=
21390       continue
21391     fi
21392     case $ac_arg in
21393     -cache-file | --cache-file | --cache-fil | --cache-fi \
21394     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21395       ac_prev=cache_file ;;
21396     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21397     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21398     | --c=*)
21399       ;;
21400     --config-cache | -C)
21401       ;;
21402     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21403       ac_prev=srcdir ;;
21404     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21405       ;;
21406     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21407       ac_prev=prefix ;;
21408     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21409       ;;
21410     *)
21411       case $ac_arg in
21412       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21413       esac
21414       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21415     esac
21416   done
21417
21418   # Always prepend --prefix to ensure using the same prefix
21419   # in subdir configurations.
21420   ac_arg="--prefix=$prefix"
21421   case $ac_arg in
21422   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21423   esac
21424   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21425
21426   ac_popdir=`pwd`
21427   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21428
21429     # Do not complain, so a configure script can configure whichever
21430     # parts of a large source tree are present.
21431     test -d "$srcdir/$ac_dir" || continue
21432
21433     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21434     echo "$as_me:$LINENO: $ac_msg" >&5
21435     echo "$ac_msg" >&6
21436     { as_dir="$ac_dir"
21437   case $as_dir in #(
21438   -*) as_dir=./$as_dir;;
21439   esac
21440   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21441     as_dirs=
21442     while :; do
21443       case $as_dir in #(
21444       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21445       *) as_qdir=$as_dir;;
21446       esac
21447       as_dirs="'$as_qdir' $as_dirs"
21448       as_dir=`$as_dirname -- "$as_dir" ||
21449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21450          X"$as_dir" : 'X\(//\)[^/]' \| \
21451          X"$as_dir" : 'X\(//\)$' \| \
21452          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21453 echo X"$as_dir" |
21454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21455             s//\1/
21456             q
21457           }
21458           /^X\(\/\/\)[^/].*/{
21459             s//\1/
21460             q
21461           }
21462           /^X\(\/\/\)$/{
21463             s//\1/
21464             q
21465           }
21466           /^X\(\/\).*/{
21467             s//\1/
21468             q
21469           }
21470           s/.*/./; q'`
21471       test -d "$as_dir" && break
21472     done
21473     test -z "$as_dirs" || eval "mkdir $as_dirs"
21474   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21475 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21476    { (exit 1); exit 1; }; }; }
21477     ac_builddir=.
21478
21479 case "$ac_dir" in
21480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21481 *)
21482   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21483   # A ".." for each directory in $ac_dir_suffix.
21484   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21485   case $ac_top_builddir_sub in
21486   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21487   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21488   esac ;;
21489 esac
21490 ac_abs_top_builddir=$ac_pwd
21491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21492 # for backward compatibility:
21493 ac_top_builddir=$ac_top_build_prefix
21494
21495 case $srcdir in
21496   .)  # We are building in place.
21497     ac_srcdir=.
21498     ac_top_srcdir=$ac_top_builddir_sub
21499     ac_abs_top_srcdir=$ac_pwd ;;
21500   [\\/]* | ?:[\\/]* )  # Absolute name.
21501     ac_srcdir=$srcdir$ac_dir_suffix;
21502     ac_top_srcdir=$srcdir
21503     ac_abs_top_srcdir=$srcdir ;;
21504   *) # Relative name.
21505     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21506     ac_top_srcdir=$ac_top_build_prefix$srcdir
21507     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21508 esac
21509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21510
21511
21512     cd "$ac_dir"
21513
21514     # Check for guested configure; otherwise get Cygnus style configure.
21515     if test -f "$ac_srcdir/configure.gnu"; then
21516       ac_sub_configure=$ac_srcdir/configure.gnu
21517     elif test -f "$ac_srcdir/configure"; then
21518       ac_sub_configure=$ac_srcdir/configure
21519     elif test -f "$ac_srcdir/configure.in"; then
21520       # This should be Cygnus configure.
21521       ac_sub_configure=$ac_aux_dir/configure
21522     else
21523       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21525       ac_sub_configure=
21526     fi
21527
21528     # The recursion is here.
21529     if test -n "$ac_sub_configure"; then
21530       # Make the cache file name correct relative to the subdirectory.
21531       case $cache_file in
21532       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21533       *) # Relative name.
21534         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21535       esac
21536
21537       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21538 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21539       # The eval makes quoting arguments work.
21540       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21541            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21542         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21543 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21544    { (exit 1); exit 1; }; }
21545     fi
21546
21547     cd "$ac_popdir"
21548   done
21549 fi
21550