Try r96559 for the third time. This time the shared library is only built if
[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         Build a shared library and link tools against it
1408                           (default is NO)
1409   --enable-targets        Build specific host targets: all or
1410                           target1,target2,... Valid targets are: host, x86,
1411                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1412                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1413                           and cpp (default=all)
1414   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1415                           %a (default is YES)
1416   --enable-bindings       Build specific language bindings:
1417                           all,auto,none,{binding-name} (default=auto)
1418   --enable-libffi         Check for the presence of libffi (default is NO)
1419   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1420                           Win32)
1421   --enable-llvmc-dynamic-plugins
1422                           Enable dynamic LLVMC plugins (default is YES)
1423   --enable-ltdl-install   install libltdl
1424
1425 Optional Packages:
1426   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1429                           searches PATH)
1430   --with-llvmgcc          Specify location of llvm-gcc driver (default
1431                           searches PATH)
1432   --with-llvmgxx          Specify location of llvm-g++ driver (default
1433                           searches PATH)
1434   --with-clang            Specify location of clang compiler (default is
1435                           --with-built-clang)
1436   --with-built-clang      Use the compiled Clang as the LLVM compiler
1437                           (default=check)
1438   --with-optimize-option  Select the compiler options to use for optimized
1439                           builds
1440   --with-extra-options    Specify additional options to compile LLVM with
1441   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1442                           is stdlib)
1443   --with-c-include-dirs   Colon separated list of directories clang will
1444                           search for headers
1445   --with-cxx-include-root Directory with the libstdc++ headers.
1446   --with-cxx-include-arch Architecture of the libstdc++ headers.
1447   --with-cxx-include-32bit-dir
1448                           32 bit multilib dir.
1449   --with-cxx-include-64bit-dir
1450                           64 bit multilib directory.
1451   --with-binutils-include Specify path to binutils/include/ containing
1452                           plugin-api.h file for gold plugin.
1453   --with-tclinclude       directory where tcl headers are
1454   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1455                           clang, or none; default=check)
1456   --with-udis86=<path>    Use udis86 external x86 disassembler library
1457   --with-oprofile=<prefix>
1458                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1459
1460 Some influential environment variables:
1461   CC          C compiler command
1462   CFLAGS      C compiler flags
1463   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1464               nonstandard directory <lib dir>
1465   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1466               you have headers in a nonstandard directory <include dir>
1467   CPP         C preprocessor
1468   CXX         C++ compiler command
1469   CXXFLAGS    C++ compiler flags
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <llvmbugs@cs.uiuc.edu>.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480   # If there are subdirs, report their specific --help.
1481   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482     test -d "$ac_dir" || continue
1483     ac_builddir=.
1484
1485 case "$ac_dir" in
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *)
1488   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1489   # A ".." for each directory in $ac_dir_suffix.
1490   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1491   case $ac_top_builddir_sub in
1492   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494   esac ;;
1495 esac
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1500
1501 case $srcdir in
1502   .)  # We are building in place.
1503     ac_srcdir=.
1504     ac_top_srcdir=$ac_top_builddir_sub
1505     ac_abs_top_srcdir=$ac_pwd ;;
1506   [\\/]* | ?:[\\/]* )  # Absolute name.
1507     ac_srcdir=$srcdir$ac_dir_suffix;
1508     ac_top_srcdir=$srcdir
1509     ac_abs_top_srcdir=$srcdir ;;
1510   *) # Relative name.
1511     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512     ac_top_srcdir=$ac_top_build_prefix$srcdir
1513     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 esac
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517     cd "$ac_dir" || { ac_status=$?; continue; }
1518     # Check for guested configure.
1519     if test -f "$ac_srcdir/configure.gnu"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522     elif test -f "$ac_srcdir/configure"; then
1523       echo &&
1524       $SHELL "$ac_srcdir/configure" --help=recursive
1525     else
1526       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527     fi || ac_status=$?
1528     cd "$ac_pwd" || { ac_status=$?; break; }
1529   done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534   cat <<\_ACEOF
1535 llvm configure 2.7svn
1536 generated by GNU Autoconf 2.60
1537
1538 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1539 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542
1543 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1544 _ACEOF
1545   exit
1546 fi
1547 cat >config.log <<_ACEOF
1548 This file contains any messages produced by compilers while
1549 running configure, to aid debugging if configure makes a mistake.
1550
1551 It was created by llvm $as_me 2.7svn, which was
1552 generated by GNU Autoconf 2.60.  Invocation command line was
1553
1554   $ $0 $@
1555
1556 _ACEOF
1557 exec 5>>config.log
1558 {
1559 cat <<_ASUNAME
1560 ## --------- ##
1561 ## Platform. ##
1562 ## --------- ##
1563
1564 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569
1570 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1572
1573 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1574 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1575 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1576 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1577 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1578 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1579 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1580
1581 _ASUNAME
1582
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584 for as_dir in $PATH
1585 do
1586   IFS=$as_save_IFS
1587   test -z "$as_dir" && as_dir=.
1588   echo "PATH: $as_dir"
1589 done
1590 IFS=$as_save_IFS
1591
1592 } >&5
1593
1594 cat >&5 <<_ACEOF
1595
1596
1597 ## ----------- ##
1598 ## Core tests. ##
1599 ## ----------- ##
1600
1601 _ACEOF
1602
1603
1604 # Keep a trace of the command line.
1605 # Strip out --no-create and --no-recursion so they do not pile up.
1606 # Strip out --silent because we don't want to record it for future runs.
1607 # Also quote any args containing shell meta-characters.
1608 # Make two passes to allow for proper duplicate-argument suppression.
1609 ac_configure_args=
1610 ac_configure_args0=
1611 ac_configure_args1=
1612 ac_must_keep_next=false
1613 for ac_pass in 1 2
1614 do
1615   for ac_arg
1616   do
1617     case $ac_arg in
1618     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620     | -silent | --silent | --silen | --sile | --sil)
1621       continue ;;
1622     *\'*)
1623       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624     esac
1625     case $ac_pass in
1626     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627     2)
1628       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1629       if test $ac_must_keep_next = true; then
1630         ac_must_keep_next=false # Got value, back to normal.
1631       else
1632         case $ac_arg in
1633           *=* | --config-cache | -C | -disable-* | --disable-* \
1634           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636           | -with-* | --with-* | -without-* | --without-* | --x)
1637             case "$ac_configure_args0 " in
1638               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639             esac
1640             ;;
1641           -* ) ac_must_keep_next=true ;;
1642         esac
1643       fi
1644       ac_configure_args="$ac_configure_args '$ac_arg'"
1645       ;;
1646     esac
1647   done
1648 done
1649 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651
1652 # When interrupted or exit'd, cleanup temporary files, and complete
1653 # config.log.  We remove comments because anyway the quotes in there
1654 # would cause problems or look ugly.
1655 # WARNING: Use '\'' to represent an apostrophe within the trap.
1656 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1657 trap 'exit_status=$?
1658   # Save into config.log some information that might help in debugging.
1659   {
1660     echo
1661
1662     cat <<\_ASBOX
1663 ## ---------------- ##
1664 ## Cache variables. ##
1665 ## ---------------- ##
1666 _ASBOX
1667     echo
1668     # The following way of writing the cache mishandles newlines in values,
1669 (
1670   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671     eval ac_val=\$$ac_var
1672     case $ac_val in #(
1673     *${as_nl}*)
1674       case $ac_var in #(
1675       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1676 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677       esac
1678       case $ac_var in #(
1679       _ | IFS | as_nl) ;; #(
1680       *) $as_unset $ac_var ;;
1681       esac ;;
1682     esac
1683   done
1684   (set) 2>&1 |
1685     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686     *${as_nl}ac_space=\ *)
1687       sed -n \
1688         "s/'\''/'\''\\\\'\'''\''/g;
1689           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690       ;; #(
1691     *)
1692       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1693       ;;
1694     esac |
1695     sort
1696 )
1697     echo
1698
1699     cat <<\_ASBOX
1700 ## ----------------- ##
1701 ## Output variables. ##
1702 ## ----------------- ##
1703 _ASBOX
1704     echo
1705     for ac_var in $ac_subst_vars
1706     do
1707       eval ac_val=\$$ac_var
1708       case $ac_val in
1709       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710       esac
1711       echo "$ac_var='\''$ac_val'\''"
1712     done | sort
1713     echo
1714
1715     if test -n "$ac_subst_files"; then
1716       cat <<\_ASBOX
1717 ## ------------------- ##
1718 ## File substitutions. ##
1719 ## ------------------- ##
1720 _ASBOX
1721       echo
1722       for ac_var in $ac_subst_files
1723       do
1724         eval ac_val=\$$ac_var
1725         case $ac_val in
1726         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727         esac
1728         echo "$ac_var='\''$ac_val'\''"
1729       done | sort
1730       echo
1731     fi
1732
1733     if test -s confdefs.h; then
1734       cat <<\_ASBOX
1735 ## ----------- ##
1736 ## confdefs.h. ##
1737 ## ----------- ##
1738 _ASBOX
1739       echo
1740       cat confdefs.h
1741       echo
1742     fi
1743     test "$ac_signal" != 0 &&
1744       echo "$as_me: caught signal $ac_signal"
1745     echo "$as_me: exit $exit_status"
1746   } >&5
1747   rm -f core *.core core.conftest.* &&
1748     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749     exit $exit_status
1750 ' 0
1751 for ac_signal in 1 2 13 15; do
1752   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1753 done
1754 ac_signal=0
1755
1756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1757 rm -f -r conftest* confdefs.h
1758
1759 # Predefined preprocessor variables.
1760
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_NAME "$PACKAGE_NAME"
1763 _ACEOF
1764
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768 _ACEOF
1769
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1773 _ACEOF
1774
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_STRING "$PACKAGE_STRING"
1778 _ACEOF
1779
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 _ACEOF
1784
1785
1786 # Let the site file select an alternate cache file if it wants to.
1787 # Prefer explicitly selected file to automatically selected ones.
1788 if test -n "$CONFIG_SITE"; then
1789   set x "$CONFIG_SITE"
1790 elif test "x$prefix" != xNONE; then
1791   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1792 else
1793   set x "$ac_default_prefix/share/config.site" \
1794         "$ac_default_prefix/etc/config.site"
1795 fi
1796 shift
1797 for ac_site_file
1798 do
1799   if test -r "$ac_site_file"; then
1800     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1801 echo "$as_me: loading site script $ac_site_file" >&6;}
1802     sed 's/^/| /' "$ac_site_file" >&5
1803     . "$ac_site_file"
1804   fi
1805 done
1806
1807 if test -r "$cache_file"; then
1808   # Some versions of bash will fail to source /dev/null (special
1809   # files actually), so we avoid doing that.
1810   if test -f "$cache_file"; then
1811     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1812 echo "$as_me: loading cache $cache_file" >&6;}
1813     case $cache_file in
1814       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1815       *)                      . "./$cache_file";;
1816     esac
1817   fi
1818 else
1819   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1820 echo "$as_me: creating cache $cache_file" >&6;}
1821   >$cache_file
1822 fi
1823
1824 # Check that the precious variables saved in the cache have kept the same
1825 # value.
1826 ac_cache_corrupted=false
1827 for ac_var in $ac_precious_vars; do
1828   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1829   eval ac_new_set=\$ac_env_${ac_var}_set
1830   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1831   eval ac_new_val=\$ac_env_${ac_var}_value
1832   case $ac_old_set,$ac_new_set in
1833     set,)
1834       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1836       ac_cache_corrupted=: ;;
1837     ,set)
1838       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1840       ac_cache_corrupted=: ;;
1841     ,);;
1842     *)
1843       if test "x$ac_old_val" != "x$ac_new_val"; then
1844         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1845 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1846         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1847 echo "$as_me:   former value:  $ac_old_val" >&2;}
1848         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1849 echo "$as_me:   current value: $ac_new_val" >&2;}
1850         ac_cache_corrupted=:
1851       fi;;
1852   esac
1853   # Pass precious variables to config.status.
1854   if test "$ac_new_set" = set; then
1855     case $ac_new_val in
1856     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1857     *) ac_arg=$ac_var=$ac_new_val ;;
1858     esac
1859     case " $ac_configure_args " in
1860       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1861       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1862     esac
1863   fi
1864 done
1865 if $ac_cache_corrupted; then
1866   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1867 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1868   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1869 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1870    { (exit 1); exit 1; }; }
1871 fi
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
1897 ac_ext=c
1898 ac_cpp='$CPP $CPPFLAGS'
1899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902
1903
1904
1905 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1906
1907
1908
1909
1910
1911
1912
1913 ac_aux_dir=
1914 for ac_dir in autoconf "$srcdir"/autoconf; do
1915   if test -f "$ac_dir/install-sh"; then
1916     ac_aux_dir=$ac_dir
1917     ac_install_sh="$ac_aux_dir/install-sh -c"
1918     break
1919   elif test -f "$ac_dir/install.sh"; then
1920     ac_aux_dir=$ac_dir
1921     ac_install_sh="$ac_aux_dir/install.sh -c"
1922     break
1923   elif test -f "$ac_dir/shtool"; then
1924     ac_aux_dir=$ac_dir
1925     ac_install_sh="$ac_aux_dir/shtool install -c"
1926     break
1927   fi
1928 done
1929 if test -z "$ac_aux_dir"; then
1930   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1931 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1932    { (exit 1); exit 1; }; }
1933 fi
1934
1935 # These three variables are undocumented and unsupported,
1936 # and are intended to be withdrawn in a future Autoconf release.
1937 # They can cause serious problems if a builder's source tree is in a directory
1938 # whose full name contains unusual characters.
1939 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1940 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1941 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1942
1943
1944
1945 if test ${srcdir} != "." ; then
1946   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1947     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1948 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1949    { (exit 1); exit 1; }; }
1950   fi
1951 fi
1952
1953 for i in `ls ${srcdir}/projects`
1954 do
1955   if test -d ${srcdir}/projects/${i} ; then
1956     case ${i} in
1957       CVS) ;;
1958       sample)       subdirs="$subdirs projects/sample"
1959     ;;
1960       privbracket)  subdirs="$subdirs projects/privbracket"
1961  ;;
1962       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1963  ;;
1964       # llvm-test is the old name of the test-suite, kept here for backwards
1965       # compatibility
1966       llvm-test)    subdirs="$subdirs projects/llvm-test"
1967  ;;
1968       test-suite)   subdirs="$subdirs projects/test-suite"
1969  ;;
1970       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1971 ;;
1972       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
1973   ;;
1974       llvm-java)    subdirs="$subdirs projects/llvm-java"
1975  ;;
1976       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1977    ;;
1978       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1979  ;;
1980       poolalloc)    subdirs="$subdirs projects/poolalloc"
1981  ;;
1982       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
1983  ;;
1984       *)
1985         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1986 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1987         ;;
1988     esac
1989   fi
1990 done
1991
1992
1993 # Make sure we can run config.sub.
1994 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1995   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1996 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1997    { (exit 1); exit 1; }; }
1998
1999 { echo "$as_me:$LINENO: checking build system type" >&5
2000 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2001 if test "${ac_cv_build+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   ac_build_alias=$build_alias
2005 test "x$ac_build_alias" = x &&
2006   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2007 test "x$ac_build_alias" = x &&
2008   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2009 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2010    { (exit 1); exit 1; }; }
2011 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2012   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2013 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2014    { (exit 1); exit 1; }; }
2015
2016 fi
2017 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2018 echo "${ECHO_T}$ac_cv_build" >&6; }
2019 case $ac_cv_build in
2020 *-*-*) ;;
2021 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2022 echo "$as_me: error: invalid value of canonical build" >&2;}
2023    { (exit 1); exit 1; }; };;
2024 esac
2025 build=$ac_cv_build
2026 ac_save_IFS=$IFS; IFS='-'
2027 set x $ac_cv_build
2028 shift
2029 build_cpu=$1
2030 build_vendor=$2
2031 shift; shift
2032 # Remember, the first character of IFS is used to create $*,
2033 # except with old shells:
2034 build_os=$*
2035 IFS=$ac_save_IFS
2036 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2037
2038
2039 { echo "$as_me:$LINENO: checking host system type" >&5
2040 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2041 if test "${ac_cv_host+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test "x$host_alias" = x; then
2045   ac_cv_host=$ac_cv_build
2046 else
2047   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2048     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2049 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2050    { (exit 1); exit 1; }; }
2051 fi
2052
2053 fi
2054 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2055 echo "${ECHO_T}$ac_cv_host" >&6; }
2056 case $ac_cv_host in
2057 *-*-*) ;;
2058 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2059 echo "$as_me: error: invalid value of canonical host" >&2;}
2060    { (exit 1); exit 1; }; };;
2061 esac
2062 host=$ac_cv_host
2063 ac_save_IFS=$IFS; IFS='-'
2064 set x $ac_cv_host
2065 shift
2066 host_cpu=$1
2067 host_vendor=$2
2068 shift; shift
2069 # Remember, the first character of IFS is used to create $*,
2070 # except with old shells:
2071 host_os=$*
2072 IFS=$ac_save_IFS
2073 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2074
2075
2076 { echo "$as_me:$LINENO: checking target system type" >&5
2077 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2078 if test "${ac_cv_target+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   if test "x$target_alias" = x; then
2082   ac_cv_target=$ac_cv_host
2083 else
2084   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2085     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2086 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2087    { (exit 1); exit 1; }; }
2088 fi
2089
2090 fi
2091 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2092 echo "${ECHO_T}$ac_cv_target" >&6; }
2093 case $ac_cv_target in
2094 *-*-*) ;;
2095 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2096 echo "$as_me: error: invalid value of canonical target" >&2;}
2097    { (exit 1); exit 1; }; };;
2098 esac
2099 target=$ac_cv_target
2100 ac_save_IFS=$IFS; IFS='-'
2101 set x $ac_cv_target
2102 shift
2103 target_cpu=$1
2104 target_vendor=$2
2105 shift; shift
2106 # Remember, the first character of IFS is used to create $*,
2107 # except with old shells:
2108 target_os=$*
2109 IFS=$ac_save_IFS
2110 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2111
2112
2113 # The aliases save the names the user supplied, while $host etc.
2114 # will get canonicalized.
2115 test -n "$target_alias" &&
2116   test "$program_prefix$program_suffix$program_transform_name" = \
2117     NONENONEs,x,x, &&
2118   program_prefix=${target_alias}-
2119
2120 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2121 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2122 if test "${llvm_cv_os_type+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   case $host in
2126   *-*-aix*)
2127     llvm_cv_link_all_option="-Wl,--whole-archive"
2128     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2129     llvm_cv_os_type="AIX"
2130     llvm_cv_platform_type="Unix" ;;
2131   *-*-irix*)
2132     llvm_cv_link_all_option="-Wl,--whole-archive"
2133     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2134     llvm_cv_os_type="IRIX"
2135     llvm_cv_platform_type="Unix" ;;
2136   *-*-cygwin*)
2137     llvm_cv_link_all_option="-Wl,--whole-archive"
2138     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2139     llvm_cv_os_type="Cygwin"
2140     llvm_cv_platform_type="Unix" ;;
2141   *-*-darwin*)
2142     llvm_cv_link_all_option="-Wl,-all_load"
2143     llvm_cv_no_link_all_option="-Wl,-noall_load"
2144     llvm_cv_os_type="Darwin"
2145     llvm_cv_platform_type="Unix" ;;
2146   *-*-freebsd*)
2147     llvm_cv_link_all_option="-Wl,--whole-archive"
2148     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2149     llvm_cv_os_type="FreeBSD"
2150     llvm_cv_platform_type="Unix" ;;
2151   *-*-openbsd*)
2152     llvm_cv_link_all_option="-Wl,--whole-archive"
2153     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2154     llvm_cv_os_type="OpenBSD"
2155     llvm_cv_platform_type="Unix" ;;
2156   *-*-netbsd*)
2157     llvm_cv_link_all_option="-Wl,--whole-archive"
2158     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2159     llvm_cv_os_type="NetBSD"
2160     llvm_cv_platform_type="Unix" ;;
2161   *-*-dragonfly*)
2162     llvm_cv_link_all_option="-Wl,--whole-archive"
2163     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2164     llvm_cv_os_type="DragonFly"
2165     llvm_cv_platform_type="Unix" ;;
2166   *-*-hpux*)
2167     llvm_cv_link_all_option="-Wl,--whole-archive"
2168     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2169     llvm_cv_os_type="HP-UX"
2170     llvm_cv_platform_type="Unix" ;;
2171   *-*-interix*)
2172     llvm_cv_link_all_option="-Wl,--whole-archive"
2173     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2174     llvm_cv_os_type="Interix"
2175     llvm_cv_platform_type="Unix" ;;
2176   *-*-linux*)
2177     llvm_cv_link_all_option="-Wl,--whole-archive"
2178     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2179     llvm_cv_os_type="Linux"
2180     llvm_cv_platform_type="Unix" ;;
2181   *-*-solaris*)
2182     llvm_cv_link_all_option="-Wl,-z,allextract"
2183     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2184     llvm_cv_os_type="SunOS"
2185     llvm_cv_platform_type="Unix" ;;
2186   *-*-auroraux*)
2187     llvm_cv_link_all_option="-Wl,-z,allextract"
2188     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2189     llvm_cv_os_type="AuroraUX"
2190     llvm_cv_platform_type="Unix" ;;
2191   *-*-win32*)
2192     llvm_cv_link_all_option="-Wl,--whole-archive"
2193     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2194     llvm_cv_os_type="Win32"
2195     llvm_cv_platform_type="Win32" ;;
2196   *-*-mingw*)
2197     llvm_cv_link_all_option="-Wl,--whole-archive"
2198     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2199     llvm_cv_os_type="MingW"
2200     llvm_cv_platform_type="Win32" ;;
2201   *-*-haiku*)
2202     llvm_cv_link_all_option="-Wl,--whole-archive"
2203     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2204     llvm_cv_os_type="Haiku"
2205     llvm_cv_platform_type="Unix" ;;
2206   *-unknown-eabi*)
2207     llvm_cv_link_all_option="-Wl,--whole-archive"
2208     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2209     llvm_cv_os_type="Freestanding"
2210     llvm_cv_platform_type="Unix" ;;
2211   *-unknown-elf*)
2212     llvm_cv_link_all_option="-Wl,--whole-archive"
2213     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2214     llvm_cv_os_type="Freestanding"
2215     llvm_cv_platform_type="Unix" ;;
2216   *)
2217     llvm_cv_link_all_option=""
2218     llvm_cv_no_link_all_option=""
2219     llvm_cv_os_type="Unknown"
2220     llvm_cv_platform_type="Unknown" ;;
2221 esac
2222 fi
2223 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2224 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2225
2226 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2227 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2228 if test "${llvm_cv_target_os_type+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   case $target in
2232   *-*-aix*)
2233     llvm_cv_target_os_type="AIX" ;;
2234   *-*-irix*)
2235     llvm_cv_target_os_type="IRIX" ;;
2236   *-*-cygwin*)
2237     llvm_cv_target_os_type="Cygwin" ;;
2238   *-*-darwin*)
2239     llvm_cv_target_os_type="Darwin" ;;
2240   *-*-freebsd*)
2241     llvm_cv_target_os_type="FreeBSD" ;;
2242   *-*-openbsd*)
2243     llvm_cv_target_os_type="OpenBSD" ;;
2244   *-*-netbsd*)
2245     llvm_cv_target_os_type="NetBSD" ;;
2246   *-*-dragonfly*)
2247     llvm_cv_target_os_type="DragonFly" ;;
2248   *-*-hpux*)
2249     llvm_cv_target_os_type="HP-UX" ;;
2250   *-*-interix*)
2251     llvm_cv_target_os_type="Interix" ;;
2252   *-*-linux*)
2253     llvm_cv_target_os_type="Linux" ;;
2254   *-*-solaris*)
2255     llvm_cv_target_os_type="SunOS" ;;
2256   *-*-auroraux*)
2257     llvm_cv_target_os_type="AuroraUX" ;;
2258   *-*-win32*)
2259     llvm_cv_target_os_type="Win32" ;;
2260   *-*-mingw*)
2261     llvm_cv_target_os_type="MingW" ;;
2262   *-*-haiku*)
2263     llvm_cv_target_os_type="Haiku" ;;
2264   *-unknown-eabi*)
2265     llvm_cv_target_os_type="Freestanding" ;;
2266   *)
2267     llvm_cv_target_os_type="Unknown" ;;
2268 esac
2269 fi
2270 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2271 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2272
2273 if test "$llvm_cv_os_type" = "Unknown" ; then
2274   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2275 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2276    { (exit 1); exit 1; }; }
2277 fi
2278
2279 OS=$llvm_cv_os_type
2280
2281 HOST_OS=$llvm_cv_os_type
2282
2283 TARGET_OS=$llvm_cv_target_os_type
2284
2285
2286 LINKALL=$llvm_cv_link_all_option
2287
2288 NOLINKALL=$llvm_cv_no_link_all_option
2289
2290
2291 case $llvm_cv_platform_type in
2292   Unix)
2293
2294 cat >>confdefs.h <<\_ACEOF
2295 #define LLVM_ON_UNIX 1
2296 _ACEOF
2297
2298     LLVM_ON_UNIX=1
2299
2300     LLVM_ON_WIN32=0
2301
2302     ;;
2303   Win32)
2304
2305 cat >>confdefs.h <<\_ACEOF
2306 #define LLVM_ON_WIN32 1
2307 _ACEOF
2308
2309     LLVM_ON_UNIX=0
2310
2311     LLVM_ON_WIN32=1
2312
2313     ;;
2314 esac
2315
2316 { echo "$as_me:$LINENO: checking target architecture" >&5
2317 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2318 if test "${llvm_cv_target_arch+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   case $target in
2322   i?86-*)                 llvm_cv_target_arch="x86" ;;
2323   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2324   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2325   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2326   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2327   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2328   mips-*)                 llvm_cv_target_arch="Mips" ;;
2329   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2330   xcore-*)                llvm_cv_target_arch="XCore" ;;
2331   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2332   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2333   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2334   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2335   *)                      llvm_cv_target_arch="Unknown" ;;
2336 esac
2337 fi
2338 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2339 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2340
2341 if test "$llvm_cv_target_arch" = "Unknown" ; then
2342   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2343 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2344 fi
2345
2346 # Determine the LLVM native architecture for the target
2347 case "$llvm_cv_target_arch" in
2348     x86)     LLVM_NATIVE_ARCH="X86" ;;
2349     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2350     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2351 esac
2352
2353 ARCH=$llvm_cv_target_arch
2354
2355
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 if test -n "$ac_tool_prefix"; then
2362   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   if test -n "$CC"; then
2370   ac_cv_prog_CC="$CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377   for ac_exec_ext in '' $ac_executable_extensions; do
2378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2379     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391   { echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6; }
2393 else
2394   { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2396 fi
2397
2398
2399 fi
2400 if test -z "$ac_cv_prog_CC"; then
2401   ac_ct_CC=$CC
2402   # Extract the first word of "gcc", so it can be a program name with args.
2403 set dummy gcc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   if test -n "$ac_ct_CC"; then
2410   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415   IFS=$as_save_IFS
2416   test -z "$as_dir" && as_dir=.
2417   for ac_exec_ext in '' $ac_executable_extensions; do
2418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2419     ac_cv_prog_ac_ct_CC="gcc"
2420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421     break 2
2422   fi
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430 if test -n "$ac_ct_CC"; then
2431   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2432 echo "${ECHO_T}$ac_ct_CC" >&6; }
2433 else
2434   { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2436 fi
2437
2438   if test "x$ac_ct_CC" = x; then
2439     CC=""
2440   else
2441     case $cross_compiling:$ac_tool_warned in
2442 yes:)
2443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet.  If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&5
2446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet.  If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2449 ac_tool_warned=yes ;;
2450 esac
2451     CC=$ac_ct_CC
2452   fi
2453 else
2454   CC="$ac_cv_prog_CC"
2455 fi
2456
2457 if test -z "$CC"; then
2458           if test -n "$ac_tool_prefix"; then
2459     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test -n "$CC"; then
2467   ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474   for ac_exec_ext in '' $ac_executable_extensions; do
2475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2476     ac_cv_prog_CC="${ac_tool_prefix}cc"
2477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488   { echo "$as_me:$LINENO: result: $CC" >&5
2489 echo "${ECHO_T}$CC" >&6; }
2490 else
2491   { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2493 fi
2494
2495
2496   fi
2497 fi
2498 if test -z "$CC"; then
2499   # Extract the first word of "cc", so it can be a program name with args.
2500 set dummy cc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$CC"; then
2507   ac_cv_prog_CC="$CC" # Let the user override the test.
2508 else
2509   ac_prog_rejected=no
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2512 do
2513   IFS=$as_save_IFS
2514   test -z "$as_dir" && as_dir=.
2515   for ac_exec_ext in '' $ac_executable_extensions; do
2516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518        ac_prog_rejected=yes
2519        continue
2520      fi
2521     ac_cv_prog_CC="cc"
2522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523     break 2
2524   fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 if test $ac_prog_rejected = yes; then
2530   # We found a bogon in the path, so make sure we never use it.
2531   set dummy $ac_cv_prog_CC
2532   shift
2533   if test $# != 0; then
2534     # We chose a different compiler from the bogus one.
2535     # However, it has the same basename, so the bogon will be chosen
2536     # first if we set CC to just the basename; use the full file name.
2537     shift
2538     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2539   fi
2540 fi
2541 fi
2542 fi
2543 CC=$ac_cv_prog_CC
2544 if test -n "$CC"; then
2545   { echo "$as_me:$LINENO: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6; }
2547 else
2548   { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2550 fi
2551
2552
2553 fi
2554 if test -z "$CC"; then
2555   if test -n "$ac_tool_prefix"; then
2556   for ac_prog in cl.exe
2557   do
2558     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   if test -n "$CC"; then
2566   ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571   IFS=$as_save_IFS
2572   test -z "$as_dir" && as_dir=.
2573   for ac_exec_ext in '' $ac_executable_extensions; do
2574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2575     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577     break 2
2578   fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587   { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2589 else
2590   { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2592 fi
2593
2594
2595     test -n "$CC" && break
2596   done
2597 fi
2598 if test -z "$CC"; then
2599   ac_ct_CC=$CC
2600   for ac_prog in cl.exe
2601 do
2602   # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   if test -n "$ac_ct_CC"; then
2610   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617   for ac_exec_ext in '' $ac_executable_extensions; do
2618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2619     ac_cv_prog_ac_ct_CC="$ac_prog"
2620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632 echo "${ECHO_T}$ac_ct_CC" >&6; }
2633 else
2634   { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2636 fi
2637
2638
2639   test -n "$ac_ct_CC" && break
2640 done
2641
2642   if test "x$ac_ct_CC" = x; then
2643     CC=""
2644   else
2645     case $cross_compiling:$ac_tool_warned in
2646 yes:)
2647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet.  If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&5
2650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet.  If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2653 ac_tool_warned=yes ;;
2654 esac
2655     CC=$ac_ct_CC
2656   fi
2657 fi
2658
2659 fi
2660
2661
2662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&2;}
2666    { (exit 1); exit 1; }; }
2667
2668 # Provide some information about the compiler.
2669 echo "$as_me:$LINENO: checking for C compiler version" >&5
2670 ac_compiler=`set X $ac_compile; echo $2`
2671 { (ac_try="$ac_compiler --version >&5"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_compiler --version >&5") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }
2681 { (ac_try="$ac_compiler -v >&5"
2682 case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687   (eval "$ac_compiler -v >&5") 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }
2691 { (ac_try="$ac_compiler -V >&5"
2692 case "(($ac_try" in
2693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694   *) ac_try_echo=$ac_try;;
2695 esac
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697   (eval "$ac_compiler -V >&5") 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }
2701
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708
2709 int
2710 main ()
2711 {
2712
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 ac_clean_files_save=$ac_clean_files
2718 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2719 # Try to create an executable without -o first, disregard a.out.
2720 # It will help us diagnose broken compilers, and finding out an intuition
2721 # of exeext.
2722 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2723 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2724 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2725 #
2726 # List of possible output files, starting from the most likely.
2727 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2728 # only as a last resort.  b.out is created by i960 compilers.
2729 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2730 #
2731 # The IRIX 6 linker writes into existing files which may not be
2732 # executable, retaining their permissions.  Remove them first so a
2733 # subsequent execution test works.
2734 ac_rmfiles=
2735 for ac_file in $ac_files
2736 do
2737   case $ac_file in
2738     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2739     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2740   esac
2741 done
2742 rm -f $ac_rmfiles
2743
2744 if { (ac_try="$ac_link_default"
2745 case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_link_default") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; then
2754   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2757 # so that the user can short-circuit this test for compilers unknown to
2758 # Autoconf.
2759 for ac_file in $ac_files
2760 do
2761   test -f "$ac_file" || continue
2762   case $ac_file in
2763     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2764         ;;
2765     [ab].out )
2766         # We found the default executable, but exeext='' is most
2767         # certainly right.
2768         break;;
2769     *.* )
2770         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2771         then :; else
2772            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773         fi
2774         # We set ac_cv_exeext here because the later test for it is not
2775         # safe: cross compilers may not add the suffix if given an `-o'
2776         # argument, so we may need to know it at that point already.
2777         # Even if this section looks crufty: it has the advantage of
2778         # actually working.
2779         break;;
2780     * )
2781         break;;
2782   esac
2783 done
2784 test "$ac_cv_exeext" = no && ac_cv_exeext=
2785
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794    { (exit 77); exit 77; }; }
2795 fi
2796
2797 ac_exeext=$ac_cv_exeext
2798 { echo "$as_me:$LINENO: result: $ac_file" >&5
2799 echo "${ECHO_T}$ac_file" >&6; }
2800
2801 # Check that the compiler produces executables we can run.  If not, either
2802 # the compiler is broken, or we cross compile.
2803 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2804 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2805 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2806 # If not cross compiling, check that we can run a simple program.
2807 if test "$cross_compiling" != yes; then
2808   if { ac_try='./$ac_file'
2809   { (case "(($ac_try" in
2810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811   *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814   (eval "$ac_try") 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; }; then
2818     cross_compiling=no
2819   else
2820     if test "$cross_compiling" = maybe; then
2821         cross_compiling=yes
2822     else
2823         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2824 If you meant to cross compile, use \`--host'.
2825 See \`config.log' for more details." >&5
2826 echo "$as_me: error: cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details." >&2;}
2829    { (exit 1); exit 1; }; }
2830     fi
2831   fi
2832 fi
2833 { echo "$as_me:$LINENO: result: yes" >&5
2834 echo "${ECHO_T}yes" >&6; }
2835
2836 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2837 ac_clean_files=$ac_clean_files_save
2838 # Check that the compiler produces executables we can run.  If not, either
2839 # the compiler is broken, or we cross compile.
2840 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2841 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2842 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2843 echo "${ECHO_T}$cross_compiling" >&6; }
2844
2845 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2846 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2847 if { (ac_try="$ac_link"
2848 case "(($ac_try" in
2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850   *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853   (eval "$ac_link") 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; then
2857   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2858 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2859 # work properly (i.e., refer to `conftest.exe'), while it won't with
2860 # `rm'.
2861 for ac_file in conftest.exe conftest conftest.*; do
2862   test -f "$ac_file" || continue
2863   case $ac_file in
2864     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2865     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866           break;;
2867     * ) break;;
2868   esac
2869 done
2870 else
2871   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2874 See \`config.log' for more details." >&2;}
2875    { (exit 1); exit 1; }; }
2876 fi
2877
2878 rm -f conftest$ac_cv_exeext
2879 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2880 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2881
2882 rm -f conftest.$ac_ext
2883 EXEEXT=$ac_cv_exeext
2884 ac_exeext=$EXEEXT
2885 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2886 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2887 if test "${ac_cv_objext+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896
2897 int
2898 main ()
2899 {
2900
2901   ;
2902   return 0;
2903 }
2904 _ACEOF
2905 rm -f conftest.o conftest.obj
2906 if { (ac_try="$ac_compile"
2907 case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_compile") 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; then
2916   for ac_file in conftest.o conftest.obj conftest.*; do
2917   test -f "$ac_file" || continue;
2918   case $ac_file in
2919     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2920     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2921        break;;
2922   esac
2923 done
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&5
2930 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2931 See \`config.log' for more details." >&2;}
2932    { (exit 1); exit 1; }; }
2933 fi
2934
2935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2936 fi
2937 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2938 echo "${ECHO_T}$ac_cv_objext" >&6; }
2939 OBJEXT=$ac_cv_objext
2940 ac_objext=$OBJEXT
2941 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2942 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2943 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952
2953 int
2954 main ()
2955 {
2956 #ifndef __GNUC__
2957        choke me
2958 #endif
2959
2960   ;
2961   return 0;
2962 }
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2966 case "(($ac_try" in
2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968   *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971   (eval "$ac_compile") 2>conftest.er1
2972   ac_status=$?
2973   grep -v '^ *+' conftest.er1 >conftest.err
2974   rm -f conftest.er1
2975   cat conftest.err >&5
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); } &&
2978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2979   { (case "(($ac_try" in
2980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981   *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984   (eval "$ac_try") 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; } &&
2988          { ac_try='test -s conftest.$ac_objext'
2989   { (case "(($ac_try" in
2990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991   *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994   (eval "$ac_try") 2>&5
2995   ac_status=$?
2996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997   (exit $ac_status); }; }; then
2998   ac_compiler_gnu=yes
2999 else
3000   echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003         ac_compiler_gnu=no
3004 fi
3005
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3008
3009 fi
3010 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3012 GCC=`test $ac_compiler_gnu = yes && echo yes`
3013 ac_test_CFLAGS=${CFLAGS+set}
3014 ac_save_CFLAGS=$CFLAGS
3015 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3016 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3017 if test "${ac_cv_prog_cc_g+set}" = set; then
3018   echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020   ac_save_c_werror_flag=$ac_c_werror_flag
3021    ac_c_werror_flag=yes
3022    ac_cv_prog_cc_g=no
3023    CFLAGS="-g"
3024    cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } &&
3053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3054   { (case "(($ac_try" in
3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056   *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059   (eval "$ac_try") 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; } &&
3063          { ac_try='test -s conftest.$ac_objext'
3064   { (case "(($ac_try" in
3065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066   *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069   (eval "$ac_try") 2>&5
3070   ac_status=$?
3071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072   (exit $ac_status); }; }; then
3073   ac_cv_prog_cc_g=yes
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078         CFLAGS=""
3079       cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_compile") 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109   { (case "(($ac_try" in
3110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111   *) ac_try_echo=$ac_try;;
3112 esac
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114   (eval "$ac_try") 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); }; } &&
3118          { ac_try='test -s conftest.$ac_objext'
3119   { (case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_try") 2>&5
3125   ac_status=$?
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; }; then
3128   :
3129 else
3130   echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3132
3133         ac_c_werror_flag=$ac_save_c_werror_flag
3134          CFLAGS="-g"
3135          cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3141
3142 int
3143 main ()
3144 {
3145
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3152 case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_compile") 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
3161   cat conftest.err >&5
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); } &&
3164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165   { (case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_try") 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; } &&
3174          { ac_try='test -s conftest.$ac_objext'
3175   { (case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180   (eval "$ac_try") 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   ac_cv_prog_cc_g=yes
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199    ac_c_werror_flag=$ac_save_c_werror_flag
3200 fi
3201 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3203 if test "$ac_test_CFLAGS" = set; then
3204   CFLAGS=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206   if test "$GCC" = yes; then
3207     CFLAGS="-g -O2"
3208   else
3209     CFLAGS="-g"
3210   fi
3211 else
3212   if test "$GCC" = yes; then
3213     CFLAGS="-O2"
3214   else
3215     CFLAGS=
3216   fi
3217 fi
3218 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3219 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3220 if test "${ac_cv_prog_cc_c89+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   ac_cv_prog_cc_c89=no
3224 ac_save_CC=$CC
3225 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h.  */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h.  */
3231 #include <stdarg.h>
3232 #include <stdio.h>
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3239      char **p;
3240      int i;
3241 {
3242   return p[i];
3243 }
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3245 {
3246   char *s;
3247   va_list v;
3248   va_start (v,p);
3249   s = g (p, va_arg (v,int));
3250   va_end (v);
3251   return s;
3252 }
3253
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3255    function prototypes and stuff, but not '\xHH' hex character constants.
3256    These don't provoke an error unfortunately, instead are silently treated
3257    as 'x'.  The following induces an error, until -std is added to get
3258    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3259    array size at least.  It's necessary to write '\x00'==0 to get something
3260    that's true only with -std.  */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264    inside strings and character constants.  */
3265 #define FOO(x) 'x'
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 int argc;
3273 char **argv;
3274 int
3275 main ()
3276 {
3277 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3284 do
3285   CC="$ac_save_CC $ac_arg"
3286   rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_compile") 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } &&
3300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301   { (case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306   (eval "$ac_try") 2>&5
3307   ac_status=$?
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); }; } &&
3310          { ac_try='test -s conftest.$ac_objext'
3311   { (case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316   (eval "$ac_try") 2>&5
3317   ac_status=$?
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); }; }; then
3320   ac_cv_prog_cc_c89=$ac_arg
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325
3326 fi
3327
3328 rm -f core conftest.err conftest.$ac_objext
3329   test "x$ac_cv_prog_cc_c89" != "xno" && break
3330 done
3331 rm -f conftest.$ac_ext
3332 CC=$ac_save_CC
3333
3334 fi
3335 # AC_CACHE_VAL
3336 case "x$ac_cv_prog_cc_c89" in
3337   x)
3338     { echo "$as_me:$LINENO: result: none needed" >&5
3339 echo "${ECHO_T}none needed" >&6; } ;;
3340   xno)
3341     { echo "$as_me:$LINENO: result: unsupported" >&5
3342 echo "${ECHO_T}unsupported" >&6; } ;;
3343   *)
3344     CC="$CC $ac_cv_prog_cc_c89"
3345     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3347 esac
3348
3349
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355
3356
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3363 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3364 # On Suns, sometimes $CPP names a directory.
3365 if test -n "$CPP" && test -d "$CPP"; then
3366   CPP=
3367 fi
3368 if test -z "$CPP"; then
3369   if test "${ac_cv_prog_CPP+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372       # Double quotes because CPP needs to be expanded
3373     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3374     do
3375       ac_preproc_ok=false
3376 for ac_c_preproc_warn_flag in '' yes
3377 do
3378   # Use a header file that comes with gcc, so configuring glibc
3379   # with a fresh cross-compiler works.
3380   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381   # <limits.h> exists even on freestanding compilers.
3382   # On the NeXT, cc -E runs the code through the compiler's parser,
3383   # not just through cpp. "Syntax error" is here to catch this case.
3384   cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390 #ifdef __STDC__
3391 # include <limits.h>
3392 #else
3393 # include <assert.h>
3394 #endif
3395                      Syntax error
3396 _ACEOF
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } >/dev/null; then
3410   if test -s conftest.err; then
3411     ac_cpp_err=$ac_c_preproc_warn_flag
3412     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413   else
3414     ac_cpp_err=
3415   fi
3416 else
3417   ac_cpp_err=yes
3418 fi
3419 if test -z "$ac_cpp_err"; then
3420   :
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425   # Broken: fails on valid input.
3426 continue
3427 fi
3428
3429 rm -f conftest.err conftest.$ac_ext
3430
3431   # OK, works on sane cases.  Now check whether nonexistent headers
3432   # can be detected and how.
3433   cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h.  */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h.  */
3439 #include <ac_nonexistent.h>
3440 _ACEOF
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3442 case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3448   ac_status=$?
3449   grep -v '^ *+' conftest.er1 >conftest.err
3450   rm -f conftest.er1
3451   cat conftest.err >&5
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); } >/dev/null; then
3454   if test -s conftest.err; then
3455     ac_cpp_err=$ac_c_preproc_warn_flag
3456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3457   else
3458     ac_cpp_err=
3459   fi
3460 else
3461   ac_cpp_err=yes
3462 fi
3463 if test -z "$ac_cpp_err"; then
3464   # Broken: success on invalid input.
3465 continue
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470   # Passes both tests.
3471 ac_preproc_ok=:
3472 break
3473 fi
3474
3475 rm -f conftest.err conftest.$ac_ext
3476
3477 done
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3481   break
3482 fi
3483
3484     done
3485     ac_cv_prog_CPP=$CPP
3486
3487 fi
3488   CPP=$ac_cv_prog_CPP
3489 else
3490   ac_cv_prog_CPP=$CPP
3491 fi
3492 { echo "$as_me:$LINENO: result: $CPP" >&5
3493 echo "${ECHO_T}$CPP" >&6; }
3494 ac_preproc_ok=false
3495 for ac_c_preproc_warn_flag in '' yes
3496 do
3497   # Use a header file that comes with gcc, so configuring glibc
3498   # with a fresh cross-compiler works.
3499   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500   # <limits.h> exists even on freestanding compilers.
3501   # On the NeXT, cc -E runs the code through the compiler's parser,
3502   # not just through cpp. "Syntax error" is here to catch this case.
3503   cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509 #ifdef __STDC__
3510 # include <limits.h>
3511 #else
3512 # include <assert.h>
3513 #endif
3514                      Syntax error
3515 _ACEOF
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523   ac_status=$?
3524   grep -v '^ *+' conftest.er1 >conftest.err
3525   rm -f conftest.er1
3526   cat conftest.err >&5
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); } >/dev/null; then
3529   if test -s conftest.err; then
3530     ac_cpp_err=$ac_c_preproc_warn_flag
3531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3532   else
3533     ac_cpp_err=
3534   fi
3535 else
3536   ac_cpp_err=yes
3537 fi
3538 if test -z "$ac_cpp_err"; then
3539   :
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544   # Broken: fails on valid input.
3545 continue
3546 fi
3547
3548 rm -f conftest.err conftest.$ac_ext
3549
3550   # OK, works on sane cases.  Now check whether nonexistent headers
3551   # can be detected and how.
3552   cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h.  */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h.  */
3558 #include <ac_nonexistent.h>
3559 _ACEOF
3560 if { (ac_try="$ac_cpp conftest.$ac_ext"
3561 case "(($ac_try" in
3562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563   *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3567   ac_status=$?
3568   grep -v '^ *+' conftest.er1 >conftest.err
3569   rm -f conftest.er1
3570   cat conftest.err >&5
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); } >/dev/null; then
3573   if test -s conftest.err; then
3574     ac_cpp_err=$ac_c_preproc_warn_flag
3575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576   else
3577     ac_cpp_err=
3578   fi
3579 else
3580   ac_cpp_err=yes
3581 fi
3582 if test -z "$ac_cpp_err"; then
3583   # Broken: success on invalid input.
3584 continue
3585 else
3586   echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589   # Passes both tests.
3590 ac_preproc_ok=:
3591 break
3592 fi
3593
3594 rm -f conftest.err conftest.$ac_ext
3595
3596 done
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.$ac_ext
3599 if $ac_preproc_ok; then
3600   :
3601 else
3602   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605 See \`config.log' for more details." >&2;}
3606    { (exit 1); exit 1; }; }
3607 fi
3608
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615
3616 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3617 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3618 if test "${ac_cv_path_GREP+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   # Extract the first word of "grep ggrep" to use in msg output
3622 if test -z "$GREP"; then
3623 set dummy grep ggrep; ac_prog_name=$2
3624 if test "${ac_cv_path_GREP+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   ac_path_GREP_found=false
3628 # Loop through the user's path and test for each of PROGNAME-LIST
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3631 do
3632   IFS=$as_save_IFS
3633   test -z "$as_dir" && as_dir=.
3634   for ac_prog in grep ggrep; do
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3638     # Check for GNU ac_path_GREP and select it if it is found.
3639   # Check for GNU $ac_path_GREP
3640 case `"$ac_path_GREP" --version 2>&1` in
3641 *GNU*)
3642   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643 *)
3644   ac_count=0
3645   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3646   while :
3647   do
3648     cat "conftest.in" "conftest.in" >"conftest.tmp"
3649     mv "conftest.tmp" "conftest.in"
3650     cp "conftest.in" "conftest.nl"
3651     echo 'GREP' >> "conftest.nl"
3652     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3654     ac_count=`expr $ac_count + 1`
3655     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656       # Best one so far, save it but keep looking for a better one
3657       ac_cv_path_GREP="$ac_path_GREP"
3658       ac_path_GREP_max=$ac_count
3659     fi
3660     # 10*(2^10) chars as input seems more than enough
3661     test $ac_count -gt 10 && break
3662   done
3663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664 esac
3665
3666
3667     $ac_path_GREP_found && break 3
3668   done
3669 done
3670
3671 done
3672 IFS=$as_save_IFS
3673
3674
3675 fi
3676
3677 GREP="$ac_cv_path_GREP"
3678 if test -z "$GREP"; then
3679   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3680 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3681    { (exit 1); exit 1; }; }
3682 fi
3683
3684 else
3685   ac_cv_path_GREP=$GREP
3686 fi
3687
3688
3689 fi
3690 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3691 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3692  GREP="$ac_cv_path_GREP"
3693
3694
3695 { echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3697 if test "${ac_cv_path_EGREP+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701    then ac_cv_path_EGREP="$GREP -E"
3702    else
3703      # Extract the first word of "egrep" to use in msg output
3704 if test -z "$EGREP"; then
3705 set dummy egrep; ac_prog_name=$2
3706 if test "${ac_cv_path_EGREP+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   ac_path_EGREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716   for ac_prog in egrep; do
3717   for ac_exec_ext in '' $ac_executable_extensions; do
3718     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3720     # Check for GNU ac_path_EGREP and select it if it is found.
3721   # Check for GNU $ac_path_EGREP
3722 case `"$ac_path_EGREP" --version 2>&1` in
3723 *GNU*)
3724   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3725 *)
3726   ac_count=0
3727   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728   while :
3729   do
3730     cat "conftest.in" "conftest.in" >"conftest.tmp"
3731     mv "conftest.tmp" "conftest.in"
3732     cp "conftest.in" "conftest.nl"
3733     echo 'EGREP' >> "conftest.nl"
3734     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736     ac_count=`expr $ac_count + 1`
3737     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738       # Best one so far, save it but keep looking for a better one
3739       ac_cv_path_EGREP="$ac_path_EGREP"
3740       ac_path_EGREP_max=$ac_count
3741     fi
3742     # 10*(2^10) chars as input seems more than enough
3743     test $ac_count -gt 10 && break
3744   done
3745   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746 esac
3747
3748
3749     $ac_path_EGREP_found && break 3
3750   done
3751 done
3752
3753 done
3754 IFS=$as_save_IFS
3755
3756
3757 fi
3758
3759 EGREP="$ac_cv_path_EGREP"
3760 if test -z "$EGREP"; then
3761   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763    { (exit 1); exit 1; }; }
3764 fi
3765
3766 else
3767   ac_cv_path_EGREP=$EGREP
3768 fi
3769
3770
3771    fi
3772 fi
3773 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3774 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3775  EGREP="$ac_cv_path_EGREP"
3776
3777
3778 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3780 if test "${ac_cv_header_stdc+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789 #include <stdlib.h>
3790 #include <stdarg.h>
3791 #include <string.h>
3792 #include <float.h>
3793
3794 int
3795 main ()
3796 {
3797
3798   ;
3799   return 0;
3800 }
3801 _ACEOF
3802 rm -f conftest.$ac_objext
3803 if { (ac_try="$ac_compile"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809   (eval "$ac_compile") 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } &&
3816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3817   { (case "(($ac_try" in
3818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819   *) ac_try_echo=$ac_try;;
3820 esac
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822   (eval "$ac_try") 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }; } &&
3826          { ac_try='test -s conftest.$ac_objext'
3827   { (case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832   (eval "$ac_try") 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }; }; then
3836   ac_cv_header_stdc=yes
3837 else
3838   echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841         ac_cv_header_stdc=no
3842 fi
3843
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845
3846 if test $ac_cv_header_stdc = yes; then
3847   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3848   cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854 #include <string.h>
3855
3856 _ACEOF
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858   $EGREP "memchr" >/dev/null 2>&1; then
3859   :
3860 else
3861   ac_cv_header_stdc=no
3862 fi
3863 rm -f conftest*
3864
3865 fi
3866
3867 if test $ac_cv_header_stdc = yes; then
3868   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3869   cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875 #include <stdlib.h>
3876
3877 _ACEOF
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879   $EGREP "free" >/dev/null 2>&1; then
3880   :
3881 else
3882   ac_cv_header_stdc=no
3883 fi
3884 rm -f conftest*
3885
3886 fi
3887
3888 if test $ac_cv_header_stdc = yes; then
3889   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3890   if test "$cross_compiling" = yes; then
3891   :
3892 else
3893   cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h.  */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h.  */
3899 #include <ctype.h>
3900 #include <stdlib.h>
3901 #if ((' ' & 0x0FF) == 0x020)
3902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3904 #else
3905 # define ISLOWER(c) \
3906                    (('a' <= (c) && (c) <= 'i') \
3907                      || ('j' <= (c) && (c) <= 'r') \
3908                      || ('s' <= (c) && (c) <= 'z'))
3909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3910 #endif
3911
3912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3913 int
3914 main ()
3915 {
3916   int i;
3917   for (i = 0; i < 256; i++)
3918     if (XOR (islower (i), ISLOWER (i))
3919         || toupper (i) != TOUPPER (i))
3920       return 2;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest$ac_exeext
3925 if { (ac_try="$ac_link"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_link") 2>&5
3932   ac_status=$?
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3935   { (case "(($ac_try" in
3936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937   *) ac_try_echo=$ac_try;;
3938 esac
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940   (eval "$ac_try") 2>&5
3941   ac_status=$?
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); }; }; then
3944   :
3945 else
3946   echo "$as_me: program exited with status $ac_status" >&5
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 ( exit $ac_status )
3951 ac_cv_header_stdc=no
3952 fi
3953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3954 fi
3955
3956
3957 fi
3958 fi
3959 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3960 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3961 if test $ac_cv_header_stdc = yes; then
3962
3963 cat >>confdefs.h <<\_ACEOF
3964 #define STDC_HEADERS 1
3965 _ACEOF
3966
3967 fi
3968
3969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3980                   inttypes.h stdint.h unistd.h
3981 do
3982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994 $ac_includes_default
3995
3996 #include <$ac_header>
3997 _ACEOF
3998 rm -f conftest.$ac_objext
3999 if { (ac_try="$ac_compile"
4000 case "(($ac_try" in
4001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002   *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005   (eval "$ac_compile") 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } &&
4012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4013   { (case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018   (eval "$ac_try") 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); }; } &&
4022          { ac_try='test -s conftest.$ac_objext'
4023   { (case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028   (eval "$ac_try") 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; }; then
4032   eval "$as_ac_Header=yes"
4033 else
4034   echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037         eval "$as_ac_Header=no"
4038 fi
4039
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 fi
4042 ac_res=`eval echo '${'$as_ac_Header'}'`
4043                { echo "$as_me:$LINENO: result: $ac_res" >&5
4044 echo "${ECHO_T}$ac_res" >&6; }
4045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4046   cat >>confdefs.h <<_ACEOF
4047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4048 _ACEOF
4049
4050 fi
4051
4052 done
4053
4054
4055 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4056 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4057 if test "${ac_cv_c_bigendian+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   # See if sys/param.h defines the BYTE_ORDER macro.
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h.  */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h.  */
4067 #include <sys/types.h>
4068 #include <sys/param.h>
4069
4070 int
4071 main ()
4072 {
4073 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4074  bogus endian macros
4075 #endif
4076
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088   (eval "$ac_compile") 2>conftest.er1
4089   ac_status=$?
4090   grep -v '^ *+' conftest.er1 >conftest.err
4091   rm -f conftest.er1
4092   cat conftest.err >&5
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } &&
4095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4096   { (case "(($ac_try" in
4097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098   *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101   (eval "$ac_try") 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); }; } &&
4105          { ac_try='test -s conftest.$ac_objext'
4106   { (case "(($ac_try" in
4107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108   *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111   (eval "$ac_try") 2>&5
4112   ac_status=$?
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); }; }; then
4115   # It does; now see whether it defined to BIG_ENDIAN or not.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <sys/types.h>
4123 #include <sys/param.h>
4124
4125 int
4126 main ()
4127 {
4128 #if BYTE_ORDER != BIG_ENDIAN
4129  not big endian
4130 #endif
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4138 case "(($ac_try" in
4139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140   *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143   (eval "$ac_compile") 2>conftest.er1
4144   ac_status=$?
4145   grep -v '^ *+' conftest.er1 >conftest.err
4146   rm -f conftest.er1
4147   cat conftest.err >&5
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); } &&
4150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151   { (case "(($ac_try" in
4152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153   *) ac_try_echo=$ac_try;;
4154 esac
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156   (eval "$ac_try") 2>&5
4157   ac_status=$?
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); }; } &&
4160          { ac_try='test -s conftest.$ac_objext'
4161   { (case "(($ac_try" in
4162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163   *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166   (eval "$ac_try") 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; }; then
4170   ac_cv_c_bigendian=yes
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175         ac_cv_c_bigendian=no
4176 fi
4177
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 else
4180   echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183         # It does not; compile a test program.
4184 if test "$cross_compiling" = yes; then
4185   # try to guess the endianness by grepping values into an object file
4186   ac_cv_c_bigendian=unknown
4187   cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4194 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4195 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4196 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4197 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4198 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4199 int
4200 main ()
4201 {
4202  _ascii (); _ebcdic ();
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211   *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214   (eval "$ac_compile") 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } &&
4221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4222   { (case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227   (eval "$ac_try") 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; } &&
4231          { ac_try='test -s conftest.$ac_objext'
4232   { (case "(($ac_try" in
4233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234   *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237   (eval "$ac_try") 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4242   ac_cv_c_bigendian=yes
4243 fi
4244 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4245   if test "$ac_cv_c_bigendian" = unknown; then
4246     ac_cv_c_bigendian=no
4247   else
4248     # finding both strings is unlikely to happen, but who knows?
4249     ac_cv_c_bigendian=unknown
4250   fi
4251 fi
4252 else
4253   echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256
4257 fi
4258
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 else
4261   cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 $ac_includes_default
4268 int
4269 main ()
4270 {
4271
4272   /* Are we little or big endian?  From Harbison&Steele.  */
4273   union
4274   {
4275     long int l;
4276     char c[sizeof (long int)];
4277   } u;
4278   u.l = 1;
4279   return u.c[sizeof (long int) - 1] == 1;
4280
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 rm -f conftest$ac_exeext
4286 if { (ac_try="$ac_link"
4287 case "(($ac_try" in
4288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289   *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292   (eval "$ac_link") 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4296   { (case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301   (eval "$ac_try") 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   ac_cv_c_bigendian=no
4306 else
4307   echo "$as_me: program exited with status $ac_status" >&5
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311 ( exit $ac_status )
4312 ac_cv_c_bigendian=yes
4313 fi
4314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4315 fi
4316
4317
4318 fi
4319
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 fi
4322 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4323 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4324 case $ac_cv_c_bigendian in
4325   yes)
4326     ENDIAN=big
4327  ;;
4328   no)
4329     ENDIAN=little
4330  ;;
4331   *)
4332     { { echo "$as_me:$LINENO: error: unknown endianness
4333 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4334 echo "$as_me: error: unknown endianness
4335 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4336    { (exit 1); exit 1; }; } ;;
4337 esac
4338
4339
4340 if test "$cross_compiling" = yes; then
4341   LLVM_CROSS_COMPILING=1
4342
4343
4344 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4345 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4346 if test "${ac_cv_build_exeext+set}" = set; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4350   ac_cv_build_exeext=.exe
4351 else
4352   ac_build_prefix=${build_alias}-
4353
4354   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4355 set dummy ${ac_build_prefix}gcc; ac_word=$2
4356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4358 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   if test -n "$BUILD_CC"; then
4362   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367   IFS=$as_save_IFS
4368   test -z "$as_dir" && as_dir=.
4369   for ac_exec_ext in '' $ac_executable_extensions; do
4370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4371     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373     break 2
4374   fi
4375 done
4376 done
4377 IFS=$as_save_IFS
4378
4379 fi
4380 fi
4381 BUILD_CC=$ac_cv_prog_BUILD_CC
4382 if test -n "$BUILD_CC"; then
4383   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4384 echo "${ECHO_T}$BUILD_CC" >&6; }
4385 else
4386   { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4388 fi
4389
4390
4391   if test -z "$BUILD_CC"; then
4392      # Extract the first word of "gcc", so it can be a program name with args.
4393 set dummy gcc; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test -n "$BUILD_CC"; then
4400   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   test -z "$as_dir" && as_dir=.
4407   for ac_exec_ext in '' $ac_executable_extensions; do
4408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409     ac_cv_prog_BUILD_CC="gcc"
4410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411     break 2
4412   fi
4413 done
4414 done
4415 IFS=$as_save_IFS
4416
4417 fi
4418 fi
4419 BUILD_CC=$ac_cv_prog_BUILD_CC
4420 if test -n "$BUILD_CC"; then
4421   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4422 echo "${ECHO_T}$BUILD_CC" >&6; }
4423 else
4424   { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4426 fi
4427
4428
4429      if test -z "$BUILD_CC"; then
4430        # Extract the first word of "cc", so it can be a program name with args.
4431 set dummy cc; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   if test -n "$BUILD_CC"; then
4438   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439 else
4440   ac_prog_rejected=no
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446   for ac_exec_ext in '' $ac_executable_extensions; do
4447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4448     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4449        ac_prog_rejected=yes
4450        continue
4451      fi
4452     ac_cv_prog_BUILD_CC="cc"
4453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 if test $ac_prog_rejected = yes; then
4461   # We found a bogon in the path, so make sure we never use it.
4462   set dummy $ac_cv_prog_BUILD_CC
4463   shift
4464   if test $# != 0; then
4465     # We chose a different compiler from the bogus one.
4466     # However, it has the same basename, so the bogon will be chosen
4467     # first if we set BUILD_CC to just the basename; use the full file name.
4468     shift
4469     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4470   fi
4471 fi
4472 fi
4473 fi
4474 BUILD_CC=$ac_cv_prog_BUILD_CC
4475 if test -n "$BUILD_CC"; then
4476   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477 echo "${ECHO_T}$BUILD_CC" >&6; }
4478 else
4479   { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4481 fi
4482
4483
4484      fi
4485   fi
4486   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4487 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4488    { (exit 1); exit 1; }; }
4489   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4490   rm -f conftest*
4491   echo 'int main () { return 0; }' > conftest.$ac_ext
4492   ac_cv_build_exeext=
4493   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4494   (eval $ac_build_link) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; then
4498     for file in conftest.*; do
4499       case $file in
4500       *.c | *.o | *.obj | *.dSYM) ;;
4501       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4502       esac
4503     done
4504   else
4505     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4506 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4507    { (exit 1); exit 1; }; }
4508   fi
4509   rm -f conftest*
4510   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4511 fi
4512 fi
4513
4514 BUILD_EXEEXT=""
4515 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4516 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4517 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4518 ac_build_exeext=$BUILD_EXEEXT
4519
4520   ac_build_prefix=${build_alias}-
4521   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4522 set dummy ${ac_build_prefix}g++; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   if test -n "$BUILD_CXX"; then
4529   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534   IFS=$as_save_IFS
4535   test -z "$as_dir" && as_dir=.
4536   for ac_exec_ext in '' $ac_executable_extensions; do
4537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4538     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540     break 2
4541   fi
4542 done
4543 done
4544 IFS=$as_save_IFS
4545
4546 fi
4547 fi
4548 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4549 if test -n "$BUILD_CXX"; then
4550   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4551 echo "${ECHO_T}$BUILD_CXX" >&6; }
4552 else
4553   { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4555 fi
4556
4557
4558   if test -z "$BUILD_CXX"; then
4559      # Extract the first word of "g++", so it can be a program name with args.
4560 set dummy g++; ac_word=$2
4561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4563 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4564   echo $ECHO_N "(cached) $ECHO_C" >&6
4565 else
4566   if test -n "$BUILD_CXX"; then
4567   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4568 else
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574   for ac_exec_ext in '' $ac_executable_extensions; do
4575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4576     ac_cv_prog_BUILD_CXX="g++"
4577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578     break 2
4579   fi
4580 done
4581 done
4582 IFS=$as_save_IFS
4583
4584 fi
4585 fi
4586 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4587 if test -n "$BUILD_CXX"; then
4588   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4589 echo "${ECHO_T}$BUILD_CXX" >&6; }
4590 else
4591   { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4593 fi
4594
4595
4596      if test -z "$BUILD_CXX"; then
4597        # Extract the first word of "c++", so it can be a program name with args.
4598 set dummy c++; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604   if test -n "$BUILD_CXX"; then
4605   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4606 else
4607   ac_prog_rejected=no
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613   for ac_exec_ext in '' $ac_executable_extensions; do
4614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4615     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4616        ac_prog_rejected=yes
4617        continue
4618      fi
4619     ac_cv_prog_BUILD_CXX="c++"
4620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625 IFS=$as_save_IFS
4626
4627 if test $ac_prog_rejected = yes; then
4628   # We found a bogon in the path, so make sure we never use it.
4629   set dummy $ac_cv_prog_BUILD_CXX
4630   shift
4631   if test $# != 0; then
4632     # We chose a different compiler from the bogus one.
4633     # However, it has the same basename, so the bogon will be chosen
4634     # first if we set BUILD_CXX to just the basename; use the full file name.
4635     shift
4636     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4637   fi
4638 fi
4639 fi
4640 fi
4641 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4642 if test -n "$BUILD_CXX"; then
4643   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4644 echo "${ECHO_T}$BUILD_CXX" >&6; }
4645 else
4646   { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4648 fi
4649
4650
4651      fi
4652   fi
4653 else
4654   LLVM_CROSS_COMPILING=0
4655
4656 fi
4657
4658 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4659   cvsbuild="yes"
4660   optimize="no"
4661   CVSBUILD=CVSBUILD=1
4662
4663 else
4664   cvsbuild="no"
4665   optimize="yes"
4666 fi
4667
4668
4669 # Check whether --enable-optimized was given.
4670 if test "${enable_optimized+set}" = set; then
4671   enableval=$enable_optimized;
4672 else
4673   enableval=$optimize
4674 fi
4675
4676 if test ${enableval} = "no" ; then
4677   ENABLE_OPTIMIZED=
4678
4679 else
4680   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4681
4682 fi
4683
4684 # Check whether --enable-profiling was given.
4685 if test "${enable_profiling+set}" = set; then
4686   enableval=$enable_profiling;
4687 else
4688   enableval="no"
4689 fi
4690
4691 if test ${enableval} = "no" ; then
4692   ENABLE_PROFILING=
4693
4694 else
4695   ENABLE_PROFILING=ENABLE_PROFILING=1
4696
4697 fi
4698
4699 # Check whether --enable-assertions was given.
4700 if test "${enable_assertions+set}" = set; then
4701   enableval=$enable_assertions;
4702 else
4703   enableval="yes"
4704 fi
4705
4706 if test ${enableval} = "yes" ; then
4707   DISABLE_ASSERTIONS=
4708
4709 else
4710   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4711
4712 fi
4713
4714 # Check whether --enable-expensive-checks was given.
4715 if test "${enable_expensive_checks+set}" = set; then
4716   enableval=$enable_expensive_checks;
4717 else
4718   enableval="no"
4719 fi
4720
4721 if test ${enableval} = "yes" ; then
4722   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4723
4724   EXPENSIVE_CHECKS=yes
4725
4726 else
4727   ENABLE_EXPENSIVE_CHECKS=
4728
4729   EXPENSIVE_CHECKS=no
4730
4731 fi
4732
4733 # Check whether --enable-debug-runtime was given.
4734 if test "${enable_debug_runtime+set}" = set; then
4735   enableval=$enable_debug_runtime;
4736 else
4737   enableval=no
4738 fi
4739
4740 if test ${enableval} = "no" ; then
4741   DEBUG_RUNTIME=
4742
4743 else
4744   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4745
4746 fi
4747
4748 # Check whether --enable-debug-symbols was given.
4749 if test "${enable_debug_symbols+set}" = set; then
4750   enableval=$enable_debug_symbols;
4751 else
4752   enableval=no
4753 fi
4754
4755 if test ${enableval} = "no" ; then
4756   DEBUG_SYMBOLS=
4757
4758 else
4759   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4760
4761 fi
4762
4763 # Check whether --enable-jit was given.
4764 if test "${enable_jit+set}" = set; then
4765   enableval=$enable_jit;
4766 else
4767   enableval=default
4768 fi
4769
4770 if test ${enableval} = "no"
4771 then
4772   JIT=
4773
4774 else
4775   case "$llvm_cv_target_arch" in
4776     x86)         TARGET_HAS_JIT=1
4777  ;;
4778     Sparc)       TARGET_HAS_JIT=0
4779  ;;
4780     PowerPC)     TARGET_HAS_JIT=1
4781  ;;
4782     x86_64)      TARGET_HAS_JIT=1
4783  ;;
4784     Alpha)       TARGET_HAS_JIT=1
4785  ;;
4786     ARM)         TARGET_HAS_JIT=1
4787  ;;
4788     Mips)        TARGET_HAS_JIT=0
4789  ;;
4790     PIC16)       TARGET_HAS_JIT=0
4791  ;;
4792     XCore)       TARGET_HAS_JIT=0
4793  ;;
4794     MSP430)      TARGET_HAS_JIT=0
4795  ;;
4796     SystemZ)     TARGET_HAS_JIT=0
4797  ;;
4798     Blackfin)    TARGET_HAS_JIT=0
4799  ;;
4800     MBlaze)      TARGET_HAS_JIT=0
4801  ;;
4802     *)           TARGET_HAS_JIT=0
4803  ;;
4804   esac
4805 fi
4806
4807 # Check whether --enable-doxygen was given.
4808 if test "${enable_doxygen+set}" = set; then
4809   enableval=$enable_doxygen;
4810 else
4811   enableval=default
4812 fi
4813
4814 case "$enableval" in
4815   yes) ENABLE_DOXYGEN=1
4816  ;;
4817   no)  ENABLE_DOXYGEN=0
4818  ;;
4819   default) ENABLE_DOXYGEN=0
4820  ;;
4821   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4822 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4823    { (exit 1); exit 1; }; } ;;
4824 esac
4825
4826 # Check whether --enable-threads was given.
4827 if test "${enable_threads+set}" = set; then
4828   enableval=$enable_threads;
4829 else
4830   enableval=default
4831 fi
4832
4833 case "$enableval" in
4834   yes) ENABLE_THREADS=1
4835  ;;
4836   no)  ENABLE_THREADS=0
4837  ;;
4838   default) ENABLE_THREADS=1
4839  ;;
4840   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4841 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4842    { (exit 1); exit 1; }; } ;;
4843 esac
4844
4845 cat >>confdefs.h <<_ACEOF
4846 #define ENABLE_THREADS $ENABLE_THREADS
4847 _ACEOF
4848
4849
4850 # Check whether --enable-pic was given.
4851 if test "${enable_pic+set}" = set; then
4852   enableval=$enable_pic;
4853 else
4854   enableval=default
4855 fi
4856
4857 case "$enableval" in
4858   yes) ENABLE_PIC=1
4859  ;;
4860   no)  ENABLE_PIC=0
4861  ;;
4862   default) ENABLE_PIC=1
4863  ;;
4864   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4865 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4866    { (exit 1); exit 1; }; } ;;
4867 esac
4868
4869 cat >>confdefs.h <<_ACEOF
4870 #define ENABLE_PIC $ENABLE_PIC
4871 _ACEOF
4872
4873
4874 # Check whether --enable-shared was given.
4875 if test "${enable_shared+set}" = set; then
4876   enableval=$enable_shared;
4877 else
4878   enableval=default
4879 fi
4880
4881 case "$enableval" in
4882   yes) ENABLE_SHARED=1
4883  ;;
4884   no)  ENABLE_SHARED=0
4885  ;;
4886   default) ENABLE_SHARED=0
4887  ;;
4888   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4889 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4890    { (exit 1); exit 1; }; } ;;
4891 esac
4892
4893 TARGETS_TO_BUILD=""
4894 # Check whether --enable-targets was given.
4895 if test "${enable_targets+set}" = set; then
4896   enableval=$enable_targets;
4897 else
4898   enableval=all
4899 fi
4900
4901 if test "$enableval" = host-only ; then
4902   enableval=host
4903 fi
4904 case "$enableval" in
4905   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4906   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4907       case "$a_target" in
4908         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4909         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4910         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4911         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4912         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4913         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4914         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4915         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4916         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4917         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4918         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4919         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4920         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4921         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4922         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4923         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4924         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4925         host) case "$llvm_cv_target_arch" in
4926             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4927             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4928             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4929             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4930             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4931             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4932             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4933             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4934             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4935             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4936             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4937             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4938             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4939             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4940             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4941 echo "$as_me: error: Can not set target to build" >&2;}
4942    { (exit 1); exit 1; }; } ;;
4943           esac ;;
4944         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4945 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4946    { (exit 1); exit 1; }; } ;;
4947       esac
4948   done
4949   ;;
4950 esac
4951 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4952
4953
4954 # Determine whether we are building LLVM support for the native architecture.
4955 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4956 for a_target in $TARGETS_TO_BUILD; do
4957   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4958     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4959
4960 cat >>confdefs.h <<_ACEOF
4961 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4962 _ACEOF
4963
4964   fi
4965 done
4966
4967 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4968 # target feature def files.
4969 LLVM_ENUM_TARGETS=""
4970 LLVM_ENUM_ASM_PRINTERS=""
4971 LLVM_ENUM_ASM_PARSERS=""
4972 LLVM_ENUM_DISASSEMBLERS=""
4973 for target_to_build in $TARGETS_TO_BUILD; do
4974   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4975   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4976     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4977   fi
4978   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4979     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4980   fi
4981   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4982     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4983   fi
4984 done
4985
4986
4987
4988
4989
4990 # Check whether --enable-cbe-printf-a was given.
4991 if test "${enable_cbe_printf_a+set}" = set; then
4992   enableval=$enable_cbe_printf_a;
4993 else
4994   enableval=default
4995 fi
4996
4997 case "$enableval" in
4998   yes) ENABLE_CBE_PRINTF_A=1
4999  ;;
5000   no)  ENABLE_CBE_PRINTF_A=0
5001  ;;
5002   default)  ENABLE_CBE_PRINTF_A=1
5003  ;;
5004   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5005 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5006    { (exit 1); exit 1; }; } ;;
5007 esac
5008
5009 cat >>confdefs.h <<_ACEOF
5010 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5011 _ACEOF
5012
5013
5014
5015 # Check whether --with-llvmgccdir was given.
5016 if test "${with_llvmgccdir+set}" = set; then
5017   withval=$with_llvmgccdir;
5018 else
5019   withval=default
5020 fi
5021
5022 case "$withval" in
5023   default) WITH_LLVMGCCDIR=default ;;
5024   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5025   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5026 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5027    { (exit 1); exit 1; }; } ;;
5028 esac
5029
5030
5031 # Check whether --with-llvmgcc was given.
5032 if test "${with_llvmgcc+set}" = set; then
5033   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5034       WITH_LLVMGCCDIR=""
5035 fi
5036
5037
5038
5039 # Check whether --with-llvmgxx was given.
5040 if test "${with_llvmgxx+set}" = set; then
5041   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5042     WITH_LLVMGCCDIR=""
5043 fi
5044
5045
5046 if test -n "$LLVMGCC"; then
5047    LLVMGCCCOMMAND="$LLVMGCC"
5048 fi
5049
5050 if test -n "$LLVMGXX"; then
5051    LLVMGXXCOMMAND="$LLVMGXX"
5052 fi
5053
5054 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5055    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5056 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5057    { (exit 1); exit 1; }; };
5058 fi
5059
5060 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5061    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5062 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5063    { (exit 1); exit 1; }; };
5064 fi
5065
5066
5067 # Check whether --with-clang was given.
5068 if test "${with_clang+set}" = set; then
5069   withval=$with_clang;
5070 else
5071   with_clang=default
5072 fi
5073
5074
5075
5076 # Check whether --with-built-clang was given.
5077 if test "${with_built_clang+set}" = set; then
5078   withval=$with_built_clang;
5079 else
5080   with_built_clang=check
5081 fi
5082
5083
5084 { echo "$as_me:$LINENO: checking clang compiler" >&5
5085 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5086 WITH_CLANGPATH=""
5087 WITH_BUILT_CLANG=0
5088 if test "$with_clang" != "default"; then
5089    WITH_CLANGPATH="$with_clang"
5090    if ! test -x "$WITH_CLANGPATH"; then
5091      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5092 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5093    { (exit 1); exit 1; }; }
5094    fi
5095 elif test "$with_built_clang" = "yes"; then
5096    WITH_BUILT_CLANG=1
5097 elif test "$with_built_clang" = "no"; then
5098    WITH_BUILT_CLANG=0
5099 else
5100    if test "$with_built_clang" != "check"; then
5101       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5102 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5103    { (exit 1); exit 1; }; }
5104    fi
5105
5106    if test -f ${srcdir}/tools/clang/README.txt; then
5107      WITH_BUILT_CLANG=1
5108    fi
5109 fi
5110
5111 if ! test -z "$WITH_CLANGPATH"; then
5112    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5113 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5114    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5115 elif test "$WITH_BUILT_CLANG" = "1"; then
5116    { echo "$as_me:$LINENO: result: built" >&5
5117 echo "${ECHO_T}built" >&6; }
5118 else
5119    { echo "$as_me:$LINENO: result: none" >&5
5120 echo "${ECHO_T}none" >&6; }
5121 fi
5122 CLANGPATH=$WITH_CLANGPATH
5123
5124 CLANGXXPATH=$WITH_CLANGXXPATH
5125
5126 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5127
5128
5129
5130 # Check whether --with-optimize-option was given.
5131 if test "${with_optimize_option+set}" = set; then
5132   withval=$with_optimize_option;
5133 else
5134   withval=default
5135 fi
5136
5137 { echo "$as_me:$LINENO: checking optimization flags" >&5
5138 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5139 case "$withval" in
5140   default)
5141     case "$llvm_cv_os_type" in
5142     MingW) optimize_option=-O3 ;;
5143     *)     optimize_option=-O2 ;;
5144     esac ;;
5145   *) optimize_option="$withval" ;;
5146 esac
5147 OPTIMIZE_OPTION=$optimize_option
5148
5149 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5150 echo "${ECHO_T}$optimize_option" >&6; }
5151
5152
5153 # Check whether --with-extra-options was given.
5154 if test "${with_extra_options+set}" = set; then
5155   withval=$with_extra_options;
5156 else
5157   withval=default
5158 fi
5159
5160 case "$withval" in
5161   default) EXTRA_OPTIONS= ;;
5162   *) EXTRA_OPTIONS=$withval ;;
5163 esac
5164 EXTRA_OPTIONS=$EXTRA_OPTIONS
5165
5166
5167 # Check whether --enable-bindings was given.
5168 if test "${enable_bindings+set}" = set; then
5169   enableval=$enable_bindings;
5170 else
5171   enableval=default
5172 fi
5173
5174 BINDINGS_TO_BUILD=""
5175 case "$enableval" in
5176   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5177   all ) BINDINGS_TO_BUILD="ocaml" ;;
5178   none | no) BINDINGS_TO_BUILD="" ;;
5179   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5180       case "$a_binding" in
5181         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5182         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5183 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5184    { (exit 1); exit 1; }; } ;;
5185       esac
5186   done
5187   ;;
5188 esac
5189
5190
5191 # Check whether --with-ocaml-libdir was given.
5192 if test "${with_ocaml_libdir+set}" = set; then
5193   withval=$with_ocaml_libdir;
5194 else
5195   withval=auto
5196 fi
5197
5198 case "$withval" in
5199   auto) with_ocaml_libdir="$withval" ;;
5200   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5201   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5202 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5203    { (exit 1); exit 1; }; } ;;
5204 esac
5205
5206
5207 # Check whether --with-c-include-dirs was given.
5208 if test "${with_c_include_dirs+set}" = set; then
5209   withval=$with_c_include_dirs;
5210 else
5211   withval=""
5212 fi
5213
5214
5215 cat >>confdefs.h <<_ACEOF
5216 #define C_INCLUDE_DIRS "$withval"
5217 _ACEOF
5218
5219
5220
5221 # Check whether --with-cxx-include-root was given.
5222 if test "${with_cxx_include_root+set}" = set; then
5223   withval=$with_cxx_include_root;
5224 else
5225   withval=""
5226 fi
5227
5228
5229 cat >>confdefs.h <<_ACEOF
5230 #define CXX_INCLUDE_ROOT "$withval"
5231 _ACEOF
5232
5233
5234
5235 # Check whether --with-cxx-include-arch was given.
5236 if test "${with_cxx_include_arch+set}" = set; then
5237   withval=$with_cxx_include_arch;
5238 else
5239   withval=""
5240 fi
5241
5242
5243 cat >>confdefs.h <<_ACEOF
5244 #define CXX_INCLUDE_ARCH "$withval"
5245 _ACEOF
5246
5247
5248
5249 # Check whether --with-cxx-include-32bit-dir was given.
5250 if test "${with_cxx_include_32bit_dir+set}" = set; then
5251   withval=$with_cxx_include_32bit_dir;
5252 else
5253   withval=""
5254 fi
5255
5256
5257 cat >>confdefs.h <<_ACEOF
5258 #define CXX_INCLUDE_32BIT_DIR "$withval"
5259 _ACEOF
5260
5261
5262
5263 # Check whether --with-cxx-include-64bit-dir was given.
5264 if test "${with_cxx_include_64bit_dir+set}" = set; then
5265   withval=$with_cxx_include_64bit_dir;
5266 else
5267   withval=""
5268 fi
5269
5270
5271 cat >>confdefs.h <<_ACEOF
5272 #define CXX_INCLUDE_64BIT_DIR "$withval"
5273 _ACEOF
5274
5275
5276
5277 # Check whether --with-binutils-include was given.
5278 if test "${with_binutils_include+set}" = set; then
5279   withval=$with_binutils_include;
5280 else
5281   withval=default
5282 fi
5283
5284 case "$withval" in
5285   default) WITH_BINUTILS_INCDIR=default ;;
5286   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5287   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5288 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5289    { (exit 1); exit 1; }; } ;;
5290 esac
5291 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5292   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5293
5294   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5295      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5296      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5297 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5298    { (exit 1); exit 1; }; };
5299   fi
5300 fi
5301
5302 # Check whether --enable-libffi was given.
5303 if test "${enable_libffi+set}" = set; then
5304   enableval=$enable_libffi; case "$enableval" in
5305     yes) llvm_cv_enable_libffi="yes" ;;
5306     no)  llvm_cv_enable_libffi="no"  ;;
5307     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5308 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5309    { (exit 1); exit 1; }; } ;;
5310   esac
5311 else
5312   llvm_cv_enable_libffi=no
5313 fi
5314
5315
5316 if test "$llvm_cv_os_type" = "Win32" ; then
5317    llvmc_dynamic="yes"
5318 else
5319    llvmc_dynamic="no"
5320 fi
5321
5322 # Check whether --enable-llvmc-dynamic was given.
5323 if test "${enable_llvmc_dynamic+set}" = set; then
5324   enableval=$enable_llvmc_dynamic;
5325 else
5326   enableval=$llvmc_dynamic
5327 fi
5328
5329 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5330    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5331
5332 else
5333    ENABLE_LLVMC_DYNAMIC=
5334
5335 fi
5336
5337 # Check whether --enable-llvmc-dynamic-plugins was given.
5338 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5339   enableval=$enable_llvmc_dynamic_plugins;
5340 else
5341   enableval=yes
5342 fi
5343
5344 if test ${enableval} = "yes" ; then
5345    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5346
5347 else
5348    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5349
5350 fi
5351
5352
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5359 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5360 # On Suns, sometimes $CPP names a directory.
5361 if test -n "$CPP" && test -d "$CPP"; then
5362   CPP=
5363 fi
5364 if test -z "$CPP"; then
5365   if test "${ac_cv_prog_CPP+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368       # Double quotes because CPP needs to be expanded
5369     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5370     do
5371       ac_preproc_ok=false
5372 for ac_c_preproc_warn_flag in '' yes
5373 do
5374   # Use a header file that comes with gcc, so configuring glibc
5375   # with a fresh cross-compiler works.
5376   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5377   # <limits.h> exists even on freestanding compilers.
5378   # On the NeXT, cc -E runs the code through the compiler's parser,
5379   # not just through cpp. "Syntax error" is here to catch this case.
5380   cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h.  */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h.  */
5386 #ifdef __STDC__
5387 # include <limits.h>
5388 #else
5389 # include <assert.h>
5390 #endif
5391                      Syntax error
5392 _ACEOF
5393 if { (ac_try="$ac_cpp conftest.$ac_ext"
5394 case "(($ac_try" in
5395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396   *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5400   ac_status=$?
5401   grep -v '^ *+' conftest.er1 >conftest.err
5402   rm -f conftest.er1
5403   cat conftest.err >&5
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); } >/dev/null; then
5406   if test -s conftest.err; then
5407     ac_cpp_err=$ac_c_preproc_warn_flag
5408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5409   else
5410     ac_cpp_err=
5411   fi
5412 else
5413   ac_cpp_err=yes
5414 fi
5415 if test -z "$ac_cpp_err"; then
5416   :
5417 else
5418   echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421   # Broken: fails on valid input.
5422 continue
5423 fi
5424
5425 rm -f conftest.err conftest.$ac_ext
5426
5427   # OK, works on sane cases.  Now check whether nonexistent headers
5428   # can be detected and how.
5429   cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h.  */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h.  */
5435 #include <ac_nonexistent.h>
5436 _ACEOF
5437 if { (ac_try="$ac_cpp conftest.$ac_ext"
5438 case "(($ac_try" in
5439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440   *) ac_try_echo=$ac_try;;
5441 esac
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5444   ac_status=$?
5445   grep -v '^ *+' conftest.er1 >conftest.err
5446   rm -f conftest.er1
5447   cat conftest.err >&5
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } >/dev/null; then
5450   if test -s conftest.err; then
5451     ac_cpp_err=$ac_c_preproc_warn_flag
5452     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5453   else
5454     ac_cpp_err=
5455   fi
5456 else
5457   ac_cpp_err=yes
5458 fi
5459 if test -z "$ac_cpp_err"; then
5460   # Broken: success on invalid input.
5461 continue
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466   # Passes both tests.
5467 ac_preproc_ok=:
5468 break
5469 fi
5470
5471 rm -f conftest.err conftest.$ac_ext
5472
5473 done
5474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5475 rm -f conftest.err conftest.$ac_ext
5476 if $ac_preproc_ok; then
5477   break
5478 fi
5479
5480     done
5481     ac_cv_prog_CPP=$CPP
5482
5483 fi
5484   CPP=$ac_cv_prog_CPP
5485 else
5486   ac_cv_prog_CPP=$CPP
5487 fi
5488 { echo "$as_me:$LINENO: result: $CPP" >&5
5489 echo "${ECHO_T}$CPP" >&6; }
5490 ac_preproc_ok=false
5491 for ac_c_preproc_warn_flag in '' yes
5492 do
5493   # Use a header file that comes with gcc, so configuring glibc
5494   # with a fresh cross-compiler works.
5495   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5496   # <limits.h> exists even on freestanding compilers.
5497   # On the NeXT, cc -E runs the code through the compiler's parser,
5498   # not just through cpp. "Syntax error" is here to catch this case.
5499   cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h.  */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h.  */
5505 #ifdef __STDC__
5506 # include <limits.h>
5507 #else
5508 # include <assert.h>
5509 #endif
5510                      Syntax error
5511 _ACEOF
5512 if { (ac_try="$ac_cpp conftest.$ac_ext"
5513 case "(($ac_try" in
5514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515   *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5519   ac_status=$?
5520   grep -v '^ *+' conftest.er1 >conftest.err
5521   rm -f conftest.er1
5522   cat conftest.err >&5
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } >/dev/null; then
5525   if test -s conftest.err; then
5526     ac_cpp_err=$ac_c_preproc_warn_flag
5527     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5528   else
5529     ac_cpp_err=
5530   fi
5531 else
5532   ac_cpp_err=yes
5533 fi
5534 if test -z "$ac_cpp_err"; then
5535   :
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540   # Broken: fails on valid input.
5541 continue
5542 fi
5543
5544 rm -f conftest.err conftest.$ac_ext
5545
5546   # OK, works on sane cases.  Now check whether nonexistent headers
5547   # can be detected and how.
5548   cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h.  */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h.  */
5554 #include <ac_nonexistent.h>
5555 _ACEOF
5556 if { (ac_try="$ac_cpp conftest.$ac_ext"
5557 case "(($ac_try" in
5558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559   *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5563   ac_status=$?
5564   grep -v '^ *+' conftest.er1 >conftest.err
5565   rm -f conftest.er1
5566   cat conftest.err >&5
5567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); } >/dev/null; then
5569   if test -s conftest.err; then
5570     ac_cpp_err=$ac_c_preproc_warn_flag
5571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5572   else
5573     ac_cpp_err=
5574   fi
5575 else
5576   ac_cpp_err=yes
5577 fi
5578 if test -z "$ac_cpp_err"; then
5579   # Broken: success on invalid input.
5580 continue
5581 else
5582   echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585   # Passes both tests.
5586 ac_preproc_ok=:
5587 break
5588 fi
5589
5590 rm -f conftest.err conftest.$ac_ext
5591
5592 done
5593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5594 rm -f conftest.err conftest.$ac_ext
5595 if $ac_preproc_ok; then
5596   :
5597 else
5598   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5599 See \`config.log' for more details." >&5
5600 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5601 See \`config.log' for more details." >&2;}
5602    { (exit 1); exit 1; }; }
5603 fi
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
5611 ac_ext=c
5612 ac_cpp='$CPP $CPPFLAGS'
5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616 if test -n "$ac_tool_prefix"; then
5617   for ac_prog in gcc
5618   do
5619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5623 if test "${ac_cv_prog_CC+set}" = set; then
5624   echo $ECHO_N "(cached) $ECHO_C" >&6
5625 else
5626   if test -n "$CC"; then
5627   ac_cv_prog_CC="$CC" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634   for ac_exec_ext in '' $ac_executable_extensions; do
5635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5636     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641 done
5642 IFS=$as_save_IFS
5643
5644 fi
5645 fi
5646 CC=$ac_cv_prog_CC
5647 if test -n "$CC"; then
5648   { echo "$as_me:$LINENO: result: $CC" >&5
5649 echo "${ECHO_T}$CC" >&6; }
5650 else
5651   { echo "$as_me:$LINENO: result: no" >&5
5652 echo "${ECHO_T}no" >&6; }
5653 fi
5654
5655
5656     test -n "$CC" && break
5657   done
5658 fi
5659 if test -z "$CC"; then
5660   ac_ct_CC=$CC
5661   for ac_prog in gcc
5662 do
5663   # Extract the first word of "$ac_prog", so it can be a program name with args.
5664 set dummy $ac_prog; ac_word=$2
5665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   if test -n "$ac_ct_CC"; then
5671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676   IFS=$as_save_IFS
5677   test -z "$as_dir" && as_dir=.
5678   for ac_exec_ext in '' $ac_executable_extensions; do
5679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5680     ac_cv_prog_ac_ct_CC="$ac_prog"
5681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682     break 2
5683   fi
5684 done
5685 done
5686 IFS=$as_save_IFS
5687
5688 fi
5689 fi
5690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5691 if test -n "$ac_ct_CC"; then
5692   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5693 echo "${ECHO_T}$ac_ct_CC" >&6; }
5694 else
5695   { echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6; }
5697 fi
5698
5699
5700   test -n "$ac_ct_CC" && break
5701 done
5702
5703   if test "x$ac_ct_CC" = x; then
5704     CC=""
5705   else
5706     case $cross_compiling:$ac_tool_warned in
5707 yes:)
5708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5709 whose name does not start with the host triplet.  If you think this
5710 configuration is useful to you, please write to autoconf@gnu.org." >&5
5711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5712 whose name does not start with the host triplet.  If you think this
5713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716     CC=$ac_ct_CC
5717   fi
5718 fi
5719
5720
5721 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5722 See \`config.log' for more details." >&5
5723 echo "$as_me: error: no acceptable C compiler found in \$PATH
5724 See \`config.log' for more details." >&2;}
5725    { (exit 1); exit 1; }; }
5726
5727 # Provide some information about the compiler.
5728 echo "$as_me:$LINENO: checking for C compiler version" >&5
5729 ac_compiler=`set X $ac_compile; echo $2`
5730 { (ac_try="$ac_compiler --version >&5"
5731 case "(($ac_try" in
5732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733   *) ac_try_echo=$ac_try;;
5734 esac
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736   (eval "$ac_compiler --version >&5") 2>&5
5737   ac_status=$?
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); }
5740 { (ac_try="$ac_compiler -v >&5"
5741 case "(($ac_try" in
5742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743   *) ac_try_echo=$ac_try;;
5744 esac
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746   (eval "$ac_compiler -v >&5") 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); }
5750 { (ac_try="$ac_compiler -V >&5"
5751 case "(($ac_try" in
5752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753   *) ac_try_echo=$ac_try;;
5754 esac
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756   (eval "$ac_compiler -V >&5") 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); }
5760
5761 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5762 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h.  */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h.  */
5772
5773 int
5774 main ()
5775 {
5776 #ifndef __GNUC__
5777        choke me
5778 #endif
5779
5780   ;
5781   return 0;
5782 }
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (ac_try="$ac_compile"
5786 case "(($ac_try" in
5787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788   *) ac_try_echo=$ac_try;;
5789 esac
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791   (eval "$ac_compile") 2>conftest.er1
5792   ac_status=$?
5793   grep -v '^ *+' conftest.er1 >conftest.err
5794   rm -f conftest.er1
5795   cat conftest.err >&5
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); } &&
5798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5799   { (case "(($ac_try" in
5800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801   *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804   (eval "$ac_try") 2>&5
5805   ac_status=$?
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); }; } &&
5808          { ac_try='test -s conftest.$ac_objext'
5809   { (case "(($ac_try" in
5810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811   *) ac_try_echo=$ac_try;;
5812 esac
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814   (eval "$ac_try") 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; }; then
5818   ac_compiler_gnu=yes
5819 else
5820   echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5822
5823         ac_compiler_gnu=no
5824 fi
5825
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5828
5829 fi
5830 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5831 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5832 GCC=`test $ac_compiler_gnu = yes && echo yes`
5833 ac_test_CFLAGS=${CFLAGS+set}
5834 ac_save_CFLAGS=$CFLAGS
5835 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5836 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5837 if test "${ac_cv_prog_cc_g+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   ac_save_c_werror_flag=$ac_c_werror_flag
5841    ac_c_werror_flag=yes
5842    ac_cv_prog_cc_g=no
5843    CFLAGS="-g"
5844    cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h.  */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h.  */
5850
5851 int
5852 main ()
5853 {
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5861 case "(($ac_try" in
5862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863   *) ac_try_echo=$ac_try;;
5864 esac
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866   (eval "$ac_compile") 2>conftest.er1
5867   ac_status=$?
5868   grep -v '^ *+' conftest.er1 >conftest.err
5869   rm -f conftest.er1
5870   cat conftest.err >&5
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5874   { (case "(($ac_try" in
5875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876   *) ac_try_echo=$ac_try;;
5877 esac
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879   (eval "$ac_try") 2>&5
5880   ac_status=$?
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); }; } &&
5883          { ac_try='test -s conftest.$ac_objext'
5884   { (case "(($ac_try" in
5885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886   *) ac_try_echo=$ac_try;;
5887 esac
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889   (eval "$ac_try") 2>&5
5890   ac_status=$?
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); }; }; then
5893   ac_cv_prog_cc_g=yes
5894 else
5895   echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5897
5898         CFLAGS=""
5899       cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905
5906 int
5907 main ()
5908 {
5909
5910   ;
5911   return 0;
5912 }
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5916 case "(($ac_try" in
5917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918   *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921   (eval "$ac_compile") 2>conftest.er1
5922   ac_status=$?
5923   grep -v '^ *+' conftest.er1 >conftest.err
5924   rm -f conftest.er1
5925   cat conftest.err >&5
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); } &&
5928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5929   { (case "(($ac_try" in
5930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931   *) ac_try_echo=$ac_try;;
5932 esac
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934   (eval "$ac_try") 2>&5
5935   ac_status=$?
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); }; } &&
5938          { ac_try='test -s conftest.$ac_objext'
5939   { (case "(($ac_try" in
5940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941   *) ac_try_echo=$ac_try;;
5942 esac
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944   (eval "$ac_try") 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   :
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953         ac_c_werror_flag=$ac_save_c_werror_flag
5954          CFLAGS="-g"
5955          cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h.  */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h.  */
5961
5962 int
5963 main ()
5964 {
5965
5966   ;
5967   return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5972 case "(($ac_try" in
5973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974   *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977   (eval "$ac_compile") 2>conftest.er1
5978   ac_status=$?
5979   grep -v '^ *+' conftest.er1 >conftest.err
5980   rm -f conftest.er1
5981   cat conftest.err >&5
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } &&
5984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985   { (case "(($ac_try" in
5986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987   *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990   (eval "$ac_try") 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; } &&
5994          { ac_try='test -s conftest.$ac_objext'
5995   { (case "(($ac_try" in
5996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997   *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000   (eval "$ac_try") 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; }; then
6004   ac_cv_prog_cc_g=yes
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009
6010 fi
6011
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 fi
6017
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019    ac_c_werror_flag=$ac_save_c_werror_flag
6020 fi
6021 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6022 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6023 if test "$ac_test_CFLAGS" = set; then
6024   CFLAGS=$ac_save_CFLAGS
6025 elif test $ac_cv_prog_cc_g = yes; then
6026   if test "$GCC" = yes; then
6027     CFLAGS="-g -O2"
6028   else
6029     CFLAGS="-g"
6030   fi
6031 else
6032   if test "$GCC" = yes; then
6033     CFLAGS="-O2"
6034   else
6035     CFLAGS=
6036   fi
6037 fi
6038 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6039 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6040 if test "${ac_cv_prog_cc_c89+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   ac_cv_prog_cc_c89=no
6044 ac_save_CC=$CC
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h.  */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h.  */
6051 #include <stdarg.h>
6052 #include <stdio.h>
6053 #include <sys/types.h>
6054 #include <sys/stat.h>
6055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6056 struct buf { int x; };
6057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6058 static char *e (p, i)
6059      char **p;
6060      int i;
6061 {
6062   return p[i];
6063 }
6064 static char *f (char * (*g) (char **, int), char **p, ...)
6065 {
6066   char *s;
6067   va_list v;
6068   va_start (v,p);
6069   s = g (p, va_arg (v,int));
6070   va_end (v);
6071   return s;
6072 }
6073
6074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6075    function prototypes and stuff, but not '\xHH' hex character constants.
6076    These don't provoke an error unfortunately, instead are silently treated
6077    as 'x'.  The following induces an error, until -std is added to get
6078    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6079    array size at least.  It's necessary to write '\x00'==0 to get something
6080    that's true only with -std.  */
6081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6082
6083 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6084    inside strings and character constants.  */
6085 #define FOO(x) 'x'
6086 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6087
6088 int test (int i, double x);
6089 struct s1 {int (*f) (int a);};
6090 struct s2 {int (*f) (double a);};
6091 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6092 int argc;
6093 char **argv;
6094 int
6095 main ()
6096 {
6097 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6098   ;
6099   return 0;
6100 }
6101 _ACEOF
6102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6103         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6104 do
6105   CC="$ac_save_CC $ac_arg"
6106   rm -f conftest.$ac_objext
6107 if { (ac_try="$ac_compile"
6108 case "(($ac_try" in
6109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110   *) ac_try_echo=$ac_try;;
6111 esac
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113   (eval "$ac_compile") 2>conftest.er1
6114   ac_status=$?
6115   grep -v '^ *+' conftest.er1 >conftest.err
6116   rm -f conftest.er1
6117   cat conftest.err >&5
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); } &&
6120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6121   { (case "(($ac_try" in
6122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123   *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126   (eval "$ac_try") 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; } &&
6130          { ac_try='test -s conftest.$ac_objext'
6131   { (case "(($ac_try" in
6132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133   *) ac_try_echo=$ac_try;;
6134 esac
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136   (eval "$ac_try") 2>&5
6137   ac_status=$?
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); }; }; then
6140   ac_cv_prog_cc_c89=$ac_arg
6141 else
6142   echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6144
6145
6146 fi
6147
6148 rm -f core conftest.err conftest.$ac_objext
6149   test "x$ac_cv_prog_cc_c89" != "xno" && break
6150 done
6151 rm -f conftest.$ac_ext
6152 CC=$ac_save_CC
6153
6154 fi
6155 # AC_CACHE_VAL
6156 case "x$ac_cv_prog_cc_c89" in
6157   x)
6158     { echo "$as_me:$LINENO: result: none needed" >&5
6159 echo "${ECHO_T}none needed" >&6; } ;;
6160   xno)
6161     { echo "$as_me:$LINENO: result: unsupported" >&5
6162 echo "${ECHO_T}unsupported" >&6; } ;;
6163   *)
6164     CC="$CC $ac_cv_prog_cc_c89"
6165     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6166 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6167 esac
6168
6169
6170 ac_ext=c
6171 ac_cpp='$CPP $CPPFLAGS'
6172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6175
6176 ac_ext=cpp
6177 ac_cpp='$CXXCPP $CPPFLAGS'
6178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6181 if test -z "$CXX"; then
6182   if test -n "$CCC"; then
6183     CXX=$CCC
6184   else
6185     if test -n "$ac_tool_prefix"; then
6186   for ac_prog in g++
6187   do
6188     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_CXX+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   if test -n "$CXX"; then
6196   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203   for ac_exec_ext in '' $ac_executable_extensions; do
6204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213 fi
6214 fi
6215 CXX=$ac_cv_prog_CXX
6216 if test -n "$CXX"; then
6217   { echo "$as_me:$LINENO: result: $CXX" >&5
6218 echo "${ECHO_T}$CXX" >&6; }
6219 else
6220   { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222 fi
6223
6224
6225     test -n "$CXX" && break
6226   done
6227 fi
6228 if test -z "$CXX"; then
6229   ac_ct_CXX=$CXX
6230   for ac_prog in g++
6231 do
6232   # Extract the first word of "$ac_prog", so it can be a program name with args.
6233 set dummy $ac_prog; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   if test -n "$ac_ct_CXX"; then
6240   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_prog_ac_ct_CXX="$ac_prog"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6260 if test -n "$ac_ct_CXX"; then
6261   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6262 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268
6269   test -n "$ac_ct_CXX" && break
6270 done
6271
6272   if test "x$ac_ct_CXX" = x; then
6273     CXX="g++"
6274   else
6275     case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6278 whose name does not start with the host triplet.  If you think this
6279 configuration is useful to you, please write to autoconf@gnu.org." >&5
6280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6281 whose name does not start with the host triplet.  If you think this
6282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6283 ac_tool_warned=yes ;;
6284 esac
6285     CXX=$ac_ct_CXX
6286   fi
6287 fi
6288
6289   fi
6290 fi
6291 # Provide some information about the compiler.
6292 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6293 ac_compiler=`set X $ac_compile; echo $2`
6294 { (ac_try="$ac_compiler --version >&5"
6295 case "(($ac_try" in
6296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297   *) ac_try_echo=$ac_try;;
6298 esac
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300   (eval "$ac_compiler --version >&5") 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); }
6304 { (ac_try="$ac_compiler -v >&5"
6305 case "(($ac_try" in
6306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307   *) ac_try_echo=$ac_try;;
6308 esac
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310   (eval "$ac_compiler -v >&5") 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); }
6314 { (ac_try="$ac_compiler -V >&5"
6315 case "(($ac_try" in
6316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317   *) ac_try_echo=$ac_try;;
6318 esac
6319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320   (eval "$ac_compiler -V >&5") 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); }
6324
6325 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6326 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6327 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336
6337 int
6338 main ()
6339 {
6340 #ifndef __GNUC__
6341        choke me
6342 #endif
6343
6344   ;
6345   return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6350 case "(($ac_try" in
6351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352   *) ac_try_echo=$ac_try;;
6353 esac
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355   (eval "$ac_compile") 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } &&
6362          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6363   { (case "(($ac_try" in
6364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365   *) ac_try_echo=$ac_try;;
6366 esac
6367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368   (eval "$ac_try") 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); }; } &&
6372          { ac_try='test -s conftest.$ac_objext'
6373   { (case "(($ac_try" in
6374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375   *) ac_try_echo=$ac_try;;
6376 esac
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378   (eval "$ac_try") 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   ac_compiler_gnu=yes
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387         ac_compiler_gnu=no
6388 fi
6389
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6392
6393 fi
6394 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6395 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6396 GXX=`test $ac_compiler_gnu = yes && echo yes`
6397 ac_test_CXXFLAGS=${CXXFLAGS+set}
6398 ac_save_CXXFLAGS=$CXXFLAGS
6399 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6400 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6401 if test "${ac_cv_prog_cxx_g+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6405    ac_cxx_werror_flag=yes
6406    ac_cv_prog_cxx_g=no
6407    CXXFLAGS="-g"
6408    cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h.  */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h.  */
6414
6415 int
6416 main ()
6417 {
6418
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (ac_try="$ac_compile"
6425 case "(($ac_try" in
6426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427   *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430   (eval "$ac_compile") 2>conftest.er1
6431   ac_status=$?
6432   grep -v '^ *+' conftest.er1 >conftest.err
6433   rm -f conftest.er1
6434   cat conftest.err >&5
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } &&
6437          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6438   { (case "(($ac_try" in
6439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440   *) ac_try_echo=$ac_try;;
6441 esac
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443   (eval "$ac_try") 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; } &&
6447          { ac_try='test -s conftest.$ac_objext'
6448   { (case "(($ac_try" in
6449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450   *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453   (eval "$ac_try") 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); }; }; then
6457   ac_cv_prog_cxx_g=yes
6458 else
6459   echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6461
6462         CXXFLAGS=""
6463       cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h.  */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h.  */
6469
6470 int
6471 main ()
6472 {
6473
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6480 case "(($ac_try" in
6481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482   *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485   (eval "$ac_compile") 2>conftest.er1
6486   ac_status=$?
6487   grep -v '^ *+' conftest.er1 >conftest.err
6488   rm -f conftest.er1
6489   cat conftest.err >&5
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } &&
6492          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6493   { (case "(($ac_try" in
6494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495   *) ac_try_echo=$ac_try;;
6496 esac
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498   (eval "$ac_try") 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; } &&
6502          { ac_try='test -s conftest.$ac_objext'
6503   { (case "(($ac_try" in
6504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505   *) ac_try_echo=$ac_try;;
6506 esac
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508   (eval "$ac_try") 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; }; then
6512   :
6513 else
6514   echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6516
6517         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6518          CXXFLAGS="-g"
6519          cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h.  */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h.  */
6525
6526 int
6527 main ()
6528 {
6529
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (ac_try="$ac_compile"
6536 case "(($ac_try" in
6537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538   *) ac_try_echo=$ac_try;;
6539 esac
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541   (eval "$ac_compile") 2>conftest.er1
6542   ac_status=$?
6543   grep -v '^ *+' conftest.er1 >conftest.err
6544   rm -f conftest.er1
6545   cat conftest.err >&5
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); } &&
6548          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6549   { (case "(($ac_try" in
6550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551   *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554   (eval "$ac_try") 2>&5
6555   ac_status=$?
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); }; } &&
6558          { ac_try='test -s conftest.$ac_objext'
6559   { (case "(($ac_try" in
6560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561   *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564   (eval "$ac_try") 2>&5
6565   ac_status=$?
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); }; }; then
6568   ac_cv_prog_cxx_g=yes
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 fi
6581
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6584 fi
6585 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6586 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6587 if test "$ac_test_CXXFLAGS" = set; then
6588   CXXFLAGS=$ac_save_CXXFLAGS
6589 elif test $ac_cv_prog_cxx_g = yes; then
6590   if test "$GXX" = yes; then
6591     CXXFLAGS="-g -O2"
6592   else
6593     CXXFLAGS="-g"
6594   fi
6595 else
6596   if test "$GXX" = yes; then
6597     CXXFLAGS="-O2"
6598   else
6599     CXXFLAGS=
6600   fi
6601 fi
6602 ac_ext=c
6603 ac_cpp='$CPP $CPPFLAGS'
6604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6607
6608
6609 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6610 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6611 if test "${lt_cv_path_NM+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   if test -n "$NM"; then
6615   # Let the user override the test.
6616   lt_cv_path_NM="$NM"
6617 else
6618   lt_nm_to_check="${ac_tool_prefix}nm"
6619   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6620     lt_nm_to_check="$lt_nm_to_check nm"
6621   fi
6622   for lt_tmp_nm in $lt_nm_to_check; do
6623     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6624     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6625       IFS="$lt_save_ifs"
6626       test -z "$ac_dir" && ac_dir=.
6627       tmp_nm="$ac_dir/$lt_tmp_nm"
6628       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6629         # Check to see if the nm accepts a BSD-compat flag.
6630         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6631         #   nm: unknown option "B" ignored
6632         # Tru64's nm complains that /dev/null is an invalid object file
6633         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6634         */dev/null* | *'Invalid file or object type'*)
6635           lt_cv_path_NM="$tmp_nm -B"
6636           break
6637           ;;
6638         *)
6639           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6640           */dev/null*)
6641             lt_cv_path_NM="$tmp_nm -p"
6642             break
6643             ;;
6644           *)
6645             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6646             continue # so that we can try to find one that supports BSD flags
6647             ;;
6648           esac
6649           ;;
6650         esac
6651       fi
6652     done
6653     IFS="$lt_save_ifs"
6654   done
6655   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6656 fi
6657 fi
6658 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6659 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6660 NM="$lt_cv_path_NM"
6661
6662
6663
6664 { echo "$as_me:$LINENO: checking for GNU make" >&5
6665 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6666 if test "${llvm_cv_gnu_make_command+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   llvm_cv_gnu_make_command=''
6670  for a in "$MAKE" make gmake gnumake ; do
6671   if test -z "$a" ; then continue ; fi ;
6672   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6673   then
6674    llvm_cv_gnu_make_command=$a ;
6675    break;
6676   fi
6677  done
6678 fi
6679 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6680 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6681  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6682    ifGNUmake='' ;
6683  else
6684    ifGNUmake='#' ;
6685    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6686 echo "${ECHO_T}\"Not found\"" >&6; };
6687  fi
6688
6689
6690 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6691 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6692 LN_S=$as_ln_s
6693 if test "$LN_S" = "ln -s"; then
6694   { echo "$as_me:$LINENO: result: yes" >&5
6695 echo "${ECHO_T}yes" >&6; }
6696 else
6697   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6698 echo "${ECHO_T}no, using $LN_S" >&6; }
6699 fi
6700
6701 # Extract the first word of "cmp", so it can be a program name with args.
6702 set dummy cmp; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_CMP+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   case $CMP in
6709   [\\/]* | ?:[\\/]*)
6710   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6711   ;;
6712   *)
6713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716   IFS=$as_save_IFS
6717   test -z "$as_dir" && as_dir=.
6718   for ac_exec_ext in '' $ac_executable_extensions; do
6719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722     break 2
6723   fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6729   ;;
6730 esac
6731 fi
6732 CMP=$ac_cv_path_CMP
6733 if test -n "$CMP"; then
6734   { echo "$as_me:$LINENO: result: $CMP" >&5
6735 echo "${ECHO_T}$CMP" >&6; }
6736 else
6737   { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6739 fi
6740
6741
6742 # Extract the first word of "cp", so it can be a program name with args.
6743 set dummy cp; ac_word=$2
6744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746 if test "${ac_cv_path_CP+set}" = set; then
6747   echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749   case $CP in
6750   [\\/]* | ?:[\\/]*)
6751   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6752   ;;
6753   *)
6754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757   IFS=$as_save_IFS
6758   test -z "$as_dir" && as_dir=.
6759   for ac_exec_ext in '' $ac_executable_extensions; do
6760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6761     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763     break 2
6764   fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6770   ;;
6771 esac
6772 fi
6773 CP=$ac_cv_path_CP
6774 if test -n "$CP"; then
6775   { echo "$as_me:$LINENO: result: $CP" >&5
6776 echo "${ECHO_T}$CP" >&6; }
6777 else
6778   { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6780 fi
6781
6782
6783 # Extract the first word of "date", so it can be a program name with args.
6784 set dummy date; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_path_DATE+set}" = set; then
6788   echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790   case $DATE in
6791   [\\/]* | ?:[\\/]*)
6792   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6793   ;;
6794   *)
6795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800   for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6811   ;;
6812 esac
6813 fi
6814 DATE=$ac_cv_path_DATE
6815 if test -n "$DATE"; then
6816   { echo "$as_me:$LINENO: result: $DATE" >&5
6817 echo "${ECHO_T}$DATE" >&6; }
6818 else
6819   { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6821 fi
6822
6823
6824 # Extract the first word of "find", so it can be a program name with args.
6825 set dummy find; ac_word=$2
6826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828 if test "${ac_cv_path_FIND+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831   case $FIND in
6832   [\\/]* | ?:[\\/]*)
6833   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6834   ;;
6835   *)
6836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841   for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6852   ;;
6853 esac
6854 fi
6855 FIND=$ac_cv_path_FIND
6856 if test -n "$FIND"; then
6857   { echo "$as_me:$LINENO: result: $FIND" >&5
6858 echo "${ECHO_T}$FIND" >&6; }
6859 else
6860   { echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6; }
6862 fi
6863
6864
6865 # Extract the first word of "grep", so it can be a program name with args.
6866 set dummy grep; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_path_GREP+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   case $GREP in
6873   [\\/]* | ?:[\\/]*)
6874   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6875   ;;
6876   *)
6877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882   for ac_exec_ext in '' $ac_executable_extensions; do
6883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889 done
6890 IFS=$as_save_IFS
6891
6892   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6893   ;;
6894 esac
6895 fi
6896 GREP=$ac_cv_path_GREP
6897 if test -n "$GREP"; then
6898   { echo "$as_me:$LINENO: result: $GREP" >&5
6899 echo "${ECHO_T}$GREP" >&6; }
6900 else
6901   { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6903 fi
6904
6905
6906 # Extract the first word of "mkdir", so it can be a program name with args.
6907 set dummy mkdir; ac_word=$2
6908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910 if test "${ac_cv_path_MKDIR+set}" = set; then
6911   echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913   case $MKDIR in
6914   [\\/]* | ?:[\\/]*)
6915   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6916   ;;
6917   *)
6918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923   for ac_exec_ext in '' $ac_executable_extensions; do
6924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6925     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930 done
6931 IFS=$as_save_IFS
6932
6933   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6934   ;;
6935 esac
6936 fi
6937 MKDIR=$ac_cv_path_MKDIR
6938 if test -n "$MKDIR"; then
6939   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6940 echo "${ECHO_T}$MKDIR" >&6; }
6941 else
6942   { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6944 fi
6945
6946
6947 # Extract the first word of "mv", so it can be a program name with args.
6948 set dummy mv; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_path_MV+set}" = set; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954   case $MV in
6955   [\\/]* | ?:[\\/]*)
6956   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6957   ;;
6958   *)
6959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964   for ac_exec_ext in '' $ac_executable_extensions; do
6965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6975   ;;
6976 esac
6977 fi
6978 MV=$ac_cv_path_MV
6979 if test -n "$MV"; then
6980   { echo "$as_me:$LINENO: result: $MV" >&5
6981 echo "${ECHO_T}$MV" >&6; }
6982 else
6983   { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6986
6987
6988 if test -n "$ac_tool_prefix"; then
6989   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6990 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_RANLIB+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   if test -n "$RANLIB"; then
6997   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004   for ac_exec_ext in '' $ac_executable_extensions; do
7005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 RANLIB=$ac_cv_prog_RANLIB
7017 if test -n "$RANLIB"; then
7018   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7019 echo "${ECHO_T}$RANLIB" >&6; }
7020 else
7021   { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7023 fi
7024
7025
7026 fi
7027 if test -z "$ac_cv_prog_RANLIB"; then
7028   ac_ct_RANLIB=$RANLIB
7029   # Extract the first word of "ranlib", so it can be a program name with args.
7030 set dummy ranlib; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   if test -n "$ac_ct_RANLIB"; then
7037   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044   for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_prog_ac_ct_RANLIB="ranlib"
7047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7057 if test -n "$ac_ct_RANLIB"; then
7058   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7059 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7060 else
7061   { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7063 fi
7064
7065   if test "x$ac_ct_RANLIB" = x; then
7066     RANLIB=":"
7067   else
7068     case $cross_compiling:$ac_tool_warned in
7069 yes:)
7070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7071 whose name does not start with the host triplet.  If you think this
7072 configuration is useful to you, please write to autoconf@gnu.org." >&5
7073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7074 whose name does not start with the host triplet.  If you think this
7075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078     RANLIB=$ac_ct_RANLIB
7079   fi
7080 else
7081   RANLIB="$ac_cv_prog_RANLIB"
7082 fi
7083
7084 if test -n "$ac_tool_prefix"; then
7085   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}ar; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_AR+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   if test -n "$AR"; then
7093   ac_cv_prog_AR="$AR" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100   for ac_exec_ext in '' $ac_executable_extensions; do
7101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102     ac_cv_prog_AR="${ac_tool_prefix}ar"
7103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 AR=$ac_cv_prog_AR
7113 if test -n "$AR"; then
7114   { echo "$as_me:$LINENO: result: $AR" >&5
7115 echo "${ECHO_T}$AR" >&6; }
7116 else
7117   { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7119 fi
7120
7121
7122 fi
7123 if test -z "$ac_cv_prog_AR"; then
7124   ac_ct_AR=$AR
7125   # Extract the first word of "ar", so it can be a program name with args.
7126 set dummy ar; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   if test -n "$ac_ct_AR"; then
7133   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_prog_ac_ct_AR="ar"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7153 if test -n "$ac_ct_AR"; then
7154   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7155 echo "${ECHO_T}$ac_ct_AR" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161   if test "x$ac_ct_AR" = x; then
7162     AR="false"
7163   else
7164     case $cross_compiling:$ac_tool_warned in
7165 yes:)
7166 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7167 whose name does not start with the host triplet.  If you think this
7168 configuration is useful to you, please write to autoconf@gnu.org." >&5
7169 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7170 whose name does not start with the host triplet.  If you think this
7171 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7172 ac_tool_warned=yes ;;
7173 esac
7174     AR=$ac_ct_AR
7175   fi
7176 else
7177   AR="$ac_cv_prog_AR"
7178 fi
7179
7180 # Extract the first word of "rm", so it can be a program name with args.
7181 set dummy rm; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_path_RM+set}" = set; then
7185   echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187   case $RM in
7188   [\\/]* | ?:[\\/]*)
7189   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7190   ;;
7191   *)
7192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197   for ac_exec_ext in '' $ac_executable_extensions; do
7198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7199     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204 done
7205 IFS=$as_save_IFS
7206
7207   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7208   ;;
7209 esac
7210 fi
7211 RM=$ac_cv_path_RM
7212 if test -n "$RM"; then
7213   { echo "$as_me:$LINENO: result: $RM" >&5
7214 echo "${ECHO_T}$RM" >&6; }
7215 else
7216   { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7218 fi
7219
7220
7221 # Extract the first word of "sed", so it can be a program name with args.
7222 set dummy sed; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_path_SED+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   case $SED in
7229   [\\/]* | ?:[\\/]*)
7230   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7231   ;;
7232   *)
7233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238   for ac_exec_ext in '' $ac_executable_extensions; do
7239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7240     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245 done
7246 IFS=$as_save_IFS
7247
7248   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7249   ;;
7250 esac
7251 fi
7252 SED=$ac_cv_path_SED
7253 if test -n "$SED"; then
7254   { echo "$as_me:$LINENO: result: $SED" >&5
7255 echo "${ECHO_T}$SED" >&6; }
7256 else
7257   { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7259 fi
7260
7261
7262 # Extract the first word of "tar", so it can be a program name with args.
7263 set dummy tar; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_TAR+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   case $TAR in
7270   [\\/]* | ?:[\\/]*)
7271   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7272   ;;
7273   *)
7274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277   IFS=$as_save_IFS
7278   test -z "$as_dir" && as_dir=.
7279   for ac_exec_ext in '' $ac_executable_extensions; do
7280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283     break 2
7284   fi
7285 done
7286 done
7287 IFS=$as_save_IFS
7288
7289   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7290   ;;
7291 esac
7292 fi
7293 TAR=$ac_cv_path_TAR
7294 if test -n "$TAR"; then
7295   { echo "$as_me:$LINENO: result: $TAR" >&5
7296 echo "${ECHO_T}$TAR" >&6; }
7297 else
7298   { echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6; }
7300 fi
7301
7302
7303 # Extract the first word of "pwd", so it can be a program name with args.
7304 set dummy pwd; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_path_BINPWD+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   case $BINPWD in
7311   [\\/]* | ?:[\\/]*)
7312   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7313   ;;
7314   *)
7315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318   IFS=$as_save_IFS
7319   test -z "$as_dir" && as_dir=.
7320   for ac_exec_ext in '' $ac_executable_extensions; do
7321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7322     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324     break 2
7325   fi
7326 done
7327 done
7328 IFS=$as_save_IFS
7329
7330   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7331   ;;
7332 esac
7333 fi
7334 BINPWD=$ac_cv_path_BINPWD
7335 if test -n "$BINPWD"; then
7336   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7337 echo "${ECHO_T}$BINPWD" >&6; }
7338 else
7339   { echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6; }
7341 fi
7342
7343
7344
7345 # Extract the first word of "Graphviz", so it can be a program name with args.
7346 set dummy Graphviz; ac_word=$2
7347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7349 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7350   echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352   case $GRAPHVIZ in
7353   [\\/]* | ?:[\\/]*)
7354   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7355   ;;
7356   *)
7357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362   for ac_exec_ext in '' $ac_executable_extensions; do
7363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7364     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369 done
7370 IFS=$as_save_IFS
7371
7372   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7373   ;;
7374 esac
7375 fi
7376 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7377 if test -n "$GRAPHVIZ"; then
7378   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7379 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7380 else
7381   { echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6; }
7383 fi
7384
7385
7386 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7387
7388 cat >>confdefs.h <<\_ACEOF
7389 #define HAVE_GRAPHVIZ 1
7390 _ACEOF
7391
7392     if test "$llvm_cv_os_type" = "MingW" ; then
7393     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7394   fi
7395
7396 cat >>confdefs.h <<_ACEOF
7397 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7398 _ACEOF
7399
7400 fi
7401 # Extract the first word of "dot", so it can be a program name with args.
7402 set dummy dot; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_path_DOT+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   case $DOT in
7409   [\\/]* | ?:[\\/]*)
7410   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7411   ;;
7412   *)
7413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418   for ac_exec_ext in '' $ac_executable_extensions; do
7419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7429   ;;
7430 esac
7431 fi
7432 DOT=$ac_cv_path_DOT
7433 if test -n "$DOT"; then
7434   { echo "$as_me:$LINENO: result: $DOT" >&5
7435 echo "${ECHO_T}$DOT" >&6; }
7436 else
7437   { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7439 fi
7440
7441
7442 if test "$DOT" != "echo dot" ; then
7443
7444 cat >>confdefs.h <<\_ACEOF
7445 #define HAVE_DOT 1
7446 _ACEOF
7447
7448     if test "$llvm_cv_os_type" = "MingW" ; then
7449     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7450   fi
7451
7452 cat >>confdefs.h <<_ACEOF
7453 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7454 _ACEOF
7455
7456 fi
7457 # Extract the first word of "fdp", so it can be a program name with args.
7458 set dummy fdp; ac_word=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_path_FDP+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   case $FDP in
7465   [\\/]* | ?:[\\/]*)
7466   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7467   ;;
7468   *)
7469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474   for ac_exec_ext in '' $ac_executable_extensions; do
7475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7485   ;;
7486 esac
7487 fi
7488 FDP=$ac_cv_path_FDP
7489 if test -n "$FDP"; then
7490   { echo "$as_me:$LINENO: result: $FDP" >&5
7491 echo "${ECHO_T}$FDP" >&6; }
7492 else
7493   { echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6; }
7495 fi
7496
7497
7498 if test "$FDP" != "echo fdp" ; then
7499
7500 cat >>confdefs.h <<\_ACEOF
7501 #define HAVE_FDP 1
7502 _ACEOF
7503
7504     if test "$llvm_cv_os_type" = "MingW" ; then
7505     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7506   fi
7507
7508 cat >>confdefs.h <<_ACEOF
7509 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7510 _ACEOF
7511
7512 fi
7513 # Extract the first word of "neato", so it can be a program name with args.
7514 set dummy neato; ac_word=$2
7515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7517 if test "${ac_cv_path_NEATO+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   case $NEATO in
7521   [\\/]* | ?:[\\/]*)
7522   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7523   ;;
7524   *)
7525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530   for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7541   ;;
7542 esac
7543 fi
7544 NEATO=$ac_cv_path_NEATO
7545 if test -n "$NEATO"; then
7546   { echo "$as_me:$LINENO: result: $NEATO" >&5
7547 echo "${ECHO_T}$NEATO" >&6; }
7548 else
7549   { echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6; }
7551 fi
7552
7553
7554 if test "$NEATO" != "echo neato" ; then
7555
7556 cat >>confdefs.h <<\_ACEOF
7557 #define HAVE_NEATO 1
7558 _ACEOF
7559
7560     if test "$llvm_cv_os_type" = "MingW" ; then
7561     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7562   fi
7563
7564 cat >>confdefs.h <<_ACEOF
7565 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7566 _ACEOF
7567
7568 fi
7569 # Extract the first word of "twopi", so it can be a program name with args.
7570 set dummy twopi; ac_word=$2
7571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573 if test "${ac_cv_path_TWOPI+set}" = set; then
7574   echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576   case $TWOPI in
7577   [\\/]* | ?:[\\/]*)
7578   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7579   ;;
7580   *)
7581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586   for ac_exec_ext in '' $ac_executable_extensions; do
7587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7597   ;;
7598 esac
7599 fi
7600 TWOPI=$ac_cv_path_TWOPI
7601 if test -n "$TWOPI"; then
7602   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7603 echo "${ECHO_T}$TWOPI" >&6; }
7604 else
7605   { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7607 fi
7608
7609
7610 if test "$TWOPI" != "echo twopi" ; then
7611
7612 cat >>confdefs.h <<\_ACEOF
7613 #define HAVE_TWOPI 1
7614 _ACEOF
7615
7616     if test "$llvm_cv_os_type" = "MingW" ; then
7617     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7618   fi
7619
7620 cat >>confdefs.h <<_ACEOF
7621 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7622 _ACEOF
7623
7624 fi
7625 # Extract the first word of "circo", so it can be a program name with args.
7626 set dummy circo; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_CIRCO+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   case $CIRCO in
7633   [\\/]* | ?:[\\/]*)
7634   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7635   ;;
7636   *)
7637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642   for ac_exec_ext in '' $ac_executable_extensions; do
7643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7653   ;;
7654 esac
7655 fi
7656 CIRCO=$ac_cv_path_CIRCO
7657 if test -n "$CIRCO"; then
7658   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7659 echo "${ECHO_T}$CIRCO" >&6; }
7660 else
7661   { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7663 fi
7664
7665
7666 if test "$CIRCO" != "echo circo" ; then
7667
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_CIRCO 1
7670 _ACEOF
7671
7672     if test "$llvm_cv_os_type" = "MingW" ; then
7673     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7674   fi
7675
7676 cat >>confdefs.h <<_ACEOF
7677 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7678 _ACEOF
7679
7680 fi
7681 for ac_prog in gv gsview32
7682 do
7683   # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_GV+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   case $GV in
7691   [\\/]* | ?:[\\/]*)
7692   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7693   ;;
7694   *)
7695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698   IFS=$as_save_IFS
7699   test -z "$as_dir" && as_dir=.
7700   for ac_exec_ext in '' $ac_executable_extensions; do
7701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7702     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704     break 2
7705   fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710   ;;
7711 esac
7712 fi
7713 GV=$ac_cv_path_GV
7714 if test -n "$GV"; then
7715   { echo "$as_me:$LINENO: result: $GV" >&5
7716 echo "${ECHO_T}$GV" >&6; }
7717 else
7718   { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7720 fi
7721
7722
7723   test -n "$GV" && break
7724 done
7725 test -n "$GV" || GV="echo gv"
7726
7727 if test "$GV" != "echo gv" ; then
7728
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_GV 1
7731 _ACEOF
7732
7733     if test "$llvm_cv_os_type" = "MingW" ; then
7734     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7735   fi
7736
7737 cat >>confdefs.h <<_ACEOF
7738 #define LLVM_PATH_GV "$GV${EXEEXT}"
7739 _ACEOF
7740
7741 fi
7742 # Extract the first word of "dotty", so it can be a program name with args.
7743 set dummy dotty; ac_word=$2
7744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_DOTTY+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   case $DOTTY in
7750   [\\/]* | ?:[\\/]*)
7751   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7752   ;;
7753   *)
7754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757   IFS=$as_save_IFS
7758   test -z "$as_dir" && as_dir=.
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7761     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763     break 2
7764   fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7770   ;;
7771 esac
7772 fi
7773 DOTTY=$ac_cv_path_DOTTY
7774 if test -n "$DOTTY"; then
7775   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7776 echo "${ECHO_T}$DOTTY" >&6; }
7777 else
7778   { echo "$as_me:$LINENO: result: no" >&5
7779 echo "${ECHO_T}no" >&6; }
7780 fi
7781
7782
7783 if test "$DOTTY" != "echo dotty" ; then
7784
7785 cat >>confdefs.h <<\_ACEOF
7786 #define HAVE_DOTTY 1
7787 _ACEOF
7788
7789     if test "$llvm_cv_os_type" = "MingW" ; then
7790     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7791   fi
7792
7793 cat >>confdefs.h <<_ACEOF
7794 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7795 _ACEOF
7796
7797 fi
7798
7799
7800 # Extract the first word of "perl", so it can be a program name with args.
7801 set dummy perl; ac_word=$2
7802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7804 if test "${ac_cv_path_PERL+set}" = set; then
7805   echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807   case $PERL in
7808   [\\/]* | ?:[\\/]*)
7809   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7810   ;;
7811   *)
7812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815   IFS=$as_save_IFS
7816   test -z "$as_dir" && as_dir=.
7817   for ac_exec_ext in '' $ac_executable_extensions; do
7818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7819     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821     break 2
7822   fi
7823 done
7824 done
7825 IFS=$as_save_IFS
7826
7827   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7828   ;;
7829 esac
7830 fi
7831 PERL=$ac_cv_path_PERL
7832 if test -n "$PERL"; then
7833   { echo "$as_me:$LINENO: result: $PERL" >&5
7834 echo "${ECHO_T}$PERL" >&6; }
7835 else
7836   { echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6; }
7838 fi
7839
7840
7841 if test "$PERL" != "none"; then
7842   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7843 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7844   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7845     { echo "$as_me:$LINENO: result: yes" >&5
7846 echo "${ECHO_T}yes" >&6; }
7847   else
7848     PERL=none
7849     { echo "$as_me:$LINENO: result: not found" >&5
7850 echo "${ECHO_T}not found" >&6; }
7851   fi
7852 fi
7853
7854
7855 if test x"$PERL" = xnone; then
7856    HAVE_PERL=0
7857
7858    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7859 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7860    { (exit 1); exit 1; }; }
7861 else
7862    HAVE_PERL=1
7863
7864 fi
7865
7866 # Find a good install program.  We prefer a C program (faster),
7867 # so one script is as good as another.  But avoid the broken or
7868 # incompatible versions:
7869 # SysV /etc/install, /usr/sbin/install
7870 # SunOS /usr/etc/install
7871 # IRIX /sbin/install
7872 # AIX /bin/install
7873 # AmigaOS /C/install, which installs bootblocks on floppy discs
7874 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7877 # OS/2's system install, which has a completely different semantic
7878 # ./install, which can be erroneously created by make from ./install.sh.
7879 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7880 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7881 if test -z "$INSTALL"; then
7882 if test "${ac_cv_path_install+set}" = set; then
7883   echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888   IFS=$as_save_IFS
7889   test -z "$as_dir" && as_dir=.
7890   # Account for people who put trailing slashes in PATH elements.
7891 case $as_dir/ in
7892   ./ | .// | /cC/* | \
7893   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7894   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7895   /usr/ucb/* ) ;;
7896   *)
7897     # OSF1 and SCO ODT 3.0 have their own names for install.
7898     # Don't use installbsd from OSF since it installs stuff as root
7899     # by default.
7900     for ac_prog in ginstall scoinst install; do
7901       for ac_exec_ext in '' $ac_executable_extensions; do
7902         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7903           if test $ac_prog = install &&
7904             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7905             # AIX install.  It has an incompatible calling convention.
7906             :
7907           elif test $ac_prog = install &&
7908             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7909             # program-specific install script used by HP pwplus--don't use.
7910             :
7911           else
7912             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7913             break 3
7914           fi
7915         fi
7916       done
7917     done
7918     ;;
7919 esac
7920 done
7921 IFS=$as_save_IFS
7922
7923
7924 fi
7925   if test "${ac_cv_path_install+set}" = set; then
7926     INSTALL=$ac_cv_path_install
7927   else
7928     # As a last resort, use the slow shell script.  Don't cache a
7929     # value for INSTALL within a source directory, because that will
7930     # break other packages using the cache if that directory is
7931     # removed, or if the value is a relative name.
7932     INSTALL=$ac_install_sh
7933   fi
7934 fi
7935 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7936 echo "${ECHO_T}$INSTALL" >&6; }
7937
7938 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7939 # It thinks the first close brace ends the variable substitution.
7940 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7941
7942 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7943
7944 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7945
7946
7947 # Extract the first word of "bzip2", so it can be a program name with args.
7948 set dummy bzip2; ac_word=$2
7949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7951 if test "${ac_cv_path_BZIP2+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   case $BZIP2 in
7955   [\\/]* | ?:[\\/]*)
7956   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7957   ;;
7958   *)
7959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7961 do
7962   IFS=$as_save_IFS
7963   test -z "$as_dir" && as_dir=.
7964   for ac_exec_ext in '' $ac_executable_extensions; do
7965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7966     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7968     break 2
7969   fi
7970 done
7971 done
7972 IFS=$as_save_IFS
7973
7974   ;;
7975 esac
7976 fi
7977 BZIP2=$ac_cv_path_BZIP2
7978 if test -n "$BZIP2"; then
7979   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7980 echo "${ECHO_T}$BZIP2" >&6; }
7981 else
7982   { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7984 fi
7985
7986
7987 # Extract the first word of "doxygen", so it can be a program name with args.
7988 set dummy doxygen; ac_word=$2
7989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   case $DOXYGEN in
7995   [\\/]* | ?:[\\/]*)
7996   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7997   ;;
7998   *)
7999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004   for ac_exec_ext in '' $ac_executable_extensions; do
8005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8006     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008     break 2
8009   fi
8010 done
8011 done
8012 IFS=$as_save_IFS
8013
8014   ;;
8015 esac
8016 fi
8017 DOXYGEN=$ac_cv_path_DOXYGEN
8018 if test -n "$DOXYGEN"; then
8019   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8020 echo "${ECHO_T}$DOXYGEN" >&6; }
8021 else
8022   { echo "$as_me:$LINENO: result: no" >&5
8023 echo "${ECHO_T}no" >&6; }
8024 fi
8025
8026
8027 # Extract the first word of "groff", so it can be a program name with args.
8028 set dummy groff; ac_word=$2
8029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8031 if test "${ac_cv_path_GROFF+set}" = set; then
8032   echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034   case $GROFF in
8035   [\\/]* | ?:[\\/]*)
8036   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8037   ;;
8038   *)
8039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042   IFS=$as_save_IFS
8043   test -z "$as_dir" && as_dir=.
8044   for ac_exec_ext in '' $ac_executable_extensions; do
8045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8046     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8048     break 2
8049   fi
8050 done
8051 done
8052 IFS=$as_save_IFS
8053
8054   ;;
8055 esac
8056 fi
8057 GROFF=$ac_cv_path_GROFF
8058 if test -n "$GROFF"; then
8059   { echo "$as_me:$LINENO: result: $GROFF" >&5
8060 echo "${ECHO_T}$GROFF" >&6; }
8061 else
8062   { echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6; }
8064 fi
8065
8066
8067 # Extract the first word of "gzip", so it can be a program name with args.
8068 set dummy gzip; ac_word=$2
8069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8071 if test "${ac_cv_path_GZIP+set}" = set; then
8072   echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8074   case $GZIP in
8075   [\\/]* | ?:[\\/]*)
8076   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8077   ;;
8078   *)
8079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8081 do
8082   IFS=$as_save_IFS
8083   test -z "$as_dir" && as_dir=.
8084   for ac_exec_ext in '' $ac_executable_extensions; do
8085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8086     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8088     break 2
8089   fi
8090 done
8091 done
8092 IFS=$as_save_IFS
8093
8094   ;;
8095 esac
8096 fi
8097 GZIP=$ac_cv_path_GZIP
8098 if test -n "$GZIP"; then
8099   { echo "$as_me:$LINENO: result: $GZIP" >&5
8100 echo "${ECHO_T}$GZIP" >&6; }
8101 else
8102   { echo "$as_me:$LINENO: result: no" >&5
8103 echo "${ECHO_T}no" >&6; }
8104 fi
8105
8106
8107 # Extract the first word of "pod2html", so it can be a program name with args.
8108 set dummy pod2html; ac_word=$2
8109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8111 if test "${ac_cv_path_POD2HTML+set}" = set; then
8112   echo $ECHO_N "(cached) $ECHO_C" >&6
8113 else
8114   case $POD2HTML in
8115   [\\/]* | ?:[\\/]*)
8116   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8117   ;;
8118   *)
8119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122   IFS=$as_save_IFS
8123   test -z "$as_dir" && as_dir=.
8124   for ac_exec_ext in '' $ac_executable_extensions; do
8125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8126     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8128     break 2
8129   fi
8130 done
8131 done
8132 IFS=$as_save_IFS
8133
8134   ;;
8135 esac
8136 fi
8137 POD2HTML=$ac_cv_path_POD2HTML
8138 if test -n "$POD2HTML"; then
8139   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8140 echo "${ECHO_T}$POD2HTML" >&6; }
8141 else
8142   { echo "$as_me:$LINENO: result: no" >&5
8143 echo "${ECHO_T}no" >&6; }
8144 fi
8145
8146
8147 # Extract the first word of "pod2man", so it can be a program name with args.
8148 set dummy pod2man; ac_word=$2
8149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8151 if test "${ac_cv_path_POD2MAN+set}" = set; then
8152   echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154   case $POD2MAN in
8155   [\\/]* | ?:[\\/]*)
8156   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8157   ;;
8158   *)
8159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162   IFS=$as_save_IFS
8163   test -z "$as_dir" && as_dir=.
8164   for ac_exec_ext in '' $ac_executable_extensions; do
8165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8166     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168     break 2
8169   fi
8170 done
8171 done
8172 IFS=$as_save_IFS
8173
8174   ;;
8175 esac
8176 fi
8177 POD2MAN=$ac_cv_path_POD2MAN
8178 if test -n "$POD2MAN"; then
8179   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8180 echo "${ECHO_T}$POD2MAN" >&6; }
8181 else
8182   { echo "$as_me:$LINENO: result: no" >&5
8183 echo "${ECHO_T}no" >&6; }
8184 fi
8185
8186
8187 # Extract the first word of "runtest", so it can be a program name with args.
8188 set dummy runtest; ac_word=$2
8189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8191 if test "${ac_cv_path_RUNTEST+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194   case $RUNTEST in
8195   [\\/]* | ?:[\\/]*)
8196   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8197   ;;
8198   *)
8199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202   IFS=$as_save_IFS
8203   test -z "$as_dir" && as_dir=.
8204   for ac_exec_ext in '' $ac_executable_extensions; do
8205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8206     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8208     break 2
8209   fi
8210 done
8211 done
8212 IFS=$as_save_IFS
8213
8214   ;;
8215 esac
8216 fi
8217 RUNTEST=$ac_cv_path_RUNTEST
8218 if test -n "$RUNTEST"; then
8219   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8220 echo "${ECHO_T}$RUNTEST" >&6; }
8221 else
8222   { echo "$as_me:$LINENO: result: no" >&5
8223 echo "${ECHO_T}no" >&6; }
8224 fi
8225
8226
8227
8228 no_itcl=true
8229 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8230 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8231
8232 # Check whether --with-tclinclude was given.
8233 if test "${with_tclinclude+set}" = set; then
8234   withval=$with_tclinclude; with_tclinclude=${withval}
8235 else
8236   with_tclinclude=''
8237 fi
8238
8239 if test "${ac_cv_path_tclsh+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242
8243 if test x"${with_tclinclude}" != x ; then
8244   if test -f ${with_tclinclude}/tclsh ; then
8245     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8246   elif test -f ${with_tclinclude}/src/tclsh ; then
8247     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8248   else
8249     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8250 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8251    { (exit 1); exit 1; }; }
8252   fi
8253 fi
8254 fi
8255
8256
8257 if test x"${ac_cv_path_tclsh}" = x ; then
8258   { echo "$as_me:$LINENO: result: none" >&5
8259 echo "${ECHO_T}none" >&6; }
8260   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
8261 do
8262   # Extract the first word of "$ac_prog", so it can be a program name with args.
8263 set dummy $ac_prog; ac_word=$2
8264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8266 if test "${ac_cv_path_TCLSH+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   case $TCLSH in
8270   [\\/]* | ?:[\\/]*)
8271   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8272   ;;
8273   *)
8274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8276 do
8277   IFS=$as_save_IFS
8278   test -z "$as_dir" && as_dir=.
8279   for ac_exec_ext in '' $ac_executable_extensions; do
8280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8281     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8283     break 2
8284   fi
8285 done
8286 done
8287 IFS=$as_save_IFS
8288
8289   ;;
8290 esac
8291 fi
8292 TCLSH=$ac_cv_path_TCLSH
8293 if test -n "$TCLSH"; then
8294   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8295 echo "${ECHO_T}$TCLSH" >&6; }
8296 else
8297   { echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6; }
8299 fi
8300
8301
8302   test -n "$TCLSH" && break
8303 done
8304
8305   if test x"${TCLSH}" = x ; then
8306     ac_cv_path_tclsh='';
8307   else
8308     ac_cv_path_tclsh="${TCLSH}";
8309   fi
8310 else
8311   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8312 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8313   TCLSH="${ac_cv_path_tclsh}"
8314
8315 fi
8316
8317 # Extract the first word of "zip", so it can be a program name with args.
8318 set dummy zip; ac_word=$2
8319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8321 if test "${ac_cv_path_ZIP+set}" = set; then
8322   echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324   case $ZIP in
8325   [\\/]* | ?:[\\/]*)
8326   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8327   ;;
8328   *)
8329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330 for as_dir in $PATH
8331 do
8332   IFS=$as_save_IFS
8333   test -z "$as_dir" && as_dir=.
8334   for ac_exec_ext in '' $ac_executable_extensions; do
8335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8336     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8338     break 2
8339   fi
8340 done
8341 done
8342 IFS=$as_save_IFS
8343
8344   ;;
8345 esac
8346 fi
8347 ZIP=$ac_cv_path_ZIP
8348 if test -n "$ZIP"; then
8349   { echo "$as_me:$LINENO: result: $ZIP" >&5
8350 echo "${ECHO_T}$ZIP" >&6; }
8351 else
8352   { echo "$as_me:$LINENO: result: no" >&5
8353 echo "${ECHO_T}no" >&6; }
8354 fi
8355
8356
8357 for ac_prog in ocamlc
8358 do
8359   # Extract the first word of "$ac_prog", so it can be a program name with args.
8360 set dummy $ac_prog; ac_word=$2
8361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8363 if test "${ac_cv_path_OCAMLC+set}" = set; then
8364   echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366   case $OCAMLC in
8367   [\\/]* | ?:[\\/]*)
8368   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8369   ;;
8370   *)
8371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374   IFS=$as_save_IFS
8375   test -z "$as_dir" && as_dir=.
8376   for ac_exec_ext in '' $ac_executable_extensions; do
8377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8378     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380     break 2
8381   fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386   ;;
8387 esac
8388 fi
8389 OCAMLC=$ac_cv_path_OCAMLC
8390 if test -n "$OCAMLC"; then
8391   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8392 echo "${ECHO_T}$OCAMLC" >&6; }
8393 else
8394   { echo "$as_me:$LINENO: result: no" >&5
8395 echo "${ECHO_T}no" >&6; }
8396 fi
8397
8398
8399   test -n "$OCAMLC" && break
8400 done
8401
8402 for ac_prog in ocamlopt
8403 do
8404   # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8408 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411   case $OCAMLOPT in
8412   [\\/]* | ?:[\\/]*)
8413   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8414   ;;
8415   *)
8416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8418 do
8419   IFS=$as_save_IFS
8420   test -z "$as_dir" && as_dir=.
8421   for ac_exec_ext in '' $ac_executable_extensions; do
8422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8423     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425     break 2
8426   fi
8427 done
8428 done
8429 IFS=$as_save_IFS
8430
8431   ;;
8432 esac
8433 fi
8434 OCAMLOPT=$ac_cv_path_OCAMLOPT
8435 if test -n "$OCAMLOPT"; then
8436   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8437 echo "${ECHO_T}$OCAMLOPT" >&6; }
8438 else
8439   { echo "$as_me:$LINENO: result: no" >&5
8440 echo "${ECHO_T}no" >&6; }
8441 fi
8442
8443
8444   test -n "$OCAMLOPT" && break
8445 done
8446
8447 for ac_prog in ocamldep
8448 do
8449   # Extract the first word of "$ac_prog", so it can be a program name with args.
8450 set dummy $ac_prog; ac_word=$2
8451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8453 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456   case $OCAMLDEP in
8457   [\\/]* | ?:[\\/]*)
8458   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8459   ;;
8460   *)
8461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464   IFS=$as_save_IFS
8465   test -z "$as_dir" && as_dir=.
8466   for ac_exec_ext in '' $ac_executable_extensions; do
8467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8468     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8470     break 2
8471   fi
8472 done
8473 done
8474 IFS=$as_save_IFS
8475
8476   ;;
8477 esac
8478 fi
8479 OCAMLDEP=$ac_cv_path_OCAMLDEP
8480 if test -n "$OCAMLDEP"; then
8481   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8482 echo "${ECHO_T}$OCAMLDEP" >&6; }
8483 else
8484   { echo "$as_me:$LINENO: result: no" >&5
8485 echo "${ECHO_T}no" >&6; }
8486 fi
8487
8488
8489   test -n "$OCAMLDEP" && break
8490 done
8491
8492 for ac_prog in ocamldoc
8493 do
8494   # Extract the first word of "$ac_prog", so it can be a program name with args.
8495 set dummy $ac_prog; ac_word=$2
8496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8498 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   case $OCAMLDOC in
8502   [\\/]* | ?:[\\/]*)
8503   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8504   ;;
8505   *)
8506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8508 do
8509   IFS=$as_save_IFS
8510   test -z "$as_dir" && as_dir=.
8511   for ac_exec_ext in '' $ac_executable_extensions; do
8512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8513     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8515     break 2
8516   fi
8517 done
8518 done
8519 IFS=$as_save_IFS
8520
8521   ;;
8522 esac
8523 fi
8524 OCAMLDOC=$ac_cv_path_OCAMLDOC
8525 if test -n "$OCAMLDOC"; then
8526   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8527 echo "${ECHO_T}$OCAMLDOC" >&6; }
8528 else
8529   { echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6; }
8531 fi
8532
8533
8534   test -n "$OCAMLDOC" && break
8535 done
8536
8537 for ac_prog in gas as
8538 do
8539   # Extract the first word of "$ac_prog", so it can be a program name with args.
8540 set dummy $ac_prog; ac_word=$2
8541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8543 if test "${ac_cv_path_GAS+set}" = set; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   case $GAS in
8547   [\\/]* | ?:[\\/]*)
8548   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8549   ;;
8550   *)
8551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8553 do
8554   IFS=$as_save_IFS
8555   test -z "$as_dir" && as_dir=.
8556   for ac_exec_ext in '' $ac_executable_extensions; do
8557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8558     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8560     break 2
8561   fi
8562 done
8563 done
8564 IFS=$as_save_IFS
8565
8566   ;;
8567 esac
8568 fi
8569 GAS=$ac_cv_path_GAS
8570 if test -n "$GAS"; then
8571   { echo "$as_me:$LINENO: result: $GAS" >&5
8572 echo "${ECHO_T}$GAS" >&6; }
8573 else
8574   { echo "$as_me:$LINENO: result: no" >&5
8575 echo "${ECHO_T}no" >&6; }
8576 fi
8577
8578
8579   test -n "$GAS" && break
8580 done
8581
8582
8583 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8584 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8585 if test "${llvm_cv_link_use_r+set}" = set; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588    ac_ext=c
8589 ac_cpp='$CPP $CPPFLAGS'
8590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8593
8594   oldcflags="$CFLAGS"
8595   CFLAGS="$CFLAGS -Wl,-R."
8596   cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h.  */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h.  */
8602
8603 int
8604 main ()
8605 {
8606 int main() { return 0; }
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (ac_try="$ac_link"
8613 case "(($ac_try" in
8614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615   *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618   (eval "$ac_link") 2>conftest.er1
8619   ac_status=$?
8620   grep -v '^ *+' conftest.er1 >conftest.err
8621   rm -f conftest.er1
8622   cat conftest.err >&5
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); } &&
8625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626   { (case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_try") 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; } &&
8635          { ac_try='test -s conftest$ac_exeext'
8636   { (case "(($ac_try" in
8637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638   *) ac_try_echo=$ac_try;;
8639 esac
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641   (eval "$ac_try") 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; }; then
8645   llvm_cv_link_use_r=yes
8646 else
8647   echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650         llvm_cv_link_use_r=no
8651 fi
8652
8653 rm -f core conftest.err conftest.$ac_objext \
8654       conftest$ac_exeext conftest.$ac_ext
8655   CFLAGS="$oldcflags"
8656   ac_ext=c
8657 ac_cpp='$CPP $CPPFLAGS'
8658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8661
8662
8663 fi
8664 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8665 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8666 if test "$llvm_cv_link_use_r" = yes ; then
8667
8668 cat >>confdefs.h <<\_ACEOF
8669 #define HAVE_LINK_R 1
8670 _ACEOF
8671
8672   fi
8673
8674
8675 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8676 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8677 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680    ac_ext=c
8681 ac_cpp='$CPP $CPPFLAGS'
8682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685
8686   oldcflags="$CFLAGS"
8687   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8688   cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h.  */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h.  */
8694
8695 int
8696 main ()
8697 {
8698 int main() { return 0; }
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (ac_try="$ac_link"
8705 case "(($ac_try" in
8706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707   *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710   (eval "$ac_link") 2>conftest.er1
8711   ac_status=$?
8712   grep -v '^ *+' conftest.er1 >conftest.err
8713   rm -f conftest.er1
8714   cat conftest.err >&5
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); } &&
8717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8718   { (case "(($ac_try" in
8719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720   *) ac_try_echo=$ac_try;;
8721 esac
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723   (eval "$ac_try") 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; } &&
8727          { ac_try='test -s conftest$ac_exeext'
8728   { (case "(($ac_try" in
8729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730   *) ac_try_echo=$ac_try;;
8731 esac
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733   (eval "$ac_try") 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }; }; then
8737   llvm_cv_link_use_export_dynamic=yes
8738 else
8739   echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742         llvm_cv_link_use_export_dynamic=no
8743 fi
8744
8745 rm -f core conftest.err conftest.$ac_objext \
8746       conftest$ac_exeext conftest.$ac_ext
8747   CFLAGS="$oldcflags"
8748   ac_ext=c
8749 ac_cpp='$CPP $CPPFLAGS'
8750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8753
8754
8755 fi
8756 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8757 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8758 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8759
8760 cat >>confdefs.h <<\_ACEOF
8761 #define HAVE_LINK_EXPORT_DYNAMIC 1
8762 _ACEOF
8763
8764   fi
8765
8766
8767
8768
8769 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8770 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8771 if test "${ac_cv_c_const+set}" = set; then
8772   echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774   cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h.  */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h.  */
8780
8781 int
8782 main ()
8783 {
8784 /* FIXME: Include the comments suggested by Paul. */
8785 #ifndef __cplusplus
8786   /* Ultrix mips cc rejects this.  */
8787   typedef int charset[2];
8788   const charset x;
8789   /* SunOS 4.1.1 cc rejects this.  */
8790   char const *const *ccp;
8791   char **p;
8792   /* NEC SVR4.0.2 mips cc rejects this.  */
8793   struct point {int x, y;};
8794   static struct point const zero = {0,0};
8795   /* AIX XL C 1.02.0.0 rejects this.
8796      It does not let you subtract one const X* pointer from another in
8797      an arm of an if-expression whose if-part is not a constant
8798      expression */
8799   const char *g = "string";
8800   ccp = &g + (g ? g-g : 0);
8801   /* HPUX 7.0 cc rejects these. */
8802   ++ccp;
8803   p = (char**) ccp;
8804   ccp = (char const *const *) p;
8805   { /* SCO 3.2v4 cc rejects this.  */
8806     char *t;
8807     char const *s = 0 ? (char *) 0 : (char const *) 0;
8808
8809     *t++ = 0;
8810     if (s) return 0;
8811   }
8812   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8813     int x[] = {25, 17};
8814     const int *foo = &x[0];
8815     ++foo;
8816   }
8817   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8818     typedef const int *iptr;
8819     iptr p = 0;
8820     ++p;
8821   }
8822   { /* AIX XL C 1.02.0.0 rejects this saying
8823        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8824     struct s { int j; const int *ap[3]; };
8825     struct s *b; b->j = 5;
8826   }
8827   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8828     const int foo = 10;
8829     if (!foo) return 0;
8830   }
8831   return !x[0] && !zero.x;
8832 #endif
8833
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext
8839 if { (ac_try="$ac_compile"
8840 case "(($ac_try" in
8841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842   *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845   (eval "$ac_compile") 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } &&
8852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853   { (case "(($ac_try" in
8854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855   *) ac_try_echo=$ac_try;;
8856 esac
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858   (eval "$ac_try") 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; } &&
8862          { ac_try='test -s conftest.$ac_objext'
8863   { (case "(($ac_try" in
8864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865   *) ac_try_echo=$ac_try;;
8866 esac
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868   (eval "$ac_try") 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; }; then
8872   ac_cv_c_const=yes
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877         ac_cv_c_const=no
8878 fi
8879
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 fi
8882 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8883 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8884 if test $ac_cv_c_const = no; then
8885
8886 cat >>confdefs.h <<\_ACEOF
8887 #define const
8888 _ACEOF
8889
8890 fi
8891
8892
8893
8894
8895
8896
8897 ac_header_dirent=no
8898 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8899   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8900 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8901 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8903   echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905   cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911 #include <sys/types.h>
8912 #include <$ac_hdr>
8913
8914 int
8915 main ()
8916 {
8917 if ((DIR *) 0)
8918 return 0;
8919   ;
8920   return 0;
8921 }
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (ac_try="$ac_compile"
8925 case "(($ac_try" in
8926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927   *) ac_try_echo=$ac_try;;
8928 esac
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930   (eval "$ac_compile") 2>conftest.er1
8931   ac_status=$?
8932   grep -v '^ *+' conftest.er1 >conftest.err
8933   rm -f conftest.er1
8934   cat conftest.err >&5
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); } &&
8937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8938   { (case "(($ac_try" in
8939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940   *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943   (eval "$ac_try") 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; } &&
8947          { ac_try='test -s conftest.$ac_objext'
8948   { (case "(($ac_try" in
8949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950   *) ac_try_echo=$ac_try;;
8951 esac
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953   (eval "$ac_try") 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; }; then
8957   eval "$as_ac_Header=yes"
8958 else
8959   echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962         eval "$as_ac_Header=no"
8963 fi
8964
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 fi
8967 ac_res=`eval echo '${'$as_ac_Header'}'`
8968                { echo "$as_me:$LINENO: result: $ac_res" >&5
8969 echo "${ECHO_T}$ac_res" >&6; }
8970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8971   cat >>confdefs.h <<_ACEOF
8972 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8973 _ACEOF
8974
8975 ac_header_dirent=$ac_hdr; break
8976 fi
8977
8978 done
8979 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8980 if test $ac_header_dirent = dirent.h; then
8981   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8982 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8983 if test "${ac_cv_search_opendir+set}" = set; then
8984   echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986   ac_func_search_save_LIBS=$LIBS
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h.  */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h.  */
8993
8994 /* Override any GCC internal prototype to avoid an error.
8995    Use char because int might match the return type of a GCC
8996    builtin and then its argument prototype would still apply.  */
8997 #ifdef __cplusplus
8998 extern "C"
8999 #endif
9000 char opendir ();
9001 int
9002 main ()
9003 {
9004 return opendir ();
9005   ;
9006   return 0;
9007 }
9008 _ACEOF
9009 for ac_lib in '' dir; do
9010   if test -z "$ac_lib"; then
9011     ac_res="none required"
9012   else
9013     ac_res=-l$ac_lib
9014     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9015   fi
9016   rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (ac_try="$ac_link"
9018 case "(($ac_try" in
9019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020   *) ac_try_echo=$ac_try;;
9021 esac
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023   (eval "$ac_link") 2>conftest.er1
9024   ac_status=$?
9025   grep -v '^ *+' conftest.er1 >conftest.err
9026   rm -f conftest.er1
9027   cat conftest.err >&5
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); } &&
9030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9031   { (case "(($ac_try" in
9032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033   *) ac_try_echo=$ac_try;;
9034 esac
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036   (eval "$ac_try") 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); }; } &&
9040          { ac_try='test -s conftest$ac_exeext'
9041   { (case "(($ac_try" in
9042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043   *) ac_try_echo=$ac_try;;
9044 esac
9045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046   (eval "$ac_try") 2>&5
9047   ac_status=$?
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); }; }; then
9050   ac_cv_search_opendir=$ac_res
9051 else
9052   echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055
9056 fi
9057
9058 rm -f core conftest.err conftest.$ac_objext \
9059       conftest$ac_exeext
9060   if test "${ac_cv_search_opendir+set}" = set; then
9061   break
9062 fi
9063 done
9064 if test "${ac_cv_search_opendir+set}" = set; then
9065   :
9066 else
9067   ac_cv_search_opendir=no
9068 fi
9069 rm conftest.$ac_ext
9070 LIBS=$ac_func_search_save_LIBS
9071 fi
9072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9074 ac_res=$ac_cv_search_opendir
9075 if test "$ac_res" != no; then
9076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9077
9078 fi
9079
9080 else
9081   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9083 if test "${ac_cv_search_opendir+set}" = set; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086   ac_func_search_save_LIBS=$LIBS
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h.  */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h.  */
9093
9094 /* Override any GCC internal prototype to avoid an error.
9095    Use char because int might match the return type of a GCC
9096    builtin and then its argument prototype would still apply.  */
9097 #ifdef __cplusplus
9098 extern "C"
9099 #endif
9100 char opendir ();
9101 int
9102 main ()
9103 {
9104 return opendir ();
9105   ;
9106   return 0;
9107 }
9108 _ACEOF
9109 for ac_lib in '' x; do
9110   if test -z "$ac_lib"; then
9111     ac_res="none required"
9112   else
9113     ac_res=-l$ac_lib
9114     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9115   fi
9116   rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (ac_try="$ac_link"
9118 case "(($ac_try" in
9119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120   *) ac_try_echo=$ac_try;;
9121 esac
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123   (eval "$ac_link") 2>conftest.er1
9124   ac_status=$?
9125   grep -v '^ *+' conftest.er1 >conftest.err
9126   rm -f conftest.er1
9127   cat conftest.err >&5
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } &&
9130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9131   { (case "(($ac_try" in
9132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133   *) ac_try_echo=$ac_try;;
9134 esac
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136   (eval "$ac_try") 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; } &&
9140          { ac_try='test -s conftest$ac_exeext'
9141   { (case "(($ac_try" in
9142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143   *) ac_try_echo=$ac_try;;
9144 esac
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146   (eval "$ac_try") 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; }; then
9150   ac_cv_search_opendir=$ac_res
9151 else
9152   echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9154
9155
9156 fi
9157
9158 rm -f core conftest.err conftest.$ac_objext \
9159       conftest$ac_exeext
9160   if test "${ac_cv_search_opendir+set}" = set; then
9161   break
9162 fi
9163 done
9164 if test "${ac_cv_search_opendir+set}" = set; then
9165   :
9166 else
9167   ac_cv_search_opendir=no
9168 fi
9169 rm conftest.$ac_ext
9170 LIBS=$ac_func_search_save_LIBS
9171 fi
9172 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9173 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9174 ac_res=$ac_cv_search_opendir
9175 if test "$ac_res" != no; then
9176   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9177
9178 fi
9179
9180 fi
9181
9182
9183 for ac_header in dlfcn.h
9184 do
9185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9187   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 fi
9192 ac_res=`eval echo '${'$as_ac_Header'}'`
9193                { echo "$as_me:$LINENO: result: $ac_res" >&5
9194 echo "${ECHO_T}$ac_res" >&6; }
9195 else
9196   # Is the header compilable?
9197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h.  */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h.  */
9205 $ac_includes_default
9206 #include <$ac_header>
9207 _ACEOF
9208 rm -f conftest.$ac_objext
9209 if { (ac_try="$ac_compile"
9210 case "(($ac_try" in
9211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212   *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215   (eval "$ac_compile") 2>conftest.er1
9216   ac_status=$?
9217   grep -v '^ *+' conftest.er1 >conftest.err
9218   rm -f conftest.er1
9219   cat conftest.err >&5
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); } &&
9222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9223   { (case "(($ac_try" in
9224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225   *) ac_try_echo=$ac_try;;
9226 esac
9227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228   (eval "$ac_try") 2>&5
9229   ac_status=$?
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); }; } &&
9232          { ac_try='test -s conftest.$ac_objext'
9233   { (case "(($ac_try" in
9234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235   *) ac_try_echo=$ac_try;;
9236 esac
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238   (eval "$ac_try") 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); }; }; then
9242   ac_header_compiler=yes
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247         ac_header_compiler=no
9248 fi
9249
9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9252 echo "${ECHO_T}$ac_header_compiler" >&6; }
9253
9254 # Is the header present?
9255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h.  */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h.  */
9263 #include <$ac_header>
9264 _ACEOF
9265 if { (ac_try="$ac_cpp conftest.$ac_ext"
9266 case "(($ac_try" in
9267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268   *) ac_try_echo=$ac_try;;
9269 esac
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9272   ac_status=$?
9273   grep -v '^ *+' conftest.er1 >conftest.err
9274   rm -f conftest.er1
9275   cat conftest.err >&5
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); } >/dev/null; then
9278   if test -s conftest.err; then
9279     ac_cpp_err=$ac_c_preproc_warn_flag
9280     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9281   else
9282     ac_cpp_err=
9283   fi
9284 else
9285   ac_cpp_err=yes
9286 fi
9287 if test -z "$ac_cpp_err"; then
9288   ac_header_preproc=yes
9289 else
9290   echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9292
9293   ac_header_preproc=no
9294 fi
9295
9296 rm -f conftest.err conftest.$ac_ext
9297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9298 echo "${ECHO_T}$ac_header_preproc" >&6; }
9299
9300 # So?  What about this header?
9301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9302   yes:no: )
9303     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9307     ac_header_preproc=yes
9308     ;;
9309   no:yes:* )
9310     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9312     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9313 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9314     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9316     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9317 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9320     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9322     ( cat <<\_ASBOX
9323 ## ----------------------------------- ##
9324 ## Report this to llvmbugs@cs.uiuc.edu ##
9325 ## ----------------------------------- ##
9326 _ASBOX
9327      ) | sed "s/^/$as_me: WARNING:     /" >&2
9328     ;;
9329 esac
9330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9333   echo $ECHO_N "(cached) $ECHO_C" >&6
9334 else
9335   eval "$as_ac_Header=\$ac_header_preproc"
9336 fi
9337 ac_res=`eval echo '${'$as_ac_Header'}'`
9338                { echo "$as_me:$LINENO: result: $ac_res" >&5
9339 echo "${ECHO_T}$ac_res" >&6; }
9340
9341 fi
9342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9343   cat >>confdefs.h <<_ACEOF
9344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9345 _ACEOF
9346
9347 fi
9348
9349 done
9350
9351 # Check whether --enable-ltdl-install was given.
9352 if test "${enable_ltdl_install+set}" = set; then
9353   enableval=$enable_ltdl_install;
9354 fi
9355
9356
9357
9358
9359 if test x"${enable_ltdl_install-no}" != xno; then
9360   INSTALL_LTDL_TRUE=
9361   INSTALL_LTDL_FALSE='#'
9362 else
9363   INSTALL_LTDL_TRUE='#'
9364   INSTALL_LTDL_FALSE=
9365 fi
9366
9367
9368
9369 if test x"${enable_ltdl_convenience-no}" != xno; then
9370   CONVENIENCE_LTDL_TRUE=
9371   CONVENIENCE_LTDL_FALSE='#'
9372 else
9373   CONVENIENCE_LTDL_TRUE='#'
9374   CONVENIENCE_LTDL_FALSE=
9375 fi
9376
9377
9378 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9379 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9380 library_names_spec=
9381 libname_spec='lib$name'
9382 soname_spec=
9383 shrext_cmds=".so"
9384 postinstall_cmds=
9385 postuninstall_cmds=
9386 finish_cmds=
9387 finish_eval=
9388 shlibpath_var=
9389 shlibpath_overrides_runpath=unknown
9390 version_type=none
9391 dynamic_linker="$host_os ld.so"
9392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9393 if test "$GCC" = yes; then
9394   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9395   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9396     # if the path contains ";" then we assume it to be the separator
9397     # otherwise default to the standard path separator (i.e. ":") - it is
9398     # assumed that no part of a normal pathname contains ";" but that should
9399     # okay in the real world where ";" in dirpaths is itself problematic.
9400     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9401   else
9402     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9403   fi
9404 else
9405   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9406 fi
9407 need_lib_prefix=unknown
9408 hardcode_into_libs=no
9409
9410 # when you set need_version to no, make sure it does not cause -set_version
9411 # flags to be left without arguments
9412 need_version=unknown
9413
9414 case $host_os in
9415 aix3*)
9416   version_type=linux
9417   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9418   shlibpath_var=LIBPATH
9419
9420   # AIX 3 has no versioning support, so we append a major version to the name.
9421   soname_spec='${libname}${release}${shared_ext}$major'
9422   ;;
9423
9424 aix4* | aix5*)
9425   version_type=linux
9426   need_lib_prefix=no
9427   need_version=no
9428   hardcode_into_libs=yes
9429   if test "$host_cpu" = ia64; then
9430     # AIX 5 supports IA64
9431     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9432     shlibpath_var=LD_LIBRARY_PATH
9433   else
9434     # With GCC up to 2.95.x, collect2 would create an import file
9435     # for dependence libraries.  The import file would start with
9436     # the line `#! .'.  This would cause the generated library to
9437     # depend on `.', always an invalid library.  This was fixed in
9438     # development snapshots of GCC prior to 3.0.
9439     case $host_os in
9440       aix4 | aix4.[01] | aix4.[01].*)
9441       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9442            echo ' yes '
9443            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9444         :
9445       else
9446         can_build_shared=no
9447       fi
9448       ;;
9449     esac
9450     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9451     # soname into executable. Probably we can add versioning support to
9452     # collect2, so additional links can be useful in future.
9453     if test "$aix_use_runtimelinking" = yes; then
9454       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9455       # instead of lib<name>.a to let people know that these are not
9456       # typical AIX shared libraries.
9457       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458     else
9459       # We preserve .a as extension for shared libraries through AIX4.2
9460       # and later when we are not doing run time linking.
9461       library_names_spec='${libname}${release}.a $libname.a'
9462       soname_spec='${libname}${release}${shared_ext}$major'
9463     fi
9464     shlibpath_var=LIBPATH
9465   fi
9466   ;;
9467
9468 amigaos*)
9469   library_names_spec='$libname.ixlibrary $libname.a'
9470   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9471   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'
9472   ;;
9473
9474 beos*)
9475   library_names_spec='${libname}${shared_ext}'
9476   dynamic_linker="$host_os ld.so"
9477   shlibpath_var=LIBRARY_PATH
9478   ;;
9479
9480 bsdi[45]*)
9481   version_type=linux
9482   need_version=no
9483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484   soname_spec='${libname}${release}${shared_ext}$major'
9485   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9486   shlibpath_var=LD_LIBRARY_PATH
9487   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9488   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9489   # the default ld.so.conf also contains /usr/contrib/lib and
9490   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9491   # libtool to hard-code these into programs
9492   ;;
9493
9494 cygwin* | mingw* | pw32*)
9495   version_type=windows
9496   shrext_cmds=".dll"
9497   need_version=no
9498   need_lib_prefix=no
9499
9500   case $GCC,$host_os in
9501   yes,cygwin* | yes,mingw* | yes,pw32*)
9502     library_names_spec='$libname.dll.a'
9503     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9504     postinstall_cmds='base_file=`basename \${file}`~
9505       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9506       dldir=$destdir/`dirname \$dlpath`~
9507       test -d \$dldir || mkdir -p \$dldir~
9508       $install_prog $dir/$dlname \$dldir/$dlname~
9509       chmod a+x \$dldir/$dlname'
9510     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9511       dlpath=$dir/\$dldll~
9512        $rm \$dlpath'
9513     shlibpath_overrides_runpath=yes
9514
9515     case $host_os in
9516     cygwin*)
9517       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9518       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9519       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9520       ;;
9521     mingw*)
9522       # MinGW DLLs use traditional 'lib' prefix
9523       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9524       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9525       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9526         # It is most probably a Windows format PATH printed by
9527         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9528         # path with ; separators, and with drive letters. We can handle the
9529         # drive letters (cygwin fileutils understands them), so leave them,
9530         # especially as we might pass files found there to a mingw objdump,
9531         # which wouldn't understand a cygwinified path. Ahh.
9532         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9533       else
9534         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9535       fi
9536       ;;
9537     pw32*)
9538       # pw32 DLLs use 'pw' prefix rather than 'lib'
9539       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9540       ;;
9541     esac
9542     ;;
9543
9544   *)
9545     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9546     ;;
9547   esac
9548   dynamic_linker='Win32 ld.exe'
9549   # FIXME: first we should search . and the directory the executable is in
9550   shlibpath_var=PATH
9551   ;;
9552
9553 darwin* | rhapsody*)
9554   dynamic_linker="$host_os dyld"
9555   version_type=darwin
9556   need_lib_prefix=no
9557   need_version=no
9558   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9559   soname_spec='${libname}${release}${major}$shared_ext'
9560   shlibpath_overrides_runpath=yes
9561   shlibpath_var=DYLD_LIBRARY_PATH
9562   shrext_cmds='.dylib'
9563   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9564   if test "$GCC" = yes; then
9565     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"`
9566   else
9567     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9568   fi
9569   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9570   ;;
9571
9572 dgux*)
9573   version_type=linux
9574   need_lib_prefix=no
9575   need_version=no
9576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9577   soname_spec='${libname}${release}${shared_ext}$major'
9578   shlibpath_var=LD_LIBRARY_PATH
9579   ;;
9580
9581 freebsd1*)
9582   dynamic_linker=no
9583   ;;
9584
9585 kfreebsd*-gnu)
9586   version_type=linux
9587   need_lib_prefix=no
9588   need_version=no
9589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9590   soname_spec='${libname}${release}${shared_ext}$major'
9591   shlibpath_var=LD_LIBRARY_PATH
9592   shlibpath_overrides_runpath=no
9593   hardcode_into_libs=yes
9594   dynamic_linker='GNU ld.so'
9595   ;;
9596
9597 freebsd* | dragonfly*)
9598   # DragonFly does not have aout.  When/if they implement a new
9599   # versioning mechanism, adjust this.
9600   if test -x /usr/bin/objformat; then
9601     objformat=`/usr/bin/objformat`
9602   else
9603     case $host_os in
9604     freebsd[123]*) objformat=aout ;;
9605     *) objformat=elf ;;
9606     esac
9607   fi
9608   version_type=freebsd-$objformat
9609   case $version_type in
9610     freebsd-elf*)
9611       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9612       need_version=no
9613       need_lib_prefix=no
9614       ;;
9615     freebsd-*)
9616       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9617       need_version=yes
9618       ;;
9619   esac
9620   shlibpath_var=LD_LIBRARY_PATH
9621   case $host_os in
9622   freebsd2*)
9623     shlibpath_overrides_runpath=yes
9624     ;;
9625   freebsd3.[01]* | freebsdelf3.[01]*)
9626     shlibpath_overrides_runpath=yes
9627     hardcode_into_libs=yes
9628     ;;
9629   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9630   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9631     shlibpath_overrides_runpath=no
9632     hardcode_into_libs=yes
9633     ;;
9634   freebsd*) # from 4.6 on
9635     shlibpath_overrides_runpath=yes
9636     hardcode_into_libs=yes
9637     ;;
9638   esac
9639   ;;
9640
9641 gnu*)
9642   version_type=linux
9643   need_lib_prefix=no
9644   need_version=no
9645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9646   soname_spec='${libname}${release}${shared_ext}$major'
9647   shlibpath_var=LD_LIBRARY_PATH
9648   hardcode_into_libs=yes
9649   ;;
9650
9651 hpux9* | hpux10* | hpux11*)
9652   # Give a soname corresponding to the major version so that dld.sl refuses to
9653   # link against other versions.
9654   version_type=sunos
9655   need_lib_prefix=no
9656   need_version=no
9657   case $host_cpu in
9658   ia64*)
9659     shrext_cmds='.so'
9660     hardcode_into_libs=yes
9661     dynamic_linker="$host_os dld.so"
9662     shlibpath_var=LD_LIBRARY_PATH
9663     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665     soname_spec='${libname}${release}${shared_ext}$major'
9666     if test "X$HPUX_IA64_MODE" = X32; then
9667       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9668     else
9669       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9670     fi
9671     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9672     ;;
9673    hppa*64*)
9674      shrext_cmds='.sl'
9675      hardcode_into_libs=yes
9676      dynamic_linker="$host_os dld.sl"
9677      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9678      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9679      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680      soname_spec='${libname}${release}${shared_ext}$major'
9681      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9682      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9683      ;;
9684    *)
9685     shrext_cmds='.sl'
9686     dynamic_linker="$host_os dld.sl"
9687     shlibpath_var=SHLIB_PATH
9688     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690     soname_spec='${libname}${release}${shared_ext}$major'
9691     ;;
9692   esac
9693   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9694   postinstall_cmds='chmod 555 $lib'
9695   ;;
9696
9697 interix3*)
9698   version_type=linux
9699   need_lib_prefix=no
9700   need_version=no
9701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9702   soname_spec='${libname}${release}${shared_ext}$major'
9703   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9704   shlibpath_var=LD_LIBRARY_PATH
9705   shlibpath_overrides_runpath=no
9706   hardcode_into_libs=yes
9707   ;;
9708
9709 irix5* | irix6* | nonstopux*)
9710   case $host_os in
9711     nonstopux*) version_type=nonstopux ;;
9712     *)
9713         if test "$lt_cv_prog_gnu_ld" = yes; then
9714                 version_type=linux
9715         else
9716                 version_type=irix
9717         fi ;;
9718   esac
9719   need_lib_prefix=no
9720   need_version=no
9721   soname_spec='${libname}${release}${shared_ext}$major'
9722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9723   case $host_os in
9724   irix5* | nonstopux*)
9725     libsuff= shlibsuff=
9726     ;;
9727   *)
9728     case $LD in # libtool.m4 will add one of these switches to LD
9729     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9730       libsuff= shlibsuff= libmagic=32-bit;;
9731     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9732       libsuff=32 shlibsuff=N32 libmagic=N32;;
9733     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9734       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9735     *) libsuff= shlibsuff= libmagic=never-match;;
9736     esac
9737     ;;
9738   esac
9739   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9740   shlibpath_overrides_runpath=no
9741   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9742   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9743   hardcode_into_libs=yes
9744   ;;
9745
9746 # No shared lib support for Linux oldld, aout, or coff.
9747 linux*oldld* | linux*aout* | linux*coff*)
9748   dynamic_linker=no
9749   ;;
9750
9751 # This must be Linux ELF.
9752 linux*)
9753   version_type=linux
9754   need_lib_prefix=no
9755   need_version=no
9756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9757   soname_spec='${libname}${release}${shared_ext}$major'
9758   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9759   shlibpath_var=LD_LIBRARY_PATH
9760   shlibpath_overrides_runpath=no
9761   # This implies no fast_install, which is unacceptable.
9762   # Some rework will be needed to allow for fast_install
9763   # before this can be enabled.
9764   hardcode_into_libs=yes
9765
9766   # Append ld.so.conf contents to the search path
9767   if test -f /etc/ld.so.conf; then
9768     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' ' '`
9769     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9770   fi
9771
9772   # We used to test for /lib/ld.so.1 and disable shared libraries on
9773   # powerpc, because MkLinux only supported shared libraries with the
9774   # GNU dynamic linker.  Since this was broken with cross compilers,
9775   # most powerpc-linux boxes support dynamic linking these days and
9776   # people can always --disable-shared, the test was removed, and we
9777   # assume the GNU/Linux dynamic linker is in use.
9778   dynamic_linker='GNU/Linux ld.so'
9779   ;;
9780
9781 knetbsd*-gnu)
9782   version_type=linux
9783   need_lib_prefix=no
9784   need_version=no
9785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9786   soname_spec='${libname}${release}${shared_ext}$major'
9787   shlibpath_var=LD_LIBRARY_PATH
9788   shlibpath_overrides_runpath=no
9789   hardcode_into_libs=yes
9790   dynamic_linker='GNU ld.so'
9791   ;;
9792
9793 netbsd*)
9794   version_type=sunos
9795   need_lib_prefix=no
9796   need_version=no
9797   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9799     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9800     dynamic_linker='NetBSD (a.out) ld.so'
9801   else
9802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9803     soname_spec='${libname}${release}${shared_ext}$major'
9804     dynamic_linker='NetBSD ld.elf_so'
9805   fi
9806   shlibpath_var=LD_LIBRARY_PATH
9807   shlibpath_overrides_runpath=yes
9808   hardcode_into_libs=yes
9809   ;;
9810
9811 newsos6)
9812   version_type=linux
9813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814   shlibpath_var=LD_LIBRARY_PATH
9815   shlibpath_overrides_runpath=yes
9816   ;;
9817
9818 nto-qnx*)
9819   version_type=linux
9820   need_lib_prefix=no
9821   need_version=no
9822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823   soname_spec='${libname}${release}${shared_ext}$major'
9824   shlibpath_var=LD_LIBRARY_PATH
9825   shlibpath_overrides_runpath=yes
9826   ;;
9827
9828 openbsd*)
9829   version_type=sunos
9830   sys_lib_dlsearch_path_spec="/usr/lib"
9831   need_lib_prefix=no
9832   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9833   case $host_os in
9834     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9835     *)                         need_version=no  ;;
9836   esac
9837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9838   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9839   shlibpath_var=LD_LIBRARY_PATH
9840   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9841     case $host_os in
9842       openbsd2.[89] | openbsd2.[89].*)
9843         shlibpath_overrides_runpath=no
9844         ;;
9845       *)
9846         shlibpath_overrides_runpath=yes
9847         ;;
9848       esac
9849   else
9850     shlibpath_overrides_runpath=yes
9851   fi
9852   ;;
9853
9854 os2*)
9855   libname_spec='$name'
9856   shrext_cmds=".dll"
9857   need_lib_prefix=no
9858   library_names_spec='$libname${shared_ext} $libname.a'
9859   dynamic_linker='OS/2 ld.exe'
9860   shlibpath_var=LIBPATH
9861   ;;
9862
9863 osf3* | osf4* | osf5*)
9864   version_type=osf
9865   need_lib_prefix=no
9866   need_version=no
9867   soname_spec='${libname}${release}${shared_ext}$major'
9868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869   shlibpath_var=LD_LIBRARY_PATH
9870   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9871   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9872   ;;
9873
9874 solaris*)
9875   version_type=linux
9876   need_lib_prefix=no
9877   need_version=no
9878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879   soname_spec='${libname}${release}${shared_ext}$major'
9880   shlibpath_var=LD_LIBRARY_PATH
9881   shlibpath_overrides_runpath=yes
9882   hardcode_into_libs=yes
9883   # ldd complains unless libraries are executable
9884   postinstall_cmds='chmod +x $lib'
9885   ;;
9886
9887 sunos4*)
9888   version_type=sunos
9889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9890   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9891   shlibpath_var=LD_LIBRARY_PATH
9892   shlibpath_overrides_runpath=yes
9893   if test "$with_gnu_ld" = yes; then
9894     need_lib_prefix=no
9895   fi
9896   need_version=yes
9897   ;;
9898
9899 sysv4 | sysv4.3*)
9900   version_type=linux
9901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902   soname_spec='${libname}${release}${shared_ext}$major'
9903   shlibpath_var=LD_LIBRARY_PATH
9904   case $host_vendor in
9905     sni)
9906       shlibpath_overrides_runpath=no
9907       need_lib_prefix=no
9908       export_dynamic_flag_spec='${wl}-Blargedynsym'
9909       runpath_var=LD_RUN_PATH
9910       ;;
9911     siemens)
9912       need_lib_prefix=no
9913       ;;
9914     motorola)
9915       need_lib_prefix=no
9916       need_version=no
9917       shlibpath_overrides_runpath=no
9918       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9919       ;;
9920   esac
9921   ;;
9922
9923 sysv4*MP*)
9924   if test -d /usr/nec ;then
9925     version_type=linux
9926     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9927     soname_spec='$libname${shared_ext}.$major'
9928     shlibpath_var=LD_LIBRARY_PATH
9929   fi
9930   ;;
9931
9932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9933   version_type=freebsd-elf
9934   need_lib_prefix=no
9935   need_version=no
9936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9937   soname_spec='${libname}${release}${shared_ext}$major'
9938   shlibpath_var=LD_LIBRARY_PATH
9939   hardcode_into_libs=yes
9940   if test "$with_gnu_ld" = yes; then
9941     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9942     shlibpath_overrides_runpath=no
9943   else
9944     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9945     shlibpath_overrides_runpath=yes
9946     case $host_os in
9947       sco3.2v5*)
9948         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9949         ;;
9950     esac
9951   fi
9952   sys_lib_dlsearch_path_spec='/usr/lib'
9953   ;;
9954
9955 uts4*)
9956   version_type=linux
9957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958   soname_spec='${libname}${release}${shared_ext}$major'
9959   shlibpath_var=LD_LIBRARY_PATH
9960   ;;
9961
9962 *)
9963   dynamic_linker=no
9964   ;;
9965 esac
9966 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9967 echo "${ECHO_T}$dynamic_linker" >&6; }
9968 test "$dynamic_linker" = no && can_build_shared=no
9969
9970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9971 if test "$GCC" = yes; then
9972   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9973 fi
9974
9975
9976 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9977 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9978 if test "${libltdl_cv_shlibext+set}" = set; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981
9982 module=yes
9983 eval libltdl_cv_shlibext=$shrext_cmds
9984
9985 fi
9986 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9987 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9988 if test -n "$libltdl_cv_shlibext"; then
9989
9990 cat >>confdefs.h <<_ACEOF
9991 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9992 _ACEOF
9993
9994 fi
9995
9996
9997 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9998 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9999 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10000   echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002   libltdl_cv_shlibpath_var="$shlibpath_var"
10003 fi
10004 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10005 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10006 if test -n "$libltdl_cv_shlibpath_var"; then
10007
10008 cat >>confdefs.h <<_ACEOF
10009 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10010 _ACEOF
10011
10012 fi
10013
10014
10015 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10016 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10017 if test "${libltdl_cv_sys_search_path+set}" = set; then
10018   echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10021 fi
10022 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10023 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10024 if test -n "$libltdl_cv_sys_search_path"; then
10025   sys_search_path=
10026   for dir in $libltdl_cv_sys_search_path; do
10027     if test -z "$sys_search_path"; then
10028       sys_search_path="$dir"
10029     else
10030       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10031     fi
10032   done
10033
10034 cat >>confdefs.h <<_ACEOF
10035 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10036 _ACEOF
10037
10038 fi
10039
10040 { echo "$as_me:$LINENO: checking for objdir" >&5
10041 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10042 if test "${libltdl_cv_objdir+set}" = set; then
10043   echo $ECHO_N "(cached) $ECHO_C" >&6
10044 else
10045   libltdl_cv_objdir="$objdir"
10046   if test -n "$objdir"; then
10047     :
10048   else
10049     rm -f .libs 2>/dev/null
10050     mkdir .libs 2>/dev/null
10051     if test -d .libs; then
10052       libltdl_cv_objdir=.libs
10053     else
10054       # MS-DOS does not allow filenames that begin with a dot.
10055       libltdl_cv_objdir=_libs
10056     fi
10057   rmdir .libs 2>/dev/null
10058   fi
10059
10060 fi
10061 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10062 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10063
10064 cat >>confdefs.h <<_ACEOF
10065 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10066 _ACEOF
10067
10068
10069
10070
10071
10072
10073 # Check for command to grab the raw symbol name followed by C symbol from nm.
10074 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10075 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10076 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079
10080 # These are sane defaults that work on at least a few old systems.
10081 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10082
10083 # Character class describing NM global symbol codes.
10084 symcode='[BCDEGRST]'
10085
10086 # Regexp to match symbols that can be accessed directly from C.
10087 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10088
10089 # Transform an extracted symbol line into a proper C declaration
10090 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10091
10092 # Transform an extracted symbol line into symbol name and symbol address
10093 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'"
10094
10095 # Define system-specific variables.
10096 case $host_os in
10097 aix*)
10098   symcode='[BCDT]'
10099   ;;
10100 cygwin* | mingw* | pw32*)
10101   symcode='[ABCDGISTW]'
10102   ;;
10103 hpux*) # Its linker distinguishes data from code symbols
10104   if test "$host_cpu" = ia64; then
10105     symcode='[ABCDEGRST]'
10106   fi
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   ;;
10110 linux*)
10111   if test "$host_cpu" = ia64; then
10112     symcode='[ABCDGIRSTW]'
10113     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10114     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'"
10115   fi
10116   ;;
10117 irix* | nonstopux*)
10118   symcode='[BCDEGRST]'
10119   ;;
10120 osf*)
10121   symcode='[BCDEGQRST]'
10122   ;;
10123 solaris*)
10124   symcode='[BDRT]'
10125   ;;
10126 sco3.2v5*)
10127   symcode='[DT]'
10128   ;;
10129 sysv4.2uw2*)
10130   symcode='[DT]'
10131   ;;
10132 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10133   symcode='[ABDT]'
10134   ;;
10135 sysv4)
10136   symcode='[DFNSTU]'
10137   ;;
10138 esac
10139
10140 # Handle CRLF in mingw tool chain
10141 opt_cr=
10142 case $build_os in
10143 mingw*)
10144   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10145   ;;
10146 esac
10147
10148 # If we're using GNU nm, then use its standard symbol codes.
10149 case `$NM -V 2>&1` in
10150 *GNU* | *'with BFD'*)
10151   symcode='[ABCDGIRSTW]' ;;
10152 esac
10153
10154 # Try without a prefix undercore, then with it.
10155 for ac_symprfx in "" "_"; do
10156
10157   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10158   symxfrm="\\1 $ac_symprfx\\2 \\2"
10159
10160   # Write the raw and C identifiers.
10161   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10162
10163   # Check to see that the pipe works correctly.
10164   pipe_works=no
10165
10166   rm -f conftest*
10167   cat > conftest.$ac_ext <<EOF
10168 #ifdef __cplusplus
10169 extern "C" {
10170 #endif
10171 char nm_test_var;
10172 void nm_test_func(){}
10173 #ifdef __cplusplus
10174 }
10175 #endif
10176 int main(){nm_test_var='a';nm_test_func();return(0);}
10177 EOF
10178
10179   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10180   (eval $ac_compile) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; then
10184     # Now try to grab the symbols.
10185     nlist=conftest.nm
10186     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10187   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); } && test -s "$nlist"; then
10191       # Try sorting and uniquifying the output.
10192       if sort "$nlist" | uniq > "$nlist"T; then
10193         mv -f "$nlist"T "$nlist"
10194       else
10195         rm -f "$nlist"T
10196       fi
10197
10198       # Make sure that we snagged all the symbols we need.
10199       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10200         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10201           cat <<EOF > conftest.$ac_ext
10202 #ifdef __cplusplus
10203 extern "C" {
10204 #endif
10205
10206 EOF
10207           # Now generate the symbol file.
10208           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10209
10210           cat <<EOF >> conftest.$ac_ext
10211 #if defined (__STDC__) && __STDC__
10212 # define lt_ptr_t void *
10213 #else
10214 # define lt_ptr_t char *
10215 # define const
10216 #endif
10217
10218 /* The mapping between symbol names and symbols. */
10219 const struct {
10220   const char *name;
10221   lt_ptr_t address;
10222 }
10223 lt_preloaded_symbols[] =
10224 {
10225 EOF
10226           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10227           cat <<\EOF >> conftest.$ac_ext
10228   {0, (lt_ptr_t) 0}
10229 };
10230
10231 #ifdef __cplusplus
10232 }
10233 #endif
10234 EOF
10235           # Now try linking the two files.
10236           mv conftest.$ac_objext conftstm.$ac_objext
10237           lt_save_LIBS="$LIBS"
10238           lt_save_CFLAGS="$CFLAGS"
10239           LIBS="conftstm.$ac_objext"
10240           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10241           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242   (eval $ac_link) 2>&5
10243   ac_status=$?
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10246             pipe_works=yes
10247           fi
10248           LIBS="$lt_save_LIBS"
10249           CFLAGS="$lt_save_CFLAGS"
10250         else
10251           echo "cannot find nm_test_func in $nlist" >&5
10252         fi
10253       else
10254         echo "cannot find nm_test_var in $nlist" >&5
10255       fi
10256     else
10257       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10258     fi
10259   else
10260     echo "$progname: failed program was:" >&5
10261     cat conftest.$ac_ext >&5
10262   fi
10263   rm -f conftest* conftst*
10264
10265   # Do not use the global_symbol_pipe unless it works.
10266   if test "$pipe_works" = yes; then
10267     break
10268   else
10269     lt_cv_sys_global_symbol_pipe=
10270   fi
10271 done
10272
10273 fi
10274
10275 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10276   lt_cv_sys_global_symbol_to_cdecl=
10277 fi
10278 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10279   { echo "$as_me:$LINENO: result: failed" >&5
10280 echo "${ECHO_T}failed" >&6; }
10281 else
10282   { echo "$as_me:$LINENO: result: ok" >&5
10283 echo "${ECHO_T}ok" >&6; }
10284 fi
10285
10286
10287 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10288 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10289 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10293     libltdl_cv_preloaded_symbols=yes
10294   else
10295     libltdl_cv_preloaded_symbols=no
10296   fi
10297
10298 fi
10299 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10300 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10301 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10302
10303 cat >>confdefs.h <<\_ACEOF
10304 #define HAVE_PRELOADED_SYMBOLS 1
10305 _ACEOF
10306
10307 fi
10308
10309 LIBADD_DL=
10310
10311 ac_ext=c
10312 ac_cpp='$CPP $CPPFLAGS'
10313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10316
10317
10318 { echo "$as_me:$LINENO: checking for shl_load" >&5
10319 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10320 if test "${ac_cv_func_shl_load+set}" = set; then
10321   echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323   cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h.  */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h.  */
10329 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10331 #define shl_load innocuous_shl_load
10332
10333 /* System header to define __stub macros and hopefully few prototypes,
10334     which can conflict with char shl_load (); below.
10335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336     <limits.h> exists even on freestanding compilers.  */
10337
10338 #ifdef __STDC__
10339 # include <limits.h>
10340 #else
10341 # include <assert.h>
10342 #endif
10343
10344 #undef shl_load
10345
10346 /* Override any GCC internal prototype to avoid an error.
10347    Use char because int might match the return type of a GCC
10348    builtin and then its argument prototype would still apply.  */
10349 #ifdef __cplusplus
10350 extern "C"
10351 #endif
10352 char shl_load ();
10353 /* The GNU C library defines this for functions which it implements
10354     to always fail with ENOSYS.  Some functions are actually named
10355     something starting with __ and the normal name is an alias.  */
10356 #if defined __stub_shl_load || defined __stub___shl_load
10357 choke me
10358 #endif
10359
10360 int
10361 main ()
10362 {
10363 return shl_load ();
10364   ;
10365   return 0;
10366 }
10367 _ACEOF
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (ac_try="$ac_link"
10370 case "(($ac_try" in
10371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372   *) ac_try_echo=$ac_try;;
10373 esac
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375   (eval "$ac_link") 2>conftest.er1
10376   ac_status=$?
10377   grep -v '^ *+' conftest.er1 >conftest.err
10378   rm -f conftest.er1
10379   cat conftest.err >&5
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); } &&
10382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10383   { (case "(($ac_try" in
10384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385   *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388   (eval "$ac_try") 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }; } &&
10392          { ac_try='test -s conftest$ac_exeext'
10393   { (case "(($ac_try" in
10394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395   *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398   (eval "$ac_try") 2>&5
10399   ac_status=$?
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); }; }; then
10402   ac_cv_func_shl_load=yes
10403 else
10404   echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10406
10407         ac_cv_func_shl_load=no
10408 fi
10409
10410 rm -f core conftest.err conftest.$ac_objext \
10411       conftest$ac_exeext conftest.$ac_ext
10412 fi
10413 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10414 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10415 if test $ac_cv_func_shl_load = yes; then
10416
10417 cat >>confdefs.h <<\_ACEOF
10418 #define HAVE_SHL_LOAD 1
10419 _ACEOF
10420
10421 else
10422   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10423 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10424 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427   ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-ldld  $LIBS"
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h.  */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h.  */
10435
10436 /* Override any GCC internal prototype to avoid an error.
10437    Use char because int might match the return type of a GCC
10438    builtin and then its argument prototype would still apply.  */
10439 #ifdef __cplusplus
10440 extern "C"
10441 #endif
10442 char shl_load ();
10443 int
10444 main ()
10445 {
10446 return shl_load ();
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455   *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458   (eval "$ac_link") 2>conftest.er1
10459   ac_status=$?
10460   grep -v '^ *+' conftest.er1 >conftest.err
10461   rm -f conftest.er1
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } &&
10465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466   { (case "(($ac_try" in
10467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468   *) ac_try_echo=$ac_try;;
10469 esac
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471   (eval "$ac_try") 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; } &&
10475          { ac_try='test -s conftest$ac_exeext'
10476   { (case "(($ac_try" in
10477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478   *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481   (eval "$ac_try") 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; }; then
10485   ac_cv_lib_dld_shl_load=yes
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490         ac_cv_lib_dld_shl_load=no
10491 fi
10492
10493 rm -f core conftest.err conftest.$ac_objext \
10494       conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10496 fi
10497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10498 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10499 if test $ac_cv_lib_dld_shl_load = yes; then
10500
10501 cat >>confdefs.h <<\_ACEOF
10502 #define HAVE_SHL_LOAD 1
10503 _ACEOF
10504
10505         LIBADD_DL="$LIBADD_DL -ldld"
10506 else
10507   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10508 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10509 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512   ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-ldl  $LIBS"
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h.  */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h.  */
10520
10521 /* Override any GCC internal prototype to avoid an error.
10522    Use char because int might match the return type of a GCC
10523    builtin and then its argument prototype would still apply.  */
10524 #ifdef __cplusplus
10525 extern "C"
10526 #endif
10527 char dlopen ();
10528 int
10529 main ()
10530 {
10531 return dlopen ();
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540   *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543   (eval "$ac_link") 2>conftest.er1
10544   ac_status=$?
10545   grep -v '^ *+' conftest.er1 >conftest.err
10546   rm -f conftest.er1
10547   cat conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551   { (case "(($ac_try" in
10552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553   *) ac_try_echo=$ac_try;;
10554 esac
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556   (eval "$ac_try") 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; } &&
10560          { ac_try='test -s conftest$ac_exeext'
10561   { (case "(($ac_try" in
10562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563   *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566   (eval "$ac_try") 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; }; then
10570   ac_cv_lib_dl_dlopen=yes
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575         ac_cv_lib_dl_dlopen=no
10576 fi
10577
10578 rm -f core conftest.err conftest.$ac_objext \
10579       conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10581 fi
10582 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10583 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10584 if test $ac_cv_lib_dl_dlopen = yes; then
10585
10586 cat >>confdefs.h <<\_ACEOF
10587 #define HAVE_LIBDL 1
10588 _ACEOF
10589
10590                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10591 else
10592   cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h.  */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h.  */
10598 #if HAVE_DLFCN_H
10599 #  include <dlfcn.h>
10600 #endif
10601
10602 int
10603 main ()
10604 {
10605 dlopen(0, 0);
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614   *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617   (eval "$ac_link") 2>conftest.er1
10618   ac_status=$?
10619   grep -v '^ *+' conftest.er1 >conftest.err
10620   rm -f conftest.er1
10621   cat conftest.err >&5
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); } &&
10624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625   { (case "(($ac_try" in
10626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627   *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630   (eval "$ac_try") 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; } &&
10634          { ac_try='test -s conftest$ac_exeext'
10635   { (case "(($ac_try" in
10636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637   *) ac_try_echo=$ac_try;;
10638 esac
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640   (eval "$ac_try") 2>&5
10641   ac_status=$?
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); }; }; then
10644
10645 cat >>confdefs.h <<\_ACEOF
10646 #define HAVE_LIBDL 1
10647 _ACEOF
10648  libltdl_cv_func_dlopen="yes"
10649 else
10650   echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10654 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10655 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10656   echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658   ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-lsvld  $LIBS"
10660 cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h.  */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h.  */
10666
10667 /* Override any GCC internal prototype to avoid an error.
10668    Use char because int might match the return type of a GCC
10669    builtin and then its argument prototype would still apply.  */
10670 #ifdef __cplusplus
10671 extern "C"
10672 #endif
10673 char dlopen ();
10674 int
10675 main ()
10676 {
10677 return dlopen ();
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (ac_try="$ac_link"
10684 case "(($ac_try" in
10685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686   *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689   (eval "$ac_link") 2>conftest.er1
10690   ac_status=$?
10691   grep -v '^ *+' conftest.er1 >conftest.err
10692   rm -f conftest.er1
10693   cat conftest.err >&5
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); } &&
10696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10697   { (case "(($ac_try" in
10698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699   *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702   (eval "$ac_try") 2>&5
10703   ac_status=$?
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); }; } &&
10706          { ac_try='test -s conftest$ac_exeext'
10707   { (case "(($ac_try" in
10708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709   *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712   (eval "$ac_try") 2>&5
10713   ac_status=$?
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); }; }; then
10716   ac_cv_lib_svld_dlopen=yes
10717 else
10718   echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10720
10721         ac_cv_lib_svld_dlopen=no
10722 fi
10723
10724 rm -f core conftest.err conftest.$ac_objext \
10725       conftest$ac_exeext conftest.$ac_ext
10726 LIBS=$ac_check_lib_save_LIBS
10727 fi
10728 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10729 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10730 if test $ac_cv_lib_svld_dlopen = yes; then
10731
10732 cat >>confdefs.h <<\_ACEOF
10733 #define HAVE_LIBDL 1
10734 _ACEOF
10735
10736                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10737 else
10738   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10739 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10740 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743   ac_check_lib_save_LIBS=$LIBS
10744 LIBS="-ldld  $LIBS"
10745 cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h.  */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h.  */
10751
10752 /* Override any GCC internal prototype to avoid an error.
10753    Use char because int might match the return type of a GCC
10754    builtin and then its argument prototype would still apply.  */
10755 #ifdef __cplusplus
10756 extern "C"
10757 #endif
10758 char dld_link ();
10759 int
10760 main ()
10761 {
10762 return dld_link ();
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (ac_try="$ac_link"
10769 case "(($ac_try" in
10770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771   *) ac_try_echo=$ac_try;;
10772 esac
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774   (eval "$ac_link") 2>conftest.er1
10775   ac_status=$?
10776   grep -v '^ *+' conftest.er1 >conftest.err
10777   rm -f conftest.er1
10778   cat conftest.err >&5
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); } &&
10781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10782   { (case "(($ac_try" in
10783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784   *) ac_try_echo=$ac_try;;
10785 esac
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787   (eval "$ac_try") 2>&5
10788   ac_status=$?
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); }; } &&
10791          { ac_try='test -s conftest$ac_exeext'
10792   { (case "(($ac_try" in
10793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794   *) ac_try_echo=$ac_try;;
10795 esac
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797   (eval "$ac_try") 2>&5
10798   ac_status=$?
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); }; }; then
10801   ac_cv_lib_dld_dld_link=yes
10802 else
10803   echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806         ac_cv_lib_dld_dld_link=no
10807 fi
10808
10809 rm -f core conftest.err conftest.$ac_objext \
10810       conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10812 fi
10813 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10814 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10815 if test $ac_cv_lib_dld_dld_link = yes; then
10816
10817 cat >>confdefs.h <<\_ACEOF
10818 #define HAVE_DLD 1
10819 _ACEOF
10820
10821                 LIBADD_DL="$LIBADD_DL -ldld"
10822 else
10823   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10824 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10825 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10826   echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828   cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h.  */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h.  */
10834 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10836 #define _dyld_func_lookup innocuous__dyld_func_lookup
10837
10838 /* System header to define __stub macros and hopefully few prototypes,
10839     which can conflict with char _dyld_func_lookup (); below.
10840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10841     <limits.h> exists even on freestanding compilers.  */
10842
10843 #ifdef __STDC__
10844 # include <limits.h>
10845 #else
10846 # include <assert.h>
10847 #endif
10848
10849 #undef _dyld_func_lookup
10850
10851 /* Override any GCC internal prototype to avoid an error.
10852    Use char because int might match the return type of a GCC
10853    builtin and then its argument prototype would still apply.  */
10854 #ifdef __cplusplus
10855 extern "C"
10856 #endif
10857 char _dyld_func_lookup ();
10858 /* The GNU C library defines this for functions which it implements
10859     to always fail with ENOSYS.  Some functions are actually named
10860     something starting with __ and the normal name is an alias.  */
10861 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10862 choke me
10863 #endif
10864
10865 int
10866 main ()
10867 {
10868 return _dyld_func_lookup ();
10869   ;
10870   return 0;
10871 }
10872 _ACEOF
10873 rm -f conftest.$ac_objext conftest$ac_exeext
10874 if { (ac_try="$ac_link"
10875 case "(($ac_try" in
10876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877   *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880   (eval "$ac_link") 2>conftest.er1
10881   ac_status=$?
10882   grep -v '^ *+' conftest.er1 >conftest.err
10883   rm -f conftest.er1
10884   cat conftest.err >&5
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); } &&
10887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10888   { (case "(($ac_try" in
10889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890   *) ac_try_echo=$ac_try;;
10891 esac
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893   (eval "$ac_try") 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); }; } &&
10897          { ac_try='test -s conftest$ac_exeext'
10898   { (case "(($ac_try" in
10899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900   *) ac_try_echo=$ac_try;;
10901 esac
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903   (eval "$ac_try") 2>&5
10904   ac_status=$?
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); }; }; then
10907   ac_cv_func__dyld_func_lookup=yes
10908 else
10909   echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10911
10912         ac_cv_func__dyld_func_lookup=no
10913 fi
10914
10915 rm -f core conftest.err conftest.$ac_objext \
10916       conftest$ac_exeext conftest.$ac_ext
10917 fi
10918 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10919 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10920 if test $ac_cv_func__dyld_func_lookup = yes; then
10921
10922 cat >>confdefs.h <<\_ACEOF
10923 #define HAVE_DYLD 1
10924 _ACEOF
10925
10926 fi
10927
10928
10929 fi
10930
10931
10932 fi
10933
10934
10935 fi
10936
10937 rm -f core conftest.err conftest.$ac_objext \
10938       conftest$ac_exeext conftest.$ac_ext
10939
10940 fi
10941
10942
10943 fi
10944
10945
10946 fi
10947
10948
10949 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10950 then
10951   lt_save_LIBS="$LIBS"
10952   LIBS="$LIBS $LIBADD_DL"
10953
10954 for ac_func in dlerror
10955 do
10956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960   echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962   cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10970 #define $ac_func innocuous_$ac_func
10971
10972 /* System header to define __stub macros and hopefully few prototypes,
10973     which can conflict with char $ac_func (); below.
10974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975     <limits.h> exists even on freestanding compilers.  */
10976
10977 #ifdef __STDC__
10978 # include <limits.h>
10979 #else
10980 # include <assert.h>
10981 #endif
10982
10983 #undef $ac_func
10984
10985 /* Override any GCC internal prototype to avoid an error.
10986    Use char because int might match the return type of a GCC
10987    builtin and then its argument prototype would still apply.  */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char $ac_func ();
10992 /* The GNU C library defines this for functions which it implements
10993     to always fail with ENOSYS.  Some functions are actually named
10994     something starting with __ and the normal name is an alias.  */
10995 #if defined __stub_$ac_func || defined __stub___$ac_func
10996 choke me
10997 #endif
10998
10999 int
11000 main ()
11001 {
11002 return $ac_func ();
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011   *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014   (eval "$ac_link") 2>conftest.er1
11015   ac_status=$?
11016   grep -v '^ *+' conftest.er1 >conftest.err
11017   rm -f conftest.er1
11018   cat conftest.err >&5
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } &&
11021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11022   { (case "(($ac_try" in
11023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024   *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027   (eval "$ac_try") 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; } &&
11031          { ac_try='test -s conftest$ac_exeext'
11032   { (case "(($ac_try" in
11033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034   *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037   (eval "$ac_try") 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); }; }; then
11041   eval "$as_ac_var=yes"
11042 else
11043   echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11045
11046         eval "$as_ac_var=no"
11047 fi
11048
11049 rm -f core conftest.err conftest.$ac_objext \
11050       conftest$ac_exeext conftest.$ac_ext
11051 fi
11052 ac_res=`eval echo '${'$as_ac_var'}'`
11053                { echo "$as_me:$LINENO: result: $ac_res" >&5
11054 echo "${ECHO_T}$ac_res" >&6; }
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056   cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11058 _ACEOF
11059
11060 fi
11061 done
11062
11063   LIBS="$lt_save_LIBS"
11064 fi
11065 ac_ext=c
11066 ac_cpp='$CPP $CPPFLAGS'
11067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11070
11071
11072
11073 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11074 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11075 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11076   echo $ECHO_N "(cached) $ECHO_C" >&6
11077 else
11078   ac_cv_sys_symbol_underscore=no
11079   cat > conftest.$ac_ext <<EOF
11080 void nm_test_func(){}
11081 int main(){nm_test_func;return 0;}
11082 EOF
11083   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11084   (eval $ac_compile) 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); }; then
11088     # Now try to grab the symbols.
11089     ac_nlist=conftest.nm
11090     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11091   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } && test -s "$ac_nlist"; then
11095       # See whether the symbols have a leading underscore.
11096       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11097         ac_cv_sys_symbol_underscore=yes
11098       else
11099         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11100           :
11101         else
11102           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11103         fi
11104       fi
11105     else
11106       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11107     fi
11108   else
11109     echo "configure: failed program was:" >&5
11110     cat conftest.c >&5
11111   fi
11112   rm -rf conftest*
11113
11114 fi
11115 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11116 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11117
11118
11119 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11120   if test x"$libltdl_cv_func_dlopen" = xyes ||
11121      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11122         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11123 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11124 if test "${libltdl_cv_need_uscore+set}" = set; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   libltdl_cv_need_uscore=unknown
11128           save_LIBS="$LIBS"
11129           LIBS="$LIBS $LIBADD_DL"
11130           if test "$cross_compiling" = yes; then :
11131   libltdl_cv_need_uscore=cross
11132 else
11133   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11134   lt_status=$lt_dlunknown
11135   cat > conftest.$ac_ext <<EOF
11136 #line 11136 "configure"
11137 #include "confdefs.h"
11138
11139 #if HAVE_DLFCN_H
11140 #include <dlfcn.h>
11141 #endif
11142
11143 #include <stdio.h>
11144
11145 #ifdef RTLD_GLOBAL
11146 #  define LT_DLGLOBAL           RTLD_GLOBAL
11147 #else
11148 #  ifdef DL_GLOBAL
11149 #    define LT_DLGLOBAL         DL_GLOBAL
11150 #  else
11151 #    define LT_DLGLOBAL         0
11152 #  endif
11153 #endif
11154
11155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11156    find out it does not work in some platform. */
11157 #ifndef LT_DLLAZY_OR_NOW
11158 #  ifdef RTLD_LAZY
11159 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11160 #  else
11161 #    ifdef DL_LAZY
11162 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11163 #    else
11164 #      ifdef RTLD_NOW
11165 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11166 #      else
11167 #        ifdef DL_NOW
11168 #          define LT_DLLAZY_OR_NOW      DL_NOW
11169 #        else
11170 #          define LT_DLLAZY_OR_NOW      0
11171 #        endif
11172 #      endif
11173 #    endif
11174 #  endif
11175 #endif
11176
11177 #ifdef __cplusplus
11178 extern "C" void exit (int);
11179 #endif
11180
11181 void fnord() { int i=42;}
11182 int main ()
11183 {
11184   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11185   int status = $lt_dlunknown;
11186
11187   if (self)
11188     {
11189       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11190       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11191       /* dlclose (self); */
11192     }
11193   else
11194     puts (dlerror ());
11195
11196     exit (status);
11197 }
11198 EOF
11199   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200   (eval $ac_link) 2>&5
11201   ac_status=$?
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11204     (./conftest; exit; ) >&5 2>/dev/null
11205     lt_status=$?
11206     case x$lt_status in
11207       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11208       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11209       x$lt_dlunknown|x*)  ;;
11210     esac
11211   else :
11212     # compilation failed
11213
11214   fi
11215 fi
11216 rm -fr conftest*
11217
11218           LIBS="$save_LIBS"
11219
11220 fi
11221 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11222 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11223   fi
11224 fi
11225
11226 if test x"$libltdl_cv_need_uscore" = xyes; then
11227
11228 cat >>confdefs.h <<\_ACEOF
11229 #define NEED_USCORE 1
11230 _ACEOF
11231
11232 fi
11233
11234
11235 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11236 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11237 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11238   echo $ECHO_N "(cached) $ECHO_C" >&6
11239 else
11240   # PORTME does your system automatically load deplibs for dlopen?
11241   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11242   # For now, we just catch OSes we know something about -- in the
11243   # future, we'll try test this programmatically.
11244   libltdl_cv_sys_dlopen_deplibs=unknown
11245   case "$host_os" in
11246   aix3*|aix4.1.*|aix4.2.*)
11247     # Unknown whether this is true for these versions of AIX, but
11248     # we want this `case' here to explicitly catch those versions.
11249     libltdl_cv_sys_dlopen_deplibs=unknown
11250     ;;
11251   aix[45]*)
11252     libltdl_cv_sys_dlopen_deplibs=yes
11253     ;;
11254   darwin*)
11255     # Assuming the user has installed a libdl from somewhere, this is true
11256     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11257     libltdl_cv_sys_dlopen_deplibs=yes
11258     ;;
11259   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11260     # GNU and its variants, using gnu ld.so (Glibc)
11261     libltdl_cv_sys_dlopen_deplibs=yes
11262     ;;
11263   hpux10*|hpux11*)
11264     libltdl_cv_sys_dlopen_deplibs=yes
11265     ;;
11266   interix*)
11267     libltdl_cv_sys_dlopen_deplibs=yes
11268     ;;
11269   irix[12345]*|irix6.[01]*)
11270     # Catch all versions of IRIX before 6.2, and indicate that we don't
11271     # know how it worked for any of those versions.
11272     libltdl_cv_sys_dlopen_deplibs=unknown
11273     ;;
11274   irix*)
11275     # The case above catches anything before 6.2, and it's known that
11276     # at 6.2 and later dlopen does load deplibs.
11277     libltdl_cv_sys_dlopen_deplibs=yes
11278     ;;
11279   netbsd*)
11280     libltdl_cv_sys_dlopen_deplibs=yes
11281     ;;
11282   openbsd*)
11283     libltdl_cv_sys_dlopen_deplibs=yes
11284     ;;
11285   osf[1234]*)
11286     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11287     # it did *not* use an RPATH in a shared library to find objects the
11288     # library depends on, so we explictly say `no'.
11289     libltdl_cv_sys_dlopen_deplibs=no
11290     ;;
11291   osf5.0|osf5.0a|osf5.1)
11292     # dlopen *does* load deplibs and with the right loader patch applied
11293     # it even uses RPATH in a shared library to search for shared objects
11294     # that the library depends on, but there's no easy way to know if that
11295     # patch is installed.  Since this is the case, all we can really
11296     # say is unknown -- it depends on the patch being installed.  If
11297     # it is, this changes to `yes'.  Without it, it would be `no'.
11298     libltdl_cv_sys_dlopen_deplibs=unknown
11299     ;;
11300   osf*)
11301     # the two cases above should catch all versions of osf <= 5.1.  Read
11302     # the comments above for what we know about them.
11303     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11304     # is used to find them so we can finally say `yes'.
11305     libltdl_cv_sys_dlopen_deplibs=yes
11306     ;;
11307   solaris*)
11308     libltdl_cv_sys_dlopen_deplibs=yes
11309     ;;
11310   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11311     libltdl_cv_sys_dlopen_deplibs=yes
11312     ;;
11313   esac
11314
11315 fi
11316 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11317 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11318 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11319
11320 cat >>confdefs.h <<\_ACEOF
11321 #define LTDL_DLOPEN_DEPLIBS 1
11322 _ACEOF
11323
11324 fi
11325
11326
11327 for ac_header in argz.h
11328 do
11329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334   echo $ECHO_N "(cached) $ECHO_C" >&6
11335 fi
11336 ac_res=`eval echo '${'$as_ac_Header'}'`
11337                { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11339 else
11340   # Is the header compilable?
11341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h.  */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h.  */
11349 $ac_includes_default
11350 #include <$ac_header>
11351 _ACEOF
11352 rm -f conftest.$ac_objext
11353 if { (ac_try="$ac_compile"
11354 case "(($ac_try" in
11355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356   *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359   (eval "$ac_compile") 2>conftest.er1
11360   ac_status=$?
11361   grep -v '^ *+' conftest.er1 >conftest.err
11362   rm -f conftest.er1
11363   cat conftest.err >&5
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); } &&
11366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11367   { (case "(($ac_try" in
11368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369   *) ac_try_echo=$ac_try;;
11370 esac
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372   (eval "$ac_try") 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); }; } &&
11376          { ac_try='test -s conftest.$ac_objext'
11377   { (case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382   (eval "$ac_try") 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); }; }; then
11386   ac_header_compiler=yes
11387 else
11388   echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11390
11391         ac_header_compiler=no
11392 fi
11393
11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11396 echo "${ECHO_T}$ac_header_compiler" >&6; }
11397
11398 # Is the header present?
11399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11401 cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h.  */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h.  */
11407 #include <$ac_header>
11408 _ACEOF
11409 if { (ac_try="$ac_cpp conftest.$ac_ext"
11410 case "(($ac_try" in
11411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412   *) ac_try_echo=$ac_try;;
11413 esac
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11416   ac_status=$?
11417   grep -v '^ *+' conftest.er1 >conftest.err
11418   rm -f conftest.er1
11419   cat conftest.err >&5
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); } >/dev/null; then
11422   if test -s conftest.err; then
11423     ac_cpp_err=$ac_c_preproc_warn_flag
11424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11425   else
11426     ac_cpp_err=
11427   fi
11428 else
11429   ac_cpp_err=yes
11430 fi
11431 if test -z "$ac_cpp_err"; then
11432   ac_header_preproc=yes
11433 else
11434   echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11436
11437   ac_header_preproc=no
11438 fi
11439
11440 rm -f conftest.err conftest.$ac_ext
11441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11442 echo "${ECHO_T}$ac_header_preproc" >&6; }
11443
11444 # So?  What about this header?
11445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11446   yes:no: )
11447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11451     ac_header_preproc=yes
11452     ;;
11453   no:yes:* )
11454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11456     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11457 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11458     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11460     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11461 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11464     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11466     ( cat <<\_ASBOX
11467 ## ----------------------------------- ##
11468 ## Report this to llvmbugs@cs.uiuc.edu ##
11469 ## ----------------------------------- ##
11470 _ASBOX
11471      ) | sed "s/^/$as_me: WARNING:     /" >&2
11472     ;;
11473 esac
11474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479   eval "$as_ac_Header=\$ac_header_preproc"
11480 fi
11481 ac_res=`eval echo '${'$as_ac_Header'}'`
11482                { echo "$as_me:$LINENO: result: $ac_res" >&5
11483 echo "${ECHO_T}$ac_res" >&6; }
11484
11485 fi
11486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11487   cat >>confdefs.h <<_ACEOF
11488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11489 _ACEOF
11490
11491 fi
11492
11493 done
11494
11495
11496 { echo "$as_me:$LINENO: checking for error_t" >&5
11497 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11498 if test "${ac_cv_type_error_t+set}" = set; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501   cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 #if HAVE_ARGZ_H
11508 #  include <argz.h>
11509 #endif
11510
11511 typedef error_t ac__type_new_;
11512 int
11513 main ()
11514 {
11515 if ((ac__type_new_ *) 0)
11516   return 0;
11517 if (sizeof (ac__type_new_))
11518   return 0;
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (ac_try="$ac_compile"
11525 case "(($ac_try" in
11526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527   *) ac_try_echo=$ac_try;;
11528 esac
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530   (eval "$ac_compile") 2>conftest.er1
11531   ac_status=$?
11532   grep -v '^ *+' conftest.er1 >conftest.err
11533   rm -f conftest.er1
11534   cat conftest.err >&5
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); } &&
11537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11538   { (case "(($ac_try" in
11539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540   *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543   (eval "$ac_try") 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); }; } &&
11547          { ac_try='test -s conftest.$ac_objext'
11548   { (case "(($ac_try" in
11549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550   *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553   (eval "$ac_try") 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); }; }; then
11557   ac_cv_type_error_t=yes
11558 else
11559   echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11561
11562         ac_cv_type_error_t=no
11563 fi
11564
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 fi
11567 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11568 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11569 if test $ac_cv_type_error_t = yes; then
11570
11571 cat >>confdefs.h <<_ACEOF
11572 #define HAVE_ERROR_T 1
11573 _ACEOF
11574
11575
11576 else
11577
11578 cat >>confdefs.h <<\_ACEOF
11579 #define error_t int
11580 _ACEOF
11581
11582 fi
11583
11584
11585
11586
11587
11588
11589
11590 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11591 do
11592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598   cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h.  */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h.  */
11604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11606 #define $ac_func innocuous_$ac_func
11607
11608 /* System header to define __stub macros and hopefully few prototypes,
11609     which can conflict with char $ac_func (); below.
11610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11611     <limits.h> exists even on freestanding compilers.  */
11612
11613 #ifdef __STDC__
11614 # include <limits.h>
11615 #else
11616 # include <assert.h>
11617 #endif
11618
11619 #undef $ac_func
11620
11621 /* Override any GCC internal prototype to avoid an error.
11622    Use char because int might match the return type of a GCC
11623    builtin and then its argument prototype would still apply.  */
11624 #ifdef __cplusplus
11625 extern "C"
11626 #endif
11627 char $ac_func ();
11628 /* The GNU C library defines this for functions which it implements
11629     to always fail with ENOSYS.  Some functions are actually named
11630     something starting with __ and the normal name is an alias.  */
11631 #if defined __stub_$ac_func || defined __stub___$ac_func
11632 choke me
11633 #endif
11634
11635 int
11636 main ()
11637 {
11638 return $ac_func ();
11639   ;
11640   return 0;
11641 }
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647   *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650   (eval "$ac_link") 2>conftest.er1
11651   ac_status=$?
11652   grep -v '^ *+' conftest.er1 >conftest.err
11653   rm -f conftest.er1
11654   cat conftest.err >&5
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } &&
11657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11658   { (case "(($ac_try" in
11659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660   *) ac_try_echo=$ac_try;;
11661 esac
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663   (eval "$ac_try") 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; } &&
11667          { ac_try='test -s conftest$ac_exeext'
11668   { (case "(($ac_try" in
11669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670   *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673   (eval "$ac_try") 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; }; then
11677   eval "$as_ac_var=yes"
11678 else
11679   echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682         eval "$as_ac_var=no"
11683 fi
11684
11685 rm -f core conftest.err conftest.$ac_objext \
11686       conftest$ac_exeext conftest.$ac_ext
11687 fi
11688 ac_res=`eval echo '${'$as_ac_var'}'`
11689                { echo "$as_me:$LINENO: result: $ac_res" >&5
11690 echo "${ECHO_T}$ac_res" >&6; }
11691 if test `eval echo '${'$as_ac_var'}'` = yes; then
11692   cat >>confdefs.h <<_ACEOF
11693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11694 _ACEOF
11695
11696 fi
11697 done
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11727                   stdio.h unistd.h
11728 do
11729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 fi
11736 ac_res=`eval echo '${'$as_ac_Header'}'`
11737                { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11739 else
11740   # Is the header compilable?
11741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 $ac_includes_default
11750 #include <$ac_header>
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (ac_try="$ac_compile"
11754 case "(($ac_try" in
11755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756   *) ac_try_echo=$ac_try;;
11757 esac
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759   (eval "$ac_compile") 2>conftest.er1
11760   ac_status=$?
11761   grep -v '^ *+' conftest.er1 >conftest.err
11762   rm -f conftest.er1
11763   cat conftest.err >&5
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); } &&
11766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11767   { (case "(($ac_try" in
11768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769   *) ac_try_echo=$ac_try;;
11770 esac
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772   (eval "$ac_try") 2>&5
11773   ac_status=$?
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); }; } &&
11776          { ac_try='test -s conftest.$ac_objext'
11777   { (case "(($ac_try" in
11778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779   *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782   (eval "$ac_try") 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; }; then
11786   ac_header_compiler=yes
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791         ac_header_compiler=no
11792 fi
11793
11794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11796 echo "${ECHO_T}$ac_header_compiler" >&6; }
11797
11798 # Is the header present?
11799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807 #include <$ac_header>
11808 _ACEOF
11809 if { (ac_try="$ac_cpp conftest.$ac_ext"
11810 case "(($ac_try" in
11811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812   *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11816   ac_status=$?
11817   grep -v '^ *+' conftest.er1 >conftest.err
11818   rm -f conftest.er1
11819   cat conftest.err >&5
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); } >/dev/null; then
11822   if test -s conftest.err; then
11823     ac_cpp_err=$ac_c_preproc_warn_flag
11824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11825   else
11826     ac_cpp_err=
11827   fi
11828 else
11829   ac_cpp_err=yes
11830 fi
11831 if test -z "$ac_cpp_err"; then
11832   ac_header_preproc=yes
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837   ac_header_preproc=no
11838 fi
11839
11840 rm -f conftest.err conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11842 echo "${ECHO_T}$ac_header_preproc" >&6; }
11843
11844 # So?  What about this header?
11845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11846   yes:no: )
11847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11851     ac_header_preproc=yes
11852     ;;
11853   no:yes:* )
11854     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11856     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11857 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11858     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11860     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11861 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11864     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11866     ( cat <<\_ASBOX
11867 ## ----------------------------------- ##
11868 ## Report this to llvmbugs@cs.uiuc.edu ##
11869 ## ----------------------------------- ##
11870 _ASBOX
11871      ) | sed "s/^/$as_me: WARNING:     /" >&2
11872     ;;
11873 esac
11874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11877   echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879   eval "$as_ac_Header=\$ac_header_preproc"
11880 fi
11881 ac_res=`eval echo '${'$as_ac_Header'}'`
11882                { echo "$as_me:$LINENO: result: $ac_res" >&5
11883 echo "${ECHO_T}$ac_res" >&6; }
11884
11885 fi
11886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11887   cat >>confdefs.h <<_ACEOF
11888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11889 _ACEOF
11890
11891 fi
11892
11893 done
11894
11895
11896
11897
11898
11899 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11900 do
11901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11903   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 fi
11908 ac_res=`eval echo '${'$as_ac_Header'}'`
11909                { echo "$as_me:$LINENO: result: $ac_res" >&5
11910 echo "${ECHO_T}$ac_res" >&6; }
11911 else
11912   # Is the header compilable?
11913 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h.  */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h.  */
11921 $ac_includes_default
11922 #include <$ac_header>
11923 _ACEOF
11924 rm -f conftest.$ac_objext
11925 if { (ac_try="$ac_compile"
11926 case "(($ac_try" in
11927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928   *) ac_try_echo=$ac_try;;
11929 esac
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931   (eval "$ac_compile") 2>conftest.er1
11932   ac_status=$?
11933   grep -v '^ *+' conftest.er1 >conftest.err
11934   rm -f conftest.er1
11935   cat conftest.err >&5
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } &&
11938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11939   { (case "(($ac_try" in
11940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941   *) ac_try_echo=$ac_try;;
11942 esac
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944   (eval "$ac_try") 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; } &&
11948          { ac_try='test -s conftest.$ac_objext'
11949   { (case "(($ac_try" in
11950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951   *) ac_try_echo=$ac_try;;
11952 esac
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954   (eval "$ac_try") 2>&5
11955   ac_status=$?
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); }; }; then
11958   ac_header_compiler=yes
11959 else
11960   echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11962
11963         ac_header_compiler=no
11964 fi
11965
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11968 echo "${ECHO_T}$ac_header_compiler" >&6; }
11969
11970 # Is the header present?
11971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11973 cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h.  */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h.  */
11979 #include <$ac_header>
11980 _ACEOF
11981 if { (ac_try="$ac_cpp conftest.$ac_ext"
11982 case "(($ac_try" in
11983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984   *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11988   ac_status=$?
11989   grep -v '^ *+' conftest.er1 >conftest.err
11990   rm -f conftest.er1
11991   cat conftest.err >&5
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); } >/dev/null; then
11994   if test -s conftest.err; then
11995     ac_cpp_err=$ac_c_preproc_warn_flag
11996     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11997   else
11998     ac_cpp_err=
11999   fi
12000 else
12001   ac_cpp_err=yes
12002 fi
12003 if test -z "$ac_cpp_err"; then
12004   ac_header_preproc=yes
12005 else
12006   echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009   ac_header_preproc=no
12010 fi
12011
12012 rm -f conftest.err conftest.$ac_ext
12013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12014 echo "${ECHO_T}$ac_header_preproc" >&6; }
12015
12016 # So?  What about this header?
12017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12018   yes:no: )
12019     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12023     ac_header_preproc=yes
12024     ;;
12025   no:yes:* )
12026     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12028     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12029 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12030     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12032     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12033 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12036     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12038     ( cat <<\_ASBOX
12039 ## ----------------------------------- ##
12040 ## Report this to llvmbugs@cs.uiuc.edu ##
12041 ## ----------------------------------- ##
12042 _ASBOX
12043      ) | sed "s/^/$as_me: WARNING:     /" >&2
12044     ;;
12045 esac
12046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051   eval "$as_ac_Header=\$ac_header_preproc"
12052 fi
12053 ac_res=`eval echo '${'$as_ac_Header'}'`
12054                { echo "$as_me:$LINENO: result: $ac_res" >&5
12055 echo "${ECHO_T}$ac_res" >&6; }
12056
12057 fi
12058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12059   cat >>confdefs.h <<_ACEOF
12060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12061 _ACEOF
12062
12063 fi
12064
12065 done
12066
12067
12068
12069 for ac_header in string.h strings.h
12070 do
12071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12073   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 fi
12078 ac_res=`eval echo '${'$as_ac_Header'}'`
12079                { echo "$as_me:$LINENO: result: $ac_res" >&5
12080 echo "${ECHO_T}$ac_res" >&6; }
12081 else
12082   # Is the header compilable?
12083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12085 cat >conftest.$ac_ext <<_ACEOF
12086 /* confdefs.h.  */
12087 _ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h.  */
12091 $ac_includes_default
12092 #include <$ac_header>
12093 _ACEOF
12094 rm -f conftest.$ac_objext
12095 if { (ac_try="$ac_compile"
12096 case "(($ac_try" in
12097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098   *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101   (eval "$ac_compile") 2>conftest.er1
12102   ac_status=$?
12103   grep -v '^ *+' conftest.er1 >conftest.err
12104   rm -f conftest.er1
12105   cat conftest.err >&5
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); } &&
12108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109   { (case "(($ac_try" in
12110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111   *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114   (eval "$ac_try") 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; } &&
12118          { ac_try='test -s conftest.$ac_objext'
12119   { (case "(($ac_try" in
12120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121   *) ac_try_echo=$ac_try;;
12122 esac
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124   (eval "$ac_try") 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; }; then
12128   ac_header_compiler=yes
12129 else
12130   echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12132
12133         ac_header_compiler=no
12134 fi
12135
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12138 echo "${ECHO_T}$ac_header_compiler" >&6; }
12139
12140 # Is the header present?
12141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h.  */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h.  */
12149 #include <$ac_header>
12150 _ACEOF
12151 if { (ac_try="$ac_cpp conftest.$ac_ext"
12152 case "(($ac_try" in
12153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154   *) ac_try_echo=$ac_try;;
12155 esac
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12158   ac_status=$?
12159   grep -v '^ *+' conftest.er1 >conftest.err
12160   rm -f conftest.er1
12161   cat conftest.err >&5
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); } >/dev/null; then
12164   if test -s conftest.err; then
12165     ac_cpp_err=$ac_c_preproc_warn_flag
12166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12167   else
12168     ac_cpp_err=
12169   fi
12170 else
12171   ac_cpp_err=yes
12172 fi
12173 if test -z "$ac_cpp_err"; then
12174   ac_header_preproc=yes
12175 else
12176   echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179   ac_header_preproc=no
12180 fi
12181
12182 rm -f conftest.err conftest.$ac_ext
12183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12184 echo "${ECHO_T}$ac_header_preproc" >&6; }
12185
12186 # So?  What about this header?
12187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12188   yes:no: )
12189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12193     ac_header_preproc=yes
12194     ;;
12195   no:yes:* )
12196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12208     ( cat <<\_ASBOX
12209 ## ----------------------------------- ##
12210 ## Report this to llvmbugs@cs.uiuc.edu ##
12211 ## ----------------------------------- ##
12212 _ASBOX
12213      ) | sed "s/^/$as_me: WARNING:     /" >&2
12214     ;;
12215 esac
12216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12219   echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221   eval "$as_ac_Header=\$ac_header_preproc"
12222 fi
12223 ac_res=`eval echo '${'$as_ac_Header'}'`
12224                { echo "$as_me:$LINENO: result: $ac_res" >&5
12225 echo "${ECHO_T}$ac_res" >&6; }
12226
12227 fi
12228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12229   cat >>confdefs.h <<_ACEOF
12230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12231 _ACEOF
12232  break
12233 fi
12234
12235 done
12236
12237
12238
12239
12240 for ac_func in strchr index
12241 do
12242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12246   echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248   cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h.  */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h.  */
12254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12256 #define $ac_func innocuous_$ac_func
12257
12258 /* System header to define __stub macros and hopefully few prototypes,
12259     which can conflict with char $ac_func (); below.
12260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12261     <limits.h> exists even on freestanding compilers.  */
12262
12263 #ifdef __STDC__
12264 # include <limits.h>
12265 #else
12266 # include <assert.h>
12267 #endif
12268
12269 #undef $ac_func
12270
12271 /* Override any GCC internal prototype to avoid an error.
12272    Use char because int might match the return type of a GCC
12273    builtin and then its argument prototype would still apply.  */
12274 #ifdef __cplusplus
12275 extern "C"
12276 #endif
12277 char $ac_func ();
12278 /* The GNU C library defines this for functions which it implements
12279     to always fail with ENOSYS.  Some functions are actually named
12280     something starting with __ and the normal name is an alias.  */
12281 #if defined __stub_$ac_func || defined __stub___$ac_func
12282 choke me
12283 #endif
12284
12285 int
12286 main ()
12287 {
12288 return $ac_func ();
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (ac_try="$ac_link"
12295 case "(($ac_try" in
12296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297   *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300   (eval "$ac_link") 2>conftest.er1
12301   ac_status=$?
12302   grep -v '^ *+' conftest.er1 >conftest.err
12303   rm -f conftest.er1
12304   cat conftest.err >&5
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } &&
12307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308   { (case "(($ac_try" in
12309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310   *) ac_try_echo=$ac_try;;
12311 esac
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313   (eval "$ac_try") 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; } &&
12317          { ac_try='test -s conftest$ac_exeext'
12318   { (case "(($ac_try" in
12319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320   *) ac_try_echo=$ac_try;;
12321 esac
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323   (eval "$ac_try") 2>&5
12324   ac_status=$?
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); }; }; then
12327   eval "$as_ac_var=yes"
12328 else
12329   echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12331
12332         eval "$as_ac_var=no"
12333 fi
12334
12335 rm -f core conftest.err conftest.$ac_objext \
12336       conftest$ac_exeext conftest.$ac_ext
12337 fi
12338 ac_res=`eval echo '${'$as_ac_var'}'`
12339                { echo "$as_me:$LINENO: result: $ac_res" >&5
12340 echo "${ECHO_T}$ac_res" >&6; }
12341 if test `eval echo '${'$as_ac_var'}'` = yes; then
12342   cat >>confdefs.h <<_ACEOF
12343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12344 _ACEOF
12345  break
12346 fi
12347 done
12348
12349
12350
12351 for ac_func in strrchr rindex
12352 do
12353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12357   echo $ECHO_N "(cached) $ECHO_C" >&6
12358 else
12359   cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h.  */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h.  */
12365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12367 #define $ac_func innocuous_$ac_func
12368
12369 /* System header to define __stub macros and hopefully few prototypes,
12370     which can conflict with char $ac_func (); below.
12371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12372     <limits.h> exists even on freestanding compilers.  */
12373
12374 #ifdef __STDC__
12375 # include <limits.h>
12376 #else
12377 # include <assert.h>
12378 #endif
12379
12380 #undef $ac_func
12381
12382 /* Override any GCC internal prototype to avoid an error.
12383    Use char because int might match the return type of a GCC
12384    builtin and then its argument prototype would still apply.  */
12385 #ifdef __cplusplus
12386 extern "C"
12387 #endif
12388 char $ac_func ();
12389 /* The GNU C library defines this for functions which it implements
12390     to always fail with ENOSYS.  Some functions are actually named
12391     something starting with __ and the normal name is an alias.  */
12392 #if defined __stub_$ac_func || defined __stub___$ac_func
12393 choke me
12394 #endif
12395
12396 int
12397 main ()
12398 {
12399 return $ac_func ();
12400   ;
12401   return 0;
12402 }
12403 _ACEOF
12404 rm -f conftest.$ac_objext conftest$ac_exeext
12405 if { (ac_try="$ac_link"
12406 case "(($ac_try" in
12407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408   *) ac_try_echo=$ac_try;;
12409 esac
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411   (eval "$ac_link") 2>conftest.er1
12412   ac_status=$?
12413   grep -v '^ *+' conftest.er1 >conftest.err
12414   rm -f conftest.er1
12415   cat conftest.err >&5
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); } &&
12418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419   { (case "(($ac_try" in
12420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421   *) ac_try_echo=$ac_try;;
12422 esac
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424   (eval "$ac_try") 2>&5
12425   ac_status=$?
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); }; } &&
12428          { ac_try='test -s conftest$ac_exeext'
12429   { (case "(($ac_try" in
12430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431   *) ac_try_echo=$ac_try;;
12432 esac
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434   (eval "$ac_try") 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; }; then
12438   eval "$as_ac_var=yes"
12439 else
12440   echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443         eval "$as_ac_var=no"
12444 fi
12445
12446 rm -f core conftest.err conftest.$ac_objext \
12447       conftest$ac_exeext conftest.$ac_ext
12448 fi
12449 ac_res=`eval echo '${'$as_ac_var'}'`
12450                { echo "$as_me:$LINENO: result: $ac_res" >&5
12451 echo "${ECHO_T}$ac_res" >&6; }
12452 if test `eval echo '${'$as_ac_var'}'` = yes; then
12453   cat >>confdefs.h <<_ACEOF
12454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12455 _ACEOF
12456  break
12457 fi
12458 done
12459
12460
12461
12462 for ac_func in memcpy bcopy
12463 do
12464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12468   echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470   cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h.  */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h.  */
12476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12478 #define $ac_func innocuous_$ac_func
12479
12480 /* System header to define __stub macros and hopefully few prototypes,
12481     which can conflict with char $ac_func (); below.
12482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12483     <limits.h> exists even on freestanding compilers.  */
12484
12485 #ifdef __STDC__
12486 # include <limits.h>
12487 #else
12488 # include <assert.h>
12489 #endif
12490
12491 #undef $ac_func
12492
12493 /* Override any GCC internal prototype to avoid an error.
12494    Use char because int might match the return type of a GCC
12495    builtin and then its argument prototype would still apply.  */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 char $ac_func ();
12500 /* The GNU C library defines this for functions which it implements
12501     to always fail with ENOSYS.  Some functions are actually named
12502     something starting with __ and the normal name is an alias.  */
12503 #if defined __stub_$ac_func || defined __stub___$ac_func
12504 choke me
12505 #endif
12506
12507 int
12508 main ()
12509 {
12510 return $ac_func ();
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (ac_try="$ac_link"
12517 case "(($ac_try" in
12518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519   *) ac_try_echo=$ac_try;;
12520 esac
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522   (eval "$ac_link") 2>conftest.er1
12523   ac_status=$?
12524   grep -v '^ *+' conftest.er1 >conftest.err
12525   rm -f conftest.er1
12526   cat conftest.err >&5
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } &&
12529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12530   { (case "(($ac_try" in
12531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532   *) ac_try_echo=$ac_try;;
12533 esac
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535   (eval "$ac_try") 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; } &&
12539          { ac_try='test -s conftest$ac_exeext'
12540   { (case "(($ac_try" in
12541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542   *) ac_try_echo=$ac_try;;
12543 esac
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545   (eval "$ac_try") 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; }; then
12549   eval "$as_ac_var=yes"
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554         eval "$as_ac_var=no"
12555 fi
12556
12557 rm -f core conftest.err conftest.$ac_objext \
12558       conftest$ac_exeext conftest.$ac_ext
12559 fi
12560 ac_res=`eval echo '${'$as_ac_var'}'`
12561                { echo "$as_me:$LINENO: result: $ac_res" >&5
12562 echo "${ECHO_T}$ac_res" >&6; }
12563 if test `eval echo '${'$as_ac_var'}'` = yes; then
12564   cat >>confdefs.h <<_ACEOF
12565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12566 _ACEOF
12567  break
12568 fi
12569 done
12570
12571
12572
12573 for ac_func in memmove strcmp
12574 do
12575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12579   echo $ECHO_N "(cached) $ECHO_C" >&6
12580 else
12581   cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h.  */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h.  */
12587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12589 #define $ac_func innocuous_$ac_func
12590
12591 /* System header to define __stub macros and hopefully few prototypes,
12592     which can conflict with char $ac_func (); below.
12593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12594     <limits.h> exists even on freestanding compilers.  */
12595
12596 #ifdef __STDC__
12597 # include <limits.h>
12598 #else
12599 # include <assert.h>
12600 #endif
12601
12602 #undef $ac_func
12603
12604 /* Override any GCC internal prototype to avoid an error.
12605    Use char because int might match the return type of a GCC
12606    builtin and then its argument prototype would still apply.  */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 char $ac_func ();
12611 /* The GNU C library defines this for functions which it implements
12612     to always fail with ENOSYS.  Some functions are actually named
12613     something starting with __ and the normal name is an alias.  */
12614 #if defined __stub_$ac_func || defined __stub___$ac_func
12615 choke me
12616 #endif
12617
12618 int
12619 main ()
12620 {
12621 return $ac_func ();
12622   ;
12623   return 0;
12624 }
12625 _ACEOF
12626 rm -f conftest.$ac_objext conftest$ac_exeext
12627 if { (ac_try="$ac_link"
12628 case "(($ac_try" in
12629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630   *) ac_try_echo=$ac_try;;
12631 esac
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633   (eval "$ac_link") 2>conftest.er1
12634   ac_status=$?
12635   grep -v '^ *+' conftest.er1 >conftest.err
12636   rm -f conftest.er1
12637   cat conftest.err >&5
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); } &&
12640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12641   { (case "(($ac_try" in
12642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643   *) ac_try_echo=$ac_try;;
12644 esac
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646   (eval "$ac_try") 2>&5
12647   ac_status=$?
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); }; } &&
12650          { ac_try='test -s conftest$ac_exeext'
12651   { (case "(($ac_try" in
12652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653   *) ac_try_echo=$ac_try;;
12654 esac
12655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656   (eval "$ac_try") 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); }; }; then
12660   eval "$as_ac_var=yes"
12661 else
12662   echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665         eval "$as_ac_var=no"
12666 fi
12667
12668 rm -f core conftest.err conftest.$ac_objext \
12669       conftest$ac_exeext conftest.$ac_ext
12670 fi
12671 ac_res=`eval echo '${'$as_ac_var'}'`
12672                { echo "$as_me:$LINENO: result: $ac_res" >&5
12673 echo "${ECHO_T}$ac_res" >&6; }
12674 if test `eval echo '${'$as_ac_var'}'` = yes; then
12675   cat >>confdefs.h <<_ACEOF
12676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12677 _ACEOF
12678
12679 fi
12680 done
12681
12682
12683
12684
12685 for ac_func in closedir opendir readdir
12686 do
12687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693   cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12701 #define $ac_func innocuous_$ac_func
12702
12703 /* System header to define __stub macros and hopefully few prototypes,
12704     which can conflict with char $ac_func (); below.
12705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12706     <limits.h> exists even on freestanding compilers.  */
12707
12708 #ifdef __STDC__
12709 # include <limits.h>
12710 #else
12711 # include <assert.h>
12712 #endif
12713
12714 #undef $ac_func
12715
12716 /* Override any GCC internal prototype to avoid an error.
12717    Use char because int might match the return type of a GCC
12718    builtin and then its argument prototype would still apply.  */
12719 #ifdef __cplusplus
12720 extern "C"
12721 #endif
12722 char $ac_func ();
12723 /* The GNU C library defines this for functions which it implements
12724     to always fail with ENOSYS.  Some functions are actually named
12725     something starting with __ and the normal name is an alias.  */
12726 #if defined __stub_$ac_func || defined __stub___$ac_func
12727 choke me
12728 #endif
12729
12730 int
12731 main ()
12732 {
12733 return $ac_func ();
12734   ;
12735   return 0;
12736 }
12737 _ACEOF
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (ac_try="$ac_link"
12740 case "(($ac_try" in
12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742   *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745   (eval "$ac_link") 2>conftest.er1
12746   ac_status=$?
12747   grep -v '^ *+' conftest.er1 >conftest.err
12748   rm -f conftest.er1
12749   cat conftest.err >&5
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } &&
12752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12753   { (case "(($ac_try" in
12754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755   *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758   (eval "$ac_try") 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; } &&
12762          { ac_try='test -s conftest$ac_exeext'
12763   { (case "(($ac_try" in
12764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765   *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768   (eval "$ac_try") 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; }; then
12772   eval "$as_ac_var=yes"
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777         eval "$as_ac_var=no"
12778 fi
12779
12780 rm -f core conftest.err conftest.$ac_objext \
12781       conftest$ac_exeext conftest.$ac_ext
12782 fi
12783 ac_res=`eval echo '${'$as_ac_var'}'`
12784                { echo "$as_me:$LINENO: result: $ac_res" >&5
12785 echo "${ECHO_T}$ac_res" >&6; }
12786 if test `eval echo '${'$as_ac_var'}'` = yes; then
12787   cat >>confdefs.h <<_ACEOF
12788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12789 _ACEOF
12790
12791 fi
12792 done
12793
12794
12795
12796 if test "$WITH_LLVMGCCDIR" = "default" ; then
12797   LLVMGCC="llvm-gcc${EXEEXT}"
12798   LLVMGXX="llvm-g++${EXEEXT}"
12799   LLVMGCCCOMMAND="$LLVMGCC"
12800   LLVMGXXCOMMAND="$LLVMGXX"
12801   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12802
12803   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12804
12805   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12806 set dummy $LLVMGCC; ac_word=$2
12807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12809 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812   case $LLVMGCC in
12813   [\\/]* | ?:[\\/]*)
12814   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12815   ;;
12816   *)
12817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12819 do
12820   IFS=$as_save_IFS
12821   test -z "$as_dir" && as_dir=.
12822   for ac_exec_ext in '' $ac_executable_extensions; do
12823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12824     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12826     break 2
12827   fi
12828 done
12829 done
12830 IFS=$as_save_IFS
12831
12832   ;;
12833 esac
12834 fi
12835 LLVMGCC=$ac_cv_path_LLVMGCC
12836 if test -n "$LLVMGCC"; then
12837   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12838 echo "${ECHO_T}$LLVMGCC" >&6; }
12839 else
12840   { echo "$as_me:$LINENO: result: no" >&5
12841 echo "${ECHO_T}no" >&6; }
12842 fi
12843
12844
12845   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12846 set dummy $LLVMGXX; ac_word=$2
12847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12849 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12850   echo $ECHO_N "(cached) $ECHO_C" >&6
12851 else
12852   case $LLVMGXX in
12853   [\\/]* | ?:[\\/]*)
12854   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12855   ;;
12856   *)
12857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858 for as_dir in $PATH
12859 do
12860   IFS=$as_save_IFS
12861   test -z "$as_dir" && as_dir=.
12862   for ac_exec_ext in '' $ac_executable_extensions; do
12863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12864     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12866     break 2
12867   fi
12868 done
12869 done
12870 IFS=$as_save_IFS
12871
12872   ;;
12873 esac
12874 fi
12875 LLVMGXX=$ac_cv_path_LLVMGXX
12876 if test -n "$LLVMGXX"; then
12877   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12878 echo "${ECHO_T}$LLVMGXX" >&6; }
12879 else
12880   { echo "$as_me:$LINENO: result: no" >&5
12881 echo "${ECHO_T}no" >&6; }
12882 fi
12883
12884
12885 else
12886   if test -z "$LLVMGCC"; then
12887     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12888     LLVMGCCCOMMAND="$LLVMGCC"
12889   fi
12890   if test -z "$LLVMGXX"; then
12891     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12892     LLVMGXXCOMMAND="$LLVMGXX"
12893   fi
12894
12895   LLVMGCC=$LLVMGCC
12896
12897   LLVMGXX=$LLVMGXX
12898
12899   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12900
12901   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12902
12903 fi
12904
12905
12906 # Check whether --with-llvmcc was given.
12907 if test "${with_llvmcc+set}" = set; then
12908   withval=$with_llvmcc;
12909 else
12910   with_llvmcc=check
12911 fi
12912
12913 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12914 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12915 if test "$with_llvmcc" != "check"; then
12916    if (test "$with_llvmcc" != "llvm-gcc" &&
12917        test "$with_llvmcc" != "clang" &&
12918        test "$with_llvmcc" != "none"); then
12919       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12920 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12921    { (exit 1); exit 1; }; }
12922    fi
12923    WITH_LLVMCC="$with_llvmcc"
12924 elif test -n "$LLVMGCC"; then
12925    WITH_LLVMCC=llvm-gcc
12926 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12927    WITH_LLVMCC=clang
12928 else
12929    WITH_LLVMCC=none
12930 fi
12931 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12932 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12933 LLVMCC_OPTION=$WITH_LLVMCC
12934
12935
12936 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12937 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12938
12939 ICC=no
12940 IXX=no
12941 case $CC in
12942   icc*|icpc*)
12943     ICC=yes
12944     IXX=yes
12945     ;;
12946    *)
12947     ;;
12948 esac
12949
12950 if test "$GCC" != "yes" && test "$ICC" != "yes"
12951 then
12952   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12953 echo "$as_me: error: gcc|icc required but not found" >&2;}
12954    { (exit 1); exit 1; }; }
12955 fi
12956
12957 if test "$GXX" != "yes" && test "$IXX" != "yes"
12958 then
12959   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12960 echo "$as_me: error: g++|icc required but not found" >&2;}
12961    { (exit 1); exit 1; }; }
12962 fi
12963
12964 if test "$GCC" = "yes"
12965 then
12966   cat >conftest.$ac_ext <<_ACEOF
12967 #if !defined(__GNUC__) || __GNUC__ < 3
12968 #error Unsupported GCC version
12969 #endif
12970
12971 _ACEOF
12972 rm -f conftest.$ac_objext
12973 if { (ac_try="$ac_compile"
12974 case "(($ac_try" in
12975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976   *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979   (eval "$ac_compile") 2>conftest.er1
12980   ac_status=$?
12981   grep -v '^ *+' conftest.er1 >conftest.err
12982   rm -f conftest.er1
12983   cat conftest.err >&5
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); } &&
12986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12987   { (case "(($ac_try" in
12988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989   *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992   (eval "$ac_try") 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; } &&
12996          { ac_try='test -s conftest.$ac_objext'
12997   { (case "(($ac_try" in
12998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999   *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002   (eval "$ac_try") 2>&5
13003   ac_status=$?
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); }; }; then
13006   :
13007 else
13008   echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13010
13011         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13012 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13013    { (exit 1); exit 1; }; }
13014 fi
13015
13016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13017 fi
13018
13019 if test -z "$llvm_cv_gnu_make_command"
13020 then
13021   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13022 echo "$as_me: error: GNU Make required but not found" >&2;}
13023    { (exit 1); exit 1; }; }
13024 fi
13025
13026 { echo "$as_me:$LINENO: result: ok" >&5
13027 echo "${ECHO_T}ok" >&6; }
13028
13029 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13030 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13031 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13032
13033 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13034
13035 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13036 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13037
13038
13039
13040 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13041 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13042 if test "${ac_cv_lib_m_sin+set}" = set; then
13043   echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045   ac_check_lib_save_LIBS=$LIBS
13046 LIBS="-lm  $LIBS"
13047 cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h.  */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h.  */
13053
13054 /* Override any GCC internal prototype to avoid an error.
13055    Use char because int might match the return type of a GCC
13056    builtin and then its argument prototype would still apply.  */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 char sin ();
13061 int
13062 main ()
13063 {
13064 return sin ();
13065   ;
13066   return 0;
13067 }
13068 _ACEOF
13069 rm -f conftest.$ac_objext conftest$ac_exeext
13070 if { (ac_try="$ac_link"
13071 case "(($ac_try" in
13072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073   *) ac_try_echo=$ac_try;;
13074 esac
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076   (eval "$ac_link") 2>conftest.er1
13077   ac_status=$?
13078   grep -v '^ *+' conftest.er1 >conftest.err
13079   rm -f conftest.er1
13080   cat conftest.err >&5
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); } &&
13083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084   { (case "(($ac_try" in
13085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086   *) ac_try_echo=$ac_try;;
13087 esac
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089   (eval "$ac_try") 2>&5
13090   ac_status=$?
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); }; } &&
13093          { ac_try='test -s conftest$ac_exeext'
13094   { (case "(($ac_try" in
13095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096   *) ac_try_echo=$ac_try;;
13097 esac
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099   (eval "$ac_try") 2>&5
13100   ac_status=$?
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); }; }; then
13103   ac_cv_lib_m_sin=yes
13104 else
13105   echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13107
13108         ac_cv_lib_m_sin=no
13109 fi
13110
13111 rm -f core conftest.err conftest.$ac_objext \
13112       conftest$ac_exeext conftest.$ac_ext
13113 LIBS=$ac_check_lib_save_LIBS
13114 fi
13115 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13116 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13117 if test $ac_cv_lib_m_sin = yes; then
13118   cat >>confdefs.h <<_ACEOF
13119 #define HAVE_LIBM 1
13120 _ACEOF
13121
13122   LIBS="-lm $LIBS"
13123
13124 fi
13125
13126 if test "$llvm_cv_os_type" = "MingW" ; then
13127
13128 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13129 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13130 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13131   echo $ECHO_N "(cached) $ECHO_C" >&6
13132 else
13133   ac_check_lib_save_LIBS=$LIBS
13134 LIBS="-limagehlp  $LIBS"
13135 cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h.  */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h.  */
13141
13142
13143 int
13144 main ()
13145 {
13146 return main ();
13147   ;
13148   return 0;
13149 }
13150 _ACEOF
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (ac_try="$ac_link"
13153 case "(($ac_try" in
13154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155   *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158   (eval "$ac_link") 2>conftest.er1
13159   ac_status=$?
13160   grep -v '^ *+' conftest.er1 >conftest.err
13161   rm -f conftest.er1
13162   cat conftest.err >&5
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); } &&
13165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13166   { (case "(($ac_try" in
13167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168   *) ac_try_echo=$ac_try;;
13169 esac
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171   (eval "$ac_try") 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); }; } &&
13175          { ac_try='test -s conftest$ac_exeext'
13176   { (case "(($ac_try" in
13177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178   *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181   (eval "$ac_try") 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; }; then
13185   ac_cv_lib_imagehlp_main=yes
13186 else
13187   echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190         ac_cv_lib_imagehlp_main=no
13191 fi
13192
13193 rm -f core conftest.err conftest.$ac_objext \
13194       conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13196 fi
13197 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13198 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13199 if test $ac_cv_lib_imagehlp_main = yes; then
13200   cat >>confdefs.h <<_ACEOF
13201 #define HAVE_LIBIMAGEHLP 1
13202 _ACEOF
13203
13204   LIBS="-limagehlp $LIBS"
13205
13206 fi
13207
13208
13209 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13210 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13211 if test "${ac_cv_lib_psapi_main+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-lpsapi  $LIBS"
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222
13223
13224 int
13225 main ()
13226 {
13227 return main ();
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (ac_try="$ac_link"
13234 case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239   (eval "$ac_link") 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } &&
13246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13247   { (case "(($ac_try" in
13248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249   *) ac_try_echo=$ac_try;;
13250 esac
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252   (eval "$ac_try") 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; } &&
13256          { ac_try='test -s conftest$ac_exeext'
13257   { (case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262   (eval "$ac_try") 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; }; then
13266   ac_cv_lib_psapi_main=yes
13267 else
13268   echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271         ac_cv_lib_psapi_main=no
13272 fi
13273
13274 rm -f core conftest.err conftest.$ac_objext \
13275       conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13277 fi
13278 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13279 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13280 if test $ac_cv_lib_psapi_main = yes; then
13281   cat >>confdefs.h <<_ACEOF
13282 #define HAVE_LIBPSAPI 1
13283 _ACEOF
13284
13285   LIBS="-lpsapi $LIBS"
13286
13287 fi
13288
13289 fi
13290
13291 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13292 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13293 if test "${ac_cv_search_dlopen+set}" = set; then
13294   echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296   ac_func_search_save_LIBS=$LIBS
13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h.  */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h.  */
13303
13304 /* Override any GCC internal prototype to avoid an error.
13305    Use char because int might match the return type of a GCC
13306    builtin and then its argument prototype would still apply.  */
13307 #ifdef __cplusplus
13308 extern "C"
13309 #endif
13310 char dlopen ();
13311 int
13312 main ()
13313 {
13314 return dlopen ();
13315   ;
13316   return 0;
13317 }
13318 _ACEOF
13319 for ac_lib in '' dl; do
13320   if test -z "$ac_lib"; then
13321     ac_res="none required"
13322   else
13323     ac_res=-l$ac_lib
13324     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13325   fi
13326   rm -f conftest.$ac_objext conftest$ac_exeext
13327 if { (ac_try="$ac_link"
13328 case "(($ac_try" in
13329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330   *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333   (eval "$ac_link") 2>conftest.er1
13334   ac_status=$?
13335   grep -v '^ *+' conftest.er1 >conftest.err
13336   rm -f conftest.er1
13337   cat conftest.err >&5
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); } &&
13340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13341   { (case "(($ac_try" in
13342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343   *) ac_try_echo=$ac_try;;
13344 esac
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346   (eval "$ac_try") 2>&5
13347   ac_status=$?
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); }; } &&
13350          { ac_try='test -s conftest$ac_exeext'
13351   { (case "(($ac_try" in
13352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353   *) ac_try_echo=$ac_try;;
13354 esac
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356   (eval "$ac_try") 2>&5
13357   ac_status=$?
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); }; }; then
13360   ac_cv_search_dlopen=$ac_res
13361 else
13362   echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13364
13365
13366 fi
13367
13368 rm -f core conftest.err conftest.$ac_objext \
13369       conftest$ac_exeext
13370   if test "${ac_cv_search_dlopen+set}" = set; then
13371   break
13372 fi
13373 done
13374 if test "${ac_cv_search_dlopen+set}" = set; then
13375   :
13376 else
13377   ac_cv_search_dlopen=no
13378 fi
13379 rm conftest.$ac_ext
13380 LIBS=$ac_func_search_save_LIBS
13381 fi
13382 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13383 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13384 ac_res=$ac_cv_search_dlopen
13385 if test "$ac_res" != no; then
13386   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13387
13388 cat >>confdefs.h <<\_ACEOF
13389 #define HAVE_DLOPEN 1
13390 _ACEOF
13391
13392 else
13393   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13394 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13395 fi
13396
13397
13398 if test "$llvm_cv_enable_libffi" = "yes" ; then
13399   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13400 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13401 if test "${ac_cv_search_ffi_call+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   ac_func_search_save_LIBS=$LIBS
13405 cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411
13412 /* Override any GCC internal prototype to avoid an error.
13413    Use char because int might match the return type of a GCC
13414    builtin and then its argument prototype would still apply.  */
13415 #ifdef __cplusplus
13416 extern "C"
13417 #endif
13418 char ffi_call ();
13419 int
13420 main ()
13421 {
13422 return ffi_call ();
13423   ;
13424   return 0;
13425 }
13426 _ACEOF
13427 for ac_lib in '' ffi; do
13428   if test -z "$ac_lib"; then
13429     ac_res="none required"
13430   else
13431     ac_res=-l$ac_lib
13432     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13433   fi
13434   rm -f conftest.$ac_objext conftest$ac_exeext
13435 if { (ac_try="$ac_link"
13436 case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_link") 2>conftest.er1
13442   ac_status=$?
13443   grep -v '^ *+' conftest.er1 >conftest.err
13444   rm -f conftest.er1
13445   cat conftest.err >&5
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } &&
13448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13449   { (case "(($ac_try" in
13450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451   *) ac_try_echo=$ac_try;;
13452 esac
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454   (eval "$ac_try") 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; } &&
13458          { ac_try='test -s conftest$ac_exeext'
13459   { (case "(($ac_try" in
13460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461   *) ac_try_echo=$ac_try;;
13462 esac
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464   (eval "$ac_try") 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468   ac_cv_search_ffi_call=$ac_res
13469 else
13470   echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473
13474 fi
13475
13476 rm -f core conftest.err conftest.$ac_objext \
13477       conftest$ac_exeext
13478   if test "${ac_cv_search_ffi_call+set}" = set; then
13479   break
13480 fi
13481 done
13482 if test "${ac_cv_search_ffi_call+set}" = set; then
13483   :
13484 else
13485   ac_cv_search_ffi_call=no
13486 fi
13487 rm conftest.$ac_ext
13488 LIBS=$ac_func_search_save_LIBS
13489 fi
13490 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13491 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13492 ac_res=$ac_cv_search_ffi_call
13493 if test "$ac_res" != no; then
13494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13495
13496 cat >>confdefs.h <<\_ACEOF
13497 #define HAVE_FFI_CALL 1
13498 _ACEOF
13499
13500 else
13501   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13502 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13503    { (exit 1); exit 1; }; }
13504 fi
13505
13506 fi
13507
13508 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13509 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13510 if test "${ac_cv_search_mallinfo+set}" = set; then
13511   echo $ECHO_N "(cached) $ECHO_C" >&6
13512 else
13513   ac_func_search_save_LIBS=$LIBS
13514 cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h.  */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h.  */
13520
13521 /* Override any GCC internal prototype to avoid an error.
13522    Use char because int might match the return type of a GCC
13523    builtin and then its argument prototype would still apply.  */
13524 #ifdef __cplusplus
13525 extern "C"
13526 #endif
13527 char mallinfo ();
13528 int
13529 main ()
13530 {
13531 return mallinfo ();
13532   ;
13533   return 0;
13534 }
13535 _ACEOF
13536 for ac_lib in '' malloc; do
13537   if test -z "$ac_lib"; then
13538     ac_res="none required"
13539   else
13540     ac_res=-l$ac_lib
13541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13542   fi
13543   rm -f conftest.$ac_objext conftest$ac_exeext
13544 if { (ac_try="$ac_link"
13545 case "(($ac_try" in
13546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547   *) ac_try_echo=$ac_try;;
13548 esac
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550   (eval "$ac_link") 2>conftest.er1
13551   ac_status=$?
13552   grep -v '^ *+' conftest.er1 >conftest.err
13553   rm -f conftest.er1
13554   cat conftest.err >&5
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); } &&
13557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13558   { (case "(($ac_try" in
13559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560   *) ac_try_echo=$ac_try;;
13561 esac
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563   (eval "$ac_try") 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; } &&
13567          { ac_try='test -s conftest$ac_exeext'
13568   { (case "(($ac_try" in
13569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570   *) ac_try_echo=$ac_try;;
13571 esac
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573   (eval "$ac_try") 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; }; then
13577   ac_cv_search_mallinfo=$ac_res
13578 else
13579   echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13581
13582
13583 fi
13584
13585 rm -f core conftest.err conftest.$ac_objext \
13586       conftest$ac_exeext
13587   if test "${ac_cv_search_mallinfo+set}" = set; then
13588   break
13589 fi
13590 done
13591 if test "${ac_cv_search_mallinfo+set}" = set; then
13592   :
13593 else
13594   ac_cv_search_mallinfo=no
13595 fi
13596 rm conftest.$ac_ext
13597 LIBS=$ac_func_search_save_LIBS
13598 fi
13599 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13600 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13601 ac_res=$ac_cv_search_mallinfo
13602 if test "$ac_res" != no; then
13603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13604
13605 cat >>confdefs.h <<\_ACEOF
13606 #define HAVE_MALLINFO 1
13607 _ACEOF
13608
13609 fi
13610
13611
13612 if test "$ENABLE_THREADS" -eq 1 ; then
13613
13614 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13615 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13616 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13617   echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619   ac_check_lib_save_LIBS=$LIBS
13620 LIBS="-lpthread  $LIBS"
13621 cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h.  */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h.  */
13627
13628 /* Override any GCC internal prototype to avoid an error.
13629    Use char because int might match the return type of a GCC
13630    builtin and then its argument prototype would still apply.  */
13631 #ifdef __cplusplus
13632 extern "C"
13633 #endif
13634 char pthread_mutex_init ();
13635 int
13636 main ()
13637 {
13638 return pthread_mutex_init ();
13639   ;
13640   return 0;
13641 }
13642 _ACEOF
13643 rm -f conftest.$ac_objext conftest$ac_exeext
13644 if { (ac_try="$ac_link"
13645 case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_link") 2>conftest.er1
13651   ac_status=$?
13652   grep -v '^ *+' conftest.er1 >conftest.err
13653   rm -f conftest.er1
13654   cat conftest.err >&5
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); } &&
13657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13658   { (case "(($ac_try" in
13659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660   *) ac_try_echo=$ac_try;;
13661 esac
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663   (eval "$ac_try") 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; } &&
13667          { ac_try='test -s conftest$ac_exeext'
13668   { (case "(($ac_try" in
13669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670   *) ac_try_echo=$ac_try;;
13671 esac
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673   (eval "$ac_try") 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }; then
13677   ac_cv_lib_pthread_pthread_mutex_init=yes
13678 else
13679   echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13681
13682         ac_cv_lib_pthread_pthread_mutex_init=no
13683 fi
13684
13685 rm -f core conftest.err conftest.$ac_objext \
13686       conftest$ac_exeext conftest.$ac_ext
13687 LIBS=$ac_check_lib_save_LIBS
13688 fi
13689 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13690 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13691 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13692   cat >>confdefs.h <<_ACEOF
13693 #define HAVE_LIBPTHREAD 1
13694 _ACEOF
13695
13696   LIBS="-lpthread $LIBS"
13697
13698 fi
13699
13700   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13701 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13702 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13703   echo $ECHO_N "(cached) $ECHO_C" >&6
13704 else
13705   ac_func_search_save_LIBS=$LIBS
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h.  */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h.  */
13712
13713 /* Override any GCC internal prototype to avoid an error.
13714    Use char because int might match the return type of a GCC
13715    builtin and then its argument prototype would still apply.  */
13716 #ifdef __cplusplus
13717 extern "C"
13718 #endif
13719 char pthread_mutex_lock ();
13720 int
13721 main ()
13722 {
13723 return pthread_mutex_lock ();
13724   ;
13725   return 0;
13726 }
13727 _ACEOF
13728 for ac_lib in '' pthread; do
13729   if test -z "$ac_lib"; then
13730     ac_res="none required"
13731   else
13732     ac_res=-l$ac_lib
13733     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13734   fi
13735   rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (ac_try="$ac_link"
13737 case "(($ac_try" in
13738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739   *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742   (eval "$ac_link") 2>conftest.er1
13743   ac_status=$?
13744   grep -v '^ *+' conftest.er1 >conftest.err
13745   rm -f conftest.er1
13746   cat conftest.err >&5
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } &&
13749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750   { (case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_try") 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; } &&
13759          { ac_try='test -s conftest$ac_exeext'
13760   { (case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_try") 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   ac_cv_search_pthread_mutex_lock=$ac_res
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774
13775 fi
13776
13777 rm -f core conftest.err conftest.$ac_objext \
13778       conftest$ac_exeext
13779   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13780   break
13781 fi
13782 done
13783 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13784   :
13785 else
13786   ac_cv_search_pthread_mutex_lock=no
13787 fi
13788 rm conftest.$ac_ext
13789 LIBS=$ac_func_search_save_LIBS
13790 fi
13791 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13792 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13793 ac_res=$ac_cv_search_pthread_mutex_lock
13794 if test "$ac_res" != no; then
13795   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13796
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_PTHREAD_MUTEX_LOCK 1
13799 _ACEOF
13800
13801 fi
13802
13803   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13804 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13805 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13806   echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808   ac_func_search_save_LIBS=$LIBS
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815
13816 /* Override any GCC internal prototype to avoid an error.
13817    Use char because int might match the return type of a GCC
13818    builtin and then its argument prototype would still apply.  */
13819 #ifdef __cplusplus
13820 extern "C"
13821 #endif
13822 char pthread_rwlock_init ();
13823 int
13824 main ()
13825 {
13826 return pthread_rwlock_init ();
13827   ;
13828   return 0;
13829 }
13830 _ACEOF
13831 for ac_lib in '' pthread; do
13832   if test -z "$ac_lib"; then
13833     ac_res="none required"
13834   else
13835     ac_res=-l$ac_lib
13836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13837   fi
13838   rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (ac_try="$ac_link"
13840 case "(($ac_try" in
13841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842   *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845   (eval "$ac_link") 2>conftest.er1
13846   ac_status=$?
13847   grep -v '^ *+' conftest.er1 >conftest.err
13848   rm -f conftest.er1
13849   cat conftest.err >&5
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); } &&
13852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13853   { (case "(($ac_try" in
13854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855   *) ac_try_echo=$ac_try;;
13856 esac
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858   (eval "$ac_try") 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; } &&
13862          { ac_try='test -s conftest$ac_exeext'
13863   { (case "(($ac_try" in
13864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865   *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868   (eval "$ac_try") 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; }; then
13872   ac_cv_search_pthread_rwlock_init=$ac_res
13873 else
13874   echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13876
13877
13878 fi
13879
13880 rm -f core conftest.err conftest.$ac_objext \
13881       conftest$ac_exeext
13882   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13883   break
13884 fi
13885 done
13886 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13887   :
13888 else
13889   ac_cv_search_pthread_rwlock_init=no
13890 fi
13891 rm conftest.$ac_ext
13892 LIBS=$ac_func_search_save_LIBS
13893 fi
13894 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13895 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13896 ac_res=$ac_cv_search_pthread_rwlock_init
13897 if test "$ac_res" != no; then
13898   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13899
13900 cat >>confdefs.h <<\_ACEOF
13901 #define HAVE_PTHREAD_RWLOCK_INIT 1
13902 _ACEOF
13903
13904 fi
13905
13906   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13907 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13908 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13909   echo $ECHO_N "(cached) $ECHO_C" >&6
13910 else
13911   ac_func_search_save_LIBS=$LIBS
13912 cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h.  */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h.  */
13918
13919 /* Override any GCC internal prototype to avoid an error.
13920    Use char because int might match the return type of a GCC
13921    builtin and then its argument prototype would still apply.  */
13922 #ifdef __cplusplus
13923 extern "C"
13924 #endif
13925 char pthread_getspecific ();
13926 int
13927 main ()
13928 {
13929 return pthread_getspecific ();
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 for ac_lib in '' pthread; do
13935   if test -z "$ac_lib"; then
13936     ac_res="none required"
13937   else
13938     ac_res=-l$ac_lib
13939     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13940   fi
13941   rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945   *) ac_try_echo=$ac_try;;
13946 esac
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948   (eval "$ac_link") 2>conftest.er1
13949   ac_status=$?
13950   grep -v '^ *+' conftest.er1 >conftest.err
13951   rm -f conftest.er1
13952   cat conftest.err >&5
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); } &&
13955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956   { (case "(($ac_try" in
13957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958   *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961   (eval "$ac_try") 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; } &&
13965          { ac_try='test -s conftest$ac_exeext'
13966   { (case "(($ac_try" in
13967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968   *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971   (eval "$ac_try") 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; }; then
13975   ac_cv_search_pthread_getspecific=$ac_res
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980
13981 fi
13982
13983 rm -f core conftest.err conftest.$ac_objext \
13984       conftest$ac_exeext
13985   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13986   break
13987 fi
13988 done
13989 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13990   :
13991 else
13992   ac_cv_search_pthread_getspecific=no
13993 fi
13994 rm conftest.$ac_ext
13995 LIBS=$ac_func_search_save_LIBS
13996 fi
13997 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13998 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13999 ac_res=$ac_cv_search_pthread_getspecific
14000 if test "$ac_res" != no; then
14001   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14002
14003 cat >>confdefs.h <<\_ACEOF
14004 #define HAVE_PTHREAD_GETSPECIFIC 1
14005 _ACEOF
14006
14007 fi
14008
14009 fi
14010
14011
14012 # Check whether --with-udis86 was given.
14013 if test "${with_udis86+set}" = set; then
14014   withval=$with_udis86;
14015       USE_UDIS86=1
14016
14017       case "$withval" in
14018         /usr/lib|yes) ;;
14019         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14020       esac
14021
14022 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14023 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14024 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14025   echo $ECHO_N "(cached) $ECHO_C" >&6
14026 else
14027   ac_check_lib_save_LIBS=$LIBS
14028 LIBS="-ludis86  $LIBS"
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h.  */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h.  */
14035
14036 /* Override any GCC internal prototype to avoid an error.
14037    Use char because int might match the return type of a GCC
14038    builtin and then its argument prototype would still apply.  */
14039 #ifdef __cplusplus
14040 extern "C"
14041 #endif
14042 char ud_init ();
14043 int
14044 main ()
14045 {
14046 return ud_init ();
14047   ;
14048   return 0;
14049 }
14050 _ACEOF
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (ac_try="$ac_link"
14053 case "(($ac_try" in
14054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055   *) ac_try_echo=$ac_try;;
14056 esac
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058   (eval "$ac_link") 2>conftest.er1
14059   ac_status=$?
14060   grep -v '^ *+' conftest.er1 >conftest.err
14061   rm -f conftest.er1
14062   cat conftest.err >&5
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); } &&
14065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14066   { (case "(($ac_try" in
14067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068   *) ac_try_echo=$ac_try;;
14069 esac
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071   (eval "$ac_try") 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); }; } &&
14075          { ac_try='test -s conftest$ac_exeext'
14076   { (case "(($ac_try" in
14077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078   *) ac_try_echo=$ac_try;;
14079 esac
14080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081   (eval "$ac_try") 2>&5
14082   ac_status=$?
14083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); }; }; then
14085   ac_cv_lib_udis86_ud_init=yes
14086 else
14087   echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14089
14090         ac_cv_lib_udis86_ud_init=no
14091 fi
14092
14093 rm -f core conftest.err conftest.$ac_objext \
14094       conftest$ac_exeext conftest.$ac_ext
14095 LIBS=$ac_check_lib_save_LIBS
14096 fi
14097 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14098 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14099 if test $ac_cv_lib_udis86_ud_init = yes; then
14100   cat >>confdefs.h <<_ACEOF
14101 #define HAVE_LIBUDIS86 1
14102 _ACEOF
14103
14104   LIBS="-ludis86 $LIBS"
14105
14106 else
14107
14108         echo "Error! You need to have libudis86 around."
14109         exit -1
14110
14111 fi
14112
14113
14114 else
14115   USE_UDIS86=0
14116
14117 fi
14118
14119
14120 cat >>confdefs.h <<_ACEOF
14121 #define USE_UDIS86 $USE_UDIS86
14122 _ACEOF
14123
14124
14125
14126 # Check whether --with-oprofile was given.
14127 if test "${with_oprofile+set}" = set; then
14128   withval=$with_oprofile;
14129       USE_OPROFILE=1
14130
14131       case "$withval" in
14132         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14133         no) llvm_cv_oppath=
14134             USE_OPROFILE=0
14135  ;;
14136         *) llvm_cv_oppath="${withval}/lib/oprofile"
14137            CPPFLAGS="-I${withval}/include";;
14138       esac
14139       if test -n "$llvm_cv_oppath" ; then
14140         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14141                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14142 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14143 if test "${ac_cv_search_bfd_init+set}" = set; then
14144   echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146   ac_func_search_save_LIBS=$LIBS
14147 cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h.  */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h.  */
14153
14154 /* Override any GCC internal prototype to avoid an error.
14155    Use char because int might match the return type of a GCC
14156    builtin and then its argument prototype would still apply.  */
14157 #ifdef __cplusplus
14158 extern "C"
14159 #endif
14160 char bfd_init ();
14161 int
14162 main ()
14163 {
14164 return bfd_init ();
14165   ;
14166   return 0;
14167 }
14168 _ACEOF
14169 for ac_lib in '' bfd; do
14170   if test -z "$ac_lib"; then
14171     ac_res="none required"
14172   else
14173     ac_res=-l$ac_lib
14174     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14175   fi
14176   rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (ac_try="$ac_link"
14178 case "(($ac_try" in
14179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180   *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183   (eval "$ac_link") 2>conftest.er1
14184   ac_status=$?
14185   grep -v '^ *+' conftest.er1 >conftest.err
14186   rm -f conftest.er1
14187   cat conftest.err >&5
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); } &&
14190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14191   { (case "(($ac_try" in
14192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193   *) ac_try_echo=$ac_try;;
14194 esac
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196   (eval "$ac_try") 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); }; } &&
14200          { ac_try='test -s conftest$ac_exeext'
14201   { (case "(($ac_try" in
14202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203   *) ac_try_echo=$ac_try;;
14204 esac
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206   (eval "$ac_try") 2>&5
14207   ac_status=$?
14208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209   (exit $ac_status); }; }; then
14210   ac_cv_search_bfd_init=$ac_res
14211 else
14212   echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14214
14215
14216 fi
14217
14218 rm -f core conftest.err conftest.$ac_objext \
14219       conftest$ac_exeext
14220   if test "${ac_cv_search_bfd_init+set}" = set; then
14221   break
14222 fi
14223 done
14224 if test "${ac_cv_search_bfd_init+set}" = set; then
14225   :
14226 else
14227   ac_cv_search_bfd_init=no
14228 fi
14229 rm conftest.$ac_ext
14230 LIBS=$ac_func_search_save_LIBS
14231 fi
14232 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14233 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14234 ac_res=$ac_cv_search_bfd_init
14235 if test "$ac_res" != no; then
14236   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14237
14238 fi
14239
14240         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14241 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14242 if test "${ac_cv_search_op_open_agent+set}" = set; then
14243   echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245   ac_func_search_save_LIBS=$LIBS
14246 cat >conftest.$ac_ext <<_ACEOF
14247 /* confdefs.h.  */
14248 _ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h.  */
14252
14253 /* Override any GCC internal prototype to avoid an error.
14254    Use char because int might match the return type of a GCC
14255    builtin and then its argument prototype would still apply.  */
14256 #ifdef __cplusplus
14257 extern "C"
14258 #endif
14259 char op_open_agent ();
14260 int
14261 main ()
14262 {
14263 return op_open_agent ();
14264   ;
14265   return 0;
14266 }
14267 _ACEOF
14268 for ac_lib in '' opagent; do
14269   if test -z "$ac_lib"; then
14270     ac_res="none required"
14271   else
14272     ac_res=-l$ac_lib
14273     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14274   fi
14275   rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (ac_try="$ac_link"
14277 case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282   (eval "$ac_link") 2>conftest.er1
14283   ac_status=$?
14284   grep -v '^ *+' conftest.er1 >conftest.err
14285   rm -f conftest.er1
14286   cat conftest.err >&5
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } &&
14289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290   { (case "(($ac_try" in
14291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292   *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295   (eval "$ac_try") 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; } &&
14299          { ac_try='test -s conftest$ac_exeext'
14300   { (case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305   (eval "$ac_try") 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); }; }; then
14309   ac_cv_search_op_open_agent=$ac_res
14310 else
14311   echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314
14315 fi
14316
14317 rm -f core conftest.err conftest.$ac_objext \
14318       conftest$ac_exeext
14319   if test "${ac_cv_search_op_open_agent+set}" = set; then
14320   break
14321 fi
14322 done
14323 if test "${ac_cv_search_op_open_agent+set}" = set; then
14324   :
14325 else
14326   ac_cv_search_op_open_agent=no
14327 fi
14328 rm conftest.$ac_ext
14329 LIBS=$ac_func_search_save_LIBS
14330 fi
14331 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14332 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14333 ac_res=$ac_cv_search_op_open_agent
14334 if test "$ac_res" != no; then
14335   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14336
14337 else
14338
14339           echo "Error! You need to have libopagent around."
14340           exit -1
14341
14342 fi
14343
14344         if test "${ac_cv_header_opagent_h+set}" = set; then
14345   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14346 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14347 if test "${ac_cv_header_opagent_h+set}" = set; then
14348   echo $ECHO_N "(cached) $ECHO_C" >&6
14349 fi
14350 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14351 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14352 else
14353   # Is the header compilable?
14354 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14355 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h.  */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h.  */
14362 $ac_includes_default
14363 #include <opagent.h>
14364 _ACEOF
14365 rm -f conftest.$ac_objext
14366 if { (ac_try="$ac_compile"
14367 case "(($ac_try" in
14368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369   *) ac_try_echo=$ac_try;;
14370 esac
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372   (eval "$ac_compile") 2>conftest.er1
14373   ac_status=$?
14374   grep -v '^ *+' conftest.er1 >conftest.err
14375   rm -f conftest.er1
14376   cat conftest.err >&5
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); } &&
14379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14380   { (case "(($ac_try" in
14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382   *) ac_try_echo=$ac_try;;
14383 esac
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385   (eval "$ac_try") 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; } &&
14389          { ac_try='test -s conftest.$ac_objext'
14390   { (case "(($ac_try" in
14391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392   *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395   (eval "$ac_try") 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; }; then
14399   ac_header_compiler=yes
14400 else
14401   echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14403
14404         ac_header_compiler=no
14405 fi
14406
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14409 echo "${ECHO_T}$ac_header_compiler" >&6; }
14410
14411 # Is the header present?
14412 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14413 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420 #include <opagent.h>
14421 _ACEOF
14422 if { (ac_try="$ac_cpp conftest.$ac_ext"
14423 case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } >/dev/null; then
14435   if test -s conftest.err; then
14436     ac_cpp_err=$ac_c_preproc_warn_flag
14437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14438   else
14439     ac_cpp_err=
14440   fi
14441 else
14442   ac_cpp_err=yes
14443 fi
14444 if test -z "$ac_cpp_err"; then
14445   ac_header_preproc=yes
14446 else
14447   echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14449
14450   ac_header_preproc=no
14451 fi
14452
14453 rm -f conftest.err conftest.$ac_ext
14454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14455 echo "${ECHO_T}$ac_header_preproc" >&6; }
14456
14457 # So?  What about this header?
14458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14459   yes:no: )
14460     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14461 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14462     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14463 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14464     ac_header_preproc=yes
14465     ;;
14466   no:yes:* )
14467     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14468 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14469     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14470 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14471     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14472 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14473     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14474 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14475     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14476 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14477     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14478 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14479     ( cat <<\_ASBOX
14480 ## ----------------------------------- ##
14481 ## Report this to llvmbugs@cs.uiuc.edu ##
14482 ## ----------------------------------- ##
14483 _ASBOX
14484      ) | sed "s/^/$as_me: WARNING:     /" >&2
14485     ;;
14486 esac
14487 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14488 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14489 if test "${ac_cv_header_opagent_h+set}" = set; then
14490   echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492   ac_cv_header_opagent_h=$ac_header_preproc
14493 fi
14494 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14495 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14496
14497 fi
14498 if test $ac_cv_header_opagent_h = yes; then
14499   :
14500 else
14501
14502           echo "Error! You need to have opagent.h around."
14503           exit -1
14504
14505 fi
14506
14507
14508       fi
14509
14510 else
14511
14512       USE_OPROFILE=0
14513
14514
14515 fi
14516
14517
14518 cat >>confdefs.h <<_ACEOF
14519 #define USE_OPROFILE $USE_OPROFILE
14520 _ACEOF
14521
14522
14523
14524
14525
14526
14527
14528
14529 ac_header_dirent=no
14530 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14531   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14532 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14533 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535   echo $ECHO_N "(cached) $ECHO_C" >&6
14536 else
14537   cat >conftest.$ac_ext <<_ACEOF
14538 /* confdefs.h.  */
14539 _ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h.  */
14543 #include <sys/types.h>
14544 #include <$ac_hdr>
14545
14546 int
14547 main ()
14548 {
14549 if ((DIR *) 0)
14550 return 0;
14551   ;
14552   return 0;
14553 }
14554 _ACEOF
14555 rm -f conftest.$ac_objext
14556 if { (ac_try="$ac_compile"
14557 case "(($ac_try" in
14558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559   *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562   (eval "$ac_compile") 2>conftest.er1
14563   ac_status=$?
14564   grep -v '^ *+' conftest.er1 >conftest.err
14565   rm -f conftest.er1
14566   cat conftest.err >&5
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); } &&
14569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14570   { (case "(($ac_try" in
14571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572   *) ac_try_echo=$ac_try;;
14573 esac
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575   (eval "$ac_try") 2>&5
14576   ac_status=$?
14577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578   (exit $ac_status); }; } &&
14579          { ac_try='test -s conftest.$ac_objext'
14580   { (case "(($ac_try" in
14581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582   *) ac_try_echo=$ac_try;;
14583 esac
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585   (eval "$ac_try") 2>&5
14586   ac_status=$?
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); }; }; then
14589   eval "$as_ac_Header=yes"
14590 else
14591   echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14593
14594         eval "$as_ac_Header=no"
14595 fi
14596
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14598 fi
14599 ac_res=`eval echo '${'$as_ac_Header'}'`
14600                { echo "$as_me:$LINENO: result: $ac_res" >&5
14601 echo "${ECHO_T}$ac_res" >&6; }
14602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14603   cat >>confdefs.h <<_ACEOF
14604 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14605 _ACEOF
14606
14607 ac_header_dirent=$ac_hdr; break
14608 fi
14609
14610 done
14611 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14612 if test $ac_header_dirent = dirent.h; then
14613   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14614 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14615 if test "${ac_cv_search_opendir+set}" = set; then
14616   echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618   ac_func_search_save_LIBS=$LIBS
14619 cat >conftest.$ac_ext <<_ACEOF
14620 /* confdefs.h.  */
14621 _ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h.  */
14625
14626 /* Override any GCC internal prototype to avoid an error.
14627    Use char because int might match the return type of a GCC
14628    builtin and then its argument prototype would still apply.  */
14629 #ifdef __cplusplus
14630 extern "C"
14631 #endif
14632 char opendir ();
14633 int
14634 main ()
14635 {
14636 return opendir ();
14637   ;
14638   return 0;
14639 }
14640 _ACEOF
14641 for ac_lib in '' dir; do
14642   if test -z "$ac_lib"; then
14643     ac_res="none required"
14644   else
14645     ac_res=-l$ac_lib
14646     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14647   fi
14648   rm -f conftest.$ac_objext conftest$ac_exeext
14649 if { (ac_try="$ac_link"
14650 case "(($ac_try" in
14651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652   *) ac_try_echo=$ac_try;;
14653 esac
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655   (eval "$ac_link") 2>conftest.er1
14656   ac_status=$?
14657   grep -v '^ *+' conftest.er1 >conftest.err
14658   rm -f conftest.er1
14659   cat conftest.err >&5
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); } &&
14662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14663   { (case "(($ac_try" in
14664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665   *) ac_try_echo=$ac_try;;
14666 esac
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668   (eval "$ac_try") 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); }; } &&
14672          { ac_try='test -s conftest$ac_exeext'
14673   { (case "(($ac_try" in
14674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675   *) ac_try_echo=$ac_try;;
14676 esac
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678   (eval "$ac_try") 2>&5
14679   ac_status=$?
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); }; }; then
14682   ac_cv_search_opendir=$ac_res
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687
14688 fi
14689
14690 rm -f core conftest.err conftest.$ac_objext \
14691       conftest$ac_exeext
14692   if test "${ac_cv_search_opendir+set}" = set; then
14693   break
14694 fi
14695 done
14696 if test "${ac_cv_search_opendir+set}" = set; then
14697   :
14698 else
14699   ac_cv_search_opendir=no
14700 fi
14701 rm conftest.$ac_ext
14702 LIBS=$ac_func_search_save_LIBS
14703 fi
14704 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14705 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14706 ac_res=$ac_cv_search_opendir
14707 if test "$ac_res" != no; then
14708   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14709
14710 fi
14711
14712 else
14713   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14714 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14715 if test "${ac_cv_search_opendir+set}" = set; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   ac_func_search_save_LIBS=$LIBS
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725
14726 /* Override any GCC internal prototype to avoid an error.
14727    Use char because int might match the return type of a GCC
14728    builtin and then its argument prototype would still apply.  */
14729 #ifdef __cplusplus
14730 extern "C"
14731 #endif
14732 char opendir ();
14733 int
14734 main ()
14735 {
14736 return opendir ();
14737   ;
14738   return 0;
14739 }
14740 _ACEOF
14741 for ac_lib in '' x; do
14742   if test -z "$ac_lib"; then
14743     ac_res="none required"
14744   else
14745     ac_res=-l$ac_lib
14746     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14747   fi
14748   rm -f conftest.$ac_objext conftest$ac_exeext
14749 if { (ac_try="$ac_link"
14750 case "(($ac_try" in
14751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752   *) ac_try_echo=$ac_try;;
14753 esac
14754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755   (eval "$ac_link") 2>conftest.er1
14756   ac_status=$?
14757   grep -v '^ *+' conftest.er1 >conftest.err
14758   rm -f conftest.er1
14759   cat conftest.err >&5
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); } &&
14762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14763   { (case "(($ac_try" in
14764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765   *) ac_try_echo=$ac_try;;
14766 esac
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768   (eval "$ac_try") 2>&5
14769   ac_status=$?
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); }; } &&
14772          { ac_try='test -s conftest$ac_exeext'
14773   { (case "(($ac_try" in
14774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775   *) ac_try_echo=$ac_try;;
14776 esac
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778   (eval "$ac_try") 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; }; then
14782   ac_cv_search_opendir=$ac_res
14783 else
14784   echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787
14788 fi
14789
14790 rm -f core conftest.err conftest.$ac_objext \
14791       conftest$ac_exeext
14792   if test "${ac_cv_search_opendir+set}" = set; then
14793   break
14794 fi
14795 done
14796 if test "${ac_cv_search_opendir+set}" = set; then
14797   :
14798 else
14799   ac_cv_search_opendir=no
14800 fi
14801 rm conftest.$ac_ext
14802 LIBS=$ac_func_search_save_LIBS
14803 fi
14804 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14805 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14806 ac_res=$ac_cv_search_opendir
14807 if test "$ac_res" != no; then
14808   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14809
14810 fi
14811
14812 fi
14813
14814 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14815 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14816 if test "${ac_cv_header_mmap_anon+set}" = set; then
14817   echo $ECHO_N "(cached) $ECHO_C" >&6
14818 else
14819    ac_ext=c
14820 ac_cpp='$CPP $CPPFLAGS'
14821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14824
14825   cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h.  */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h.  */
14831 #include <sys/mman.h>
14832 #include <unistd.h>
14833 #include <fcntl.h>
14834 int
14835 main ()
14836 {
14837 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14838   ;
14839   return 0;
14840 }
14841 _ACEOF
14842 rm -f conftest.$ac_objext
14843 if { (ac_try="$ac_compile"
14844 case "(($ac_try" in
14845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846   *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849   (eval "$ac_compile") 2>conftest.er1
14850   ac_status=$?
14851   grep -v '^ *+' conftest.er1 >conftest.err
14852   rm -f conftest.er1
14853   cat conftest.err >&5
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); } &&
14856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857   { (case "(($ac_try" in
14858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859   *) ac_try_echo=$ac_try;;
14860 esac
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862   (eval "$ac_try") 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; } &&
14866          { ac_try='test -s conftest.$ac_objext'
14867   { (case "(($ac_try" in
14868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869   *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872   (eval "$ac_try") 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); }; }; then
14876   ac_cv_header_mmap_anon=yes
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881         ac_cv_header_mmap_anon=no
14882 fi
14883
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885   ac_ext=c
14886 ac_cpp='$CPP $CPPFLAGS'
14887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14890
14891
14892 fi
14893 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14894 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14895 if test "$ac_cv_header_mmap_anon" = yes; then
14896
14897 cat >>confdefs.h <<\_ACEOF
14898 #define HAVE_MMAP_ANONYMOUS 1
14899 _ACEOF
14900
14901 fi
14902
14903 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14904 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14905 if test "${ac_cv_header_stat_broken+set}" = set; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908   cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914 #include <sys/types.h>
14915 #include <sys/stat.h>
14916
14917 #if defined S_ISBLK && defined S_IFDIR
14918 # if S_ISBLK (S_IFDIR)
14919 You lose.
14920 # endif
14921 #endif
14922
14923 #if defined S_ISBLK && defined S_IFCHR
14924 # if S_ISBLK (S_IFCHR)
14925 You lose.
14926 # endif
14927 #endif
14928
14929 #if defined S_ISLNK && defined S_IFREG
14930 # if S_ISLNK (S_IFREG)
14931 You lose.
14932 # endif
14933 #endif
14934
14935 #if defined S_ISSOCK && defined S_IFREG
14936 # if S_ISSOCK (S_IFREG)
14937 You lose.
14938 # endif
14939 #endif
14940
14941 _ACEOF
14942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14943   $EGREP "You lose" >/dev/null 2>&1; then
14944   ac_cv_header_stat_broken=yes
14945 else
14946   ac_cv_header_stat_broken=no
14947 fi
14948 rm -f conftest*
14949
14950 fi
14951 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14952 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14953 if test $ac_cv_header_stat_broken = yes; then
14954
14955 cat >>confdefs.h <<\_ACEOF
14956 #define STAT_MACROS_BROKEN 1
14957 _ACEOF
14958
14959 fi
14960
14961 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14963 if test "${ac_cv_header_stdc+set}" = set; then
14964   echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966   cat >conftest.$ac_ext <<_ACEOF
14967 /* confdefs.h.  */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h.  */
14972 #include <stdlib.h>
14973 #include <stdarg.h>
14974 #include <string.h>
14975 #include <float.h>
14976
14977 int
14978 main ()
14979 {
14980
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext
14986 if { (ac_try="$ac_compile"
14987 case "(($ac_try" in
14988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989   *) ac_try_echo=$ac_try;;
14990 esac
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992   (eval "$ac_compile") 2>conftest.er1
14993   ac_status=$?
14994   grep -v '^ *+' conftest.er1 >conftest.err
14995   rm -f conftest.er1
14996   cat conftest.err >&5
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } &&
14999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15000   { (case "(($ac_try" in
15001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002   *) ac_try_echo=$ac_try;;
15003 esac
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005   (eval "$ac_try") 2>&5
15006   ac_status=$?
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); }; } &&
15009          { ac_try='test -s conftest.$ac_objext'
15010   { (case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015   (eval "$ac_try") 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); }; }; then
15019   ac_cv_header_stdc=yes
15020 else
15021   echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024         ac_cv_header_stdc=no
15025 fi
15026
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028
15029 if test $ac_cv_header_stdc = yes; then
15030   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15031   cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h.  */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h.  */
15037 #include <string.h>
15038
15039 _ACEOF
15040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15041   $EGREP "memchr" >/dev/null 2>&1; then
15042   :
15043 else
15044   ac_cv_header_stdc=no
15045 fi
15046 rm -f conftest*
15047
15048 fi
15049
15050 if test $ac_cv_header_stdc = yes; then
15051   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15052   cat >conftest.$ac_ext <<_ACEOF
15053 /* confdefs.h.  */
15054 _ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h.  */
15058 #include <stdlib.h>
15059
15060 _ACEOF
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062   $EGREP "free" >/dev/null 2>&1; then
15063   :
15064 else
15065   ac_cv_header_stdc=no
15066 fi
15067 rm -f conftest*
15068
15069 fi
15070
15071 if test $ac_cv_header_stdc = yes; then
15072   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15073   if test "$cross_compiling" = yes; then
15074   :
15075 else
15076   cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082 #include <ctype.h>
15083 #include <stdlib.h>
15084 #if ((' ' & 0x0FF) == 0x020)
15085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15087 #else
15088 # define ISLOWER(c) \
15089                    (('a' <= (c) && (c) <= 'i') \
15090                      || ('j' <= (c) && (c) <= 'r') \
15091                      || ('s' <= (c) && (c) <= 'z'))
15092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15093 #endif
15094
15095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15096 int
15097 main ()
15098 {
15099   int i;
15100   for (i = 0; i < 256; i++)
15101     if (XOR (islower (i), ISLOWER (i))
15102         || toupper (i) != TOUPPER (i))
15103       return 2;
15104   return 0;
15105 }
15106 _ACEOF
15107 rm -f conftest$ac_exeext
15108 if { (ac_try="$ac_link"
15109 case "(($ac_try" in
15110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111   *) ac_try_echo=$ac_try;;
15112 esac
15113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114   (eval "$ac_link") 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15118   { (case "(($ac_try" in
15119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120   *) ac_try_echo=$ac_try;;
15121 esac
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123   (eval "$ac_try") 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; }; then
15127   :
15128 else
15129   echo "$as_me: program exited with status $ac_status" >&5
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 ( exit $ac_status )
15134 ac_cv_header_stdc=no
15135 fi
15136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15137 fi
15138
15139
15140 fi
15141 fi
15142 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15143 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15144 if test $ac_cv_header_stdc = yes; then
15145
15146 cat >>confdefs.h <<\_ACEOF
15147 #define STDC_HEADERS 1
15148 _ACEOF
15149
15150 fi
15151
15152 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15153 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15154 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15155   echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157   cat >conftest.$ac_ext <<_ACEOF
15158 /* confdefs.h.  */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h.  */
15163 #include <sys/types.h>
15164 #include <sys/wait.h>
15165 #ifndef WEXITSTATUS
15166 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15167 #endif
15168 #ifndef WIFEXITED
15169 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15170 #endif
15171
15172 int
15173 main ()
15174 {
15175   int s;
15176   wait (&s);
15177   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15178   ;
15179   return 0;
15180 }
15181 _ACEOF
15182 rm -f conftest.$ac_objext
15183 if { (ac_try="$ac_compile"
15184 case "(($ac_try" in
15185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186   *) ac_try_echo=$ac_try;;
15187 esac
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189   (eval "$ac_compile") 2>conftest.er1
15190   ac_status=$?
15191   grep -v '^ *+' conftest.er1 >conftest.err
15192   rm -f conftest.er1
15193   cat conftest.err >&5
15194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195   (exit $ac_status); } &&
15196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15197   { (case "(($ac_try" in
15198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199   *) ac_try_echo=$ac_try;;
15200 esac
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202   (eval "$ac_try") 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); }; } &&
15206          { ac_try='test -s conftest.$ac_objext'
15207   { (case "(($ac_try" in
15208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209   *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212   (eval "$ac_try") 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); }; }; then
15216   ac_cv_header_sys_wait_h=yes
15217 else
15218   echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15220
15221         ac_cv_header_sys_wait_h=no
15222 fi
15223
15224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15225 fi
15226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15227 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15228 if test $ac_cv_header_sys_wait_h = yes; then
15229
15230 cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_SYS_WAIT_H 1
15232 _ACEOF
15233
15234 fi
15235
15236 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15237 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15238 if test "${ac_cv_header_time+set}" = set; then
15239   echo $ECHO_N "(cached) $ECHO_C" >&6
15240 else
15241   cat >conftest.$ac_ext <<_ACEOF
15242 /* confdefs.h.  */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h.  */
15247 #include <sys/types.h>
15248 #include <sys/time.h>
15249 #include <time.h>
15250
15251 int
15252 main ()
15253 {
15254 if ((struct tm *) 0)
15255 return 0;
15256   ;
15257   return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext
15261 if { (ac_try="$ac_compile"
15262 case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267   (eval "$ac_compile") 2>conftest.er1
15268   ac_status=$?
15269   grep -v '^ *+' conftest.er1 >conftest.err
15270   rm -f conftest.er1
15271   cat conftest.err >&5
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } &&
15274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15275   { (case "(($ac_try" in
15276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277   *) ac_try_echo=$ac_try;;
15278 esac
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280   (eval "$ac_try") 2>&5
15281   ac_status=$?
15282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }; } &&
15284          { ac_try='test -s conftest.$ac_objext'
15285   { (case "(($ac_try" in
15286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287   *) ac_try_echo=$ac_try;;
15288 esac
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290   (eval "$ac_try") 2>&5
15291   ac_status=$?
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); }; }; then
15294   ac_cv_header_time=yes
15295 else
15296   echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15298
15299         ac_cv_header_time=no
15300 fi
15301
15302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303 fi
15304 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15305 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15306 if test $ac_cv_header_time = yes; then
15307
15308 cat >>confdefs.h <<\_ACEOF
15309 #define TIME_WITH_SYS_TIME 1
15310 _ACEOF
15311
15312 fi
15313
15314
15315
15316
15317
15318
15319
15320
15321 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15322 do
15323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15325   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 fi
15330 ac_res=`eval echo '${'$as_ac_Header'}'`
15331                { echo "$as_me:$LINENO: result: $ac_res" >&5
15332 echo "${ECHO_T}$ac_res" >&6; }
15333 else
15334   # Is the header compilable?
15335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15337 cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h.  */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h.  */
15343 $ac_includes_default
15344 #include <$ac_header>
15345 _ACEOF
15346 rm -f conftest.$ac_objext
15347 if { (ac_try="$ac_compile"
15348 case "(($ac_try" in
15349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350   *) ac_try_echo=$ac_try;;
15351 esac
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353   (eval "$ac_compile") 2>conftest.er1
15354   ac_status=$?
15355   grep -v '^ *+' conftest.er1 >conftest.err
15356   rm -f conftest.er1
15357   cat conftest.err >&5
15358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359   (exit $ac_status); } &&
15360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15361   { (case "(($ac_try" in
15362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363   *) ac_try_echo=$ac_try;;
15364 esac
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366   (eval "$ac_try") 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); }; } &&
15370          { ac_try='test -s conftest.$ac_objext'
15371   { (case "(($ac_try" in
15372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373   *) ac_try_echo=$ac_try;;
15374 esac
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376   (eval "$ac_try") 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; }; then
15380   ac_header_compiler=yes
15381 else
15382   echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15384
15385         ac_header_compiler=no
15386 fi
15387
15388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15390 echo "${ECHO_T}$ac_header_compiler" >&6; }
15391
15392 # Is the header present?
15393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15395 cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 #include <$ac_header>
15402 _ACEOF
15403 if { (ac_try="$ac_cpp conftest.$ac_ext"
15404 case "(($ac_try" in
15405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406   *) ac_try_echo=$ac_try;;
15407 esac
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15410   ac_status=$?
15411   grep -v '^ *+' conftest.er1 >conftest.err
15412   rm -f conftest.er1
15413   cat conftest.err >&5
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); } >/dev/null; then
15416   if test -s conftest.err; then
15417     ac_cpp_err=$ac_c_preproc_warn_flag
15418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15419   else
15420     ac_cpp_err=
15421   fi
15422 else
15423   ac_cpp_err=yes
15424 fi
15425 if test -z "$ac_cpp_err"; then
15426   ac_header_preproc=yes
15427 else
15428   echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15430
15431   ac_header_preproc=no
15432 fi
15433
15434 rm -f conftest.err conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15436 echo "${ECHO_T}$ac_header_preproc" >&6; }
15437
15438 # So?  What about this header?
15439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15440   yes:no: )
15441     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15445     ac_header_preproc=yes
15446     ;;
15447   no:yes:* )
15448     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15450     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15451 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15452     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15454     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15455 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15458     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15460     ( cat <<\_ASBOX
15461 ## ----------------------------------- ##
15462 ## Report this to llvmbugs@cs.uiuc.edu ##
15463 ## ----------------------------------- ##
15464 _ASBOX
15465      ) | sed "s/^/$as_me: WARNING:     /" >&2
15466     ;;
15467 esac
15468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471   echo $ECHO_N "(cached) $ECHO_C" >&6
15472 else
15473   eval "$as_ac_Header=\$ac_header_preproc"
15474 fi
15475 ac_res=`eval echo '${'$as_ac_Header'}'`
15476                { echo "$as_me:$LINENO: result: $ac_res" >&5
15477 echo "${ECHO_T}$ac_res" >&6; }
15478
15479 fi
15480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15481   cat >>confdefs.h <<_ACEOF
15482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15483 _ACEOF
15484
15485 fi
15486
15487 done
15488
15489
15490
15491
15492
15493
15494
15495 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15496 do
15497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502   echo $ECHO_N "(cached) $ECHO_C" >&6
15503 fi
15504 ac_res=`eval echo '${'$as_ac_Header'}'`
15505                { echo "$as_me:$LINENO: result: $ac_res" >&5
15506 echo "${ECHO_T}$ac_res" >&6; }
15507 else
15508   # Is the header compilable?
15509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h.  */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h.  */
15517 $ac_includes_default
15518 #include <$ac_header>
15519 _ACEOF
15520 rm -f conftest.$ac_objext
15521 if { (ac_try="$ac_compile"
15522 case "(($ac_try" in
15523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524   *) ac_try_echo=$ac_try;;
15525 esac
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527   (eval "$ac_compile") 2>conftest.er1
15528   ac_status=$?
15529   grep -v '^ *+' conftest.er1 >conftest.err
15530   rm -f conftest.er1
15531   cat conftest.err >&5
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); } &&
15534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15535   { (case "(($ac_try" in
15536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15537   *) ac_try_echo=$ac_try;;
15538 esac
15539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15540   (eval "$ac_try") 2>&5
15541   ac_status=$?
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); }; } &&
15544          { ac_try='test -s conftest.$ac_objext'
15545   { (case "(($ac_try" in
15546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547   *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550   (eval "$ac_try") 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); }; }; then
15554   ac_header_compiler=yes
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559         ac_header_compiler=no
15560 fi
15561
15562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15564 echo "${ECHO_T}$ac_header_compiler" >&6; }
15565
15566 # Is the header present?
15567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15569 cat >conftest.$ac_ext <<_ACEOF
15570 /* confdefs.h.  */
15571 _ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h.  */
15575 #include <$ac_header>
15576 _ACEOF
15577 if { (ac_try="$ac_cpp conftest.$ac_ext"
15578 case "(($ac_try" in
15579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580   *) ac_try_echo=$ac_try;;
15581 esac
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15584   ac_status=$?
15585   grep -v '^ *+' conftest.er1 >conftest.err
15586   rm -f conftest.er1
15587   cat conftest.err >&5
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); } >/dev/null; then
15590   if test -s conftest.err; then
15591     ac_cpp_err=$ac_c_preproc_warn_flag
15592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15593   else
15594     ac_cpp_err=
15595   fi
15596 else
15597   ac_cpp_err=yes
15598 fi
15599 if test -z "$ac_cpp_err"; then
15600   ac_header_preproc=yes
15601 else
15602   echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15604
15605   ac_header_preproc=no
15606 fi
15607
15608 rm -f conftest.err conftest.$ac_ext
15609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15610 echo "${ECHO_T}$ac_header_preproc" >&6; }
15611
15612 # So?  What about this header?
15613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15614   yes:no: )
15615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15619     ac_header_preproc=yes
15620     ;;
15621   no:yes:* )
15622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15634     ( cat <<\_ASBOX
15635 ## ----------------------------------- ##
15636 ## Report this to llvmbugs@cs.uiuc.edu ##
15637 ## ----------------------------------- ##
15638 _ASBOX
15639      ) | sed "s/^/$as_me: WARNING:     /" >&2
15640     ;;
15641 esac
15642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645   echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647   eval "$as_ac_Header=\$ac_header_preproc"
15648 fi
15649 ac_res=`eval echo '${'$as_ac_Header'}'`
15650                { echo "$as_me:$LINENO: result: $ac_res" >&5
15651 echo "${ECHO_T}$ac_res" >&6; }
15652
15653 fi
15654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15655   cat >>confdefs.h <<_ACEOF
15656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15657 _ACEOF
15658
15659 fi
15660
15661 done
15662
15663
15664
15665 for ac_header in utime.h windows.h
15666 do
15667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15669   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15672   echo $ECHO_N "(cached) $ECHO_C" >&6
15673 fi
15674 ac_res=`eval echo '${'$as_ac_Header'}'`
15675                { echo "$as_me:$LINENO: result: $ac_res" >&5
15676 echo "${ECHO_T}$ac_res" >&6; }
15677 else
15678   # Is the header compilable?
15679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15681 cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h.  */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h.  */
15687 $ac_includes_default
15688 #include <$ac_header>
15689 _ACEOF
15690 rm -f conftest.$ac_objext
15691 if { (ac_try="$ac_compile"
15692 case "(($ac_try" in
15693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694   *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697   (eval "$ac_compile") 2>conftest.er1
15698   ac_status=$?
15699   grep -v '^ *+' conftest.er1 >conftest.err
15700   rm -f conftest.er1
15701   cat conftest.err >&5
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); } &&
15704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15705   { (case "(($ac_try" in
15706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707   *) ac_try_echo=$ac_try;;
15708 esac
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710   (eval "$ac_try") 2>&5
15711   ac_status=$?
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); }; } &&
15714          { ac_try='test -s conftest.$ac_objext'
15715   { (case "(($ac_try" in
15716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717   *) ac_try_echo=$ac_try;;
15718 esac
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720   (eval "$ac_try") 2>&5
15721   ac_status=$?
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); }; }; then
15724   ac_header_compiler=yes
15725 else
15726   echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15728
15729         ac_header_compiler=no
15730 fi
15731
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15734 echo "${ECHO_T}$ac_header_compiler" >&6; }
15735
15736 # Is the header present?
15737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745 #include <$ac_header>
15746 _ACEOF
15747 if { (ac_try="$ac_cpp conftest.$ac_ext"
15748 case "(($ac_try" in
15749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750   *) ac_try_echo=$ac_try;;
15751 esac
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15754   ac_status=$?
15755   grep -v '^ *+' conftest.er1 >conftest.err
15756   rm -f conftest.er1
15757   cat conftest.err >&5
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); } >/dev/null; then
15760   if test -s conftest.err; then
15761     ac_cpp_err=$ac_c_preproc_warn_flag
15762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15763   else
15764     ac_cpp_err=
15765   fi
15766 else
15767   ac_cpp_err=yes
15768 fi
15769 if test -z "$ac_cpp_err"; then
15770   ac_header_preproc=yes
15771 else
15772   echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15774
15775   ac_header_preproc=no
15776 fi
15777
15778 rm -f conftest.err conftest.$ac_ext
15779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15780 echo "${ECHO_T}$ac_header_preproc" >&6; }
15781
15782 # So?  What about this header?
15783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15784   yes:no: )
15785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15789     ac_header_preproc=yes
15790     ;;
15791   no:yes:* )
15792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15804     ( cat <<\_ASBOX
15805 ## ----------------------------------- ##
15806 ## Report this to llvmbugs@cs.uiuc.edu ##
15807 ## ----------------------------------- ##
15808 _ASBOX
15809      ) | sed "s/^/$as_me: WARNING:     /" >&2
15810     ;;
15811 esac
15812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15815   echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817   eval "$as_ac_Header=\$ac_header_preproc"
15818 fi
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820                { echo "$as_me:$LINENO: result: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15822
15823 fi
15824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15825   cat >>confdefs.h <<_ACEOF
15826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15827 _ACEOF
15828
15829 fi
15830
15831 done
15832
15833
15834
15835
15836
15837 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15838 do
15839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844   echo $ECHO_N "(cached) $ECHO_C" >&6
15845 fi
15846 ac_res=`eval echo '${'$as_ac_Header'}'`
15847                { echo "$as_me:$LINENO: result: $ac_res" >&5
15848 echo "${ECHO_T}$ac_res" >&6; }
15849 else
15850   # Is the header compilable?
15851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h.  */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h.  */
15859 $ac_includes_default
15860 #include <$ac_header>
15861 _ACEOF
15862 rm -f conftest.$ac_objext
15863 if { (ac_try="$ac_compile"
15864 case "(($ac_try" in
15865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866   *) ac_try_echo=$ac_try;;
15867 esac
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869   (eval "$ac_compile") 2>conftest.er1
15870   ac_status=$?
15871   grep -v '^ *+' conftest.er1 >conftest.err
15872   rm -f conftest.er1
15873   cat conftest.err >&5
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } &&
15876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15877   { (case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882   (eval "$ac_try") 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); }; } &&
15886          { ac_try='test -s conftest.$ac_objext'
15887   { (case "(($ac_try" in
15888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889   *) ac_try_echo=$ac_try;;
15890 esac
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892   (eval "$ac_try") 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; }; then
15896   ac_header_compiler=yes
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
15901         ac_header_compiler=no
15902 fi
15903
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15906 echo "${ECHO_T}$ac_header_compiler" >&6; }
15907
15908 # Is the header present?
15909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15911 cat >conftest.$ac_ext <<_ACEOF
15912 /* confdefs.h.  */
15913 _ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h.  */
15917 #include <$ac_header>
15918 _ACEOF
15919 if { (ac_try="$ac_cpp conftest.$ac_ext"
15920 case "(($ac_try" in
15921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922   *) ac_try_echo=$ac_try;;
15923 esac
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15926   ac_status=$?
15927   grep -v '^ *+' conftest.er1 >conftest.err
15928   rm -f conftest.er1
15929   cat conftest.err >&5
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); } >/dev/null; then
15932   if test -s conftest.err; then
15933     ac_cpp_err=$ac_c_preproc_warn_flag
15934     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15935   else
15936     ac_cpp_err=
15937   fi
15938 else
15939   ac_cpp_err=yes
15940 fi
15941 if test -z "$ac_cpp_err"; then
15942   ac_header_preproc=yes
15943 else
15944   echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15946
15947   ac_header_preproc=no
15948 fi
15949
15950 rm -f conftest.err conftest.$ac_ext
15951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15952 echo "${ECHO_T}$ac_header_preproc" >&6; }
15953
15954 # So?  What about this header?
15955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15956   yes:no: )
15957     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15959     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15961     ac_header_preproc=yes
15962     ;;
15963   no:yes:* )
15964     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15966     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15967 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15968     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15970     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15971 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15974     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15976     ( cat <<\_ASBOX
15977 ## ----------------------------------- ##
15978 ## Report this to llvmbugs@cs.uiuc.edu ##
15979 ## ----------------------------------- ##
15980 _ASBOX
15981      ) | sed "s/^/$as_me: WARNING:     /" >&2
15982     ;;
15983 esac
15984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987   echo $ECHO_N "(cached) $ECHO_C" >&6
15988 else
15989   eval "$as_ac_Header=\$ac_header_preproc"
15990 fi
15991 ac_res=`eval echo '${'$as_ac_Header'}'`
15992                { echo "$as_me:$LINENO: result: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15994
15995 fi
15996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15997   cat >>confdefs.h <<_ACEOF
15998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15999 _ACEOF
16000
16001 fi
16002
16003 done
16004
16005
16006
16007
16008
16009 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16010 do
16011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016   echo $ECHO_N "(cached) $ECHO_C" >&6
16017 fi
16018 ac_res=`eval echo '${'$as_ac_Header'}'`
16019                { echo "$as_me:$LINENO: result: $ac_res" >&5
16020 echo "${ECHO_T}$ac_res" >&6; }
16021 else
16022   # Is the header compilable?
16023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16025 cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h.  */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h.  */
16031 $ac_includes_default
16032 #include <$ac_header>
16033 _ACEOF
16034 rm -f conftest.$ac_objext
16035 if { (ac_try="$ac_compile"
16036 case "(($ac_try" in
16037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038   *) ac_try_echo=$ac_try;;
16039 esac
16040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041   (eval "$ac_compile") 2>conftest.er1
16042   ac_status=$?
16043   grep -v '^ *+' conftest.er1 >conftest.err
16044   rm -f conftest.er1
16045   cat conftest.err >&5
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); } &&
16048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16049   { (case "(($ac_try" in
16050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051   *) ac_try_echo=$ac_try;;
16052 esac
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054   (eval "$ac_try") 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; } &&
16058          { ac_try='test -s conftest.$ac_objext'
16059   { (case "(($ac_try" in
16060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061   *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064   (eval "$ac_try") 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }; }; then
16068   ac_header_compiler=yes
16069 else
16070   echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16072
16073         ac_header_compiler=no
16074 fi
16075
16076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16078 echo "${ECHO_T}$ac_header_compiler" >&6; }
16079
16080 # Is the header present?
16081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16083 cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h.  */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h.  */
16089 #include <$ac_header>
16090 _ACEOF
16091 if { (ac_try="$ac_cpp conftest.$ac_ext"
16092 case "(($ac_try" in
16093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094   *) ac_try_echo=$ac_try;;
16095 esac
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16098   ac_status=$?
16099   grep -v '^ *+' conftest.er1 >conftest.err
16100   rm -f conftest.er1
16101   cat conftest.err >&5
16102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103   (exit $ac_status); } >/dev/null; then
16104   if test -s conftest.err; then
16105     ac_cpp_err=$ac_c_preproc_warn_flag
16106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16107   else
16108     ac_cpp_err=
16109   fi
16110 else
16111   ac_cpp_err=yes
16112 fi
16113 if test -z "$ac_cpp_err"; then
16114   ac_header_preproc=yes
16115 else
16116   echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16118
16119   ac_header_preproc=no
16120 fi
16121
16122 rm -f conftest.err conftest.$ac_ext
16123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16124 echo "${ECHO_T}$ac_header_preproc" >&6; }
16125
16126 # So?  What about this header?
16127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16128   yes:no: )
16129     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16133     ac_header_preproc=yes
16134     ;;
16135   no:yes:* )
16136     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16138     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16139 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16140     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16142     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16143 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16146     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16148     ( cat <<\_ASBOX
16149 ## ----------------------------------- ##
16150 ## Report this to llvmbugs@cs.uiuc.edu ##
16151 ## ----------------------------------- ##
16152 _ASBOX
16153      ) | sed "s/^/$as_me: WARNING:     /" >&2
16154     ;;
16155 esac
16156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159   echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161   eval "$as_ac_Header=\$ac_header_preproc"
16162 fi
16163 ac_res=`eval echo '${'$as_ac_Header'}'`
16164                { echo "$as_me:$LINENO: result: $ac_res" >&5
16165 echo "${ECHO_T}$ac_res" >&6; }
16166
16167 fi
16168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16169   cat >>confdefs.h <<_ACEOF
16170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16171 _ACEOF
16172
16173 fi
16174
16175 done
16176
16177 if test "$ENABLE_THREADS" -eq 1 ; then
16178
16179 for ac_header in pthread.h
16180 do
16181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186   echo $ECHO_N "(cached) $ECHO_C" >&6
16187 fi
16188 ac_res=`eval echo '${'$as_ac_Header'}'`
16189                { echo "$as_me:$LINENO: result: $ac_res" >&5
16190 echo "${ECHO_T}$ac_res" >&6; }
16191 else
16192   # Is the header compilable?
16193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16195 cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h.  */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h.  */
16201 $ac_includes_default
16202 #include <$ac_header>
16203 _ACEOF
16204 rm -f conftest.$ac_objext
16205 if { (ac_try="$ac_compile"
16206 case "(($ac_try" in
16207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208   *) ac_try_echo=$ac_try;;
16209 esac
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211   (eval "$ac_compile") 2>conftest.er1
16212   ac_status=$?
16213   grep -v '^ *+' conftest.er1 >conftest.err
16214   rm -f conftest.er1
16215   cat conftest.err >&5
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); } &&
16218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16219   { (case "(($ac_try" in
16220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221   *) ac_try_echo=$ac_try;;
16222 esac
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224   (eval "$ac_try") 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; } &&
16228          { ac_try='test -s conftest.$ac_objext'
16229   { (case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_try") 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; }; then
16238   ac_header_compiler=yes
16239 else
16240   echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243         ac_header_compiler=no
16244 fi
16245
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16248 echo "${ECHO_T}$ac_header_compiler" >&6; }
16249
16250 # Is the header present?
16251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h.  */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h.  */
16259 #include <$ac_header>
16260 _ACEOF
16261 if { (ac_try="$ac_cpp conftest.$ac_ext"
16262 case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16268   ac_status=$?
16269   grep -v '^ *+' conftest.er1 >conftest.err
16270   rm -f conftest.er1
16271   cat conftest.err >&5
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); } >/dev/null; then
16274   if test -s conftest.err; then
16275     ac_cpp_err=$ac_c_preproc_warn_flag
16276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16277   else
16278     ac_cpp_err=
16279   fi
16280 else
16281   ac_cpp_err=yes
16282 fi
16283 if test -z "$ac_cpp_err"; then
16284   ac_header_preproc=yes
16285 else
16286   echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16288
16289   ac_header_preproc=no
16290 fi
16291
16292 rm -f conftest.err conftest.$ac_ext
16293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16294 echo "${ECHO_T}$ac_header_preproc" >&6; }
16295
16296 # So?  What about this header?
16297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16298   yes:no: )
16299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16303     ac_header_preproc=yes
16304     ;;
16305   no:yes:* )
16306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16308     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16309 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16310     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16312     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16313 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16316     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16318     ( cat <<\_ASBOX
16319 ## ----------------------------------- ##
16320 ## Report this to llvmbugs@cs.uiuc.edu ##
16321 ## ----------------------------------- ##
16322 _ASBOX
16323      ) | sed "s/^/$as_me: WARNING:     /" >&2
16324     ;;
16325 esac
16326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329   echo $ECHO_N "(cached) $ECHO_C" >&6
16330 else
16331   eval "$as_ac_Header=\$ac_header_preproc"
16332 fi
16333 ac_res=`eval echo '${'$as_ac_Header'}'`
16334                { echo "$as_me:$LINENO: result: $ac_res" >&5
16335 echo "${ECHO_T}$ac_res" >&6; }
16336
16337 fi
16338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16339   cat >>confdefs.h <<_ACEOF
16340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16341 _ACEOF
16342  HAVE_PTHREAD=1
16343
16344 else
16345   HAVE_PTHREAD=0
16346
16347 fi
16348
16349 done
16350
16351 else
16352   HAVE_PTHREAD=0
16353
16354 fi
16355
16356 if test "$llvm_cv_enable_libffi" = "yes" ; then
16357
16358
16359 for ac_header in ffi.h ffi/ffi.h
16360 do
16361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16363   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366   echo $ECHO_N "(cached) $ECHO_C" >&6
16367 fi
16368 ac_res=`eval echo '${'$as_ac_Header'}'`
16369                { echo "$as_me:$LINENO: result: $ac_res" >&5
16370 echo "${ECHO_T}$ac_res" >&6; }
16371 else
16372   # Is the header compilable?
16373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16375 cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h.  */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h.  */
16381 $ac_includes_default
16382 #include <$ac_header>
16383 _ACEOF
16384 rm -f conftest.$ac_objext
16385 if { (ac_try="$ac_compile"
16386 case "(($ac_try" in
16387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388   *) ac_try_echo=$ac_try;;
16389 esac
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391   (eval "$ac_compile") 2>conftest.er1
16392   ac_status=$?
16393   grep -v '^ *+' conftest.er1 >conftest.err
16394   rm -f conftest.er1
16395   cat conftest.err >&5
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); } &&
16398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16399   { (case "(($ac_try" in
16400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401   *) ac_try_echo=$ac_try;;
16402 esac
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404   (eval "$ac_try") 2>&5
16405   ac_status=$?
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); }; } &&
16408          { ac_try='test -s conftest.$ac_objext'
16409   { (case "(($ac_try" in
16410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411   *) ac_try_echo=$ac_try;;
16412 esac
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414   (eval "$ac_try") 2>&5
16415   ac_status=$?
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); }; }; then
16418   ac_header_compiler=yes
16419 else
16420   echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16422
16423         ac_header_compiler=no
16424 fi
16425
16426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16428 echo "${ECHO_T}$ac_header_compiler" >&6; }
16429
16430 # Is the header present?
16431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16433 cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h.  */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h.  */
16439 #include <$ac_header>
16440 _ACEOF
16441 if { (ac_try="$ac_cpp conftest.$ac_ext"
16442 case "(($ac_try" in
16443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444   *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16448   ac_status=$?
16449   grep -v '^ *+' conftest.er1 >conftest.err
16450   rm -f conftest.er1
16451   cat conftest.err >&5
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); } >/dev/null; then
16454   if test -s conftest.err; then
16455     ac_cpp_err=$ac_c_preproc_warn_flag
16456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16457   else
16458     ac_cpp_err=
16459   fi
16460 else
16461   ac_cpp_err=yes
16462 fi
16463 if test -z "$ac_cpp_err"; then
16464   ac_header_preproc=yes
16465 else
16466   echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16468
16469   ac_header_preproc=no
16470 fi
16471
16472 rm -f conftest.err conftest.$ac_ext
16473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16474 echo "${ECHO_T}$ac_header_preproc" >&6; }
16475
16476 # So?  What about this header?
16477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16478   yes:no: )
16479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16483     ac_header_preproc=yes
16484     ;;
16485   no:yes:* )
16486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16498     ( cat <<\_ASBOX
16499 ## ----------------------------------- ##
16500 ## Report this to llvmbugs@cs.uiuc.edu ##
16501 ## ----------------------------------- ##
16502 _ASBOX
16503      ) | sed "s/^/$as_me: WARNING:     /" >&2
16504     ;;
16505 esac
16506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511   eval "$as_ac_Header=\$ac_header_preproc"
16512 fi
16513 ac_res=`eval echo '${'$as_ac_Header'}'`
16514                { echo "$as_me:$LINENO: result: $ac_res" >&5
16515 echo "${ECHO_T}$ac_res" >&6; }
16516
16517 fi
16518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16519   cat >>confdefs.h <<_ACEOF
16520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16521 _ACEOF
16522
16523 fi
16524
16525 done
16526
16527 fi
16528
16529
16530
16531
16532   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16533 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16534 if test "${ac_cv_huge_val_sanity+set}" = set; then
16535   echo $ECHO_N "(cached) $ECHO_C" >&6
16536 else
16537
16538     ac_ext=cpp
16539 ac_cpp='$CXXCPP $CPPFLAGS'
16540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16543
16544     CXXFLAGS=-pedantic
16545     if test "$cross_compiling" = yes; then
16546   ac_cv_huge_val_sanity=yes
16547 else
16548   cat >conftest.$ac_ext <<_ACEOF
16549 /* confdefs.h.  */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h.  */
16554 #include <math.h>
16555 int
16556 main ()
16557 {
16558 double x = HUGE_VAL; return x != x;
16559   ;
16560   return 0;
16561 }
16562 _ACEOF
16563 rm -f conftest$ac_exeext
16564 if { (ac_try="$ac_link"
16565 case "(($ac_try" in
16566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567   *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570   (eval "$ac_link") 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16574   { (case "(($ac_try" in
16575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576   *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579   (eval "$ac_try") 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); }; }; then
16583   ac_cv_huge_val_sanity=yes
16584 else
16585   echo "$as_me: program exited with status $ac_status" >&5
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16588
16589 ( exit $ac_status )
16590 ac_cv_huge_val_sanity=no
16591 fi
16592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16593 fi
16594
16595
16596     ac_ext=c
16597 ac_cpp='$CPP $CPPFLAGS'
16598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16601
16602
16603 fi
16604 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16605 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16606   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16607
16608
16609 { echo "$as_me:$LINENO: checking for pid_t" >&5
16610 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16611 if test "${ac_cv_type_pid_t+set}" = set; then
16612   echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614   cat >conftest.$ac_ext <<_ACEOF
16615 /* confdefs.h.  */
16616 _ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h.  */
16620 $ac_includes_default
16621 typedef pid_t ac__type_new_;
16622 int
16623 main ()
16624 {
16625 if ((ac__type_new_ *) 0)
16626   return 0;
16627 if (sizeof (ac__type_new_))
16628   return 0;
16629   ;
16630   return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_compile") 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648   { (case "(($ac_try" in
16649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650   *) ac_try_echo=$ac_try;;
16651 esac
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653   (eval "$ac_try") 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; } &&
16657          { ac_try='test -s conftest.$ac_objext'
16658   { (case "(($ac_try" in
16659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660   *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663   (eval "$ac_try") 2>&5
16664   ac_status=$?
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); }; }; then
16667   ac_cv_type_pid_t=yes
16668 else
16669   echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672         ac_cv_type_pid_t=no
16673 fi
16674
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 fi
16677 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16678 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16679 if test $ac_cv_type_pid_t = yes; then
16680   :
16681 else
16682
16683 cat >>confdefs.h <<_ACEOF
16684 #define pid_t int
16685 _ACEOF
16686
16687 fi
16688
16689 { echo "$as_me:$LINENO: checking for size_t" >&5
16690 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16691 if test "${ac_cv_type_size_t+set}" = set; then
16692   echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694   cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h.  */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h.  */
16700 $ac_includes_default
16701 typedef size_t ac__type_new_;
16702 int
16703 main ()
16704 {
16705 if ((ac__type_new_ *) 0)
16706   return 0;
16707 if (sizeof (ac__type_new_))
16708   return 0;
16709   ;
16710   return 0;
16711 }
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (ac_try="$ac_compile"
16715 case "(($ac_try" in
16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717   *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720   (eval "$ac_compile") 2>conftest.er1
16721   ac_status=$?
16722   grep -v '^ *+' conftest.er1 >conftest.err
16723   rm -f conftest.er1
16724   cat conftest.err >&5
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); } &&
16727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728   { (case "(($ac_try" in
16729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730   *) ac_try_echo=$ac_try;;
16731 esac
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733   (eval "$ac_try") 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); }; } &&
16737          { ac_try='test -s conftest.$ac_objext'
16738   { (case "(($ac_try" in
16739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740   *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743   (eval "$ac_try") 2>&5
16744   ac_status=$?
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); }; }; then
16747   ac_cv_type_size_t=yes
16748 else
16749   echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752         ac_cv_type_size_t=no
16753 fi
16754
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756 fi
16757 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16758 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16759 if test $ac_cv_type_size_t = yes; then
16760   :
16761 else
16762
16763 cat >>confdefs.h <<_ACEOF
16764 #define size_t unsigned int
16765 _ACEOF
16766
16767 fi
16768
16769
16770 cat >>confdefs.h <<_ACEOF
16771 #define RETSIGTYPE void
16772 _ACEOF
16773
16774 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16775 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16776 if test "${ac_cv_struct_tm+set}" = set; then
16777   echo $ECHO_N "(cached) $ECHO_C" >&6
16778 else
16779   cat >conftest.$ac_ext <<_ACEOF
16780 /* confdefs.h.  */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h.  */
16785 #include <sys/types.h>
16786 #include <time.h>
16787
16788 int
16789 main ()
16790 {
16791 struct tm *tp; tp->tm_sec;
16792   ;
16793   return 0;
16794 }
16795 _ACEOF
16796 rm -f conftest.$ac_objext
16797 if { (ac_try="$ac_compile"
16798 case "(($ac_try" in
16799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800   *) ac_try_echo=$ac_try;;
16801 esac
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803   (eval "$ac_compile") 2>conftest.er1
16804   ac_status=$?
16805   grep -v '^ *+' conftest.er1 >conftest.err
16806   rm -f conftest.er1
16807   cat conftest.err >&5
16808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809   (exit $ac_status); } &&
16810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16811   { (case "(($ac_try" in
16812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813   *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816   (eval "$ac_try") 2>&5
16817   ac_status=$?
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); }; } &&
16820          { ac_try='test -s conftest.$ac_objext'
16821   { (case "(($ac_try" in
16822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823   *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826   (eval "$ac_try") 2>&5
16827   ac_status=$?
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); }; }; then
16830   ac_cv_struct_tm=time.h
16831 else
16832   echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16834
16835         ac_cv_struct_tm=sys/time.h
16836 fi
16837
16838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16839 fi
16840 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16841 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16842 if test $ac_cv_struct_tm = sys/time.h; then
16843
16844 cat >>confdefs.h <<\_ACEOF
16845 #define TM_IN_SYS_TIME 1
16846 _ACEOF
16847
16848 fi
16849
16850 { echo "$as_me:$LINENO: checking for int64_t" >&5
16851 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16852 if test "${ac_cv_type_int64_t+set}" = set; then
16853   echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16855   cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h.  */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h.  */
16861 $ac_includes_default
16862 typedef int64_t ac__type_new_;
16863 int
16864 main ()
16865 {
16866 if ((ac__type_new_ *) 0)
16867   return 0;
16868 if (sizeof (ac__type_new_))
16869   return 0;
16870   ;
16871   return 0;
16872 }
16873 _ACEOF
16874 rm -f conftest.$ac_objext
16875 if { (ac_try="$ac_compile"
16876 case "(($ac_try" in
16877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878   *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881   (eval "$ac_compile") 2>conftest.er1
16882   ac_status=$?
16883   grep -v '^ *+' conftest.er1 >conftest.err
16884   rm -f conftest.er1
16885   cat conftest.err >&5
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); } &&
16888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16889   { (case "(($ac_try" in
16890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891   *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894   (eval "$ac_try") 2>&5
16895   ac_status=$?
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); }; } &&
16898          { ac_try='test -s conftest.$ac_objext'
16899   { (case "(($ac_try" in
16900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901   *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904   (eval "$ac_try") 2>&5
16905   ac_status=$?
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); }; }; then
16908   ac_cv_type_int64_t=yes
16909 else
16910   echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16912
16913         ac_cv_type_int64_t=no
16914 fi
16915
16916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16917 fi
16918 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16919 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16920 if test $ac_cv_type_int64_t = yes; then
16921
16922 cat >>confdefs.h <<_ACEOF
16923 #define HAVE_INT64_T 1
16924 _ACEOF
16925
16926
16927 else
16928   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16929 echo "$as_me: error: Type int64_t required but not found" >&2;}
16930    { (exit 1); exit 1; }; }
16931 fi
16932
16933 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16934 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16935 if test "${ac_cv_type_uint64_t+set}" = set; then
16936   echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938   cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h.  */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h.  */
16944 $ac_includes_default
16945 typedef uint64_t ac__type_new_;
16946 int
16947 main ()
16948 {
16949 if ((ac__type_new_ *) 0)
16950   return 0;
16951 if (sizeof (ac__type_new_))
16952   return 0;
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 rm -f conftest.$ac_objext
16958 if { (ac_try="$ac_compile"
16959 case "(($ac_try" in
16960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961   *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964   (eval "$ac_compile") 2>conftest.er1
16965   ac_status=$?
16966   grep -v '^ *+' conftest.er1 >conftest.err
16967   rm -f conftest.er1
16968   cat conftest.err >&5
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); } &&
16971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972   { (case "(($ac_try" in
16973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974   *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977   (eval "$ac_try") 2>&5
16978   ac_status=$?
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); }; } &&
16981          { ac_try='test -s conftest.$ac_objext'
16982   { (case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_try") 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); }; }; then
16991   ac_cv_type_uint64_t=yes
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996         ac_cv_type_uint64_t=no
16997 fi
16998
16999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17000 fi
17001 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17002 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17003 if test $ac_cv_type_uint64_t = yes; then
17004
17005 cat >>confdefs.h <<_ACEOF
17006 #define HAVE_UINT64_T 1
17007 _ACEOF
17008
17009
17010 else
17011   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17012 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17013 if test "${ac_cv_type_u_int64_t+set}" = set; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h.  */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h.  */
17022 $ac_includes_default
17023 typedef u_int64_t ac__type_new_;
17024 int
17025 main ()
17026 {
17027 if ((ac__type_new_ *) 0)
17028   return 0;
17029 if (sizeof (ac__type_new_))
17030   return 0;
17031   ;
17032   return 0;
17033 }
17034 _ACEOF
17035 rm -f conftest.$ac_objext
17036 if { (ac_try="$ac_compile"
17037 case "(($ac_try" in
17038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039   *) ac_try_echo=$ac_try;;
17040 esac
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042   (eval "$ac_compile") 2>conftest.er1
17043   ac_status=$?
17044   grep -v '^ *+' conftest.er1 >conftest.err
17045   rm -f conftest.er1
17046   cat conftest.err >&5
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); } &&
17049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17050   { (case "(($ac_try" in
17051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052   *) ac_try_echo=$ac_try;;
17053 esac
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055   (eval "$ac_try") 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); }; } &&
17059          { ac_try='test -s conftest.$ac_objext'
17060   { (case "(($ac_try" in
17061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062   *) ac_try_echo=$ac_try;;
17063 esac
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065   (eval "$ac_try") 2>&5
17066   ac_status=$?
17067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); }; }; then
17069   ac_cv_type_u_int64_t=yes
17070 else
17071   echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17073
17074         ac_cv_type_u_int64_t=no
17075 fi
17076
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078 fi
17079 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17080 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17081 if test $ac_cv_type_u_int64_t = yes; then
17082
17083 cat >>confdefs.h <<_ACEOF
17084 #define HAVE_U_INT64_T 1
17085 _ACEOF
17086
17087
17088 else
17089   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17090 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17091    { (exit 1); exit 1; }; }
17092 fi
17093
17094 fi
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17106 do
17107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113   cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h.  */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h.  */
17119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17121 #define $ac_func innocuous_$ac_func
17122
17123 /* System header to define __stub macros and hopefully few prototypes,
17124     which can conflict with char $ac_func (); below.
17125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126     <limits.h> exists even on freestanding compilers.  */
17127
17128 #ifdef __STDC__
17129 # include <limits.h>
17130 #else
17131 # include <assert.h>
17132 #endif
17133
17134 #undef $ac_func
17135
17136 /* Override any GCC internal prototype to avoid an error.
17137    Use char because int might match the return type of a GCC
17138    builtin and then its argument prototype would still apply.  */
17139 #ifdef __cplusplus
17140 extern "C"
17141 #endif
17142 char $ac_func ();
17143 /* The GNU C library defines this for functions which it implements
17144     to always fail with ENOSYS.  Some functions are actually named
17145     something starting with __ and the normal name is an alias.  */
17146 #if defined __stub_$ac_func || defined __stub___$ac_func
17147 choke me
17148 #endif
17149
17150 int
17151 main ()
17152 {
17153 return $ac_func ();
17154   ;
17155   return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162   *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165   (eval "$ac_link") 2>conftest.er1
17166   ac_status=$?
17167   grep -v '^ *+' conftest.er1 >conftest.err
17168   rm -f conftest.er1
17169   cat conftest.err >&5
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } &&
17172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173   { (case "(($ac_try" in
17174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175   *) ac_try_echo=$ac_try;;
17176 esac
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178   (eval "$ac_try") 2>&5
17179   ac_status=$?
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); }; } &&
17182          { ac_try='test -s conftest$ac_exeext'
17183   { (case "(($ac_try" in
17184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185   *) ac_try_echo=$ac_try;;
17186 esac
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188   (eval "$ac_try") 2>&5
17189   ac_status=$?
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); }; }; then
17192   eval "$as_ac_var=yes"
17193 else
17194   echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17196
17197         eval "$as_ac_var=no"
17198 fi
17199
17200 rm -f core conftest.err conftest.$ac_objext \
17201       conftest$ac_exeext conftest.$ac_ext
17202 fi
17203 ac_res=`eval echo '${'$as_ac_var'}'`
17204                { echo "$as_me:$LINENO: result: $ac_res" >&5
17205 echo "${ECHO_T}$ac_res" >&6; }
17206 if test `eval echo '${'$as_ac_var'}'` = yes; then
17207   cat >>confdefs.h <<_ACEOF
17208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17209 _ACEOF
17210
17211 fi
17212 done
17213
17214
17215
17216
17217
17218 for ac_func in powf fmodf strtof round
17219 do
17220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224   echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226   cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17234 #define $ac_func innocuous_$ac_func
17235
17236 /* System header to define __stub macros and hopefully few prototypes,
17237     which can conflict with char $ac_func (); below.
17238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239     <limits.h> exists even on freestanding compilers.  */
17240
17241 #ifdef __STDC__
17242 # include <limits.h>
17243 #else
17244 # include <assert.h>
17245 #endif
17246
17247 #undef $ac_func
17248
17249 /* Override any GCC internal prototype to avoid an error.
17250    Use char because int might match the return type of a GCC
17251    builtin and then its argument prototype would still apply.  */
17252 #ifdef __cplusplus
17253 extern "C"
17254 #endif
17255 char $ac_func ();
17256 /* The GNU C library defines this for functions which it implements
17257     to always fail with ENOSYS.  Some functions are actually named
17258     something starting with __ and the normal name is an alias.  */
17259 #if defined __stub_$ac_func || defined __stub___$ac_func
17260 choke me
17261 #endif
17262
17263 int
17264 main ()
17265 {
17266 return $ac_func ();
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_link") 2>conftest.er1
17279   ac_status=$?
17280   grep -v '^ *+' conftest.er1 >conftest.err
17281   rm -f conftest.er1
17282   cat conftest.err >&5
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); } &&
17285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17286   { (case "(($ac_try" in
17287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288   *) ac_try_echo=$ac_try;;
17289 esac
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291   (eval "$ac_try") 2>&5
17292   ac_status=$?
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); }; } &&
17295          { ac_try='test -s conftest$ac_exeext'
17296   { (case "(($ac_try" in
17297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298   *) ac_try_echo=$ac_try;;
17299 esac
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301   (eval "$ac_try") 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); }; }; then
17305   eval "$as_ac_var=yes"
17306 else
17307   echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17309
17310         eval "$as_ac_var=no"
17311 fi
17312
17313 rm -f core conftest.err conftest.$ac_objext \
17314       conftest$ac_exeext conftest.$ac_ext
17315 fi
17316 ac_res=`eval echo '${'$as_ac_var'}'`
17317                { echo "$as_me:$LINENO: result: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17319 if test `eval echo '${'$as_ac_var'}'` = yes; then
17320   cat >>confdefs.h <<_ACEOF
17321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17322 _ACEOF
17323
17324 fi
17325 done
17326
17327
17328
17329
17330
17331
17332 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17333 do
17334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17348 #define $ac_func innocuous_$ac_func
17349
17350 /* System header to define __stub macros and hopefully few prototypes,
17351     which can conflict with char $ac_func (); below.
17352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353     <limits.h> exists even on freestanding compilers.  */
17354
17355 #ifdef __STDC__
17356 # include <limits.h>
17357 #else
17358 # include <assert.h>
17359 #endif
17360
17361 #undef $ac_func
17362
17363 /* Override any GCC internal prototype to avoid an error.
17364    Use char because int might match the return type of a GCC
17365    builtin and then its argument prototype would still apply.  */
17366 #ifdef __cplusplus
17367 extern "C"
17368 #endif
17369 char $ac_func ();
17370 /* The GNU C library defines this for functions which it implements
17371     to always fail with ENOSYS.  Some functions are actually named
17372     something starting with __ and the normal name is an alias.  */
17373 #if defined __stub_$ac_func || defined __stub___$ac_func
17374 choke me
17375 #endif
17376
17377 int
17378 main ()
17379 {
17380 return $ac_func ();
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (ac_try="$ac_link"
17387 case "(($ac_try" in
17388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389   *) ac_try_echo=$ac_try;;
17390 esac
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392   (eval "$ac_link") 2>conftest.er1
17393   ac_status=$?
17394   grep -v '^ *+' conftest.er1 >conftest.err
17395   rm -f conftest.er1
17396   cat conftest.err >&5
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } &&
17399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17400   { (case "(($ac_try" in
17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402   *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405   (eval "$ac_try") 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; } &&
17409          { ac_try='test -s conftest$ac_exeext'
17410   { (case "(($ac_try" in
17411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412   *) ac_try_echo=$ac_try;;
17413 esac
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415   (eval "$ac_try") 2>&5
17416   ac_status=$?
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); }; }; then
17419   eval "$as_ac_var=yes"
17420 else
17421   echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17423
17424         eval "$as_ac_var=no"
17425 fi
17426
17427 rm -f core conftest.err conftest.$ac_objext \
17428       conftest$ac_exeext conftest.$ac_ext
17429 fi
17430 ac_res=`eval echo '${'$as_ac_var'}'`
17431                { echo "$as_me:$LINENO: result: $ac_res" >&5
17432 echo "${ECHO_T}$ac_res" >&6; }
17433 if test `eval echo '${'$as_ac_var'}'` = yes; then
17434   cat >>confdefs.h <<_ACEOF
17435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17436 _ACEOF
17437
17438 fi
17439 done
17440
17441
17442
17443
17444 for ac_func in isatty mkdtemp mkstemp
17445 do
17446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17450   echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452   cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h.  */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h.  */
17458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17460 #define $ac_func innocuous_$ac_func
17461
17462 /* System header to define __stub macros and hopefully few prototypes,
17463     which can conflict with char $ac_func (); below.
17464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17465     <limits.h> exists even on freestanding compilers.  */
17466
17467 #ifdef __STDC__
17468 # include <limits.h>
17469 #else
17470 # include <assert.h>
17471 #endif
17472
17473 #undef $ac_func
17474
17475 /* Override any GCC internal prototype to avoid an error.
17476    Use char because int might match the return type of a GCC
17477    builtin and then its argument prototype would still apply.  */
17478 #ifdef __cplusplus
17479 extern "C"
17480 #endif
17481 char $ac_func ();
17482 /* The GNU C library defines this for functions which it implements
17483     to always fail with ENOSYS.  Some functions are actually named
17484     something starting with __ and the normal name is an alias.  */
17485 #if defined __stub_$ac_func || defined __stub___$ac_func
17486 choke me
17487 #endif
17488
17489 int
17490 main ()
17491 {
17492 return $ac_func ();
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504   (eval "$ac_link") 2>conftest.er1
17505   ac_status=$?
17506   grep -v '^ *+' conftest.er1 >conftest.err
17507   rm -f conftest.er1
17508   cat conftest.err >&5
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); } &&
17511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512   { (case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517   (eval "$ac_try") 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); }; } &&
17521          { ac_try='test -s conftest$ac_exeext'
17522   { (case "(($ac_try" in
17523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524   *) ac_try_echo=$ac_try;;
17525 esac
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527   (eval "$ac_try") 2>&5
17528   ac_status=$?
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); }; }; then
17531   eval "$as_ac_var=yes"
17532 else
17533   echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17535
17536         eval "$as_ac_var=no"
17537 fi
17538
17539 rm -f core conftest.err conftest.$ac_objext \
17540       conftest$ac_exeext conftest.$ac_ext
17541 fi
17542 ac_res=`eval echo '${'$as_ac_var'}'`
17543                { echo "$as_me:$LINENO: result: $ac_res" >&5
17544 echo "${ECHO_T}$ac_res" >&6; }
17545 if test `eval echo '${'$as_ac_var'}'` = yes; then
17546   cat >>confdefs.h <<_ACEOF
17547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17548 _ACEOF
17549
17550 fi
17551 done
17552
17553
17554
17555
17556
17557
17558 for ac_func in mktemp realpath sbrk setrlimit strdup
17559 do
17560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17564   echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566   cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h.  */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h.  */
17572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17574 #define $ac_func innocuous_$ac_func
17575
17576 /* System header to define __stub macros and hopefully few prototypes,
17577     which can conflict with char $ac_func (); below.
17578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579     <limits.h> exists even on freestanding compilers.  */
17580
17581 #ifdef __STDC__
17582 # include <limits.h>
17583 #else
17584 # include <assert.h>
17585 #endif
17586
17587 #undef $ac_func
17588
17589 /* Override any GCC internal prototype to avoid an error.
17590    Use char because int might match the return type of a GCC
17591    builtin and then its argument prototype would still apply.  */
17592 #ifdef __cplusplus
17593 extern "C"
17594 #endif
17595 char $ac_func ();
17596 /* The GNU C library defines this for functions which it implements
17597     to always fail with ENOSYS.  Some functions are actually named
17598     something starting with __ and the normal name is an alias.  */
17599 #if defined __stub_$ac_func || defined __stub___$ac_func
17600 choke me
17601 #endif
17602
17603 int
17604 main ()
17605 {
17606 return $ac_func ();
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615   *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618   (eval "$ac_link") 2>conftest.er1
17619   ac_status=$?
17620   grep -v '^ *+' conftest.er1 >conftest.err
17621   rm -f conftest.er1
17622   cat conftest.err >&5
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); } &&
17625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17626   { (case "(($ac_try" in
17627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628   *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631   (eval "$ac_try") 2>&5
17632   ac_status=$?
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); }; } &&
17635          { ac_try='test -s conftest$ac_exeext'
17636   { (case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641   (eval "$ac_try") 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; }; then
17645   eval "$as_ac_var=yes"
17646 else
17647   echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17649
17650         eval "$as_ac_var=no"
17651 fi
17652
17653 rm -f core conftest.err conftest.$ac_objext \
17654       conftest$ac_exeext conftest.$ac_ext
17655 fi
17656 ac_res=`eval echo '${'$as_ac_var'}'`
17657                { echo "$as_me:$LINENO: result: $ac_res" >&5
17658 echo "${ECHO_T}$ac_res" >&6; }
17659 if test `eval echo '${'$as_ac_var'}'` = yes; then
17660   cat >>confdefs.h <<_ACEOF
17661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17662 _ACEOF
17663
17664 fi
17665 done
17666
17667
17668
17669
17670
17671 for ac_func in strerror strerror_r strerror_s setenv
17672 do
17673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17677   echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679   cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h.  */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h.  */
17685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17687 #define $ac_func innocuous_$ac_func
17688
17689 /* System header to define __stub macros and hopefully few prototypes,
17690     which can conflict with char $ac_func (); below.
17691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692     <limits.h> exists even on freestanding compilers.  */
17693
17694 #ifdef __STDC__
17695 # include <limits.h>
17696 #else
17697 # include <assert.h>
17698 #endif
17699
17700 #undef $ac_func
17701
17702 /* Override any GCC internal prototype to avoid an error.
17703    Use char because int might match the return type of a GCC
17704    builtin and then its argument prototype would still apply.  */
17705 #ifdef __cplusplus
17706 extern "C"
17707 #endif
17708 char $ac_func ();
17709 /* The GNU C library defines this for functions which it implements
17710     to always fail with ENOSYS.  Some functions are actually named
17711     something starting with __ and the normal name is an alias.  */
17712 #if defined __stub_$ac_func || defined __stub___$ac_func
17713 choke me
17714 #endif
17715
17716 int
17717 main ()
17718 {
17719 return $ac_func ();
17720   ;
17721   return 0;
17722 }
17723 _ACEOF
17724 rm -f conftest.$ac_objext conftest$ac_exeext
17725 if { (ac_try="$ac_link"
17726 case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_link") 2>conftest.er1
17732   ac_status=$?
17733   grep -v '^ *+' conftest.er1 >conftest.err
17734   rm -f conftest.er1
17735   cat conftest.err >&5
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); } &&
17738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739   { (case "(($ac_try" in
17740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741   *) ac_try_echo=$ac_try;;
17742 esac
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744   (eval "$ac_try") 2>&5
17745   ac_status=$?
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); }; } &&
17748          { ac_try='test -s conftest$ac_exeext'
17749   { (case "(($ac_try" in
17750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751   *) ac_try_echo=$ac_try;;
17752 esac
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754   (eval "$ac_try") 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; }; then
17758   eval "$as_ac_var=yes"
17759 else
17760   echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17762
17763         eval "$as_ac_var=no"
17764 fi
17765
17766 rm -f core conftest.err conftest.$ac_objext \
17767       conftest$ac_exeext conftest.$ac_ext
17768 fi
17769 ac_res=`eval echo '${'$as_ac_var'}'`
17770                { echo "$as_me:$LINENO: result: $ac_res" >&5
17771 echo "${ECHO_T}$ac_res" >&6; }
17772 if test `eval echo '${'$as_ac_var'}'` = yes; then
17773   cat >>confdefs.h <<_ACEOF
17774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17775 _ACEOF
17776
17777 fi
17778 done
17779
17780
17781
17782
17783
17784 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17785 do
17786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17790   echo $ECHO_N "(cached) $ECHO_C" >&6
17791 else
17792   cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h.  */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h.  */
17798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17800 #define $ac_func innocuous_$ac_func
17801
17802 /* System header to define __stub macros and hopefully few prototypes,
17803     which can conflict with char $ac_func (); below.
17804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17805     <limits.h> exists even on freestanding compilers.  */
17806
17807 #ifdef __STDC__
17808 # include <limits.h>
17809 #else
17810 # include <assert.h>
17811 #endif
17812
17813 #undef $ac_func
17814
17815 /* Override any GCC internal prototype to avoid an error.
17816    Use char because int might match the return type of a GCC
17817    builtin and then its argument prototype would still apply.  */
17818 #ifdef __cplusplus
17819 extern "C"
17820 #endif
17821 char $ac_func ();
17822 /* The GNU C library defines this for functions which it implements
17823     to always fail with ENOSYS.  Some functions are actually named
17824     something starting with __ and the normal name is an alias.  */
17825 #if defined __stub_$ac_func || defined __stub___$ac_func
17826 choke me
17827 #endif
17828
17829 int
17830 main ()
17831 {
17832 return $ac_func ();
17833   ;
17834   return 0;
17835 }
17836 _ACEOF
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (ac_try="$ac_link"
17839 case "(($ac_try" in
17840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841   *) ac_try_echo=$ac_try;;
17842 esac
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844   (eval "$ac_link") 2>conftest.er1
17845   ac_status=$?
17846   grep -v '^ *+' conftest.er1 >conftest.err
17847   rm -f conftest.er1
17848   cat conftest.err >&5
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); } &&
17851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17852   { (case "(($ac_try" in
17853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854   *) ac_try_echo=$ac_try;;
17855 esac
17856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857   (eval "$ac_try") 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); }; } &&
17861          { ac_try='test -s conftest$ac_exeext'
17862   { (case "(($ac_try" in
17863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864   *) ac_try_echo=$ac_try;;
17865 esac
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867   (eval "$ac_try") 2>&5
17868   ac_status=$?
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); }; }; then
17871   eval "$as_ac_var=yes"
17872 else
17873   echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17875
17876         eval "$as_ac_var=no"
17877 fi
17878
17879 rm -f core conftest.err conftest.$ac_objext \
17880       conftest$ac_exeext conftest.$ac_ext
17881 fi
17882 ac_res=`eval echo '${'$as_ac_var'}'`
17883                { echo "$as_me:$LINENO: result: $ac_res" >&5
17884 echo "${ECHO_T}$ac_res" >&6; }
17885 if test `eval echo '${'$as_ac_var'}'` = yes; then
17886   cat >>confdefs.h <<_ACEOF
17887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17888 _ACEOF
17889
17890 fi
17891 done
17892
17893
17894
17895
17896
17897 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17898 do
17899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17903   echo $ECHO_N "(cached) $ECHO_C" >&6
17904 else
17905   cat >conftest.$ac_ext <<_ACEOF
17906 /* confdefs.h.  */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h.  */
17911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17913 #define $ac_func innocuous_$ac_func
17914
17915 /* System header to define __stub macros and hopefully few prototypes,
17916     which can conflict with char $ac_func (); below.
17917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17918     <limits.h> exists even on freestanding compilers.  */
17919
17920 #ifdef __STDC__
17921 # include <limits.h>
17922 #else
17923 # include <assert.h>
17924 #endif
17925
17926 #undef $ac_func
17927
17928 /* Override any GCC internal prototype to avoid an error.
17929    Use char because int might match the return type of a GCC
17930    builtin and then its argument prototype would still apply.  */
17931 #ifdef __cplusplus
17932 extern "C"
17933 #endif
17934 char $ac_func ();
17935 /* The GNU C library defines this for functions which it implements
17936     to always fail with ENOSYS.  Some functions are actually named
17937     something starting with __ and the normal name is an alias.  */
17938 #if defined __stub_$ac_func || defined __stub___$ac_func
17939 choke me
17940 #endif
17941
17942 int
17943 main ()
17944 {
17945 return $ac_func ();
17946   ;
17947   return 0;
17948 }
17949 _ACEOF
17950 rm -f conftest.$ac_objext conftest$ac_exeext
17951 if { (ac_try="$ac_link"
17952 case "(($ac_try" in
17953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954   *) ac_try_echo=$ac_try;;
17955 esac
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957   (eval "$ac_link") 2>conftest.er1
17958   ac_status=$?
17959   grep -v '^ *+' conftest.er1 >conftest.err
17960   rm -f conftest.er1
17961   cat conftest.err >&5
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); } &&
17964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17965   { (case "(($ac_try" in
17966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967   *) ac_try_echo=$ac_try;;
17968 esac
17969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970   (eval "$ac_try") 2>&5
17971   ac_status=$?
17972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); }; } &&
17974          { ac_try='test -s conftest$ac_exeext'
17975   { (case "(($ac_try" in
17976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977   *) ac_try_echo=$ac_try;;
17978 esac
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980   (eval "$ac_try") 2>&5
17981   ac_status=$?
17982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); }; }; then
17984   eval "$as_ac_var=yes"
17985 else
17986   echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17988
17989         eval "$as_ac_var=no"
17990 fi
17991
17992 rm -f core conftest.err conftest.$ac_objext \
17993       conftest$ac_exeext conftest.$ac_ext
17994 fi
17995 ac_res=`eval echo '${'$as_ac_var'}'`
17996                { echo "$as_me:$LINENO: result: $ac_res" >&5
17997 echo "${ECHO_T}$ac_res" >&6; }
17998 if test `eval echo '${'$as_ac_var'}'` = yes; then
17999   cat >>confdefs.h <<_ACEOF
18000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18001 _ACEOF
18002
18003 fi
18004 done
18005
18006 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18007 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18008 if test "${llvm_cv_c_printf_a+set}" = set; then
18009   echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011   ac_ext=c
18012 ac_cpp='$CPP $CPPFLAGS'
18013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18016
18017  if test "$cross_compiling" = yes; then
18018   llvmac_cv_c_printf_a=no
18019 else
18020   cat >conftest.$ac_ext <<_ACEOF
18021
18022   /* confdefs.h.  */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h.  */
18027
18028 #include <stdio.h>
18029 #include <stdlib.h>
18030
18031 int
18032 main ()
18033 {
18034
18035 volatile double A, B;
18036 char Buffer[100];
18037 A = 1;
18038 A /= 10.0;
18039 sprintf(Buffer, "%a", A);
18040 B = atof(Buffer);
18041 if (A != B)
18042   return (1);
18043 if (A != 0x1.999999999999ap-4)
18044   return (1);
18045 return (0);
18046   ;
18047   return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest$ac_exeext
18051 if { (ac_try="$ac_link"
18052 case "(($ac_try" in
18053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054   *) ac_try_echo=$ac_try;;
18055 esac
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057   (eval "$ac_link") 2>&5
18058   ac_status=$?
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18061   { (case "(($ac_try" in
18062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063   *) ac_try_echo=$ac_try;;
18064 esac
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066   (eval "$ac_try") 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; }; then
18070   llvm_cv_c_printf_a=yes
18071 else
18072   echo "$as_me: program exited with status $ac_status" >&5
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18075
18076 ( exit $ac_status )
18077 llvmac_cv_c_printf_a=no
18078 fi
18079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18080 fi
18081
18082
18083  ac_ext=c
18084 ac_cpp='$CPP $CPPFLAGS'
18085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18088
18089 fi
18090 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18091 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18092  if test "$llvm_cv_c_printf_a" = "yes"; then
18093
18094 cat >>confdefs.h <<\_ACEOF
18095 #define HAVE_PRINTF_A 1
18096 _ACEOF
18097
18098  fi
18099
18100
18101 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18102 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18103 if test "${ac_cv_func_rand48+set}" = set; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106   ac_ext=cpp
18107 ac_cpp='$CXXCPP $CPPFLAGS'
18108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18111
18112    cat >conftest.$ac_ext <<_ACEOF
18113 /* confdefs.h.  */
18114 _ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h.  */
18118 #include <stdlib.h>
18119 int
18120 main ()
18121 {
18122 srand48(0);lrand48();drand48();
18123   ;
18124   return 0;
18125 }
18126 _ACEOF
18127 rm -f conftest.$ac_objext
18128 if { (ac_try="$ac_compile"
18129 case "(($ac_try" in
18130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131   *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134   (eval "$ac_compile") 2>conftest.er1
18135   ac_status=$?
18136   grep -v '^ *+' conftest.er1 >conftest.err
18137   rm -f conftest.er1
18138   cat conftest.err >&5
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); } &&
18141          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18142   { (case "(($ac_try" in
18143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144   *) ac_try_echo=$ac_try;;
18145 esac
18146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18147   (eval "$ac_try") 2>&5
18148   ac_status=$?
18149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150   (exit $ac_status); }; } &&
18151          { ac_try='test -s conftest.$ac_objext'
18152   { (case "(($ac_try" in
18153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154   *) ac_try_echo=$ac_try;;
18155 esac
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157   (eval "$ac_try") 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; }; then
18161   ac_cv_func_rand48=yes
18162 else
18163   echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166         ac_cv_func_rand48=no
18167 fi
18168
18169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18170   ac_ext=c
18171 ac_cpp='$CPP $CPPFLAGS'
18172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18175
18176 fi
18177 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18178 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18179
18180 if test "$ac_cv_func_rand48" = "yes" ; then
18181
18182 cat >>confdefs.h <<\_ACEOF
18183 #define HAVE_RAND48 1
18184 _ACEOF
18185
18186 fi
18187
18188
18189
18190 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18191 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18192 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18193   echo $ECHO_N "(cached) $ECHO_C" >&6
18194 else
18195   ac_ext=cpp
18196 ac_cpp='$CXXCPP $CPPFLAGS'
18197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18200
18201    cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h.  */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h.  */
18207 #include <math.h>
18208 int
18209 main ()
18210 {
18211 float f; isnan(f);
18212   ;
18213   return 0;
18214 }
18215 _ACEOF
18216 rm -f conftest.$ac_objext
18217 if { (ac_try="$ac_compile"
18218 case "(($ac_try" in
18219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220   *) ac_try_echo=$ac_try;;
18221 esac
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223   (eval "$ac_compile") 2>conftest.er1
18224   ac_status=$?
18225   grep -v '^ *+' conftest.er1 >conftest.err
18226   rm -f conftest.er1
18227   cat conftest.err >&5
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } &&
18230          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18231   { (case "(($ac_try" in
18232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233   *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236   (eval "$ac_try") 2>&5
18237   ac_status=$?
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); }; } &&
18240          { ac_try='test -s conftest.$ac_objext'
18241   { (case "(($ac_try" in
18242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243   *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246   (eval "$ac_try") 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; }; then
18250   ac_cv_func_isnan_in_math_h=yes
18251 else
18252   echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18254
18255         ac_cv_func_isnan_in_math_h=no
18256 fi
18257
18258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18259   ac_ext=c
18260 ac_cpp='$CPP $CPPFLAGS'
18261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18264
18265 fi
18266 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18267 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18268
18269
18270 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18271
18272 cat >>confdefs.h <<\_ACEOF
18273 #define HAVE_ISNAN_IN_MATH_H 1
18274 _ACEOF
18275
18276 fi
18277
18278 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18279 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18280 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18281   echo $ECHO_N "(cached) $ECHO_C" >&6
18282 else
18283   ac_ext=cpp
18284 ac_cpp='$CXXCPP $CPPFLAGS'
18285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18288
18289    cat >conftest.$ac_ext <<_ACEOF
18290 /* confdefs.h.  */
18291 _ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h.  */
18295 #include <cmath>
18296 int
18297 main ()
18298 {
18299 float f; isnan(f);
18300   ;
18301   return 0;
18302 }
18303 _ACEOF
18304 rm -f conftest.$ac_objext
18305 if { (ac_try="$ac_compile"
18306 case "(($ac_try" in
18307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308   *) ac_try_echo=$ac_try;;
18309 esac
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311   (eval "$ac_compile") 2>conftest.er1
18312   ac_status=$?
18313   grep -v '^ *+' conftest.er1 >conftest.err
18314   rm -f conftest.er1
18315   cat conftest.err >&5
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); } &&
18318          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18319   { (case "(($ac_try" in
18320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321   *) ac_try_echo=$ac_try;;
18322 esac
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324   (eval "$ac_try") 2>&5
18325   ac_status=$?
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); }; } &&
18328          { ac_try='test -s conftest.$ac_objext'
18329   { (case "(($ac_try" in
18330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331   *) ac_try_echo=$ac_try;;
18332 esac
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334   (eval "$ac_try") 2>&5
18335   ac_status=$?
18336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337   (exit $ac_status); }; }; then
18338   ac_cv_func_isnan_in_cmath=yes
18339 else
18340   echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18342
18343         ac_cv_func_isnan_in_cmath=no
18344 fi
18345
18346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347   ac_ext=c
18348 ac_cpp='$CPP $CPPFLAGS'
18349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18352
18353 fi
18354 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18355 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18356
18357 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18358
18359 cat >>confdefs.h <<\_ACEOF
18360 #define HAVE_ISNAN_IN_CMATH 1
18361 _ACEOF
18362
18363 fi
18364
18365 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18366 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18367 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18368   echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370   ac_ext=cpp
18371 ac_cpp='$CXXCPP $CPPFLAGS'
18372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18375
18376    cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h.  */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h.  */
18382 #include <cmath>
18383 int
18384 main ()
18385 {
18386 float f; std::isnan(f);
18387   ;
18388   return 0;
18389 }
18390 _ACEOF
18391 rm -f conftest.$ac_objext
18392 if { (ac_try="$ac_compile"
18393 case "(($ac_try" in
18394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395   *) ac_try_echo=$ac_try;;
18396 esac
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398   (eval "$ac_compile") 2>conftest.er1
18399   ac_status=$?
18400   grep -v '^ *+' conftest.er1 >conftest.err
18401   rm -f conftest.er1
18402   cat conftest.err >&5
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); } &&
18405          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18406   { (case "(($ac_try" in
18407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408   *) ac_try_echo=$ac_try;;
18409 esac
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411   (eval "$ac_try") 2>&5
18412   ac_status=$?
18413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414   (exit $ac_status); }; } &&
18415          { ac_try='test -s conftest.$ac_objext'
18416   { (case "(($ac_try" in
18417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418   *) ac_try_echo=$ac_try;;
18419 esac
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421   (eval "$ac_try") 2>&5
18422   ac_status=$?
18423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424   (exit $ac_status); }; }; then
18425   ac_cv_func_std_isnan_in_cmath=yes
18426 else
18427   echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18429
18430         ac_cv_func_std_isnan_in_cmath=no
18431 fi
18432
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434   ac_ext=c
18435 ac_cpp='$CPP $CPPFLAGS'
18436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18439
18440 fi
18441 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18442 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18443
18444 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18445
18446 cat >>confdefs.h <<\_ACEOF
18447 #define HAVE_STD_ISNAN_IN_CMATH 1
18448 _ACEOF
18449
18450 fi
18451
18452
18453 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18454 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18455 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18456   echo $ECHO_N "(cached) $ECHO_C" >&6
18457 else
18458   ac_ext=cpp
18459 ac_cpp='$CXXCPP $CPPFLAGS'
18460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18463
18464    cat >conftest.$ac_ext <<_ACEOF
18465 /* confdefs.h.  */
18466 _ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h.  */
18470 #include <math.h>
18471 int
18472 main ()
18473 {
18474 float f; isinf(f);
18475   ;
18476   return 0;
18477 }
18478 _ACEOF
18479 rm -f conftest.$ac_objext
18480 if { (ac_try="$ac_compile"
18481 case "(($ac_try" in
18482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483   *) ac_try_echo=$ac_try;;
18484 esac
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486   (eval "$ac_compile") 2>conftest.er1
18487   ac_status=$?
18488   grep -v '^ *+' conftest.er1 >conftest.err
18489   rm -f conftest.er1
18490   cat conftest.err >&5
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); } &&
18493          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18494   { (case "(($ac_try" in
18495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496   *) ac_try_echo=$ac_try;;
18497 esac
18498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499   (eval "$ac_try") 2>&5
18500   ac_status=$?
18501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502   (exit $ac_status); }; } &&
18503          { ac_try='test -s conftest.$ac_objext'
18504   { (case "(($ac_try" in
18505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506   *) ac_try_echo=$ac_try;;
18507 esac
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509   (eval "$ac_try") 2>&5
18510   ac_status=$?
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); }; }; then
18513   ac_cv_func_isinf_in_math_h=yes
18514 else
18515   echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18517
18518         ac_cv_func_isinf_in_math_h=no
18519 fi
18520
18521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18522   ac_ext=c
18523 ac_cpp='$CPP $CPPFLAGS'
18524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18527
18528 fi
18529 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18530 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18531
18532 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18533
18534 cat >>confdefs.h <<\_ACEOF
18535 #define HAVE_ISINF_IN_MATH_H 1
18536 _ACEOF
18537
18538 fi
18539
18540 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18541 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18542 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18543   echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545   ac_ext=cpp
18546 ac_cpp='$CXXCPP $CPPFLAGS'
18547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18550
18551    cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h.  */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h.  */
18557 #include <cmath>
18558 int
18559 main ()
18560 {
18561 float f; isinf(f);
18562   ;
18563   return 0;
18564 }
18565 _ACEOF
18566 rm -f conftest.$ac_objext
18567 if { (ac_try="$ac_compile"
18568 case "(($ac_try" in
18569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570   *) ac_try_echo=$ac_try;;
18571 esac
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573   (eval "$ac_compile") 2>conftest.er1
18574   ac_status=$?
18575   grep -v '^ *+' conftest.er1 >conftest.err
18576   rm -f conftest.er1
18577   cat conftest.err >&5
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); } &&
18580          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18581   { (case "(($ac_try" in
18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583   *) ac_try_echo=$ac_try;;
18584 esac
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586   (eval "$ac_try") 2>&5
18587   ac_status=$?
18588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589   (exit $ac_status); }; } &&
18590          { ac_try='test -s conftest.$ac_objext'
18591   { (case "(($ac_try" in
18592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593   *) ac_try_echo=$ac_try;;
18594 esac
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596   (eval "$ac_try") 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; }; then
18600   ac_cv_func_isinf_in_cmath=yes
18601 else
18602   echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18604
18605         ac_cv_func_isinf_in_cmath=no
18606 fi
18607
18608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18609   ac_ext=c
18610 ac_cpp='$CPP $CPPFLAGS'
18611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18614
18615 fi
18616 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18617 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18618
18619 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18620
18621 cat >>confdefs.h <<\_ACEOF
18622 #define HAVE_ISINF_IN_CMATH 1
18623 _ACEOF
18624
18625 fi
18626
18627 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18628 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18629 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18630   echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632   ac_ext=cpp
18633 ac_cpp='$CXXCPP $CPPFLAGS'
18634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18637
18638    cat >conftest.$ac_ext <<_ACEOF
18639 /* confdefs.h.  */
18640 _ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h.  */
18644 #include <cmath>
18645 int
18646 main ()
18647 {
18648 float f; std::isinf(f)}
18649   ;
18650   return 0;
18651 }
18652 _ACEOF
18653 rm -f conftest.$ac_objext
18654 if { (ac_try="$ac_compile"
18655 case "(($ac_try" in
18656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657   *) ac_try_echo=$ac_try;;
18658 esac
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660   (eval "$ac_compile") 2>conftest.er1
18661   ac_status=$?
18662   grep -v '^ *+' conftest.er1 >conftest.err
18663   rm -f conftest.er1
18664   cat conftest.err >&5
18665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666   (exit $ac_status); } &&
18667          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18668   { (case "(($ac_try" in
18669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670   *) ac_try_echo=$ac_try;;
18671 esac
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673   (eval "$ac_try") 2>&5
18674   ac_status=$?
18675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676   (exit $ac_status); }; } &&
18677          { ac_try='test -s conftest.$ac_objext'
18678   { (case "(($ac_try" in
18679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680   *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683   (eval "$ac_try") 2>&5
18684   ac_status=$?
18685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686   (exit $ac_status); }; }; then
18687   ac_cv_func_std_isinf_in_cmath=yes
18688 else
18689   echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18691
18692         ac_cv_func_std_isinf_in_cmath=no
18693 fi
18694
18695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18696   ac_ext=c
18697 ac_cpp='$CPP $CPPFLAGS'
18698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18701
18702 fi
18703 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18704 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18705
18706 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18707
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_STD_ISINF_IN_CMATH 1
18710 _ACEOF
18711
18712 fi
18713
18714 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18715 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18716 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18717   echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719   ac_ext=cpp
18720 ac_cpp='$CXXCPP $CPPFLAGS'
18721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18724
18725    cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h.  */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h.  */
18731 #include <ieeefp.h>
18732 int
18733 main ()
18734 {
18735 float f; finite(f);
18736   ;
18737   return 0;
18738 }
18739 _ACEOF
18740 rm -f conftest.$ac_objext
18741 if { (ac_try="$ac_compile"
18742 case "(($ac_try" in
18743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744   *) ac_try_echo=$ac_try;;
18745 esac
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747   (eval "$ac_compile") 2>conftest.er1
18748   ac_status=$?
18749   grep -v '^ *+' conftest.er1 >conftest.err
18750   rm -f conftest.er1
18751   cat conftest.err >&5
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); } &&
18754          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18755   { (case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760   (eval "$ac_try") 2>&5
18761   ac_status=$?
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); }; } &&
18764          { ac_try='test -s conftest.$ac_objext'
18765   { (case "(($ac_try" in
18766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767   *) ac_try_echo=$ac_try;;
18768 esac
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770   (eval "$ac_try") 2>&5
18771   ac_status=$?
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); }; }; then
18774   ac_cv_func_finite_in_ieeefp_h=yes
18775 else
18776   echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779         ac_cv_func_finite_in_ieeefp_h=no
18780 fi
18781
18782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783   ac_ext=c
18784 ac_cpp='$CPP $CPPFLAGS'
18785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18788
18789 fi
18790 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18791 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18792
18793 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18794
18795 cat >>confdefs.h <<\_ACEOF
18796 #define HAVE_FINITE_IN_IEEEFP_H 1
18797 _ACEOF
18798
18799 fi
18800
18801
18802
18803 if test "$llvm_cv_platform_type" = "Unix" ; then
18804
18805
18806 for ac_header in stdlib.h unistd.h
18807 do
18808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18810   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18813   echo $ECHO_N "(cached) $ECHO_C" >&6
18814 fi
18815 ac_res=`eval echo '${'$as_ac_Header'}'`
18816                { echo "$as_me:$LINENO: result: $ac_res" >&5
18817 echo "${ECHO_T}$ac_res" >&6; }
18818 else
18819   # Is the header compilable?
18820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18822 cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h.  */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h.  */
18828 $ac_includes_default
18829 #include <$ac_header>
18830 _ACEOF
18831 rm -f conftest.$ac_objext
18832 if { (ac_try="$ac_compile"
18833 case "(($ac_try" in
18834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835   *) ac_try_echo=$ac_try;;
18836 esac
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838   (eval "$ac_compile") 2>conftest.er1
18839   ac_status=$?
18840   grep -v '^ *+' conftest.er1 >conftest.err
18841   rm -f conftest.er1
18842   cat conftest.err >&5
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); } &&
18845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18846   { (case "(($ac_try" in
18847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848   *) ac_try_echo=$ac_try;;
18849 esac
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851   (eval "$ac_try") 2>&5
18852   ac_status=$?
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); }; } &&
18855          { ac_try='test -s conftest.$ac_objext'
18856   { (case "(($ac_try" in
18857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858   *) ac_try_echo=$ac_try;;
18859 esac
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861   (eval "$ac_try") 2>&5
18862   ac_status=$?
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); }; }; then
18865   ac_header_compiler=yes
18866 else
18867   echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870         ac_header_compiler=no
18871 fi
18872
18873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18875 echo "${ECHO_T}$ac_header_compiler" >&6; }
18876
18877 # Is the header present?
18878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886 #include <$ac_header>
18887 _ACEOF
18888 if { (ac_try="$ac_cpp conftest.$ac_ext"
18889 case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18895   ac_status=$?
18896   grep -v '^ *+' conftest.er1 >conftest.err
18897   rm -f conftest.er1
18898   cat conftest.err >&5
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); } >/dev/null; then
18901   if test -s conftest.err; then
18902     ac_cpp_err=$ac_c_preproc_warn_flag
18903     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18904   else
18905     ac_cpp_err=
18906   fi
18907 else
18908   ac_cpp_err=yes
18909 fi
18910 if test -z "$ac_cpp_err"; then
18911   ac_header_preproc=yes
18912 else
18913   echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916   ac_header_preproc=no
18917 fi
18918
18919 rm -f conftest.err conftest.$ac_ext
18920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18921 echo "${ECHO_T}$ac_header_preproc" >&6; }
18922
18923 # So?  What about this header?
18924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18925   yes:no: )
18926     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18930     ac_header_preproc=yes
18931     ;;
18932   no:yes:* )
18933     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18935     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18936 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18937     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18939     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18940 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18943     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18945     ( cat <<\_ASBOX
18946 ## ----------------------------------- ##
18947 ## Report this to llvmbugs@cs.uiuc.edu ##
18948 ## ----------------------------------- ##
18949 _ASBOX
18950      ) | sed "s/^/$as_me: WARNING:     /" >&2
18951     ;;
18952 esac
18953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18956   echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18958   eval "$as_ac_Header=\$ac_header_preproc"
18959 fi
18960 ac_res=`eval echo '${'$as_ac_Header'}'`
18961                { echo "$as_me:$LINENO: result: $ac_res" >&5
18962 echo "${ECHO_T}$ac_res" >&6; }
18963
18964 fi
18965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18966   cat >>confdefs.h <<_ACEOF
18967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18968 _ACEOF
18969
18970 fi
18971
18972 done
18973
18974
18975 for ac_func in getpagesize
18976 do
18977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18981   echo $ECHO_N "(cached) $ECHO_C" >&6
18982 else
18983   cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h.  */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h.  */
18989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18991 #define $ac_func innocuous_$ac_func
18992
18993 /* System header to define __stub macros and hopefully few prototypes,
18994     which can conflict with char $ac_func (); below.
18995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18996     <limits.h> exists even on freestanding compilers.  */
18997
18998 #ifdef __STDC__
18999 # include <limits.h>
19000 #else
19001 # include <assert.h>
19002 #endif
19003
19004 #undef $ac_func
19005
19006 /* Override any GCC internal prototype to avoid an error.
19007    Use char because int might match the return type of a GCC
19008    builtin and then its argument prototype would still apply.  */
19009 #ifdef __cplusplus
19010 extern "C"
19011 #endif
19012 char $ac_func ();
19013 /* The GNU C library defines this for functions which it implements
19014     to always fail with ENOSYS.  Some functions are actually named
19015     something starting with __ and the normal name is an alias.  */
19016 #if defined __stub_$ac_func || defined __stub___$ac_func
19017 choke me
19018 #endif
19019
19020 int
19021 main ()
19022 {
19023 return $ac_func ();
19024   ;
19025   return 0;
19026 }
19027 _ACEOF
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (ac_try="$ac_link"
19030 case "(($ac_try" in
19031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032   *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035   (eval "$ac_link") 2>conftest.er1
19036   ac_status=$?
19037   grep -v '^ *+' conftest.er1 >conftest.err
19038   rm -f conftest.er1
19039   cat conftest.err >&5
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); } &&
19042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043   { (case "(($ac_try" in
19044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045   *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048   (eval "$ac_try") 2>&5
19049   ac_status=$?
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); }; } &&
19052          { ac_try='test -s conftest$ac_exeext'
19053   { (case "(($ac_try" in
19054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055   *) ac_try_echo=$ac_try;;
19056 esac
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058   (eval "$ac_try") 2>&5
19059   ac_status=$?
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); }; }; then
19062   eval "$as_ac_var=yes"
19063 else
19064   echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067         eval "$as_ac_var=no"
19068 fi
19069
19070 rm -f core conftest.err conftest.$ac_objext \
19071       conftest$ac_exeext conftest.$ac_ext
19072 fi
19073 ac_res=`eval echo '${'$as_ac_var'}'`
19074                { echo "$as_me:$LINENO: result: $ac_res" >&5
19075 echo "${ECHO_T}$ac_res" >&6; }
19076 if test `eval echo '${'$as_ac_var'}'` = yes; then
19077   cat >>confdefs.h <<_ACEOF
19078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19079 _ACEOF
19080
19081 fi
19082 done
19083
19084 { echo "$as_me:$LINENO: checking for working mmap" >&5
19085 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19086 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19087   echo $ECHO_N "(cached) $ECHO_C" >&6
19088 else
19089   if test "$cross_compiling" = yes; then
19090   ac_cv_func_mmap_fixed_mapped=no
19091 else
19092   cat >conftest.$ac_ext <<_ACEOF
19093 /* confdefs.h.  */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h.  */
19098 $ac_includes_default
19099 /* malloc might have been renamed as rpl_malloc. */
19100 #undef malloc
19101
19102 /* Thanks to Mike Haertel and Jim Avera for this test.
19103    Here is a matrix of mmap possibilities:
19104         mmap private not fixed
19105         mmap private fixed at somewhere currently unmapped
19106         mmap private fixed at somewhere already mapped
19107         mmap shared not fixed
19108         mmap shared fixed at somewhere currently unmapped
19109         mmap shared fixed at somewhere already mapped
19110    For private mappings, we should verify that changes cannot be read()
19111    back from the file, nor mmap's back from the file at a different
19112    address.  (There have been systems where private was not correctly
19113    implemented like the infamous i386 svr4.0, and systems where the
19114    VM page cache was not coherent with the file system buffer cache
19115    like early versions of FreeBSD and possibly contemporary NetBSD.)
19116    For shared mappings, we should conversely verify that changes get
19117    propagated back to all the places they're supposed to be.
19118
19119    Grep wants private fixed already mapped.
19120    The main things grep needs to know about mmap are:
19121    * does it exist and is it safe to write into the mmap'd area
19122    * how to use it (BSD variants)  */
19123
19124 #include <fcntl.h>
19125 #include <sys/mman.h>
19126
19127 #if !STDC_HEADERS && !HAVE_STDLIB_H
19128 char *malloc ();
19129 #endif
19130
19131 /* This mess was copied from the GNU getpagesize.h.  */
19132 #if !HAVE_GETPAGESIZE
19133 /* Assume that all systems that can run configure have sys/param.h.  */
19134 # if !HAVE_SYS_PARAM_H
19135 #  define HAVE_SYS_PARAM_H 1
19136 # endif
19137
19138 # ifdef _SC_PAGESIZE
19139 #  define getpagesize() sysconf(_SC_PAGESIZE)
19140 # else /* no _SC_PAGESIZE */
19141 #  if HAVE_SYS_PARAM_H
19142 #   include <sys/param.h>
19143 #   ifdef EXEC_PAGESIZE
19144 #    define getpagesize() EXEC_PAGESIZE
19145 #   else /* no EXEC_PAGESIZE */
19146 #    ifdef NBPG
19147 #     define getpagesize() NBPG * CLSIZE
19148 #     ifndef CLSIZE
19149 #      define CLSIZE 1
19150 #     endif /* no CLSIZE */
19151 #    else /* no NBPG */
19152 #     ifdef NBPC
19153 #      define getpagesize() NBPC
19154 #     else /* no NBPC */
19155 #      ifdef PAGESIZE
19156 #       define getpagesize() PAGESIZE
19157 #      endif /* PAGESIZE */
19158 #     endif /* no NBPC */
19159 #    endif /* no NBPG */
19160 #   endif /* no EXEC_PAGESIZE */
19161 #  else /* no HAVE_SYS_PARAM_H */
19162 #   define getpagesize() 8192   /* punt totally */
19163 #  endif /* no HAVE_SYS_PARAM_H */
19164 # endif /* no _SC_PAGESIZE */
19165
19166 #endif /* no HAVE_GETPAGESIZE */
19167
19168 int
19169 main ()
19170 {
19171   char *data, *data2, *data3;
19172   int i, pagesize;
19173   int fd;
19174
19175   pagesize = getpagesize ();
19176
19177   /* First, make a file with some known garbage in it. */
19178   data = (char *) malloc (pagesize);
19179   if (!data)
19180     return 1;
19181   for (i = 0; i < pagesize; ++i)
19182     *(data + i) = rand ();
19183   umask (0);
19184   fd = creat ("conftest.mmap", 0600);
19185   if (fd < 0)
19186     return 1;
19187   if (write (fd, data, pagesize) != pagesize)
19188     return 1;
19189   close (fd);
19190
19191   /* Next, try to mmap the file at a fixed address which already has
19192      something else allocated at it.  If we can, also make sure that
19193      we see the same garbage.  */
19194   fd = open ("conftest.mmap", O_RDWR);
19195   if (fd < 0)
19196     return 1;
19197   data2 = (char *) malloc (2 * pagesize);
19198   if (!data2)
19199     return 1;
19200   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19201   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19202                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19203     return 1;
19204   for (i = 0; i < pagesize; ++i)
19205     if (*(data + i) != *(data2 + i))
19206       return 1;
19207
19208   /* Finally, make sure that changes to the mapped area do not
19209      percolate back to the file as seen by read().  (This is a bug on
19210      some variants of i386 svr4.0.)  */
19211   for (i = 0; i < pagesize; ++i)
19212     *(data2 + i) = *(data2 + i) + 1;
19213   data3 = (char *) malloc (pagesize);
19214   if (!data3)
19215     return 1;
19216   if (read (fd, data3, pagesize) != pagesize)
19217     return 1;
19218   for (i = 0; i < pagesize; ++i)
19219     if (*(data + i) != *(data3 + i))
19220       return 1;
19221   close (fd);
19222   return 0;
19223 }
19224 _ACEOF
19225 rm -f conftest$ac_exeext
19226 if { (ac_try="$ac_link"
19227 case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232   (eval "$ac_link") 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19236   { (case "(($ac_try" in
19237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238   *) ac_try_echo=$ac_try;;
19239 esac
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241   (eval "$ac_try") 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; }; then
19245   ac_cv_func_mmap_fixed_mapped=yes
19246 else
19247   echo "$as_me: program exited with status $ac_status" >&5
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ( exit $ac_status )
19252 ac_cv_func_mmap_fixed_mapped=no
19253 fi
19254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19255 fi
19256
19257
19258 fi
19259 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19260 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19261 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19262
19263 cat >>confdefs.h <<\_ACEOF
19264 #define HAVE_MMAP 1
19265 _ACEOF
19266
19267 fi
19268 rm -f conftest.mmap
19269
19270   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19271 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19272 if test "${ac_cv_func_mmap_file+set}" = set; then
19273   echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275    ac_ext=c
19276 ac_cpp='$CPP $CPPFLAGS'
19277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19280
19281   if test "$cross_compiling" = yes; then
19282   ac_cv_func_mmap_file=no
19283 else
19284   cat >conftest.$ac_ext <<_ACEOF
19285
19286     /* confdefs.h.  */
19287 _ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h.  */
19291
19292 #include <sys/types.h>
19293 #include <sys/mman.h>
19294 #include <fcntl.h>
19295
19296 int
19297 main ()
19298 {
19299
19300   int fd;
19301   fd = creat ("foo",0777);
19302   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19303   unlink ("foo");
19304   return (fd != (int) MAP_FAILED);
19305   ;
19306   return 0;
19307 }
19308 _ACEOF
19309 rm -f conftest$ac_exeext
19310 if { (ac_try="$ac_link"
19311 case "(($ac_try" in
19312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313   *) ac_try_echo=$ac_try;;
19314 esac
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316   (eval "$ac_link") 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19320   { (case "(($ac_try" in
19321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322   *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325   (eval "$ac_try") 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; }; then
19329   ac_cv_func_mmap_file=yes
19330 else
19331   echo "$as_me: program exited with status $ac_status" >&5
19332 echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19334
19335 ( exit $ac_status )
19336 ac_cv_func_mmap_file=no
19337 fi
19338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19339 fi
19340
19341
19342   ac_ext=c
19343 ac_cpp='$CPP $CPPFLAGS'
19344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19347
19348
19349 fi
19350 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19351 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19352 if test "$ac_cv_func_mmap_file" = yes; then
19353
19354 cat >>confdefs.h <<\_ACEOF
19355 #define HAVE_MMAP_FILE
19356 _ACEOF
19357
19358    MMAP_FILE=yes
19359
19360 fi
19361
19362   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19363 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19364 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19365   echo $ECHO_N "(cached) $ECHO_C" >&6
19366 else
19367   if test "$llvm_cv_os_type" = "Interix" ; then
19368    ac_cv_need_dev_zero_for_mmap=yes
19369  else
19370    ac_cv_need_dev_zero_for_mmap=no
19371  fi
19372
19373 fi
19374 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19375 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19376 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19377
19378 cat >>confdefs.h <<\_ACEOF
19379 #define NEED_DEV_ZERO_FOR_MMAP 1
19380 _ACEOF
19381
19382 fi
19383
19384   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19385   then
19386     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19387 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19388   fi
19389   if test "$ac_cv_func_mmap_file" = "no"
19390   then
19391     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19392 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19393   fi
19394 fi
19395
19396 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19397 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404 int main() {
19405         volatile unsigned long val = 1;
19406         __sync_synchronize();
19407         __sync_val_compare_and_swap(&val, 1, 0);
19408         __sync_add_and_fetch(&val, 1);
19409         __sync_sub_and_fetch(&val, 1);
19410         return 0;
19411       }
19412
19413 _ACEOF
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418   *) ac_try_echo=$ac_try;;
19419 esac
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421   (eval "$ac_link") 2>conftest.er1
19422   ac_status=$?
19423   grep -v '^ *+' conftest.er1 >conftest.err
19424   rm -f conftest.er1
19425   cat conftest.err >&5
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); } &&
19428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19429   { (case "(($ac_try" in
19430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431   *) ac_try_echo=$ac_try;;
19432 esac
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434   (eval "$ac_try") 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; } &&
19438          { ac_try='test -s conftest$ac_exeext'
19439   { (case "(($ac_try" in
19440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441   *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444   (eval "$ac_try") 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); }; }; then
19448   { echo "$as_me:$LINENO: result: yes" >&5
19449 echo "${ECHO_T}yes" >&6; }
19450
19451 cat >>confdefs.h <<\_ACEOF
19452 #define LLVM_MULTITHREADED 1
19453 _ACEOF
19454
19455 else
19456   echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459         { echo "$as_me:$LINENO: result: no" >&5
19460 echo "${ECHO_T}no" >&6; }
19461
19462 cat >>confdefs.h <<\_ACEOF
19463 #define LLVM_MULTITHREADED 0
19464 _ACEOF
19465
19466   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19467 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19468 fi
19469
19470 rm -f core conftest.err conftest.$ac_objext \
19471       conftest$ac_exeext conftest.$ac_ext
19472
19473
19474
19475 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19476   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19477 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19478 if test "${llvm_cv_linux_mixed+set}" = set; then
19479   echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481    ac_ext=c
19482 ac_cpp='$CPP $CPPFLAGS'
19483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19486
19487   cat >conftest.$ac_ext <<_ACEOF
19488 /* confdefs.h.  */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h.  */
19493 #ifndef __x86_64__
19494        error: Not x86-64 even if uname says so!
19495       #endif
19496
19497 int
19498 main ()
19499 {
19500
19501   ;
19502   return 0;
19503 }
19504 _ACEOF
19505 rm -f conftest.$ac_objext
19506 if { (ac_try="$ac_compile"
19507 case "(($ac_try" in
19508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509   *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512   (eval "$ac_compile") 2>conftest.er1
19513   ac_status=$?
19514   grep -v '^ *+' conftest.er1 >conftest.err
19515   rm -f conftest.er1
19516   cat conftest.err >&5
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } &&
19519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19520   { (case "(($ac_try" in
19521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522   *) ac_try_echo=$ac_try;;
19523 esac
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525   (eval "$ac_try") 2>&5
19526   ac_status=$?
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); }; } &&
19529          { ac_try='test -s conftest.$ac_objext'
19530   { (case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_try") 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; }; then
19539   llvm_cv_linux_mixed=no
19540 else
19541   echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19543
19544         llvm_cv_linux_mixed=yes
19545 fi
19546
19547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548   ac_ext=c
19549 ac_cpp='$CPP $CPPFLAGS'
19550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19553
19554
19555 fi
19556 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19557 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19558
19559   if test "$llvm_cv_linux_mixed" = "yes"; then
19560     llvm_cv_target_arch="x86"
19561     ARCH="x86"
19562   fi
19563 fi
19564
19565
19566 for ac_func in __dso_handle
19567 do
19568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19572   echo $ECHO_N "(cached) $ECHO_C" >&6
19573 else
19574   cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h.  */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h.  */
19580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19582 #define $ac_func innocuous_$ac_func
19583
19584 /* System header to define __stub macros and hopefully few prototypes,
19585     which can conflict with char $ac_func (); below.
19586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19587     <limits.h> exists even on freestanding compilers.  */
19588
19589 #ifdef __STDC__
19590 # include <limits.h>
19591 #else
19592 # include <assert.h>
19593 #endif
19594
19595 #undef $ac_func
19596
19597 /* Override any GCC internal prototype to avoid an error.
19598    Use char because int might match the return type of a GCC
19599    builtin and then its argument prototype would still apply.  */
19600 #ifdef __cplusplus
19601 extern "C"
19602 #endif
19603 char $ac_func ();
19604 /* The GNU C library defines this for functions which it implements
19605     to always fail with ENOSYS.  Some functions are actually named
19606     something starting with __ and the normal name is an alias.  */
19607 #if defined __stub_$ac_func || defined __stub___$ac_func
19608 choke me
19609 #endif
19610
19611 int
19612 main ()
19613 {
19614 return $ac_func ();
19615   ;
19616   return 0;
19617 }
19618 _ACEOF
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626   (eval "$ac_link") 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } &&
19633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19634   { (case "(($ac_try" in
19635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636   *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639   (eval "$ac_try") 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); }; } &&
19643          { ac_try='test -s conftest$ac_exeext'
19644   { (case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_try") 2>&5
19650   ac_status=$?
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); }; }; then
19653   eval "$as_ac_var=yes"
19654 else
19655   echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658         eval "$as_ac_var=no"
19659 fi
19660
19661 rm -f core conftest.err conftest.$ac_objext \
19662       conftest$ac_exeext conftest.$ac_ext
19663 fi
19664 ac_res=`eval echo '${'$as_ac_var'}'`
19665                { echo "$as_me:$LINENO: result: $ac_res" >&5
19666 echo "${ECHO_T}$ac_res" >&6; }
19667 if test `eval echo '${'$as_ac_var'}'` = yes; then
19668   cat >>confdefs.h <<_ACEOF
19669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19670 _ACEOF
19671
19672 fi
19673 done
19674
19675
19676 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19677 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19678 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19679   echo $ECHO_N "(cached) $ECHO_C" >&6
19680 else
19681   llvm_cv_llvmgcc_sanity="no"
19682 if test -x "$LLVMGCC" ; then
19683   cp /dev/null conftest.c
19684   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19685       grep 'target datalayout =' > /dev/null 2>&1
19686   if test $? -eq 0 ; then
19687     llvm_cv_llvmgcc_sanity="yes"
19688   fi
19689   rm conftest.c
19690 fi
19691 fi
19692 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19693 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19694
19695 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19696   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19697 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19698   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19699   LLVMCC1=$llvmcc1path
19700
19701   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19702   LLVMCC1PLUS=$llvmcc1pluspath
19703
19704   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19705   LLVMGCCDIR=$llvmgccdir
19706
19707   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19708   LLVMGCC_LANGS=$llvmgcclangs
19709
19710   { echo "$as_me:$LINENO: result: ok" >&5
19711 echo "${ECHO_T}ok" >&6; }
19712 fi
19713
19714 SHLIBEXT=$libltdl_cv_shlibext
19715
19716
19717 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19718
19719
19720 # Translate the various configuration directories and other basic
19721 # information into substitutions that will end up in Makefile.config.in
19722 # that these configured values can be used by the makefiles
19723 if test "${prefix}" = "NONE" ; then
19724   prefix="/usr/local"
19725 fi
19726 eval LLVM_PREFIX="${prefix}";
19727 eval LLVM_BINDIR="${prefix}/bin";
19728 eval LLVM_LIBDIR="${prefix}/lib";
19729 eval LLVM_DATADIR="${prefix}/share/llvm";
19730 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19731 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19732 eval LLVM_INCLUDEDIR="${prefix}/include";
19733 eval LLVM_INFODIR="${prefix}/info";
19734 eval LLVM_MANDIR="${prefix}/man";
19735 LLVM_CONFIGTIME=`date`
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747 # Place the various directores into the config.h file as #defines so that we
19748 # can know about the installation paths within LLVM.
19749
19750 cat >>confdefs.h <<_ACEOF
19751 #define LLVM_PREFIX "$LLVM_PREFIX"
19752 _ACEOF
19753
19754
19755 cat >>confdefs.h <<_ACEOF
19756 #define LLVM_BINDIR "$LLVM_BINDIR"
19757 _ACEOF
19758
19759
19760 cat >>confdefs.h <<_ACEOF
19761 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19762 _ACEOF
19763
19764
19765 cat >>confdefs.h <<_ACEOF
19766 #define LLVM_DATADIR "$LLVM_DATADIR"
19767 _ACEOF
19768
19769
19770 cat >>confdefs.h <<_ACEOF
19771 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19772 _ACEOF
19773
19774
19775 cat >>confdefs.h <<_ACEOF
19776 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19777 _ACEOF
19778
19779
19780 cat >>confdefs.h <<_ACEOF
19781 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19782 _ACEOF
19783
19784
19785 cat >>confdefs.h <<_ACEOF
19786 #define LLVM_INFODIR "$LLVM_INFODIR"
19787 _ACEOF
19788
19789
19790 cat >>confdefs.h <<_ACEOF
19791 #define LLVM_MANDIR "$LLVM_MANDIR"
19792 _ACEOF
19793
19794
19795 cat >>confdefs.h <<_ACEOF
19796 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19797 _ACEOF
19798
19799
19800 cat >>confdefs.h <<_ACEOF
19801 #define LLVM_HOSTTRIPLE "$host"
19802 _ACEOF
19803
19804
19805 # Determine which bindings to build.
19806 if test "$BINDINGS_TO_BUILD" = auto ; then
19807   BINDINGS_TO_BUILD=""
19808   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19809     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19810   fi
19811 fi
19812 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19813
19814
19815 # This isn't really configurey, but it avoids having to repeat the list in
19816 # other files.
19817 ALL_BINDINGS=ocaml
19818
19819
19820 # Do any work necessary to ensure that bindings have what they need.
19821 binding_prereqs_failed=0
19822 for a_binding in $BINDINGS_TO_BUILD ; do
19823   case "$a_binding" in
19824   ocaml)
19825     if test "x$OCAMLC" = x ; then
19826       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19827 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19828       binding_prereqs_failed=1
19829     fi
19830     if test "x$OCAMLDEP" = x ; then
19831       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19832 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19833       binding_prereqs_failed=1
19834     fi
19835     if test "x$OCAMLOPT" = x ; then
19836       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19837 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19838           fi
19839     if test "x$with_ocaml_libdir" != xauto ; then
19840       OCAML_LIBDIR=$with_ocaml_libdir
19841
19842     else
19843       ocaml_stdlib="`"$OCAMLC" -where`"
19844       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19845       then
19846         # ocaml stdlib is beneath our prefix; use stdlib
19847         OCAML_LIBDIR=$ocaml_stdlib
19848
19849       else
19850         # ocaml stdlib is outside our prefix; use libdir/ocaml
19851         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19852
19853       fi
19854     fi
19855     ;;
19856   esac
19857 done
19858 if test "$binding_prereqs_failed" = 1 ; then
19859   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19860 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19861    { (exit 1); exit 1; }; }
19862 fi
19863
19864 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19865 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19866 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19867   echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19869    ac_ext=cpp
19870 ac_cpp='$CXXCPP $CPPFLAGS'
19871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19874
19875   oldcxxflags="$CXXFLAGS"
19876   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19877   cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883
19884 int
19885 main ()
19886 {
19887
19888   ;
19889   return 0;
19890 }
19891 _ACEOF
19892 rm -f conftest.$ac_objext
19893 if { (ac_try="$ac_compile"
19894 case "(($ac_try" in
19895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896   *) ac_try_echo=$ac_try;;
19897 esac
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899   (eval "$ac_compile") 2>conftest.er1
19900   ac_status=$?
19901   grep -v '^ *+' conftest.er1 >conftest.err
19902   rm -f conftest.er1
19903   cat conftest.err >&5
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); } &&
19906          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19907   { (case "(($ac_try" in
19908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909   *) ac_try_echo=$ac_try;;
19910 esac
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912   (eval "$ac_try") 2>&5
19913   ac_status=$?
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); }; } &&
19916          { ac_try='test -s conftest.$ac_objext'
19917   { (case "(($ac_try" in
19918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919   *) ac_try_echo=$ac_try;;
19920 esac
19921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19922   (eval "$ac_try") 2>&5
19923   ac_status=$?
19924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925   (exit $ac_status); }; }; then
19926   llvm_cv_cxx_visibility_inlines_hidden=yes
19927 else
19928   echo "$as_me: failed program was:" >&5
19929 sed 's/^/| /' conftest.$ac_ext >&5
19930
19931         llvm_cv_cxx_visibility_inlines_hidden=no
19932 fi
19933
19934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19935   CXXFLAGS="$oldcxxflags"
19936   ac_ext=c
19937 ac_cpp='$CPP $CPPFLAGS'
19938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19941
19942
19943 fi
19944 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19945 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19946 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19947   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19948
19949 else
19950   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19951
19952 fi
19953
19954
19955 if test "$llvm_cv_link_use_r" = "yes" ; then
19956   RPATH="-Wl,-R"
19957 else
19958   RPATH="-Wl,-rpath"
19959 fi
19960
19961
19962 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19963   RDYNAMIC="-Wl,-export-dynamic"
19964 else
19965   RDYNAMIC=""
19966 fi
19967
19968
19969
19970 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19971
19972 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19973
19974 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19975
19976 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19977
19978 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19979
19980 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19981
19982
19983 ac_config_files="$ac_config_files Makefile.config"
19984
19985
19986 ac_config_files="$ac_config_files llvm.spec"
19987
19988
19989 ac_config_files="$ac_config_files docs/doxygen.cfg"
19990
19991
19992 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19993
19994
19995 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19996
19997
19998 ac_config_commands="$ac_config_commands setup"
19999
20000 ac_config_commands="$ac_config_commands Makefile"
20001
20002
20003 ac_config_commands="$ac_config_commands Makefile.common"
20004
20005
20006 ac_config_commands="$ac_config_commands examples/Makefile"
20007
20008
20009 ac_config_commands="$ac_config_commands lib/Makefile"
20010
20011
20012 ac_config_commands="$ac_config_commands runtime/Makefile"
20013
20014
20015 ac_config_commands="$ac_config_commands test/Makefile"
20016
20017
20018 ac_config_commands="$ac_config_commands test/Makefile.tests"
20019
20020
20021 ac_config_commands="$ac_config_commands unittests/Makefile"
20022
20023
20024 ac_config_commands="$ac_config_commands tools/Makefile"
20025
20026
20027 ac_config_commands="$ac_config_commands utils/Makefile"
20028
20029
20030 ac_config_commands="$ac_config_commands projects/Makefile"
20031
20032
20033 ac_config_commands="$ac_config_commands bindings/Makefile"
20034
20035
20036 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20037
20038
20039
20040 cat >confcache <<\_ACEOF
20041 # This file is a shell script that caches the results of configure
20042 # tests run on this system so they can be shared between configure
20043 # scripts and configure runs, see configure's option --config-cache.
20044 # It is not useful on other systems.  If it contains results you don't
20045 # want to keep, you may remove or edit it.
20046 #
20047 # config.status only pays attention to the cache file if you give it
20048 # the --recheck option to rerun configure.
20049 #
20050 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20051 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20052 # following values.
20053
20054 _ACEOF
20055
20056 # The following way of writing the cache mishandles newlines in values,
20057 # but we know of no workaround that is simple, portable, and efficient.
20058 # So, we kill variables containing newlines.
20059 # Ultrix sh set writes to stderr and can't be redirected directly,
20060 # and sets the high bit in the cache file unless we assign to the vars.
20061 (
20062   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20063     eval ac_val=\$$ac_var
20064     case $ac_val in #(
20065     *${as_nl}*)
20066       case $ac_var in #(
20067       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20068 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20069       esac
20070       case $ac_var in #(
20071       _ | IFS | as_nl) ;; #(
20072       *) $as_unset $ac_var ;;
20073       esac ;;
20074     esac
20075   done
20076
20077   (set) 2>&1 |
20078     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20079     *${as_nl}ac_space=\ *)
20080       # `set' does not quote correctly, so add quotes (double-quote
20081       # substitution turns \\\\ into \\, and sed turns \\ into \).
20082       sed -n \
20083         "s/'/'\\\\''/g;
20084           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20085       ;; #(
20086     *)
20087       # `set' quotes correctly as required by POSIX, so do not add quotes.
20088       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20089       ;;
20090     esac |
20091     sort
20092 ) |
20093   sed '
20094      /^ac_cv_env_/b end
20095      t clear
20096      :clear
20097      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20098      t end
20099      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20100      :end' >>confcache
20101 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20102   if test -w "$cache_file"; then
20103     test "x$cache_file" != "x/dev/null" &&
20104       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20105 echo "$as_me: updating cache $cache_file" >&6;}
20106     cat confcache >$cache_file
20107   else
20108     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20109 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20110   fi
20111 fi
20112 rm -f confcache
20113
20114 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20115 # Let make expand exec_prefix.
20116 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20117
20118 DEFS=-DHAVE_CONFIG_H
20119
20120 ac_libobjs=
20121 ac_ltlibobjs=
20122 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20123   # 1. Remove the extension, and $U if already installed.
20124   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20125   ac_i=`echo "$ac_i" | sed "$ac_script"`
20126   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20127   #    will be set to the directory where LIBOBJS objects are built.
20128   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20129   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20130 done
20131 LIBOBJS=$ac_libobjs
20132
20133 LTLIBOBJS=$ac_ltlibobjs
20134
20135
20136 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20137   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20138 Usually this means the macro was only invoked conditionally." >&5
20139 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20140 Usually this means the macro was only invoked conditionally." >&2;}
20141    { (exit 1); exit 1; }; }
20142 fi
20143 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20144   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20145 Usually this means the macro was only invoked conditionally." >&5
20146 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20147 Usually this means the macro was only invoked conditionally." >&2;}
20148    { (exit 1); exit 1; }; }
20149 fi
20150
20151 : ${CONFIG_STATUS=./config.status}
20152 ac_clean_files_save=$ac_clean_files
20153 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20154 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20155 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20156 cat >$CONFIG_STATUS <<_ACEOF
20157 #! $SHELL
20158 # Generated by $as_me.
20159 # Run this file to recreate the current configuration.
20160 # Compiler output produced by configure, useful for debugging
20161 # configure, is in config.log if it exists.
20162
20163 debug=false
20164 ac_cs_recheck=false
20165 ac_cs_silent=false
20166 SHELL=\${CONFIG_SHELL-$SHELL}
20167 _ACEOF
20168
20169 cat >>$CONFIG_STATUS <<\_ACEOF
20170 ## --------------------- ##
20171 ## M4sh Initialization.  ##
20172 ## --------------------- ##
20173
20174 # Be Bourne compatible
20175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20176   emulate sh
20177   NULLCMD=:
20178   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20179   # is contrary to our usage.  Disable this feature.
20180   alias -g '${1+"$@"}'='"$@"'
20181   setopt NO_GLOB_SUBST
20182 else
20183   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20184 fi
20185 BIN_SH=xpg4; export BIN_SH # for Tru64
20186 DUALCASE=1; export DUALCASE # for MKS sh
20187
20188
20189 # PATH needs CR
20190 # Avoid depending upon Character Ranges.
20191 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20192 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20193 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20194 as_cr_digits='0123456789'
20195 as_cr_alnum=$as_cr_Letters$as_cr_digits
20196
20197 # The user is always right.
20198 if test "${PATH_SEPARATOR+set}" != set; then
20199   echo "#! /bin/sh" >conf$$.sh
20200   echo  "exit 0"   >>conf$$.sh
20201   chmod +x conf$$.sh
20202   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20203     PATH_SEPARATOR=';'
20204   else
20205     PATH_SEPARATOR=:
20206   fi
20207   rm -f conf$$.sh
20208 fi
20209
20210 # Support unset when possible.
20211 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20212   as_unset=unset
20213 else
20214   as_unset=false
20215 fi
20216
20217
20218 # IFS
20219 # We need space, tab and new line, in precisely that order.  Quoting is
20220 # there to prevent editors from complaining about space-tab.
20221 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20222 # splitting by setting IFS to empty value.)
20223 as_nl='
20224 '
20225 IFS=" ""        $as_nl"
20226
20227 # Find who we are.  Look in the path if we contain no directory separator.
20228 case $0 in
20229   *[\\/]* ) as_myself=$0 ;;
20230   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20231 for as_dir in $PATH
20232 do
20233   IFS=$as_save_IFS
20234   test -z "$as_dir" && as_dir=.
20235   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20236 done
20237 IFS=$as_save_IFS
20238
20239      ;;
20240 esac
20241 # We did not find ourselves, most probably we were run as `sh COMMAND'
20242 # in which case we are not to be found in the path.
20243 if test "x$as_myself" = x; then
20244   as_myself=$0
20245 fi
20246 if test ! -f "$as_myself"; then
20247   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20248   { (exit 1); exit 1; }
20249 fi
20250
20251 # Work around bugs in pre-3.0 UWIN ksh.
20252 for as_var in ENV MAIL MAILPATH
20253 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20254 done
20255 PS1='$ '
20256 PS2='> '
20257 PS4='+ '
20258
20259 # NLS nuisances.
20260 for as_var in \
20261   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20262   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20263   LC_TELEPHONE LC_TIME
20264 do
20265   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20266     eval $as_var=C; export $as_var
20267   else
20268     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20269   fi
20270 done
20271
20272 # Required to use basename.
20273 if expr a : '\(a\)' >/dev/null 2>&1 &&
20274    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20275   as_expr=expr
20276 else
20277   as_expr=false
20278 fi
20279
20280 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20281   as_basename=basename
20282 else
20283   as_basename=false
20284 fi
20285
20286
20287 # Name of the executable.
20288 as_me=`$as_basename -- "$0" ||
20289 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20290          X"$0" : 'X\(//\)$' \| \
20291          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20292 echo X/"$0" |
20293     sed '/^.*\/\([^/][^/]*\)\/*$/{
20294             s//\1/
20295             q
20296           }
20297           /^X\/\(\/\/\)$/{
20298             s//\1/
20299             q
20300           }
20301           /^X\/\(\/\).*/{
20302             s//\1/
20303             q
20304           }
20305           s/.*/./; q'`
20306
20307 # CDPATH.
20308 $as_unset CDPATH
20309
20310
20311
20312   as_lineno_1=$LINENO
20313   as_lineno_2=$LINENO
20314   test "x$as_lineno_1" != "x$as_lineno_2" &&
20315   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20316
20317   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20318   # uniformly replaced by the line number.  The first 'sed' inserts a
20319   # line-number line after each line using $LINENO; the second 'sed'
20320   # does the real work.  The second script uses 'N' to pair each
20321   # line-number line with the line containing $LINENO, and appends
20322   # trailing '-' during substitution so that $LINENO is not a special
20323   # case at line end.
20324   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20325   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20326   # E. McMahon (1931-1989) for sed's syntax.  :-)
20327   sed -n '
20328     p
20329     /[$]LINENO/=
20330   ' <$as_myself |
20331     sed '
20332       s/[$]LINENO.*/&-/
20333       t lineno
20334       b
20335       :lineno
20336       N
20337       :loop
20338       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20339       t loop
20340       s/-\n.*//
20341     ' >$as_me.lineno &&
20342   chmod +x "$as_me.lineno" ||
20343     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20344    { (exit 1); exit 1; }; }
20345
20346   # Don't try to exec as it changes $[0], causing all sort of problems
20347   # (the dirname of $[0] is not the place where we might find the
20348   # original and so on.  Autoconf is especially sensitive to this).
20349   . "./$as_me.lineno"
20350   # Exit status is that of the last command.
20351   exit
20352 }
20353
20354
20355 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20356   as_dirname=dirname
20357 else
20358   as_dirname=false
20359 fi
20360
20361 ECHO_C= ECHO_N= ECHO_T=
20362 case `echo -n x` in
20363 -n*)
20364   case `echo 'x\c'` in
20365   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20366   *)   ECHO_C='\c';;
20367   esac;;
20368 *)
20369   ECHO_N='-n';;
20370 esac
20371
20372 if expr a : '\(a\)' >/dev/null 2>&1 &&
20373    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20374   as_expr=expr
20375 else
20376   as_expr=false
20377 fi
20378
20379 rm -f conf$$ conf$$.exe conf$$.file
20380 if test -d conf$$.dir; then
20381   rm -f conf$$.dir/conf$$.file
20382 else
20383   rm -f conf$$.dir
20384   mkdir conf$$.dir
20385 fi
20386 echo >conf$$.file
20387 if ln -s conf$$.file conf$$ 2>/dev/null; then
20388   as_ln_s='ln -s'
20389   # ... but there are two gotchas:
20390   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20391   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20392   # In both cases, we have to default to `cp -p'.
20393   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20394     as_ln_s='cp -p'
20395 elif ln conf$$.file conf$$ 2>/dev/null; then
20396   as_ln_s=ln
20397 else
20398   as_ln_s='cp -p'
20399 fi
20400 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20401 rmdir conf$$.dir 2>/dev/null
20402
20403 if mkdir -p . 2>/dev/null; then
20404   as_mkdir_p=:
20405 else
20406   test -d ./-p && rmdir ./-p
20407   as_mkdir_p=false
20408 fi
20409
20410 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20411 # systems may use methods other than mode bits to determine executability.
20412 cat >conf$$.file <<_ASEOF
20413 #! /bin/sh
20414 exit 0
20415 _ASEOF
20416 chmod +x conf$$.file
20417 if test -x conf$$.file >/dev/null 2>&1; then
20418   as_executable_p="test -x"
20419 else
20420   as_executable_p=:
20421 fi
20422 rm -f conf$$.file
20423
20424 # Sed expression to map a string onto a valid CPP name.
20425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20426
20427 # Sed expression to map a string onto a valid variable name.
20428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20429
20430
20431 exec 6>&1
20432
20433 # Save the log message, to keep $[0] and so on meaningful, and to
20434 # report actual input values of CONFIG_FILES etc. instead of their
20435 # values after options handling.
20436 ac_log="
20437 This file was extended by llvm $as_me 2.7svn, which was
20438 generated by GNU Autoconf 2.60.  Invocation command line was
20439
20440   CONFIG_FILES    = $CONFIG_FILES
20441   CONFIG_HEADERS  = $CONFIG_HEADERS
20442   CONFIG_LINKS    = $CONFIG_LINKS
20443   CONFIG_COMMANDS = $CONFIG_COMMANDS
20444   $ $0 $@
20445
20446 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20447 "
20448
20449 _ACEOF
20450
20451 cat >>$CONFIG_STATUS <<_ACEOF
20452 # Files that config.status was made for.
20453 config_files="$ac_config_files"
20454 config_headers="$ac_config_headers"
20455 config_commands="$ac_config_commands"
20456
20457 _ACEOF
20458
20459 cat >>$CONFIG_STATUS <<\_ACEOF
20460 ac_cs_usage="\
20461 \`$as_me' instantiates files from templates according to the
20462 current configuration.
20463
20464 Usage: $0 [OPTIONS] [FILE]...
20465
20466   -h, --help       print this help, then exit
20467   -V, --version    print version number, then exit
20468   -q, --quiet      do not print progress messages
20469   -d, --debug      don't remove temporary files
20470       --recheck    update $as_me by reconfiguring in the same conditions
20471   --file=FILE[:TEMPLATE]
20472                    instantiate the configuration file FILE
20473   --header=FILE[:TEMPLATE]
20474                    instantiate the configuration header FILE
20475
20476 Configuration files:
20477 $config_files
20478
20479 Configuration headers:
20480 $config_headers
20481
20482 Configuration commands:
20483 $config_commands
20484
20485 Report bugs to <bug-autoconf@gnu.org>."
20486
20487 _ACEOF
20488 cat >>$CONFIG_STATUS <<_ACEOF
20489 ac_cs_version="\\
20490 llvm config.status 2.7svn
20491 configured by $0, generated by GNU Autoconf 2.60,
20492   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20493
20494 Copyright (C) 2006 Free Software Foundation, Inc.
20495 This config.status script is free software; the Free Software Foundation
20496 gives unlimited permission to copy, distribute and modify it."
20497
20498 ac_pwd='$ac_pwd'
20499 srcdir='$srcdir'
20500 INSTALL='$INSTALL'
20501 _ACEOF
20502
20503 cat >>$CONFIG_STATUS <<\_ACEOF
20504 # If no file are specified by the user, then we need to provide default
20505 # value.  By we need to know if files were specified by the user.
20506 ac_need_defaults=:
20507 while test $# != 0
20508 do
20509   case $1 in
20510   --*=*)
20511     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20512     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20513     ac_shift=:
20514     ;;
20515   *)
20516     ac_option=$1
20517     ac_optarg=$2
20518     ac_shift=shift
20519     ;;
20520   esac
20521
20522   case $ac_option in
20523   # Handling of the options.
20524   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20525     ac_cs_recheck=: ;;
20526   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20527     echo "$ac_cs_version"; exit ;;
20528   --debug | --debu | --deb | --de | --d | -d )
20529     debug=: ;;
20530   --file | --fil | --fi | --f )
20531     $ac_shift
20532     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20533     ac_need_defaults=false;;
20534   --header | --heade | --head | --hea )
20535     $ac_shift
20536     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20537     ac_need_defaults=false;;
20538   --he | --h)
20539     # Conflict between --help and --header
20540     { echo "$as_me: error: ambiguous option: $1
20541 Try \`$0 --help' for more information." >&2
20542    { (exit 1); exit 1; }; };;
20543   --help | --hel | -h )
20544     echo "$ac_cs_usage"; exit ;;
20545   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20546   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20547     ac_cs_silent=: ;;
20548
20549   # This is an error.
20550   -*) { echo "$as_me: error: unrecognized option: $1
20551 Try \`$0 --help' for more information." >&2
20552    { (exit 1); exit 1; }; } ;;
20553
20554   *) ac_config_targets="$ac_config_targets $1"
20555      ac_need_defaults=false ;;
20556
20557   esac
20558   shift
20559 done
20560
20561 ac_configure_extra_args=
20562
20563 if $ac_cs_silent; then
20564   exec 6>/dev/null
20565   ac_configure_extra_args="$ac_configure_extra_args --silent"
20566 fi
20567
20568 _ACEOF
20569 cat >>$CONFIG_STATUS <<_ACEOF
20570 if \$ac_cs_recheck; then
20571   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20572   CONFIG_SHELL=$SHELL
20573   export CONFIG_SHELL
20574   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20575 fi
20576
20577 _ACEOF
20578 cat >>$CONFIG_STATUS <<\_ACEOF
20579 exec 5>>config.log
20580 {
20581   echo
20582   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20583 ## Running $as_me. ##
20584 _ASBOX
20585   echo "$ac_log"
20586 } >&5
20587
20588 _ACEOF
20589 cat >>$CONFIG_STATUS <<_ACEOF
20590 #
20591 # INIT-COMMANDS
20592 #
20593 llvm_src="${srcdir}"
20594
20595 _ACEOF
20596
20597 cat >>$CONFIG_STATUS <<\_ACEOF
20598
20599 # Handling of arguments.
20600 for ac_config_target in $ac_config_targets
20601 do
20602   case $ac_config_target in
20603     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20604     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20605     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20606     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20607     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20608     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20609     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20610     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20611     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20612     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20613     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20614     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20615     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20616     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20617     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20618     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20619     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20620     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20621     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20622     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20623     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20624     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20625     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20626     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20627     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20628
20629   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20630 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20631    { (exit 1); exit 1; }; };;
20632   esac
20633 done
20634
20635
20636 # If the user did not use the arguments to specify the items to instantiate,
20637 # then the envvar interface is used.  Set only those that are not.
20638 # We use the long form for the default assignment because of an extremely
20639 # bizarre bug on SunOS 4.1.3.
20640 if $ac_need_defaults; then
20641   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20642   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20643   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20644 fi
20645
20646 # Have a temporary directory for convenience.  Make it in the build tree
20647 # simply because there is no reason against having it here, and in addition,
20648 # creating and moving files from /tmp can sometimes cause problems.
20649 # Hook for its removal unless debugging.
20650 # Note that there is a small window in which the directory will not be cleaned:
20651 # after its creation but before its name has been assigned to `$tmp'.
20652 $debug ||
20653 {
20654   tmp=
20655   trap 'exit_status=$?
20656   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20657 ' 0
20658   trap '{ (exit 1); exit 1; }' 1 2 13 15
20659 }
20660 # Create a (secure) tmp directory for tmp files.
20661
20662 {
20663   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20664   test -n "$tmp" && test -d "$tmp"
20665 }  ||
20666 {
20667   tmp=./conf$$-$RANDOM
20668   (umask 077 && mkdir "$tmp")
20669 } ||
20670 {
20671    echo "$me: cannot create a temporary directory in ." >&2
20672    { (exit 1); exit 1; }
20673 }
20674
20675 #
20676 # Set up the sed scripts for CONFIG_FILES section.
20677 #
20678
20679 # No need to generate the scripts if there are no CONFIG_FILES.
20680 # This happens for instance when ./config.status config.h
20681 if test -n "$CONFIG_FILES"; then
20682
20683 _ACEOF
20684
20685
20686
20687 ac_delim='%!_!# '
20688 for ac_last_try in false false false false false :; do
20689   cat >conf$$subs.sed <<_ACEOF
20690 SHELL!$SHELL$ac_delim
20691 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20692 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20693 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20694 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20695 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20696 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20697 exec_prefix!$exec_prefix$ac_delim
20698 prefix!$prefix$ac_delim
20699 program_transform_name!$program_transform_name$ac_delim
20700 bindir!$bindir$ac_delim
20701 sbindir!$sbindir$ac_delim
20702 libexecdir!$libexecdir$ac_delim
20703 datarootdir!$datarootdir$ac_delim
20704 datadir!$datadir$ac_delim
20705 sysconfdir!$sysconfdir$ac_delim
20706 sharedstatedir!$sharedstatedir$ac_delim
20707 localstatedir!$localstatedir$ac_delim
20708 includedir!$includedir$ac_delim
20709 oldincludedir!$oldincludedir$ac_delim
20710 docdir!$docdir$ac_delim
20711 infodir!$infodir$ac_delim
20712 htmldir!$htmldir$ac_delim
20713 dvidir!$dvidir$ac_delim
20714 pdfdir!$pdfdir$ac_delim
20715 psdir!$psdir$ac_delim
20716 libdir!$libdir$ac_delim
20717 localedir!$localedir$ac_delim
20718 mandir!$mandir$ac_delim
20719 DEFS!$DEFS$ac_delim
20720 ECHO_C!$ECHO_C$ac_delim
20721 ECHO_N!$ECHO_N$ac_delim
20722 ECHO_T!$ECHO_T$ac_delim
20723 LIBS!$LIBS$ac_delim
20724 build_alias!$build_alias$ac_delim
20725 host_alias!$host_alias$ac_delim
20726 target_alias!$target_alias$ac_delim
20727 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20728 subdirs!$subdirs$ac_delim
20729 build!$build$ac_delim
20730 build_cpu!$build_cpu$ac_delim
20731 build_vendor!$build_vendor$ac_delim
20732 build_os!$build_os$ac_delim
20733 host!$host$ac_delim
20734 host_cpu!$host_cpu$ac_delim
20735 host_vendor!$host_vendor$ac_delim
20736 host_os!$host_os$ac_delim
20737 target!$target$ac_delim
20738 target_cpu!$target_cpu$ac_delim
20739 target_vendor!$target_vendor$ac_delim
20740 target_os!$target_os$ac_delim
20741 OS!$OS$ac_delim
20742 HOST_OS!$HOST_OS$ac_delim
20743 TARGET_OS!$TARGET_OS$ac_delim
20744 LINKALL!$LINKALL$ac_delim
20745 NOLINKALL!$NOLINKALL$ac_delim
20746 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20747 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20748 ARCH!$ARCH$ac_delim
20749 ENDIAN!$ENDIAN$ac_delim
20750 CC!$CC$ac_delim
20751 CFLAGS!$CFLAGS$ac_delim
20752 LDFLAGS!$LDFLAGS$ac_delim
20753 CPPFLAGS!$CPPFLAGS$ac_delim
20754 ac_ct_CC!$ac_ct_CC$ac_delim
20755 EXEEXT!$EXEEXT$ac_delim
20756 OBJEXT!$OBJEXT$ac_delim
20757 CPP!$CPP$ac_delim
20758 GREP!$GREP$ac_delim
20759 EGREP!$EGREP$ac_delim
20760 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20761 BUILD_CC!$BUILD_CC$ac_delim
20762 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20763 BUILD_CXX!$BUILD_CXX$ac_delim
20764 CVSBUILD!$CVSBUILD$ac_delim
20765 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20766 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20767 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20768 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20769 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20770 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20771 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20772 JIT!$JIT$ac_delim
20773 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20774 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20775 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20776 ENABLE_PIC!$ENABLE_PIC$ac_delim
20777 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20778 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20779 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20780 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20781 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20782 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20783 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20784 CLANGPATH!$CLANGPATH$ac_delim
20785 CLANGXXPATH!$CLANGXXPATH$ac_delim
20786 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20787 _ACEOF
20788
20789   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20790     break
20791   elif $ac_last_try; then
20792     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20794    { (exit 1); exit 1; }; }
20795   else
20796     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20797   fi
20798 done
20799
20800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20801 if test -n "$ac_eof"; then
20802   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20803   ac_eof=`expr $ac_eof + 1`
20804 fi
20805
20806 cat >>$CONFIG_STATUS <<_ACEOF
20807 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20809 _ACEOF
20810 sed '
20811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20812 s/^/s,@/; s/!/@,|#_!!_#|/
20813 :n
20814 t n
20815 s/'"$ac_delim"'$/,g/; t
20816 s/$/\\/; p
20817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20818 ' >>$CONFIG_STATUS <conf$$subs.sed
20819 rm -f conf$$subs.sed
20820 cat >>$CONFIG_STATUS <<_ACEOF
20821 CEOF$ac_eof
20822 _ACEOF
20823
20824
20825 ac_delim='%!_!# '
20826 for ac_last_try in false false false false false :; do
20827   cat >conf$$subs.sed <<_ACEOF
20828 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20829 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20830 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20831 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20832 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20833 CXX!$CXX$ac_delim
20834 CXXFLAGS!$CXXFLAGS$ac_delim
20835 ac_ct_CXX!$ac_ct_CXX$ac_delim
20836 NM!$NM$ac_delim
20837 ifGNUmake!$ifGNUmake$ac_delim
20838 LN_S!$LN_S$ac_delim
20839 CMP!$CMP$ac_delim
20840 CP!$CP$ac_delim
20841 DATE!$DATE$ac_delim
20842 FIND!$FIND$ac_delim
20843 MKDIR!$MKDIR$ac_delim
20844 MV!$MV$ac_delim
20845 RANLIB!$RANLIB$ac_delim
20846 AR!$AR$ac_delim
20847 RM!$RM$ac_delim
20848 SED!$SED$ac_delim
20849 TAR!$TAR$ac_delim
20850 BINPWD!$BINPWD$ac_delim
20851 GRAPHVIZ!$GRAPHVIZ$ac_delim
20852 DOT!$DOT$ac_delim
20853 FDP!$FDP$ac_delim
20854 NEATO!$NEATO$ac_delim
20855 TWOPI!$TWOPI$ac_delim
20856 CIRCO!$CIRCO$ac_delim
20857 GV!$GV$ac_delim
20858 DOTTY!$DOTTY$ac_delim
20859 PERL!$PERL$ac_delim
20860 HAVE_PERL!$HAVE_PERL$ac_delim
20861 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20862 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20863 INSTALL_DATA!$INSTALL_DATA$ac_delim
20864 BZIP2!$BZIP2$ac_delim
20865 DOXYGEN!$DOXYGEN$ac_delim
20866 GROFF!$GROFF$ac_delim
20867 GZIP!$GZIP$ac_delim
20868 POD2HTML!$POD2HTML$ac_delim
20869 POD2MAN!$POD2MAN$ac_delim
20870 RUNTEST!$RUNTEST$ac_delim
20871 TCLSH!$TCLSH$ac_delim
20872 ZIP!$ZIP$ac_delim
20873 OCAMLC!$OCAMLC$ac_delim
20874 OCAMLOPT!$OCAMLOPT$ac_delim
20875 OCAMLDEP!$OCAMLDEP$ac_delim
20876 OCAMLDOC!$OCAMLDOC$ac_delim
20877 GAS!$GAS$ac_delim
20878 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20879 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20880 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20881 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20882 LIBADD_DL!$LIBADD_DL$ac_delim
20883 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20884 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20885 LLVMGCC!$LLVMGCC$ac_delim
20886 LLVMGXX!$LLVMGXX$ac_delim
20887 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20888 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20889 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20890 USE_UDIS86!$USE_UDIS86$ac_delim
20891 USE_OPROFILE!$USE_OPROFILE$ac_delim
20892 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20893 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20894 MMAP_FILE!$MMAP_FILE$ac_delim
20895 LLVMCC1!$LLVMCC1$ac_delim
20896 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20897 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20898 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20899 SHLIBEXT!$SHLIBEXT$ac_delim
20900 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20901 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20902 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20903 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20904 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20905 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20906 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20907 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20908 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20909 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20910 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20911 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20912 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20913 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20914 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20915 RPATH!$RPATH$ac_delim
20916 RDYNAMIC!$RDYNAMIC$ac_delim
20917 LIBOBJS!$LIBOBJS$ac_delim
20918 LTLIBOBJS!$LTLIBOBJS$ac_delim
20919 _ACEOF
20920
20921   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
20922     break
20923   elif $ac_last_try; then
20924     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20925 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20926    { (exit 1); exit 1; }; }
20927   else
20928     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20929   fi
20930 done
20931
20932 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20933 if test -n "$ac_eof"; then
20934   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20935   ac_eof=`expr $ac_eof + 1`
20936 fi
20937
20938 cat >>$CONFIG_STATUS <<_ACEOF
20939 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20941 _ACEOF
20942 sed '
20943 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20944 s/^/s,@/; s/!/@,|#_!!_#|/
20945 :n
20946 t n
20947 s/'"$ac_delim"'$/,g/; t
20948 s/$/\\/; p
20949 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20950 ' >>$CONFIG_STATUS <conf$$subs.sed
20951 rm -f conf$$subs.sed
20952 cat >>$CONFIG_STATUS <<_ACEOF
20953 :end
20954 s/|#_!!_#|//g
20955 CEOF$ac_eof
20956 _ACEOF
20957
20958
20959 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20960 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20961 # trailing colons and then remove the whole line if VPATH becomes empty
20962 # (actually we leave an empty line to preserve line numbers).
20963 if test "x$srcdir" = x.; then
20964   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20965 s/:*\$(srcdir):*/:/
20966 s/:*\${srcdir}:*/:/
20967 s/:*@srcdir@:*/:/
20968 s/^\([^=]*=[     ]*\):*/\1/
20969 s/:*$//
20970 s/^[^=]*=[       ]*$//
20971 }'
20972 fi
20973
20974 cat >>$CONFIG_STATUS <<\_ACEOF
20975 fi # test -n "$CONFIG_FILES"
20976
20977
20978 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20979 do
20980   case $ac_tag in
20981   :[FHLC]) ac_mode=$ac_tag; continue;;
20982   esac
20983   case $ac_mode$ac_tag in
20984   :[FHL]*:*);;
20985   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20986 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20987    { (exit 1); exit 1; }; };;
20988   :[FH]-) ac_tag=-:-;;
20989   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20990   esac
20991   ac_save_IFS=$IFS
20992   IFS=:
20993   set x $ac_tag
20994   IFS=$ac_save_IFS
20995   shift
20996   ac_file=$1
20997   shift
20998
20999   case $ac_mode in
21000   :L) ac_source=$1;;
21001   :[FH])
21002     ac_file_inputs=
21003     for ac_f
21004     do
21005       case $ac_f in
21006       -) ac_f="$tmp/stdin";;
21007       *) # Look for the file first in the build tree, then in the source tree
21008          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21009          # because $ac_f cannot contain `:'.
21010          test -f "$ac_f" ||
21011            case $ac_f in
21012            [\\/$]*) false;;
21013            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21014            esac ||
21015            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21016 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21017    { (exit 1); exit 1; }; };;
21018       esac
21019       ac_file_inputs="$ac_file_inputs $ac_f"
21020     done
21021
21022     # Let's still pretend it is `configure' which instantiates (i.e., don't
21023     # use $as_me), people would be surprised to read:
21024     #    /* config.h.  Generated by config.status.  */
21025     configure_input="Generated from "`IFS=:
21026           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21027     if test x"$ac_file" != x-; then
21028       configure_input="$ac_file.  $configure_input"
21029       { echo "$as_me:$LINENO: creating $ac_file" >&5
21030 echo "$as_me: creating $ac_file" >&6;}
21031     fi
21032
21033     case $ac_tag in
21034     *:-:* | *:-) cat >"$tmp/stdin";;
21035     esac
21036     ;;
21037   esac
21038
21039   ac_dir=`$as_dirname -- "$ac_file" ||
21040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21041          X"$ac_file" : 'X\(//\)[^/]' \| \
21042          X"$ac_file" : 'X\(//\)$' \| \
21043          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21044 echo X"$ac_file" |
21045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21046             s//\1/
21047             q
21048           }
21049           /^X\(\/\/\)[^/].*/{
21050             s//\1/
21051             q
21052           }
21053           /^X\(\/\/\)$/{
21054             s//\1/
21055             q
21056           }
21057           /^X\(\/\).*/{
21058             s//\1/
21059             q
21060           }
21061           s/.*/./; q'`
21062   { as_dir="$ac_dir"
21063   case $as_dir in #(
21064   -*) as_dir=./$as_dir;;
21065   esac
21066   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21067     as_dirs=
21068     while :; do
21069       case $as_dir in #(
21070       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21071       *) as_qdir=$as_dir;;
21072       esac
21073       as_dirs="'$as_qdir' $as_dirs"
21074       as_dir=`$as_dirname -- "$as_dir" ||
21075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21076          X"$as_dir" : 'X\(//\)[^/]' \| \
21077          X"$as_dir" : 'X\(//\)$' \| \
21078          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21079 echo X"$as_dir" |
21080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21081             s//\1/
21082             q
21083           }
21084           /^X\(\/\/\)[^/].*/{
21085             s//\1/
21086             q
21087           }
21088           /^X\(\/\/\)$/{
21089             s//\1/
21090             q
21091           }
21092           /^X\(\/\).*/{
21093             s//\1/
21094             q
21095           }
21096           s/.*/./; q'`
21097       test -d "$as_dir" && break
21098     done
21099     test -z "$as_dirs" || eval "mkdir $as_dirs"
21100   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21101 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21102    { (exit 1); exit 1; }; }; }
21103   ac_builddir=.
21104
21105 case "$ac_dir" in
21106 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21107 *)
21108   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21109   # A ".." for each directory in $ac_dir_suffix.
21110   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21111   case $ac_top_builddir_sub in
21112   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21113   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21114   esac ;;
21115 esac
21116 ac_abs_top_builddir=$ac_pwd
21117 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21118 # for backward compatibility:
21119 ac_top_builddir=$ac_top_build_prefix
21120
21121 case $srcdir in
21122   .)  # We are building in place.
21123     ac_srcdir=.
21124     ac_top_srcdir=$ac_top_builddir_sub
21125     ac_abs_top_srcdir=$ac_pwd ;;
21126   [\\/]* | ?:[\\/]* )  # Absolute name.
21127     ac_srcdir=$srcdir$ac_dir_suffix;
21128     ac_top_srcdir=$srcdir
21129     ac_abs_top_srcdir=$srcdir ;;
21130   *) # Relative name.
21131     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21132     ac_top_srcdir=$ac_top_build_prefix$srcdir
21133     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21134 esac
21135 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21136
21137
21138   case $ac_mode in
21139   :F)
21140   #
21141   # CONFIG_FILE
21142   #
21143
21144   case $INSTALL in
21145   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21146   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21147   esac
21148 _ACEOF
21149
21150 cat >>$CONFIG_STATUS <<\_ACEOF
21151 # If the template does not know about datarootdir, expand it.
21152 # FIXME: This hack should be removed a few years after 2.60.
21153 ac_datarootdir_hack=; ac_datarootdir_seen=
21154
21155 case `sed -n '/datarootdir/ {
21156   p
21157   q
21158 }
21159 /@datadir@/p
21160 /@docdir@/p
21161 /@infodir@/p
21162 /@localedir@/p
21163 /@mandir@/p
21164 ' $ac_file_inputs` in
21165 *datarootdir*) ac_datarootdir_seen=yes;;
21166 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21167   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21168 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21169 _ACEOF
21170 cat >>$CONFIG_STATUS <<_ACEOF
21171   ac_datarootdir_hack='
21172   s&@datadir@&$datadir&g
21173   s&@docdir@&$docdir&g
21174   s&@infodir@&$infodir&g
21175   s&@localedir@&$localedir&g
21176   s&@mandir@&$mandir&g
21177     s&\\\${datarootdir}&$datarootdir&g' ;;
21178 esac
21179 _ACEOF
21180
21181 # Neutralize VPATH when `$srcdir' = `.'.
21182 # Shell code in configure.ac might set extrasub.
21183 # FIXME: do we really want to maintain this feature?
21184 cat >>$CONFIG_STATUS <<_ACEOF
21185   sed "$ac_vpsub
21186 $extrasub
21187 _ACEOF
21188 cat >>$CONFIG_STATUS <<\_ACEOF
21189 :t
21190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21191 s&@configure_input@&$configure_input&;t t
21192 s&@top_builddir@&$ac_top_builddir_sub&;t t
21193 s&@srcdir@&$ac_srcdir&;t t
21194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21195 s&@top_srcdir@&$ac_top_srcdir&;t t
21196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21197 s&@builddir@&$ac_builddir&;t t
21198 s&@abs_builddir@&$ac_abs_builddir&;t t
21199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21200 s&@INSTALL@&$ac_INSTALL&;t t
21201 $ac_datarootdir_hack
21202 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21203
21204 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21205   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21206   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21207   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21208 which seems to be undefined.  Please make sure it is defined." >&5
21209 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21210 which seems to be undefined.  Please make sure it is defined." >&2;}
21211
21212   rm -f "$tmp/stdin"
21213   case $ac_file in
21214   -) cat "$tmp/out"; rm -f "$tmp/out";;
21215   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21216   esac
21217  ;;
21218   :H)
21219   #
21220   # CONFIG_HEADER
21221   #
21222 _ACEOF
21223
21224 # Transform confdefs.h into a sed script `conftest.defines', that
21225 # substitutes the proper values into config.h.in to produce config.h.
21226 rm -f conftest.defines conftest.tail
21227 # First, append a space to every undef/define line, to ease matching.
21228 echo 's/$/ /' >conftest.defines
21229 # Then, protect against being on the right side of a sed subst, or in
21230 # an unquoted here document, in config.status.  If some macros were
21231 # called several times there might be several #defines for the same
21232 # symbol, which is useless.  But do not sort them, since the last
21233 # AC_DEFINE must be honored.
21234 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21235 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21236 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21237 # PARAMS is the parameter list in the macro definition--in most cases, it's
21238 # just an empty string.
21239 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21240 ac_dB='\\)[      (].*,\\1define\\2'
21241 ac_dC=' '
21242 ac_dD=' ,'
21243
21244 uniq confdefs.h |
21245   sed -n '
21246         t rset
21247         :rset
21248         s/^[     ]*#[    ]*define[       ][      ]*//
21249         t ok
21250         d
21251         :ok
21252         s/[\\&,]/\\&/g
21253         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21254         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21255   ' >>conftest.defines
21256
21257 # Remove the space that was appended to ease matching.
21258 # Then replace #undef with comments.  This is necessary, for
21259 # example, in the case of _POSIX_SOURCE, which is predefined and required
21260 # on some systems where configure will not decide to define it.
21261 # (The regexp can be short, since the line contains either #define or #undef.)
21262 echo 's/ $//
21263 s,^[     #]*u.*,/* & */,' >>conftest.defines
21264
21265 # Break up conftest.defines:
21266 ac_max_sed_lines=50
21267
21268 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21269 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21270 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21271 # et cetera.
21272 ac_in='$ac_file_inputs'
21273 ac_out='"$tmp/out1"'
21274 ac_nxt='"$tmp/out2"'
21275
21276 while :
21277 do
21278   # Write a here document:
21279     cat >>$CONFIG_STATUS <<_ACEOF
21280     # First, check the format of the line:
21281     cat >"\$tmp/defines.sed" <<\\CEOF
21282 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21283 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21284 b
21285 :def
21286 _ACEOF
21287   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21288   echo 'CEOF
21289     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21290   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21291   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21292   grep . conftest.tail >/dev/null || break
21293   rm -f conftest.defines
21294   mv conftest.tail conftest.defines
21295 done
21296 rm -f conftest.defines conftest.tail
21297
21298 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21299 cat >>$CONFIG_STATUS <<\_ACEOF
21300   if test x"$ac_file" != x-; then
21301     echo "/* $configure_input  */" >"$tmp/config.h"
21302     cat "$ac_result" >>"$tmp/config.h"
21303     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21304       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21305 echo "$as_me: $ac_file is unchanged" >&6;}
21306     else
21307       rm -f $ac_file
21308       mv "$tmp/config.h" $ac_file
21309     fi
21310   else
21311     echo "/* $configure_input  */"
21312     cat "$ac_result"
21313   fi
21314   rm -f "$tmp/out12"
21315  ;;
21316
21317   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21318 echo "$as_me: executing $ac_file commands" >&6;}
21319  ;;
21320   esac
21321
21322
21323   case $ac_file$ac_mode in
21324     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21325    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21326     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21327    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21328     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21329    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21330     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21331    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21332     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21333    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21334     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21335    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21336     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21337    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21338     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21339    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21340     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21341    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21342     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21343    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21344     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21345    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21346     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21347    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21348     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21349    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21350
21351   esac
21352 done # for ac_tag
21353
21354
21355 { (exit 0); exit 0; }
21356 _ACEOF
21357 chmod +x $CONFIG_STATUS
21358 ac_clean_files=$ac_clean_files_save
21359
21360
21361 # configure is writing to config.log, and then calls config.status.
21362 # config.status does its own redirection, appending to config.log.
21363 # Unfortunately, on DOS this fails, as config.log is still kept open
21364 # by configure, so config.status won't be able to write to it; its
21365 # output is simply discarded.  So we exec the FD to /dev/null,
21366 # effectively closing config.log, so it can be properly (re)opened and
21367 # appended to by config.status.  When coming back to configure, we
21368 # need to make the FD available again.
21369 if test "$no_create" != yes; then
21370   ac_cs_success=:
21371   ac_config_status_args=
21372   test "$silent" = yes &&
21373     ac_config_status_args="$ac_config_status_args --quiet"
21374   exec 5>/dev/null
21375   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21376   exec 5>>config.log
21377   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21378   # would make configure fail if this is the last instruction.
21379   $ac_cs_success || { (exit 1); exit 1; }
21380 fi
21381
21382 #
21383 # CONFIG_SUBDIRS section.
21384 #
21385 if test "$no_recursion" != yes; then
21386
21387   # Remove --cache-file and --srcdir arguments so they do not pile up.
21388   ac_sub_configure_args=
21389   ac_prev=
21390   eval "set x $ac_configure_args"
21391   shift
21392   for ac_arg
21393   do
21394     if test -n "$ac_prev"; then
21395       ac_prev=
21396       continue
21397     fi
21398     case $ac_arg in
21399     -cache-file | --cache-file | --cache-fil | --cache-fi \
21400     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21401       ac_prev=cache_file ;;
21402     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21403     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21404     | --c=*)
21405       ;;
21406     --config-cache | -C)
21407       ;;
21408     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21409       ac_prev=srcdir ;;
21410     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21411       ;;
21412     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21413       ac_prev=prefix ;;
21414     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21415       ;;
21416     *)
21417       case $ac_arg in
21418       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21419       esac
21420       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21421     esac
21422   done
21423
21424   # Always prepend --prefix to ensure using the same prefix
21425   # in subdir configurations.
21426   ac_arg="--prefix=$prefix"
21427   case $ac_arg in
21428   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21429   esac
21430   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21431
21432   ac_popdir=`pwd`
21433   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21434
21435     # Do not complain, so a configure script can configure whichever
21436     # parts of a large source tree are present.
21437     test -d "$srcdir/$ac_dir" || continue
21438
21439     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21440     echo "$as_me:$LINENO: $ac_msg" >&5
21441     echo "$ac_msg" >&6
21442     { as_dir="$ac_dir"
21443   case $as_dir in #(
21444   -*) as_dir=./$as_dir;;
21445   esac
21446   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21447     as_dirs=
21448     while :; do
21449       case $as_dir in #(
21450       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21451       *) as_qdir=$as_dir;;
21452       esac
21453       as_dirs="'$as_qdir' $as_dirs"
21454       as_dir=`$as_dirname -- "$as_dir" ||
21455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21456          X"$as_dir" : 'X\(//\)[^/]' \| \
21457          X"$as_dir" : 'X\(//\)$' \| \
21458          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21459 echo X"$as_dir" |
21460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21461             s//\1/
21462             q
21463           }
21464           /^X\(\/\/\)[^/].*/{
21465             s//\1/
21466             q
21467           }
21468           /^X\(\/\/\)$/{
21469             s//\1/
21470             q
21471           }
21472           /^X\(\/\).*/{
21473             s//\1/
21474             q
21475           }
21476           s/.*/./; q'`
21477       test -d "$as_dir" && break
21478     done
21479     test -z "$as_dirs" || eval "mkdir $as_dirs"
21480   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21481 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21482    { (exit 1); exit 1; }; }; }
21483     ac_builddir=.
21484
21485 case "$ac_dir" in
21486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21487 *)
21488   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21489   # A ".." for each directory in $ac_dir_suffix.
21490   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21491   case $ac_top_builddir_sub in
21492   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21493   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21494   esac ;;
21495 esac
21496 ac_abs_top_builddir=$ac_pwd
21497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21498 # for backward compatibility:
21499 ac_top_builddir=$ac_top_build_prefix
21500
21501 case $srcdir in
21502   .)  # We are building in place.
21503     ac_srcdir=.
21504     ac_top_srcdir=$ac_top_builddir_sub
21505     ac_abs_top_srcdir=$ac_pwd ;;
21506   [\\/]* | ?:[\\/]* )  # Absolute name.
21507     ac_srcdir=$srcdir$ac_dir_suffix;
21508     ac_top_srcdir=$srcdir
21509     ac_abs_top_srcdir=$srcdir ;;
21510   *) # Relative name.
21511     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21512     ac_top_srcdir=$ac_top_build_prefix$srcdir
21513     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21514 esac
21515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21516
21517
21518     cd "$ac_dir"
21519
21520     # Check for guested configure; otherwise get Cygnus style configure.
21521     if test -f "$ac_srcdir/configure.gnu"; then
21522       ac_sub_configure=$ac_srcdir/configure.gnu
21523     elif test -f "$ac_srcdir/configure"; then
21524       ac_sub_configure=$ac_srcdir/configure
21525     elif test -f "$ac_srcdir/configure.in"; then
21526       # This should be Cygnus configure.
21527       ac_sub_configure=$ac_aux_dir/configure
21528     else
21529       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21530 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21531       ac_sub_configure=
21532     fi
21533
21534     # The recursion is here.
21535     if test -n "$ac_sub_configure"; then
21536       # Make the cache file name correct relative to the subdirectory.
21537       case $cache_file in
21538       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21539       *) # Relative name.
21540         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21541       esac
21542
21543       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21544 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21545       # The eval makes quoting arguments work.
21546       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21547            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21548         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21549 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21550    { (exit 1); exit 1; }; }
21551     fi
21552
21553     cd "$ac_popdir"
21554   done
21555 fi
21556