Add a 'normalize' method to the Triple class, which takes a mucked up
[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.8svn.
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-2010 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.8svn'
565 PACKAGE_STRING='llvm 2.8svn'
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 ENABLE_TIMESTAMPS
694 TARGETS_TO_BUILD
695 LLVM_ENUM_TARGETS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
699 ENABLE_CBE_PRINTF_A
700 CLANGPATH
701 CLANGXXPATH
702 ENABLE_BUILT_CLANG
703 OPTIMIZE_OPTION
704 EXTRA_OPTIONS
705 BINUTILS_INCDIR
706 ENABLE_LLVMC_DYNAMIC
707 ENABLE_LLVMC_DYNAMIC_PLUGINS
708 CXX
709 CXXFLAGS
710 ac_ct_CXX
711 NM
712 ifGNUmake
713 LN_S
714 CMP
715 CP
716 DATE
717 FIND
718 MKDIR
719 MV
720 RANLIB
721 AR
722 RM
723 SED
724 TAR
725 BINPWD
726 GRAPHVIZ
727 DOT
728 FDP
729 NEATO
730 TWOPI
731 CIRCO
732 GV
733 DOTTY
734 PERL
735 HAVE_PERL
736 INSTALL_PROGRAM
737 INSTALL_SCRIPT
738 INSTALL_DATA
739 BZIP2
740 CAT
741 DOXYGEN
742 GROFF
743 GZIP
744 POD2HTML
745 POD2MAN
746 PDFROFF
747 RUNTEST
748 TCLSH
749 ZIP
750 OCAMLC
751 OCAMLOPT
752 OCAMLDEP
753 OCAMLDOC
754 GAS
755 HAVE_LINK_VERSION_SCRIPT
756 INSTALL_LTDL_TRUE
757 INSTALL_LTDL_FALSE
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
760 LIBADD_DL
761 LLVMGCCCOMMAND
762 LLVMGXXCOMMAND
763 LLVMGCC
764 LLVMGXX
765 LLVMCC_OPTION
766 NO_VARIADIC_MACROS
767 NO_MISSING_FIELD_INITIALIZERS
768 USE_UDIS86
769 USE_OPROFILE
770 HAVE_PTHREAD
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 LLVMCC1
774 LLVMCC1PLUS
775 LLVMGCCDIR
776 LLVMGCC_LANGS
777 SHLIBEXT
778 SHLIBPATH_VAR
779 LLVM_PREFIX
780 LLVM_BINDIR
781 LLVM_LIBDIR
782 LLVM_DATADIR
783 LLVM_DOCSDIR
784 LLVM_ETCDIR
785 LLVM_INCLUDEDIR
786 LLVM_INFODIR
787 LLVM_MANDIR
788 LLVM_CONFIGTIME
789 BINDINGS_TO_BUILD
790 ALL_BINDINGS
791 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 LIBOBJS
796 LTLIBOBJS'
797 ac_subst_files=''
798       ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 CPPFLAGS
805 CPP
806 CXX
807 CXXFLAGS
808 CCC'
809 ac_subdirs_all='projects/llvm-gcc
810 projects/test-suite
811 projects/llvm-test
812 projects/poolalloc
813 projects/llvm-poolalloc
814 projects/sample
815 projects/privbracket
816 projects/llvm-stacker
817 projects/llvm-reopt
818 projects/llvm-java
819 projects/llvm-tv
820 projects/safecode
821 projects/llvm-kernel'
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873   # If the previous option needs an argument, assign it.
874   if test -n "$ac_prev"; then
875     eval $ac_prev=\$ac_option
876     ac_prev=
877     continue
878   fi
879
880   case $ac_option in
881   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882   *)    ac_optarg=yes ;;
883   esac
884
885   # Accept the important Cygnus configure options, so we can diagnose typos.
886
887   case $ac_dashdash$ac_option in
888   --)
889     ac_dashdash=yes ;;
890
891   -bindir | --bindir | --bindi | --bind | --bin | --bi)
892     ac_prev=bindir ;;
893   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894     bindir=$ac_optarg ;;
895
896   -build | --build | --buil | --bui | --bu)
897     ac_prev=build_alias ;;
898   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899     build_alias=$ac_optarg ;;
900
901   -cache-file | --cache-file | --cache-fil | --cache-fi \
902   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903     ac_prev=cache_file ;;
904   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906     cache_file=$ac_optarg ;;
907
908   --config-cache | -C)
909     cache_file=config.cache ;;
910
911   -datadir | --datadir | --datadi | --datad)
912     ac_prev=datadir ;;
913   -datadir=* | --datadir=* | --datadi=* | --datad=*)
914     datadir=$ac_optarg ;;
915
916   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917   | --dataroo | --dataro | --datar)
918     ac_prev=datarootdir ;;
919   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921     datarootdir=$ac_optarg ;;
922
923   -disable-* | --disable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=no ;;
931
932   -docdir | --docdir | --docdi | --doc | --do)
933     ac_prev=docdir ;;
934   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935     docdir=$ac_optarg ;;
936
937   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938     ac_prev=dvidir ;;
939   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940     dvidir=$ac_optarg ;;
941
942   -enable-* | --enable-*)
943     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944     # Reject names that are not valid shell variable names.
945     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947    { (exit 1); exit 1; }; }
948     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949     eval enable_$ac_feature=\$ac_optarg ;;
950
951   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953   | --exec | --exe | --ex)
954     ac_prev=exec_prefix ;;
955   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957   | --exec=* | --exe=* | --ex=*)
958     exec_prefix=$ac_optarg ;;
959
960   -gas | --gas | --ga | --g)
961     # Obsolete; use --with-gas.
962     with_gas=yes ;;
963
964   -help | --help | --hel | --he | -h)
965     ac_init_help=long ;;
966   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967     ac_init_help=recursive ;;
968   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969     ac_init_help=short ;;
970
971   -host | --host | --hos | --ho)
972     ac_prev=host_alias ;;
973   -host=* | --host=* | --hos=* | --ho=*)
974     host_alias=$ac_optarg ;;
975
976   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977     ac_prev=htmldir ;;
978   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979   | --ht=*)
980     htmldir=$ac_optarg ;;
981
982   -includedir | --includedir | --includedi | --included | --include \
983   | --includ | --inclu | --incl | --inc)
984     ac_prev=includedir ;;
985   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986   | --includ=* | --inclu=* | --incl=* | --inc=*)
987     includedir=$ac_optarg ;;
988
989   -infodir | --infodir | --infodi | --infod | --info | --inf)
990     ac_prev=infodir ;;
991   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992     infodir=$ac_optarg ;;
993
994   -libdir | --libdir | --libdi | --libd)
995     ac_prev=libdir ;;
996   -libdir=* | --libdir=* | --libdi=* | --libd=*)
997     libdir=$ac_optarg ;;
998
999   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000   | --libexe | --libex | --libe)
1001     ac_prev=libexecdir ;;
1002   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003   | --libexe=* | --libex=* | --libe=*)
1004     libexecdir=$ac_optarg ;;
1005
1006   -localedir | --localedir | --localedi | --localed | --locale)
1007     ac_prev=localedir ;;
1008   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009     localedir=$ac_optarg ;;
1010
1011   -localstatedir | --localstatedir | --localstatedi | --localstated \
1012   | --localstate | --localstat | --localsta | --localst | --locals)
1013     ac_prev=localstatedir ;;
1014   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016     localstatedir=$ac_optarg ;;
1017
1018   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019     ac_prev=mandir ;;
1020   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021     mandir=$ac_optarg ;;
1022
1023   -nfp | --nfp | --nf)
1024     # Obsolete; use --without-fp.
1025     with_fp=no ;;
1026
1027   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028   | --no-cr | --no-c | -n)
1029     no_create=yes ;;
1030
1031   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033     no_recursion=yes ;;
1034
1035   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037   | --oldin | --oldi | --old | --ol | --o)
1038     ac_prev=oldincludedir ;;
1039   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042     oldincludedir=$ac_optarg ;;
1043
1044   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045     ac_prev=prefix ;;
1046   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047     prefix=$ac_optarg ;;
1048
1049   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050   | --program-pre | --program-pr | --program-p)
1051     ac_prev=program_prefix ;;
1052   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054     program_prefix=$ac_optarg ;;
1055
1056   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057   | --program-suf | --program-su | --program-s)
1058     ac_prev=program_suffix ;;
1059   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061     program_suffix=$ac_optarg ;;
1062
1063   -program-transform-name | --program-transform-name \
1064   | --program-transform-nam | --program-transform-na \
1065   | --program-transform-n | --program-transform- \
1066   | --program-transform | --program-transfor \
1067   | --program-transfo | --program-transf \
1068   | --program-trans | --program-tran \
1069   | --progr-tra | --program-tr | --program-t)
1070     ac_prev=program_transform_name ;;
1071   -program-transform-name=* | --program-transform-name=* \
1072   | --program-transform-nam=* | --program-transform-na=* \
1073   | --program-transform-n=* | --program-transform-=* \
1074   | --program-transform=* | --program-transfor=* \
1075   | --program-transfo=* | --program-transf=* \
1076   | --program-trans=* | --program-tran=* \
1077   | --progr-tra=* | --program-tr=* | --program-t=*)
1078     program_transform_name=$ac_optarg ;;
1079
1080   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081     ac_prev=pdfdir ;;
1082   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083     pdfdir=$ac_optarg ;;
1084
1085   -psdir | --psdir | --psdi | --psd | --ps)
1086     ac_prev=psdir ;;
1087   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088     psdir=$ac_optarg ;;
1089
1090   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091   | -silent | --silent | --silen | --sile | --sil)
1092     silent=yes ;;
1093
1094   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095     ac_prev=sbindir ;;
1096   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097   | --sbi=* | --sb=*)
1098     sbindir=$ac_optarg ;;
1099
1100   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102   | --sharedst | --shareds | --shared | --share | --shar \
1103   | --sha | --sh)
1104     ac_prev=sharedstatedir ;;
1105   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108   | --sha=* | --sh=*)
1109     sharedstatedir=$ac_optarg ;;
1110
1111   -site | --site | --sit)
1112     ac_prev=site ;;
1113   -site=* | --site=* | --sit=*)
1114     site=$ac_optarg ;;
1115
1116   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117     ac_prev=srcdir ;;
1118   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119     srcdir=$ac_optarg ;;
1120
1121   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122   | --syscon | --sysco | --sysc | --sys | --sy)
1123     ac_prev=sysconfdir ;;
1124   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126     sysconfdir=$ac_optarg ;;
1127
1128   -target | --target | --targe | --targ | --tar | --ta | --t)
1129     ac_prev=target_alias ;;
1130   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131     target_alias=$ac_optarg ;;
1132
1133   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134     verbose=yes ;;
1135
1136   -version | --version | --versio | --versi | --vers | -V)
1137     ac_init_version=: ;;
1138
1139   -with-* | --with-*)
1140     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143       { echo "$as_me: error: invalid package name: $ac_package" >&2
1144    { (exit 1); exit 1; }; }
1145     ac_package=`echo $ac_package| sed 's/-/_/g'`
1146     eval with_$ac_package=\$ac_optarg ;;
1147
1148   -without-* | --without-*)
1149     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150     # Reject names that are not valid shell variable names.
1151     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152       { echo "$as_me: error: invalid package name: $ac_package" >&2
1153    { (exit 1); exit 1; }; }
1154     ac_package=`echo $ac_package | sed 's/-/_/g'`
1155     eval with_$ac_package=no ;;
1156
1157   --x)
1158     # Obsolete; use --with-x.
1159     with_x=yes ;;
1160
1161   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162   | --x-incl | --x-inc | --x-in | --x-i)
1163     ac_prev=x_includes ;;
1164   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166     x_includes=$ac_optarg ;;
1167
1168   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170     ac_prev=x_libraries ;;
1171   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173     x_libraries=$ac_optarg ;;
1174
1175   -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177    { (exit 1); exit 1; }; }
1178     ;;
1179
1180   *=*)
1181     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185    { (exit 1); exit 1; }; }
1186     eval $ac_envvar=\$ac_optarg
1187     export $ac_envvar ;;
1188
1189   *)
1190     # FIXME: should be removed in autoconf 3.0.
1191     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195     ;;
1196
1197   esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202   { echo "$as_me: error: missing argument to $ac_option" >&2
1203    { (exit 1); exit 1; }; }
1204 fi
1205
1206 # Be sure to have absolute directory names.
1207 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208                 datadir sysconfdir sharedstatedir localstatedir includedir \
1209                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210                 libdir localedir mandir
1211 do
1212   eval ac_val=\$$ac_var
1213   case $ac_val in
1214     [\\/$]* | ?:[\\/]* )  continue;;
1215     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216   esac
1217   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218    { (exit 1); exit 1; }; }
1219 done
1220
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1227
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230   if test "x$build_alias" = x; then
1231     cross_compiling=maybe
1232     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233     If a cross compiler is detected then cross compile mode will be used." >&2
1234   elif test "x$build_alias" != "x$host_alias"; then
1235     cross_compiling=yes
1236   fi
1237 fi
1238
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242 test "$silent" = yes && exec 6>/dev/null
1243
1244
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248   { echo "$as_me: error: Working directory cannot be determined" >&2
1249    { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251   { echo "$as_me: error: pwd does not report name of working directory" >&2
1252    { (exit 1); exit 1; }; }
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257   ac_srcdir_defaulted=yes
1258   # Try the directory containing this script, then the parent directory.
1259   ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261          X"$0" : 'X\(//\)[^/]' \| \
1262          X"$0" : 'X\(//\)$' \| \
1263          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 echo X"$0" |
1265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)[^/].*/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\/\)$/{
1274             s//\1/
1275             q
1276           }
1277           /^X\(\/\).*/{
1278             s//\1/
1279             q
1280           }
1281           s/.*/./; q'`
1282   srcdir=$ac_confdir
1283   if test ! -r "$srcdir/$ac_unique_file"; then
1284     srcdir=..
1285   fi
1286 else
1287   ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292    { (exit 1); exit 1; }; }
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297    { (exit 1); exit 1; }; }
1298         pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301   srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_env_${ac_var}_value=\$${ac_var}
1312   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320   # Omit some internal or obsolete options to make the list less imposing.
1321   # This message is too long to be a string in the A/UX 3.1 sh.
1322   cat <<_ACEOF
1323 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333   -h, --help              display this help and exit
1334       --help=short        display options specific to this package
1335       --help=recursive    display the short help of all the included packages
1336   -V, --version           display version information and exit
1337   -q, --quiet, --silent   do not print \`checking...' messages
1338       --cache-file=FILE   cache test results in FILE [disabled]
1339   -C, --config-cache      alias for \`--cache-file=config.cache'
1340   -n, --no-create         do not create output files
1341       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344   --prefix=PREFIX         install architecture-independent files in PREFIX
1345                           [$ac_default_prefix]
1346   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347                           [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357   --bindir=DIR           user executables [EPREFIX/bin]
1358   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1359   --libexecdir=DIR       program executables [EPREFIX/libexec]
1360   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1361   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1362   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1363   --libdir=DIR           object code libraries [EPREFIX/lib]
1364   --includedir=DIR       C header files [PREFIX/include]
1365   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1366   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1367   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1368   --infodir=DIR          info documentation [DATAROOTDIR/info]
1369   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1370   --mandir=DIR           man documentation [DATAROOTDIR/man]
1371   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1372   --htmldir=DIR          html documentation [DOCDIR]
1373   --dvidir=DIR           dvi documentation [DOCDIR]
1374   --pdfdir=DIR           pdf documentation [DOCDIR]
1375   --psdir=DIR            ps documentation [DOCDIR]
1376 _ACEOF
1377
1378   cat <<\_ACEOF
1379
1380 System types:
1381   --build=BUILD     configure for building on BUILD [guessed]
1382   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1383   --target=TARGET   configure for building compilers for TARGET [HOST]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388   case $ac_init_help in
1389      short | recursive ) echo "Configuration of llvm 2.8svn:";;
1390    esac
1391   cat <<\_ACEOF
1392
1393 Optional Features:
1394   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396   --enable-optimized      Compile with optimizations enabled (default is NO)
1397   --enable-profiling      Compile with profiling enabled (default is NO)
1398   --enable-assertions     Compile with assertion checks enabled (default is
1399                           YES)
1400   --enable-expensive-checks
1401                           Compile with expensive debug checks enabled (default
1402                           is NO)
1403   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1404                           NO)
1405   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1406                           optimization is on and YES if it's off)
1407   --enable-jit            Enable Just In Time Compiling (default is YES)
1408   --enable-doxygen        Build doxygen documentation (default is NO)
1409   --enable-threads        Use threads if available (default is YES)
1410   --enable-pic            Build LLVM with Position Independent Code (default
1411                           is YES)
1412   --enable-shared         Build a shared library and link tools against it
1413                           (default is NO)
1414   --enable-timestamps     Enable embedding timestamp information in build
1415                           (default is YES)
1416   --enable-targets        Build specific host targets: all or
1417                           target1,target2,... Valid targets are: host, x86,
1418                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1420                           and cpp (default=all)
1421   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1422                           %a (default is YES)
1423   --enable-bindings       Build specific language bindings:
1424                           all,auto,none,{binding-name} (default=auto)
1425   --enable-libffi         Check for the presence of libffi (default is NO)
1426   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1427                           Win32)
1428   --enable-llvmc-dynamic-plugins
1429                           Enable dynamic LLVMC plugins (default is YES)
1430   --enable-ltdl-install   install libltdl
1431
1432 Optional Packages:
1433   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1434   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1435   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1436                           searches PATH)
1437   --with-llvmgcc          Specify location of llvm-gcc driver (default
1438                           searches PATH)
1439   --with-llvmgxx          Specify location of llvm-g++ driver (default
1440                           searches PATH)
1441   --with-clang            Specify location of clang compiler (default is
1442                           --with-built-clang)
1443   --with-built-clang      Use the compiled Clang as the LLVM compiler
1444                           (default=check)
1445   --with-optimize-option  Select the compiler options to use for optimized
1446                           builds
1447   --with-extra-options    Specify additional options to compile LLVM with
1448   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1449                           is stdlib)
1450   --with-c-include-dirs   Colon separated list of directories clang will
1451                           search for headers
1452   --with-cxx-include-root Directory with the libstdc++ headers.
1453   --with-cxx-include-arch Architecture of the libstdc++ headers.
1454   --with-cxx-include-32bit-dir
1455                           32 bit multilib dir.
1456   --with-cxx-include-64bit-dir
1457                           64 bit multilib directory.
1458   --with-binutils-include Specify path to binutils/include/ containing
1459                           plugin-api.h file for gold plugin.
1460   --with-tclinclude       directory where tcl headers are
1461   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1462                           clang, or none; default=check)
1463   --with-udis86=<path>    Use udis86 external x86 disassembler library
1464   --with-oprofile=<prefix>
1465                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1466
1467 Some influential environment variables:
1468   CC          C compiler command
1469   CFLAGS      C compiler flags
1470   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1471               nonstandard directory <lib dir>
1472   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473               you have headers in a nonstandard directory <include dir>
1474   CPP         C preprocessor
1475   CXX         C++ compiler command
1476   CXXFLAGS    C++ compiler flags
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to <llvmbugs@cs.uiuc.edu>.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487   # If there are subdirs, report their specific --help.
1488   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489     test -d "$ac_dir" || continue
1490     ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1496   # A ".." for each directory in $ac_dir_suffix.
1497   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1498   case $ac_top_builddir_sub in
1499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501   esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509   .)  # We are building in place.
1510     ac_srcdir=.
1511     ac_top_srcdir=$ac_top_builddir_sub
1512     ac_abs_top_srcdir=$ac_pwd ;;
1513   [\\/]* | ?:[\\/]* )  # Absolute name.
1514     ac_srcdir=$srcdir$ac_dir_suffix;
1515     ac_top_srcdir=$srcdir
1516     ac_abs_top_srcdir=$srcdir ;;
1517   *) # Relative name.
1518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519     ac_top_srcdir=$ac_top_build_prefix$srcdir
1520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524     cd "$ac_dir" || { ac_status=$?; continue; }
1525     # Check for guested configure.
1526     if test -f "$ac_srcdir/configure.gnu"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529     elif test -f "$ac_srcdir/configure"; then
1530       echo &&
1531       $SHELL "$ac_srcdir/configure" --help=recursive
1532     else
1533       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534     fi || ac_status=$?
1535     cd "$ac_pwd" || { ac_status=$?; break; }
1536   done
1537 fi
1538
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541   cat <<\_ACEOF
1542 llvm configure 2.8svn
1543 generated by GNU Autoconf 2.60
1544
1545 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1546 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549
1550 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1551 _ACEOF
1552   exit
1553 fi
1554 cat >config.log <<_ACEOF
1555 This file contains any messages produced by compilers while
1556 running configure, to aid debugging if configure makes a mistake.
1557
1558 It was created by llvm $as_me 2.8svn, which was
1559 generated by GNU Autoconf 2.60.  Invocation command line was
1560
1561   $ $0 $@
1562
1563 _ACEOF
1564 exec 5>>config.log
1565 {
1566 cat <<_ASUNAME
1567 ## --------- ##
1568 ## Platform. ##
1569 ## --------- ##
1570
1571 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1572 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1573 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1574 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1575 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576
1577 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1578 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1579
1580 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1581 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1582 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1583 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1584 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1585 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1586 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1587
1588 _ASUNAME
1589
1590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591 for as_dir in $PATH
1592 do
1593   IFS=$as_save_IFS
1594   test -z "$as_dir" && as_dir=.
1595   echo "PATH: $as_dir"
1596 done
1597 IFS=$as_save_IFS
1598
1599 } >&5
1600
1601 cat >&5 <<_ACEOF
1602
1603
1604 ## ----------- ##
1605 ## Core tests. ##
1606 ## ----------- ##
1607
1608 _ACEOF
1609
1610
1611 # Keep a trace of the command line.
1612 # Strip out --no-create and --no-recursion so they do not pile up.
1613 # Strip out --silent because we don't want to record it for future runs.
1614 # Also quote any args containing shell meta-characters.
1615 # Make two passes to allow for proper duplicate-argument suppression.
1616 ac_configure_args=
1617 ac_configure_args0=
1618 ac_configure_args1=
1619 ac_must_keep_next=false
1620 for ac_pass in 1 2
1621 do
1622   for ac_arg
1623   do
1624     case $ac_arg in
1625     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1626     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627     | -silent | --silent | --silen | --sile | --sil)
1628       continue ;;
1629     *\'*)
1630       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631     esac
1632     case $ac_pass in
1633     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1634     2)
1635       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1636       if test $ac_must_keep_next = true; then
1637         ac_must_keep_next=false # Got value, back to normal.
1638       else
1639         case $ac_arg in
1640           *=* | --config-cache | -C | -disable-* | --disable-* \
1641           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1642           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1643           | -with-* | --with-* | -without-* | --without-* | --x)
1644             case "$ac_configure_args0 " in
1645               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646             esac
1647             ;;
1648           -* ) ac_must_keep_next=true ;;
1649         esac
1650       fi
1651       ac_configure_args="$ac_configure_args '$ac_arg'"
1652       ;;
1653     esac
1654   done
1655 done
1656 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1657 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1658
1659 # When interrupted or exit'd, cleanup temporary files, and complete
1660 # config.log.  We remove comments because anyway the quotes in there
1661 # would cause problems or look ugly.
1662 # WARNING: Use '\'' to represent an apostrophe within the trap.
1663 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1664 trap 'exit_status=$?
1665   # Save into config.log some information that might help in debugging.
1666   {
1667     echo
1668
1669     cat <<\_ASBOX
1670 ## ---------------- ##
1671 ## Cache variables. ##
1672 ## ---------------- ##
1673 _ASBOX
1674     echo
1675     # The following way of writing the cache mishandles newlines in values,
1676 (
1677   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1678     eval ac_val=\$$ac_var
1679     case $ac_val in #(
1680     *${as_nl}*)
1681       case $ac_var in #(
1682       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1683 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684       esac
1685       case $ac_var in #(
1686       _ | IFS | as_nl) ;; #(
1687       *) $as_unset $ac_var ;;
1688       esac ;;
1689     esac
1690   done
1691   (set) 2>&1 |
1692     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693     *${as_nl}ac_space=\ *)
1694       sed -n \
1695         "s/'\''/'\''\\\\'\'''\''/g;
1696           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697       ;; #(
1698     *)
1699       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1700       ;;
1701     esac |
1702     sort
1703 )
1704     echo
1705
1706     cat <<\_ASBOX
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1710 _ASBOX
1711     echo
1712     for ac_var in $ac_subst_vars
1713     do
1714       eval ac_val=\$$ac_var
1715       case $ac_val in
1716       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717       esac
1718       echo "$ac_var='\''$ac_val'\''"
1719     done | sort
1720     echo
1721
1722     if test -n "$ac_subst_files"; then
1723       cat <<\_ASBOX
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1727 _ASBOX
1728       echo
1729       for ac_var in $ac_subst_files
1730       do
1731         eval ac_val=\$$ac_var
1732         case $ac_val in
1733         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734         esac
1735         echo "$ac_var='\''$ac_val'\''"
1736       done | sort
1737       echo
1738     fi
1739
1740     if test -s confdefs.h; then
1741       cat <<\_ASBOX
1742 ## ----------- ##
1743 ## confdefs.h. ##
1744 ## ----------- ##
1745 _ASBOX
1746       echo
1747       cat confdefs.h
1748       echo
1749     fi
1750     test "$ac_signal" != 0 &&
1751       echo "$as_me: caught signal $ac_signal"
1752     echo "$as_me: exit $exit_status"
1753   } >&5
1754   rm -f core *.core core.conftest.* &&
1755     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756     exit $exit_status
1757 ' 0
1758 for ac_signal in 1 2 13 15; do
1759   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1760 done
1761 ac_signal=0
1762
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1765
1766 # Predefined preprocessor variables.
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790 _ACEOF
1791
1792
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -n "$CONFIG_SITE"; then
1796   set x "$CONFIG_SITE"
1797 elif test "x$prefix" != xNONE; then
1798   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 else
1800   set x "$ac_default_prefix/share/config.site" \
1801         "$ac_default_prefix/etc/config.site"
1802 fi
1803 shift
1804 for ac_site_file
1805 do
1806   if test -r "$ac_site_file"; then
1807     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1808 echo "$as_me: loading site script $ac_site_file" >&6;}
1809     sed 's/^/| /' "$ac_site_file" >&5
1810     . "$ac_site_file"
1811   fi
1812 done
1813
1814 if test -r "$cache_file"; then
1815   # Some versions of bash will fail to source /dev/null (special
1816   # files actually), so we avoid doing that.
1817   if test -f "$cache_file"; then
1818     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1819 echo "$as_me: loading cache $cache_file" >&6;}
1820     case $cache_file in
1821       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822       *)                      . "./$cache_file";;
1823     esac
1824   fi
1825 else
1826   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1827 echo "$as_me: creating cache $cache_file" >&6;}
1828   >$cache_file
1829 fi
1830
1831 # Check that the precious variables saved in the cache have kept the same
1832 # value.
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836   eval ac_new_set=\$ac_env_${ac_var}_set
1837   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838   eval ac_new_val=\$ac_env_${ac_var}_value
1839   case $ac_old_set,$ac_new_set in
1840     set,)
1841       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843       ac_cache_corrupted=: ;;
1844     ,set)
1845       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1846 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847       ac_cache_corrupted=: ;;
1848     ,);;
1849     *)
1850       if test "x$ac_old_val" != "x$ac_new_val"; then
1851         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1854 echo "$as_me:   former value:  $ac_old_val" >&2;}
1855         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1856 echo "$as_me:   current value: $ac_new_val" >&2;}
1857         ac_cache_corrupted=:
1858       fi;;
1859   esac
1860   # Pass precious variables to config.status.
1861   if test "$ac_new_set" = set; then
1862     case $ac_new_val in
1863     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1864     *) ac_arg=$ac_var=$ac_new_val ;;
1865     esac
1866     case " $ac_configure_args " in
1867       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1868       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1869     esac
1870   fi
1871 done
1872 if $ac_cache_corrupted; then
1873   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1874 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1875   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1876 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1877    { (exit 1); exit 1; }; }
1878 fi
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904 ac_ext=c
1905 ac_cpp='$CPP $CPPFLAGS'
1906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1909
1910
1911
1912 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1913
1914
1915
1916
1917
1918
1919
1920 ac_aux_dir=
1921 for ac_dir in autoconf "$srcdir"/autoconf; do
1922   if test -f "$ac_dir/install-sh"; then
1923     ac_aux_dir=$ac_dir
1924     ac_install_sh="$ac_aux_dir/install-sh -c"
1925     break
1926   elif test -f "$ac_dir/install.sh"; then
1927     ac_aux_dir=$ac_dir
1928     ac_install_sh="$ac_aux_dir/install.sh -c"
1929     break
1930   elif test -f "$ac_dir/shtool"; then
1931     ac_aux_dir=$ac_dir
1932     ac_install_sh="$ac_aux_dir/shtool install -c"
1933     break
1934   fi
1935 done
1936 if test -z "$ac_aux_dir"; then
1937   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939    { (exit 1); exit 1; }; }
1940 fi
1941
1942 # These three variables are undocumented and unsupported,
1943 # and are intended to be withdrawn in a future Autoconf release.
1944 # They can cause serious problems if a builder's source tree is in a directory
1945 # whose full name contains unusual characters.
1946 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1947 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1948 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1949
1950
1951
1952 if test ${srcdir} != "." ; then
1953   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1954     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956    { (exit 1); exit 1; }; }
1957   fi
1958 fi
1959
1960
1961
1962 if test -d ${srcdir}/projects/llvm-gcc ; then
1963   subdirs="$subdirs projects/llvm-gcc"
1964
1965 fi
1966
1967 if test -d ${srcdir}/projects/test-suite ; then
1968   subdirs="$subdirs projects/test-suite"
1969
1970 fi
1971
1972 if test -d ${srcdir}/projects/llvm-test ; then
1973   subdirs="$subdirs projects/llvm-test"
1974
1975 fi
1976
1977 if test -d ${srcdir}/projects/poolalloc ; then
1978   subdirs="$subdirs projects/poolalloc"
1979
1980 fi
1981
1982 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1983   subdirs="$subdirs projects/llvm-poolalloc"
1984
1985 fi
1986
1987 for i in `ls ${srcdir}/projects`
1988 do
1989   if test -d ${srcdir}/projects/${i} ; then
1990     case ${i} in
1991       sample)       subdirs="$subdirs projects/sample"
1992     ;;
1993       privbracket)  subdirs="$subdirs projects/privbracket"
1994  ;;
1995       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1996  ;;
1997       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1998 ;;
1999       llvm-java)    subdirs="$subdirs projects/llvm-java"
2000  ;;
2001       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2002    ;;
2003       safecode)     subdirs="$subdirs projects/safecode"
2004  ;;
2005       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2006  ;;
2007       llvm-gcc)       ;;
2008       test-suite)     ;;
2009       llvm-test)      ;;
2010       poolalloc)      ;;
2011       llvm-poolalloc) ;;
2012       *)
2013         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2014 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2015         ;;
2016     esac
2017   fi
2018 done
2019
2020
2021 # Make sure we can run config.sub.
2022 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2023   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2024 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2025    { (exit 1); exit 1; }; }
2026
2027 { echo "$as_me:$LINENO: checking build system type" >&5
2028 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2029 if test "${ac_cv_build+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   ac_build_alias=$build_alias
2033 test "x$ac_build_alias" = x &&
2034   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2035 test "x$ac_build_alias" = x &&
2036   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2037 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2038    { (exit 1); exit 1; }; }
2039 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2040   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2041 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2042    { (exit 1); exit 1; }; }
2043
2044 fi
2045 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2046 echo "${ECHO_T}$ac_cv_build" >&6; }
2047 case $ac_cv_build in
2048 *-*-*) ;;
2049 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2050 echo "$as_me: error: invalid value of canonical build" >&2;}
2051    { (exit 1); exit 1; }; };;
2052 esac
2053 build=$ac_cv_build
2054 ac_save_IFS=$IFS; IFS='-'
2055 set x $ac_cv_build
2056 shift
2057 build_cpu=$1
2058 build_vendor=$2
2059 shift; shift
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2062 build_os=$*
2063 IFS=$ac_save_IFS
2064 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2065
2066
2067 { echo "$as_me:$LINENO: checking host system type" >&5
2068 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2069 if test "${ac_cv_host+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   if test "x$host_alias" = x; then
2073   ac_cv_host=$ac_cv_build
2074 else
2075   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2076     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2078    { (exit 1); exit 1; }; }
2079 fi
2080
2081 fi
2082 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2083 echo "${ECHO_T}$ac_cv_host" >&6; }
2084 case $ac_cv_host in
2085 *-*-*) ;;
2086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2087 echo "$as_me: error: invalid value of canonical host" >&2;}
2088    { (exit 1); exit 1; }; };;
2089 esac
2090 host=$ac_cv_host
2091 ac_save_IFS=$IFS; IFS='-'
2092 set x $ac_cv_host
2093 shift
2094 host_cpu=$1
2095 host_vendor=$2
2096 shift; shift
2097 # Remember, the first character of IFS is used to create $*,
2098 # except with old shells:
2099 host_os=$*
2100 IFS=$ac_save_IFS
2101 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2102
2103
2104 { echo "$as_me:$LINENO: checking target system type" >&5
2105 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2106 if test "${ac_cv_target+set}" = set; then
2107   echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109   if test "x$target_alias" = x; then
2110   ac_cv_target=$ac_cv_host
2111 else
2112   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2113     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2114 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2115    { (exit 1); exit 1; }; }
2116 fi
2117
2118 fi
2119 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2120 echo "${ECHO_T}$ac_cv_target" >&6; }
2121 case $ac_cv_target in
2122 *-*-*) ;;
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2124 echo "$as_me: error: invalid value of canonical target" >&2;}
2125    { (exit 1); exit 1; }; };;
2126 esac
2127 target=$ac_cv_target
2128 ac_save_IFS=$IFS; IFS='-'
2129 set x $ac_cv_target
2130 shift
2131 target_cpu=$1
2132 target_vendor=$2
2133 shift; shift
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2136 target_os=$*
2137 IFS=$ac_save_IFS
2138 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2139
2140
2141 # The aliases save the names the user supplied, while $host etc.
2142 # will get canonicalized.
2143 test -n "$target_alias" &&
2144   test "$program_prefix$program_suffix$program_transform_name" = \
2145     NONENONEs,x,x, &&
2146   program_prefix=${target_alias}-
2147
2148 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2149 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2150 if test "${llvm_cv_os_type+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   case $host in
2154   *-*-aix*)
2155     llvm_cv_link_all_option="-Wl,--whole-archive"
2156     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157     llvm_cv_os_type="AIX"
2158     llvm_cv_platform_type="Unix" ;;
2159   *-*-irix*)
2160     llvm_cv_link_all_option="-Wl,--whole-archive"
2161     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162     llvm_cv_os_type="IRIX"
2163     llvm_cv_platform_type="Unix" ;;
2164   *-*-cygwin*)
2165     llvm_cv_link_all_option="-Wl,--whole-archive"
2166     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167     llvm_cv_os_type="Cygwin"
2168     llvm_cv_platform_type="Unix" ;;
2169   *-*-darwin*)
2170     llvm_cv_link_all_option="-Wl,-all_load"
2171     llvm_cv_no_link_all_option="-Wl,-noall_load"
2172     llvm_cv_os_type="Darwin"
2173     llvm_cv_platform_type="Unix" ;;
2174   *-*-minix*)
2175     llvm_cv_link_all_option="-Wl,-all_load"
2176     llvm_cv_no_link_all_option="-Wl,-noall_load"
2177     llvm_cv_os_type="Minix"
2178     llvm_cv_platform_type="Unix" ;;
2179   *-*-freebsd*)
2180     llvm_cv_link_all_option="-Wl,--whole-archive"
2181     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182     llvm_cv_os_type="FreeBSD"
2183     llvm_cv_platform_type="Unix" ;;
2184   *-*-openbsd*)
2185     llvm_cv_link_all_option="-Wl,--whole-archive"
2186     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187     llvm_cv_os_type="OpenBSD"
2188     llvm_cv_platform_type="Unix" ;;
2189   *-*-netbsd*)
2190     llvm_cv_link_all_option="-Wl,--whole-archive"
2191     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192     llvm_cv_os_type="NetBSD"
2193     llvm_cv_platform_type="Unix" ;;
2194   *-*-dragonfly*)
2195     llvm_cv_link_all_option="-Wl,--whole-archive"
2196     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197     llvm_cv_os_type="DragonFly"
2198     llvm_cv_platform_type="Unix" ;;
2199   *-*-hpux*)
2200     llvm_cv_link_all_option="-Wl,--whole-archive"
2201     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202     llvm_cv_os_type="HP-UX"
2203     llvm_cv_platform_type="Unix" ;;
2204   *-*-interix*)
2205     llvm_cv_link_all_option="-Wl,--whole-archive"
2206     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207     llvm_cv_os_type="Interix"
2208     llvm_cv_platform_type="Unix" ;;
2209   *-*-linux*)
2210     llvm_cv_link_all_option="-Wl,--whole-archive"
2211     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2212     llvm_cv_os_type="Linux"
2213     llvm_cv_platform_type="Unix" ;;
2214   *-*-solaris*)
2215     llvm_cv_link_all_option="-Wl,-z,allextract"
2216     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2217     llvm_cv_os_type="SunOS"
2218     llvm_cv_platform_type="Unix" ;;
2219   *-*-auroraux*)
2220     llvm_cv_link_all_option="-Wl,-z,allextract"
2221     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2222     llvm_cv_os_type="AuroraUX"
2223     llvm_cv_platform_type="Unix" ;;
2224   *-*-win32*)
2225     llvm_cv_link_all_option="-Wl,--whole-archive"
2226     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227     llvm_cv_os_type="Win32"
2228     llvm_cv_platform_type="Win32" ;;
2229   *-*-mingw*)
2230     llvm_cv_link_all_option="-Wl,--whole-archive"
2231     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232     llvm_cv_os_type="MingW"
2233     llvm_cv_platform_type="Win32" ;;
2234   *-*-haiku*)
2235     llvm_cv_link_all_option="-Wl,--whole-archive"
2236     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237     llvm_cv_os_type="Haiku"
2238     llvm_cv_platform_type="Unix" ;;
2239   *-unknown-eabi*)
2240     llvm_cv_link_all_option="-Wl,--whole-archive"
2241     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242     llvm_cv_os_type="Freestanding"
2243     llvm_cv_platform_type="Unix" ;;
2244   *-unknown-elf*)
2245     llvm_cv_link_all_option="-Wl,--whole-archive"
2246     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2247     llvm_cv_os_type="Freestanding"
2248     llvm_cv_platform_type="Unix" ;;
2249   *)
2250     llvm_cv_link_all_option=""
2251     llvm_cv_no_link_all_option=""
2252     llvm_cv_os_type="Unknown"
2253     llvm_cv_platform_type="Unknown" ;;
2254 esac
2255 fi
2256 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2257 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2258
2259 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2260 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2261 if test "${llvm_cv_target_os_type+set}" = set; then
2262   echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264   case $target in
2265   *-*-aix*)
2266     llvm_cv_target_os_type="AIX" ;;
2267   *-*-irix*)
2268     llvm_cv_target_os_type="IRIX" ;;
2269   *-*-cygwin*)
2270     llvm_cv_target_os_type="Cygwin" ;;
2271   *-*-darwin*)
2272     llvm_cv_target_os_type="Darwin" ;;
2273   *-*-minix*)
2274     llvm_cv_target_os_type="Minix" ;;
2275   *-*-freebsd*)
2276     llvm_cv_target_os_type="FreeBSD" ;;
2277   *-*-openbsd*)
2278     llvm_cv_target_os_type="OpenBSD" ;;
2279   *-*-netbsd*)
2280     llvm_cv_target_os_type="NetBSD" ;;
2281   *-*-dragonfly*)
2282     llvm_cv_target_os_type="DragonFly" ;;
2283   *-*-hpux*)
2284     llvm_cv_target_os_type="HP-UX" ;;
2285   *-*-interix*)
2286     llvm_cv_target_os_type="Interix" ;;
2287   *-*-linux*)
2288     llvm_cv_target_os_type="Linux" ;;
2289   *-*-solaris*)
2290     llvm_cv_target_os_type="SunOS" ;;
2291   *-*-auroraux*)
2292     llvm_cv_target_os_type="AuroraUX" ;;
2293   *-*-win32*)
2294     llvm_cv_target_os_type="Win32" ;;
2295   *-*-mingw*)
2296     llvm_cv_target_os_type="MingW" ;;
2297   *-*-haiku*)
2298     llvm_cv_target_os_type="Haiku" ;;
2299   *-unknown-eabi*)
2300     llvm_cv_target_os_type="Freestanding" ;;
2301   *)
2302     llvm_cv_target_os_type="Unknown" ;;
2303 esac
2304 fi
2305 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2306 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2307
2308 if test "$llvm_cv_os_type" = "Unknown" ; then
2309   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2310 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2311    { (exit 1); exit 1; }; }
2312 fi
2313
2314 OS=$llvm_cv_os_type
2315
2316 HOST_OS=$llvm_cv_os_type
2317
2318 TARGET_OS=$llvm_cv_target_os_type
2319
2320
2321 LINKALL=$llvm_cv_link_all_option
2322
2323 NOLINKALL=$llvm_cv_no_link_all_option
2324
2325
2326 case $llvm_cv_platform_type in
2327   Unix)
2328
2329 cat >>confdefs.h <<\_ACEOF
2330 #define LLVM_ON_UNIX 1
2331 _ACEOF
2332
2333     LLVM_ON_UNIX=1
2334
2335     LLVM_ON_WIN32=0
2336
2337     ;;
2338   Win32)
2339
2340 cat >>confdefs.h <<\_ACEOF
2341 #define LLVM_ON_WIN32 1
2342 _ACEOF
2343
2344     LLVM_ON_UNIX=0
2345
2346     LLVM_ON_WIN32=1
2347
2348     ;;
2349 esac
2350
2351 { echo "$as_me:$LINENO: checking target architecture" >&5
2352 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2353 if test "${llvm_cv_target_arch+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   case $target in
2357   i?86-*)                 llvm_cv_target_arch="x86" ;;
2358   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2359   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2360   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2361   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2362   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2363   mips-*)                 llvm_cv_target_arch="Mips" ;;
2364   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2365   xcore-*)                llvm_cv_target_arch="XCore" ;;
2366   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2367   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2368   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2369   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2370   *)                      llvm_cv_target_arch="Unknown" ;;
2371 esac
2372 fi
2373 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2374 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2375
2376 if test "$llvm_cv_target_arch" = "Unknown" ; then
2377   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2378 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2379 fi
2380
2381 # Determine the LLVM native architecture for the target
2382 case "$llvm_cv_target_arch" in
2383     x86)     LLVM_NATIVE_ARCH="X86" ;;
2384     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2385     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2386 esac
2387
2388 ARCH=$llvm_cv_target_arch
2389
2390
2391 ac_ext=c
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   if test -n "$CC"; then
2405   ac_cv_prog_CC="$CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412   for ac_exec_ext in '' $ac_executable_extensions; do
2413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2414     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416     break 2
2417   fi
2418 done
2419 done
2420 IFS=$as_save_IFS
2421
2422 fi
2423 fi
2424 CC=$ac_cv_prog_CC
2425 if test -n "$CC"; then
2426   { echo "$as_me:$LINENO: result: $CC" >&5
2427 echo "${ECHO_T}$CC" >&6; }
2428 else
2429   { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2431 fi
2432
2433
2434 fi
2435 if test -z "$ac_cv_prog_CC"; then
2436   ac_ct_CC=$CC
2437   # Extract the first word of "gcc", so it can be a program name with args.
2438 set dummy gcc; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   if test -n "$ac_ct_CC"; then
2445   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450   IFS=$as_save_IFS
2451   test -z "$as_dir" && as_dir=.
2452   for ac_exec_ext in '' $ac_executable_extensions; do
2453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2454     ac_cv_prog_ac_ct_CC="gcc"
2455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456     break 2
2457   fi
2458 done
2459 done
2460 IFS=$as_save_IFS
2461
2462 fi
2463 fi
2464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465 if test -n "$ac_ct_CC"; then
2466   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467 echo "${ECHO_T}$ac_ct_CC" >&6; }
2468 else
2469   { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2471 fi
2472
2473   if test "x$ac_ct_CC" = x; then
2474     CC=""
2475   else
2476     case $cross_compiling:$ac_tool_warned in
2477 yes:)
2478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479 whose name does not start with the host triplet.  If you think this
2480 configuration is useful to you, please write to autoconf@gnu.org." >&5
2481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482 whose name does not start with the host triplet.  If you think this
2483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484 ac_tool_warned=yes ;;
2485 esac
2486     CC=$ac_ct_CC
2487   fi
2488 else
2489   CC="$ac_cv_prog_CC"
2490 fi
2491
2492 if test -z "$CC"; then
2493           if test -n "$ac_tool_prefix"; then
2494     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2495 set dummy ${ac_tool_prefix}cc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   if test -n "$CC"; then
2502   ac_cv_prog_CC="$CC" # Let the user override the test.
2503 else
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   for ac_exec_ext in '' $ac_executable_extensions; do
2510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2511     ac_cv_prog_CC="${ac_tool_prefix}cc"
2512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513     break 2
2514   fi
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520 fi
2521 CC=$ac_cv_prog_CC
2522 if test -n "$CC"; then
2523   { echo "$as_me:$LINENO: result: $CC" >&5
2524 echo "${ECHO_T}$CC" >&6; }
2525 else
2526   { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2528 fi
2529
2530
2531   fi
2532 fi
2533 if test -z "$CC"; then
2534   # Extract the first word of "cc", so it can be a program name with args.
2535 set dummy cc; ac_word=$2
2536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2538 if test "${ac_cv_prog_CC+set}" = set; then
2539   echo $ECHO_N "(cached) $ECHO_C" >&6
2540 else
2541   if test -n "$CC"; then
2542   ac_cv_prog_CC="$CC" # Let the user override the test.
2543 else
2544   ac_prog_rejected=no
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550   for ac_exec_ext in '' $ac_executable_extensions; do
2551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2552     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553        ac_prog_rejected=yes
2554        continue
2555      fi
2556     ac_cv_prog_CC="cc"
2557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558     break 2
2559   fi
2560 done
2561 done
2562 IFS=$as_save_IFS
2563
2564 if test $ac_prog_rejected = yes; then
2565   # We found a bogon in the path, so make sure we never use it.
2566   set dummy $ac_cv_prog_CC
2567   shift
2568   if test $# != 0; then
2569     # We chose a different compiler from the bogus one.
2570     # However, it has the same basename, so the bogon will be chosen
2571     # first if we set CC to just the basename; use the full file name.
2572     shift
2573     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574   fi
2575 fi
2576 fi
2577 fi
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580   { echo "$as_me:$LINENO: result: $CC" >&5
2581 echo "${ECHO_T}$CC" >&6; }
2582 else
2583   { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2585 fi
2586
2587
2588 fi
2589 if test -z "$CC"; then
2590   if test -n "$ac_tool_prefix"; then
2591   for ac_prog in cl.exe
2592   do
2593     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_CC+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   if test -n "$CC"; then
2601   ac_cv_prog_CC="$CC" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606   IFS=$as_save_IFS
2607   test -z "$as_dir" && as_dir=.
2608   for ac_exec_ext in '' $ac_executable_extensions; do
2609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2610     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612     break 2
2613   fi
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619 fi
2620 CC=$ac_cv_prog_CC
2621 if test -n "$CC"; then
2622   { echo "$as_me:$LINENO: result: $CC" >&5
2623 echo "${ECHO_T}$CC" >&6; }
2624 else
2625   { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2627 fi
2628
2629
2630     test -n "$CC" && break
2631   done
2632 fi
2633 if test -z "$CC"; then
2634   ac_ct_CC=$CC
2635   for ac_prog in cl.exe
2636 do
2637   # Extract the first word of "$ac_prog", so it can be a program name with args.
2638 set dummy $ac_prog; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   if test -n "$ac_ct_CC"; then
2645   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650   IFS=$as_save_IFS
2651   test -z "$as_dir" && as_dir=.
2652   for ac_exec_ext in '' $ac_executable_extensions; do
2653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2654     ac_cv_prog_ac_ct_CC="$ac_prog"
2655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656     break 2
2657   fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667 echo "${ECHO_T}$ac_ct_CC" >&6; }
2668 else
2669   { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2671 fi
2672
2673
2674   test -n "$ac_ct_CC" && break
2675 done
2676
2677   if test "x$ac_ct_CC" = x; then
2678     CC=""
2679   else
2680     case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet.  If you think this
2684 configuration is useful to you, please write to autoconf@gnu.org." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet.  If you think this
2687 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690     CC=$ac_ct_CC
2691   fi
2692 fi
2693
2694 fi
2695
2696
2697 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&5
2699 echo "$as_me: error: no acceptable C compiler found in \$PATH
2700 See \`config.log' for more details." >&2;}
2701    { (exit 1); exit 1; }; }
2702
2703 # Provide some information about the compiler.
2704 echo "$as_me:$LINENO: checking for C compiler version" >&5
2705 ac_compiler=`set X $ac_compile; echo $2`
2706 { (ac_try="$ac_compiler --version >&5"
2707 case "(($ac_try" in
2708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709   *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712   (eval "$ac_compiler --version >&5") 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }
2716 { (ac_try="$ac_compiler -v >&5"
2717 case "(($ac_try" in
2718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719   *) ac_try_echo=$ac_try;;
2720 esac
2721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722   (eval "$ac_compiler -v >&5") 2>&5
2723   ac_status=$?
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); }
2726 { (ac_try="$ac_compiler -V >&5"
2727 case "(($ac_try" in
2728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729   *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732   (eval "$ac_compiler -V >&5") 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }
2736
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743
2744 int
2745 main ()
2746 {
2747
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 ac_clean_files_save=$ac_clean_files
2753 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2754 # Try to create an executable without -o first, disregard a.out.
2755 # It will help us diagnose broken compilers, and finding out an intuition
2756 # of exeext.
2757 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2759 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2760 #
2761 # List of possible output files, starting from the most likely.
2762 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763 # only as a last resort.  b.out is created by i960 compilers.
2764 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2765 #
2766 # The IRIX 6 linker writes into existing files which may not be
2767 # executable, retaining their permissions.  Remove them first so a
2768 # subsequent execution test works.
2769 ac_rmfiles=
2770 for ac_file in $ac_files
2771 do
2772   case $ac_file in
2773     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775   esac
2776 done
2777 rm -f $ac_rmfiles
2778
2779 if { (ac_try="$ac_link_default"
2780 case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785   (eval "$ac_link_default") 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; then
2789   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2792 # so that the user can short-circuit this test for compilers unknown to
2793 # Autoconf.
2794 for ac_file in $ac_files
2795 do
2796   test -f "$ac_file" || continue
2797   case $ac_file in
2798     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2799         ;;
2800     [ab].out )
2801         # We found the default executable, but exeext='' is most
2802         # certainly right.
2803         break;;
2804     *.* )
2805         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2806         then :; else
2807            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808         fi
2809         # We set ac_cv_exeext here because the later test for it is not
2810         # safe: cross compilers may not add the suffix if given an `-o'
2811         # argument, so we may need to know it at that point already.
2812         # Even if this section looks crufty: it has the advantage of
2813         # actually working.
2814         break;;
2815     * )
2816         break;;
2817   esac
2818 done
2819 test "$ac_cv_exeext" = no && ac_cv_exeext=
2820
2821 else
2822   echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&2;}
2829    { (exit 77); exit 77; }; }
2830 fi
2831
2832 ac_exeext=$ac_cv_exeext
2833 { echo "$as_me:$LINENO: result: $ac_file" >&5
2834 echo "${ECHO_T}$ac_file" >&6; }
2835
2836 # Check that the compiler produces executables we can run.  If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841 # If not cross compiling, check that we can run a simple program.
2842 if test "$cross_compiling" != yes; then
2843   if { ac_try='./$ac_file'
2844   { (case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_try") 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; }; then
2853     cross_compiling=no
2854   else
2855     if test "$cross_compiling" = maybe; then
2856         cross_compiling=yes
2857     else
2858         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2859 If you meant to cross compile, use \`--host'.
2860 See \`config.log' for more details." >&5
2861 echo "$as_me: error: cannot run C compiled programs.
2862 If you meant to cross compile, use \`--host'.
2863 See \`config.log' for more details." >&2;}
2864    { (exit 1); exit 1; }; }
2865     fi
2866   fi
2867 fi
2868 { echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6; }
2870
2871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2872 ac_clean_files=$ac_clean_files_save
2873 # Check that the compiler produces executables we can run.  If not, either
2874 # the compiler is broken, or we cross compile.
2875 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878 echo "${ECHO_T}$cross_compiling" >&6; }
2879
2880 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882 if { (ac_try="$ac_link"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_link") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; then
2892   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2894 # work properly (i.e., refer to `conftest.exe'), while it won't with
2895 # `rm'.
2896 for ac_file in conftest.exe conftest conftest.*; do
2897   test -f "$ac_file" || continue
2898   case $ac_file in
2899     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901           break;;
2902     * ) break;;
2903   esac
2904 done
2905 else
2906   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&5
2908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909 See \`config.log' for more details." >&2;}
2910    { (exit 1); exit 1; }; }
2911 fi
2912
2913 rm -f conftest$ac_cv_exeext
2914 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2916
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2919 ac_exeext=$EXEEXT
2920 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2922 if test "${ac_cv_objext+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932 int
2933 main ()
2934 {
2935
2936   ;
2937   return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.o conftest.obj
2941 if { (ac_try="$ac_compile"
2942 case "(($ac_try" in
2943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944   *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947   (eval "$ac_compile") 2>&5
2948   ac_status=$?
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); }; then
2951   for ac_file in conftest.o conftest.obj conftest.*; do
2952   test -f "$ac_file" || continue;
2953   case $ac_file in
2954     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2955     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956        break;;
2957   esac
2958 done
2959 else
2960   echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966 See \`config.log' for more details." >&2;}
2967    { (exit 1); exit 1; }; }
2968 fi
2969
2970 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971 fi
2972 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973 echo "${ECHO_T}$ac_cv_objext" >&6; }
2974 OBJEXT=$ac_cv_objext
2975 ac_objext=$OBJEXT
2976 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2978 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h.  */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h.  */
2987
2988 int
2989 main ()
2990 {
2991 #ifndef __GNUC__
2992        choke me
2993 #endif
2994
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006   (eval "$ac_compile") 2>conftest.er1
3007   ac_status=$?
3008   grep -v '^ *+' conftest.er1 >conftest.err
3009   rm -f conftest.er1
3010   cat conftest.err >&5
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); } &&
3013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014   { (case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019   (eval "$ac_try") 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; } &&
3023          { ac_try='test -s conftest.$ac_objext'
3024   { (case "(($ac_try" in
3025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026   *) ac_try_echo=$ac_try;;
3027 esac
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029   (eval "$ac_try") 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; }; then
3033   ac_compiler_gnu=yes
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038         ac_compiler_gnu=no
3039 fi
3040
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043
3044 fi
3045 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3047 GCC=`test $ac_compiler_gnu = yes && echo yes`
3048 ac_test_CFLAGS=${CFLAGS+set}
3049 ac_save_CFLAGS=$CFLAGS
3050 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3052 if test "${ac_cv_prog_cc_g+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055   ac_save_c_werror_flag=$ac_c_werror_flag
3056    ac_c_werror_flag=yes
3057    ac_cv_prog_cc_g=no
3058    CFLAGS="-g"
3059    cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065
3066 int
3067 main ()
3068 {
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_compile") 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } &&
3088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089   { (case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_try") 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }; } &&
3098          { ac_try='test -s conftest.$ac_objext'
3099   { (case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_try") 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); }; }; then
3108   ac_cv_prog_cc_g=yes
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113         CFLAGS=""
3114       cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h.  */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h.  */
3120
3121 int
3122 main ()
3123 {
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (ac_try="$ac_compile"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_compile") 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } &&
3143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144   { (case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_try") 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; } &&
3153          { ac_try='test -s conftest.$ac_objext'
3154   { (case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_try") 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; }; then
3163   :
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168         ac_c_werror_flag=$ac_save_c_werror_flag
3169          CFLAGS="-g"
3170          cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h.  */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h.  */
3176
3177 int
3178 main ()
3179 {
3180
3181   ;
3182   return 0;
3183 }
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3187 case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_compile") 2>conftest.er1
3193   ac_status=$?
3194   grep -v '^ *+' conftest.er1 >conftest.err
3195   rm -f conftest.er1
3196   cat conftest.err >&5
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); } &&
3199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200   { (case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_try") 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; } &&
3209          { ac_try='test -s conftest.$ac_objext'
3210   { (case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215   (eval "$ac_try") 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; }; then
3219   ac_cv_prog_cc_g=yes
3220 else
3221   echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 fi
3229
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234    ac_c_werror_flag=$ac_save_c_werror_flag
3235 fi
3236 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3238 if test "$ac_test_CFLAGS" = set; then
3239   CFLAGS=$ac_save_CFLAGS
3240 elif test $ac_cv_prog_cc_g = yes; then
3241   if test "$GCC" = yes; then
3242     CFLAGS="-g -O2"
3243   else
3244     CFLAGS="-g"
3245   fi
3246 else
3247   if test "$GCC" = yes; then
3248     CFLAGS="-O2"
3249   else
3250     CFLAGS=
3251   fi
3252 fi
3253 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255 if test "${ac_cv_prog_cc_c89+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   ac_cv_prog_cc_c89=no
3259 ac_save_CC=$CC
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #include <stdarg.h>
3267 #include <stdio.h>
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3271 struct buf { int x; };
3272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273 static char *e (p, i)
3274      char **p;
3275      int i;
3276 {
3277   return p[i];
3278 }
3279 static char *f (char * (*g) (char **, int), char **p, ...)
3280 {
3281   char *s;
3282   va_list v;
3283   va_start (v,p);
3284   s = g (p, va_arg (v,int));
3285   va_end (v);
3286   return s;
3287 }
3288
3289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3290    function prototypes and stuff, but not '\xHH' hex character constants.
3291    These don't provoke an error unfortunately, instead are silently treated
3292    as 'x'.  The following induces an error, until -std is added to get
3293    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3294    array size at least.  It's necessary to write '\x00'==0 to get something
3295    that's true only with -std.  */
3296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
3298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299    inside strings and character constants.  */
3300 #define FOO(x) 'x'
3301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307 int argc;
3308 char **argv;
3309 int
3310 main ()
3311 {
3312 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319 do
3320   CC="$ac_save_CC $ac_arg"
3321   rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_compile") 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } &&
3335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336   { (case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_try") 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }; } &&
3345          { ac_try='test -s conftest.$ac_objext'
3346   { (case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351   (eval "$ac_try") 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }; }; then
3355   ac_cv_prog_cc_c89=$ac_arg
3356 else
3357   echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360
3361 fi
3362
3363 rm -f core conftest.err conftest.$ac_objext
3364   test "x$ac_cv_prog_cc_c89" != "xno" && break
3365 done
3366 rm -f conftest.$ac_ext
3367 CC=$ac_save_CC
3368
3369 fi
3370 # AC_CACHE_VAL
3371 case "x$ac_cv_prog_cc_c89" in
3372   x)
3373     { echo "$as_me:$LINENO: result: none needed" >&5
3374 echo "${ECHO_T}none needed" >&6; } ;;
3375   xno)
3376     { echo "$as_me:$LINENO: result: unsupported" >&5
3377 echo "${ECHO_T}unsupported" >&6; } ;;
3378   *)
3379     CC="$CC $ac_cv_prog_cc_c89"
3380     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3382 esac
3383
3384
3385 ac_ext=c
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3399 # On Suns, sometimes $CPP names a directory.
3400 if test -n "$CPP" && test -d "$CPP"; then
3401   CPP=
3402 fi
3403 if test -z "$CPP"; then
3404   if test "${ac_cv_prog_CPP+set}" = set; then
3405   echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407       # Double quotes because CPP needs to be expanded
3408     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3409     do
3410       ac_preproc_ok=false
3411 for ac_c_preproc_warn_flag in '' yes
3412 do
3413   # Use a header file that comes with gcc, so configuring glibc
3414   # with a fresh cross-compiler works.
3415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416   # <limits.h> exists even on freestanding compilers.
3417   # On the NeXT, cc -E runs the code through the compiler's parser,
3418   # not just through cpp. "Syntax error" is here to catch this case.
3419   cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425 #ifdef __STDC__
3426 # include <limits.h>
3427 #else
3428 # include <assert.h>
3429 #endif
3430                      Syntax error
3431 _ACEOF
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } >/dev/null; then
3445   if test -s conftest.err; then
3446     ac_cpp_err=$ac_c_preproc_warn_flag
3447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448   else
3449     ac_cpp_err=
3450   fi
3451 else
3452   ac_cpp_err=yes
3453 fi
3454 if test -z "$ac_cpp_err"; then
3455   :
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460   # Broken: fails on valid input.
3461 continue
3462 fi
3463
3464 rm -f conftest.err conftest.$ac_ext
3465
3466   # OK, works on sane cases.  Now check whether nonexistent headers
3467   # can be detected and how.
3468   cat >conftest.$ac_ext <<_ACEOF
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474 #include <ac_nonexistent.h>
3475 _ACEOF
3476 if { (ac_try="$ac_cpp conftest.$ac_ext"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483   ac_status=$?
3484   grep -v '^ *+' conftest.er1 >conftest.err
3485   rm -f conftest.er1
3486   cat conftest.err >&5
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } >/dev/null; then
3489   if test -s conftest.err; then
3490     ac_cpp_err=$ac_c_preproc_warn_flag
3491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492   else
3493     ac_cpp_err=
3494   fi
3495 else
3496   ac_cpp_err=yes
3497 fi
3498 if test -z "$ac_cpp_err"; then
3499   # Broken: success on invalid input.
3500 continue
3501 else
3502   echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505   # Passes both tests.
3506 ac_preproc_ok=:
3507 break
3508 fi
3509
3510 rm -f conftest.err conftest.$ac_ext
3511
3512 done
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then
3516   break
3517 fi
3518
3519     done
3520     ac_cv_prog_CPP=$CPP
3521
3522 fi
3523   CPP=$ac_cv_prog_CPP
3524 else
3525   ac_cv_prog_CPP=$CPP
3526 fi
3527 { echo "$as_me:$LINENO: result: $CPP" >&5
3528 echo "${ECHO_T}$CPP" >&6; }
3529 ac_preproc_ok=false
3530 for ac_c_preproc_warn_flag in '' yes
3531 do
3532   # Use a header file that comes with gcc, so configuring glibc
3533   # with a fresh cross-compiler works.
3534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535   # <limits.h> exists even on freestanding compilers.
3536   # On the NeXT, cc -E runs the code through the compiler's parser,
3537   # not just through cpp. "Syntax error" is here to catch this case.
3538   cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h.  */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h.  */
3544 #ifdef __STDC__
3545 # include <limits.h>
3546 #else
3547 # include <assert.h>
3548 #endif
3549                      Syntax error
3550 _ACEOF
3551 if { (ac_try="$ac_cpp conftest.$ac_ext"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558   ac_status=$?
3559   grep -v '^ *+' conftest.er1 >conftest.err
3560   rm -f conftest.er1
3561   cat conftest.err >&5
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } >/dev/null; then
3564   if test -s conftest.err; then
3565     ac_cpp_err=$ac_c_preproc_warn_flag
3566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567   else
3568     ac_cpp_err=
3569   fi
3570 else
3571   ac_cpp_err=yes
3572 fi
3573 if test -z "$ac_cpp_err"; then
3574   :
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579   # Broken: fails on valid input.
3580 continue
3581 fi
3582
3583 rm -f conftest.err conftest.$ac_ext
3584
3585   # OK, works on sane cases.  Now check whether nonexistent headers
3586   # can be detected and how.
3587   cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593 #include <ac_nonexistent.h>
3594 _ACEOF
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } >/dev/null; then
3608   if test -s conftest.err; then
3609     ac_cpp_err=$ac_c_preproc_warn_flag
3610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611   else
3612     ac_cpp_err=
3613   fi
3614 else
3615   ac_cpp_err=yes
3616 fi
3617 if test -z "$ac_cpp_err"; then
3618   # Broken: success on invalid input.
3619 continue
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624   # Passes both tests.
3625 ac_preproc_ok=:
3626 break
3627 fi
3628
3629 rm -f conftest.err conftest.$ac_ext
3630
3631 done
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then
3635   :
3636 else
3637   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&5
3639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640 See \`config.log' for more details." >&2;}
3641    { (exit 1); exit 1; }; }
3642 fi
3643
3644 ac_ext=c
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
3650
3651 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   # Extract the first word of "grep ggrep" to use in msg output
3657 if test -z "$GREP"; then
3658 set dummy grep ggrep; ac_prog_name=$2
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   ac_path_GREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666 do
3667   IFS=$as_save_IFS
3668   test -z "$as_dir" && as_dir=.
3669   for ac_prog in grep ggrep; do
3670   for ac_exec_ext in '' $ac_executable_extensions; do
3671     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3672     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3673     # Check for GNU ac_path_GREP and select it if it is found.
3674   # Check for GNU $ac_path_GREP
3675 case `"$ac_path_GREP" --version 2>&1` in
3676 *GNU*)
3677   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678 *)
3679   ac_count=0
3680   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681   while :
3682   do
3683     cat "conftest.in" "conftest.in" >"conftest.tmp"
3684     mv "conftest.tmp" "conftest.in"
3685     cp "conftest.in" "conftest.nl"
3686     echo 'GREP' >> "conftest.nl"
3687     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689     ac_count=`expr $ac_count + 1`
3690     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691       # Best one so far, save it but keep looking for a better one
3692       ac_cv_path_GREP="$ac_path_GREP"
3693       ac_path_GREP_max=$ac_count
3694     fi
3695     # 10*(2^10) chars as input seems more than enough
3696     test $ac_count -gt 10 && break
3697   done
3698   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 esac
3700
3701
3702     $ac_path_GREP_found && break 3
3703   done
3704 done
3705
3706 done
3707 IFS=$as_save_IFS
3708
3709
3710 fi
3711
3712 GREP="$ac_cv_path_GREP"
3713 if test -z "$GREP"; then
3714   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716    { (exit 1); exit 1; }; }
3717 fi
3718
3719 else
3720   ac_cv_path_GREP=$GREP
3721 fi
3722
3723
3724 fi
3725 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727  GREP="$ac_cv_path_GREP"
3728
3729
3730 { echo "$as_me:$LINENO: checking for egrep" >&5
3731 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732 if test "${ac_cv_path_EGREP+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736    then ac_cv_path_EGREP="$GREP -E"
3737    else
3738      # Extract the first word of "egrep" to use in msg output
3739 if test -z "$EGREP"; then
3740 set dummy egrep; ac_prog_name=$2
3741 if test "${ac_cv_path_EGREP+set}" = set; then
3742   echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744   ac_path_EGREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751   for ac_prog in egrep; do
3752   for ac_exec_ext in '' $ac_executable_extensions; do
3753     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3754     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3755     # Check for GNU ac_path_EGREP and select it if it is found.
3756   # Check for GNU $ac_path_EGREP
3757 case `"$ac_path_EGREP" --version 2>&1` in
3758 *GNU*)
3759   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760 *)
3761   ac_count=0
3762   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3763   while :
3764   do
3765     cat "conftest.in" "conftest.in" >"conftest.tmp"
3766     mv "conftest.tmp" "conftest.in"
3767     cp "conftest.in" "conftest.nl"
3768     echo 'EGREP' >> "conftest.nl"
3769     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771     ac_count=`expr $ac_count + 1`
3772     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773       # Best one so far, save it but keep looking for a better one
3774       ac_cv_path_EGREP="$ac_path_EGREP"
3775       ac_path_EGREP_max=$ac_count
3776     fi
3777     # 10*(2^10) chars as input seems more than enough
3778     test $ac_count -gt 10 && break
3779   done
3780   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781 esac
3782
3783
3784     $ac_path_EGREP_found && break 3
3785   done
3786 done
3787
3788 done
3789 IFS=$as_save_IFS
3790
3791
3792 fi
3793
3794 EGREP="$ac_cv_path_EGREP"
3795 if test -z "$EGREP"; then
3796   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798    { (exit 1); exit 1; }; }
3799 fi
3800
3801 else
3802   ac_cv_path_EGREP=$EGREP
3803 fi
3804
3805
3806    fi
3807 fi
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810  EGREP="$ac_cv_path_EGREP"
3811
3812
3813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3815 if test "${ac_cv_header_stdc+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824 #include <stdlib.h>
3825 #include <stdarg.h>
3826 #include <string.h>
3827 #include <float.h>
3828
3829 int
3830 main ()
3831 {
3832
3833   ;
3834   return 0;
3835 }
3836 _ACEOF
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844   (eval "$ac_compile") 2>conftest.er1
3845   ac_status=$?
3846   grep -v '^ *+' conftest.er1 >conftest.err
3847   rm -f conftest.er1
3848   cat conftest.err >&5
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); } &&
3851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852   { (case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857   (eval "$ac_try") 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest.$ac_objext'
3862   { (case "(($ac_try" in
3863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864   *) ac_try_echo=$ac_try;;
3865 esac
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867   (eval "$ac_try") 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; }; then
3871   ac_cv_header_stdc=yes
3872 else
3873   echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876         ac_cv_header_stdc=no
3877 fi
3878
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880
3881 if test $ac_cv_header_stdc = yes; then
3882   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883   cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h.  */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h.  */
3889 #include <string.h>
3890
3891 _ACEOF
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893   $EGREP "memchr" >/dev/null 2>&1; then
3894   :
3895 else
3896   ac_cv_header_stdc=no
3897 fi
3898 rm -f conftest*
3899
3900 fi
3901
3902 if test $ac_cv_header_stdc = yes; then
3903   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904   cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h.  */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h.  */
3910 #include <stdlib.h>
3911
3912 _ACEOF
3913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914   $EGREP "free" >/dev/null 2>&1; then
3915   :
3916 else
3917   ac_cv_header_stdc=no
3918 fi
3919 rm -f conftest*
3920
3921 fi
3922
3923 if test $ac_cv_header_stdc = yes; then
3924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925   if test "$cross_compiling" = yes; then
3926   :
3927 else
3928   cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h.  */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h.  */
3934 #include <ctype.h>
3935 #include <stdlib.h>
3936 #if ((' ' & 0x0FF) == 0x020)
3937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939 #else
3940 # define ISLOWER(c) \
3941                    (('a' <= (c) && (c) <= 'i') \
3942                      || ('j' <= (c) && (c) <= 'r') \
3943                      || ('s' <= (c) && (c) <= 'z'))
3944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945 #endif
3946
3947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948 int
3949 main ()
3950 {
3951   int i;
3952   for (i = 0; i < 256; i++)
3953     if (XOR (islower (i), ISLOWER (i))
3954         || toupper (i) != TOUPPER (i))
3955       return 2;
3956   return 0;
3957 }
3958 _ACEOF
3959 rm -f conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3961 case "(($ac_try" in
3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963   *) ac_try_echo=$ac_try;;
3964 esac
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966   (eval "$ac_link") 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970   { (case "(($ac_try" in
3971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972   *) ac_try_echo=$ac_try;;
3973 esac
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975   (eval "$ac_try") 2>&5
3976   ac_status=$?
3977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978   (exit $ac_status); }; }; then
3979   :
3980 else
3981   echo "$as_me: program exited with status $ac_status" >&5
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 ( exit $ac_status )
3986 ac_cv_header_stdc=no
3987 fi
3988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 fi
3990
3991
3992 fi
3993 fi
3994 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3996 if test $ac_cv_header_stdc = yes; then
3997
3998 cat >>confdefs.h <<\_ACEOF
3999 #define STDC_HEADERS 1
4000 _ACEOF
4001
4002 fi
4003
4004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015                   inttypes.h stdint.h unistd.h
4016 do
4017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h.  */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h.  */
4029 $ac_includes_default
4030
4031 #include <$ac_header>
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4035 case "(($ac_try" in
4036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037   *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040   (eval "$ac_compile") 2>conftest.er1
4041   ac_status=$?
4042   grep -v '^ *+' conftest.er1 >conftest.err
4043   rm -f conftest.er1
4044   cat conftest.err >&5
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); } &&
4047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048   { (case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053   (eval "$ac_try") 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; } &&
4057          { ac_try='test -s conftest.$ac_objext'
4058   { (case "(($ac_try" in
4059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060   *) ac_try_echo=$ac_try;;
4061 esac
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063   (eval "$ac_try") 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }; }; then
4067   eval "$as_ac_Header=yes"
4068 else
4069   echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072         eval "$as_ac_Header=no"
4073 fi
4074
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 fi
4077 ac_res=`eval echo '${'$as_ac_Header'}'`
4078                { echo "$as_me:$LINENO: result: $ac_res" >&5
4079 echo "${ECHO_T}$ac_res" >&6; }
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081   cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083 _ACEOF
4084
4085 fi
4086
4087 done
4088
4089
4090 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092 if test "${ac_cv_c_bigendian+set}" = set; then
4093   echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095   # See if sys/param.h defines the BYTE_ORDER macro.
4096 cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h.  */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h.  */
4102 #include <sys/types.h>
4103 #include <sys/param.h>
4104
4105 int
4106 main ()
4107 {
4108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4109  bogus endian macros
4110 #endif
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4118 case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123   (eval "$ac_compile") 2>conftest.er1
4124   ac_status=$?
4125   grep -v '^ *+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } &&
4130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131   { (case "(($ac_try" in
4132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133   *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136   (eval "$ac_try") 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); }; } &&
4140          { ac_try='test -s conftest.$ac_objext'
4141   { (case "(($ac_try" in
4142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143   *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146   (eval "$ac_try") 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }; }; then
4150   # It does; now see whether it defined to BIG_ENDIAN or not.
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 #include <sys/types.h>
4158 #include <sys/param.h>
4159
4160 int
4161 main ()
4162 {
4163 #if BYTE_ORDER != BIG_ENDIAN
4164  not big endian
4165 #endif
4166
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (ac_try="$ac_compile"
4173 case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178   (eval "$ac_compile") 2>conftest.er1
4179   ac_status=$?
4180   grep -v '^ *+' conftest.er1 >conftest.err
4181   rm -f conftest.er1
4182   cat conftest.err >&5
4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184   (exit $ac_status); } &&
4185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186   { (case "(($ac_try" in
4187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188   *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191   (eval "$ac_try") 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; } &&
4195          { ac_try='test -s conftest.$ac_objext'
4196   { (case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201   (eval "$ac_try") 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); }; }; then
4205   ac_cv_c_bigendian=yes
4206 else
4207   echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4209
4210         ac_cv_c_bigendian=no
4211 fi
4212
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218         # It does not; compile a test program.
4219 if test "$cross_compiling" = yes; then
4220   # try to guess the endianness by grepping values into an object file
4221   ac_cv_c_bigendian=unknown
4222   cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h.  */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h.  */
4228 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4234 int
4235 main ()
4236 {
4237  _ascii (); _ebcdic ();
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4244 case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249   (eval "$ac_compile") 2>conftest.er1
4250   ac_status=$?
4251   grep -v '^ *+' conftest.er1 >conftest.err
4252   rm -f conftest.er1
4253   cat conftest.err >&5
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } &&
4256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257   { (case "(($ac_try" in
4258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259   *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262   (eval "$ac_try") 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); }; } &&
4266          { ac_try='test -s conftest.$ac_objext'
4267   { (case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272   (eval "$ac_try") 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4277   ac_cv_c_bigendian=yes
4278 fi
4279 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280   if test "$ac_cv_c_bigendian" = unknown; then
4281     ac_cv_c_bigendian=no
4282   else
4283     # finding both strings is unlikely to happen, but who knows?
4284     ac_cv_c_bigendian=unknown
4285   fi
4286 fi
4287 else
4288   echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291
4292 fi
4293
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 else
4296   cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h.  */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h.  */
4302 $ac_includes_default
4303 int
4304 main ()
4305 {
4306
4307   /* Are we little or big endian?  From Harbison&Steele.  */
4308   union
4309   {
4310     long int l;
4311     char c[sizeof (long int)];
4312   } u;
4313   u.l = 1;
4314   return u.c[sizeof (long int) - 1] == 1;
4315
4316   ;
4317   return 0;
4318 }
4319 _ACEOF
4320 rm -f conftest$ac_exeext
4321 if { (ac_try="$ac_link"
4322 case "(($ac_try" in
4323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324   *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327   (eval "$ac_link") 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331   { (case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336   (eval "$ac_try") 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; }; then
4340   ac_cv_c_bigendian=no
4341 else
4342   echo "$as_me: program exited with status $ac_status" >&5
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 ( exit $ac_status )
4347 ac_cv_c_bigendian=yes
4348 fi
4349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 fi
4351
4352
4353 fi
4354
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 fi
4357 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359 case $ac_cv_c_bigendian in
4360   yes)
4361     ENDIAN=big
4362  ;;
4363   no)
4364     ENDIAN=little
4365  ;;
4366   *)
4367     { { echo "$as_me:$LINENO: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369 echo "$as_me: error: unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371    { (exit 1); exit 1; }; } ;;
4372 esac
4373
4374
4375 if test "$cross_compiling" = yes; then
4376   LLVM_CROSS_COMPILING=1
4377
4378
4379 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381 if test "${ac_cv_build_exeext+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385   ac_cv_build_exeext=.exe
4386 else
4387   ac_build_prefix=${build_alias}-
4388
4389   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390 set dummy ${ac_build_prefix}gcc; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   if test -n "$BUILD_CC"; then
4397   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 BUILD_CC=$ac_cv_prog_BUILD_CC
4417 if test -n "$BUILD_CC"; then
4418   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419 echo "${ECHO_T}$BUILD_CC" >&6; }
4420 else
4421   { echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6; }
4423 fi
4424
4425
4426   if test -z "$BUILD_CC"; then
4427      # Extract the first word of "gcc", so it can be a program name with args.
4428 set dummy gcc; ac_word=$2
4429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if test -n "$BUILD_CC"; then
4435   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_prog_BUILD_CC="gcc"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452 fi
4453 fi
4454 BUILD_CC=$ac_cv_prog_BUILD_CC
4455 if test -n "$BUILD_CC"; then
4456   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457 echo "${ECHO_T}$BUILD_CC" >&6; }
4458 else
4459   { echo "$as_me:$LINENO: result: no" >&5
4460 echo "${ECHO_T}no" >&6; }
4461 fi
4462
4463
4464      if test -z "$BUILD_CC"; then
4465        # Extract the first word of "cc", so it can be a program name with args.
4466 set dummy cc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   if test -n "$BUILD_CC"; then
4473   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474 else
4475   ac_prog_rejected=no
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481   for ac_exec_ext in '' $ac_executable_extensions; do
4482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484        ac_prog_rejected=yes
4485        continue
4486      fi
4487     ac_cv_prog_BUILD_CC="cc"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 if test $ac_prog_rejected = yes; then
4496   # We found a bogon in the path, so make sure we never use it.
4497   set dummy $ac_cv_prog_BUILD_CC
4498   shift
4499   if test $# != 0; then
4500     # We chose a different compiler from the bogus one.
4501     # However, it has the same basename, so the bogon will be chosen
4502     # first if we set BUILD_CC to just the basename; use the full file name.
4503     shift
4504     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505   fi
4506 fi
4507 fi
4508 fi
4509 BUILD_CC=$ac_cv_prog_BUILD_CC
4510 if test -n "$BUILD_CC"; then
4511   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512 echo "${ECHO_T}$BUILD_CC" >&6; }
4513 else
4514   { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4516 fi
4517
4518
4519      fi
4520   fi
4521   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523    { (exit 1); exit 1; }; }
4524   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4525   rm -f conftest*
4526   echo 'int main () { return 0; }' > conftest.$ac_ext
4527   ac_cv_build_exeext=
4528   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4529   (eval $ac_build_link) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; then
4533     for file in conftest.*; do
4534       case $file in
4535       *.c | *.o | *.obj | *.dSYM) ;;
4536       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4537       esac
4538     done
4539   else
4540     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542    { (exit 1); exit 1; }; }
4543   fi
4544   rm -f conftest*
4545   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546 fi
4547 fi
4548
4549 BUILD_EXEEXT=""
4550 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4551 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4553 ac_build_exeext=$BUILD_EXEEXT
4554
4555   ac_build_prefix=${build_alias}-
4556   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4557 set dummy ${ac_build_prefix}g++; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$BUILD_CXX"; then
4564   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4573     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579 IFS=$as_save_IFS
4580
4581 fi
4582 fi
4583 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4584 if test -n "$BUILD_CXX"; then
4585   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4586 echo "${ECHO_T}$BUILD_CXX" >&6; }
4587 else
4588   { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4590 fi
4591
4592
4593   if test -z "$BUILD_CXX"; then
4594      # Extract the first word of "g++", so it can be a program name with args.
4595 set dummy g++; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$BUILD_CXX"; then
4602   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4611     ac_cv_prog_BUILD_CXX="g++"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4622 if test -n "$BUILD_CXX"; then
4623   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4624 echo "${ECHO_T}$BUILD_CXX" >&6; }
4625 else
4626   { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4628 fi
4629
4630
4631      if test -z "$BUILD_CXX"; then
4632        # Extract the first word of "c++", so it can be a program name with args.
4633 set dummy c++; ac_word=$2
4634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4636 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 else
4639   if test -n "$BUILD_CXX"; then
4640   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4641 else
4642   ac_prog_rejected=no
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648   for ac_exec_ext in '' $ac_executable_extensions; do
4649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4650     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4651        ac_prog_rejected=yes
4652        continue
4653      fi
4654     ac_cv_prog_BUILD_CXX="c++"
4655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656     break 2
4657   fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 if test $ac_prog_rejected = yes; then
4663   # We found a bogon in the path, so make sure we never use it.
4664   set dummy $ac_cv_prog_BUILD_CXX
4665   shift
4666   if test $# != 0; then
4667     # We chose a different compiler from the bogus one.
4668     # However, it has the same basename, so the bogon will be chosen
4669     # first if we set BUILD_CXX to just the basename; use the full file name.
4670     shift
4671     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4672   fi
4673 fi
4674 fi
4675 fi
4676 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4677 if test -n "$BUILD_CXX"; then
4678   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4679 echo "${ECHO_T}$BUILD_CXX" >&6; }
4680 else
4681   { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4683 fi
4684
4685
4686      fi
4687   fi
4688 else
4689   LLVM_CROSS_COMPILING=0
4690
4691 fi
4692
4693 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4694   cvsbuild="yes"
4695   optimize="no"
4696   CVSBUILD=CVSBUILD=1
4697
4698 else
4699   cvsbuild="no"
4700   optimize="yes"
4701 fi
4702
4703
4704 # Check whether --enable-optimized was given.
4705 if test "${enable_optimized+set}" = set; then
4706   enableval=$enable_optimized;
4707 else
4708   enableval=$optimize
4709 fi
4710
4711 if test ${enableval} = "no" ; then
4712   ENABLE_OPTIMIZED=
4713
4714 else
4715   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4716
4717 fi
4718
4719 # Check whether --enable-profiling was given.
4720 if test "${enable_profiling+set}" = set; then
4721   enableval=$enable_profiling;
4722 else
4723   enableval="no"
4724 fi
4725
4726 if test ${enableval} = "no" ; then
4727   ENABLE_PROFILING=
4728
4729 else
4730   ENABLE_PROFILING=ENABLE_PROFILING=1
4731
4732 fi
4733
4734 # Check whether --enable-assertions was given.
4735 if test "${enable_assertions+set}" = set; then
4736   enableval=$enable_assertions;
4737 else
4738   enableval="yes"
4739 fi
4740
4741 if test ${enableval} = "yes" ; then
4742   DISABLE_ASSERTIONS=
4743
4744 else
4745   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4746
4747 fi
4748
4749 # Check whether --enable-expensive-checks was given.
4750 if test "${enable_expensive_checks+set}" = set; then
4751   enableval=$enable_expensive_checks;
4752 else
4753   enableval="no"
4754 fi
4755
4756 if test ${enableval} = "yes" ; then
4757   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4758
4759   EXPENSIVE_CHECKS=yes
4760
4761 else
4762   ENABLE_EXPENSIVE_CHECKS=
4763
4764   EXPENSIVE_CHECKS=no
4765
4766 fi
4767
4768 # Check whether --enable-debug-runtime was given.
4769 if test "${enable_debug_runtime+set}" = set; then
4770   enableval=$enable_debug_runtime;
4771 else
4772   enableval=no
4773 fi
4774
4775 if test ${enableval} = "no" ; then
4776   DEBUG_RUNTIME=
4777
4778 else
4779   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4780
4781 fi
4782
4783 # Check whether --enable-debug-symbols was given.
4784 if test "${enable_debug_symbols+set}" = set; then
4785   enableval=$enable_debug_symbols;
4786 else
4787   enableval=no
4788 fi
4789
4790 if test ${enableval} = "no" ; then
4791   DEBUG_SYMBOLS=
4792
4793 else
4794   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4795
4796 fi
4797
4798 # Check whether --enable-jit was given.
4799 if test "${enable_jit+set}" = set; then
4800   enableval=$enable_jit;
4801 else
4802   enableval=default
4803 fi
4804
4805 if test ${enableval} = "no"
4806 then
4807   JIT=
4808
4809 else
4810   case "$llvm_cv_target_arch" in
4811     x86)         TARGET_HAS_JIT=1
4812  ;;
4813     Sparc)       TARGET_HAS_JIT=0
4814  ;;
4815     PowerPC)     TARGET_HAS_JIT=1
4816  ;;
4817     x86_64)      TARGET_HAS_JIT=1
4818  ;;
4819     Alpha)       TARGET_HAS_JIT=1
4820  ;;
4821     ARM)         TARGET_HAS_JIT=1
4822  ;;
4823     Mips)        TARGET_HAS_JIT=0
4824  ;;
4825     PIC16)       TARGET_HAS_JIT=0
4826  ;;
4827     XCore)       TARGET_HAS_JIT=0
4828  ;;
4829     MSP430)      TARGET_HAS_JIT=0
4830  ;;
4831     SystemZ)     TARGET_HAS_JIT=0
4832  ;;
4833     Blackfin)    TARGET_HAS_JIT=0
4834  ;;
4835     MBlaze)      TARGET_HAS_JIT=0
4836  ;;
4837     *)           TARGET_HAS_JIT=0
4838  ;;
4839   esac
4840 fi
4841
4842 # Check whether --enable-doxygen was given.
4843 if test "${enable_doxygen+set}" = set; then
4844   enableval=$enable_doxygen;
4845 else
4846   enableval=default
4847 fi
4848
4849 case "$enableval" in
4850   yes) ENABLE_DOXYGEN=1
4851  ;;
4852   no)  ENABLE_DOXYGEN=0
4853  ;;
4854   default) ENABLE_DOXYGEN=0
4855  ;;
4856   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4857 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4858    { (exit 1); exit 1; }; } ;;
4859 esac
4860
4861 # Check whether --enable-threads was given.
4862 if test "${enable_threads+set}" = set; then
4863   enableval=$enable_threads;
4864 else
4865   enableval=default
4866 fi
4867
4868 case "$enableval" in
4869   yes) ENABLE_THREADS=1
4870  ;;
4871   no)  ENABLE_THREADS=0
4872  ;;
4873   default) ENABLE_THREADS=1
4874  ;;
4875   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4876 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4877    { (exit 1); exit 1; }; } ;;
4878 esac
4879
4880 cat >>confdefs.h <<_ACEOF
4881 #define ENABLE_THREADS $ENABLE_THREADS
4882 _ACEOF
4883
4884
4885 # Check whether --enable-pic was given.
4886 if test "${enable_pic+set}" = set; then
4887   enableval=$enable_pic;
4888 else
4889   enableval=default
4890 fi
4891
4892 case "$enableval" in
4893   yes) ENABLE_PIC=1
4894  ;;
4895   no)  ENABLE_PIC=0
4896  ;;
4897   default) ENABLE_PIC=1
4898  ;;
4899   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4901    { (exit 1); exit 1; }; } ;;
4902 esac
4903
4904 cat >>confdefs.h <<_ACEOF
4905 #define ENABLE_PIC $ENABLE_PIC
4906 _ACEOF
4907
4908
4909 # Check whether --enable-shared was given.
4910 if test "${enable_shared+set}" = set; then
4911   enableval=$enable_shared;
4912 else
4913   enableval=default
4914 fi
4915
4916 case "$enableval" in
4917   yes) ENABLE_SHARED=1
4918  ;;
4919   no)  ENABLE_SHARED=0
4920  ;;
4921   default) ENABLE_SHARED=0
4922  ;;
4923   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4924 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4925    { (exit 1); exit 1; }; } ;;
4926 esac
4927
4928 # Check whether --enable-timestamps was given.
4929 if test "${enable_timestamps+set}" = set; then
4930   enableval=$enable_timestamps;
4931 else
4932   enableval=default
4933 fi
4934
4935 case "$enableval" in
4936   yes) ENABLE_TIMESTAMPS=1
4937  ;;
4938   no)  ENABLE_TIMESTAMPS=0
4939  ;;
4940   default) ENABLE_TIMESTAMPS=1
4941  ;;
4942   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4943 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4944    { (exit 1); exit 1; }; } ;;
4945 esac
4946
4947 cat >>confdefs.h <<_ACEOF
4948 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4949 _ACEOF
4950
4951
4952 TARGETS_TO_BUILD=""
4953 # Check whether --enable-targets was given.
4954 if test "${enable_targets+set}" = set; then
4955   enableval=$enable_targets;
4956 else
4957   enableval=all
4958 fi
4959
4960 if test "$enableval" = host-only ; then
4961   enableval=host
4962 fi
4963 case "$enableval" in
4964   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4965   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4966       case "$a_target" in
4967         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4968         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4969         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4970         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4971         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4972         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4973         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4974         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4975         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4976         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4977         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4978         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4979         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4980         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4981         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4982         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4983         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4984         host) case "$llvm_cv_target_arch" in
4985             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4986             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4987             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4988             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4989             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4990             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4991             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4992             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4993             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4994             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4995             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4996             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4997             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4998             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4999             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5000 echo "$as_me: error: Can not set target to build" >&2;}
5001    { (exit 1); exit 1; }; } ;;
5002           esac ;;
5003         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5004 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5005    { (exit 1); exit 1; }; } ;;
5006       esac
5007   done
5008   ;;
5009 esac
5010 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5011
5012
5013 # Determine whether we are building LLVM support for the native architecture.
5014 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5015 for a_target in $TARGETS_TO_BUILD; do
5016   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5017     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5018
5019 cat >>confdefs.h <<_ACEOF
5020 #define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH
5021 _ACEOF
5022
5023
5024 cat >>confdefs.h <<_ACEOF
5025 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5026 _ACEOF
5027
5028   fi
5029 done
5030
5031 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5032 # target feature def files.
5033 LLVM_ENUM_TARGETS=""
5034 LLVM_ENUM_ASM_PRINTERS=""
5035 LLVM_ENUM_ASM_PARSERS=""
5036 LLVM_ENUM_DISASSEMBLERS=""
5037 for target_to_build in $TARGETS_TO_BUILD; do
5038   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5039   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5040     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5041   fi
5042   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5043     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5044   fi
5045   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5046     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5047   fi
5048 done
5049
5050
5051
5052
5053
5054 # Check whether --enable-cbe-printf-a was given.
5055 if test "${enable_cbe_printf_a+set}" = set; then
5056   enableval=$enable_cbe_printf_a;
5057 else
5058   enableval=default
5059 fi
5060
5061 case "$enableval" in
5062   yes) ENABLE_CBE_PRINTF_A=1
5063  ;;
5064   no)  ENABLE_CBE_PRINTF_A=0
5065  ;;
5066   default)  ENABLE_CBE_PRINTF_A=1
5067  ;;
5068   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5069 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5070    { (exit 1); exit 1; }; } ;;
5071 esac
5072
5073 cat >>confdefs.h <<_ACEOF
5074 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5075 _ACEOF
5076
5077
5078
5079 # Check whether --with-llvmgccdir was given.
5080 if test "${with_llvmgccdir+set}" = set; then
5081   withval=$with_llvmgccdir;
5082 else
5083   withval=default
5084 fi
5085
5086 case "$withval" in
5087   default) WITH_LLVMGCCDIR=default ;;
5088   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5089   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5090 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5091    { (exit 1); exit 1; }; } ;;
5092 esac
5093
5094
5095 # Check whether --with-llvmgcc was given.
5096 if test "${with_llvmgcc+set}" = set; then
5097   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5098       WITH_LLVMGCCDIR=""
5099 fi
5100
5101
5102
5103 # Check whether --with-llvmgxx was given.
5104 if test "${with_llvmgxx+set}" = set; then
5105   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5106     WITH_LLVMGCCDIR=""
5107 fi
5108
5109
5110 if test -n "$LLVMGCC"; then
5111    LLVMGCCCOMMAND="$LLVMGCC"
5112 fi
5113
5114 if test -n "$LLVMGXX"; then
5115    LLVMGXXCOMMAND="$LLVMGXX"
5116 fi
5117
5118 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5119    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5120 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5121    { (exit 1); exit 1; }; };
5122 fi
5123
5124 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5125    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5126 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5127    { (exit 1); exit 1; }; };
5128 fi
5129
5130
5131 # Check whether --with-clang was given.
5132 if test "${with_clang+set}" = set; then
5133   withval=$with_clang;
5134 else
5135   with_clang=default
5136 fi
5137
5138
5139
5140 # Check whether --with-built-clang was given.
5141 if test "${with_built_clang+set}" = set; then
5142   withval=$with_built_clang;
5143 else
5144   with_built_clang=check
5145 fi
5146
5147
5148 { echo "$as_me:$LINENO: checking clang compiler" >&5
5149 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5150 WITH_CLANGPATH=""
5151 WITH_BUILT_CLANG=0
5152 if test "$with_clang" != "default"; then
5153    WITH_CLANGPATH="$with_clang"
5154    if ! test -x "$WITH_CLANGPATH"; then
5155      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5156 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5157    { (exit 1); exit 1; }; }
5158    fi
5159 elif test "$with_built_clang" = "yes"; then
5160    WITH_BUILT_CLANG=1
5161 elif test "$with_built_clang" = "no"; then
5162    WITH_BUILT_CLANG=0
5163 else
5164    if test "$with_built_clang" != "check"; then
5165       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5166 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5167    { (exit 1); exit 1; }; }
5168    fi
5169
5170    if test -f ${srcdir}/tools/clang/README.txt; then
5171      WITH_BUILT_CLANG=1
5172    fi
5173 fi
5174
5175 if ! test -z "$WITH_CLANGPATH"; then
5176    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5177 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5178    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5179 elif test "$WITH_BUILT_CLANG" = "1"; then
5180    { echo "$as_me:$LINENO: result: built" >&5
5181 echo "${ECHO_T}built" >&6; }
5182 else
5183    { echo "$as_me:$LINENO: result: none" >&5
5184 echo "${ECHO_T}none" >&6; }
5185 fi
5186 CLANGPATH=$WITH_CLANGPATH
5187
5188 CLANGXXPATH=$WITH_CLANGXXPATH
5189
5190 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5191
5192
5193
5194 # Check whether --with-optimize-option was given.
5195 if test "${with_optimize_option+set}" = set; then
5196   withval=$with_optimize_option;
5197 else
5198   withval=default
5199 fi
5200
5201 { echo "$as_me:$LINENO: checking optimization flags" >&5
5202 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5203 case "$withval" in
5204   default)
5205     case "$llvm_cv_os_type" in
5206     FreeBSD) optimize_option=-O2 ;;
5207     MingW) optimize_option=-O2 ;;
5208     *)     optimize_option=-O3 ;;
5209     esac ;;
5210   *) optimize_option="$withval" ;;
5211 esac
5212 OPTIMIZE_OPTION=$optimize_option
5213
5214 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5215 echo "${ECHO_T}$optimize_option" >&6; }
5216
5217
5218 # Check whether --with-extra-options was given.
5219 if test "${with_extra_options+set}" = set; then
5220   withval=$with_extra_options;
5221 else
5222   withval=default
5223 fi
5224
5225 case "$withval" in
5226   default) EXTRA_OPTIONS= ;;
5227   *) EXTRA_OPTIONS=$withval ;;
5228 esac
5229 EXTRA_OPTIONS=$EXTRA_OPTIONS
5230
5231
5232 # Check whether --enable-bindings was given.
5233 if test "${enable_bindings+set}" = set; then
5234   enableval=$enable_bindings;
5235 else
5236   enableval=default
5237 fi
5238
5239 BINDINGS_TO_BUILD=""
5240 case "$enableval" in
5241   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5242   all ) BINDINGS_TO_BUILD="ocaml" ;;
5243   none | no) BINDINGS_TO_BUILD="" ;;
5244   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5245       case "$a_binding" in
5246         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5247         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5248 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5249    { (exit 1); exit 1; }; } ;;
5250       esac
5251   done
5252   ;;
5253 esac
5254
5255
5256 # Check whether --with-ocaml-libdir was given.
5257 if test "${with_ocaml_libdir+set}" = set; then
5258   withval=$with_ocaml_libdir;
5259 else
5260   withval=auto
5261 fi
5262
5263 case "$withval" in
5264   auto) with_ocaml_libdir="$withval" ;;
5265   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5266   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5267 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5268    { (exit 1); exit 1; }; } ;;
5269 esac
5270
5271
5272 # Check whether --with-c-include-dirs was given.
5273 if test "${with_c_include_dirs+set}" = set; then
5274   withval=$with_c_include_dirs;
5275 else
5276   withval=""
5277 fi
5278
5279
5280 cat >>confdefs.h <<_ACEOF
5281 #define C_INCLUDE_DIRS "$withval"
5282 _ACEOF
5283
5284
5285
5286 # Check whether --with-cxx-include-root was given.
5287 if test "${with_cxx_include_root+set}" = set; then
5288   withval=$with_cxx_include_root;
5289 else
5290   withval=""
5291 fi
5292
5293
5294 cat >>confdefs.h <<_ACEOF
5295 #define CXX_INCLUDE_ROOT "$withval"
5296 _ACEOF
5297
5298
5299
5300 # Check whether --with-cxx-include-arch was given.
5301 if test "${with_cxx_include_arch+set}" = set; then
5302   withval=$with_cxx_include_arch;
5303 else
5304   withval=""
5305 fi
5306
5307
5308 cat >>confdefs.h <<_ACEOF
5309 #define CXX_INCLUDE_ARCH "$withval"
5310 _ACEOF
5311
5312
5313
5314 # Check whether --with-cxx-include-32bit-dir was given.
5315 if test "${with_cxx_include_32bit_dir+set}" = set; then
5316   withval=$with_cxx_include_32bit_dir;
5317 else
5318   withval=""
5319 fi
5320
5321
5322 cat >>confdefs.h <<_ACEOF
5323 #define CXX_INCLUDE_32BIT_DIR "$withval"
5324 _ACEOF
5325
5326
5327
5328 # Check whether --with-cxx-include-64bit-dir was given.
5329 if test "${with_cxx_include_64bit_dir+set}" = set; then
5330   withval=$with_cxx_include_64bit_dir;
5331 else
5332   withval=""
5333 fi
5334
5335
5336 cat >>confdefs.h <<_ACEOF
5337 #define CXX_INCLUDE_64BIT_DIR "$withval"
5338 _ACEOF
5339
5340
5341
5342 # Check whether --with-binutils-include was given.
5343 if test "${with_binutils_include+set}" = set; then
5344   withval=$with_binutils_include;
5345 else
5346   withval=default
5347 fi
5348
5349 case "$withval" in
5350   default) WITH_BINUTILS_INCDIR=default ;;
5351   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5352   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5353 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5354    { (exit 1); exit 1; }; } ;;
5355 esac
5356 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5357   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5358
5359   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5360      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5361      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5362 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5363    { (exit 1); exit 1; }; };
5364   fi
5365 fi
5366
5367 # Check whether --enable-libffi was given.
5368 if test "${enable_libffi+set}" = set; then
5369   enableval=$enable_libffi; case "$enableval" in
5370     yes) llvm_cv_enable_libffi="yes" ;;
5371     no)  llvm_cv_enable_libffi="no"  ;;
5372     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5373 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5374    { (exit 1); exit 1; }; } ;;
5375   esac
5376 else
5377   llvm_cv_enable_libffi=no
5378 fi
5379
5380
5381 if test "$llvm_cv_os_type" = "Win32" ; then
5382    llvmc_dynamic="yes"
5383 else
5384    llvmc_dynamic="no"
5385 fi
5386
5387 # Check whether --enable-llvmc-dynamic was given.
5388 if test "${enable_llvmc_dynamic+set}" = set; then
5389   enableval=$enable_llvmc_dynamic;
5390 else
5391   enableval=$llvmc_dynamic
5392 fi
5393
5394 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5395    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5396
5397 else
5398    ENABLE_LLVMC_DYNAMIC=
5399
5400 fi
5401
5402 # Check whether --enable-llvmc-dynamic-plugins was given.
5403 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5404   enableval=$enable_llvmc_dynamic_plugins;
5405 else
5406   enableval=yes
5407 fi
5408
5409 if test ${enableval} = "yes" ; then
5410    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5411
5412 else
5413    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5414
5415 fi
5416
5417
5418 ac_ext=c
5419 ac_cpp='$CPP $CPPFLAGS'
5420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5424 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5425 # On Suns, sometimes $CPP names a directory.
5426 if test -n "$CPP" && test -d "$CPP"; then
5427   CPP=
5428 fi
5429 if test -z "$CPP"; then
5430   if test "${ac_cv_prog_CPP+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433       # Double quotes because CPP needs to be expanded
5434     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5435     do
5436       ac_preproc_ok=false
5437 for ac_c_preproc_warn_flag in '' yes
5438 do
5439   # Use a header file that comes with gcc, so configuring glibc
5440   # with a fresh cross-compiler works.
5441   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5442   # <limits.h> exists even on freestanding compilers.
5443   # On the NeXT, cc -E runs the code through the compiler's parser,
5444   # not just through cpp. "Syntax error" is here to catch this case.
5445   cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h.  */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h.  */
5451 #ifdef __STDC__
5452 # include <limits.h>
5453 #else
5454 # include <assert.h>
5455 #endif
5456                      Syntax error
5457 _ACEOF
5458 if { (ac_try="$ac_cpp conftest.$ac_ext"
5459 case "(($ac_try" in
5460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461   *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5465   ac_status=$?
5466   grep -v '^ *+' conftest.er1 >conftest.err
5467   rm -f conftest.er1
5468   cat conftest.err >&5
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } >/dev/null; then
5471   if test -s conftest.err; then
5472     ac_cpp_err=$ac_c_preproc_warn_flag
5473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5474   else
5475     ac_cpp_err=
5476   fi
5477 else
5478   ac_cpp_err=yes
5479 fi
5480 if test -z "$ac_cpp_err"; then
5481   :
5482 else
5483   echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486   # Broken: fails on valid input.
5487 continue
5488 fi
5489
5490 rm -f conftest.err conftest.$ac_ext
5491
5492   # OK, works on sane cases.  Now check whether nonexistent headers
5493   # can be detected and how.
5494   cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h.  */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h.  */
5500 #include <ac_nonexistent.h>
5501 _ACEOF
5502 if { (ac_try="$ac_cpp conftest.$ac_ext"
5503 case "(($ac_try" in
5504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505   *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5509   ac_status=$?
5510   grep -v '^ *+' conftest.er1 >conftest.err
5511   rm -f conftest.er1
5512   cat conftest.err >&5
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); } >/dev/null; then
5515   if test -s conftest.err; then
5516     ac_cpp_err=$ac_c_preproc_warn_flag
5517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5518   else
5519     ac_cpp_err=
5520   fi
5521 else
5522   ac_cpp_err=yes
5523 fi
5524 if test -z "$ac_cpp_err"; then
5525   # Broken: success on invalid input.
5526 continue
5527 else
5528   echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531   # Passes both tests.
5532 ac_preproc_ok=:
5533 break
5534 fi
5535
5536 rm -f conftest.err conftest.$ac_ext
5537
5538 done
5539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540 rm -f conftest.err conftest.$ac_ext
5541 if $ac_preproc_ok; then
5542   break
5543 fi
5544
5545     done
5546     ac_cv_prog_CPP=$CPP
5547
5548 fi
5549   CPP=$ac_cv_prog_CPP
5550 else
5551   ac_cv_prog_CPP=$CPP
5552 fi
5553 { echo "$as_me:$LINENO: result: $CPP" >&5
5554 echo "${ECHO_T}$CPP" >&6; }
5555 ac_preproc_ok=false
5556 for ac_c_preproc_warn_flag in '' yes
5557 do
5558   # Use a header file that comes with gcc, so configuring glibc
5559   # with a fresh cross-compiler works.
5560   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5561   # <limits.h> exists even on freestanding compilers.
5562   # On the NeXT, cc -E runs the code through the compiler's parser,
5563   # not just through cpp. "Syntax error" is here to catch this case.
5564   cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h.  */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h.  */
5570 #ifdef __STDC__
5571 # include <limits.h>
5572 #else
5573 # include <assert.h>
5574 #endif
5575                      Syntax error
5576 _ACEOF
5577 if { (ac_try="$ac_cpp conftest.$ac_ext"
5578 case "(($ac_try" in
5579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580   *) ac_try_echo=$ac_try;;
5581 esac
5582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5583   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5584   ac_status=$?
5585   grep -v '^ *+' conftest.er1 >conftest.err
5586   rm -f conftest.er1
5587   cat conftest.err >&5
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); } >/dev/null; then
5590   if test -s conftest.err; then
5591     ac_cpp_err=$ac_c_preproc_warn_flag
5592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5593   else
5594     ac_cpp_err=
5595   fi
5596 else
5597   ac_cpp_err=yes
5598 fi
5599 if test -z "$ac_cpp_err"; then
5600   :
5601 else
5602   echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605   # Broken: fails on valid input.
5606 continue
5607 fi
5608
5609 rm -f conftest.err conftest.$ac_ext
5610
5611   # OK, works on sane cases.  Now check whether nonexistent headers
5612   # can be detected and how.
5613   cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h.  */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h.  */
5619 #include <ac_nonexistent.h>
5620 _ACEOF
5621 if { (ac_try="$ac_cpp conftest.$ac_ext"
5622 case "(($ac_try" in
5623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624   *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5628   ac_status=$?
5629   grep -v '^ *+' conftest.er1 >conftest.err
5630   rm -f conftest.er1
5631   cat conftest.err >&5
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } >/dev/null; then
5634   if test -s conftest.err; then
5635     ac_cpp_err=$ac_c_preproc_warn_flag
5636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5637   else
5638     ac_cpp_err=
5639   fi
5640 else
5641   ac_cpp_err=yes
5642 fi
5643 if test -z "$ac_cpp_err"; then
5644   # Broken: success on invalid input.
5645 continue
5646 else
5647   echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650   # Passes both tests.
5651 ac_preproc_ok=:
5652 break
5653 fi
5654
5655 rm -f conftest.err conftest.$ac_ext
5656
5657 done
5658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659 rm -f conftest.err conftest.$ac_ext
5660 if $ac_preproc_ok; then
5661   :
5662 else
5663   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5664 See \`config.log' for more details." >&5
5665 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5666 See \`config.log' for more details." >&2;}
5667    { (exit 1); exit 1; }; }
5668 fi
5669
5670 ac_ext=c
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675
5676 ac_ext=c
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681 if test -n "$ac_tool_prefix"; then
5682   for ac_prog in gcc
5683   do
5684     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5688 if test "${ac_cv_prog_CC+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   if test -n "$CC"; then
5692   ac_cv_prog_CC="$CC" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697   IFS=$as_save_IFS
5698   test -z "$as_dir" && as_dir=.
5699   for ac_exec_ext in '' $ac_executable_extensions; do
5700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5701     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703     break 2
5704   fi
5705 done
5706 done
5707 IFS=$as_save_IFS
5708
5709 fi
5710 fi
5711 CC=$ac_cv_prog_CC
5712 if test -n "$CC"; then
5713   { echo "$as_me:$LINENO: result: $CC" >&5
5714 echo "${ECHO_T}$CC" >&6; }
5715 else
5716   { echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6; }
5718 fi
5719
5720
5721     test -n "$CC" && break
5722   done
5723 fi
5724 if test -z "$CC"; then
5725   ac_ct_CC=$CC
5726   for ac_prog in gcc
5727 do
5728   # Extract the first word of "$ac_prog", so it can be a program name with args.
5729 set dummy $ac_prog; ac_word=$2
5730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   if test -n "$ac_ct_CC"; then
5736   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743   for ac_exec_ext in '' $ac_executable_extensions; do
5744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5745     ac_cv_prog_ac_ct_CC="$ac_prog"
5746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5756 if test -n "$ac_ct_CC"; then
5757   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5758 echo "${ECHO_T}$ac_ct_CC" >&6; }
5759 else
5760   { echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6; }
5762 fi
5763
5764
5765   test -n "$ac_ct_CC" && break
5766 done
5767
5768   if test "x$ac_ct_CC" = x; then
5769     CC=""
5770   else
5771     case $cross_compiling:$ac_tool_warned in
5772 yes:)
5773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5774 whose name does not start with the host triplet.  If you think this
5775 configuration is useful to you, please write to autoconf@gnu.org." >&5
5776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5777 whose name does not start with the host triplet.  If you think this
5778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5779 ac_tool_warned=yes ;;
5780 esac
5781     CC=$ac_ct_CC
5782   fi
5783 fi
5784
5785
5786 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5787 See \`config.log' for more details." >&5
5788 echo "$as_me: error: no acceptable C compiler found in \$PATH
5789 See \`config.log' for more details." >&2;}
5790    { (exit 1); exit 1; }; }
5791
5792 # Provide some information about the compiler.
5793 echo "$as_me:$LINENO: checking for C compiler version" >&5
5794 ac_compiler=`set X $ac_compile; echo $2`
5795 { (ac_try="$ac_compiler --version >&5"
5796 case "(($ac_try" in
5797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798   *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801   (eval "$ac_compiler --version >&5") 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); }
5805 { (ac_try="$ac_compiler -v >&5"
5806 case "(($ac_try" in
5807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808   *) ac_try_echo=$ac_try;;
5809 esac
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811   (eval "$ac_compiler -v >&5") 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }
5815 { (ac_try="$ac_compiler -V >&5"
5816 case "(($ac_try" in
5817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818   *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821   (eval "$ac_compiler -V >&5") 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }
5825
5826 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5827 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5828 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   cat >conftest.$ac_ext <<_ACEOF
5832 /* confdefs.h.  */
5833 _ACEOF
5834 cat confdefs.h >>conftest.$ac_ext
5835 cat >>conftest.$ac_ext <<_ACEOF
5836 /* end confdefs.h.  */
5837
5838 int
5839 main ()
5840 {
5841 #ifndef __GNUC__
5842        choke me
5843 #endif
5844
5845   ;
5846   return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.$ac_objext
5850 if { (ac_try="$ac_compile"
5851 case "(($ac_try" in
5852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853   *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856   (eval "$ac_compile") 2>conftest.er1
5857   ac_status=$?
5858   grep -v '^ *+' conftest.er1 >conftest.err
5859   rm -f conftest.er1
5860   cat conftest.err >&5
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); } &&
5863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864   { (case "(($ac_try" in
5865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866   *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869   (eval "$ac_try") 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; } &&
5873          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5883   ac_compiler_gnu=yes
5884 else
5885   echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888         ac_compiler_gnu=no
5889 fi
5890
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5893
5894 fi
5895 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5896 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5897 GCC=`test $ac_compiler_gnu = yes && echo yes`
5898 ac_test_CFLAGS=${CFLAGS+set}
5899 ac_save_CFLAGS=$CFLAGS
5900 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5901 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_cc_g+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   ac_save_c_werror_flag=$ac_c_werror_flag
5906    ac_c_werror_flag=yes
5907    ac_cv_prog_cc_g=no
5908    CFLAGS="-g"
5909    cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915
5916 int
5917 main ()
5918 {
5919
5920   ;
5921   return 0;
5922 }
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (ac_try="$ac_compile"
5926 case "(($ac_try" in
5927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928   *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931   (eval "$ac_compile") 2>conftest.er1
5932   ac_status=$?
5933   grep -v '^ *+' conftest.er1 >conftest.err
5934   rm -f conftest.er1
5935   cat conftest.err >&5
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); } &&
5938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5948          { ac_try='test -s conftest.$ac_objext'
5949   { (case "(($ac_try" in
5950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951   *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954   (eval "$ac_try") 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_cv_prog_cc_g=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963         CFLAGS=""
5964       cat >conftest.$ac_ext <<_ACEOF
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970
5971 int
5972 main ()
5973 {
5974
5975   ;
5976   return 0;
5977 }
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5981 case "(($ac_try" in
5982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983   *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986   (eval "$ac_compile") 2>conftest.er1
5987   ac_status=$?
5988   grep -v '^ *+' conftest.er1 >conftest.err
5989   rm -f conftest.er1
5990   cat conftest.err >&5
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); } &&
5993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5994   { (case "(($ac_try" in
5995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996   *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999   (eval "$ac_try") 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; } &&
6003          { ac_try='test -s conftest.$ac_objext'
6004   { (case "(($ac_try" in
6005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006   *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009   (eval "$ac_try") 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; }; then
6013   :
6014 else
6015   echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018         ac_c_werror_flag=$ac_save_c_werror_flag
6019          CFLAGS="-g"
6020          cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h.  */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h.  */
6026
6027 int
6028 main ()
6029 {
6030
6031   ;
6032   return 0;
6033 }
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6037 case "(($ac_try" in
6038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039   *) ac_try_echo=$ac_try;;
6040 esac
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042   (eval "$ac_compile") 2>conftest.er1
6043   ac_status=$?
6044   grep -v '^ *+' conftest.er1 >conftest.err
6045   rm -f conftest.er1
6046   cat conftest.err >&5
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); } &&
6049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6050   { (case "(($ac_try" in
6051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052   *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055   (eval "$ac_try") 2>&5
6056   ac_status=$?
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); }; } &&
6059          { ac_try='test -s conftest.$ac_objext'
6060   { (case "(($ac_try" in
6061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062   *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065   (eval "$ac_try") 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; }; then
6069   ac_cv_prog_cc_g=yes
6070 else
6071   echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074
6075 fi
6076
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 fi
6079
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 fi
6082
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084    ac_c_werror_flag=$ac_save_c_werror_flag
6085 fi
6086 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6087 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6088 if test "$ac_test_CFLAGS" = set; then
6089   CFLAGS=$ac_save_CFLAGS
6090 elif test $ac_cv_prog_cc_g = yes; then
6091   if test "$GCC" = yes; then
6092     CFLAGS="-g -O2"
6093   else
6094     CFLAGS="-g"
6095   fi
6096 else
6097   if test "$GCC" = yes; then
6098     CFLAGS="-O2"
6099   else
6100     CFLAGS=
6101   fi
6102 fi
6103 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6104 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6105 if test "${ac_cv_prog_cc_c89+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   ac_cv_prog_cc_c89=no
6109 ac_save_CC=$CC
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116 #include <stdarg.h>
6117 #include <stdio.h>
6118 #include <sys/types.h>
6119 #include <sys/stat.h>
6120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6121 struct buf { int x; };
6122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6123 static char *e (p, i)
6124      char **p;
6125      int i;
6126 {
6127   return p[i];
6128 }
6129 static char *f (char * (*g) (char **, int), char **p, ...)
6130 {
6131   char *s;
6132   va_list v;
6133   va_start (v,p);
6134   s = g (p, va_arg (v,int));
6135   va_end (v);
6136   return s;
6137 }
6138
6139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6140    function prototypes and stuff, but not '\xHH' hex character constants.
6141    These don't provoke an error unfortunately, instead are silently treated
6142    as 'x'.  The following induces an error, until -std is added to get
6143    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6144    array size at least.  It's necessary to write '\x00'==0 to get something
6145    that's true only with -std.  */
6146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6147
6148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6149    inside strings and character constants.  */
6150 #define FOO(x) 'x'
6151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6152
6153 int test (int i, double x);
6154 struct s1 {int (*f) (int a);};
6155 struct s2 {int (*f) (double a);};
6156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6157 int argc;
6158 char **argv;
6159 int
6160 main ()
6161 {
6162 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6163   ;
6164   return 0;
6165 }
6166 _ACEOF
6167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6168         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6169 do
6170   CC="$ac_save_CC $ac_arg"
6171   rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6173 case "(($ac_try" in
6174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175   *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178   (eval "$ac_compile") 2>conftest.er1
6179   ac_status=$?
6180   grep -v '^ *+' conftest.er1 >conftest.err
6181   rm -f conftest.er1
6182   cat conftest.err >&5
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } &&
6185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6186   { (case "(($ac_try" in
6187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188   *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191   (eval "$ac_try") 2>&5
6192   ac_status=$?
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); }; } &&
6195          { ac_try='test -s conftest.$ac_objext'
6196   { (case "(($ac_try" in
6197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198   *) ac_try_echo=$ac_try;;
6199 esac
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201   (eval "$ac_try") 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; }; then
6205   ac_cv_prog_cc_c89=$ac_arg
6206 else
6207   echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210
6211 fi
6212
6213 rm -f core conftest.err conftest.$ac_objext
6214   test "x$ac_cv_prog_cc_c89" != "xno" && break
6215 done
6216 rm -f conftest.$ac_ext
6217 CC=$ac_save_CC
6218
6219 fi
6220 # AC_CACHE_VAL
6221 case "x$ac_cv_prog_cc_c89" in
6222   x)
6223     { echo "$as_me:$LINENO: result: none needed" >&5
6224 echo "${ECHO_T}none needed" >&6; } ;;
6225   xno)
6226     { echo "$as_me:$LINENO: result: unsupported" >&5
6227 echo "${ECHO_T}unsupported" >&6; } ;;
6228   *)
6229     CC="$CC $ac_cv_prog_cc_c89"
6230     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6231 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6232 esac
6233
6234
6235 ac_ext=c
6236 ac_cpp='$CPP $CPPFLAGS'
6237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6240
6241 ac_ext=cpp
6242 ac_cpp='$CXXCPP $CPPFLAGS'
6243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6246 if test -z "$CXX"; then
6247   if test -n "$CCC"; then
6248     CXX=$CCC
6249   else
6250     if test -n "$ac_tool_prefix"; then
6251   for ac_prog in g++
6252   do
6253     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6257 if test "${ac_cv_prog_CXX+set}" = set; then
6258   echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260   if test -n "$CXX"; then
6261   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266   IFS=$as_save_IFS
6267   test -z "$as_dir" && as_dir=.
6268   for ac_exec_ext in '' $ac_executable_extensions; do
6269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6270     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272     break 2
6273   fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 CXX=$ac_cv_prog_CXX
6281 if test -n "$CXX"; then
6282   { echo "$as_me:$LINENO: result: $CXX" >&5
6283 echo "${ECHO_T}$CXX" >&6; }
6284 else
6285   { echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6; }
6287 fi
6288
6289
6290     test -n "$CXX" && break
6291   done
6292 fi
6293 if test -z "$CXX"; then
6294   ac_ct_CXX=$CXX
6295   for ac_prog in g++
6296 do
6297   # Extract the first word of "$ac_prog", so it can be a program name with args.
6298 set dummy $ac_prog; ac_word=$2
6299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   if test -n "$ac_ct_CXX"; then
6305   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_prog_ac_ct_CXX="$ac_prog"
6315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6325 if test -n "$ac_ct_CXX"; then
6326   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6327 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6328 else
6329   { echo "$as_me:$LINENO: result: no" >&5
6330 echo "${ECHO_T}no" >&6; }
6331 fi
6332
6333
6334   test -n "$ac_ct_CXX" && break
6335 done
6336
6337   if test "x$ac_ct_CXX" = x; then
6338     CXX="g++"
6339   else
6340     case $cross_compiling:$ac_tool_warned in
6341 yes:)
6342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6343 whose name does not start with the host triplet.  If you think this
6344 configuration is useful to you, please write to autoconf@gnu.org." >&5
6345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6346 whose name does not start with the host triplet.  If you think this
6347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6348 ac_tool_warned=yes ;;
6349 esac
6350     CXX=$ac_ct_CXX
6351   fi
6352 fi
6353
6354   fi
6355 fi
6356 # Provide some information about the compiler.
6357 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6358 ac_compiler=`set X $ac_compile; echo $2`
6359 { (ac_try="$ac_compiler --version >&5"
6360 case "(($ac_try" in
6361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362   *) ac_try_echo=$ac_try;;
6363 esac
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365   (eval "$ac_compiler --version >&5") 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }
6369 { (ac_try="$ac_compiler -v >&5"
6370 case "(($ac_try" in
6371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372   *) ac_try_echo=$ac_try;;
6373 esac
6374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6375   (eval "$ac_compiler -v >&5") 2>&5
6376   ac_status=$?
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); }
6379 { (ac_try="$ac_compiler -V >&5"
6380 case "(($ac_try" in
6381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382   *) ac_try_echo=$ac_try;;
6383 esac
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385   (eval "$ac_compiler -V >&5") 2>&5
6386   ac_status=$?
6387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388   (exit $ac_status); }
6389
6390 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6391 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6392 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395   cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h.  */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h.  */
6401
6402 int
6403 main ()
6404 {
6405 #ifndef __GNUC__
6406        choke me
6407 #endif
6408
6409   ;
6410   return 0;
6411 }
6412 _ACEOF
6413 rm -f conftest.$ac_objext
6414 if { (ac_try="$ac_compile"
6415 case "(($ac_try" in
6416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417   *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420   (eval "$ac_compile") 2>conftest.er1
6421   ac_status=$?
6422   grep -v '^ *+' conftest.er1 >conftest.err
6423   rm -f conftest.er1
6424   cat conftest.err >&5
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); } &&
6427          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6428   { (case "(($ac_try" in
6429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430   *) ac_try_echo=$ac_try;;
6431 esac
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433   (eval "$ac_try") 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); }; } &&
6437          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6447   ac_compiler_gnu=yes
6448 else
6449   echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452         ac_compiler_gnu=no
6453 fi
6454
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6457
6458 fi
6459 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6460 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6461 GXX=`test $ac_compiler_gnu = yes && echo yes`
6462 ac_test_CXXFLAGS=${CXXFLAGS+set}
6463 ac_save_CXXFLAGS=$CXXFLAGS
6464 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6465 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6466 if test "${ac_cv_prog_cxx_g+set}" = set; then
6467   echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6470    ac_cxx_werror_flag=yes
6471    ac_cv_prog_cxx_g=no
6472    CXXFLAGS="-g"
6473    cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h.  */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h.  */
6479
6480 int
6481 main ()
6482 {
6483
6484   ;
6485   return 0;
6486 }
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (ac_try="$ac_compile"
6490 case "(($ac_try" in
6491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492   *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495   (eval "$ac_compile") 2>conftest.er1
6496   ac_status=$?
6497   grep -v '^ *+' conftest.er1 >conftest.err
6498   rm -f conftest.er1
6499   cat conftest.err >&5
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); } &&
6502          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
6512          { ac_try='test -s conftest.$ac_objext'
6513   { (case "(($ac_try" in
6514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515   *) ac_try_echo=$ac_try;;
6516 esac
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518   (eval "$ac_try") 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }; }; then
6522   ac_cv_prog_cxx_g=yes
6523 else
6524   echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6526
6527         CXXFLAGS=""
6528       cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534
6535 int
6536 main ()
6537 {
6538
6539   ;
6540   return 0;
6541 }
6542 _ACEOF
6543 rm -f conftest.$ac_objext
6544 if { (ac_try="$ac_compile"
6545 case "(($ac_try" in
6546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547   *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550   (eval "$ac_compile") 2>conftest.er1
6551   ac_status=$?
6552   grep -v '^ *+' conftest.er1 >conftest.err
6553   rm -f conftest.er1
6554   cat conftest.err >&5
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); } &&
6557          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6558   { (case "(($ac_try" in
6559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560   *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563   (eval "$ac_try") 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; } &&
6567          { ac_try='test -s conftest.$ac_objext'
6568   { (case "(($ac_try" in
6569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570   *) ac_try_echo=$ac_try;;
6571 esac
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573   (eval "$ac_try") 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; }; then
6577   :
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6583          CXXFLAGS="-g"
6584          cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590
6591 int
6592 main ()
6593 {
6594
6595   ;
6596   return 0;
6597 }
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6601 case "(($ac_try" in
6602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603   *) ac_try_echo=$ac_try;;
6604 esac
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606   (eval "$ac_compile") 2>conftest.er1
6607   ac_status=$?
6608   grep -v '^ *+' conftest.er1 >conftest.err
6609   rm -f conftest.er1
6610   cat conftest.err >&5
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } &&
6613          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6614   { (case "(($ac_try" in
6615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616   *) ac_try_echo=$ac_try;;
6617 esac
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619   (eval "$ac_try") 2>&5
6620   ac_status=$?
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); }; } &&
6623          { ac_try='test -s conftest.$ac_objext'
6624   { (case "(($ac_try" in
6625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626   *) ac_try_echo=$ac_try;;
6627 esac
6628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6629   (eval "$ac_try") 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); }; }; then
6633   ac_cv_prog_cxx_g=yes
6634 else
6635   echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6637
6638
6639 fi
6640
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 fi
6643
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 fi
6646
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6649 fi
6650 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6651 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6652 if test "$ac_test_CXXFLAGS" = set; then
6653   CXXFLAGS=$ac_save_CXXFLAGS
6654 elif test $ac_cv_prog_cxx_g = yes; then
6655   if test "$GXX" = yes; then
6656     CXXFLAGS="-g -O2"
6657   else
6658     CXXFLAGS="-g"
6659   fi
6660 else
6661   if test "$GXX" = yes; then
6662     CXXFLAGS="-O2"
6663   else
6664     CXXFLAGS=
6665   fi
6666 fi
6667 ac_ext=c
6668 ac_cpp='$CPP $CPPFLAGS'
6669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6672
6673
6674 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6675 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6676 if test "${lt_cv_path_NM+set}" = set; then
6677   echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679   if test -n "$NM"; then
6680   # Let the user override the test.
6681   lt_cv_path_NM="$NM"
6682 else
6683   lt_nm_to_check="${ac_tool_prefix}nm"
6684   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6685     lt_nm_to_check="$lt_nm_to_check nm"
6686   fi
6687   for lt_tmp_nm in $lt_nm_to_check; do
6688     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6689     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6690       IFS="$lt_save_ifs"
6691       test -z "$ac_dir" && ac_dir=.
6692       tmp_nm="$ac_dir/$lt_tmp_nm"
6693       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6694         # Check to see if the nm accepts a BSD-compat flag.
6695         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6696         #   nm: unknown option "B" ignored
6697         # Tru64's nm complains that /dev/null is an invalid object file
6698         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6699         */dev/null* | *'Invalid file or object type'*)
6700           lt_cv_path_NM="$tmp_nm -B"
6701           break
6702           ;;
6703         *)
6704           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6705           */dev/null*)
6706             lt_cv_path_NM="$tmp_nm -p"
6707             break
6708             ;;
6709           *)
6710             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6711             continue # so that we can try to find one that supports BSD flags
6712             ;;
6713           esac
6714           ;;
6715         esac
6716       fi
6717     done
6718     IFS="$lt_save_ifs"
6719   done
6720   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6721 fi
6722 fi
6723 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6724 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6725 NM="$lt_cv_path_NM"
6726
6727
6728
6729 { echo "$as_me:$LINENO: checking for GNU make" >&5
6730 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6731 if test "${llvm_cv_gnu_make_command+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   llvm_cv_gnu_make_command=''
6735  for a in "$MAKE" make gmake gnumake ; do
6736   if test -z "$a" ; then continue ; fi ;
6737   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6738   then
6739    llvm_cv_gnu_make_command=$a ;
6740    break;
6741   fi
6742  done
6743 fi
6744 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6745 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6746  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6747    ifGNUmake='' ;
6748  else
6749    ifGNUmake='#' ;
6750    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6751 echo "${ECHO_T}\"Not found\"" >&6; };
6752  fi
6753
6754
6755 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6756 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6757 LN_S=$as_ln_s
6758 if test "$LN_S" = "ln -s"; then
6759   { echo "$as_me:$LINENO: result: yes" >&5
6760 echo "${ECHO_T}yes" >&6; }
6761 else
6762   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6763 echo "${ECHO_T}no, using $LN_S" >&6; }
6764 fi
6765
6766 # Extract the first word of "cmp", so it can be a program name with args.
6767 set dummy cmp; ac_word=$2
6768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770 if test "${ac_cv_path_CMP+set}" = set; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773   case $CMP in
6774   [\\/]* | ?:[\\/]*)
6775   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6776   ;;
6777   *)
6778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781   IFS=$as_save_IFS
6782   test -z "$as_dir" && as_dir=.
6783   for ac_exec_ext in '' $ac_executable_extensions; do
6784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6785     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787     break 2
6788   fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6794   ;;
6795 esac
6796 fi
6797 CMP=$ac_cv_path_CMP
6798 if test -n "$CMP"; then
6799   { echo "$as_me:$LINENO: result: $CMP" >&5
6800 echo "${ECHO_T}$CMP" >&6; }
6801 else
6802   { echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6; }
6804 fi
6805
6806
6807 # Extract the first word of "cp", so it can be a program name with args.
6808 set dummy cp; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_CP+set}" = set; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   case $CP in
6815   [\\/]* | ?:[\\/]*)
6816   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6817   ;;
6818   *)
6819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6835   ;;
6836 esac
6837 fi
6838 CP=$ac_cv_path_CP
6839 if test -n "$CP"; then
6840   { echo "$as_me:$LINENO: result: $CP" >&5
6841 echo "${ECHO_T}$CP" >&6; }
6842 else
6843   { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6845 fi
6846
6847
6848 # Extract the first word of "date", so it can be a program name with args.
6849 set dummy date; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_DATE+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855   case $DATE in
6856   [\\/]* | ?:[\\/]*)
6857   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6858   ;;
6859   *)
6860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865   for ac_exec_ext in '' $ac_executable_extensions; do
6866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6876   ;;
6877 esac
6878 fi
6879 DATE=$ac_cv_path_DATE
6880 if test -n "$DATE"; then
6881   { echo "$as_me:$LINENO: result: $DATE" >&5
6882 echo "${ECHO_T}$DATE" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888
6889 # Extract the first word of "find", so it can be a program name with args.
6890 set dummy find; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_path_FIND+set}" = set; then
6894   echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896   case $FIND in
6897   [\\/]* | ?:[\\/]*)
6898   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6899   ;;
6900   *)
6901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906   for ac_exec_ext in '' $ac_executable_extensions; do
6907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6917   ;;
6918 esac
6919 fi
6920 FIND=$ac_cv_path_FIND
6921 if test -n "$FIND"; then
6922   { echo "$as_me:$LINENO: result: $FIND" >&5
6923 echo "${ECHO_T}$FIND" >&6; }
6924 else
6925   { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6927 fi
6928
6929
6930 # Extract the first word of "grep", so it can be a program name with args.
6931 set dummy grep; ac_word=$2
6932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934 if test "${ac_cv_path_GREP+set}" = set; then
6935   echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937   case $GREP in
6938   [\\/]* | ?:[\\/]*)
6939   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6940   ;;
6941   *)
6942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947   for ac_exec_ext in '' $ac_executable_extensions; do
6948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6949     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6958   ;;
6959 esac
6960 fi
6961 GREP=$ac_cv_path_GREP
6962 if test -n "$GREP"; then
6963   { echo "$as_me:$LINENO: result: $GREP" >&5
6964 echo "${ECHO_T}$GREP" >&6; }
6965 else
6966   { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6968 fi
6969
6970
6971 # Extract the first word of "mkdir", so it can be a program name with args.
6972 set dummy mkdir; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_MKDIR+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   case $MKDIR in
6979   [\\/]* | ?:[\\/]*)
6980   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6981   ;;
6982   *)
6983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988   for ac_exec_ext in '' $ac_executable_extensions; do
6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6999   ;;
7000 esac
7001 fi
7002 MKDIR=$ac_cv_path_MKDIR
7003 if test -n "$MKDIR"; then
7004   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7005 echo "${ECHO_T}$MKDIR" >&6; }
7006 else
7007   { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7009 fi
7010
7011
7012 # Extract the first word of "mv", so it can be a program name with args.
7013 set dummy mv; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_MV+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   case $MV in
7020   [\\/]* | ?:[\\/]*)
7021   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7022   ;;
7023   *)
7024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027   IFS=$as_save_IFS
7028   test -z "$as_dir" && as_dir=.
7029   for ac_exec_ext in '' $ac_executable_extensions; do
7030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033     break 2
7034   fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7040   ;;
7041 esac
7042 fi
7043 MV=$ac_cv_path_MV
7044 if test -n "$MV"; then
7045   { echo "$as_me:$LINENO: result: $MV" >&5
7046 echo "${ECHO_T}$MV" >&6; }
7047 else
7048   { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7050 fi
7051
7052
7053 if test -n "$ac_tool_prefix"; then
7054   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058 if test "${ac_cv_prog_RANLIB+set}" = set; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   if test -n "$RANLIB"; then
7062   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069   for ac_exec_ext in '' $ac_executable_extensions; do
7070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079 fi
7080 fi
7081 RANLIB=$ac_cv_prog_RANLIB
7082 if test -n "$RANLIB"; then
7083   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7084 echo "${ECHO_T}$RANLIB" >&6; }
7085 else
7086   { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7088 fi
7089
7090
7091 fi
7092 if test -z "$ac_cv_prog_RANLIB"; then
7093   ac_ct_RANLIB=$RANLIB
7094   # Extract the first word of "ranlib", so it can be a program name with args.
7095 set dummy ranlib; ac_word=$2
7096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   if test -n "$ac_ct_RANLIB"; then
7102   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109   for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_prog_ac_ct_RANLIB="ranlib"
7112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7122 if test -n "$ac_ct_RANLIB"; then
7123   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7124 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7125 else
7126   { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7129
7130   if test "x$ac_ct_RANLIB" = x; then
7131     RANLIB=":"
7132   else
7133     case $cross_compiling:$ac_tool_warned in
7134 yes:)
7135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7136 whose name does not start with the host triplet.  If you think this
7137 configuration is useful to you, please write to autoconf@gnu.org." >&5
7138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7139 whose name does not start with the host triplet.  If you think this
7140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143     RANLIB=$ac_ct_RANLIB
7144   fi
7145 else
7146   RANLIB="$ac_cv_prog_RANLIB"
7147 fi
7148
7149 if test -n "$ac_tool_prefix"; then
7150   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}ar; ac_word=$2
7152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7154 if test "${ac_cv_prog_AR+set}" = set; then
7155   echo $ECHO_N "(cached) $ECHO_C" >&6
7156 else
7157   if test -n "$AR"; then
7158   ac_cv_prog_AR="$AR" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165   for ac_exec_ext in '' $ac_executable_extensions; do
7166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167     ac_cv_prog_AR="${ac_tool_prefix}ar"
7168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 AR=$ac_cv_prog_AR
7178 if test -n "$AR"; then
7179   { echo "$as_me:$LINENO: result: $AR" >&5
7180 echo "${ECHO_T}$AR" >&6; }
7181 else
7182   { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7184 fi
7185
7186
7187 fi
7188 if test -z "$ac_cv_prog_AR"; then
7189   ac_ct_AR=$AR
7190   # Extract the first word of "ar", so it can be a program name with args.
7191 set dummy ar; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   if test -n "$ac_ct_AR"; then
7198   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203   IFS=$as_save_IFS
7204   test -z "$as_dir" && as_dir=.
7205   for ac_exec_ext in '' $ac_executable_extensions; do
7206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207     ac_cv_prog_ac_ct_AR="ar"
7208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209     break 2
7210   fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7218 if test -n "$ac_ct_AR"; then
7219   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7220 echo "${ECHO_T}$ac_ct_AR" >&6; }
7221 else
7222   { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7224 fi
7225
7226   if test "x$ac_ct_AR" = x; then
7227     AR="false"
7228   else
7229     case $cross_compiling:$ac_tool_warned in
7230 yes:)
7231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7232 whose name does not start with the host triplet.  If you think this
7233 configuration is useful to you, please write to autoconf@gnu.org." >&5
7234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7235 whose name does not start with the host triplet.  If you think this
7236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7237 ac_tool_warned=yes ;;
7238 esac
7239     AR=$ac_ct_AR
7240   fi
7241 else
7242   AR="$ac_cv_prog_AR"
7243 fi
7244
7245 # Extract the first word of "rm", so it can be a program name with args.
7246 set dummy rm; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_RM+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   case $RM in
7253   [\\/]* | ?:[\\/]*)
7254   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7255   ;;
7256   *)
7257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262   for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7273   ;;
7274 esac
7275 fi
7276 RM=$ac_cv_path_RM
7277 if test -n "$RM"; then
7278   { echo "$as_me:$LINENO: result: $RM" >&5
7279 echo "${ECHO_T}$RM" >&6; }
7280 else
7281   { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7283 fi
7284
7285
7286 # Extract the first word of "sed", so it can be a program name with args.
7287 set dummy sed; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_path_SED+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   case $SED in
7294   [\\/]* | ?:[\\/]*)
7295   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7296   ;;
7297   *)
7298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303   for ac_exec_ext in '' $ac_executable_extensions; do
7304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7305     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310 done
7311 IFS=$as_save_IFS
7312
7313   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7314   ;;
7315 esac
7316 fi
7317 SED=$ac_cv_path_SED
7318 if test -n "$SED"; then
7319   { echo "$as_me:$LINENO: result: $SED" >&5
7320 echo "${ECHO_T}$SED" >&6; }
7321 else
7322   { echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6; }
7324 fi
7325
7326
7327 # Extract the first word of "tar", so it can be a program name with args.
7328 set dummy tar; ac_word=$2
7329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7331 if test "${ac_cv_path_TAR+set}" = set; then
7332   echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334   case $TAR in
7335   [\\/]* | ?:[\\/]*)
7336   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7337   ;;
7338   *)
7339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7341 do
7342   IFS=$as_save_IFS
7343   test -z "$as_dir" && as_dir=.
7344   for ac_exec_ext in '' $ac_executable_extensions; do
7345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7346     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348     break 2
7349   fi
7350 done
7351 done
7352 IFS=$as_save_IFS
7353
7354   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7355   ;;
7356 esac
7357 fi
7358 TAR=$ac_cv_path_TAR
7359 if test -n "$TAR"; then
7360   { echo "$as_me:$LINENO: result: $TAR" >&5
7361 echo "${ECHO_T}$TAR" >&6; }
7362 else
7363   { echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6; }
7365 fi
7366
7367
7368 # Extract the first word of "pwd", so it can be a program name with args.
7369 set dummy pwd; ac_word=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_path_BINPWD+set}" = set; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375   case $BINPWD in
7376   [\\/]* | ?:[\\/]*)
7377   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7378   ;;
7379   *)
7380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383   IFS=$as_save_IFS
7384   test -z "$as_dir" && as_dir=.
7385   for ac_exec_ext in '' $ac_executable_extensions; do
7386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7387     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389     break 2
7390   fi
7391 done
7392 done
7393 IFS=$as_save_IFS
7394
7395   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7396   ;;
7397 esac
7398 fi
7399 BINPWD=$ac_cv_path_BINPWD
7400 if test -n "$BINPWD"; then
7401   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7402 echo "${ECHO_T}$BINPWD" >&6; }
7403 else
7404   { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7406 fi
7407
7408
7409
7410 # Extract the first word of "Graphviz", so it can be a program name with args.
7411 set dummy Graphviz; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   case $GRAPHVIZ in
7418   [\\/]* | ?:[\\/]*)
7419   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7420   ;;
7421   *)
7422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7438   ;;
7439 esac
7440 fi
7441 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7442 if test -n "$GRAPHVIZ"; then
7443   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7444 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7445 else
7446   { echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6; }
7448 fi
7449
7450
7451 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7452
7453 cat >>confdefs.h <<\_ACEOF
7454 #define HAVE_GRAPHVIZ 1
7455 _ACEOF
7456
7457     if test "$llvm_cv_os_type" = "MingW" ; then
7458     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7459   fi
7460
7461 cat >>confdefs.h <<_ACEOF
7462 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7463 _ACEOF
7464
7465 fi
7466 # Extract the first word of "dot", so it can be a program name with args.
7467 set dummy dot; ac_word=$2
7468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7470 if test "${ac_cv_path_DOT+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   case $DOT in
7474   [\\/]* | ?:[\\/]*)
7475   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7476   ;;
7477   *)
7478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483   for ac_exec_ext in '' $ac_executable_extensions; do
7484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7485     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490 done
7491 IFS=$as_save_IFS
7492
7493   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7494   ;;
7495 esac
7496 fi
7497 DOT=$ac_cv_path_DOT
7498 if test -n "$DOT"; then
7499   { echo "$as_me:$LINENO: result: $DOT" >&5
7500 echo "${ECHO_T}$DOT" >&6; }
7501 else
7502   { echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6; }
7504 fi
7505
7506
7507 if test "$DOT" != "echo dot" ; then
7508
7509 cat >>confdefs.h <<\_ACEOF
7510 #define HAVE_DOT 1
7511 _ACEOF
7512
7513     if test "$llvm_cv_os_type" = "MingW" ; then
7514     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7515   fi
7516
7517 cat >>confdefs.h <<_ACEOF
7518 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7519 _ACEOF
7520
7521 fi
7522 # Extract the first word of "fdp", so it can be a program name with args.
7523 set dummy fdp; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_FDP+set}" = set; then
7527   echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529   case $FDP in
7530   [\\/]* | ?:[\\/]*)
7531   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7532   ;;
7533   *)
7534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537   IFS=$as_save_IFS
7538   test -z "$as_dir" && as_dir=.
7539   for ac_exec_ext in '' $ac_executable_extensions; do
7540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543     break 2
7544   fi
7545 done
7546 done
7547 IFS=$as_save_IFS
7548
7549   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7550   ;;
7551 esac
7552 fi
7553 FDP=$ac_cv_path_FDP
7554 if test -n "$FDP"; then
7555   { echo "$as_me:$LINENO: result: $FDP" >&5
7556 echo "${ECHO_T}$FDP" >&6; }
7557 else
7558   { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7560 fi
7561
7562
7563 if test "$FDP" != "echo fdp" ; then
7564
7565 cat >>confdefs.h <<\_ACEOF
7566 #define HAVE_FDP 1
7567 _ACEOF
7568
7569     if test "$llvm_cv_os_type" = "MingW" ; then
7570     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7571   fi
7572
7573 cat >>confdefs.h <<_ACEOF
7574 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7575 _ACEOF
7576
7577 fi
7578 # Extract the first word of "neato", so it can be a program name with args.
7579 set dummy neato; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_path_NEATO+set}" = set; then
7583   echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585   case $NEATO in
7586   [\\/]* | ?:[\\/]*)
7587   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7588   ;;
7589   *)
7590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593   IFS=$as_save_IFS
7594   test -z "$as_dir" && as_dir=.
7595   for ac_exec_ext in '' $ac_executable_extensions; do
7596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7597     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599     break 2
7600   fi
7601 done
7602 done
7603 IFS=$as_save_IFS
7604
7605   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7606   ;;
7607 esac
7608 fi
7609 NEATO=$ac_cv_path_NEATO
7610 if test -n "$NEATO"; then
7611   { echo "$as_me:$LINENO: result: $NEATO" >&5
7612 echo "${ECHO_T}$NEATO" >&6; }
7613 else
7614   { echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6; }
7616 fi
7617
7618
7619 if test "$NEATO" != "echo neato" ; then
7620
7621 cat >>confdefs.h <<\_ACEOF
7622 #define HAVE_NEATO 1
7623 _ACEOF
7624
7625     if test "$llvm_cv_os_type" = "MingW" ; then
7626     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7627   fi
7628
7629 cat >>confdefs.h <<_ACEOF
7630 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7631 _ACEOF
7632
7633 fi
7634 # Extract the first word of "twopi", so it can be a program name with args.
7635 set dummy twopi; ac_word=$2
7636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638 if test "${ac_cv_path_TWOPI+set}" = set; then
7639   echo $ECHO_N "(cached) $ECHO_C" >&6
7640 else
7641   case $TWOPI in
7642   [\\/]* | ?:[\\/]*)
7643   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7644   ;;
7645   *)
7646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651   for ac_exec_ext in '' $ac_executable_extensions; do
7652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7653     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658 done
7659 IFS=$as_save_IFS
7660
7661   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7662   ;;
7663 esac
7664 fi
7665 TWOPI=$ac_cv_path_TWOPI
7666 if test -n "$TWOPI"; then
7667   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7668 echo "${ECHO_T}$TWOPI" >&6; }
7669 else
7670   { echo "$as_me:$LINENO: result: no" >&5
7671 echo "${ECHO_T}no" >&6; }
7672 fi
7673
7674
7675 if test "$TWOPI" != "echo twopi" ; then
7676
7677 cat >>confdefs.h <<\_ACEOF
7678 #define HAVE_TWOPI 1
7679 _ACEOF
7680
7681     if test "$llvm_cv_os_type" = "MingW" ; then
7682     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7683   fi
7684
7685 cat >>confdefs.h <<_ACEOF
7686 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7687 _ACEOF
7688
7689 fi
7690 # Extract the first word of "circo", so it can be a program name with args.
7691 set dummy circo; ac_word=$2
7692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7694 if test "${ac_cv_path_CIRCO+set}" = set; then
7695   echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697   case $CIRCO in
7698   [\\/]* | ?:[\\/]*)
7699   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7700   ;;
7701   *)
7702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707   for ac_exec_ext in '' $ac_executable_extensions; do
7708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7709     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7718   ;;
7719 esac
7720 fi
7721 CIRCO=$ac_cv_path_CIRCO
7722 if test -n "$CIRCO"; then
7723   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7724 echo "${ECHO_T}$CIRCO" >&6; }
7725 else
7726   { echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6; }
7728 fi
7729
7730
7731 if test "$CIRCO" != "echo circo" ; then
7732
7733 cat >>confdefs.h <<\_ACEOF
7734 #define HAVE_CIRCO 1
7735 _ACEOF
7736
7737     if test "$llvm_cv_os_type" = "MingW" ; then
7738     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7739   fi
7740
7741 cat >>confdefs.h <<_ACEOF
7742 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7743 _ACEOF
7744
7745 fi
7746 for ac_prog in gv gsview32
7747 do
7748   # Extract the first word of "$ac_prog", so it can be a program name with args.
7749 set dummy $ac_prog; ac_word=$2
7750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7752 if test "${ac_cv_path_GV+set}" = set; then
7753   echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755   case $GV in
7756   [\\/]* | ?:[\\/]*)
7757   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7758   ;;
7759   *)
7760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763   IFS=$as_save_IFS
7764   test -z "$as_dir" && as_dir=.
7765   for ac_exec_ext in '' $ac_executable_extensions; do
7766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7767     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769     break 2
7770   fi
7771 done
7772 done
7773 IFS=$as_save_IFS
7774
7775   ;;
7776 esac
7777 fi
7778 GV=$ac_cv_path_GV
7779 if test -n "$GV"; then
7780   { echo "$as_me:$LINENO: result: $GV" >&5
7781 echo "${ECHO_T}$GV" >&6; }
7782 else
7783   { echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6; }
7785 fi
7786
7787
7788   test -n "$GV" && break
7789 done
7790 test -n "$GV" || GV="echo gv"
7791
7792 if test "$GV" != "echo gv" ; then
7793
7794 cat >>confdefs.h <<\_ACEOF
7795 #define HAVE_GV 1
7796 _ACEOF
7797
7798     if test "$llvm_cv_os_type" = "MingW" ; then
7799     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7800   fi
7801
7802 cat >>confdefs.h <<_ACEOF
7803 #define LLVM_PATH_GV "$GV${EXEEXT}"
7804 _ACEOF
7805
7806 fi
7807 # Extract the first word of "dotty", so it can be a program name with args.
7808 set dummy dotty; ac_word=$2
7809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7811 if test "${ac_cv_path_DOTTY+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   case $DOTTY in
7815   [\\/]* | ?:[\\/]*)
7816   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7817   ;;
7818   *)
7819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824   for ac_exec_ext in '' $ac_executable_extensions; do
7825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7826     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7835   ;;
7836 esac
7837 fi
7838 DOTTY=$ac_cv_path_DOTTY
7839 if test -n "$DOTTY"; then
7840   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7841 echo "${ECHO_T}$DOTTY" >&6; }
7842 else
7843   { echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6; }
7845 fi
7846
7847
7848 if test "$DOTTY" != "echo dotty" ; then
7849
7850 cat >>confdefs.h <<\_ACEOF
7851 #define HAVE_DOTTY 1
7852 _ACEOF
7853
7854     if test "$llvm_cv_os_type" = "MingW" ; then
7855     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7856   fi
7857
7858 cat >>confdefs.h <<_ACEOF
7859 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7860 _ACEOF
7861
7862 fi
7863
7864
7865 # Extract the first word of "perl", so it can be a program name with args.
7866 set dummy perl; ac_word=$2
7867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869 if test "${ac_cv_path_PERL+set}" = set; then
7870   echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872   case $PERL in
7873   [\\/]* | ?:[\\/]*)
7874   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7875   ;;
7876   *)
7877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880   IFS=$as_save_IFS
7881   test -z "$as_dir" && as_dir=.
7882   for ac_exec_ext in '' $ac_executable_extensions; do
7883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7884     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886     break 2
7887   fi
7888 done
7889 done
7890 IFS=$as_save_IFS
7891
7892   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7893   ;;
7894 esac
7895 fi
7896 PERL=$ac_cv_path_PERL
7897 if test -n "$PERL"; then
7898   { echo "$as_me:$LINENO: result: $PERL" >&5
7899 echo "${ECHO_T}$PERL" >&6; }
7900 else
7901   { echo "$as_me:$LINENO: result: no" >&5
7902 echo "${ECHO_T}no" >&6; }
7903 fi
7904
7905
7906 if test "$PERL" != "none"; then
7907   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7908 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7909   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7910     { echo "$as_me:$LINENO: result: yes" >&5
7911 echo "${ECHO_T}yes" >&6; }
7912   else
7913     PERL=none
7914     { echo "$as_me:$LINENO: result: not found" >&5
7915 echo "${ECHO_T}not found" >&6; }
7916   fi
7917 fi
7918
7919
7920 if test x"$PERL" = xnone; then
7921    HAVE_PERL=0
7922
7923    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7924 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7925    { (exit 1); exit 1; }; }
7926 else
7927    HAVE_PERL=1
7928
7929 fi
7930
7931 # Find a good install program.  We prefer a C program (faster),
7932 # so one script is as good as another.  But avoid the broken or
7933 # incompatible versions:
7934 # SysV /etc/install, /usr/sbin/install
7935 # SunOS /usr/etc/install
7936 # IRIX /sbin/install
7937 # AIX /bin/install
7938 # AmigaOS /C/install, which installs bootblocks on floppy discs
7939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7942 # OS/2's system install, which has a completely different semantic
7943 # ./install, which can be erroneously created by make from ./install.sh.
7944 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7946 if test -z "$INSTALL"; then
7947 if test "${ac_cv_path_install+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953   IFS=$as_save_IFS
7954   test -z "$as_dir" && as_dir=.
7955   # Account for people who put trailing slashes in PATH elements.
7956 case $as_dir/ in
7957   ./ | .// | /cC/* | \
7958   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7959   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7960   /usr/ucb/* ) ;;
7961   *)
7962     # OSF1 and SCO ODT 3.0 have their own names for install.
7963     # Don't use installbsd from OSF since it installs stuff as root
7964     # by default.
7965     for ac_prog in ginstall scoinst install; do
7966       for ac_exec_ext in '' $ac_executable_extensions; do
7967         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7968           if test $ac_prog = install &&
7969             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7970             # AIX install.  It has an incompatible calling convention.
7971             :
7972           elif test $ac_prog = install &&
7973             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7974             # program-specific install script used by HP pwplus--don't use.
7975             :
7976           else
7977             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7978             break 3
7979           fi
7980         fi
7981       done
7982     done
7983     ;;
7984 esac
7985 done
7986 IFS=$as_save_IFS
7987
7988
7989 fi
7990   if test "${ac_cv_path_install+set}" = set; then
7991     INSTALL=$ac_cv_path_install
7992   else
7993     # As a last resort, use the slow shell script.  Don't cache a
7994     # value for INSTALL within a source directory, because that will
7995     # break other packages using the cache if that directory is
7996     # removed, or if the value is a relative name.
7997     INSTALL=$ac_install_sh
7998   fi
7999 fi
8000 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8001 echo "${ECHO_T}$INSTALL" >&6; }
8002
8003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8004 # It thinks the first close brace ends the variable substitution.
8005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8006
8007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8008
8009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8010
8011 case "$INSTALL" in
8012  [\\/$]* | ?:[\\/]* ) ;;
8013  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8014 esac
8015
8016 # Extract the first word of "bzip2", so it can be a program name with args.
8017 set dummy bzip2; ac_word=$2
8018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8020 if test "${ac_cv_path_BZIP2+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   case $BZIP2 in
8024   [\\/]* | ?:[\\/]*)
8025   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8026   ;;
8027   *)
8028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031   IFS=$as_save_IFS
8032   test -z "$as_dir" && as_dir=.
8033   for ac_exec_ext in '' $ac_executable_extensions; do
8034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8035     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037     break 2
8038   fi
8039 done
8040 done
8041 IFS=$as_save_IFS
8042
8043   ;;
8044 esac
8045 fi
8046 BZIP2=$ac_cv_path_BZIP2
8047 if test -n "$BZIP2"; then
8048   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8049 echo "${ECHO_T}$BZIP2" >&6; }
8050 else
8051   { echo "$as_me:$LINENO: result: no" >&5
8052 echo "${ECHO_T}no" >&6; }
8053 fi
8054
8055
8056 # Extract the first word of "cat", so it can be a program name with args.
8057 set dummy cat; ac_word=$2
8058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8060 if test "${ac_cv_path_CAT+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   case $CAT in
8064   [\\/]* | ?:[\\/]*)
8065   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8066   ;;
8067   *)
8068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8070 do
8071   IFS=$as_save_IFS
8072   test -z "$as_dir" && as_dir=.
8073   for ac_exec_ext in '' $ac_executable_extensions; do
8074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8075     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077     break 2
8078   fi
8079 done
8080 done
8081 IFS=$as_save_IFS
8082
8083   ;;
8084 esac
8085 fi
8086 CAT=$ac_cv_path_CAT
8087 if test -n "$CAT"; then
8088   { echo "$as_me:$LINENO: result: $CAT" >&5
8089 echo "${ECHO_T}$CAT" >&6; }
8090 else
8091   { echo "$as_me:$LINENO: result: no" >&5
8092 echo "${ECHO_T}no" >&6; }
8093 fi
8094
8095
8096 # Extract the first word of "doxygen", so it can be a program name with args.
8097 set dummy doxygen; ac_word=$2
8098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8100 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   case $DOXYGEN in
8104   [\\/]* | ?:[\\/]*)
8105   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8106   ;;
8107   *)
8108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8110 do
8111   IFS=$as_save_IFS
8112   test -z "$as_dir" && as_dir=.
8113   for ac_exec_ext in '' $ac_executable_extensions; do
8114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8115     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117     break 2
8118   fi
8119 done
8120 done
8121 IFS=$as_save_IFS
8122
8123   ;;
8124 esac
8125 fi
8126 DOXYGEN=$ac_cv_path_DOXYGEN
8127 if test -n "$DOXYGEN"; then
8128   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8129 echo "${ECHO_T}$DOXYGEN" >&6; }
8130 else
8131   { echo "$as_me:$LINENO: result: no" >&5
8132 echo "${ECHO_T}no" >&6; }
8133 fi
8134
8135
8136 # Extract the first word of "groff", so it can be a program name with args.
8137 set dummy groff; ac_word=$2
8138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8140 if test "${ac_cv_path_GROFF+set}" = set; then
8141   echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143   case $GROFF in
8144   [\\/]* | ?:[\\/]*)
8145   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8146   ;;
8147   *)
8148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8150 do
8151   IFS=$as_save_IFS
8152   test -z "$as_dir" && as_dir=.
8153   for ac_exec_ext in '' $ac_executable_extensions; do
8154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8155     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8157     break 2
8158   fi
8159 done
8160 done
8161 IFS=$as_save_IFS
8162
8163   ;;
8164 esac
8165 fi
8166 GROFF=$ac_cv_path_GROFF
8167 if test -n "$GROFF"; then
8168   { echo "$as_me:$LINENO: result: $GROFF" >&5
8169 echo "${ECHO_T}$GROFF" >&6; }
8170 else
8171   { echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6; }
8173 fi
8174
8175
8176 # Extract the first word of "gzip", so it can be a program name with args.
8177 set dummy gzip; ac_word=$2
8178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8180 if test "${ac_cv_path_GZIP+set}" = set; then
8181   echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183   case $GZIP in
8184   [\\/]* | ?:[\\/]*)
8185   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8186   ;;
8187   *)
8188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191   IFS=$as_save_IFS
8192   test -z "$as_dir" && as_dir=.
8193   for ac_exec_ext in '' $ac_executable_extensions; do
8194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8195     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197     break 2
8198   fi
8199 done
8200 done
8201 IFS=$as_save_IFS
8202
8203   ;;
8204 esac
8205 fi
8206 GZIP=$ac_cv_path_GZIP
8207 if test -n "$GZIP"; then
8208   { echo "$as_me:$LINENO: result: $GZIP" >&5
8209 echo "${ECHO_T}$GZIP" >&6; }
8210 else
8211   { echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6; }
8213 fi
8214
8215
8216 # Extract the first word of "pod2html", so it can be a program name with args.
8217 set dummy pod2html; ac_word=$2
8218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8220 if test "${ac_cv_path_POD2HTML+set}" = set; then
8221   echo $ECHO_N "(cached) $ECHO_C" >&6
8222 else
8223   case $POD2HTML in
8224   [\\/]* | ?:[\\/]*)
8225   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8226   ;;
8227   *)
8228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231   IFS=$as_save_IFS
8232   test -z "$as_dir" && as_dir=.
8233   for ac_exec_ext in '' $ac_executable_extensions; do
8234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8235     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237     break 2
8238   fi
8239 done
8240 done
8241 IFS=$as_save_IFS
8242
8243   ;;
8244 esac
8245 fi
8246 POD2HTML=$ac_cv_path_POD2HTML
8247 if test -n "$POD2HTML"; then
8248   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8249 echo "${ECHO_T}$POD2HTML" >&6; }
8250 else
8251   { echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6; }
8253 fi
8254
8255
8256 # Extract the first word of "pod2man", so it can be a program name with args.
8257 set dummy pod2man; ac_word=$2
8258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8260 if test "${ac_cv_path_POD2MAN+set}" = set; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263   case $POD2MAN in
8264   [\\/]* | ?:[\\/]*)
8265   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8266   ;;
8267   *)
8268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271   IFS=$as_save_IFS
8272   test -z "$as_dir" && as_dir=.
8273   for ac_exec_ext in '' $ac_executable_extensions; do
8274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8275     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8277     break 2
8278   fi
8279 done
8280 done
8281 IFS=$as_save_IFS
8282
8283   ;;
8284 esac
8285 fi
8286 POD2MAN=$ac_cv_path_POD2MAN
8287 if test -n "$POD2MAN"; then
8288   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8289 echo "${ECHO_T}$POD2MAN" >&6; }
8290 else
8291   { echo "$as_me:$LINENO: result: no" >&5
8292 echo "${ECHO_T}no" >&6; }
8293 fi
8294
8295
8296 # Extract the first word of "pdfroff", so it can be a program name with args.
8297 set dummy pdfroff; ac_word=$2
8298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8300 if test "${ac_cv_path_PDFROFF+set}" = set; then
8301   echo $ECHO_N "(cached) $ECHO_C" >&6
8302 else
8303   case $PDFROFF in
8304   [\\/]* | ?:[\\/]*)
8305   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8306   ;;
8307   *)
8308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8310 do
8311   IFS=$as_save_IFS
8312   test -z "$as_dir" && as_dir=.
8313   for ac_exec_ext in '' $ac_executable_extensions; do
8314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8315     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8317     break 2
8318   fi
8319 done
8320 done
8321 IFS=$as_save_IFS
8322
8323   ;;
8324 esac
8325 fi
8326 PDFROFF=$ac_cv_path_PDFROFF
8327 if test -n "$PDFROFF"; then
8328   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8329 echo "${ECHO_T}$PDFROFF" >&6; }
8330 else
8331   { echo "$as_me:$LINENO: result: no" >&5
8332 echo "${ECHO_T}no" >&6; }
8333 fi
8334
8335
8336 # Extract the first word of "runtest", so it can be a program name with args.
8337 set dummy runtest; ac_word=$2
8338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8340 if test "${ac_cv_path_RUNTEST+set}" = set; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   case $RUNTEST in
8344   [\\/]* | ?:[\\/]*)
8345   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8346   ;;
8347   *)
8348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351   IFS=$as_save_IFS
8352   test -z "$as_dir" && as_dir=.
8353   for ac_exec_ext in '' $ac_executable_extensions; do
8354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8355     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8357     break 2
8358   fi
8359 done
8360 done
8361 IFS=$as_save_IFS
8362
8363   ;;
8364 esac
8365 fi
8366 RUNTEST=$ac_cv_path_RUNTEST
8367 if test -n "$RUNTEST"; then
8368   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8369 echo "${ECHO_T}$RUNTEST" >&6; }
8370 else
8371   { echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6; }
8373 fi
8374
8375
8376
8377 no_itcl=true
8378 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8379 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8380
8381 # Check whether --with-tclinclude was given.
8382 if test "${with_tclinclude+set}" = set; then
8383   withval=$with_tclinclude; with_tclinclude=${withval}
8384 else
8385   with_tclinclude=''
8386 fi
8387
8388 if test "${ac_cv_path_tclsh+set}" = set; then
8389   echo $ECHO_N "(cached) $ECHO_C" >&6
8390 else
8391
8392 if test x"${with_tclinclude}" != x ; then
8393   if test -f ${with_tclinclude}/tclsh ; then
8394     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8395   elif test -f ${with_tclinclude}/src/tclsh ; then
8396     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8397   else
8398     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8399 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8400    { (exit 1); exit 1; }; }
8401   fi
8402 fi
8403 fi
8404
8405
8406 if test x"${ac_cv_path_tclsh}" = x ; then
8407   { echo "$as_me:$LINENO: result: none" >&5
8408 echo "${ECHO_T}none" >&6; }
8409   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
8410 do
8411   # Extract the first word of "$ac_prog", so it can be a program name with args.
8412 set dummy $ac_prog; ac_word=$2
8413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8415 if test "${ac_cv_path_TCLSH+set}" = set; then
8416   echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418   case $TCLSH in
8419   [\\/]* | ?:[\\/]*)
8420   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8421   ;;
8422   *)
8423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8425 do
8426   IFS=$as_save_IFS
8427   test -z "$as_dir" && as_dir=.
8428   for ac_exec_ext in '' $ac_executable_extensions; do
8429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8430     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8432     break 2
8433   fi
8434 done
8435 done
8436 IFS=$as_save_IFS
8437
8438   ;;
8439 esac
8440 fi
8441 TCLSH=$ac_cv_path_TCLSH
8442 if test -n "$TCLSH"; then
8443   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8444 echo "${ECHO_T}$TCLSH" >&6; }
8445 else
8446   { echo "$as_me:$LINENO: result: no" >&5
8447 echo "${ECHO_T}no" >&6; }
8448 fi
8449
8450
8451   test -n "$TCLSH" && break
8452 done
8453
8454   if test x"${TCLSH}" = x ; then
8455     ac_cv_path_tclsh='';
8456   else
8457     ac_cv_path_tclsh="${TCLSH}";
8458   fi
8459 else
8460   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8461 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8462   TCLSH="${ac_cv_path_tclsh}"
8463
8464 fi
8465
8466 # Extract the first word of "zip", so it can be a program name with args.
8467 set dummy zip; ac_word=$2
8468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470 if test "${ac_cv_path_ZIP+set}" = set; then
8471   echo $ECHO_N "(cached) $ECHO_C" >&6
8472 else
8473   case $ZIP in
8474   [\\/]* | ?:[\\/]*)
8475   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8476   ;;
8477   *)
8478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8480 do
8481   IFS=$as_save_IFS
8482   test -z "$as_dir" && as_dir=.
8483   for ac_exec_ext in '' $ac_executable_extensions; do
8484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8485     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487     break 2
8488   fi
8489 done
8490 done
8491 IFS=$as_save_IFS
8492
8493   ;;
8494 esac
8495 fi
8496 ZIP=$ac_cv_path_ZIP
8497 if test -n "$ZIP"; then
8498   { echo "$as_me:$LINENO: result: $ZIP" >&5
8499 echo "${ECHO_T}$ZIP" >&6; }
8500 else
8501   { echo "$as_me:$LINENO: result: no" >&5
8502 echo "${ECHO_T}no" >&6; }
8503 fi
8504
8505
8506 for ac_prog in ocamlc
8507 do
8508   # Extract the first word of "$ac_prog", so it can be a program name with args.
8509 set dummy $ac_prog; ac_word=$2
8510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8512 if test "${ac_cv_path_OCAMLC+set}" = set; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   case $OCAMLC in
8516   [\\/]* | ?:[\\/]*)
8517   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8518   ;;
8519   *)
8520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525   for ac_exec_ext in '' $ac_executable_extensions; do
8526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8527     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532 done
8533 IFS=$as_save_IFS
8534
8535   ;;
8536 esac
8537 fi
8538 OCAMLC=$ac_cv_path_OCAMLC
8539 if test -n "$OCAMLC"; then
8540   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8541 echo "${ECHO_T}$OCAMLC" >&6; }
8542 else
8543   { echo "$as_me:$LINENO: result: no" >&5
8544 echo "${ECHO_T}no" >&6; }
8545 fi
8546
8547
8548   test -n "$OCAMLC" && break
8549 done
8550
8551 for ac_prog in ocamlopt
8552 do
8553   # Extract the first word of "$ac_prog", so it can be a program name with args.
8554 set dummy $ac_prog; ac_word=$2
8555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8557 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   case $OCAMLOPT in
8561   [\\/]* | ?:[\\/]*)
8562   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8563   ;;
8564   *)
8565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8567 do
8568   IFS=$as_save_IFS
8569   test -z "$as_dir" && as_dir=.
8570   for ac_exec_ext in '' $ac_executable_extensions; do
8571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8572     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8574     break 2
8575   fi
8576 done
8577 done
8578 IFS=$as_save_IFS
8579
8580   ;;
8581 esac
8582 fi
8583 OCAMLOPT=$ac_cv_path_OCAMLOPT
8584 if test -n "$OCAMLOPT"; then
8585   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8586 echo "${ECHO_T}$OCAMLOPT" >&6; }
8587 else
8588   { echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6; }
8590 fi
8591
8592
8593   test -n "$OCAMLOPT" && break
8594 done
8595
8596 for ac_prog in ocamldep
8597 do
8598   # Extract the first word of "$ac_prog", so it can be a program name with args.
8599 set dummy $ac_prog; ac_word=$2
8600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8602 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8603   echo $ECHO_N "(cached) $ECHO_C" >&6
8604 else
8605   case $OCAMLDEP in
8606   [\\/]* | ?:[\\/]*)
8607   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8608   ;;
8609   *)
8610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8612 do
8613   IFS=$as_save_IFS
8614   test -z "$as_dir" && as_dir=.
8615   for ac_exec_ext in '' $ac_executable_extensions; do
8616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8617     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8619     break 2
8620   fi
8621 done
8622 done
8623 IFS=$as_save_IFS
8624
8625   ;;
8626 esac
8627 fi
8628 OCAMLDEP=$ac_cv_path_OCAMLDEP
8629 if test -n "$OCAMLDEP"; then
8630   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8631 echo "${ECHO_T}$OCAMLDEP" >&6; }
8632 else
8633   { echo "$as_me:$LINENO: result: no" >&5
8634 echo "${ECHO_T}no" >&6; }
8635 fi
8636
8637
8638   test -n "$OCAMLDEP" && break
8639 done
8640
8641 for ac_prog in ocamldoc
8642 do
8643   # Extract the first word of "$ac_prog", so it can be a program name with args.
8644 set dummy $ac_prog; ac_word=$2
8645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8647 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8648   echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650   case $OCAMLDOC in
8651   [\\/]* | ?:[\\/]*)
8652   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8653   ;;
8654   *)
8655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8657 do
8658   IFS=$as_save_IFS
8659   test -z "$as_dir" && as_dir=.
8660   for ac_exec_ext in '' $ac_executable_extensions; do
8661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8662     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8664     break 2
8665   fi
8666 done
8667 done
8668 IFS=$as_save_IFS
8669
8670   ;;
8671 esac
8672 fi
8673 OCAMLDOC=$ac_cv_path_OCAMLDOC
8674 if test -n "$OCAMLDOC"; then
8675   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8676 echo "${ECHO_T}$OCAMLDOC" >&6; }
8677 else
8678   { echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6; }
8680 fi
8681
8682
8683   test -n "$OCAMLDOC" && break
8684 done
8685
8686 for ac_prog in gas as
8687 do
8688   # Extract the first word of "$ac_prog", so it can be a program name with args.
8689 set dummy $ac_prog; ac_word=$2
8690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8692 if test "${ac_cv_path_GAS+set}" = set; then
8693   echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695   case $GAS in
8696   [\\/]* | ?:[\\/]*)
8697   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8698   ;;
8699   *)
8700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8702 do
8703   IFS=$as_save_IFS
8704   test -z "$as_dir" && as_dir=.
8705   for ac_exec_ext in '' $ac_executable_extensions; do
8706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8707     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8709     break 2
8710   fi
8711 done
8712 done
8713 IFS=$as_save_IFS
8714
8715   ;;
8716 esac
8717 fi
8718 GAS=$ac_cv_path_GAS
8719 if test -n "$GAS"; then
8720   { echo "$as_me:$LINENO: result: $GAS" >&5
8721 echo "${ECHO_T}$GAS" >&6; }
8722 else
8723   { echo "$as_me:$LINENO: result: no" >&5
8724 echo "${ECHO_T}no" >&6; }
8725 fi
8726
8727
8728   test -n "$GAS" && break
8729 done
8730
8731
8732 { echo "$as_me:$LINENO: checking for linker version" >&5
8733 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8734 if test "${llvm_cv_link_version+set}" = set; then
8735   echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737
8738    version_string="$(ld -v 2>&1 | head -1)"
8739
8740    # Check for ld64.
8741    if (echo "$version_string" | grep -q "ld64"); then
8742      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8743    else
8744      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8745    fi
8746
8747 fi
8748 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8749 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8750
8751 cat >>confdefs.h <<_ACEOF
8752 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8753 _ACEOF
8754
8755
8756
8757 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8758 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8759 if test "${llvm_cv_link_use_r+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762    ac_ext=c
8763 ac_cpp='$CPP $CPPFLAGS'
8764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8767
8768   oldcflags="$CFLAGS"
8769   CFLAGS="$CFLAGS -Wl,-R."
8770   cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h.  */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h.  */
8776
8777 int
8778 main ()
8779 {
8780
8781   ;
8782   return 0;
8783 }
8784 _ACEOF
8785 rm -f conftest.$ac_objext conftest$ac_exeext
8786 if { (ac_try="$ac_link"
8787 case "(($ac_try" in
8788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789   *) ac_try_echo=$ac_try;;
8790 esac
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792   (eval "$ac_link") 2>conftest.er1
8793   ac_status=$?
8794   grep -v '^ *+' conftest.er1 >conftest.err
8795   rm -f conftest.er1
8796   cat conftest.err >&5
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); } &&
8799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8800   { (case "(($ac_try" in
8801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802   *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805   (eval "$ac_try") 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; } &&
8809          { ac_try='test -s conftest$ac_exeext'
8810   { (case "(($ac_try" in
8811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812   *) ac_try_echo=$ac_try;;
8813 esac
8814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8815   (eval "$ac_try") 2>&5
8816   ac_status=$?
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); }; }; then
8819   llvm_cv_link_use_r=yes
8820 else
8821   echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824         llvm_cv_link_use_r=no
8825 fi
8826
8827 rm -f core conftest.err conftest.$ac_objext \
8828       conftest$ac_exeext conftest.$ac_ext
8829   CFLAGS="$oldcflags"
8830   ac_ext=c
8831 ac_cpp='$CPP $CPPFLAGS'
8832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8835
8836
8837 fi
8838 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8839 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8840 if test "$llvm_cv_link_use_r" = yes ; then
8841
8842 cat >>confdefs.h <<\_ACEOF
8843 #define HAVE_LINK_R 1
8844 _ACEOF
8845
8846   fi
8847
8848
8849 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8850 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8851 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8852   echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854    ac_ext=c
8855 ac_cpp='$CPP $CPPFLAGS'
8856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8859
8860   oldcflags="$CFLAGS"
8861   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8862   cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h.  */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h.  */
8868
8869 int
8870 main ()
8871 {
8872
8873   ;
8874   return 0;
8875 }
8876 _ACEOF
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (ac_try="$ac_link"
8879 case "(($ac_try" in
8880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881   *) ac_try_echo=$ac_try;;
8882 esac
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884   (eval "$ac_link") 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } &&
8891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892   { (case "(($ac_try" in
8893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894   *) ac_try_echo=$ac_try;;
8895 esac
8896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897   (eval "$ac_try") 2>&5
8898   ac_status=$?
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); }; } &&
8901          { ac_try='test -s conftest$ac_exeext'
8902   { (case "(($ac_try" in
8903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904   *) ac_try_echo=$ac_try;;
8905 esac
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907   (eval "$ac_try") 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); }; }; then
8911   llvm_cv_link_use_export_dynamic=yes
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916         llvm_cv_link_use_export_dynamic=no
8917 fi
8918
8919 rm -f core conftest.err conftest.$ac_objext \
8920       conftest$ac_exeext conftest.$ac_ext
8921   CFLAGS="$oldcflags"
8922   ac_ext=c
8923 ac_cpp='$CPP $CPPFLAGS'
8924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8927
8928
8929 fi
8930 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8931 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8932 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8933
8934 cat >>confdefs.h <<\_ACEOF
8935 #define HAVE_LINK_EXPORT_DYNAMIC 1
8936 _ACEOF
8937
8938   fi
8939
8940
8941 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8942 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8943 if test "${llvm_cv_link_use_version_script+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946    ac_ext=c
8947 ac_cpp='$CPP $CPPFLAGS'
8948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8951
8952   oldcflags="$CFLAGS"
8953
8954   # The following code is from the autoconf manual,
8955   # "11.13: Limitations of Usual Tools".
8956   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8957   # Use mktemp if possible; otherwise fall back on mkdir,
8958   # with $RANDOM to make collisions less likely.
8959   : ${TMPDIR=/tmp}
8960   {
8961     tmp=`
8962       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8963     ` &&
8964     test -n "$tmp" && test -d "$tmp"
8965   } || {
8966     tmp=$TMPDIR/foo$$-$RANDOM
8967     (umask 077 && mkdir "$tmp")
8968   } || exit $?
8969
8970   echo "{" > "$tmp/export.map"
8971   echo "  global: main;" >> "$tmp/export.map"
8972   echo "  local: *;" >> "$tmp/export.map"
8973   echo "};" >> "$tmp/export.map"
8974
8975   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8976   cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h.  */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h.  */
8982
8983 int
8984 main ()
8985 {
8986
8987   ;
8988   return 0;
8989 }
8990 _ACEOF
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (ac_try="$ac_link"
8993 case "(($ac_try" in
8994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995   *) ac_try_echo=$ac_try;;
8996 esac
8997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998   (eval "$ac_link") 2>conftest.er1
8999   ac_status=$?
9000   grep -v '^ *+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } &&
9005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9006   { (case "(($ac_try" in
9007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9008   *) ac_try_echo=$ac_try;;
9009 esac
9010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9011   (eval "$ac_try") 2>&5
9012   ac_status=$?
9013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   (exit $ac_status); }; } &&
9015          { ac_try='test -s conftest$ac_exeext'
9016   { (case "(($ac_try" in
9017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018   *) ac_try_echo=$ac_try;;
9019 esac
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021   (eval "$ac_try") 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; }; then
9025   llvm_cv_link_use_version_script=yes
9026 else
9027   echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9029
9030         llvm_cv_link_use_version_script=no
9031 fi
9032
9033 rm -f core conftest.err conftest.$ac_objext \
9034       conftest$ac_exeext conftest.$ac_ext
9035   rm "$tmp/export.map"
9036   rmdir "$tmp"
9037   CFLAGS="$oldcflags"
9038   ac_ext=c
9039 ac_cpp='$CPP $CPPFLAGS'
9040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9043
9044
9045 fi
9046 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9047 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9048 if test "$llvm_cv_link_use_version_script" = yes ; then
9049   HAVE_LINK_VERSION_SCRIPT=1
9050
9051   fi
9052
9053
9054
9055
9056 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9057 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9058 if test "${ac_cv_c_const+set}" = set; then
9059   echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061   cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h.  */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h.  */
9067
9068 int
9069 main ()
9070 {
9071 /* FIXME: Include the comments suggested by Paul. */
9072 #ifndef __cplusplus
9073   /* Ultrix mips cc rejects this.  */
9074   typedef int charset[2];
9075   const charset x;
9076   /* SunOS 4.1.1 cc rejects this.  */
9077   char const *const *ccp;
9078   char **p;
9079   /* NEC SVR4.0.2 mips cc rejects this.  */
9080   struct point {int x, y;};
9081   static struct point const zero = {0,0};
9082   /* AIX XL C 1.02.0.0 rejects this.
9083      It does not let you subtract one const X* pointer from another in
9084      an arm of an if-expression whose if-part is not a constant
9085      expression */
9086   const char *g = "string";
9087   ccp = &g + (g ? g-g : 0);
9088   /* HPUX 7.0 cc rejects these. */
9089   ++ccp;
9090   p = (char**) ccp;
9091   ccp = (char const *const *) p;
9092   { /* SCO 3.2v4 cc rejects this.  */
9093     char *t;
9094     char const *s = 0 ? (char *) 0 : (char const *) 0;
9095
9096     *t++ = 0;
9097     if (s) return 0;
9098   }
9099   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9100     int x[] = {25, 17};
9101     const int *foo = &x[0];
9102     ++foo;
9103   }
9104   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9105     typedef const int *iptr;
9106     iptr p = 0;
9107     ++p;
9108   }
9109   { /* AIX XL C 1.02.0.0 rejects this saying
9110        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9111     struct s { int j; const int *ap[3]; };
9112     struct s *b; b->j = 5;
9113   }
9114   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9115     const int foo = 10;
9116     if (!foo) return 0;
9117   }
9118   return !x[0] && !zero.x;
9119 #endif
9120
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext
9126 if { (ac_try="$ac_compile"
9127 case "(($ac_try" in
9128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129   *) ac_try_echo=$ac_try;;
9130 esac
9131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132   (eval "$ac_compile") 2>conftest.er1
9133   ac_status=$?
9134   grep -v '^ *+' conftest.er1 >conftest.err
9135   rm -f conftest.er1
9136   cat conftest.err >&5
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); } &&
9139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9140   { (case "(($ac_try" in
9141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142   *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145   (eval "$ac_try") 2>&5
9146   ac_status=$?
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); }; } &&
9149          { ac_try='test -s conftest.$ac_objext'
9150   { (case "(($ac_try" in
9151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9152   *) ac_try_echo=$ac_try;;
9153 esac
9154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9155   (eval "$ac_try") 2>&5
9156   ac_status=$?
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); }; }; then
9159   ac_cv_c_const=yes
9160 else
9161   echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9163
9164         ac_cv_c_const=no
9165 fi
9166
9167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9168 fi
9169 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9170 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9171 if test $ac_cv_c_const = no; then
9172
9173 cat >>confdefs.h <<\_ACEOF
9174 #define const
9175 _ACEOF
9176
9177 fi
9178
9179
9180
9181
9182
9183
9184 ac_header_dirent=no
9185 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9186   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9187 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9188 echo $ECHO_N "checking for $ac_hdr that defines DIR... $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 else
9192   cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h.  */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h.  */
9198 #include <sys/types.h>
9199 #include <$ac_hdr>
9200
9201 int
9202 main ()
9203 {
9204 if ((DIR *) 0)
9205 return 0;
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 rm -f conftest.$ac_objext
9211 if { (ac_try="$ac_compile"
9212 case "(($ac_try" in
9213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214   *) ac_try_echo=$ac_try;;
9215 esac
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217   (eval "$ac_compile") 2>conftest.er1
9218   ac_status=$?
9219   grep -v '^ *+' conftest.er1 >conftest.err
9220   rm -f conftest.er1
9221   cat conftest.err >&5
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); } &&
9224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9225   { (case "(($ac_try" in
9226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227   *) ac_try_echo=$ac_try;;
9228 esac
9229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230   (eval "$ac_try") 2>&5
9231   ac_status=$?
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); }; } &&
9234          { ac_try='test -s conftest.$ac_objext'
9235   { (case "(($ac_try" in
9236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237   *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240   (eval "$ac_try") 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }; }; then
9244   eval "$as_ac_Header=yes"
9245 else
9246   echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249         eval "$as_ac_Header=no"
9250 fi
9251
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253 fi
9254 ac_res=`eval echo '${'$as_ac_Header'}'`
9255                { echo "$as_me:$LINENO: result: $ac_res" >&5
9256 echo "${ECHO_T}$ac_res" >&6; }
9257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9258   cat >>confdefs.h <<_ACEOF
9259 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9260 _ACEOF
9261
9262 ac_header_dirent=$ac_hdr; break
9263 fi
9264
9265 done
9266 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9267 if test $ac_header_dirent = dirent.h; then
9268   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9269 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9270 if test "${ac_cv_search_opendir+set}" = set; then
9271   echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273   ac_func_search_save_LIBS=$LIBS
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h.  */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h.  */
9280
9281 /* Override any GCC internal prototype to avoid an error.
9282    Use char because int might match the return type of a GCC
9283    builtin and then its argument prototype would still apply.  */
9284 #ifdef __cplusplus
9285 extern "C"
9286 #endif
9287 char opendir ();
9288 int
9289 main ()
9290 {
9291 return opendir ();
9292   ;
9293   return 0;
9294 }
9295 _ACEOF
9296 for ac_lib in '' dir; do
9297   if test -z "$ac_lib"; then
9298     ac_res="none required"
9299   else
9300     ac_res=-l$ac_lib
9301     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9302   fi
9303   rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (ac_try="$ac_link"
9305 case "(($ac_try" in
9306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307   *) ac_try_echo=$ac_try;;
9308 esac
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310   (eval "$ac_link") 2>conftest.er1
9311   ac_status=$?
9312   grep -v '^ *+' conftest.er1 >conftest.err
9313   rm -f conftest.er1
9314   cat conftest.err >&5
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } &&
9317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9318   { (case "(($ac_try" in
9319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320   *) ac_try_echo=$ac_try;;
9321 esac
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323   (eval "$ac_try") 2>&5
9324   ac_status=$?
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); }; } &&
9327          { ac_try='test -s conftest$ac_exeext'
9328   { (case "(($ac_try" in
9329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330   *) ac_try_echo=$ac_try;;
9331 esac
9332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9333   (eval "$ac_try") 2>&5
9334   ac_status=$?
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); }; }; then
9337   ac_cv_search_opendir=$ac_res
9338 else
9339   echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9341
9342
9343 fi
9344
9345 rm -f core conftest.err conftest.$ac_objext \
9346       conftest$ac_exeext
9347   if test "${ac_cv_search_opendir+set}" = set; then
9348   break
9349 fi
9350 done
9351 if test "${ac_cv_search_opendir+set}" = set; then
9352   :
9353 else
9354   ac_cv_search_opendir=no
9355 fi
9356 rm conftest.$ac_ext
9357 LIBS=$ac_func_search_save_LIBS
9358 fi
9359 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9360 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9361 ac_res=$ac_cv_search_opendir
9362 if test "$ac_res" != no; then
9363   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9364
9365 fi
9366
9367 else
9368   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9369 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9370 if test "${ac_cv_search_opendir+set}" = set; then
9371   echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373   ac_func_search_save_LIBS=$LIBS
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h.  */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h.  */
9380
9381 /* Override any GCC internal prototype to avoid an error.
9382    Use char because int might match the return type of a GCC
9383    builtin and then its argument prototype would still apply.  */
9384 #ifdef __cplusplus
9385 extern "C"
9386 #endif
9387 char opendir ();
9388 int
9389 main ()
9390 {
9391 return opendir ();
9392   ;
9393   return 0;
9394 }
9395 _ACEOF
9396 for ac_lib in '' x; do
9397   if test -z "$ac_lib"; then
9398     ac_res="none required"
9399   else
9400     ac_res=-l$ac_lib
9401     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9402   fi
9403   rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (ac_try="$ac_link"
9405 case "(($ac_try" in
9406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407   *) ac_try_echo=$ac_try;;
9408 esac
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410   (eval "$ac_link") 2>conftest.er1
9411   ac_status=$?
9412   grep -v '^ *+' conftest.er1 >conftest.err
9413   rm -f conftest.er1
9414   cat conftest.err >&5
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); } &&
9417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9418   { (case "(($ac_try" in
9419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420   *) ac_try_echo=$ac_try;;
9421 esac
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423   (eval "$ac_try") 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; } &&
9427          { ac_try='test -s conftest$ac_exeext'
9428   { (case "(($ac_try" in
9429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430   *) ac_try_echo=$ac_try;;
9431 esac
9432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433   (eval "$ac_try") 2>&5
9434   ac_status=$?
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); }; }; then
9437   ac_cv_search_opendir=$ac_res
9438 else
9439   echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9441
9442
9443 fi
9444
9445 rm -f core conftest.err conftest.$ac_objext \
9446       conftest$ac_exeext
9447   if test "${ac_cv_search_opendir+set}" = set; then
9448   break
9449 fi
9450 done
9451 if test "${ac_cv_search_opendir+set}" = set; then
9452   :
9453 else
9454   ac_cv_search_opendir=no
9455 fi
9456 rm conftest.$ac_ext
9457 LIBS=$ac_func_search_save_LIBS
9458 fi
9459 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9460 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9461 ac_res=$ac_cv_search_opendir
9462 if test "$ac_res" != no; then
9463   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9464
9465 fi
9466
9467 fi
9468
9469
9470 for ac_header in dlfcn.h
9471 do
9472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9474   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 fi
9479 ac_res=`eval echo '${'$as_ac_Header'}'`
9480                { echo "$as_me:$LINENO: result: $ac_res" >&5
9481 echo "${ECHO_T}$ac_res" >&6; }
9482 else
9483   # Is the header compilable?
9484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9486 cat >conftest.$ac_ext <<_ACEOF
9487 /* confdefs.h.  */
9488 _ACEOF
9489 cat confdefs.h >>conftest.$ac_ext
9490 cat >>conftest.$ac_ext <<_ACEOF
9491 /* end confdefs.h.  */
9492 $ac_includes_default
9493 #include <$ac_header>
9494 _ACEOF
9495 rm -f conftest.$ac_objext
9496 if { (ac_try="$ac_compile"
9497 case "(($ac_try" in
9498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499   *) ac_try_echo=$ac_try;;
9500 esac
9501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502   (eval "$ac_compile") 2>conftest.er1
9503   ac_status=$?
9504   grep -v '^ *+' conftest.er1 >conftest.err
9505   rm -f conftest.er1
9506   cat conftest.err >&5
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); } &&
9509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9510   { (case "(($ac_try" in
9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512   *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515   (eval "$ac_try") 2>&5
9516   ac_status=$?
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); }; } &&
9519          { ac_try='test -s conftest.$ac_objext'
9520   { (case "(($ac_try" in
9521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522   *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525   (eval "$ac_try") 2>&5
9526   ac_status=$?
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); }; }; then
9529   ac_header_compiler=yes
9530 else
9531   echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9533
9534         ac_header_compiler=no
9535 fi
9536
9537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9539 echo "${ECHO_T}$ac_header_compiler" >&6; }
9540
9541 # Is the header present?
9542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h.  */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h.  */
9550 #include <$ac_header>
9551 _ACEOF
9552 if { (ac_try="$ac_cpp conftest.$ac_ext"
9553 case "(($ac_try" in
9554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555   *) ac_try_echo=$ac_try;;
9556 esac
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9559   ac_status=$?
9560   grep -v '^ *+' conftest.er1 >conftest.err
9561   rm -f conftest.er1
9562   cat conftest.err >&5
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } >/dev/null; then
9565   if test -s conftest.err; then
9566     ac_cpp_err=$ac_c_preproc_warn_flag
9567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9568   else
9569     ac_cpp_err=
9570   fi
9571 else
9572   ac_cpp_err=yes
9573 fi
9574 if test -z "$ac_cpp_err"; then
9575   ac_header_preproc=yes
9576 else
9577   echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9579
9580   ac_header_preproc=no
9581 fi
9582
9583 rm -f conftest.err conftest.$ac_ext
9584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9585 echo "${ECHO_T}$ac_header_preproc" >&6; }
9586
9587 # So?  What about this header?
9588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9589   yes:no: )
9590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9594     ac_header_preproc=yes
9595     ;;
9596   no:yes:* )
9597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9599     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9600 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9601     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9603     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9604 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9607     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9609     ( cat <<\_ASBOX
9610 ## ----------------------------------- ##
9611 ## Report this to llvmbugs@cs.uiuc.edu ##
9612 ## ----------------------------------- ##
9613 _ASBOX
9614      ) | sed "s/^/$as_me: WARNING:     /" >&2
9615     ;;
9616 esac
9617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9620   echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622   eval "$as_ac_Header=\$ac_header_preproc"
9623 fi
9624 ac_res=`eval echo '${'$as_ac_Header'}'`
9625                { echo "$as_me:$LINENO: result: $ac_res" >&5
9626 echo "${ECHO_T}$ac_res" >&6; }
9627
9628 fi
9629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9630   cat >>confdefs.h <<_ACEOF
9631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9632 _ACEOF
9633
9634 fi
9635
9636 done
9637
9638 # Check whether --enable-ltdl-install was given.
9639 if test "${enable_ltdl_install+set}" = set; then
9640   enableval=$enable_ltdl_install;
9641 fi
9642
9643
9644
9645
9646 if test x"${enable_ltdl_install-no}" != xno; then
9647   INSTALL_LTDL_TRUE=
9648   INSTALL_LTDL_FALSE='#'
9649 else
9650   INSTALL_LTDL_TRUE='#'
9651   INSTALL_LTDL_FALSE=
9652 fi
9653
9654
9655
9656 if test x"${enable_ltdl_convenience-no}" != xno; then
9657   CONVENIENCE_LTDL_TRUE=
9658   CONVENIENCE_LTDL_FALSE='#'
9659 else
9660   CONVENIENCE_LTDL_TRUE='#'
9661   CONVENIENCE_LTDL_FALSE=
9662 fi
9663
9664
9665 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9666 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9667 library_names_spec=
9668 libname_spec='lib$name'
9669 soname_spec=
9670 shrext_cmds=".so"
9671 postinstall_cmds=
9672 postuninstall_cmds=
9673 finish_cmds=
9674 finish_eval=
9675 shlibpath_var=
9676 shlibpath_overrides_runpath=unknown
9677 version_type=none
9678 dynamic_linker="$host_os ld.so"
9679 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9680 if test "$GCC" = yes; then
9681   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9682   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9683     # if the path contains ";" then we assume it to be the separator
9684     # otherwise default to the standard path separator (i.e. ":") - it is
9685     # assumed that no part of a normal pathname contains ";" but that should
9686     # okay in the real world where ";" in dirpaths is itself problematic.
9687     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9688   else
9689     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9690   fi
9691 else
9692   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9693 fi
9694 need_lib_prefix=unknown
9695 hardcode_into_libs=no
9696
9697 # when you set need_version to no, make sure it does not cause -set_version
9698 # flags to be left without arguments
9699 need_version=unknown
9700
9701 case $host_os in
9702 aix3*)
9703   version_type=linux
9704   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9705   shlibpath_var=LIBPATH
9706
9707   # AIX 3 has no versioning support, so we append a major version to the name.
9708   soname_spec='${libname}${release}${shared_ext}$major'
9709   ;;
9710
9711 aix4* | aix5*)
9712   version_type=linux
9713   need_lib_prefix=no
9714   need_version=no
9715   hardcode_into_libs=yes
9716   if test "$host_cpu" = ia64; then
9717     # AIX 5 supports IA64
9718     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9719     shlibpath_var=LD_LIBRARY_PATH
9720   else
9721     # With GCC up to 2.95.x, collect2 would create an import file
9722     # for dependence libraries.  The import file would start with
9723     # the line `#! .'.  This would cause the generated library to
9724     # depend on `.', always an invalid library.  This was fixed in
9725     # development snapshots of GCC prior to 3.0.
9726     case $host_os in
9727       aix4 | aix4.[01] | aix4.[01].*)
9728       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9729            echo ' yes '
9730            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9731         :
9732       else
9733         can_build_shared=no
9734       fi
9735       ;;
9736     esac
9737     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9738     # soname into executable. Probably we can add versioning support to
9739     # collect2, so additional links can be useful in future.
9740     if test "$aix_use_runtimelinking" = yes; then
9741       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9742       # instead of lib<name>.a to let people know that these are not
9743       # typical AIX shared libraries.
9744       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745     else
9746       # We preserve .a as extension for shared libraries through AIX4.2
9747       # and later when we are not doing run time linking.
9748       library_names_spec='${libname}${release}.a $libname.a'
9749       soname_spec='${libname}${release}${shared_ext}$major'
9750     fi
9751     shlibpath_var=LIBPATH
9752   fi
9753   ;;
9754
9755 amigaos*)
9756   library_names_spec='$libname.ixlibrary $libname.a'
9757   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9758   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'
9759   ;;
9760
9761 beos*)
9762   library_names_spec='${libname}${shared_ext}'
9763   dynamic_linker="$host_os ld.so"
9764   shlibpath_var=LIBRARY_PATH
9765   ;;
9766
9767 bsdi[45]*)
9768   version_type=linux
9769   need_version=no
9770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771   soname_spec='${libname}${release}${shared_ext}$major'
9772   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9773   shlibpath_var=LD_LIBRARY_PATH
9774   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9775   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9776   # the default ld.so.conf also contains /usr/contrib/lib and
9777   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9778   # libtool to hard-code these into programs
9779   ;;
9780
9781 cygwin* | mingw* | pw32*)
9782   version_type=windows
9783   shrext_cmds=".dll"
9784   need_version=no
9785   need_lib_prefix=no
9786
9787   case $GCC,$host_os in
9788   yes,cygwin* | yes,mingw* | yes,pw32*)
9789     library_names_spec='$libname.dll.a'
9790     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9791     postinstall_cmds='base_file=`basename \${file}`~
9792       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9793       dldir=$destdir/`dirname \$dlpath`~
9794       test -d \$dldir || mkdir -p \$dldir~
9795       $install_prog $dir/$dlname \$dldir/$dlname~
9796       chmod a+x \$dldir/$dlname'
9797     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9798       dlpath=$dir/\$dldll~
9799        $rm \$dlpath'
9800     shlibpath_overrides_runpath=yes
9801
9802     case $host_os in
9803     cygwin*)
9804       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9805       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9806       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9807       ;;
9808     mingw*)
9809       # MinGW DLLs use traditional 'lib' prefix
9810       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9811       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9812       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9813         # It is most probably a Windows format PATH printed by
9814         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9815         # path with ; separators, and with drive letters. We can handle the
9816         # drive letters (cygwin fileutils understands them), so leave them,
9817         # especially as we might pass files found there to a mingw objdump,
9818         # which wouldn't understand a cygwinified path. Ahh.
9819         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9820       else
9821         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9822       fi
9823       ;;
9824     pw32*)
9825       # pw32 DLLs use 'pw' prefix rather than 'lib'
9826       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9827       ;;
9828     esac
9829     ;;
9830
9831   *)
9832     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9833     ;;
9834   esac
9835   dynamic_linker='Win32 ld.exe'
9836   # FIXME: first we should search . and the directory the executable is in
9837   shlibpath_var=PATH
9838   ;;
9839
9840 darwin* | rhapsody*)
9841   dynamic_linker="$host_os dyld"
9842   version_type=darwin
9843   need_lib_prefix=no
9844   need_version=no
9845   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9846   soname_spec='${libname}${release}${major}$shared_ext'
9847   shlibpath_overrides_runpath=yes
9848   shlibpath_var=DYLD_LIBRARY_PATH
9849   shrext_cmds='.dylib'
9850   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9851   if test "$GCC" = yes; then
9852     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"`
9853   else
9854     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9855   fi
9856   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9857   ;;
9858
9859 dgux*)
9860   version_type=linux
9861   need_lib_prefix=no
9862   need_version=no
9863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9864   soname_spec='${libname}${release}${shared_ext}$major'
9865   shlibpath_var=LD_LIBRARY_PATH
9866   ;;
9867
9868 freebsd1*)
9869   dynamic_linker=no
9870   ;;
9871
9872 kfreebsd*-gnu)
9873   version_type=linux
9874   need_lib_prefix=no
9875   need_version=no
9876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9877   soname_spec='${libname}${release}${shared_ext}$major'
9878   shlibpath_var=LD_LIBRARY_PATH
9879   shlibpath_overrides_runpath=no
9880   hardcode_into_libs=yes
9881   dynamic_linker='GNU ld.so'
9882   ;;
9883
9884 freebsd* | dragonfly*)
9885   # DragonFly does not have aout.  When/if they implement a new
9886   # versioning mechanism, adjust this.
9887   if test -x /usr/bin/objformat; then
9888     objformat=`/usr/bin/objformat`
9889   else
9890     case $host_os in
9891     freebsd[123]*) objformat=aout ;;
9892     *) objformat=elf ;;
9893     esac
9894   fi
9895   version_type=freebsd-$objformat
9896   case $version_type in
9897     freebsd-elf*)
9898       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9899       need_version=no
9900       need_lib_prefix=no
9901       ;;
9902     freebsd-*)
9903       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9904       need_version=yes
9905       ;;
9906   esac
9907   shlibpath_var=LD_LIBRARY_PATH
9908   case $host_os in
9909   freebsd2*)
9910     shlibpath_overrides_runpath=yes
9911     ;;
9912   freebsd3.[01]* | freebsdelf3.[01]*)
9913     shlibpath_overrides_runpath=yes
9914     hardcode_into_libs=yes
9915     ;;
9916   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9917   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9918     shlibpath_overrides_runpath=no
9919     hardcode_into_libs=yes
9920     ;;
9921   freebsd*) # from 4.6 on
9922     shlibpath_overrides_runpath=yes
9923     hardcode_into_libs=yes
9924     ;;
9925   esac
9926   ;;
9927
9928 gnu*)
9929   version_type=linux
9930   need_lib_prefix=no
9931   need_version=no
9932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9933   soname_spec='${libname}${release}${shared_ext}$major'
9934   shlibpath_var=LD_LIBRARY_PATH
9935   hardcode_into_libs=yes
9936   ;;
9937
9938 hpux9* | hpux10* | hpux11*)
9939   # Give a soname corresponding to the major version so that dld.sl refuses to
9940   # link against other versions.
9941   version_type=sunos
9942   need_lib_prefix=no
9943   need_version=no
9944   case $host_cpu in
9945   ia64*)
9946     shrext_cmds='.so'
9947     hardcode_into_libs=yes
9948     dynamic_linker="$host_os dld.so"
9949     shlibpath_var=LD_LIBRARY_PATH
9950     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952     soname_spec='${libname}${release}${shared_ext}$major'
9953     if test "X$HPUX_IA64_MODE" = X32; then
9954       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9955     else
9956       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9957     fi
9958     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9959     ;;
9960    hppa*64*)
9961      shrext_cmds='.sl'
9962      hardcode_into_libs=yes
9963      dynamic_linker="$host_os dld.sl"
9964      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9965      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9966      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967      soname_spec='${libname}${release}${shared_ext}$major'
9968      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9969      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9970      ;;
9971    *)
9972     shrext_cmds='.sl'
9973     dynamic_linker="$host_os dld.sl"
9974     shlibpath_var=SHLIB_PATH
9975     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9977     soname_spec='${libname}${release}${shared_ext}$major'
9978     ;;
9979   esac
9980   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9981   postinstall_cmds='chmod 555 $lib'
9982   ;;
9983
9984 interix3*)
9985   version_type=linux
9986   need_lib_prefix=no
9987   need_version=no
9988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9989   soname_spec='${libname}${release}${shared_ext}$major'
9990   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9991   shlibpath_var=LD_LIBRARY_PATH
9992   shlibpath_overrides_runpath=no
9993   hardcode_into_libs=yes
9994   ;;
9995
9996 irix5* | irix6* | nonstopux*)
9997   case $host_os in
9998     nonstopux*) version_type=nonstopux ;;
9999     *)
10000         if test "$lt_cv_prog_gnu_ld" = yes; then
10001                 version_type=linux
10002         else
10003                 version_type=irix
10004         fi ;;
10005   esac
10006   need_lib_prefix=no
10007   need_version=no
10008   soname_spec='${libname}${release}${shared_ext}$major'
10009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10010   case $host_os in
10011   irix5* | nonstopux*)
10012     libsuff= shlibsuff=
10013     ;;
10014   *)
10015     case $LD in # libtool.m4 will add one of these switches to LD
10016     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10017       libsuff= shlibsuff= libmagic=32-bit;;
10018     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10019       libsuff=32 shlibsuff=N32 libmagic=N32;;
10020     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10021       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10022     *) libsuff= shlibsuff= libmagic=never-match;;
10023     esac
10024     ;;
10025   esac
10026   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10027   shlibpath_overrides_runpath=no
10028   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10029   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10030   hardcode_into_libs=yes
10031   ;;
10032
10033 # No shared lib support for Linux oldld, aout, or coff.
10034 linux*oldld* | linux*aout* | linux*coff*)
10035   dynamic_linker=no
10036   ;;
10037
10038 # This must be Linux ELF.
10039 linux*)
10040   version_type=linux
10041   need_lib_prefix=no
10042   need_version=no
10043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044   soname_spec='${libname}${release}${shared_ext}$major'
10045   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10046   shlibpath_var=LD_LIBRARY_PATH
10047   shlibpath_overrides_runpath=no
10048   # This implies no fast_install, which is unacceptable.
10049   # Some rework will be needed to allow for fast_install
10050   # before this can be enabled.
10051   hardcode_into_libs=yes
10052
10053   # Append ld.so.conf contents to the search path
10054   if test -f /etc/ld.so.conf; then
10055     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' ' '`
10056     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10057   fi
10058
10059   # We used to test for /lib/ld.so.1 and disable shared libraries on
10060   # powerpc, because MkLinux only supported shared libraries with the
10061   # GNU dynamic linker.  Since this was broken with cross compilers,
10062   # most powerpc-linux boxes support dynamic linking these days and
10063   # people can always --disable-shared, the test was removed, and we
10064   # assume the GNU/Linux dynamic linker is in use.
10065   dynamic_linker='GNU/Linux ld.so'
10066   ;;
10067
10068 knetbsd*-gnu)
10069   version_type=linux
10070   need_lib_prefix=no
10071   need_version=no
10072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10073   soname_spec='${libname}${release}${shared_ext}$major'
10074   shlibpath_var=LD_LIBRARY_PATH
10075   shlibpath_overrides_runpath=no
10076   hardcode_into_libs=yes
10077   dynamic_linker='GNU ld.so'
10078   ;;
10079
10080 netbsd*)
10081   version_type=sunos
10082   need_lib_prefix=no
10083   need_version=no
10084   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10086     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10087     dynamic_linker='NetBSD (a.out) ld.so'
10088   else
10089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10090     soname_spec='${libname}${release}${shared_ext}$major'
10091     dynamic_linker='NetBSD ld.elf_so'
10092   fi
10093   shlibpath_var=LD_LIBRARY_PATH
10094   shlibpath_overrides_runpath=yes
10095   hardcode_into_libs=yes
10096   ;;
10097
10098 newsos6)
10099   version_type=linux
10100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101   shlibpath_var=LD_LIBRARY_PATH
10102   shlibpath_overrides_runpath=yes
10103   ;;
10104
10105 nto-qnx*)
10106   version_type=linux
10107   need_lib_prefix=no
10108   need_version=no
10109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110   soname_spec='${libname}${release}${shared_ext}$major'
10111   shlibpath_var=LD_LIBRARY_PATH
10112   shlibpath_overrides_runpath=yes
10113   ;;
10114
10115 openbsd*)
10116   version_type=sunos
10117   sys_lib_dlsearch_path_spec="/usr/lib"
10118   need_lib_prefix=no
10119   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10120   case $host_os in
10121     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10122     *)                         need_version=no  ;;
10123   esac
10124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10125   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10126   shlibpath_var=LD_LIBRARY_PATH
10127   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10128     case $host_os in
10129       openbsd2.[89] | openbsd2.[89].*)
10130         shlibpath_overrides_runpath=no
10131         ;;
10132       *)
10133         shlibpath_overrides_runpath=yes
10134         ;;
10135       esac
10136   else
10137     shlibpath_overrides_runpath=yes
10138   fi
10139   ;;
10140
10141 os2*)
10142   libname_spec='$name'
10143   shrext_cmds=".dll"
10144   need_lib_prefix=no
10145   library_names_spec='$libname${shared_ext} $libname.a'
10146   dynamic_linker='OS/2 ld.exe'
10147   shlibpath_var=LIBPATH
10148   ;;
10149
10150 osf3* | osf4* | osf5*)
10151   version_type=osf
10152   need_lib_prefix=no
10153   need_version=no
10154   soname_spec='${libname}${release}${shared_ext}$major'
10155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156   shlibpath_var=LD_LIBRARY_PATH
10157   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10158   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10159   ;;
10160
10161 solaris*)
10162   version_type=linux
10163   need_lib_prefix=no
10164   need_version=no
10165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166   soname_spec='${libname}${release}${shared_ext}$major'
10167   shlibpath_var=LD_LIBRARY_PATH
10168   shlibpath_overrides_runpath=yes
10169   hardcode_into_libs=yes
10170   # ldd complains unless libraries are executable
10171   postinstall_cmds='chmod +x $lib'
10172   ;;
10173
10174 sunos4*)
10175   version_type=sunos
10176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10177   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10178   shlibpath_var=LD_LIBRARY_PATH
10179   shlibpath_overrides_runpath=yes
10180   if test "$with_gnu_ld" = yes; then
10181     need_lib_prefix=no
10182   fi
10183   need_version=yes
10184   ;;
10185
10186 sysv4 | sysv4.3*)
10187   version_type=linux
10188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189   soname_spec='${libname}${release}${shared_ext}$major'
10190   shlibpath_var=LD_LIBRARY_PATH
10191   case $host_vendor in
10192     sni)
10193       shlibpath_overrides_runpath=no
10194       need_lib_prefix=no
10195       export_dynamic_flag_spec='${wl}-Blargedynsym'
10196       runpath_var=LD_RUN_PATH
10197       ;;
10198     siemens)
10199       need_lib_prefix=no
10200       ;;
10201     motorola)
10202       need_lib_prefix=no
10203       need_version=no
10204       shlibpath_overrides_runpath=no
10205       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10206       ;;
10207   esac
10208   ;;
10209
10210 sysv4*MP*)
10211   if test -d /usr/nec ;then
10212     version_type=linux
10213     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10214     soname_spec='$libname${shared_ext}.$major'
10215     shlibpath_var=LD_LIBRARY_PATH
10216   fi
10217   ;;
10218
10219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10220   version_type=freebsd-elf
10221   need_lib_prefix=no
10222   need_version=no
10223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10224   soname_spec='${libname}${release}${shared_ext}$major'
10225   shlibpath_var=LD_LIBRARY_PATH
10226   hardcode_into_libs=yes
10227   if test "$with_gnu_ld" = yes; then
10228     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10229     shlibpath_overrides_runpath=no
10230   else
10231     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10232     shlibpath_overrides_runpath=yes
10233     case $host_os in
10234       sco3.2v5*)
10235         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10236         ;;
10237     esac
10238   fi
10239   sys_lib_dlsearch_path_spec='/usr/lib'
10240   ;;
10241
10242 uts4*)
10243   version_type=linux
10244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10245   soname_spec='${libname}${release}${shared_ext}$major'
10246   shlibpath_var=LD_LIBRARY_PATH
10247   ;;
10248
10249 *)
10250   dynamic_linker=no
10251   ;;
10252 esac
10253 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10254 echo "${ECHO_T}$dynamic_linker" >&6; }
10255 test "$dynamic_linker" = no && can_build_shared=no
10256
10257 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10258 if test "$GCC" = yes; then
10259   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10260 fi
10261
10262
10263 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10264 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10265 if test "${libltdl_cv_shlibext+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268
10269 module=yes
10270 eval libltdl_cv_shlibext=$shrext_cmds
10271
10272 fi
10273 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10274 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10275 if test -n "$libltdl_cv_shlibext"; then
10276
10277 cat >>confdefs.h <<_ACEOF
10278 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10279 _ACEOF
10280
10281 fi
10282
10283
10284 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10285 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10286 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289   libltdl_cv_shlibpath_var="$shlibpath_var"
10290 fi
10291 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10292 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10293 if test -n "$libltdl_cv_shlibpath_var"; then
10294
10295 cat >>confdefs.h <<_ACEOF
10296 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10297 _ACEOF
10298
10299 fi
10300
10301
10302 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10303 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10304 if test "${libltdl_cv_sys_search_path+set}" = set; then
10305   echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10308 fi
10309 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10310 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10311 if test -n "$libltdl_cv_sys_search_path"; then
10312   sys_search_path=
10313   for dir in $libltdl_cv_sys_search_path; do
10314     if test -z "$sys_search_path"; then
10315       sys_search_path="$dir"
10316     else
10317       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10318     fi
10319   done
10320
10321 cat >>confdefs.h <<_ACEOF
10322 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10323 _ACEOF
10324
10325 fi
10326
10327 { echo "$as_me:$LINENO: checking for objdir" >&5
10328 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10329 if test "${libltdl_cv_objdir+set}" = set; then
10330   echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332   libltdl_cv_objdir="$objdir"
10333   if test -n "$objdir"; then
10334     :
10335   else
10336     rm -f .libs 2>/dev/null
10337     mkdir .libs 2>/dev/null
10338     if test -d .libs; then
10339       libltdl_cv_objdir=.libs
10340     else
10341       # MS-DOS does not allow filenames that begin with a dot.
10342       libltdl_cv_objdir=_libs
10343     fi
10344   rmdir .libs 2>/dev/null
10345   fi
10346
10347 fi
10348 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10349 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10350
10351 cat >>confdefs.h <<_ACEOF
10352 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10353 _ACEOF
10354
10355
10356
10357
10358
10359
10360 # Check for command to grab the raw symbol name followed by C symbol from nm.
10361 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10362 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10363 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366
10367 # These are sane defaults that work on at least a few old systems.
10368 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10369
10370 # Character class describing NM global symbol codes.
10371 symcode='[BCDEGRST]'
10372
10373 # Regexp to match symbols that can be accessed directly from C.
10374 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10375
10376 # Transform an extracted symbol line into a proper C declaration
10377 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10378
10379 # Transform an extracted symbol line into symbol name and symbol address
10380 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'"
10381
10382 # Define system-specific variables.
10383 case $host_os in
10384 aix*)
10385   symcode='[BCDT]'
10386   ;;
10387 cygwin* | mingw* | pw32*)
10388   symcode='[ABCDGISTW]'
10389   ;;
10390 hpux*) # Its linker distinguishes data from code symbols
10391   if test "$host_cpu" = ia64; then
10392     symcode='[ABCDEGRST]'
10393   fi
10394   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10395   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'"
10396   ;;
10397 linux*)
10398   if test "$host_cpu" = ia64; then
10399     symcode='[ABCDGIRSTW]'
10400     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10401     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'"
10402   fi
10403   ;;
10404 irix* | nonstopux*)
10405   symcode='[BCDEGRST]'
10406   ;;
10407 osf*)
10408   symcode='[BCDEGQRST]'
10409   ;;
10410 solaris*)
10411   symcode='[BDRT]'
10412   ;;
10413 sco3.2v5*)
10414   symcode='[DT]'
10415   ;;
10416 sysv4.2uw2*)
10417   symcode='[DT]'
10418   ;;
10419 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10420   symcode='[ABDT]'
10421   ;;
10422 sysv4)
10423   symcode='[DFNSTU]'
10424   ;;
10425 esac
10426
10427 # Handle CRLF in mingw tool chain
10428 opt_cr=
10429 case $build_os in
10430 mingw*)
10431   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10432   ;;
10433 esac
10434
10435 # If we're using GNU nm, then use its standard symbol codes.
10436 case `$NM -V 2>&1` in
10437 *GNU* | *'with BFD'*)
10438   symcode='[ABCDGIRSTW]' ;;
10439 esac
10440
10441 # Try without a prefix undercore, then with it.
10442 for ac_symprfx in "" "_"; do
10443
10444   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10445   symxfrm="\\1 $ac_symprfx\\2 \\2"
10446
10447   # Write the raw and C identifiers.
10448   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10449
10450   # Check to see that the pipe works correctly.
10451   pipe_works=no
10452
10453   rm -f conftest*
10454   cat > conftest.$ac_ext <<EOF
10455 #ifdef __cplusplus
10456 extern "C" {
10457 #endif
10458 char nm_test_var;
10459 void nm_test_func(){}
10460 #ifdef __cplusplus
10461 }
10462 #endif
10463 int main(){nm_test_var='a';nm_test_func();return(0);}
10464 EOF
10465
10466   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467   (eval $ac_compile) 2>&5
10468   ac_status=$?
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); }; then
10471     # Now try to grab the symbols.
10472     nlist=conftest.nm
10473     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10474   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } && test -s "$nlist"; then
10478       # Try sorting and uniquifying the output.
10479       if sort "$nlist" | uniq > "$nlist"T; then
10480         mv -f "$nlist"T "$nlist"
10481       else
10482         rm -f "$nlist"T
10483       fi
10484
10485       # Make sure that we snagged all the symbols we need.
10486       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10487         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10488           cat <<EOF > conftest.$ac_ext
10489 #ifdef __cplusplus
10490 extern "C" {
10491 #endif
10492
10493 EOF
10494           # Now generate the symbol file.
10495           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10496
10497           cat <<EOF >> conftest.$ac_ext
10498 #if defined (__STDC__) && __STDC__
10499 # define lt_ptr_t void *
10500 #else
10501 # define lt_ptr_t char *
10502 # define const
10503 #endif
10504
10505 /* The mapping between symbol names and symbols. */
10506 const struct {
10507   const char *name;
10508   lt_ptr_t address;
10509 }
10510 lt_preloaded_symbols[] =
10511 {
10512 EOF
10513           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10514           cat <<\EOF >> conftest.$ac_ext
10515   {0, (lt_ptr_t) 0}
10516 };
10517
10518 #ifdef __cplusplus
10519 }
10520 #endif
10521 EOF
10522           # Now try linking the two files.
10523           mv conftest.$ac_objext conftstm.$ac_objext
10524           lt_save_LIBS="$LIBS"
10525           lt_save_CFLAGS="$CFLAGS"
10526           LIBS="conftstm.$ac_objext"
10527           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10528           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529   (eval $ac_link) 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10533             pipe_works=yes
10534           fi
10535           LIBS="$lt_save_LIBS"
10536           CFLAGS="$lt_save_CFLAGS"
10537         else
10538           echo "cannot find nm_test_func in $nlist" >&5
10539         fi
10540       else
10541         echo "cannot find nm_test_var in $nlist" >&5
10542       fi
10543     else
10544       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10545     fi
10546   else
10547     echo "$progname: failed program was:" >&5
10548     cat conftest.$ac_ext >&5
10549   fi
10550   rm -f conftest* conftst*
10551
10552   # Do not use the global_symbol_pipe unless it works.
10553   if test "$pipe_works" = yes; then
10554     break
10555   else
10556     lt_cv_sys_global_symbol_pipe=
10557   fi
10558 done
10559
10560 fi
10561
10562 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10563   lt_cv_sys_global_symbol_to_cdecl=
10564 fi
10565 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10566   { echo "$as_me:$LINENO: result: failed" >&5
10567 echo "${ECHO_T}failed" >&6; }
10568 else
10569   { echo "$as_me:$LINENO: result: ok" >&5
10570 echo "${ECHO_T}ok" >&6; }
10571 fi
10572
10573
10574 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10575 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10576 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10577   echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10580     libltdl_cv_preloaded_symbols=yes
10581   else
10582     libltdl_cv_preloaded_symbols=no
10583   fi
10584
10585 fi
10586 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10587 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10588 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10589
10590 cat >>confdefs.h <<\_ACEOF
10591 #define HAVE_PRELOADED_SYMBOLS 1
10592 _ACEOF
10593
10594 fi
10595
10596 LIBADD_DL=
10597
10598 ac_ext=c
10599 ac_cpp='$CPP $CPPFLAGS'
10600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10603
10604
10605 { echo "$as_me:$LINENO: checking for shl_load" >&5
10606 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10607 if test "${ac_cv_func_shl_load+set}" = set; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610   cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h.  */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h.  */
10616 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10618 #define shl_load innocuous_shl_load
10619
10620 /* System header to define __stub macros and hopefully few prototypes,
10621     which can conflict with char shl_load (); below.
10622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10623     <limits.h> exists even on freestanding compilers.  */
10624
10625 #ifdef __STDC__
10626 # include <limits.h>
10627 #else
10628 # include <assert.h>
10629 #endif
10630
10631 #undef shl_load
10632
10633 /* Override any GCC internal prototype to avoid an error.
10634    Use char because int might match the return type of a GCC
10635    builtin and then its argument prototype would still apply.  */
10636 #ifdef __cplusplus
10637 extern "C"
10638 #endif
10639 char shl_load ();
10640 /* The GNU C library defines this for functions which it implements
10641     to always fail with ENOSYS.  Some functions are actually named
10642     something starting with __ and the normal name is an alias.  */
10643 #if defined __stub_shl_load || defined __stub___shl_load
10644 choke me
10645 #endif
10646
10647 int
10648 main ()
10649 {
10650 return shl_load ();
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (ac_try="$ac_link"
10657 case "(($ac_try" in
10658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659   *) ac_try_echo=$ac_try;;
10660 esac
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662   (eval "$ac_link") 2>conftest.er1
10663   ac_status=$?
10664   grep -v '^ *+' conftest.er1 >conftest.err
10665   rm -f conftest.er1
10666   cat conftest.err >&5
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); } &&
10669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670   { (case "(($ac_try" in
10671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672   *) ac_try_echo=$ac_try;;
10673 esac
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675   (eval "$ac_try") 2>&5
10676   ac_status=$?
10677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678   (exit $ac_status); }; } &&
10679          { ac_try='test -s conftest$ac_exeext'
10680   { (case "(($ac_try" in
10681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682   *) ac_try_echo=$ac_try;;
10683 esac
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685   (eval "$ac_try") 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; }; then
10689   ac_cv_func_shl_load=yes
10690 else
10691   echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10693
10694         ac_cv_func_shl_load=no
10695 fi
10696
10697 rm -f core conftest.err conftest.$ac_objext \
10698       conftest$ac_exeext conftest.$ac_ext
10699 fi
10700 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10701 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10702 if test $ac_cv_func_shl_load = yes; then
10703
10704 cat >>confdefs.h <<\_ACEOF
10705 #define HAVE_SHL_LOAD 1
10706 _ACEOF
10707
10708 else
10709   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10710 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10712   echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714   ac_check_lib_save_LIBS=$LIBS
10715 LIBS="-ldld  $LIBS"
10716 cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h.  */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h.  */
10722
10723 /* Override any GCC internal prototype to avoid an error.
10724    Use char because int might match the return type of a GCC
10725    builtin and then its argument prototype would still apply.  */
10726 #ifdef __cplusplus
10727 extern "C"
10728 #endif
10729 char shl_load ();
10730 int
10731 main ()
10732 {
10733 return shl_load ();
10734   ;
10735   return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (ac_try="$ac_link"
10740 case "(($ac_try" in
10741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742   *) ac_try_echo=$ac_try;;
10743 esac
10744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10745   (eval "$ac_link") 2>conftest.er1
10746   ac_status=$?
10747   grep -v '^ *+' conftest.er1 >conftest.err
10748   rm -f conftest.er1
10749   cat conftest.err >&5
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10753   { (case "(($ac_try" in
10754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755   *) ac_try_echo=$ac_try;;
10756 esac
10757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758   (eval "$ac_try") 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); }; } &&
10762          { ac_try='test -s conftest$ac_exeext'
10763   { (case "(($ac_try" in
10764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765   *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768   (eval "$ac_try") 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); }; }; then
10772   ac_cv_lib_dld_shl_load=yes
10773 else
10774   echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10776
10777         ac_cv_lib_dld_shl_load=no
10778 fi
10779
10780 rm -f core conftest.err conftest.$ac_objext \
10781       conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10783 fi
10784 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10785 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10786 if test $ac_cv_lib_dld_shl_load = yes; then
10787
10788 cat >>confdefs.h <<\_ACEOF
10789 #define HAVE_SHL_LOAD 1
10790 _ACEOF
10791
10792         LIBADD_DL="$LIBADD_DL -ldld"
10793 else
10794   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10797   echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799   ac_check_lib_save_LIBS=$LIBS
10800 LIBS="-ldl  $LIBS"
10801 cat >conftest.$ac_ext <<_ACEOF
10802 /* confdefs.h.  */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h.  */
10807
10808 /* Override any GCC internal prototype to avoid an error.
10809    Use char because int might match the return type of a GCC
10810    builtin and then its argument prototype would still apply.  */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 char dlopen ();
10815 int
10816 main ()
10817 {
10818 return dlopen ();
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 rm -f conftest.$ac_objext conftest$ac_exeext
10824 if { (ac_try="$ac_link"
10825 case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830   (eval "$ac_link") 2>conftest.er1
10831   ac_status=$?
10832   grep -v '^ *+' conftest.er1 >conftest.err
10833   rm -f conftest.er1
10834   cat conftest.err >&5
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); } &&
10837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10838   { (case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_try") 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; } &&
10847          { ac_try='test -s conftest$ac_exeext'
10848   { (case "(($ac_try" in
10849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850   *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853   (eval "$ac_try") 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; }; then
10857   ac_cv_lib_dl_dlopen=yes
10858 else
10859   echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862         ac_cv_lib_dl_dlopen=no
10863 fi
10864
10865 rm -f core conftest.err conftest.$ac_objext \
10866       conftest$ac_exeext conftest.$ac_ext
10867 LIBS=$ac_check_lib_save_LIBS
10868 fi
10869 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10870 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10871 if test $ac_cv_lib_dl_dlopen = yes; then
10872
10873 cat >>confdefs.h <<\_ACEOF
10874 #define HAVE_LIBDL 1
10875 _ACEOF
10876
10877                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10878 else
10879   cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 #if HAVE_DLFCN_H
10886 #  include <dlfcn.h>
10887 #endif
10888
10889 int
10890 main ()
10891 {
10892 dlopen(0, 0);
10893   ;
10894   return 0;
10895 }
10896 _ACEOF
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (ac_try="$ac_link"
10899 case "(($ac_try" in
10900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901   *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904   (eval "$ac_link") 2>conftest.er1
10905   ac_status=$?
10906   grep -v '^ *+' conftest.er1 >conftest.err
10907   rm -f conftest.er1
10908   cat conftest.err >&5
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } &&
10911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10912   { (case "(($ac_try" in
10913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914   *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917   (eval "$ac_try") 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; } &&
10921          { ac_try='test -s conftest$ac_exeext'
10922   { (case "(($ac_try" in
10923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924   *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927   (eval "$ac_try") 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); }; }; then
10931
10932 cat >>confdefs.h <<\_ACEOF
10933 #define HAVE_LIBDL 1
10934 _ACEOF
10935  libltdl_cv_func_dlopen="yes"
10936 else
10937   echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10939
10940         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10941 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10942 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10943   echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945   ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-lsvld  $LIBS"
10947 cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h.  */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h.  */
10953
10954 /* Override any GCC internal prototype to avoid an error.
10955    Use char because int might match the return type of a GCC
10956    builtin and then its argument prototype would still apply.  */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char dlopen ();
10961 int
10962 main ()
10963 {
10964 return dlopen ();
10965   ;
10966   return 0;
10967 }
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (ac_try="$ac_link"
10971 case "(($ac_try" in
10972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973   *) ac_try_echo=$ac_try;;
10974 esac
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976   (eval "$ac_link") 2>conftest.er1
10977   ac_status=$?
10978   grep -v '^ *+' conftest.er1 >conftest.err
10979   rm -f conftest.er1
10980   cat conftest.err >&5
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); } &&
10983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10984   { (case "(($ac_try" in
10985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986   *) ac_try_echo=$ac_try;;
10987 esac
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989   (eval "$ac_try") 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); }; } &&
10993          { ac_try='test -s conftest$ac_exeext'
10994   { (case "(($ac_try" in
10995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996   *) ac_try_echo=$ac_try;;
10997 esac
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999   (eval "$ac_try") 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); }; }; then
11003   ac_cv_lib_svld_dlopen=yes
11004 else
11005   echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11007
11008         ac_cv_lib_svld_dlopen=no
11009 fi
11010
11011 rm -f core conftest.err conftest.$ac_objext \
11012       conftest$ac_exeext conftest.$ac_ext
11013 LIBS=$ac_check_lib_save_LIBS
11014 fi
11015 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11016 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11017 if test $ac_cv_lib_svld_dlopen = yes; then
11018
11019 cat >>confdefs.h <<\_ACEOF
11020 #define HAVE_LIBDL 1
11021 _ACEOF
11022
11023                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11024 else
11025   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11026 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11027 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030   ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-ldld  $LIBS"
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h.  */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h.  */
11038
11039 /* Override any GCC internal prototype to avoid an error.
11040    Use char because int might match the return type of a GCC
11041    builtin and then its argument prototype would still apply.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char dld_link ();
11046 int
11047 main ()
11048 {
11049 return dld_link ();
11050   ;
11051   return 0;
11052 }
11053 _ACEOF
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (ac_try="$ac_link"
11056 case "(($ac_try" in
11057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058   *) ac_try_echo=$ac_try;;
11059 esac
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061   (eval "$ac_link") 2>conftest.er1
11062   ac_status=$?
11063   grep -v '^ *+' conftest.er1 >conftest.err
11064   rm -f conftest.er1
11065   cat conftest.err >&5
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } &&
11068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11069   { (case "(($ac_try" in
11070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071   *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074   (eval "$ac_try") 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); }; } &&
11078          { ac_try='test -s conftest$ac_exeext'
11079   { (case "(($ac_try" in
11080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081   *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084   (eval "$ac_try") 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); }; }; then
11088   ac_cv_lib_dld_dld_link=yes
11089 else
11090   echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093         ac_cv_lib_dld_dld_link=no
11094 fi
11095
11096 rm -f core conftest.err conftest.$ac_objext \
11097       conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_lib_save_LIBS
11099 fi
11100 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11101 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11102 if test $ac_cv_lib_dld_dld_link = yes; then
11103
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_DLD 1
11106 _ACEOF
11107
11108                 LIBADD_DL="$LIBADD_DL -ldld"
11109 else
11110   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11111 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11112 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h.  */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h.  */
11121 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11123 #define _dyld_func_lookup innocuous__dyld_func_lookup
11124
11125 /* System header to define __stub macros and hopefully few prototypes,
11126     which can conflict with char _dyld_func_lookup (); below.
11127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11128     <limits.h> exists even on freestanding compilers.  */
11129
11130 #ifdef __STDC__
11131 # include <limits.h>
11132 #else
11133 # include <assert.h>
11134 #endif
11135
11136 #undef _dyld_func_lookup
11137
11138 /* Override any GCC internal prototype to avoid an error.
11139    Use char because int might match the return type of a GCC
11140    builtin and then its argument prototype would still apply.  */
11141 #ifdef __cplusplus
11142 extern "C"
11143 #endif
11144 char _dyld_func_lookup ();
11145 /* The GNU C library defines this for functions which it implements
11146     to always fail with ENOSYS.  Some functions are actually named
11147     something starting with __ and the normal name is an alias.  */
11148 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11149 choke me
11150 #endif
11151
11152 int
11153 main ()
11154 {
11155 return _dyld_func_lookup ();
11156   ;
11157   return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest.$ac_objext conftest$ac_exeext
11161 if { (ac_try="$ac_link"
11162 case "(($ac_try" in
11163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164   *) ac_try_echo=$ac_try;;
11165 esac
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167   (eval "$ac_link") 2>conftest.er1
11168   ac_status=$?
11169   grep -v '^ *+' conftest.er1 >conftest.err
11170   rm -f conftest.er1
11171   cat conftest.err >&5
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); } &&
11174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11175   { (case "(($ac_try" in
11176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177   *) ac_try_echo=$ac_try;;
11178 esac
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180   (eval "$ac_try") 2>&5
11181   ac_status=$?
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); }; } &&
11184          { ac_try='test -s conftest$ac_exeext'
11185   { (case "(($ac_try" in
11186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187   *) ac_try_echo=$ac_try;;
11188 esac
11189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190   (eval "$ac_try") 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; }; then
11194   ac_cv_func__dyld_func_lookup=yes
11195 else
11196   echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11198
11199         ac_cv_func__dyld_func_lookup=no
11200 fi
11201
11202 rm -f core conftest.err conftest.$ac_objext \
11203       conftest$ac_exeext conftest.$ac_ext
11204 fi
11205 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11206 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11207 if test $ac_cv_func__dyld_func_lookup = yes; then
11208
11209 cat >>confdefs.h <<\_ACEOF
11210 #define HAVE_DYLD 1
11211 _ACEOF
11212
11213 fi
11214
11215
11216 fi
11217
11218
11219 fi
11220
11221
11222 fi
11223
11224 rm -f core conftest.err conftest.$ac_objext \
11225       conftest$ac_exeext conftest.$ac_ext
11226
11227 fi
11228
11229
11230 fi
11231
11232
11233 fi
11234
11235
11236 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11237 then
11238   lt_save_LIBS="$LIBS"
11239   LIBS="$LIBS $LIBADD_DL"
11240
11241 for ac_func in dlerror
11242 do
11243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11247   echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249   cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11257 #define $ac_func innocuous_$ac_func
11258
11259 /* System header to define __stub macros and hopefully few prototypes,
11260     which can conflict with char $ac_func (); below.
11261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11262     <limits.h> exists even on freestanding compilers.  */
11263
11264 #ifdef __STDC__
11265 # include <limits.h>
11266 #else
11267 # include <assert.h>
11268 #endif
11269
11270 #undef $ac_func
11271
11272 /* Override any GCC internal prototype to avoid an error.
11273    Use char because int might match the return type of a GCC
11274    builtin and then its argument prototype would still apply.  */
11275 #ifdef __cplusplus
11276 extern "C"
11277 #endif
11278 char $ac_func ();
11279 /* The GNU C library defines this for functions which it implements
11280     to always fail with ENOSYS.  Some functions are actually named
11281     something starting with __ and the normal name is an alias.  */
11282 #if defined __stub_$ac_func || defined __stub___$ac_func
11283 choke me
11284 #endif
11285
11286 int
11287 main ()
11288 {
11289 return $ac_func ();
11290   ;
11291   return 0;
11292 }
11293 _ACEOF
11294 rm -f conftest.$ac_objext conftest$ac_exeext
11295 if { (ac_try="$ac_link"
11296 case "(($ac_try" in
11297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298   *) ac_try_echo=$ac_try;;
11299 esac
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301   (eval "$ac_link") 2>conftest.er1
11302   ac_status=$?
11303   grep -v '^ *+' conftest.er1 >conftest.err
11304   rm -f conftest.er1
11305   cat conftest.err >&5
11306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307   (exit $ac_status); } &&
11308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11309   { (case "(($ac_try" in
11310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311   *) ac_try_echo=$ac_try;;
11312 esac
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314   (eval "$ac_try") 2>&5
11315   ac_status=$?
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); }; } &&
11318          { ac_try='test -s conftest$ac_exeext'
11319   { (case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_try") 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; }; then
11328   eval "$as_ac_var=yes"
11329 else
11330   echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333         eval "$as_ac_var=no"
11334 fi
11335
11336 rm -f core conftest.err conftest.$ac_objext \
11337       conftest$ac_exeext conftest.$ac_ext
11338 fi
11339 ac_res=`eval echo '${'$as_ac_var'}'`
11340                { echo "$as_me:$LINENO: result: $ac_res" >&5
11341 echo "${ECHO_T}$ac_res" >&6; }
11342 if test `eval echo '${'$as_ac_var'}'` = yes; then
11343   cat >>confdefs.h <<_ACEOF
11344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11345 _ACEOF
11346
11347 fi
11348 done
11349
11350   LIBS="$lt_save_LIBS"
11351 fi
11352 ac_ext=c
11353 ac_cpp='$CPP $CPPFLAGS'
11354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11357
11358
11359
11360 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11361 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11362 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11363   echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365   ac_cv_sys_symbol_underscore=no
11366   cat > conftest.$ac_ext <<EOF
11367 void nm_test_func(){}
11368 int main(){nm_test_func;return 0;}
11369 EOF
11370   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11371   (eval $ac_compile) 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; then
11375     # Now try to grab the symbols.
11376     ac_nlist=conftest.nm
11377     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11378   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); } && test -s "$ac_nlist"; then
11382       # See whether the symbols have a leading underscore.
11383       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11384         ac_cv_sys_symbol_underscore=yes
11385       else
11386         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11387           :
11388         else
11389           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11390         fi
11391       fi
11392     else
11393       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11394     fi
11395   else
11396     echo "configure: failed program was:" >&5
11397     cat conftest.c >&5
11398   fi
11399   rm -rf conftest*
11400
11401 fi
11402 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11403 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11404
11405
11406 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11407   if test x"$libltdl_cv_func_dlopen" = xyes ||
11408      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11409         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11410 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11411 if test "${libltdl_cv_need_uscore+set}" = set; then
11412   echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414   libltdl_cv_need_uscore=unknown
11415           save_LIBS="$LIBS"
11416           LIBS="$LIBS $LIBADD_DL"
11417           if test "$cross_compiling" = yes; then :
11418   libltdl_cv_need_uscore=cross
11419 else
11420   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11421   lt_status=$lt_dlunknown
11422   cat > conftest.$ac_ext <<EOF
11423 #line 11423 "configure"
11424 #include "confdefs.h"
11425
11426 #if HAVE_DLFCN_H
11427 #include <dlfcn.h>
11428 #endif
11429
11430 #include <stdio.h>
11431
11432 #ifdef RTLD_GLOBAL
11433 #  define LT_DLGLOBAL           RTLD_GLOBAL
11434 #else
11435 #  ifdef DL_GLOBAL
11436 #    define LT_DLGLOBAL         DL_GLOBAL
11437 #  else
11438 #    define LT_DLGLOBAL         0
11439 #  endif
11440 #endif
11441
11442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11443    find out it does not work in some platform. */
11444 #ifndef LT_DLLAZY_OR_NOW
11445 #  ifdef RTLD_LAZY
11446 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11447 #  else
11448 #    ifdef DL_LAZY
11449 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11450 #    else
11451 #      ifdef RTLD_NOW
11452 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11453 #      else
11454 #        ifdef DL_NOW
11455 #          define LT_DLLAZY_OR_NOW      DL_NOW
11456 #        else
11457 #          define LT_DLLAZY_OR_NOW      0
11458 #        endif
11459 #      endif
11460 #    endif
11461 #  endif
11462 #endif
11463
11464 #ifdef __cplusplus
11465 extern "C" void exit (int);
11466 #endif
11467
11468 void fnord() { int i=42;}
11469 int main ()
11470 {
11471   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11472   int status = $lt_dlunknown;
11473
11474   if (self)
11475     {
11476       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11477       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11478       /* dlclose (self); */
11479     }
11480   else
11481     puts (dlerror ());
11482
11483     exit (status);
11484 }
11485 EOF
11486   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487   (eval $ac_link) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11491     (./conftest; exit; ) >&5 2>/dev/null
11492     lt_status=$?
11493     case x$lt_status in
11494       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11495       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11496       x$lt_dlunknown|x*)  ;;
11497     esac
11498   else :
11499     # compilation failed
11500
11501   fi
11502 fi
11503 rm -fr conftest*
11504
11505           LIBS="$save_LIBS"
11506
11507 fi
11508 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11509 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11510   fi
11511 fi
11512
11513 if test x"$libltdl_cv_need_uscore" = xyes; then
11514
11515 cat >>confdefs.h <<\_ACEOF
11516 #define NEED_USCORE 1
11517 _ACEOF
11518
11519 fi
11520
11521
11522 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11523 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11524 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11525   echo $ECHO_N "(cached) $ECHO_C" >&6
11526 else
11527   # PORTME does your system automatically load deplibs for dlopen?
11528   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11529   # For now, we just catch OSes we know something about -- in the
11530   # future, we'll try test this programmatically.
11531   libltdl_cv_sys_dlopen_deplibs=unknown
11532   case "$host_os" in
11533   aix3*|aix4.1.*|aix4.2.*)
11534     # Unknown whether this is true for these versions of AIX, but
11535     # we want this `case' here to explicitly catch those versions.
11536     libltdl_cv_sys_dlopen_deplibs=unknown
11537     ;;
11538   aix[45]*)
11539     libltdl_cv_sys_dlopen_deplibs=yes
11540     ;;
11541   darwin*)
11542     # Assuming the user has installed a libdl from somewhere, this is true
11543     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11544     libltdl_cv_sys_dlopen_deplibs=yes
11545     ;;
11546   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11547     # GNU and its variants, using gnu ld.so (Glibc)
11548     libltdl_cv_sys_dlopen_deplibs=yes
11549     ;;
11550   hpux10*|hpux11*)
11551     libltdl_cv_sys_dlopen_deplibs=yes
11552     ;;
11553   interix*)
11554     libltdl_cv_sys_dlopen_deplibs=yes
11555     ;;
11556   irix[12345]*|irix6.[01]*)
11557     # Catch all versions of IRIX before 6.2, and indicate that we don't
11558     # know how it worked for any of those versions.
11559     libltdl_cv_sys_dlopen_deplibs=unknown
11560     ;;
11561   irix*)
11562     # The case above catches anything before 6.2, and it's known that
11563     # at 6.2 and later dlopen does load deplibs.
11564     libltdl_cv_sys_dlopen_deplibs=yes
11565     ;;
11566   netbsd*)
11567     libltdl_cv_sys_dlopen_deplibs=yes
11568     ;;
11569   openbsd*)
11570     libltdl_cv_sys_dlopen_deplibs=yes
11571     ;;
11572   osf[1234]*)
11573     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11574     # it did *not* use an RPATH in a shared library to find objects the
11575     # library depends on, so we explictly say `no'.
11576     libltdl_cv_sys_dlopen_deplibs=no
11577     ;;
11578   osf5.0|osf5.0a|osf5.1)
11579     # dlopen *does* load deplibs and with the right loader patch applied
11580     # it even uses RPATH in a shared library to search for shared objects
11581     # that the library depends on, but there's no easy way to know if that
11582     # patch is installed.  Since this is the case, all we can really
11583     # say is unknown -- it depends on the patch being installed.  If
11584     # it is, this changes to `yes'.  Without it, it would be `no'.
11585     libltdl_cv_sys_dlopen_deplibs=unknown
11586     ;;
11587   osf*)
11588     # the two cases above should catch all versions of osf <= 5.1.  Read
11589     # the comments above for what we know about them.
11590     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11591     # is used to find them so we can finally say `yes'.
11592     libltdl_cv_sys_dlopen_deplibs=yes
11593     ;;
11594   solaris*)
11595     libltdl_cv_sys_dlopen_deplibs=yes
11596     ;;
11597   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11598     libltdl_cv_sys_dlopen_deplibs=yes
11599     ;;
11600   esac
11601
11602 fi
11603 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11604 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11605 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11606
11607 cat >>confdefs.h <<\_ACEOF
11608 #define LTDL_DLOPEN_DEPLIBS 1
11609 _ACEOF
11610
11611 fi
11612
11613
11614 for ac_header in argz.h
11615 do
11616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 fi
11623 ac_res=`eval echo '${'$as_ac_Header'}'`
11624                { echo "$as_me:$LINENO: result: $ac_res" >&5
11625 echo "${ECHO_T}$ac_res" >&6; }
11626 else
11627   # Is the header compilable?
11628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11630 cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636 $ac_includes_default
11637 #include <$ac_header>
11638 _ACEOF
11639 rm -f conftest.$ac_objext
11640 if { (ac_try="$ac_compile"
11641 case "(($ac_try" in
11642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643   *) ac_try_echo=$ac_try;;
11644 esac
11645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646   (eval "$ac_compile") 2>conftest.er1
11647   ac_status=$?
11648   grep -v '^ *+' conftest.er1 >conftest.err
11649   rm -f conftest.er1
11650   cat conftest.err >&5
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); } &&
11653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11654   { (case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659   (eval "$ac_try") 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; } &&
11663          { ac_try='test -s conftest.$ac_objext'
11664   { (case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669   (eval "$ac_try") 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); }; }; then
11673   ac_header_compiler=yes
11674 else
11675   echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678         ac_header_compiler=no
11679 fi
11680
11681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11683 echo "${ECHO_T}$ac_header_compiler" >&6; }
11684
11685 # Is the header present?
11686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694 #include <$ac_header>
11695 _ACEOF
11696 if { (ac_try="$ac_cpp conftest.$ac_ext"
11697 case "(($ac_try" in
11698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699   *) ac_try_echo=$ac_try;;
11700 esac
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11703   ac_status=$?
11704   grep -v '^ *+' conftest.er1 >conftest.err
11705   rm -f conftest.er1
11706   cat conftest.err >&5
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } >/dev/null; then
11709   if test -s conftest.err; then
11710     ac_cpp_err=$ac_c_preproc_warn_flag
11711     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11712   else
11713     ac_cpp_err=
11714   fi
11715 else
11716   ac_cpp_err=yes
11717 fi
11718 if test -z "$ac_cpp_err"; then
11719   ac_header_preproc=yes
11720 else
11721   echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11723
11724   ac_header_preproc=no
11725 fi
11726
11727 rm -f conftest.err conftest.$ac_ext
11728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11729 echo "${ECHO_T}$ac_header_preproc" >&6; }
11730
11731 # So?  What about this header?
11732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11733   yes:no: )
11734     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11738     ac_header_preproc=yes
11739     ;;
11740   no:yes:* )
11741     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11743     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11744 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11745     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11747     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11748 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11751     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11753     ( cat <<\_ASBOX
11754 ## ----------------------------------- ##
11755 ## Report this to llvmbugs@cs.uiuc.edu ##
11756 ## ----------------------------------- ##
11757 _ASBOX
11758      ) | sed "s/^/$as_me: WARNING:     /" >&2
11759     ;;
11760 esac
11761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764   echo $ECHO_N "(cached) $ECHO_C" >&6
11765 else
11766   eval "$as_ac_Header=\$ac_header_preproc"
11767 fi
11768 ac_res=`eval echo '${'$as_ac_Header'}'`
11769                { echo "$as_me:$LINENO: result: $ac_res" >&5
11770 echo "${ECHO_T}$ac_res" >&6; }
11771
11772 fi
11773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11774   cat >>confdefs.h <<_ACEOF
11775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11776 _ACEOF
11777
11778 fi
11779
11780 done
11781
11782
11783 { echo "$as_me:$LINENO: checking for error_t" >&5
11784 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11785 if test "${ac_cv_type_error_t+set}" = set; then
11786   echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788   cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794 #if HAVE_ARGZ_H
11795 #  include <argz.h>
11796 #endif
11797
11798 typedef error_t ac__type_new_;
11799 int
11800 main ()
11801 {
11802 if ((ac__type_new_ *) 0)
11803   return 0;
11804 if (sizeof (ac__type_new_))
11805   return 0;
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 rm -f conftest.$ac_objext
11811 if { (ac_try="$ac_compile"
11812 case "(($ac_try" in
11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814   *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817   (eval "$ac_compile") 2>conftest.er1
11818   ac_status=$?
11819   grep -v '^ *+' conftest.er1 >conftest.err
11820   rm -f conftest.er1
11821   cat conftest.err >&5
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); } &&
11824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11825   { (case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_try") 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; } &&
11834          { ac_try='test -s conftest.$ac_objext'
11835   { (case "(($ac_try" in
11836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837   *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840   (eval "$ac_try") 2>&5
11841   ac_status=$?
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); }; }; then
11844   ac_cv_type_error_t=yes
11845 else
11846   echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849         ac_cv_type_error_t=no
11850 fi
11851
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 fi
11854 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11855 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11856 if test $ac_cv_type_error_t = yes; then
11857
11858 cat >>confdefs.h <<_ACEOF
11859 #define HAVE_ERROR_T 1
11860 _ACEOF
11861
11862
11863 else
11864
11865 cat >>confdefs.h <<\_ACEOF
11866 #define error_t int
11867 _ACEOF
11868
11869 fi
11870
11871
11872
11873
11874
11875
11876
11877 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11878 do
11879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11893 #define $ac_func innocuous_$ac_func
11894
11895 /* System header to define __stub macros and hopefully few prototypes,
11896     which can conflict with char $ac_func (); below.
11897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11898     <limits.h> exists even on freestanding compilers.  */
11899
11900 #ifdef __STDC__
11901 # include <limits.h>
11902 #else
11903 # include <assert.h>
11904 #endif
11905
11906 #undef $ac_func
11907
11908 /* Override any GCC internal prototype to avoid an error.
11909    Use char because int might match the return type of a GCC
11910    builtin and then its argument prototype would still apply.  */
11911 #ifdef __cplusplus
11912 extern "C"
11913 #endif
11914 char $ac_func ();
11915 /* The GNU C library defines this for functions which it implements
11916     to always fail with ENOSYS.  Some functions are actually named
11917     something starting with __ and the normal name is an alias.  */
11918 #if defined __stub_$ac_func || defined __stub___$ac_func
11919 choke me
11920 #endif
11921
11922 int
11923 main ()
11924 {
11925 return $ac_func ();
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (ac_try="$ac_link"
11932 case "(($ac_try" in
11933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934   *) ac_try_echo=$ac_try;;
11935 esac
11936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937   (eval "$ac_link") 2>conftest.er1
11938   ac_status=$?
11939   grep -v '^ *+' conftest.er1 >conftest.err
11940   rm -f conftest.er1
11941   cat conftest.err >&5
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); } &&
11944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11945   { (case "(($ac_try" in
11946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947   *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950   (eval "$ac_try") 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; } &&
11954          { ac_try='test -s conftest$ac_exeext'
11955   { (case "(($ac_try" in
11956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957   *) ac_try_echo=$ac_try;;
11958 esac
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960   (eval "$ac_try") 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; }; then
11964   eval "$as_ac_var=yes"
11965 else
11966   echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969         eval "$as_ac_var=no"
11970 fi
11971
11972 rm -f core conftest.err conftest.$ac_objext \
11973       conftest$ac_exeext conftest.$ac_ext
11974 fi
11975 ac_res=`eval echo '${'$as_ac_var'}'`
11976                { echo "$as_me:$LINENO: result: $ac_res" >&5
11977 echo "${ECHO_T}$ac_res" >&6; }
11978 if test `eval echo '${'$as_ac_var'}'` = yes; then
11979   cat >>confdefs.h <<_ACEOF
11980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11981 _ACEOF
11982
11983 fi
11984 done
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12014                   stdio.h unistd.h
12015 do
12016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12018   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12021   echo $ECHO_N "(cached) $ECHO_C" >&6
12022 fi
12023 ac_res=`eval echo '${'$as_ac_Header'}'`
12024                { echo "$as_me:$LINENO: result: $ac_res" >&5
12025 echo "${ECHO_T}$ac_res" >&6; }
12026 else
12027   # Is the header compilable?
12028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h.  */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h.  */
12036 $ac_includes_default
12037 #include <$ac_header>
12038 _ACEOF
12039 rm -f conftest.$ac_objext
12040 if { (ac_try="$ac_compile"
12041 case "(($ac_try" in
12042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043   *) ac_try_echo=$ac_try;;
12044 esac
12045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046   (eval "$ac_compile") 2>conftest.er1
12047   ac_status=$?
12048   grep -v '^ *+' conftest.er1 >conftest.err
12049   rm -f conftest.er1
12050   cat conftest.err >&5
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); } &&
12053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12054   { (case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059   (eval "$ac_try") 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; } &&
12063          { ac_try='test -s conftest.$ac_objext'
12064   { (case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069   (eval "$ac_try") 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073   ac_header_compiler=yes
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078         ac_header_compiler=no
12079 fi
12080
12081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12083 echo "${ECHO_T}$ac_header_compiler" >&6; }
12084
12085 # Is the header present?
12086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h.  */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h.  */
12094 #include <$ac_header>
12095 _ACEOF
12096 if { (ac_try="$ac_cpp conftest.$ac_ext"
12097 case "(($ac_try" in
12098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099   *) ac_try_echo=$ac_try;;
12100 esac
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12103   ac_status=$?
12104   grep -v '^ *+' conftest.er1 >conftest.err
12105   rm -f conftest.er1
12106   cat conftest.err >&5
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } >/dev/null; then
12109   if test -s conftest.err; then
12110     ac_cpp_err=$ac_c_preproc_warn_flag
12111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12112   else
12113     ac_cpp_err=
12114   fi
12115 else
12116   ac_cpp_err=yes
12117 fi
12118 if test -z "$ac_cpp_err"; then
12119   ac_header_preproc=yes
12120 else
12121   echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12123
12124   ac_header_preproc=no
12125 fi
12126
12127 rm -f conftest.err conftest.$ac_ext
12128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12129 echo "${ECHO_T}$ac_header_preproc" >&6; }
12130
12131 # So?  What about this header?
12132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12133   yes:no: )
12134     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12138     ac_header_preproc=yes
12139     ;;
12140   no:yes:* )
12141     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12143     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12144 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12145     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12147     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12148 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12151     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12153     ( cat <<\_ASBOX
12154 ## ----------------------------------- ##
12155 ## Report this to llvmbugs@cs.uiuc.edu ##
12156 ## ----------------------------------- ##
12157 _ASBOX
12158      ) | sed "s/^/$as_me: WARNING:     /" >&2
12159     ;;
12160 esac
12161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164   echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166   eval "$as_ac_Header=\$ac_header_preproc"
12167 fi
12168 ac_res=`eval echo '${'$as_ac_Header'}'`
12169                { echo "$as_me:$LINENO: result: $ac_res" >&5
12170 echo "${ECHO_T}$ac_res" >&6; }
12171
12172 fi
12173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12174   cat >>confdefs.h <<_ACEOF
12175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12176 _ACEOF
12177
12178 fi
12179
12180 done
12181
12182
12183
12184
12185
12186 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12187 do
12188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12190   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12193   echo $ECHO_N "(cached) $ECHO_C" >&6
12194 fi
12195 ac_res=`eval echo '${'$as_ac_Header'}'`
12196                { echo "$as_me:$LINENO: result: $ac_res" >&5
12197 echo "${ECHO_T}$ac_res" >&6; }
12198 else
12199   # Is the header compilable?
12200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h.  */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h.  */
12208 $ac_includes_default
12209 #include <$ac_header>
12210 _ACEOF
12211 rm -f conftest.$ac_objext
12212 if { (ac_try="$ac_compile"
12213 case "(($ac_try" in
12214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215   *) ac_try_echo=$ac_try;;
12216 esac
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218   (eval "$ac_compile") 2>conftest.er1
12219   ac_status=$?
12220   grep -v '^ *+' conftest.er1 >conftest.err
12221   rm -f conftest.er1
12222   cat conftest.err >&5
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } &&
12225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12226   { (case "(($ac_try" in
12227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228   *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231   (eval "$ac_try") 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; } &&
12235          { ac_try='test -s conftest.$ac_objext'
12236   { (case "(($ac_try" in
12237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238   *) ac_try_echo=$ac_try;;
12239 esac
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241   (eval "$ac_try") 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); }; }; then
12245   ac_header_compiler=yes
12246 else
12247   echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12249
12250         ac_header_compiler=no
12251 fi
12252
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12255 echo "${ECHO_T}$ac_header_compiler" >&6; }
12256
12257 # Is the header present?
12258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h.  */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h.  */
12266 #include <$ac_header>
12267 _ACEOF
12268 if { (ac_try="$ac_cpp conftest.$ac_ext"
12269 case "(($ac_try" in
12270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271   *) ac_try_echo=$ac_try;;
12272 esac
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12275   ac_status=$?
12276   grep -v '^ *+' conftest.er1 >conftest.err
12277   rm -f conftest.er1
12278   cat conftest.err >&5
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); } >/dev/null; then
12281   if test -s conftest.err; then
12282     ac_cpp_err=$ac_c_preproc_warn_flag
12283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12284   else
12285     ac_cpp_err=
12286   fi
12287 else
12288   ac_cpp_err=yes
12289 fi
12290 if test -z "$ac_cpp_err"; then
12291   ac_header_preproc=yes
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296   ac_header_preproc=no
12297 fi
12298
12299 rm -f conftest.err conftest.$ac_ext
12300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12301 echo "${ECHO_T}$ac_header_preproc" >&6; }
12302
12303 # So?  What about this header?
12304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12305   yes:no: )
12306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12310     ac_header_preproc=yes
12311     ;;
12312   no:yes:* )
12313     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12315     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12316 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12317     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12319     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12320 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12323     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12325     ( cat <<\_ASBOX
12326 ## ----------------------------------- ##
12327 ## Report this to llvmbugs@cs.uiuc.edu ##
12328 ## ----------------------------------- ##
12329 _ASBOX
12330      ) | sed "s/^/$as_me: WARNING:     /" >&2
12331     ;;
12332 esac
12333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   eval "$as_ac_Header=\$ac_header_preproc"
12339 fi
12340 ac_res=`eval echo '${'$as_ac_Header'}'`
12341                { echo "$as_me:$LINENO: result: $ac_res" >&5
12342 echo "${ECHO_T}$ac_res" >&6; }
12343
12344 fi
12345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12346   cat >>confdefs.h <<_ACEOF
12347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12348 _ACEOF
12349
12350 fi
12351
12352 done
12353
12354
12355
12356 for ac_header in string.h strings.h
12357 do
12358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 fi
12365 ac_res=`eval echo '${'$as_ac_Header'}'`
12366                { echo "$as_me:$LINENO: result: $ac_res" >&5
12367 echo "${ECHO_T}$ac_res" >&6; }
12368 else
12369   # Is the header compilable?
12370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h.  */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h.  */
12378 $ac_includes_default
12379 #include <$ac_header>
12380 _ACEOF
12381 rm -f conftest.$ac_objext
12382 if { (ac_try="$ac_compile"
12383 case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388   (eval "$ac_compile") 2>conftest.er1
12389   ac_status=$?
12390   grep -v '^ *+' conftest.er1 >conftest.err
12391   rm -f conftest.er1
12392   cat conftest.err >&5
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } &&
12395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12396   { (case "(($ac_try" in
12397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398   *) ac_try_echo=$ac_try;;
12399 esac
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401   (eval "$ac_try") 2>&5
12402   ac_status=$?
12403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); }; } &&
12405          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
12412   ac_status=$?
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); }; }; then
12415   ac_header_compiler=yes
12416 else
12417   echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12419
12420         ac_header_compiler=no
12421 fi
12422
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12425 echo "${ECHO_T}$ac_header_compiler" >&6; }
12426
12427 # Is the header present?
12428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12430 cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h.  */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h.  */
12436 #include <$ac_header>
12437 _ACEOF
12438 if { (ac_try="$ac_cpp conftest.$ac_ext"
12439 case "(($ac_try" in
12440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441   *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12445   ac_status=$?
12446   grep -v '^ *+' conftest.er1 >conftest.err
12447   rm -f conftest.er1
12448   cat conftest.err >&5
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); } >/dev/null; then
12451   if test -s conftest.err; then
12452     ac_cpp_err=$ac_c_preproc_warn_flag
12453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12454   else
12455     ac_cpp_err=
12456   fi
12457 else
12458   ac_cpp_err=yes
12459 fi
12460 if test -z "$ac_cpp_err"; then
12461   ac_header_preproc=yes
12462 else
12463   echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466   ac_header_preproc=no
12467 fi
12468
12469 rm -f conftest.err conftest.$ac_ext
12470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12471 echo "${ECHO_T}$ac_header_preproc" >&6; }
12472
12473 # So?  What about this header?
12474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12475   yes:no: )
12476     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12480     ac_header_preproc=yes
12481     ;;
12482   no:yes:* )
12483     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12485     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12486 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12487     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12489     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12490 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12493     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12495     ( cat <<\_ASBOX
12496 ## ----------------------------------- ##
12497 ## Report this to llvmbugs@cs.uiuc.edu ##
12498 ## ----------------------------------- ##
12499 _ASBOX
12500      ) | sed "s/^/$as_me: WARNING:     /" >&2
12501     ;;
12502 esac
12503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12506   echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508   eval "$as_ac_Header=\$ac_header_preproc"
12509 fi
12510 ac_res=`eval echo '${'$as_ac_Header'}'`
12511                { echo "$as_me:$LINENO: result: $ac_res" >&5
12512 echo "${ECHO_T}$ac_res" >&6; }
12513
12514 fi
12515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12516   cat >>confdefs.h <<_ACEOF
12517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12518 _ACEOF
12519  break
12520 fi
12521
12522 done
12523
12524
12525
12526
12527 for ac_func in strchr index
12528 do
12529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12533   echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535   cat >conftest.$ac_ext <<_ACEOF
12536 /* confdefs.h.  */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h.  */
12541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12543 #define $ac_func innocuous_$ac_func
12544
12545 /* System header to define __stub macros and hopefully few prototypes,
12546     which can conflict with char $ac_func (); below.
12547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12548     <limits.h> exists even on freestanding compilers.  */
12549
12550 #ifdef __STDC__
12551 # include <limits.h>
12552 #else
12553 # include <assert.h>
12554 #endif
12555
12556 #undef $ac_func
12557
12558 /* Override any GCC internal prototype to avoid an error.
12559    Use char because int might match the return type of a GCC
12560    builtin and then its argument prototype would still apply.  */
12561 #ifdef __cplusplus
12562 extern "C"
12563 #endif
12564 char $ac_func ();
12565 /* The GNU C library defines this for functions which it implements
12566     to always fail with ENOSYS.  Some functions are actually named
12567     something starting with __ and the normal name is an alias.  */
12568 #if defined __stub_$ac_func || defined __stub___$ac_func
12569 choke me
12570 #endif
12571
12572 int
12573 main ()
12574 {
12575 return $ac_func ();
12576   ;
12577   return 0;
12578 }
12579 _ACEOF
12580 rm -f conftest.$ac_objext conftest$ac_exeext
12581 if { (ac_try="$ac_link"
12582 case "(($ac_try" in
12583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584   *) ac_try_echo=$ac_try;;
12585 esac
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587   (eval "$ac_link") 2>conftest.er1
12588   ac_status=$?
12589   grep -v '^ *+' conftest.er1 >conftest.err
12590   rm -f conftest.er1
12591   cat conftest.err >&5
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); } &&
12594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12595   { (case "(($ac_try" in
12596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597   *) ac_try_echo=$ac_try;;
12598 esac
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600   (eval "$ac_try") 2>&5
12601   ac_status=$?
12602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); }; } &&
12604          { ac_try='test -s conftest$ac_exeext'
12605   { (case "(($ac_try" in
12606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607   *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610   (eval "$ac_try") 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; }; then
12614   eval "$as_ac_var=yes"
12615 else
12616   echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12618
12619         eval "$as_ac_var=no"
12620 fi
12621
12622 rm -f core conftest.err conftest.$ac_objext \
12623       conftest$ac_exeext conftest.$ac_ext
12624 fi
12625 ac_res=`eval echo '${'$as_ac_var'}'`
12626                { echo "$as_me:$LINENO: result: $ac_res" >&5
12627 echo "${ECHO_T}$ac_res" >&6; }
12628 if test `eval echo '${'$as_ac_var'}'` = yes; then
12629   cat >>confdefs.h <<_ACEOF
12630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12631 _ACEOF
12632  break
12633 fi
12634 done
12635
12636
12637
12638 for ac_func in strrchr rindex
12639 do
12640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12644   echo $ECHO_N "(cached) $ECHO_C" >&6
12645 else
12646   cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h.  */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h.  */
12652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12654 #define $ac_func innocuous_$ac_func
12655
12656 /* System header to define __stub macros and hopefully few prototypes,
12657     which can conflict with char $ac_func (); below.
12658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12659     <limits.h> exists even on freestanding compilers.  */
12660
12661 #ifdef __STDC__
12662 # include <limits.h>
12663 #else
12664 # include <assert.h>
12665 #endif
12666
12667 #undef $ac_func
12668
12669 /* Override any GCC internal prototype to avoid an error.
12670    Use char because int might match the return type of a GCC
12671    builtin and then its argument prototype would still apply.  */
12672 #ifdef __cplusplus
12673 extern "C"
12674 #endif
12675 char $ac_func ();
12676 /* The GNU C library defines this for functions which it implements
12677     to always fail with ENOSYS.  Some functions are actually named
12678     something starting with __ and the normal name is an alias.  */
12679 #if defined __stub_$ac_func || defined __stub___$ac_func
12680 choke me
12681 #endif
12682
12683 int
12684 main ()
12685 {
12686 return $ac_func ();
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (ac_try="$ac_link"
12693 case "(($ac_try" in
12694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695   *) ac_try_echo=$ac_try;;
12696 esac
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698   (eval "$ac_link") 2>conftest.er1
12699   ac_status=$?
12700   grep -v '^ *+' conftest.er1 >conftest.err
12701   rm -f conftest.er1
12702   cat conftest.err >&5
12703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); } &&
12705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12706   { (case "(($ac_try" in
12707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708   *) ac_try_echo=$ac_try;;
12709 esac
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711   (eval "$ac_try") 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; } &&
12715          { ac_try='test -s conftest$ac_exeext'
12716   { (case "(($ac_try" in
12717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718   *) ac_try_echo=$ac_try;;
12719 esac
12720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721   (eval "$ac_try") 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); }; }; then
12725   eval "$as_ac_var=yes"
12726 else
12727   echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730         eval "$as_ac_var=no"
12731 fi
12732
12733 rm -f core conftest.err conftest.$ac_objext \
12734       conftest$ac_exeext conftest.$ac_ext
12735 fi
12736 ac_res=`eval echo '${'$as_ac_var'}'`
12737                { echo "$as_me:$LINENO: result: $ac_res" >&5
12738 echo "${ECHO_T}$ac_res" >&6; }
12739 if test `eval echo '${'$as_ac_var'}'` = yes; then
12740   cat >>confdefs.h <<_ACEOF
12741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12742 _ACEOF
12743  break
12744 fi
12745 done
12746
12747
12748
12749 for ac_func in memcpy bcopy
12750 do
12751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12755   echo $ECHO_N "(cached) $ECHO_C" >&6
12756 else
12757   cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12765 #define $ac_func innocuous_$ac_func
12766
12767 /* System header to define __stub macros and hopefully few prototypes,
12768     which can conflict with char $ac_func (); below.
12769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12770     <limits.h> exists even on freestanding compilers.  */
12771
12772 #ifdef __STDC__
12773 # include <limits.h>
12774 #else
12775 # include <assert.h>
12776 #endif
12777
12778 #undef $ac_func
12779
12780 /* Override any GCC internal prototype to avoid an error.
12781    Use char because int might match the return type of a GCC
12782    builtin and then its argument prototype would still apply.  */
12783 #ifdef __cplusplus
12784 extern "C"
12785 #endif
12786 char $ac_func ();
12787 /* The GNU C library defines this for functions which it implements
12788     to always fail with ENOSYS.  Some functions are actually named
12789     something starting with __ and the normal name is an alias.  */
12790 #if defined __stub_$ac_func || defined __stub___$ac_func
12791 choke me
12792 #endif
12793
12794 int
12795 main ()
12796 {
12797 return $ac_func ();
12798   ;
12799   return 0;
12800 }
12801 _ACEOF
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (ac_try="$ac_link"
12804 case "(($ac_try" in
12805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806   *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809   (eval "$ac_link") 2>conftest.er1
12810   ac_status=$?
12811   grep -v '^ *+' conftest.er1 >conftest.err
12812   rm -f conftest.er1
12813   cat conftest.err >&5
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); } &&
12816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12817   { (case "(($ac_try" in
12818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819   *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822   (eval "$ac_try") 2>&5
12823   ac_status=$?
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; } &&
12826          { ac_try='test -s conftest$ac_exeext'
12827   { (case "(($ac_try" in
12828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829   *) ac_try_echo=$ac_try;;
12830 esac
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832   (eval "$ac_try") 2>&5
12833   ac_status=$?
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); }; }; then
12836   eval "$as_ac_var=yes"
12837 else
12838   echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12840
12841         eval "$as_ac_var=no"
12842 fi
12843
12844 rm -f core conftest.err conftest.$ac_objext \
12845       conftest$ac_exeext conftest.$ac_ext
12846 fi
12847 ac_res=`eval echo '${'$as_ac_var'}'`
12848                { echo "$as_me:$LINENO: result: $ac_res" >&5
12849 echo "${ECHO_T}$ac_res" >&6; }
12850 if test `eval echo '${'$as_ac_var'}'` = yes; then
12851   cat >>confdefs.h <<_ACEOF
12852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12853 _ACEOF
12854  break
12855 fi
12856 done
12857
12858
12859
12860 for ac_func in memmove strcmp
12861 do
12862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12866   echo $ECHO_N "(cached) $ECHO_C" >&6
12867 else
12868   cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h.  */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h.  */
12874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12876 #define $ac_func innocuous_$ac_func
12877
12878 /* System header to define __stub macros and hopefully few prototypes,
12879     which can conflict with char $ac_func (); below.
12880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12881     <limits.h> exists even on freestanding compilers.  */
12882
12883 #ifdef __STDC__
12884 # include <limits.h>
12885 #else
12886 # include <assert.h>
12887 #endif
12888
12889 #undef $ac_func
12890
12891 /* Override any GCC internal prototype to avoid an error.
12892    Use char because int might match the return type of a GCC
12893    builtin and then its argument prototype would still apply.  */
12894 #ifdef __cplusplus
12895 extern "C"
12896 #endif
12897 char $ac_func ();
12898 /* The GNU C library defines this for functions which it implements
12899     to always fail with ENOSYS.  Some functions are actually named
12900     something starting with __ and the normal name is an alias.  */
12901 #if defined __stub_$ac_func || defined __stub___$ac_func
12902 choke me
12903 #endif
12904
12905 int
12906 main ()
12907 {
12908 return $ac_func ();
12909   ;
12910   return 0;
12911 }
12912 _ACEOF
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (ac_try="$ac_link"
12915 case "(($ac_try" in
12916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917   *) ac_try_echo=$ac_try;;
12918 esac
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920   (eval "$ac_link") 2>conftest.er1
12921   ac_status=$?
12922   grep -v '^ *+' conftest.er1 >conftest.err
12923   rm -f conftest.er1
12924   cat conftest.err >&5
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } &&
12927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12928   { (case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933   (eval "$ac_try") 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); }; } &&
12937          { ac_try='test -s conftest$ac_exeext'
12938   { (case "(($ac_try" in
12939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940   *) ac_try_echo=$ac_try;;
12941 esac
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943   (eval "$ac_try") 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }; }; then
12947   eval "$as_ac_var=yes"
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952         eval "$as_ac_var=no"
12953 fi
12954
12955 rm -f core conftest.err conftest.$ac_objext \
12956       conftest$ac_exeext conftest.$ac_ext
12957 fi
12958 ac_res=`eval echo '${'$as_ac_var'}'`
12959                { echo "$as_me:$LINENO: result: $ac_res" >&5
12960 echo "${ECHO_T}$ac_res" >&6; }
12961 if test `eval echo '${'$as_ac_var'}'` = yes; then
12962   cat >>confdefs.h <<_ACEOF
12963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12964 _ACEOF
12965
12966 fi
12967 done
12968
12969
12970
12971
12972 for ac_func in closedir opendir readdir
12973 do
12974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12978   echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980   cat >conftest.$ac_ext <<_ACEOF
12981 /* confdefs.h.  */
12982 _ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h.  */
12986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12988 #define $ac_func innocuous_$ac_func
12989
12990 /* System header to define __stub macros and hopefully few prototypes,
12991     which can conflict with char $ac_func (); below.
12992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12993     <limits.h> exists even on freestanding compilers.  */
12994
12995 #ifdef __STDC__
12996 # include <limits.h>
12997 #else
12998 # include <assert.h>
12999 #endif
13000
13001 #undef $ac_func
13002
13003 /* Override any GCC internal prototype to avoid an error.
13004    Use char because int might match the return type of a GCC
13005    builtin and then its argument prototype would still apply.  */
13006 #ifdef __cplusplus
13007 extern "C"
13008 #endif
13009 char $ac_func ();
13010 /* The GNU C library defines this for functions which it implements
13011     to always fail with ENOSYS.  Some functions are actually named
13012     something starting with __ and the normal name is an alias.  */
13013 #if defined __stub_$ac_func || defined __stub___$ac_func
13014 choke me
13015 #endif
13016
13017 int
13018 main ()
13019 {
13020 return $ac_func ();
13021   ;
13022   return 0;
13023 }
13024 _ACEOF
13025 rm -f conftest.$ac_objext conftest$ac_exeext
13026 if { (ac_try="$ac_link"
13027 case "(($ac_try" in
13028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029   *) ac_try_echo=$ac_try;;
13030 esac
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032   (eval "$ac_link") 2>conftest.er1
13033   ac_status=$?
13034   grep -v '^ *+' conftest.er1 >conftest.err
13035   rm -f conftest.er1
13036   cat conftest.err >&5
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } &&
13039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13040   { (case "(($ac_try" in
13041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042   *) ac_try_echo=$ac_try;;
13043 esac
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045   (eval "$ac_try") 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; } &&
13049          { ac_try='test -s conftest$ac_exeext'
13050   { (case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055   (eval "$ac_try") 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); }; }; then
13059   eval "$as_ac_var=yes"
13060 else
13061   echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064         eval "$as_ac_var=no"
13065 fi
13066
13067 rm -f core conftest.err conftest.$ac_objext \
13068       conftest$ac_exeext conftest.$ac_ext
13069 fi
13070 ac_res=`eval echo '${'$as_ac_var'}'`
13071                { echo "$as_me:$LINENO: result: $ac_res" >&5
13072 echo "${ECHO_T}$ac_res" >&6; }
13073 if test `eval echo '${'$as_ac_var'}'` = yes; then
13074   cat >>confdefs.h <<_ACEOF
13075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13076 _ACEOF
13077
13078 fi
13079 done
13080
13081
13082
13083 if test "$WITH_LLVMGCCDIR" = "default" ; then
13084   LLVMGCC="llvm-gcc${EXEEXT}"
13085   LLVMGXX="llvm-g++${EXEEXT}"
13086   LLVMGCCCOMMAND="$LLVMGCC"
13087   LLVMGXXCOMMAND="$LLVMGXX"
13088   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13089
13090   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13091
13092   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13093 set dummy $LLVMGCC; ac_word=$2
13094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13096 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13097   echo $ECHO_N "(cached) $ECHO_C" >&6
13098 else
13099   case $LLVMGCC in
13100   [\\/]* | ?:[\\/]*)
13101   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13102   ;;
13103   *)
13104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13106 do
13107   IFS=$as_save_IFS
13108   test -z "$as_dir" && as_dir=.
13109   for ac_exec_ext in '' $ac_executable_extensions; do
13110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13111     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13113     break 2
13114   fi
13115 done
13116 done
13117 IFS=$as_save_IFS
13118
13119   ;;
13120 esac
13121 fi
13122 LLVMGCC=$ac_cv_path_LLVMGCC
13123 if test -n "$LLVMGCC"; then
13124   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13125 echo "${ECHO_T}$LLVMGCC" >&6; }
13126 else
13127   { echo "$as_me:$LINENO: result: no" >&5
13128 echo "${ECHO_T}no" >&6; }
13129 fi
13130
13131
13132   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13133 set dummy $LLVMGXX; ac_word=$2
13134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13136 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13137   echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139   case $LLVMGXX in
13140   [\\/]* | ?:[\\/]*)
13141   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13142   ;;
13143   *)
13144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147   IFS=$as_save_IFS
13148   test -z "$as_dir" && as_dir=.
13149   for ac_exec_ext in '' $ac_executable_extensions; do
13150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13151     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13153     break 2
13154   fi
13155 done
13156 done
13157 IFS=$as_save_IFS
13158
13159   ;;
13160 esac
13161 fi
13162 LLVMGXX=$ac_cv_path_LLVMGXX
13163 if test -n "$LLVMGXX"; then
13164   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13165 echo "${ECHO_T}$LLVMGXX" >&6; }
13166 else
13167   { echo "$as_me:$LINENO: result: no" >&5
13168 echo "${ECHO_T}no" >&6; }
13169 fi
13170
13171
13172 else
13173   if test -z "$LLVMGCC"; then
13174     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13175     LLVMGCCCOMMAND="$LLVMGCC"
13176   fi
13177   if test -z "$LLVMGXX"; then
13178     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13179     LLVMGXXCOMMAND="$LLVMGXX"
13180   fi
13181
13182   LLVMGCC=$LLVMGCC
13183
13184   LLVMGXX=$LLVMGXX
13185
13186   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13187
13188   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13189
13190 fi
13191
13192
13193 # Check whether --with-llvmcc was given.
13194 if test "${with_llvmcc+set}" = set; then
13195   withval=$with_llvmcc;
13196 else
13197   with_llvmcc=check
13198 fi
13199
13200 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13201 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13202 if test "$with_llvmcc" != "check"; then
13203    if (test "$with_llvmcc" != "llvm-gcc" &&
13204        test "$with_llvmcc" != "clang" &&
13205        test "$with_llvmcc" != "none"); then
13206       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13207 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13208    { (exit 1); exit 1; }; }
13209    fi
13210    WITH_LLVMCC="$with_llvmcc"
13211 elif test -n "$LLVMGCC"; then
13212    WITH_LLVMCC=llvm-gcc
13213 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13214    WITH_LLVMCC=clang
13215 else
13216    WITH_LLVMCC=none
13217 fi
13218 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13219 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13220 LLVMCC_OPTION=$WITH_LLVMCC
13221
13222
13223 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13224 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13225
13226 ICC=no
13227 IXX=no
13228 case $CC in
13229   icc*|icpc*)
13230     ICC=yes
13231     IXX=yes
13232     ;;
13233    *)
13234     ;;
13235 esac
13236
13237 if test "$GCC" != "yes" && test "$ICC" != "yes"
13238 then
13239   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13240 echo "$as_me: error: gcc|icc required but not found" >&2;}
13241    { (exit 1); exit 1; }; }
13242 fi
13243
13244 if test "$GXX" != "yes" && test "$IXX" != "yes"
13245 then
13246   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13247 echo "$as_me: error: g++|icc required but not found" >&2;}
13248    { (exit 1); exit 1; }; }
13249 fi
13250
13251 if test "$GCC" = "yes"
13252 then
13253   cat >conftest.$ac_ext <<_ACEOF
13254 #if !defined(__GNUC__) || __GNUC__ < 3
13255 #error Unsupported GCC version
13256 #endif
13257
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (ac_try="$ac_compile"
13261 case "(($ac_try" in
13262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263   *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266   (eval "$ac_compile") 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
13270   cat conftest.err >&5
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } &&
13273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13274   { (case "(($ac_try" in
13275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276   *) ac_try_echo=$ac_try;;
13277 esac
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279   (eval "$ac_try") 2>&5
13280   ac_status=$?
13281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282   (exit $ac_status); }; } &&
13283          { ac_try='test -s conftest.$ac_objext'
13284   { (case "(($ac_try" in
13285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286   *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289   (eval "$ac_try") 2>&5
13290   ac_status=$?
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); }; }; then
13293   :
13294 else
13295   echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13297
13298         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13299 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13300    { (exit 1); exit 1; }; }
13301 fi
13302
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 fi
13305
13306 if test -z "$llvm_cv_gnu_make_command"
13307 then
13308   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13309 echo "$as_me: error: GNU Make required but not found" >&2;}
13310    { (exit 1); exit 1; }; }
13311 fi
13312
13313 { echo "$as_me:$LINENO: result: ok" >&5
13314 echo "${ECHO_T}ok" >&6; }
13315
13316 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13317 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13318 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13319
13320 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13321
13322 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13323 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13324
13325
13326
13327 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13328 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13329 if test "${ac_cv_lib_m_sin+set}" = set; then
13330   echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332   ac_check_lib_save_LIBS=$LIBS
13333 LIBS="-lm  $LIBS"
13334 cat >conftest.$ac_ext <<_ACEOF
13335 /* confdefs.h.  */
13336 _ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h.  */
13340
13341 /* Override any GCC internal prototype to avoid an error.
13342    Use char because int might match the return type of a GCC
13343    builtin and then its argument prototype would still apply.  */
13344 #ifdef __cplusplus
13345 extern "C"
13346 #endif
13347 char sin ();
13348 int
13349 main ()
13350 {
13351 return sin ();
13352   ;
13353   return 0;
13354 }
13355 _ACEOF
13356 rm -f conftest.$ac_objext conftest$ac_exeext
13357 if { (ac_try="$ac_link"
13358 case "(($ac_try" in
13359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360   *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363   (eval "$ac_link") 2>conftest.er1
13364   ac_status=$?
13365   grep -v '^ *+' conftest.er1 >conftest.err
13366   rm -f conftest.er1
13367   cat conftest.err >&5
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); } &&
13370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371   { (case "(($ac_try" in
13372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373   *) ac_try_echo=$ac_try;;
13374 esac
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376   (eval "$ac_try") 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; } &&
13380          { ac_try='test -s conftest$ac_exeext'
13381   { (case "(($ac_try" in
13382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383   *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386   (eval "$ac_try") 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; }; then
13390   ac_cv_lib_m_sin=yes
13391 else
13392   echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395         ac_cv_lib_m_sin=no
13396 fi
13397
13398 rm -f core conftest.err conftest.$ac_objext \
13399       conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS
13401 fi
13402 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13403 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13404 if test $ac_cv_lib_m_sin = yes; then
13405   cat >>confdefs.h <<_ACEOF
13406 #define HAVE_LIBM 1
13407 _ACEOF
13408
13409   LIBS="-lm $LIBS"
13410
13411 fi
13412
13413 if test "$llvm_cv_os_type" = "MingW" ; then
13414
13415 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13416 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13417 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13418   echo $ECHO_N "(cached) $ECHO_C" >&6
13419 else
13420   ac_check_lib_save_LIBS=$LIBS
13421 LIBS="-limagehlp  $LIBS"
13422 cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h.  */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h.  */
13428
13429
13430 int
13431 main ()
13432 {
13433 return main ();
13434   ;
13435   return 0;
13436 }
13437 _ACEOF
13438 rm -f conftest.$ac_objext conftest$ac_exeext
13439 if { (ac_try="$ac_link"
13440 case "(($ac_try" in
13441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442   *) ac_try_echo=$ac_try;;
13443 esac
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445   (eval "$ac_link") 2>conftest.er1
13446   ac_status=$?
13447   grep -v '^ *+' conftest.er1 >conftest.err
13448   rm -f conftest.er1
13449   cat conftest.err >&5
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); } &&
13452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13453   { (case "(($ac_try" in
13454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455   *) ac_try_echo=$ac_try;;
13456 esac
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458   (eval "$ac_try") 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; } &&
13462          { ac_try='test -s conftest$ac_exeext'
13463   { (case "(($ac_try" in
13464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465   *) ac_try_echo=$ac_try;;
13466 esac
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468   (eval "$ac_try") 2>&5
13469   ac_status=$?
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); }; }; then
13472   ac_cv_lib_imagehlp_main=yes
13473 else
13474   echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477         ac_cv_lib_imagehlp_main=no
13478 fi
13479
13480 rm -f core conftest.err conftest.$ac_objext \
13481       conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13483 fi
13484 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13485 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13486 if test $ac_cv_lib_imagehlp_main = yes; then
13487   cat >>confdefs.h <<_ACEOF
13488 #define HAVE_LIBIMAGEHLP 1
13489 _ACEOF
13490
13491   LIBS="-limagehlp $LIBS"
13492
13493 fi
13494
13495
13496 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13497 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13498 if test "${ac_cv_lib_psapi_main+set}" = set; then
13499   echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501   ac_check_lib_save_LIBS=$LIBS
13502 LIBS="-lpsapi  $LIBS"
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h.  */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h.  */
13509
13510
13511 int
13512 main ()
13513 {
13514 return main ();
13515   ;
13516   return 0;
13517 }
13518 _ACEOF
13519 rm -f conftest.$ac_objext conftest$ac_exeext
13520 if { (ac_try="$ac_link"
13521 case "(($ac_try" in
13522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523   *) ac_try_echo=$ac_try;;
13524 esac
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526   (eval "$ac_link") 2>conftest.er1
13527   ac_status=$?
13528   grep -v '^ *+' conftest.er1 >conftest.err
13529   rm -f conftest.er1
13530   cat conftest.err >&5
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); } &&
13533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13534   { (case "(($ac_try" in
13535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536   *) ac_try_echo=$ac_try;;
13537 esac
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539   (eval "$ac_try") 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); }; } &&
13543          { ac_try='test -s conftest$ac_exeext'
13544   { (case "(($ac_try" in
13545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546   *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549   (eval "$ac_try") 2>&5
13550   ac_status=$?
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); }; }; then
13553   ac_cv_lib_psapi_main=yes
13554 else
13555   echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13557
13558         ac_cv_lib_psapi_main=no
13559 fi
13560
13561 rm -f core conftest.err conftest.$ac_objext \
13562       conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13564 fi
13565 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13566 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13567 if test $ac_cv_lib_psapi_main = yes; then
13568   cat >>confdefs.h <<_ACEOF
13569 #define HAVE_LIBPSAPI 1
13570 _ACEOF
13571
13572   LIBS="-lpsapi $LIBS"
13573
13574 fi
13575
13576 fi
13577
13578 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13579 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13580 if test "${ac_cv_search_dlopen+set}" = set; then
13581   echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583   ac_func_search_save_LIBS=$LIBS
13584 cat >conftest.$ac_ext <<_ACEOF
13585 /* confdefs.h.  */
13586 _ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h.  */
13590
13591 /* Override any GCC internal prototype to avoid an error.
13592    Use char because int might match the return type of a GCC
13593    builtin and then its argument prototype would still apply.  */
13594 #ifdef __cplusplus
13595 extern "C"
13596 #endif
13597 char dlopen ();
13598 int
13599 main ()
13600 {
13601 return dlopen ();
13602   ;
13603   return 0;
13604 }
13605 _ACEOF
13606 for ac_lib in '' dl; do
13607   if test -z "$ac_lib"; then
13608     ac_res="none required"
13609   else
13610     ac_res=-l$ac_lib
13611     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13612   fi
13613   rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (ac_try="$ac_link"
13615 case "(($ac_try" in
13616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617   *) ac_try_echo=$ac_try;;
13618 esac
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620   (eval "$ac_link") 2>conftest.er1
13621   ac_status=$?
13622   grep -v '^ *+' conftest.er1 >conftest.err
13623   rm -f conftest.er1
13624   cat conftest.err >&5
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); } &&
13627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13628   { (case "(($ac_try" in
13629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630   *) ac_try_echo=$ac_try;;
13631 esac
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633   (eval "$ac_try") 2>&5
13634   ac_status=$?
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); }; } &&
13637          { ac_try='test -s conftest$ac_exeext'
13638   { (case "(($ac_try" in
13639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640   *) ac_try_echo=$ac_try;;
13641 esac
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643   (eval "$ac_try") 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; }; then
13647   ac_cv_search_dlopen=$ac_res
13648 else
13649   echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13651
13652
13653 fi
13654
13655 rm -f core conftest.err conftest.$ac_objext \
13656       conftest$ac_exeext
13657   if test "${ac_cv_search_dlopen+set}" = set; then
13658   break
13659 fi
13660 done
13661 if test "${ac_cv_search_dlopen+set}" = set; then
13662   :
13663 else
13664   ac_cv_search_dlopen=no
13665 fi
13666 rm conftest.$ac_ext
13667 LIBS=$ac_func_search_save_LIBS
13668 fi
13669 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13670 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13671 ac_res=$ac_cv_search_dlopen
13672 if test "$ac_res" != no; then
13673   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13674
13675 cat >>confdefs.h <<\_ACEOF
13676 #define HAVE_DLOPEN 1
13677 _ACEOF
13678
13679 else
13680   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13681 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13682 fi
13683
13684
13685 if test "$llvm_cv_enable_libffi" = "yes" ; then
13686   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13687 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13688 if test "${ac_cv_search_ffi_call+set}" = set; then
13689   echo $ECHO_N "(cached) $ECHO_C" >&6
13690 else
13691   ac_func_search_save_LIBS=$LIBS
13692 cat >conftest.$ac_ext <<_ACEOF
13693 /* confdefs.h.  */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h.  */
13698
13699 /* Override any GCC internal prototype to avoid an error.
13700    Use char because int might match the return type of a GCC
13701    builtin and then its argument prototype would still apply.  */
13702 #ifdef __cplusplus
13703 extern "C"
13704 #endif
13705 char ffi_call ();
13706 int
13707 main ()
13708 {
13709 return ffi_call ();
13710   ;
13711   return 0;
13712 }
13713 _ACEOF
13714 for ac_lib in '' ffi; do
13715   if test -z "$ac_lib"; then
13716     ac_res="none required"
13717   else
13718     ac_res=-l$ac_lib
13719     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13720   fi
13721   rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (ac_try="$ac_link"
13723 case "(($ac_try" in
13724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725   *) ac_try_echo=$ac_try;;
13726 esac
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728   (eval "$ac_link") 2>conftest.er1
13729   ac_status=$?
13730   grep -v '^ *+' conftest.er1 >conftest.err
13731   rm -f conftest.er1
13732   cat conftest.err >&5
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); } &&
13735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13736   { (case "(($ac_try" in
13737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738   *) ac_try_echo=$ac_try;;
13739 esac
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741   (eval "$ac_try") 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; } &&
13745          { ac_try='test -s conftest$ac_exeext'
13746   { (case "(($ac_try" in
13747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748   *) ac_try_echo=$ac_try;;
13749 esac
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751   (eval "$ac_try") 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); }; }; then
13755   ac_cv_search_ffi_call=$ac_res
13756 else
13757   echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760
13761 fi
13762
13763 rm -f core conftest.err conftest.$ac_objext \
13764       conftest$ac_exeext
13765   if test "${ac_cv_search_ffi_call+set}" = set; then
13766   break
13767 fi
13768 done
13769 if test "${ac_cv_search_ffi_call+set}" = set; then
13770   :
13771 else
13772   ac_cv_search_ffi_call=no
13773 fi
13774 rm conftest.$ac_ext
13775 LIBS=$ac_func_search_save_LIBS
13776 fi
13777 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13778 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13779 ac_res=$ac_cv_search_ffi_call
13780 if test "$ac_res" != no; then
13781   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13782
13783 cat >>confdefs.h <<\_ACEOF
13784 #define HAVE_FFI_CALL 1
13785 _ACEOF
13786
13787 else
13788   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13789 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13790    { (exit 1); exit 1; }; }
13791 fi
13792
13793 fi
13794
13795 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13796 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13797 if test "${ac_cv_search_mallinfo+set}" = set; then
13798   echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800   ac_func_search_save_LIBS=$LIBS
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h.  */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h.  */
13807
13808 /* Override any GCC internal prototype to avoid an error.
13809    Use char because int might match the return type of a GCC
13810    builtin and then its argument prototype would still apply.  */
13811 #ifdef __cplusplus
13812 extern "C"
13813 #endif
13814 char mallinfo ();
13815 int
13816 main ()
13817 {
13818 return mallinfo ();
13819   ;
13820   return 0;
13821 }
13822 _ACEOF
13823 for ac_lib in '' malloc; do
13824   if test -z "$ac_lib"; then
13825     ac_res="none required"
13826   else
13827     ac_res=-l$ac_lib
13828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13829   fi
13830   rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (ac_try="$ac_link"
13832 case "(($ac_try" in
13833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834   *) ac_try_echo=$ac_try;;
13835 esac
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837   (eval "$ac_link") 2>conftest.er1
13838   ac_status=$?
13839   grep -v '^ *+' conftest.er1 >conftest.err
13840   rm -f conftest.er1
13841   cat conftest.err >&5
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } &&
13844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845   { (case "(($ac_try" in
13846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847   *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850   (eval "$ac_try") 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; } &&
13854          { ac_try='test -s conftest$ac_exeext'
13855   { (case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860   (eval "$ac_try") 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); }; }; then
13864   ac_cv_search_mallinfo=$ac_res
13865 else
13866   echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13868
13869
13870 fi
13871
13872 rm -f core conftest.err conftest.$ac_objext \
13873       conftest$ac_exeext
13874   if test "${ac_cv_search_mallinfo+set}" = set; then
13875   break
13876 fi
13877 done
13878 if test "${ac_cv_search_mallinfo+set}" = set; then
13879   :
13880 else
13881   ac_cv_search_mallinfo=no
13882 fi
13883 rm conftest.$ac_ext
13884 LIBS=$ac_func_search_save_LIBS
13885 fi
13886 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13887 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13888 ac_res=$ac_cv_search_mallinfo
13889 if test "$ac_res" != no; then
13890   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13891
13892 cat >>confdefs.h <<\_ACEOF
13893 #define HAVE_MALLINFO 1
13894 _ACEOF
13895
13896 fi
13897
13898
13899 if test "$ENABLE_THREADS" -eq 1 ; then
13900
13901 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13902 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13903 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906   ac_check_lib_save_LIBS=$LIBS
13907 LIBS="-lpthread  $LIBS"
13908 cat >conftest.$ac_ext <<_ACEOF
13909 /* confdefs.h.  */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h.  */
13914
13915 /* Override any GCC internal prototype to avoid an error.
13916    Use char because int might match the return type of a GCC
13917    builtin and then its argument prototype would still apply.  */
13918 #ifdef __cplusplus
13919 extern "C"
13920 #endif
13921 char pthread_mutex_init ();
13922 int
13923 main ()
13924 {
13925 return pthread_mutex_init ();
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (ac_try="$ac_link"
13932 case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937   (eval "$ac_link") 2>conftest.er1
13938   ac_status=$?
13939   grep -v '^ *+' conftest.er1 >conftest.err
13940   rm -f conftest.er1
13941   cat conftest.err >&5
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); } &&
13944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13945   { (case "(($ac_try" in
13946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947   *) ac_try_echo=$ac_try;;
13948 esac
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950   (eval "$ac_try") 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; } &&
13954          { ac_try='test -s conftest$ac_exeext'
13955   { (case "(($ac_try" in
13956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957   *) ac_try_echo=$ac_try;;
13958 esac
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960   (eval "$ac_try") 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); }; }; then
13964   ac_cv_lib_pthread_pthread_mutex_init=yes
13965 else
13966   echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13968
13969         ac_cv_lib_pthread_pthread_mutex_init=no
13970 fi
13971
13972 rm -f core conftest.err conftest.$ac_objext \
13973       conftest$ac_exeext conftest.$ac_ext
13974 LIBS=$ac_check_lib_save_LIBS
13975 fi
13976 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13977 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13978 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13979   cat >>confdefs.h <<_ACEOF
13980 #define HAVE_LIBPTHREAD 1
13981 _ACEOF
13982
13983   LIBS="-lpthread $LIBS"
13984
13985 fi
13986
13987   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13988 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13989 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13990   echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992   ac_func_search_save_LIBS=$LIBS
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h.  */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h.  */
13999
14000 /* Override any GCC internal prototype to avoid an error.
14001    Use char because int might match the return type of a GCC
14002    builtin and then its argument prototype would still apply.  */
14003 #ifdef __cplusplus
14004 extern "C"
14005 #endif
14006 char pthread_mutex_lock ();
14007 int
14008 main ()
14009 {
14010 return pthread_mutex_lock ();
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 for ac_lib in '' pthread; do
14016   if test -z "$ac_lib"; then
14017     ac_res="none required"
14018   else
14019     ac_res=-l$ac_lib
14020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14021   fi
14022   rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (ac_try="$ac_link"
14024 case "(($ac_try" in
14025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026   *) ac_try_echo=$ac_try;;
14027 esac
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029   (eval "$ac_link") 2>conftest.er1
14030   ac_status=$?
14031   grep -v '^ *+' conftest.er1 >conftest.err
14032   rm -f conftest.er1
14033   cat conftest.err >&5
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } &&
14036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14037   { (case "(($ac_try" in
14038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039   *) ac_try_echo=$ac_try;;
14040 esac
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042   (eval "$ac_try") 2>&5
14043   ac_status=$?
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); }; } &&
14046          { ac_try='test -s conftest$ac_exeext'
14047   { (case "(($ac_try" in
14048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049   *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052   (eval "$ac_try") 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; }; then
14056   ac_cv_search_pthread_mutex_lock=$ac_res
14057 else
14058   echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061
14062 fi
14063
14064 rm -f core conftest.err conftest.$ac_objext \
14065       conftest$ac_exeext
14066   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14067   break
14068 fi
14069 done
14070 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14071   :
14072 else
14073   ac_cv_search_pthread_mutex_lock=no
14074 fi
14075 rm conftest.$ac_ext
14076 LIBS=$ac_func_search_save_LIBS
14077 fi
14078 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14079 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14080 ac_res=$ac_cv_search_pthread_mutex_lock
14081 if test "$ac_res" != no; then
14082   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14083
14084 cat >>confdefs.h <<\_ACEOF
14085 #define HAVE_PTHREAD_MUTEX_LOCK 1
14086 _ACEOF
14087
14088 fi
14089
14090   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14091 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14092 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14093   echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095   ac_func_search_save_LIBS=$LIBS
14096 cat >conftest.$ac_ext <<_ACEOF
14097 /* confdefs.h.  */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h.  */
14102
14103 /* Override any GCC internal prototype to avoid an error.
14104    Use char because int might match the return type of a GCC
14105    builtin and then its argument prototype would still apply.  */
14106 #ifdef __cplusplus
14107 extern "C"
14108 #endif
14109 char pthread_rwlock_init ();
14110 int
14111 main ()
14112 {
14113 return pthread_rwlock_init ();
14114   ;
14115   return 0;
14116 }
14117 _ACEOF
14118 for ac_lib in '' pthread; do
14119   if test -z "$ac_lib"; then
14120     ac_res="none required"
14121   else
14122     ac_res=-l$ac_lib
14123     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14124   fi
14125   rm -f conftest.$ac_objext conftest$ac_exeext
14126 if { (ac_try="$ac_link"
14127 case "(($ac_try" in
14128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129   *) ac_try_echo=$ac_try;;
14130 esac
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132   (eval "$ac_link") 2>conftest.er1
14133   ac_status=$?
14134   grep -v '^ *+' conftest.er1 >conftest.err
14135   rm -f conftest.er1
14136   cat conftest.err >&5
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); } &&
14139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14140   { (case "(($ac_try" in
14141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142   *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145   (eval "$ac_try") 2>&5
14146   ac_status=$?
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); }; } &&
14149          { ac_try='test -s conftest$ac_exeext'
14150   { (case "(($ac_try" in
14151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152   *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155   (eval "$ac_try") 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); }; }; then
14159   ac_cv_search_pthread_rwlock_init=$ac_res
14160 else
14161   echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14163
14164
14165 fi
14166
14167 rm -f core conftest.err conftest.$ac_objext \
14168       conftest$ac_exeext
14169   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14170   break
14171 fi
14172 done
14173 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14174   :
14175 else
14176   ac_cv_search_pthread_rwlock_init=no
14177 fi
14178 rm conftest.$ac_ext
14179 LIBS=$ac_func_search_save_LIBS
14180 fi
14181 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14182 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14183 ac_res=$ac_cv_search_pthread_rwlock_init
14184 if test "$ac_res" != no; then
14185   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14186
14187 cat >>confdefs.h <<\_ACEOF
14188 #define HAVE_PTHREAD_RWLOCK_INIT 1
14189 _ACEOF
14190
14191 fi
14192
14193   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14194 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14195 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198   ac_func_search_save_LIBS=$LIBS
14199 cat >conftest.$ac_ext <<_ACEOF
14200 /* confdefs.h.  */
14201 _ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h.  */
14205
14206 /* Override any GCC internal prototype to avoid an error.
14207    Use char because int might match the return type of a GCC
14208    builtin and then its argument prototype would still apply.  */
14209 #ifdef __cplusplus
14210 extern "C"
14211 #endif
14212 char pthread_getspecific ();
14213 int
14214 main ()
14215 {
14216 return pthread_getspecific ();
14217   ;
14218   return 0;
14219 }
14220 _ACEOF
14221 for ac_lib in '' pthread; do
14222   if test -z "$ac_lib"; then
14223     ac_res="none required"
14224   else
14225     ac_res=-l$ac_lib
14226     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14227   fi
14228   rm -f conftest.$ac_objext conftest$ac_exeext
14229 if { (ac_try="$ac_link"
14230 case "(($ac_try" in
14231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232   *) ac_try_echo=$ac_try;;
14233 esac
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235   (eval "$ac_link") 2>conftest.er1
14236   ac_status=$?
14237   grep -v '^ *+' conftest.er1 >conftest.err
14238   rm -f conftest.er1
14239   cat conftest.err >&5
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); } &&
14242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14243   { (case "(($ac_try" in
14244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245   *) ac_try_echo=$ac_try;;
14246 esac
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248   (eval "$ac_try") 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); }; } &&
14252          { ac_try='test -s conftest$ac_exeext'
14253   { (case "(($ac_try" in
14254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255   *) ac_try_echo=$ac_try;;
14256 esac
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258   (eval "$ac_try") 2>&5
14259   ac_status=$?
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); }; }; then
14262   ac_cv_search_pthread_getspecific=$ac_res
14263 else
14264   echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267
14268 fi
14269
14270 rm -f core conftest.err conftest.$ac_objext \
14271       conftest$ac_exeext
14272   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14273   break
14274 fi
14275 done
14276 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14277   :
14278 else
14279   ac_cv_search_pthread_getspecific=no
14280 fi
14281 rm conftest.$ac_ext
14282 LIBS=$ac_func_search_save_LIBS
14283 fi
14284 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14285 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14286 ac_res=$ac_cv_search_pthread_getspecific
14287 if test "$ac_res" != no; then
14288   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14289
14290 cat >>confdefs.h <<\_ACEOF
14291 #define HAVE_PTHREAD_GETSPECIFIC 1
14292 _ACEOF
14293
14294 fi
14295
14296 fi
14297
14298
14299 # Check whether --with-udis86 was given.
14300 if test "${with_udis86+set}" = set; then
14301   withval=$with_udis86;
14302       USE_UDIS86=1
14303
14304       case "$withval" in
14305         /usr/lib|yes) ;;
14306         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14307       esac
14308
14309 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14310 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14311 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314   ac_check_lib_save_LIBS=$LIBS
14315 LIBS="-ludis86  $LIBS"
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h.  */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h.  */
14322
14323 /* Override any GCC internal prototype to avoid an error.
14324    Use char because int might match the return type of a GCC
14325    builtin and then its argument prototype would still apply.  */
14326 #ifdef __cplusplus
14327 extern "C"
14328 #endif
14329 char ud_init ();
14330 int
14331 main ()
14332 {
14333 return ud_init ();
14334   ;
14335   return 0;
14336 }
14337 _ACEOF
14338 rm -f conftest.$ac_objext conftest$ac_exeext
14339 if { (ac_try="$ac_link"
14340 case "(($ac_try" in
14341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14342   *) ac_try_echo=$ac_try;;
14343 esac
14344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14345   (eval "$ac_link") 2>conftest.er1
14346   ac_status=$?
14347   grep -v '^ *+' conftest.er1 >conftest.err
14348   rm -f conftest.er1
14349   cat conftest.err >&5
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); } &&
14352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14353   { (case "(($ac_try" in
14354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355   *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358   (eval "$ac_try") 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; } &&
14362          { ac_try='test -s conftest$ac_exeext'
14363   { (case "(($ac_try" in
14364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365   *) ac_try_echo=$ac_try;;
14366 esac
14367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368   (eval "$ac_try") 2>&5
14369   ac_status=$?
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); }; }; then
14372   ac_cv_lib_udis86_ud_init=yes
14373 else
14374   echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14376
14377         ac_cv_lib_udis86_ud_init=no
14378 fi
14379
14380 rm -f core conftest.err conftest.$ac_objext \
14381       conftest$ac_exeext conftest.$ac_ext
14382 LIBS=$ac_check_lib_save_LIBS
14383 fi
14384 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14385 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14386 if test $ac_cv_lib_udis86_ud_init = yes; then
14387   cat >>confdefs.h <<_ACEOF
14388 #define HAVE_LIBUDIS86 1
14389 _ACEOF
14390
14391   LIBS="-ludis86 $LIBS"
14392
14393 else
14394
14395         echo "Error! You need to have libudis86 around."
14396         exit -1
14397
14398 fi
14399
14400
14401 else
14402   USE_UDIS86=0
14403
14404 fi
14405
14406
14407 cat >>confdefs.h <<_ACEOF
14408 #define USE_UDIS86 $USE_UDIS86
14409 _ACEOF
14410
14411
14412
14413 # Check whether --with-oprofile was given.
14414 if test "${with_oprofile+set}" = set; then
14415   withval=$with_oprofile;
14416       USE_OPROFILE=1
14417
14418       case "$withval" in
14419         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14420         no) llvm_cv_oppath=
14421             USE_OPROFILE=0
14422  ;;
14423         *) llvm_cv_oppath="${withval}/lib/oprofile"
14424            CPPFLAGS="-I${withval}/include";;
14425       esac
14426       if test -n "$llvm_cv_oppath" ; then
14427         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14428                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14429 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14430 if test "${ac_cv_search_bfd_init+set}" = set; then
14431   echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433   ac_func_search_save_LIBS=$LIBS
14434 cat >conftest.$ac_ext <<_ACEOF
14435 /* confdefs.h.  */
14436 _ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h.  */
14440
14441 /* Override any GCC internal prototype to avoid an error.
14442    Use char because int might match the return type of a GCC
14443    builtin and then its argument prototype would still apply.  */
14444 #ifdef __cplusplus
14445 extern "C"
14446 #endif
14447 char bfd_init ();
14448 int
14449 main ()
14450 {
14451 return bfd_init ();
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 for ac_lib in '' bfd; do
14457   if test -z "$ac_lib"; then
14458     ac_res="none required"
14459   else
14460     ac_res=-l$ac_lib
14461     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14462   fi
14463   rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (ac_try="$ac_link"
14465 case "(($ac_try" in
14466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467   *) ac_try_echo=$ac_try;;
14468 esac
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470   (eval "$ac_link") 2>conftest.er1
14471   ac_status=$?
14472   grep -v '^ *+' conftest.er1 >conftest.err
14473   rm -f conftest.er1
14474   cat conftest.err >&5
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); } &&
14477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14478   { (case "(($ac_try" in
14479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480   *) ac_try_echo=$ac_try;;
14481 esac
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483   (eval "$ac_try") 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; } &&
14487          { ac_try='test -s conftest$ac_exeext'
14488   { (case "(($ac_try" in
14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490   *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493   (eval "$ac_try") 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; }; then
14497   ac_cv_search_bfd_init=$ac_res
14498 else
14499   echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502
14503 fi
14504
14505 rm -f core conftest.err conftest.$ac_objext \
14506       conftest$ac_exeext
14507   if test "${ac_cv_search_bfd_init+set}" = set; then
14508   break
14509 fi
14510 done
14511 if test "${ac_cv_search_bfd_init+set}" = set; then
14512   :
14513 else
14514   ac_cv_search_bfd_init=no
14515 fi
14516 rm conftest.$ac_ext
14517 LIBS=$ac_func_search_save_LIBS
14518 fi
14519 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14520 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14521 ac_res=$ac_cv_search_bfd_init
14522 if test "$ac_res" != no; then
14523   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14524
14525 fi
14526
14527         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14528 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14529 if test "${ac_cv_search_op_open_agent+set}" = set; then
14530   echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532   ac_func_search_save_LIBS=$LIBS
14533 cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h.  */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h.  */
14539
14540 /* Override any GCC internal prototype to avoid an error.
14541    Use char because int might match the return type of a GCC
14542    builtin and then its argument prototype would still apply.  */
14543 #ifdef __cplusplus
14544 extern "C"
14545 #endif
14546 char op_open_agent ();
14547 int
14548 main ()
14549 {
14550 return op_open_agent ();
14551   ;
14552   return 0;
14553 }
14554 _ACEOF
14555 for ac_lib in '' opagent; do
14556   if test -z "$ac_lib"; then
14557     ac_res="none required"
14558   else
14559     ac_res=-l$ac_lib
14560     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14561   fi
14562   rm -f conftest.$ac_objext conftest$ac_exeext
14563 if { (ac_try="$ac_link"
14564 case "(($ac_try" in
14565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566   *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569   (eval "$ac_link") 2>conftest.er1
14570   ac_status=$?
14571   grep -v '^ *+' conftest.er1 >conftest.err
14572   rm -f conftest.er1
14573   cat conftest.err >&5
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); } &&
14576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14577   { (case "(($ac_try" in
14578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579   *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582   (eval "$ac_try") 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; } &&
14586          { ac_try='test -s conftest$ac_exeext'
14587   { (case "(($ac_try" in
14588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589   *) ac_try_echo=$ac_try;;
14590 esac
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592   (eval "$ac_try") 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); }; }; then
14596   ac_cv_search_op_open_agent=$ac_res
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601
14602 fi
14603
14604 rm -f core conftest.err conftest.$ac_objext \
14605       conftest$ac_exeext
14606   if test "${ac_cv_search_op_open_agent+set}" = set; then
14607   break
14608 fi
14609 done
14610 if test "${ac_cv_search_op_open_agent+set}" = set; then
14611   :
14612 else
14613   ac_cv_search_op_open_agent=no
14614 fi
14615 rm conftest.$ac_ext
14616 LIBS=$ac_func_search_save_LIBS
14617 fi
14618 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14619 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14620 ac_res=$ac_cv_search_op_open_agent
14621 if test "$ac_res" != no; then
14622   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14623
14624 else
14625
14626           echo "Error! You need to have libopagent around."
14627           exit -1
14628
14629 fi
14630
14631         if test "${ac_cv_header_opagent_h+set}" = set; then
14632   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14633 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14634 if test "${ac_cv_header_opagent_h+set}" = set; then
14635   echo $ECHO_N "(cached) $ECHO_C" >&6
14636 fi
14637 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14638 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14639 else
14640   # Is the header compilable?
14641 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14642 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14643 cat >conftest.$ac_ext <<_ACEOF
14644 /* confdefs.h.  */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h.  */
14649 $ac_includes_default
14650 #include <opagent.h>
14651 _ACEOF
14652 rm -f conftest.$ac_objext
14653 if { (ac_try="$ac_compile"
14654 case "(($ac_try" in
14655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656   *) ac_try_echo=$ac_try;;
14657 esac
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659   (eval "$ac_compile") 2>conftest.er1
14660   ac_status=$?
14661   grep -v '^ *+' conftest.er1 >conftest.err
14662   rm -f conftest.er1
14663   cat conftest.err >&5
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); } &&
14666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14667   { (case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672   (eval "$ac_try") 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; } &&
14676          { ac_try='test -s conftest.$ac_objext'
14677   { (case "(($ac_try" in
14678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679   *) ac_try_echo=$ac_try;;
14680 esac
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682   (eval "$ac_try") 2>&5
14683   ac_status=$?
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); }; }; then
14686   ac_header_compiler=yes
14687 else
14688   echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14690
14691         ac_header_compiler=no
14692 fi
14693
14694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14696 echo "${ECHO_T}$ac_header_compiler" >&6; }
14697
14698 # Is the header present?
14699 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14700 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h.  */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h.  */
14707 #include <opagent.h>
14708 _ACEOF
14709 if { (ac_try="$ac_cpp conftest.$ac_ext"
14710 case "(($ac_try" in
14711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712   *) ac_try_echo=$ac_try;;
14713 esac
14714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14716   ac_status=$?
14717   grep -v '^ *+' conftest.er1 >conftest.err
14718   rm -f conftest.er1
14719   cat conftest.err >&5
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); } >/dev/null; then
14722   if test -s conftest.err; then
14723     ac_cpp_err=$ac_c_preproc_warn_flag
14724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14725   else
14726     ac_cpp_err=
14727   fi
14728 else
14729   ac_cpp_err=yes
14730 fi
14731 if test -z "$ac_cpp_err"; then
14732   ac_header_preproc=yes
14733 else
14734   echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737   ac_header_preproc=no
14738 fi
14739
14740 rm -f conftest.err conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14742 echo "${ECHO_T}$ac_header_preproc" >&6; }
14743
14744 # So?  What about this header?
14745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14746   yes:no: )
14747     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14748 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14749     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14750 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14751     ac_header_preproc=yes
14752     ;;
14753   no:yes:* )
14754     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14755 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14756     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14757 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14758     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14759 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14760     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14761 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14762     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14763 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14764     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14765 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14766     ( cat <<\_ASBOX
14767 ## ----------------------------------- ##
14768 ## Report this to llvmbugs@cs.uiuc.edu ##
14769 ## ----------------------------------- ##
14770 _ASBOX
14771      ) | sed "s/^/$as_me: WARNING:     /" >&2
14772     ;;
14773 esac
14774 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14775 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14776 if test "${ac_cv_header_opagent_h+set}" = set; then
14777   echo $ECHO_N "(cached) $ECHO_C" >&6
14778 else
14779   ac_cv_header_opagent_h=$ac_header_preproc
14780 fi
14781 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14782 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14783
14784 fi
14785 if test $ac_cv_header_opagent_h = yes; then
14786   :
14787 else
14788
14789           echo "Error! You need to have opagent.h around."
14790           exit -1
14791
14792 fi
14793
14794
14795       fi
14796
14797 else
14798
14799       USE_OPROFILE=0
14800
14801
14802 fi
14803
14804
14805 cat >>confdefs.h <<_ACEOF
14806 #define USE_OPROFILE $USE_OPROFILE
14807 _ACEOF
14808
14809
14810
14811
14812
14813
14814
14815
14816 ac_header_dirent=no
14817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14818   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14819 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14820 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14822   echo $ECHO_N "(cached) $ECHO_C" >&6
14823 else
14824   cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h.  */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h.  */
14830 #include <sys/types.h>
14831 #include <$ac_hdr>
14832
14833 int
14834 main ()
14835 {
14836 if ((DIR *) 0)
14837 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   eval "$as_ac_Header=yes"
14877 else
14878   echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14880
14881         eval "$as_ac_Header=no"
14882 fi
14883
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 ac_res=`eval echo '${'$as_ac_Header'}'`
14887                { echo "$as_me:$LINENO: result: $ac_res" >&5
14888 echo "${ECHO_T}$ac_res" >&6; }
14889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14890   cat >>confdefs.h <<_ACEOF
14891 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14892 _ACEOF
14893
14894 ac_header_dirent=$ac_hdr; break
14895 fi
14896
14897 done
14898 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14899 if test $ac_header_dirent = dirent.h; then
14900   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14901 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14902 if test "${ac_cv_search_opendir+set}" = set; then
14903   echo $ECHO_N "(cached) $ECHO_C" >&6
14904 else
14905   ac_func_search_save_LIBS=$LIBS
14906 cat >conftest.$ac_ext <<_ACEOF
14907 /* confdefs.h.  */
14908 _ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h.  */
14912
14913 /* Override any GCC internal prototype to avoid an error.
14914    Use char because int might match the return type of a GCC
14915    builtin and then its argument prototype would still apply.  */
14916 #ifdef __cplusplus
14917 extern "C"
14918 #endif
14919 char opendir ();
14920 int
14921 main ()
14922 {
14923 return opendir ();
14924   ;
14925   return 0;
14926 }
14927 _ACEOF
14928 for ac_lib in '' dir; do
14929   if test -z "$ac_lib"; then
14930     ac_res="none required"
14931   else
14932     ac_res=-l$ac_lib
14933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14934   fi
14935   rm -f conftest.$ac_objext conftest$ac_exeext
14936 if { (ac_try="$ac_link"
14937 case "(($ac_try" in
14938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14939   *) ac_try_echo=$ac_try;;
14940 esac
14941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14942   (eval "$ac_link") 2>conftest.er1
14943   ac_status=$?
14944   grep -v '^ *+' conftest.er1 >conftest.err
14945   rm -f conftest.er1
14946   cat conftest.err >&5
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   (exit $ac_status); } &&
14949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14950   { (case "(($ac_try" in
14951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952   *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955   (eval "$ac_try") 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; } &&
14959          { ac_try='test -s conftest$ac_exeext'
14960   { (case "(($ac_try" in
14961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962   *) ac_try_echo=$ac_try;;
14963 esac
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965   (eval "$ac_try") 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); }; }; then
14969   ac_cv_search_opendir=$ac_res
14970 else
14971   echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14973
14974
14975 fi
14976
14977 rm -f core conftest.err conftest.$ac_objext \
14978       conftest$ac_exeext
14979   if test "${ac_cv_search_opendir+set}" = set; then
14980   break
14981 fi
14982 done
14983 if test "${ac_cv_search_opendir+set}" = set; then
14984   :
14985 else
14986   ac_cv_search_opendir=no
14987 fi
14988 rm conftest.$ac_ext
14989 LIBS=$ac_func_search_save_LIBS
14990 fi
14991 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14992 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14993 ac_res=$ac_cv_search_opendir
14994 if test "$ac_res" != no; then
14995   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14996
14997 fi
14998
14999 else
15000   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15001 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15002 if test "${ac_cv_search_opendir+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   ac_func_search_save_LIBS=$LIBS
15006 cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012
15013 /* Override any GCC internal prototype to avoid an error.
15014    Use char because int might match the return type of a GCC
15015    builtin and then its argument prototype would still apply.  */
15016 #ifdef __cplusplus
15017 extern "C"
15018 #endif
15019 char opendir ();
15020 int
15021 main ()
15022 {
15023 return opendir ();
15024   ;
15025   return 0;
15026 }
15027 _ACEOF
15028 for ac_lib in '' x; do
15029   if test -z "$ac_lib"; then
15030     ac_res="none required"
15031   else
15032     ac_res=-l$ac_lib
15033     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15034   fi
15035   rm -f conftest.$ac_objext conftest$ac_exeext
15036 if { (ac_try="$ac_link"
15037 case "(($ac_try" in
15038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039   *) ac_try_echo=$ac_try;;
15040 esac
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042   (eval "$ac_link") 2>conftest.er1
15043   ac_status=$?
15044   grep -v '^ *+' conftest.er1 >conftest.err
15045   rm -f conftest.er1
15046   cat conftest.err >&5
15047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048   (exit $ac_status); } &&
15049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15050   { (case "(($ac_try" in
15051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052   *) ac_try_echo=$ac_try;;
15053 esac
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055   (eval "$ac_try") 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; } &&
15059          { ac_try='test -s conftest$ac_exeext'
15060   { (case "(($ac_try" in
15061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062   *) ac_try_echo=$ac_try;;
15063 esac
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065   (eval "$ac_try") 2>&5
15066   ac_status=$?
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); }; }; then
15069   ac_cv_search_opendir=$ac_res
15070 else
15071   echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15073
15074
15075 fi
15076
15077 rm -f core conftest.err conftest.$ac_objext \
15078       conftest$ac_exeext
15079   if test "${ac_cv_search_opendir+set}" = set; then
15080   break
15081 fi
15082 done
15083 if test "${ac_cv_search_opendir+set}" = set; then
15084   :
15085 else
15086   ac_cv_search_opendir=no
15087 fi
15088 rm conftest.$ac_ext
15089 LIBS=$ac_func_search_save_LIBS
15090 fi
15091 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15092 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15093 ac_res=$ac_cv_search_opendir
15094 if test "$ac_res" != no; then
15095   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15096
15097 fi
15098
15099 fi
15100
15101 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15102 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15103 if test "${ac_cv_header_mmap_anon+set}" = set; then
15104   echo $ECHO_N "(cached) $ECHO_C" >&6
15105 else
15106    ac_ext=c
15107 ac_cpp='$CPP $CPPFLAGS'
15108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15111
15112   cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h.  */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h.  */
15118 #include <sys/mman.h>
15119 #include <unistd.h>
15120 #include <fcntl.h>
15121 int
15122 main ()
15123 {
15124 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15125   ;
15126   return 0;
15127 }
15128 _ACEOF
15129 rm -f conftest.$ac_objext
15130 if { (ac_try="$ac_compile"
15131 case "(($ac_try" in
15132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133   *) ac_try_echo=$ac_try;;
15134 esac
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136   (eval "$ac_compile") 2>conftest.er1
15137   ac_status=$?
15138   grep -v '^ *+' conftest.er1 >conftest.err
15139   rm -f conftest.er1
15140   cat conftest.err >&5
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); } &&
15143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15144   { (case "(($ac_try" in
15145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146   *) ac_try_echo=$ac_try;;
15147 esac
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149   (eval "$ac_try") 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); }; } &&
15153          { ac_try='test -s conftest.$ac_objext'
15154   { (case "(($ac_try" in
15155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156   *) ac_try_echo=$ac_try;;
15157 esac
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159   (eval "$ac_try") 2>&5
15160   ac_status=$?
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); }; }; then
15163   ac_cv_header_mmap_anon=yes
15164 else
15165   echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15167
15168         ac_cv_header_mmap_anon=no
15169 fi
15170
15171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172   ac_ext=c
15173 ac_cpp='$CPP $CPPFLAGS'
15174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15177
15178
15179 fi
15180 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15181 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15182 if test "$ac_cv_header_mmap_anon" = yes; then
15183
15184 cat >>confdefs.h <<\_ACEOF
15185 #define HAVE_MMAP_ANONYMOUS 1
15186 _ACEOF
15187
15188 fi
15189
15190 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15191 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15192 if test "${ac_cv_header_stat_broken+set}" = set; then
15193   echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195   cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h.  */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h.  */
15201 #include <sys/types.h>
15202 #include <sys/stat.h>
15203
15204 #if defined S_ISBLK && defined S_IFDIR
15205 # if S_ISBLK (S_IFDIR)
15206 You lose.
15207 # endif
15208 #endif
15209
15210 #if defined S_ISBLK && defined S_IFCHR
15211 # if S_ISBLK (S_IFCHR)
15212 You lose.
15213 # endif
15214 #endif
15215
15216 #if defined S_ISLNK && defined S_IFREG
15217 # if S_ISLNK (S_IFREG)
15218 You lose.
15219 # endif
15220 #endif
15221
15222 #if defined S_ISSOCK && defined S_IFREG
15223 # if S_ISSOCK (S_IFREG)
15224 You lose.
15225 # endif
15226 #endif
15227
15228 _ACEOF
15229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15230   $EGREP "You lose" >/dev/null 2>&1; then
15231   ac_cv_header_stat_broken=yes
15232 else
15233   ac_cv_header_stat_broken=no
15234 fi
15235 rm -f conftest*
15236
15237 fi
15238 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15239 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15240 if test $ac_cv_header_stat_broken = yes; then
15241
15242 cat >>confdefs.h <<\_ACEOF
15243 #define STAT_MACROS_BROKEN 1
15244 _ACEOF
15245
15246 fi
15247
15248 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15250 if test "${ac_cv_header_stdc+set}" = set; then
15251   echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253   cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259 #include <stdlib.h>
15260 #include <stdarg.h>
15261 #include <string.h>
15262 #include <float.h>
15263
15264 int
15265 main ()
15266 {
15267
15268   ;
15269   return 0;
15270 }
15271 _ACEOF
15272 rm -f conftest.$ac_objext
15273 if { (ac_try="$ac_compile"
15274 case "(($ac_try" in
15275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276   *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279   (eval "$ac_compile") 2>conftest.er1
15280   ac_status=$?
15281   grep -v '^ *+' conftest.er1 >conftest.err
15282   rm -f conftest.er1
15283   cat conftest.err >&5
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } &&
15286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15287   { (case "(($ac_try" in
15288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289   *) ac_try_echo=$ac_try;;
15290 esac
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292   (eval "$ac_try") 2>&5
15293   ac_status=$?
15294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295   (exit $ac_status); }; } &&
15296          { ac_try='test -s conftest.$ac_objext'
15297   { (case "(($ac_try" in
15298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299   *) ac_try_echo=$ac_try;;
15300 esac
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302   (eval "$ac_try") 2>&5
15303   ac_status=$?
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); }; }; then
15306   ac_cv_header_stdc=yes
15307 else
15308   echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15310
15311         ac_cv_header_stdc=no
15312 fi
15313
15314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315
15316 if test $ac_cv_header_stdc = yes; then
15317   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15318   cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h.  */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h.  */
15324 #include <string.h>
15325
15326 _ACEOF
15327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15328   $EGREP "memchr" >/dev/null 2>&1; then
15329   :
15330 else
15331   ac_cv_header_stdc=no
15332 fi
15333 rm -f conftest*
15334
15335 fi
15336
15337 if test $ac_cv_header_stdc = yes; then
15338   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15339   cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h.  */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h.  */
15345 #include <stdlib.h>
15346
15347 _ACEOF
15348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15349   $EGREP "free" >/dev/null 2>&1; then
15350   :
15351 else
15352   ac_cv_header_stdc=no
15353 fi
15354 rm -f conftest*
15355
15356 fi
15357
15358 if test $ac_cv_header_stdc = yes; then
15359   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15360   if test "$cross_compiling" = yes; then
15361   :
15362 else
15363   cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h.  */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h.  */
15369 #include <ctype.h>
15370 #include <stdlib.h>
15371 #if ((' ' & 0x0FF) == 0x020)
15372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15374 #else
15375 # define ISLOWER(c) \
15376                    (('a' <= (c) && (c) <= 'i') \
15377                      || ('j' <= (c) && (c) <= 'r') \
15378                      || ('s' <= (c) && (c) <= 'z'))
15379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15380 #endif
15381
15382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15383 int
15384 main ()
15385 {
15386   int i;
15387   for (i = 0; i < 256; i++)
15388     if (XOR (islower (i), ISLOWER (i))
15389         || toupper (i) != TOUPPER (i))
15390       return 2;
15391   return 0;
15392 }
15393 _ACEOF
15394 rm -f conftest$ac_exeext
15395 if { (ac_try="$ac_link"
15396 case "(($ac_try" in
15397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398   *) ac_try_echo=$ac_try;;
15399 esac
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401   (eval "$ac_link") 2>&5
15402   ac_status=$?
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15405   { (case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_try") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414   :
15415 else
15416   echo "$as_me: program exited with status $ac_status" >&5
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15419
15420 ( exit $ac_status )
15421 ac_cv_header_stdc=no
15422 fi
15423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15424 fi
15425
15426
15427 fi
15428 fi
15429 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15430 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15431 if test $ac_cv_header_stdc = yes; then
15432
15433 cat >>confdefs.h <<\_ACEOF
15434 #define STDC_HEADERS 1
15435 _ACEOF
15436
15437 fi
15438
15439 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15440 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15441 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15442   echo $ECHO_N "(cached) $ECHO_C" >&6
15443 else
15444   cat >conftest.$ac_ext <<_ACEOF
15445 /* confdefs.h.  */
15446 _ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h.  */
15450 #include <sys/types.h>
15451 #include <sys/wait.h>
15452 #ifndef WEXITSTATUS
15453 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15454 #endif
15455 #ifndef WIFEXITED
15456 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15457 #endif
15458
15459 int
15460 main ()
15461 {
15462   int s;
15463   wait (&s);
15464   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15465   ;
15466   return 0;
15467 }
15468 _ACEOF
15469 rm -f conftest.$ac_objext
15470 if { (ac_try="$ac_compile"
15471 case "(($ac_try" in
15472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473   *) ac_try_echo=$ac_try;;
15474 esac
15475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476   (eval "$ac_compile") 2>conftest.er1
15477   ac_status=$?
15478   grep -v '^ *+' conftest.er1 >conftest.err
15479   rm -f conftest.er1
15480   cat conftest.err >&5
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } &&
15483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15484   { (case "(($ac_try" in
15485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486   *) ac_try_echo=$ac_try;;
15487 esac
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489   (eval "$ac_try") 2>&5
15490   ac_status=$?
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   (exit $ac_status); }; } &&
15493          { ac_try='test -s conftest.$ac_objext'
15494   { (case "(($ac_try" in
15495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496   *) ac_try_echo=$ac_try;;
15497 esac
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499   (eval "$ac_try") 2>&5
15500   ac_status=$?
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); }; }; then
15503   ac_cv_header_sys_wait_h=yes
15504 else
15505   echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15507
15508         ac_cv_header_sys_wait_h=no
15509 fi
15510
15511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15512 fi
15513 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15514 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15515 if test $ac_cv_header_sys_wait_h = yes; then
15516
15517 cat >>confdefs.h <<\_ACEOF
15518 #define HAVE_SYS_WAIT_H 1
15519 _ACEOF
15520
15521 fi
15522
15523 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15524 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15525 if test "${ac_cv_header_time+set}" = set; then
15526   echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528   cat >conftest.$ac_ext <<_ACEOF
15529 /* confdefs.h.  */
15530 _ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h.  */
15534 #include <sys/types.h>
15535 #include <sys/time.h>
15536 #include <time.h>
15537
15538 int
15539 main ()
15540 {
15541 if ((struct tm *) 0)
15542 return 0;
15543   ;
15544   return 0;
15545 }
15546 _ACEOF
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
15549 case "(($ac_try" in
15550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551   *) ac_try_echo=$ac_try;;
15552 esac
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554   (eval "$ac_compile") 2>conftest.er1
15555   ac_status=$?
15556   grep -v '^ *+' conftest.er1 >conftest.err
15557   rm -f conftest.er1
15558   cat conftest.err >&5
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); } &&
15561          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15562   { (case "(($ac_try" in
15563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564   *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567   (eval "$ac_try") 2>&5
15568   ac_status=$?
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); }; } &&
15571          { ac_try='test -s conftest.$ac_objext'
15572   { (case "(($ac_try" in
15573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574   *) ac_try_echo=$ac_try;;
15575 esac
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577   (eval "$ac_try") 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; }; then
15581   ac_cv_header_time=yes
15582 else
15583   echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15585
15586         ac_cv_header_time=no
15587 fi
15588
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590 fi
15591 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15592 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15593 if test $ac_cv_header_time = yes; then
15594
15595 cat >>confdefs.h <<\_ACEOF
15596 #define TIME_WITH_SYS_TIME 1
15597 _ACEOF
15598
15599 fi
15600
15601
15602
15603
15604
15605
15606
15607
15608 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15609 do
15610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15612   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15615   echo $ECHO_N "(cached) $ECHO_C" >&6
15616 fi
15617 ac_res=`eval echo '${'$as_ac_Header'}'`
15618                { echo "$as_me:$LINENO: result: $ac_res" >&5
15619 echo "${ECHO_T}$ac_res" >&6; }
15620 else
15621   # Is the header compilable?
15622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15624 cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h.  */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h.  */
15630 $ac_includes_default
15631 #include <$ac_header>
15632 _ACEOF
15633 rm -f conftest.$ac_objext
15634 if { (ac_try="$ac_compile"
15635 case "(($ac_try" in
15636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637   *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640   (eval "$ac_compile") 2>conftest.er1
15641   ac_status=$?
15642   grep -v '^ *+' conftest.er1 >conftest.err
15643   rm -f conftest.er1
15644   cat conftest.err >&5
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); } &&
15647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15648   { (case "(($ac_try" in
15649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650   *) ac_try_echo=$ac_try;;
15651 esac
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653   (eval "$ac_try") 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; } &&
15657          { ac_try='test -s conftest.$ac_objext'
15658   { (case "(($ac_try" in
15659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660   *) ac_try_echo=$ac_try;;
15661 esac
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663   (eval "$ac_try") 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; }; then
15667   ac_header_compiler=yes
15668 else
15669   echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672         ac_header_compiler=no
15673 fi
15674
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15677 echo "${ECHO_T}$ac_header_compiler" >&6; }
15678
15679 # Is the header present?
15680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15682 cat >conftest.$ac_ext <<_ACEOF
15683 /* confdefs.h.  */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h.  */
15688 #include <$ac_header>
15689 _ACEOF
15690 if { (ac_try="$ac_cpp conftest.$ac_ext"
15691 case "(($ac_try" in
15692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693   *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15697   ac_status=$?
15698   grep -v '^ *+' conftest.er1 >conftest.err
15699   rm -f conftest.er1
15700   cat conftest.err >&5
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); } >/dev/null; then
15703   if test -s conftest.err; then
15704     ac_cpp_err=$ac_c_preproc_warn_flag
15705     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15706   else
15707     ac_cpp_err=
15708   fi
15709 else
15710   ac_cpp_err=yes
15711 fi
15712 if test -z "$ac_cpp_err"; then
15713   ac_header_preproc=yes
15714 else
15715   echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15717
15718   ac_header_preproc=no
15719 fi
15720
15721 rm -f conftest.err conftest.$ac_ext
15722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15723 echo "${ECHO_T}$ac_header_preproc" >&6; }
15724
15725 # So?  What about this header?
15726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15727   yes:no: )
15728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15732     ac_header_preproc=yes
15733     ;;
15734   no:yes:* )
15735     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15737     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15738 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15741     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15742 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15745     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15747     ( cat <<\_ASBOX
15748 ## ----------------------------------- ##
15749 ## Report this to llvmbugs@cs.uiuc.edu ##
15750 ## ----------------------------------- ##
15751 _ASBOX
15752      ) | sed "s/^/$as_me: WARNING:     /" >&2
15753     ;;
15754 esac
15755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15758   echo $ECHO_N "(cached) $ECHO_C" >&6
15759 else
15760   eval "$as_ac_Header=\$ac_header_preproc"
15761 fi
15762 ac_res=`eval echo '${'$as_ac_Header'}'`
15763                { echo "$as_me:$LINENO: result: $ac_res" >&5
15764 echo "${ECHO_T}$ac_res" >&6; }
15765
15766 fi
15767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15768   cat >>confdefs.h <<_ACEOF
15769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15770 _ACEOF
15771
15772 fi
15773
15774 done
15775
15776
15777
15778
15779
15780
15781
15782 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15783 do
15784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789   echo $ECHO_N "(cached) $ECHO_C" >&6
15790 fi
15791 ac_res=`eval echo '${'$as_ac_Header'}'`
15792                { echo "$as_me:$LINENO: result: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15794 else
15795   # Is the header compilable?
15796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15798 cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h.  */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h.  */
15804 $ac_includes_default
15805 #include <$ac_header>
15806 _ACEOF
15807 rm -f conftest.$ac_objext
15808 if { (ac_try="$ac_compile"
15809 case "(($ac_try" in
15810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811   *) ac_try_echo=$ac_try;;
15812 esac
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814   (eval "$ac_compile") 2>conftest.er1
15815   ac_status=$?
15816   grep -v '^ *+' conftest.er1 >conftest.err
15817   rm -f conftest.er1
15818   cat conftest.err >&5
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); } &&
15821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15822   { (case "(($ac_try" in
15823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824   *) ac_try_echo=$ac_try;;
15825 esac
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827   (eval "$ac_try") 2>&5
15828   ac_status=$?
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); }; } &&
15831          { ac_try='test -s conftest.$ac_objext'
15832   { (case "(($ac_try" in
15833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834   *) ac_try_echo=$ac_try;;
15835 esac
15836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837   (eval "$ac_try") 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); }; }; then
15841   ac_header_compiler=yes
15842 else
15843   echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15845
15846         ac_header_compiler=no
15847 fi
15848
15849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15851 echo "${ECHO_T}$ac_header_compiler" >&6; }
15852
15853 # Is the header present?
15854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15856 cat >conftest.$ac_ext <<_ACEOF
15857 /* confdefs.h.  */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h.  */
15862 #include <$ac_header>
15863 _ACEOF
15864 if { (ac_try="$ac_cpp conftest.$ac_ext"
15865 case "(($ac_try" in
15866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867   *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15871   ac_status=$?
15872   grep -v '^ *+' conftest.er1 >conftest.err
15873   rm -f conftest.er1
15874   cat conftest.err >&5
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); } >/dev/null; then
15877   if test -s conftest.err; then
15878     ac_cpp_err=$ac_c_preproc_warn_flag
15879     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15880   else
15881     ac_cpp_err=
15882   fi
15883 else
15884   ac_cpp_err=yes
15885 fi
15886 if test -z "$ac_cpp_err"; then
15887   ac_header_preproc=yes
15888 else
15889   echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15891
15892   ac_header_preproc=no
15893 fi
15894
15895 rm -f conftest.err conftest.$ac_ext
15896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15897 echo "${ECHO_T}$ac_header_preproc" >&6; }
15898
15899 # So?  What about this header?
15900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15901   yes:no: )
15902     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15906     ac_header_preproc=yes
15907     ;;
15908   no:yes:* )
15909     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15911     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15912 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15913     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15915     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15916 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15917     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15919     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15921     ( cat <<\_ASBOX
15922 ## ----------------------------------- ##
15923 ## Report this to llvmbugs@cs.uiuc.edu ##
15924 ## ----------------------------------- ##
15925 _ASBOX
15926      ) | sed "s/^/$as_me: WARNING:     /" >&2
15927     ;;
15928 esac
15929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15932   echo $ECHO_N "(cached) $ECHO_C" >&6
15933 else
15934   eval "$as_ac_Header=\$ac_header_preproc"
15935 fi
15936 ac_res=`eval echo '${'$as_ac_Header'}'`
15937                { echo "$as_me:$LINENO: result: $ac_res" >&5
15938 echo "${ECHO_T}$ac_res" >&6; }
15939
15940 fi
15941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15942   cat >>confdefs.h <<_ACEOF
15943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15944 _ACEOF
15945
15946 fi
15947
15948 done
15949
15950
15951
15952 for ac_header in utime.h windows.h
15953 do
15954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959   echo $ECHO_N "(cached) $ECHO_C" >&6
15960 fi
15961 ac_res=`eval echo '${'$as_ac_Header'}'`
15962                { echo "$as_me:$LINENO: result: $ac_res" >&5
15963 echo "${ECHO_T}$ac_res" >&6; }
15964 else
15965   # Is the header compilable?
15966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15968 cat >conftest.$ac_ext <<_ACEOF
15969 /* confdefs.h.  */
15970 _ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h.  */
15974 $ac_includes_default
15975 #include <$ac_header>
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (ac_try="$ac_compile"
15979 case "(($ac_try" in
15980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981   *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984   (eval "$ac_compile") 2>conftest.er1
15985   ac_status=$?
15986   grep -v '^ *+' conftest.er1 >conftest.err
15987   rm -f conftest.er1
15988   cat conftest.err >&5
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); } &&
15991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992   { (case "(($ac_try" in
15993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994   *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997   (eval "$ac_try") 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; } &&
16001          { ac_try='test -s conftest.$ac_objext'
16002   { (case "(($ac_try" in
16003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004   *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007   (eval "$ac_try") 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; }; then
16011   ac_header_compiler=yes
16012 else
16013   echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16015
16016         ac_header_compiler=no
16017 fi
16018
16019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16021 echo "${ECHO_T}$ac_header_compiler" >&6; }
16022
16023 # Is the header present?
16024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16026 cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032 #include <$ac_header>
16033 _ACEOF
16034 if { (ac_try="$ac_cpp conftest.$ac_ext"
16035 case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16041   ac_status=$?
16042   grep -v '^ *+' conftest.er1 >conftest.err
16043   rm -f conftest.er1
16044   cat conftest.err >&5
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } >/dev/null; then
16047   if test -s conftest.err; then
16048     ac_cpp_err=$ac_c_preproc_warn_flag
16049     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16050   else
16051     ac_cpp_err=
16052   fi
16053 else
16054   ac_cpp_err=yes
16055 fi
16056 if test -z "$ac_cpp_err"; then
16057   ac_header_preproc=yes
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062   ac_header_preproc=no
16063 fi
16064
16065 rm -f conftest.err conftest.$ac_ext
16066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067 echo "${ECHO_T}$ac_header_preproc" >&6; }
16068
16069 # So?  What about this header?
16070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16071   yes:no: )
16072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16076     ac_header_preproc=yes
16077     ;;
16078   no:yes:* )
16079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16091     ( cat <<\_ASBOX
16092 ## ----------------------------------- ##
16093 ## Report this to llvmbugs@cs.uiuc.edu ##
16094 ## ----------------------------------- ##
16095 _ASBOX
16096      ) | sed "s/^/$as_me: WARNING:     /" >&2
16097     ;;
16098 esac
16099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102   echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104   eval "$as_ac_Header=\$ac_header_preproc"
16105 fi
16106 ac_res=`eval echo '${'$as_ac_Header'}'`
16107                { echo "$as_me:$LINENO: result: $ac_res" >&5
16108 echo "${ECHO_T}$ac_res" >&6; }
16109
16110 fi
16111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16112   cat >>confdefs.h <<_ACEOF
16113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16114 _ACEOF
16115
16116 fi
16117
16118 done
16119
16120
16121
16122
16123
16124 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16125 do
16126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16131   echo $ECHO_N "(cached) $ECHO_C" >&6
16132 fi
16133 ac_res=`eval echo '${'$as_ac_Header'}'`
16134                { echo "$as_me:$LINENO: result: $ac_res" >&5
16135 echo "${ECHO_T}$ac_res" >&6; }
16136 else
16137   # Is the header compilable?
16138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16140 cat >conftest.$ac_ext <<_ACEOF
16141 /* confdefs.h.  */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h.  */
16146 $ac_includes_default
16147 #include <$ac_header>
16148 _ACEOF
16149 rm -f conftest.$ac_objext
16150 if { (ac_try="$ac_compile"
16151 case "(($ac_try" in
16152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153   *) ac_try_echo=$ac_try;;
16154 esac
16155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156   (eval "$ac_compile") 2>conftest.er1
16157   ac_status=$?
16158   grep -v '^ *+' conftest.er1 >conftest.err
16159   rm -f conftest.er1
16160   cat conftest.err >&5
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); } &&
16163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16164   { (case "(($ac_try" in
16165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166   *) ac_try_echo=$ac_try;;
16167 esac
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169   (eval "$ac_try") 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; } &&
16173          { ac_try='test -s conftest.$ac_objext'
16174   { (case "(($ac_try" in
16175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176   *) ac_try_echo=$ac_try;;
16177 esac
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179   (eval "$ac_try") 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); }; }; then
16183   ac_header_compiler=yes
16184 else
16185   echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16187
16188         ac_header_compiler=no
16189 fi
16190
16191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16193 echo "${ECHO_T}$ac_header_compiler" >&6; }
16194
16195 # Is the header present?
16196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h.  */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h.  */
16204 #include <$ac_header>
16205 _ACEOF
16206 if { (ac_try="$ac_cpp conftest.$ac_ext"
16207 case "(($ac_try" in
16208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209   *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16213   ac_status=$?
16214   grep -v '^ *+' conftest.er1 >conftest.err
16215   rm -f conftest.er1
16216   cat conftest.err >&5
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } >/dev/null; then
16219   if test -s conftest.err; then
16220     ac_cpp_err=$ac_c_preproc_warn_flag
16221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16222   else
16223     ac_cpp_err=
16224   fi
16225 else
16226   ac_cpp_err=yes
16227 fi
16228 if test -z "$ac_cpp_err"; then
16229   ac_header_preproc=yes
16230 else
16231   echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16233
16234   ac_header_preproc=no
16235 fi
16236
16237 rm -f conftest.err conftest.$ac_ext
16238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16239 echo "${ECHO_T}$ac_header_preproc" >&6; }
16240
16241 # So?  What about this header?
16242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16243   yes:no: )
16244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16248     ac_header_preproc=yes
16249     ;;
16250   no:yes:* )
16251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16263     ( cat <<\_ASBOX
16264 ## ----------------------------------- ##
16265 ## Report this to llvmbugs@cs.uiuc.edu ##
16266 ## ----------------------------------- ##
16267 _ASBOX
16268      ) | sed "s/^/$as_me: WARNING:     /" >&2
16269     ;;
16270 esac
16271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274   echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276   eval "$as_ac_Header=\$ac_header_preproc"
16277 fi
16278 ac_res=`eval echo '${'$as_ac_Header'}'`
16279                { echo "$as_me:$LINENO: result: $ac_res" >&5
16280 echo "${ECHO_T}$ac_res" >&6; }
16281
16282 fi
16283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16284   cat >>confdefs.h <<_ACEOF
16285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16286 _ACEOF
16287
16288 fi
16289
16290 done
16291
16292
16293
16294
16295
16296 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16297 do
16298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16300   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16303   echo $ECHO_N "(cached) $ECHO_C" >&6
16304 fi
16305 ac_res=`eval echo '${'$as_ac_Header'}'`
16306                { echo "$as_me:$LINENO: result: $ac_res" >&5
16307 echo "${ECHO_T}$ac_res" >&6; }
16308 else
16309   # Is the header compilable?
16310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16312 cat >conftest.$ac_ext <<_ACEOF
16313 /* confdefs.h.  */
16314 _ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h.  */
16318 $ac_includes_default
16319 #include <$ac_header>
16320 _ACEOF
16321 rm -f conftest.$ac_objext
16322 if { (ac_try="$ac_compile"
16323 case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_compile") 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } &&
16335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336   { (case "(($ac_try" in
16337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338   *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341   (eval "$ac_try") 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); }; } &&
16345          { ac_try='test -s conftest.$ac_objext'
16346   { (case "(($ac_try" in
16347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348   *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351   (eval "$ac_try") 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); }; }; then
16355   ac_header_compiler=yes
16356 else
16357   echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360         ac_header_compiler=no
16361 fi
16362
16363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16365 echo "${ECHO_T}$ac_header_compiler" >&6; }
16366
16367 # Is the header present?
16368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16370 cat >conftest.$ac_ext <<_ACEOF
16371 /* confdefs.h.  */
16372 _ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h.  */
16376 #include <$ac_header>
16377 _ACEOF
16378 if { (ac_try="$ac_cpp conftest.$ac_ext"
16379 case "(($ac_try" in
16380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381   *) ac_try_echo=$ac_try;;
16382 esac
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16385   ac_status=$?
16386   grep -v '^ *+' conftest.er1 >conftest.err
16387   rm -f conftest.er1
16388   cat conftest.err >&5
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); } >/dev/null; then
16391   if test -s conftest.err; then
16392     ac_cpp_err=$ac_c_preproc_warn_flag
16393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16394   else
16395     ac_cpp_err=
16396   fi
16397 else
16398   ac_cpp_err=yes
16399 fi
16400 if test -z "$ac_cpp_err"; then
16401   ac_header_preproc=yes
16402 else
16403   echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406   ac_header_preproc=no
16407 fi
16408
16409 rm -f conftest.err conftest.$ac_ext
16410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16411 echo "${ECHO_T}$ac_header_preproc" >&6; }
16412
16413 # So?  What about this header?
16414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16415   yes:no: )
16416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16420     ac_header_preproc=yes
16421     ;;
16422   no:yes:* )
16423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16435     ( cat <<\_ASBOX
16436 ## ----------------------------------- ##
16437 ## Report this to llvmbugs@cs.uiuc.edu ##
16438 ## ----------------------------------- ##
16439 _ASBOX
16440      ) | sed "s/^/$as_me: WARNING:     /" >&2
16441     ;;
16442 esac
16443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16446   echo $ECHO_N "(cached) $ECHO_C" >&6
16447 else
16448   eval "$as_ac_Header=\$ac_header_preproc"
16449 fi
16450 ac_res=`eval echo '${'$as_ac_Header'}'`
16451                { echo "$as_me:$LINENO: result: $ac_res" >&5
16452 echo "${ECHO_T}$ac_res" >&6; }
16453
16454 fi
16455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16456   cat >>confdefs.h <<_ACEOF
16457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16458 _ACEOF
16459
16460 fi
16461
16462 done
16463
16464
16465 for ac_header in valgrind/valgrind.h
16466 do
16467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16472   echo $ECHO_N "(cached) $ECHO_C" >&6
16473 fi
16474 ac_res=`eval echo '${'$as_ac_Header'}'`
16475                { echo "$as_me:$LINENO: result: $ac_res" >&5
16476 echo "${ECHO_T}$ac_res" >&6; }
16477 else
16478   # Is the header compilable?
16479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16481 cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h.  */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h.  */
16487 $ac_includes_default
16488 #include <$ac_header>
16489 _ACEOF
16490 rm -f conftest.$ac_objext
16491 if { (ac_try="$ac_compile"
16492 case "(($ac_try" in
16493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494   *) ac_try_echo=$ac_try;;
16495 esac
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497   (eval "$ac_compile") 2>conftest.er1
16498   ac_status=$?
16499   grep -v '^ *+' conftest.er1 >conftest.err
16500   rm -f conftest.er1
16501   cat conftest.err >&5
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); } &&
16504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505   { (case "(($ac_try" in
16506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507   *) ac_try_echo=$ac_try;;
16508 esac
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510   (eval "$ac_try") 2>&5
16511   ac_status=$?
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); }; } &&
16514          { ac_try='test -s conftest.$ac_objext'
16515   { (case "(($ac_try" in
16516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517   *) ac_try_echo=$ac_try;;
16518 esac
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520   (eval "$ac_try") 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; }; then
16524   ac_header_compiler=yes
16525 else
16526   echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16528
16529         ac_header_compiler=no
16530 fi
16531
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16534 echo "${ECHO_T}$ac_header_compiler" >&6; }
16535
16536 # Is the header present?
16537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16539 cat >conftest.$ac_ext <<_ACEOF
16540 /* confdefs.h.  */
16541 _ACEOF
16542 cat confdefs.h >>conftest.$ac_ext
16543 cat >>conftest.$ac_ext <<_ACEOF
16544 /* end confdefs.h.  */
16545 #include <$ac_header>
16546 _ACEOF
16547 if { (ac_try="$ac_cpp conftest.$ac_ext"
16548 case "(($ac_try" in
16549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550   *) ac_try_echo=$ac_try;;
16551 esac
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16554   ac_status=$?
16555   grep -v '^ *+' conftest.er1 >conftest.err
16556   rm -f conftest.er1
16557   cat conftest.err >&5
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } >/dev/null; then
16560   if test -s conftest.err; then
16561     ac_cpp_err=$ac_c_preproc_warn_flag
16562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16563   else
16564     ac_cpp_err=
16565   fi
16566 else
16567   ac_cpp_err=yes
16568 fi
16569 if test -z "$ac_cpp_err"; then
16570   ac_header_preproc=yes
16571 else
16572   echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575   ac_header_preproc=no
16576 fi
16577
16578 rm -f conftest.err conftest.$ac_ext
16579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16580 echo "${ECHO_T}$ac_header_preproc" >&6; }
16581
16582 # So?  What about this header?
16583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16584   yes:no: )
16585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16589     ac_header_preproc=yes
16590     ;;
16591   no:yes:* )
16592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16604     ( cat <<\_ASBOX
16605 ## ----------------------------------- ##
16606 ## Report this to llvmbugs@cs.uiuc.edu ##
16607 ## ----------------------------------- ##
16608 _ASBOX
16609      ) | sed "s/^/$as_me: WARNING:     /" >&2
16610     ;;
16611 esac
16612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16615   echo $ECHO_N "(cached) $ECHO_C" >&6
16616 else
16617   eval "$as_ac_Header=\$ac_header_preproc"
16618 fi
16619 ac_res=`eval echo '${'$as_ac_Header'}'`
16620                { echo "$as_me:$LINENO: result: $ac_res" >&5
16621 echo "${ECHO_T}$ac_res" >&6; }
16622
16623 fi
16624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16625   cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16627 _ACEOF
16628
16629 fi
16630
16631 done
16632
16633 if test "$ENABLE_THREADS" -eq 1 ; then
16634
16635 for ac_header in pthread.h
16636 do
16637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16642   echo $ECHO_N "(cached) $ECHO_C" >&6
16643 fi
16644 ac_res=`eval echo '${'$as_ac_Header'}'`
16645                { echo "$as_me:$LINENO: result: $ac_res" >&5
16646 echo "${ECHO_T}$ac_res" >&6; }
16647 else
16648   # Is the header compilable?
16649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h.  */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h.  */
16657 $ac_includes_default
16658 #include <$ac_header>
16659 _ACEOF
16660 rm -f conftest.$ac_objext
16661 if { (ac_try="$ac_compile"
16662 case "(($ac_try" in
16663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664   *) ac_try_echo=$ac_try;;
16665 esac
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667   (eval "$ac_compile") 2>conftest.er1
16668   ac_status=$?
16669   grep -v '^ *+' conftest.er1 >conftest.err
16670   rm -f conftest.er1
16671   cat conftest.err >&5
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); } &&
16674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16675   { (case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680   (eval "$ac_try") 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; } &&
16684          { ac_try='test -s conftest.$ac_objext'
16685   { (case "(($ac_try" in
16686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687   *) ac_try_echo=$ac_try;;
16688 esac
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690   (eval "$ac_try") 2>&5
16691   ac_status=$?
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); }; }; then
16694   ac_header_compiler=yes
16695 else
16696   echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16698
16699         ac_header_compiler=no
16700 fi
16701
16702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16704 echo "${ECHO_T}$ac_header_compiler" >&6; }
16705
16706 # Is the header present?
16707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16709 cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h.  */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h.  */
16715 #include <$ac_header>
16716 _ACEOF
16717 if { (ac_try="$ac_cpp conftest.$ac_ext"
16718 case "(($ac_try" in
16719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720   *) ac_try_echo=$ac_try;;
16721 esac
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16724   ac_status=$?
16725   grep -v '^ *+' conftest.er1 >conftest.err
16726   rm -f conftest.er1
16727   cat conftest.err >&5
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); } >/dev/null; then
16730   if test -s conftest.err; then
16731     ac_cpp_err=$ac_c_preproc_warn_flag
16732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16733   else
16734     ac_cpp_err=
16735   fi
16736 else
16737   ac_cpp_err=yes
16738 fi
16739 if test -z "$ac_cpp_err"; then
16740   ac_header_preproc=yes
16741 else
16742   echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745   ac_header_preproc=no
16746 fi
16747
16748 rm -f conftest.err conftest.$ac_ext
16749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16750 echo "${ECHO_T}$ac_header_preproc" >&6; }
16751
16752 # So?  What about this header?
16753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16754   yes:no: )
16755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16759     ac_header_preproc=yes
16760     ;;
16761   no:yes:* )
16762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16774     ( cat <<\_ASBOX
16775 ## ----------------------------------- ##
16776 ## Report this to llvmbugs@cs.uiuc.edu ##
16777 ## ----------------------------------- ##
16778 _ASBOX
16779      ) | sed "s/^/$as_me: WARNING:     /" >&2
16780     ;;
16781 esac
16782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16785   echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787   eval "$as_ac_Header=\$ac_header_preproc"
16788 fi
16789 ac_res=`eval echo '${'$as_ac_Header'}'`
16790                { echo "$as_me:$LINENO: result: $ac_res" >&5
16791 echo "${ECHO_T}$ac_res" >&6; }
16792
16793 fi
16794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16795   cat >>confdefs.h <<_ACEOF
16796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16797 _ACEOF
16798  HAVE_PTHREAD=1
16799
16800 else
16801   HAVE_PTHREAD=0
16802
16803 fi
16804
16805 done
16806
16807 else
16808   HAVE_PTHREAD=0
16809
16810 fi
16811
16812 if test "$llvm_cv_enable_libffi" = "yes" ; then
16813
16814
16815 for ac_header in ffi.h ffi/ffi.h
16816 do
16817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16819   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 fi
16824 ac_res=`eval echo '${'$as_ac_Header'}'`
16825                { echo "$as_me:$LINENO: result: $ac_res" >&5
16826 echo "${ECHO_T}$ac_res" >&6; }
16827 else
16828   # Is the header compilable?
16829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16831 cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h.  */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h.  */
16837 $ac_includes_default
16838 #include <$ac_header>
16839 _ACEOF
16840 rm -f conftest.$ac_objext
16841 if { (ac_try="$ac_compile"
16842 case "(($ac_try" in
16843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844   *) ac_try_echo=$ac_try;;
16845 esac
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847   (eval "$ac_compile") 2>conftest.er1
16848   ac_status=$?
16849   grep -v '^ *+' conftest.er1 >conftest.err
16850   rm -f conftest.er1
16851   cat conftest.err >&5
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); } &&
16854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16855   { (case "(($ac_try" in
16856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857   *) ac_try_echo=$ac_try;;
16858 esac
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860   (eval "$ac_try") 2>&5
16861   ac_status=$?
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); }; } &&
16864          { ac_try='test -s conftest.$ac_objext'
16865   { (case "(($ac_try" in
16866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867   *) ac_try_echo=$ac_try;;
16868 esac
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870   (eval "$ac_try") 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); }; }; then
16874   ac_header_compiler=yes
16875 else
16876   echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879         ac_header_compiler=no
16880 fi
16881
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16884 echo "${ECHO_T}$ac_header_compiler" >&6; }
16885
16886 # Is the header present?
16887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16889 cat >conftest.$ac_ext <<_ACEOF
16890 /* confdefs.h.  */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h.  */
16895 #include <$ac_header>
16896 _ACEOF
16897 if { (ac_try="$ac_cpp conftest.$ac_ext"
16898 case "(($ac_try" in
16899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900   *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16904   ac_status=$?
16905   grep -v '^ *+' conftest.er1 >conftest.err
16906   rm -f conftest.er1
16907   cat conftest.err >&5
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); } >/dev/null; then
16910   if test -s conftest.err; then
16911     ac_cpp_err=$ac_c_preproc_warn_flag
16912     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16913   else
16914     ac_cpp_err=
16915   fi
16916 else
16917   ac_cpp_err=yes
16918 fi
16919 if test -z "$ac_cpp_err"; then
16920   ac_header_preproc=yes
16921 else
16922   echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925   ac_header_preproc=no
16926 fi
16927
16928 rm -f conftest.err conftest.$ac_ext
16929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16930 echo "${ECHO_T}$ac_header_preproc" >&6; }
16931
16932 # So?  What about this header?
16933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16934   yes:no: )
16935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16939     ac_header_preproc=yes
16940     ;;
16941   no:yes:* )
16942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16944     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16945 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16946     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16948     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16949 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16952     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16954     ( cat <<\_ASBOX
16955 ## ----------------------------------- ##
16956 ## Report this to llvmbugs@cs.uiuc.edu ##
16957 ## ----------------------------------- ##
16958 _ASBOX
16959      ) | sed "s/^/$as_me: WARNING:     /" >&2
16960     ;;
16961 esac
16962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16965   echo $ECHO_N "(cached) $ECHO_C" >&6
16966 else
16967   eval "$as_ac_Header=\$ac_header_preproc"
16968 fi
16969 ac_res=`eval echo '${'$as_ac_Header'}'`
16970                { echo "$as_me:$LINENO: result: $ac_res" >&5
16971 echo "${ECHO_T}$ac_res" >&6; }
16972
16973 fi
16974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16975   cat >>confdefs.h <<_ACEOF
16976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16977 _ACEOF
16978
16979 fi
16980
16981 done
16982
16983 fi
16984
16985
16986 for ac_header in CrashReporterClient.h
16987 do
16988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16990   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16993   echo $ECHO_N "(cached) $ECHO_C" >&6
16994 fi
16995 ac_res=`eval echo '${'$as_ac_Header'}'`
16996                { echo "$as_me:$LINENO: result: $ac_res" >&5
16997 echo "${ECHO_T}$ac_res" >&6; }
16998 else
16999   # Is the header compilable?
17000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h.  */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h.  */
17008 $ac_includes_default
17009 #include <$ac_header>
17010 _ACEOF
17011 rm -f conftest.$ac_objext
17012 if { (ac_try="$ac_compile"
17013 case "(($ac_try" in
17014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015   *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018   (eval "$ac_compile") 2>conftest.er1
17019   ac_status=$?
17020   grep -v '^ *+' conftest.er1 >conftest.err
17021   rm -f conftest.er1
17022   cat conftest.err >&5
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } &&
17025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17026   { (case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_try") 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; } &&
17035          { ac_try='test -s conftest.$ac_objext'
17036   { (case "(($ac_try" in
17037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038   *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041   (eval "$ac_try") 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; }; then
17045   ac_header_compiler=yes
17046 else
17047   echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050         ac_header_compiler=no
17051 fi
17052
17053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17055 echo "${ECHO_T}$ac_header_compiler" >&6; }
17056
17057 # Is the header present?
17058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h.  */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h.  */
17066 #include <$ac_header>
17067 _ACEOF
17068 if { (ac_try="$ac_cpp conftest.$ac_ext"
17069 case "(($ac_try" in
17070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071   *) ac_try_echo=$ac_try;;
17072 esac
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17075   ac_status=$?
17076   grep -v '^ *+' conftest.er1 >conftest.err
17077   rm -f conftest.er1
17078   cat conftest.err >&5
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); } >/dev/null; then
17081   if test -s conftest.err; then
17082     ac_cpp_err=$ac_c_preproc_warn_flag
17083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17084   else
17085     ac_cpp_err=
17086   fi
17087 else
17088   ac_cpp_err=yes
17089 fi
17090 if test -z "$ac_cpp_err"; then
17091   ac_header_preproc=yes
17092 else
17093   echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17095
17096   ac_header_preproc=no
17097 fi
17098
17099 rm -f conftest.err conftest.$ac_ext
17100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17101 echo "${ECHO_T}$ac_header_preproc" >&6; }
17102
17103 # So?  What about this header?
17104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17105   yes:no: )
17106     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17110     ac_header_preproc=yes
17111     ;;
17112   no:yes:* )
17113     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17115     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17116 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17117     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17119     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17120 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17123     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17125     ( cat <<\_ASBOX
17126 ## ----------------------------------- ##
17127 ## Report this to llvmbugs@cs.uiuc.edu ##
17128 ## ----------------------------------- ##
17129 _ASBOX
17130      ) | sed "s/^/$as_me: WARNING:     /" >&2
17131     ;;
17132 esac
17133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17136   echo $ECHO_N "(cached) $ECHO_C" >&6
17137 else
17138   eval "$as_ac_Header=\$ac_header_preproc"
17139 fi
17140 ac_res=`eval echo '${'$as_ac_Header'}'`
17141                { echo "$as_me:$LINENO: result: $ac_res" >&5
17142 echo "${ECHO_T}$ac_res" >&6; }
17143
17144 fi
17145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17146   cat >>confdefs.h <<_ACEOF
17147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17148 _ACEOF
17149
17150 fi
17151
17152 done
17153
17154
17155
17156 for ac_header in mach-o/getsect.h
17157 do
17158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17163   echo $ECHO_N "(cached) $ECHO_C" >&6
17164 fi
17165 ac_res=`eval echo '${'$as_ac_Header'}'`
17166                { echo "$as_me:$LINENO: result: $ac_res" >&5
17167 echo "${ECHO_T}$ac_res" >&6; }
17168 else
17169   # Is the header compilable?
17170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17172 cat >conftest.$ac_ext <<_ACEOF
17173 /* confdefs.h.  */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h.  */
17178 $ac_includes_default
17179 #include <$ac_header>
17180 _ACEOF
17181 rm -f conftest.$ac_objext
17182 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17189   ac_status=$?
17190   grep -v '^ *+' conftest.er1 >conftest.err
17191   rm -f conftest.er1
17192   cat conftest.err >&5
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); } &&
17195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196   { (case "(($ac_try" in
17197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198   *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201   (eval "$ac_try") 2>&5
17202   ac_status=$?
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); }; } &&
17205          { ac_try='test -s conftest.$ac_objext'
17206   { (case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_try") 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); }; }; then
17215   ac_header_compiler=yes
17216 else
17217   echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17219
17220         ac_header_compiler=no
17221 fi
17222
17223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17225 echo "${ECHO_T}$ac_header_compiler" >&6; }
17226
17227 # Is the header present?
17228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17230 cat >conftest.$ac_ext <<_ACEOF
17231 /* confdefs.h.  */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h.  */
17236 #include <$ac_header>
17237 _ACEOF
17238 if { (ac_try="$ac_cpp conftest.$ac_ext"
17239 case "(($ac_try" in
17240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241   *) ac_try_echo=$ac_try;;
17242 esac
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17245   ac_status=$?
17246   grep -v '^ *+' conftest.er1 >conftest.err
17247   rm -f conftest.er1
17248   cat conftest.err >&5
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); } >/dev/null; then
17251   if test -s conftest.err; then
17252     ac_cpp_err=$ac_c_preproc_warn_flag
17253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17254   else
17255     ac_cpp_err=
17256   fi
17257 else
17258   ac_cpp_err=yes
17259 fi
17260 if test -z "$ac_cpp_err"; then
17261   ac_header_preproc=yes
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266   ac_header_preproc=no
17267 fi
17268
17269 rm -f conftest.err conftest.$ac_ext
17270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17271 echo "${ECHO_T}$ac_header_preproc" >&6; }
17272
17273 # So?  What about this header?
17274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17275   yes:no: )
17276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17280     ac_header_preproc=yes
17281     ;;
17282   no:yes:* )
17283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17295     ( cat <<\_ASBOX
17296 ## ----------------------------------- ##
17297 ## Report this to llvmbugs@cs.uiuc.edu ##
17298 ## ----------------------------------- ##
17299 _ASBOX
17300      ) | sed "s/^/$as_me: WARNING:     /" >&2
17301     ;;
17302 esac
17303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17306   echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17308   eval "$as_ac_Header=\$ac_header_preproc"
17309 fi
17310 ac_res=`eval echo '${'$as_ac_Header'}'`
17311                { echo "$as_me:$LINENO: result: $ac_res" >&5
17312 echo "${ECHO_T}$ac_res" >&6; }
17313
17314 fi
17315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17316   cat >>confdefs.h <<_ACEOF
17317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17318 _ACEOF
17319
17320 fi
17321
17322 done
17323
17324
17325
17326
17327
17328   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17329 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17330 if test "${ac_cv_huge_val_sanity+set}" = set; then
17331   echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333
17334     ac_ext=cpp
17335 ac_cpp='$CXXCPP $CPPFLAGS'
17336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17339
17340     ac_save_CXXFLAGS=$CXXFLAGS
17341     CXXFLAGS=-pedantic
17342     if test "$cross_compiling" = yes; then
17343   ac_cv_huge_val_sanity=yes
17344 else
17345   cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h.  */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h.  */
17351 #include <math.h>
17352 int
17353 main ()
17354 {
17355 double x = HUGE_VAL; return x != x;
17356   ;
17357   return 0;
17358 }
17359 _ACEOF
17360 rm -f conftest$ac_exeext
17361 if { (ac_try="$ac_link"
17362 case "(($ac_try" in
17363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364   *) ac_try_echo=$ac_try;;
17365 esac
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367   (eval "$ac_link") 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17371   { (case "(($ac_try" in
17372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373   *) ac_try_echo=$ac_try;;
17374 esac
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376   (eval "$ac_try") 2>&5
17377   ac_status=$?
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); }; }; then
17380   ac_cv_huge_val_sanity=yes
17381 else
17382   echo "$as_me: program exited with status $ac_status" >&5
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17385
17386 ( exit $ac_status )
17387 ac_cv_huge_val_sanity=no
17388 fi
17389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17390 fi
17391
17392
17393     CXXFLAGS=$ac_save_CXXFLAGS
17394     ac_ext=c
17395 ac_cpp='$CPP $CPPFLAGS'
17396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17399
17400
17401 fi
17402 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17403 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17404   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17405
17406
17407 { echo "$as_me:$LINENO: checking for pid_t" >&5
17408 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17409 if test "${ac_cv_type_pid_t+set}" = set; then
17410   echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412   cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h.  */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h.  */
17418 $ac_includes_default
17419 typedef pid_t ac__type_new_;
17420 int
17421 main ()
17422 {
17423 if ((ac__type_new_ *) 0)
17424   return 0;
17425 if (sizeof (ac__type_new_))
17426   return 0;
17427   ;
17428   return 0;
17429 }
17430 _ACEOF
17431 rm -f conftest.$ac_objext
17432 if { (ac_try="$ac_compile"
17433 case "(($ac_try" in
17434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435   *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438   (eval "$ac_compile") 2>conftest.er1
17439   ac_status=$?
17440   grep -v '^ *+' conftest.er1 >conftest.err
17441   rm -f conftest.er1
17442   cat conftest.err >&5
17443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444   (exit $ac_status); } &&
17445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17446   { (case "(($ac_try" in
17447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448   *) ac_try_echo=$ac_try;;
17449 esac
17450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451   (eval "$ac_try") 2>&5
17452   ac_status=$?
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); }; } &&
17455          { ac_try='test -s conftest.$ac_objext'
17456   { (case "(($ac_try" in
17457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458   *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461   (eval "$ac_try") 2>&5
17462   ac_status=$?
17463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); }; }; then
17465   ac_cv_type_pid_t=yes
17466 else
17467   echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17469
17470         ac_cv_type_pid_t=no
17471 fi
17472
17473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17474 fi
17475 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17476 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17477 if test $ac_cv_type_pid_t = yes; then
17478   :
17479 else
17480
17481 cat >>confdefs.h <<_ACEOF
17482 #define pid_t int
17483 _ACEOF
17484
17485 fi
17486
17487 { echo "$as_me:$LINENO: checking for size_t" >&5
17488 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17489 if test "${ac_cv_type_size_t+set}" = set; then
17490   echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492   cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h.  */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h.  */
17498 $ac_includes_default
17499 typedef size_t ac__type_new_;
17500 int
17501 main ()
17502 {
17503 if ((ac__type_new_ *) 0)
17504   return 0;
17505 if (sizeof (ac__type_new_))
17506   return 0;
17507   ;
17508   return 0;
17509 }
17510 _ACEOF
17511 rm -f conftest.$ac_objext
17512 if { (ac_try="$ac_compile"
17513 case "(($ac_try" in
17514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515   *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518   (eval "$ac_compile") 2>conftest.er1
17519   ac_status=$?
17520   grep -v '^ *+' conftest.er1 >conftest.err
17521   rm -f conftest.er1
17522   cat conftest.err >&5
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); } &&
17525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17526   { (case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531   (eval "$ac_try") 2>&5
17532   ac_status=$?
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); }; } &&
17535          { ac_try='test -s conftest.$ac_objext'
17536   { (case "(($ac_try" in
17537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538   *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541   (eval "$ac_try") 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; }; then
17545   ac_cv_type_size_t=yes
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550         ac_cv_type_size_t=no
17551 fi
17552
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554 fi
17555 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17556 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17557 if test $ac_cv_type_size_t = yes; then
17558   :
17559 else
17560
17561 cat >>confdefs.h <<_ACEOF
17562 #define size_t unsigned int
17563 _ACEOF
17564
17565 fi
17566
17567
17568 cat >>confdefs.h <<_ACEOF
17569 #define RETSIGTYPE void
17570 _ACEOF
17571
17572 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17573 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17574 if test "${ac_cv_struct_tm+set}" = set; then
17575   echo $ECHO_N "(cached) $ECHO_C" >&6
17576 else
17577   cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583 #include <sys/types.h>
17584 #include <time.h>
17585
17586 int
17587 main ()
17588 {
17589 struct tm *tp; tp->tm_sec;
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext
17595 if { (ac_try="$ac_compile"
17596 case "(($ac_try" in
17597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598   *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601   (eval "$ac_compile") 2>conftest.er1
17602   ac_status=$?
17603   grep -v '^ *+' conftest.er1 >conftest.err
17604   rm -f conftest.er1
17605   cat conftest.err >&5
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); } &&
17608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17609   { (case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614   (eval "$ac_try") 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; } &&
17618          { ac_try='test -s conftest.$ac_objext'
17619   { (case "(($ac_try" in
17620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621   *) ac_try_echo=$ac_try;;
17622 esac
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624   (eval "$ac_try") 2>&5
17625   ac_status=$?
17626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627   (exit $ac_status); }; }; then
17628   ac_cv_struct_tm=time.h
17629 else
17630   echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17632
17633         ac_cv_struct_tm=sys/time.h
17634 fi
17635
17636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17637 fi
17638 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17639 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17640 if test $ac_cv_struct_tm = sys/time.h; then
17641
17642 cat >>confdefs.h <<\_ACEOF
17643 #define TM_IN_SYS_TIME 1
17644 _ACEOF
17645
17646 fi
17647
17648 { echo "$as_me:$LINENO: checking for int64_t" >&5
17649 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17650 if test "${ac_cv_type_int64_t+set}" = set; then
17651   echo $ECHO_N "(cached) $ECHO_C" >&6
17652 else
17653   cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h.  */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h.  */
17659 $ac_includes_default
17660 typedef int64_t ac__type_new_;
17661 int
17662 main ()
17663 {
17664 if ((ac__type_new_ *) 0)
17665   return 0;
17666 if (sizeof (ac__type_new_))
17667   return 0;
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 rm -f conftest.$ac_objext
17673 if { (ac_try="$ac_compile"
17674 case "(($ac_try" in
17675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676   *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679   (eval "$ac_compile") 2>conftest.er1
17680   ac_status=$?
17681   grep -v '^ *+' conftest.er1 >conftest.err
17682   rm -f conftest.er1
17683   cat conftest.err >&5
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } &&
17686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17687   { (case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_try") 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; } &&
17696          { ac_try='test -s conftest.$ac_objext'
17697   { (case "(($ac_try" in
17698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699   *) ac_try_echo=$ac_try;;
17700 esac
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702   (eval "$ac_try") 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; }; then
17706   ac_cv_type_int64_t=yes
17707 else
17708   echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711         ac_cv_type_int64_t=no
17712 fi
17713
17714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715 fi
17716 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17717 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17718 if test $ac_cv_type_int64_t = yes; then
17719
17720 cat >>confdefs.h <<_ACEOF
17721 #define HAVE_INT64_T 1
17722 _ACEOF
17723
17724
17725 else
17726   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17727 echo "$as_me: error: Type int64_t required but not found" >&2;}
17728    { (exit 1); exit 1; }; }
17729 fi
17730
17731 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17732 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17733 if test "${ac_cv_type_uint64_t+set}" = set; then
17734   echo $ECHO_N "(cached) $ECHO_C" >&6
17735 else
17736   cat >conftest.$ac_ext <<_ACEOF
17737 /* confdefs.h.  */
17738 _ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h.  */
17742 $ac_includes_default
17743 typedef uint64_t ac__type_new_;
17744 int
17745 main ()
17746 {
17747 if ((ac__type_new_ *) 0)
17748   return 0;
17749 if (sizeof (ac__type_new_))
17750   return 0;
17751   ;
17752   return 0;
17753 }
17754 _ACEOF
17755 rm -f conftest.$ac_objext
17756 if { (ac_try="$ac_compile"
17757 case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_compile") 2>conftest.er1
17763   ac_status=$?
17764   grep -v '^ *+' conftest.er1 >conftest.err
17765   rm -f conftest.er1
17766   cat conftest.err >&5
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); } &&
17769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17770   { (case "(($ac_try" in
17771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772   *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775   (eval "$ac_try") 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); }; } &&
17779          { ac_try='test -s conftest.$ac_objext'
17780   { (case "(($ac_try" in
17781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782   *) ac_try_echo=$ac_try;;
17783 esac
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785   (eval "$ac_try") 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; }; then
17789   ac_cv_type_uint64_t=yes
17790 else
17791   echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17793
17794         ac_cv_type_uint64_t=no
17795 fi
17796
17797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17798 fi
17799 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17800 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17801 if test $ac_cv_type_uint64_t = yes; then
17802
17803 cat >>confdefs.h <<_ACEOF
17804 #define HAVE_UINT64_T 1
17805 _ACEOF
17806
17807
17808 else
17809   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17810 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17811 if test "${ac_cv_type_u_int64_t+set}" = set; then
17812   echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17814   cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h.  */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h.  */
17820 $ac_includes_default
17821 typedef u_int64_t ac__type_new_;
17822 int
17823 main ()
17824 {
17825 if ((ac__type_new_ *) 0)
17826   return 0;
17827 if (sizeof (ac__type_new_))
17828   return 0;
17829   ;
17830   return 0;
17831 }
17832 _ACEOF
17833 rm -f conftest.$ac_objext
17834 if { (ac_try="$ac_compile"
17835 case "(($ac_try" in
17836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837   *) ac_try_echo=$ac_try;;
17838 esac
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840   (eval "$ac_compile") 2>conftest.er1
17841   ac_status=$?
17842   grep -v '^ *+' conftest.er1 >conftest.err
17843   rm -f conftest.er1
17844   cat conftest.err >&5
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); } &&
17847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17848   { (case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853   (eval "$ac_try") 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; } &&
17857          { ac_try='test -s conftest.$ac_objext'
17858   { (case "(($ac_try" in
17859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860   *) ac_try_echo=$ac_try;;
17861 esac
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863   (eval "$ac_try") 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); }; }; then
17867   ac_cv_type_u_int64_t=yes
17868 else
17869   echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872         ac_cv_type_u_int64_t=no
17873 fi
17874
17875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876 fi
17877 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17878 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17879 if test $ac_cv_type_u_int64_t = yes; then
17880
17881 cat >>confdefs.h <<_ACEOF
17882 #define HAVE_U_INT64_T 1
17883 _ACEOF
17884
17885
17886 else
17887   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17888 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17889    { (exit 1); exit 1; }; }
17890 fi
17891
17892 fi
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17904 do
17905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17906 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17908 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17909   echo $ECHO_N "(cached) $ECHO_C" >&6
17910 else
17911   cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h.  */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h.  */
17917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17919 #define $ac_func innocuous_$ac_func
17920
17921 /* System header to define __stub macros and hopefully few prototypes,
17922     which can conflict with char $ac_func (); below.
17923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17924     <limits.h> exists even on freestanding compilers.  */
17925
17926 #ifdef __STDC__
17927 # include <limits.h>
17928 #else
17929 # include <assert.h>
17930 #endif
17931
17932 #undef $ac_func
17933
17934 /* Override any GCC internal prototype to avoid an error.
17935    Use char because int might match the return type of a GCC
17936    builtin and then its argument prototype would still apply.  */
17937 #ifdef __cplusplus
17938 extern "C"
17939 #endif
17940 char $ac_func ();
17941 /* The GNU C library defines this for functions which it implements
17942     to always fail with ENOSYS.  Some functions are actually named
17943     something starting with __ and the normal name is an alias.  */
17944 #if defined __stub_$ac_func || defined __stub___$ac_func
17945 choke me
17946 #endif
17947
17948 int
17949 main ()
17950 {
17951 return $ac_func ();
17952   ;
17953   return 0;
17954 }
17955 _ACEOF
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (ac_try="$ac_link"
17958 case "(($ac_try" in
17959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960   *) ac_try_echo=$ac_try;;
17961 esac
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963   (eval "$ac_link") 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } &&
17970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17971   { (case "(($ac_try" in
17972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973   *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976   (eval "$ac_try") 2>&5
17977   ac_status=$?
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); }; } &&
17980          { ac_try='test -s conftest$ac_exeext'
17981   { (case "(($ac_try" in
17982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983   *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986   (eval "$ac_try") 2>&5
17987   ac_status=$?
17988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); }; }; then
17990   eval "$as_ac_var=yes"
17991 else
17992   echo "$as_me: failed program was:" >&5
17993 sed 's/^/| /' conftest.$ac_ext >&5
17994
17995         eval "$as_ac_var=no"
17996 fi
17997
17998 rm -f core conftest.err conftest.$ac_objext \
17999       conftest$ac_exeext conftest.$ac_ext
18000 fi
18001 ac_res=`eval echo '${'$as_ac_var'}'`
18002                { echo "$as_me:$LINENO: result: $ac_res" >&5
18003 echo "${ECHO_T}$ac_res" >&6; }
18004 if test `eval echo '${'$as_ac_var'}'` = yes; then
18005   cat >>confdefs.h <<_ACEOF
18006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18007 _ACEOF
18008
18009 fi
18010 done
18011
18012
18013
18014
18015
18016 for ac_func in powf fmodf strtof round
18017 do
18018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18022   echo $ECHO_N "(cached) $ECHO_C" >&6
18023 else
18024   cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h.  */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h.  */
18030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18032 #define $ac_func innocuous_$ac_func
18033
18034 /* System header to define __stub macros and hopefully few prototypes,
18035     which can conflict with char $ac_func (); below.
18036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037     <limits.h> exists even on freestanding compilers.  */
18038
18039 #ifdef __STDC__
18040 # include <limits.h>
18041 #else
18042 # include <assert.h>
18043 #endif
18044
18045 #undef $ac_func
18046
18047 /* Override any GCC internal prototype to avoid an error.
18048    Use char because int might match the return type of a GCC
18049    builtin and then its argument prototype would still apply.  */
18050 #ifdef __cplusplus
18051 extern "C"
18052 #endif
18053 char $ac_func ();
18054 /* The GNU C library defines this for functions which it implements
18055     to always fail with ENOSYS.  Some functions are actually named
18056     something starting with __ and the normal name is an alias.  */
18057 #if defined __stub_$ac_func || defined __stub___$ac_func
18058 choke me
18059 #endif
18060
18061 int
18062 main ()
18063 {
18064 return $ac_func ();
18065   ;
18066   return 0;
18067 }
18068 _ACEOF
18069 rm -f conftest.$ac_objext conftest$ac_exeext
18070 if { (ac_try="$ac_link"
18071 case "(($ac_try" in
18072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073   *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076   (eval "$ac_link") 2>conftest.er1
18077   ac_status=$?
18078   grep -v '^ *+' conftest.er1 >conftest.err
18079   rm -f conftest.er1
18080   cat conftest.err >&5
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); } &&
18083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18084   { (case "(($ac_try" in
18085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086   *) ac_try_echo=$ac_try;;
18087 esac
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089   (eval "$ac_try") 2>&5
18090   ac_status=$?
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); }; } &&
18093          { ac_try='test -s conftest$ac_exeext'
18094   { (case "(($ac_try" in
18095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096   *) ac_try_echo=$ac_try;;
18097 esac
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099   (eval "$ac_try") 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); }; }; then
18103   eval "$as_ac_var=yes"
18104 else
18105   echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108         eval "$as_ac_var=no"
18109 fi
18110
18111 rm -f core conftest.err conftest.$ac_objext \
18112       conftest$ac_exeext conftest.$ac_ext
18113 fi
18114 ac_res=`eval echo '${'$as_ac_var'}'`
18115                { echo "$as_me:$LINENO: result: $ac_res" >&5
18116 echo "${ECHO_T}$ac_res" >&6; }
18117 if test `eval echo '${'$as_ac_var'}'` = yes; then
18118   cat >>confdefs.h <<_ACEOF
18119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18120 _ACEOF
18121
18122 fi
18123 done
18124
18125
18126
18127
18128
18129
18130 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18131 do
18132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18136   echo $ECHO_N "(cached) $ECHO_C" >&6
18137 else
18138   cat >conftest.$ac_ext <<_ACEOF
18139 /* confdefs.h.  */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h.  */
18144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18146 #define $ac_func innocuous_$ac_func
18147
18148 /* System header to define __stub macros and hopefully few prototypes,
18149     which can conflict with char $ac_func (); below.
18150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18151     <limits.h> exists even on freestanding compilers.  */
18152
18153 #ifdef __STDC__
18154 # include <limits.h>
18155 #else
18156 # include <assert.h>
18157 #endif
18158
18159 #undef $ac_func
18160
18161 /* Override any GCC internal prototype to avoid an error.
18162    Use char because int might match the return type of a GCC
18163    builtin and then its argument prototype would still apply.  */
18164 #ifdef __cplusplus
18165 extern "C"
18166 #endif
18167 char $ac_func ();
18168 /* The GNU C library defines this for functions which it implements
18169     to always fail with ENOSYS.  Some functions are actually named
18170     something starting with __ and the normal name is an alias.  */
18171 #if defined __stub_$ac_func || defined __stub___$ac_func
18172 choke me
18173 #endif
18174
18175 int
18176 main ()
18177 {
18178 return $ac_func ();
18179   ;
18180   return 0;
18181 }
18182 _ACEOF
18183 rm -f conftest.$ac_objext conftest$ac_exeext
18184 if { (ac_try="$ac_link"
18185 case "(($ac_try" in
18186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187   *) ac_try_echo=$ac_try;;
18188 esac
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190   (eval "$ac_link") 2>conftest.er1
18191   ac_status=$?
18192   grep -v '^ *+' conftest.er1 >conftest.err
18193   rm -f conftest.er1
18194   cat conftest.err >&5
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); } &&
18197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18198   { (case "(($ac_try" in
18199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200   *) ac_try_echo=$ac_try;;
18201 esac
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203   (eval "$ac_try") 2>&5
18204   ac_status=$?
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); }; } &&
18207          { ac_try='test -s conftest$ac_exeext'
18208   { (case "(($ac_try" in
18209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210   *) ac_try_echo=$ac_try;;
18211 esac
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213   (eval "$ac_try") 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); }; }; then
18217   eval "$as_ac_var=yes"
18218 else
18219   echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18221
18222         eval "$as_ac_var=no"
18223 fi
18224
18225 rm -f core conftest.err conftest.$ac_objext \
18226       conftest$ac_exeext conftest.$ac_ext
18227 fi
18228 ac_res=`eval echo '${'$as_ac_var'}'`
18229                { echo "$as_me:$LINENO: result: $ac_res" >&5
18230 echo "${ECHO_T}$ac_res" >&6; }
18231 if test `eval echo '${'$as_ac_var'}'` = yes; then
18232   cat >>confdefs.h <<_ACEOF
18233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18234 _ACEOF
18235
18236 fi
18237 done
18238
18239
18240
18241
18242 for ac_func in isatty mkdtemp mkstemp
18243 do
18244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18248   echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250   cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h.  */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h.  */
18256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18258 #define $ac_func innocuous_$ac_func
18259
18260 /* System header to define __stub macros and hopefully few prototypes,
18261     which can conflict with char $ac_func (); below.
18262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18263     <limits.h> exists even on freestanding compilers.  */
18264
18265 #ifdef __STDC__
18266 # include <limits.h>
18267 #else
18268 # include <assert.h>
18269 #endif
18270
18271 #undef $ac_func
18272
18273 /* Override any GCC internal prototype to avoid an error.
18274    Use char because int might match the return type of a GCC
18275    builtin and then its argument prototype would still apply.  */
18276 #ifdef __cplusplus
18277 extern "C"
18278 #endif
18279 char $ac_func ();
18280 /* The GNU C library defines this for functions which it implements
18281     to always fail with ENOSYS.  Some functions are actually named
18282     something starting with __ and the normal name is an alias.  */
18283 #if defined __stub_$ac_func || defined __stub___$ac_func
18284 choke me
18285 #endif
18286
18287 int
18288 main ()
18289 {
18290 return $ac_func ();
18291   ;
18292   return 0;
18293 }
18294 _ACEOF
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (ac_try="$ac_link"
18297 case "(($ac_try" in
18298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299   *) ac_try_echo=$ac_try;;
18300 esac
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302   (eval "$ac_link") 2>conftest.er1
18303   ac_status=$?
18304   grep -v '^ *+' conftest.er1 >conftest.err
18305   rm -f conftest.er1
18306   cat conftest.err >&5
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); } &&
18309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18310   { (case "(($ac_try" in
18311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312   *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315   (eval "$ac_try") 2>&5
18316   ac_status=$?
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); }; } &&
18319          { ac_try='test -s conftest$ac_exeext'
18320   { (case "(($ac_try" in
18321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322   *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325   (eval "$ac_try") 2>&5
18326   ac_status=$?
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); }; }; then
18329   eval "$as_ac_var=yes"
18330 else
18331   echo "$as_me: failed program was:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18333
18334         eval "$as_ac_var=no"
18335 fi
18336
18337 rm -f core conftest.err conftest.$ac_objext \
18338       conftest$ac_exeext conftest.$ac_ext
18339 fi
18340 ac_res=`eval echo '${'$as_ac_var'}'`
18341                { echo "$as_me:$LINENO: result: $ac_res" >&5
18342 echo "${ECHO_T}$ac_res" >&6; }
18343 if test `eval echo '${'$as_ac_var'}'` = yes; then
18344   cat >>confdefs.h <<_ACEOF
18345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18346 _ACEOF
18347
18348 fi
18349 done
18350
18351
18352
18353
18354
18355
18356
18357 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18358 do
18359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18363   echo $ECHO_N "(cached) $ECHO_C" >&6
18364 else
18365   cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h.  */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h.  */
18371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18373 #define $ac_func innocuous_$ac_func
18374
18375 /* System header to define __stub macros and hopefully few prototypes,
18376     which can conflict with char $ac_func (); below.
18377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18378     <limits.h> exists even on freestanding compilers.  */
18379
18380 #ifdef __STDC__
18381 # include <limits.h>
18382 #else
18383 # include <assert.h>
18384 #endif
18385
18386 #undef $ac_func
18387
18388 /* Override any GCC internal prototype to avoid an error.
18389    Use char because int might match the return type of a GCC
18390    builtin and then its argument prototype would still apply.  */
18391 #ifdef __cplusplus
18392 extern "C"
18393 #endif
18394 char $ac_func ();
18395 /* The GNU C library defines this for functions which it implements
18396     to always fail with ENOSYS.  Some functions are actually named
18397     something starting with __ and the normal name is an alias.  */
18398 #if defined __stub_$ac_func || defined __stub___$ac_func
18399 choke me
18400 #endif
18401
18402 int
18403 main ()
18404 {
18405 return $ac_func ();
18406   ;
18407   return 0;
18408 }
18409 _ACEOF
18410 rm -f conftest.$ac_objext conftest$ac_exeext
18411 if { (ac_try="$ac_link"
18412 case "(($ac_try" in
18413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414   *) ac_try_echo=$ac_try;;
18415 esac
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417   (eval "$ac_link") 2>conftest.er1
18418   ac_status=$?
18419   grep -v '^ *+' conftest.er1 >conftest.err
18420   rm -f conftest.er1
18421   cat conftest.err >&5
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); } &&
18424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18425   { (case "(($ac_try" in
18426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18427   *) ac_try_echo=$ac_try;;
18428 esac
18429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18430   (eval "$ac_try") 2>&5
18431   ac_status=$?
18432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); }; } &&
18434          { ac_try='test -s conftest$ac_exeext'
18435   { (case "(($ac_try" in
18436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437   *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440   (eval "$ac_try") 2>&5
18441   ac_status=$?
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); }; }; then
18444   eval "$as_ac_var=yes"
18445 else
18446   echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449         eval "$as_ac_var=no"
18450 fi
18451
18452 rm -f core conftest.err conftest.$ac_objext \
18453       conftest$ac_exeext conftest.$ac_ext
18454 fi
18455 ac_res=`eval echo '${'$as_ac_var'}'`
18456                { echo "$as_me:$LINENO: result: $ac_res" >&5
18457 echo "${ECHO_T}$ac_res" >&6; }
18458 if test `eval echo '${'$as_ac_var'}'` = yes; then
18459   cat >>confdefs.h <<_ACEOF
18460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18461 _ACEOF
18462
18463 fi
18464 done
18465
18466
18467
18468
18469
18470 for ac_func in strerror strerror_r strerror_s setenv
18471 do
18472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18476   echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478   cat >conftest.$ac_ext <<_ACEOF
18479 /* confdefs.h.  */
18480 _ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h.  */
18484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18486 #define $ac_func innocuous_$ac_func
18487
18488 /* System header to define __stub macros and hopefully few prototypes,
18489     which can conflict with char $ac_func (); below.
18490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18491     <limits.h> exists even on freestanding compilers.  */
18492
18493 #ifdef __STDC__
18494 # include <limits.h>
18495 #else
18496 # include <assert.h>
18497 #endif
18498
18499 #undef $ac_func
18500
18501 /* Override any GCC internal prototype to avoid an error.
18502    Use char because int might match the return type of a GCC
18503    builtin and then its argument prototype would still apply.  */
18504 #ifdef __cplusplus
18505 extern "C"
18506 #endif
18507 char $ac_func ();
18508 /* The GNU C library defines this for functions which it implements
18509     to always fail with ENOSYS.  Some functions are actually named
18510     something starting with __ and the normal name is an alias.  */
18511 #if defined __stub_$ac_func || defined __stub___$ac_func
18512 choke me
18513 #endif
18514
18515 int
18516 main ()
18517 {
18518 return $ac_func ();
18519   ;
18520   return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527   *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530   (eval "$ac_link") 2>conftest.er1
18531   ac_status=$?
18532   grep -v '^ *+' conftest.er1 >conftest.err
18533   rm -f conftest.er1
18534   cat conftest.err >&5
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } &&
18537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18538   { (case "(($ac_try" in
18539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540   *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543   (eval "$ac_try") 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; } &&
18547          { ac_try='test -s conftest$ac_exeext'
18548   { (case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_try") 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; }; then
18557   eval "$as_ac_var=yes"
18558 else
18559   echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18561
18562         eval "$as_ac_var=no"
18563 fi
18564
18565 rm -f core conftest.err conftest.$ac_objext \
18566       conftest$ac_exeext conftest.$ac_ext
18567 fi
18568 ac_res=`eval echo '${'$as_ac_var'}'`
18569                { echo "$as_me:$LINENO: result: $ac_res" >&5
18570 echo "${ECHO_T}$ac_res" >&6; }
18571 if test `eval echo '${'$as_ac_var'}'` = yes; then
18572   cat >>confdefs.h <<_ACEOF
18573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18574 _ACEOF
18575
18576 fi
18577 done
18578
18579
18580
18581
18582
18583 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18584 do
18585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18589   echo $ECHO_N "(cached) $ECHO_C" >&6
18590 else
18591   cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18599 #define $ac_func innocuous_$ac_func
18600
18601 /* System header to define __stub macros and hopefully few prototypes,
18602     which can conflict with char $ac_func (); below.
18603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18604     <limits.h> exists even on freestanding compilers.  */
18605
18606 #ifdef __STDC__
18607 # include <limits.h>
18608 #else
18609 # include <assert.h>
18610 #endif
18611
18612 #undef $ac_func
18613
18614 /* Override any GCC internal prototype to avoid an error.
18615    Use char because int might match the return type of a GCC
18616    builtin and then its argument prototype would still apply.  */
18617 #ifdef __cplusplus
18618 extern "C"
18619 #endif
18620 char $ac_func ();
18621 /* The GNU C library defines this for functions which it implements
18622     to always fail with ENOSYS.  Some functions are actually named
18623     something starting with __ and the normal name is an alias.  */
18624 #if defined __stub_$ac_func || defined __stub___$ac_func
18625 choke me
18626 #endif
18627
18628 int
18629 main ()
18630 {
18631 return $ac_func ();
18632   ;
18633   return 0;
18634 }
18635 _ACEOF
18636 rm -f conftest.$ac_objext conftest$ac_exeext
18637 if { (ac_try="$ac_link"
18638 case "(($ac_try" in
18639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640   *) ac_try_echo=$ac_try;;
18641 esac
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643   (eval "$ac_link") 2>conftest.er1
18644   ac_status=$?
18645   grep -v '^ *+' conftest.er1 >conftest.err
18646   rm -f conftest.er1
18647   cat conftest.err >&5
18648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649   (exit $ac_status); } &&
18650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18651   { (case "(($ac_try" in
18652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653   *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656   (eval "$ac_try") 2>&5
18657   ac_status=$?
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); }; } &&
18660          { ac_try='test -s conftest$ac_exeext'
18661   { (case "(($ac_try" in
18662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663   *) ac_try_echo=$ac_try;;
18664 esac
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666   (eval "$ac_try") 2>&5
18667   ac_status=$?
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); }; }; then
18670   eval "$as_ac_var=yes"
18671 else
18672   echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18674
18675         eval "$as_ac_var=no"
18676 fi
18677
18678 rm -f core conftest.err conftest.$ac_objext \
18679       conftest$ac_exeext conftest.$ac_ext
18680 fi
18681 ac_res=`eval echo '${'$as_ac_var'}'`
18682                { echo "$as_me:$LINENO: result: $ac_res" >&5
18683 echo "${ECHO_T}$ac_res" >&6; }
18684 if test `eval echo '${'$as_ac_var'}'` = yes; then
18685   cat >>confdefs.h <<_ACEOF
18686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18687 _ACEOF
18688
18689 fi
18690 done
18691
18692
18693
18694
18695
18696 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18697 do
18698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18699 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18702   echo $ECHO_N "(cached) $ECHO_C" >&6
18703 else
18704   cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h.  */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h.  */
18710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18712 #define $ac_func innocuous_$ac_func
18713
18714 /* System header to define __stub macros and hopefully few prototypes,
18715     which can conflict with char $ac_func (); below.
18716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18717     <limits.h> exists even on freestanding compilers.  */
18718
18719 #ifdef __STDC__
18720 # include <limits.h>
18721 #else
18722 # include <assert.h>
18723 #endif
18724
18725 #undef $ac_func
18726
18727 /* Override any GCC internal prototype to avoid an error.
18728    Use char because int might match the return type of a GCC
18729    builtin and then its argument prototype would still apply.  */
18730 #ifdef __cplusplus
18731 extern "C"
18732 #endif
18733 char $ac_func ();
18734 /* The GNU C library defines this for functions which it implements
18735     to always fail with ENOSYS.  Some functions are actually named
18736     something starting with __ and the normal name is an alias.  */
18737 #if defined __stub_$ac_func || defined __stub___$ac_func
18738 choke me
18739 #endif
18740
18741 int
18742 main ()
18743 {
18744 return $ac_func ();
18745   ;
18746   return 0;
18747 }
18748 _ACEOF
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (ac_try="$ac_link"
18751 case "(($ac_try" in
18752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753   *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756   (eval "$ac_link") 2>conftest.er1
18757   ac_status=$?
18758   grep -v '^ *+' conftest.er1 >conftest.err
18759   rm -f conftest.er1
18760   cat conftest.err >&5
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } &&
18763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18764   { (case "(($ac_try" in
18765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766   *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769   (eval "$ac_try") 2>&5
18770   ac_status=$?
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); }; } &&
18773          { ac_try='test -s conftest$ac_exeext'
18774   { (case "(($ac_try" in
18775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776   *) ac_try_echo=$ac_try;;
18777 esac
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779   (eval "$ac_try") 2>&5
18780   ac_status=$?
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); }; }; then
18783   eval "$as_ac_var=yes"
18784 else
18785   echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18787
18788         eval "$as_ac_var=no"
18789 fi
18790
18791 rm -f core conftest.err conftest.$ac_objext \
18792       conftest$ac_exeext conftest.$ac_ext
18793 fi
18794 ac_res=`eval echo '${'$as_ac_var'}'`
18795                { echo "$as_me:$LINENO: result: $ac_res" >&5
18796 echo "${ECHO_T}$ac_res" >&6; }
18797 if test `eval echo '${'$as_ac_var'}'` = yes; then
18798   cat >>confdefs.h <<_ACEOF
18799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18800 _ACEOF
18801
18802 fi
18803 done
18804
18805 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18806 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18807 if test "${llvm_cv_c_printf_a+set}" = set; then
18808   echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810   ac_ext=c
18811 ac_cpp='$CPP $CPPFLAGS'
18812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18815
18816  if test "$cross_compiling" = yes; then
18817   llvmac_cv_c_printf_a=no
18818 else
18819   cat >conftest.$ac_ext <<_ACEOF
18820
18821   /* confdefs.h.  */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h.  */
18826
18827 #include <stdio.h>
18828 #include <stdlib.h>
18829
18830 int
18831 main ()
18832 {
18833
18834 volatile double A, B;
18835 char Buffer[100];
18836 A = 1;
18837 A /= 10.0;
18838 sprintf(Buffer, "%a", A);
18839 B = atof(Buffer);
18840 if (A != B)
18841   return (1);
18842 if (A != 0x1.999999999999ap-4)
18843   return (1);
18844 return (0);
18845   ;
18846   return 0;
18847 }
18848 _ACEOF
18849 rm -f conftest$ac_exeext
18850 if { (ac_try="$ac_link"
18851 case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_link") 2>&5
18857   ac_status=$?
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18860   { (case "(($ac_try" in
18861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862   *) ac_try_echo=$ac_try;;
18863 esac
18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865   (eval "$ac_try") 2>&5
18866   ac_status=$?
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); }; }; then
18869   llvm_cv_c_printf_a=yes
18870 else
18871   echo "$as_me: program exited with status $ac_status" >&5
18872 echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18874
18875 ( exit $ac_status )
18876 llvmac_cv_c_printf_a=no
18877 fi
18878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18879 fi
18880
18881
18882  ac_ext=c
18883 ac_cpp='$CPP $CPPFLAGS'
18884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18887
18888 fi
18889 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18890 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18891  if test "$llvm_cv_c_printf_a" = "yes"; then
18892
18893 cat >>confdefs.h <<\_ACEOF
18894 #define HAVE_PRINTF_A 1
18895 _ACEOF
18896
18897  fi
18898
18899
18900 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18901 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18902 if test "${ac_cv_func_rand48+set}" = set; then
18903   echo $ECHO_N "(cached) $ECHO_C" >&6
18904 else
18905   ac_ext=cpp
18906 ac_cpp='$CXXCPP $CPPFLAGS'
18907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18910
18911    cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h.  */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h.  */
18917 #include <stdlib.h>
18918 int
18919 main ()
18920 {
18921 srand48(0);lrand48();drand48();
18922   ;
18923   return 0;
18924 }
18925 _ACEOF
18926 rm -f conftest.$ac_objext
18927 if { (ac_try="$ac_compile"
18928 case "(($ac_try" in
18929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930   *) ac_try_echo=$ac_try;;
18931 esac
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933   (eval "$ac_compile") 2>conftest.er1
18934   ac_status=$?
18935   grep -v '^ *+' conftest.er1 >conftest.err
18936   rm -f conftest.er1
18937   cat conftest.err >&5
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); } &&
18940          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18941   { (case "(($ac_try" in
18942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943   *) ac_try_echo=$ac_try;;
18944 esac
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946   (eval "$ac_try") 2>&5
18947   ac_status=$?
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); }; } &&
18950          { ac_try='test -s conftest.$ac_objext'
18951   { (case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956   (eval "$ac_try") 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); }; }; then
18960   ac_cv_func_rand48=yes
18961 else
18962   echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965         ac_cv_func_rand48=no
18966 fi
18967
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18969   ac_ext=c
18970 ac_cpp='$CPP $CPPFLAGS'
18971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18974
18975 fi
18976 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18977 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18978
18979 if test "$ac_cv_func_rand48" = "yes" ; then
18980
18981 cat >>confdefs.h <<\_ACEOF
18982 #define HAVE_RAND48 1
18983 _ACEOF
18984
18985 fi
18986
18987
18988
18989 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18990 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18991 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18992   echo $ECHO_N "(cached) $ECHO_C" >&6
18993 else
18994   ac_ext=cpp
18995 ac_cpp='$CXXCPP $CPPFLAGS'
18996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18999
19000    cat >conftest.$ac_ext <<_ACEOF
19001 /* confdefs.h.  */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h.  */
19006 #include <math.h>
19007 int
19008 main ()
19009 {
19010 float f; isnan(f);
19011   ;
19012   return 0;
19013 }
19014 _ACEOF
19015 rm -f conftest.$ac_objext
19016 if { (ac_try="$ac_compile"
19017 case "(($ac_try" in
19018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019   *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022   (eval "$ac_compile") 2>conftest.er1
19023   ac_status=$?
19024   grep -v '^ *+' conftest.er1 >conftest.err
19025   rm -f conftest.er1
19026   cat conftest.err >&5
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); } &&
19029          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19030   { (case "(($ac_try" in
19031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032   *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035   (eval "$ac_try") 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; } &&
19039          { ac_try='test -s conftest.$ac_objext'
19040   { (case "(($ac_try" in
19041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042   *) ac_try_echo=$ac_try;;
19043 esac
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045   (eval "$ac_try") 2>&5
19046   ac_status=$?
19047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048   (exit $ac_status); }; }; then
19049   ac_cv_func_isnan_in_math_h=yes
19050 else
19051   echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19053
19054         ac_cv_func_isnan_in_math_h=no
19055 fi
19056
19057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19058   ac_ext=c
19059 ac_cpp='$CPP $CPPFLAGS'
19060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19063
19064 fi
19065 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19066 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19067
19068
19069 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19070
19071 cat >>confdefs.h <<\_ACEOF
19072 #define HAVE_ISNAN_IN_MATH_H 1
19073 _ACEOF
19074
19075 fi
19076
19077 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19078 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19079 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19080   echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19082   ac_ext=cpp
19083 ac_cpp='$CXXCPP $CPPFLAGS'
19084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19087
19088    cat >conftest.$ac_ext <<_ACEOF
19089 /* confdefs.h.  */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h.  */
19094 #include <cmath>
19095 int
19096 main ()
19097 {
19098 float f; isnan(f);
19099   ;
19100   return 0;
19101 }
19102 _ACEOF
19103 rm -f conftest.$ac_objext
19104 if { (ac_try="$ac_compile"
19105 case "(($ac_try" in
19106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107   *) ac_try_echo=$ac_try;;
19108 esac
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110   (eval "$ac_compile") 2>conftest.er1
19111   ac_status=$?
19112   grep -v '^ *+' conftest.er1 >conftest.err
19113   rm -f conftest.er1
19114   cat conftest.err >&5
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); } &&
19117          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19118   { (case "(($ac_try" in
19119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120   *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123   (eval "$ac_try") 2>&5
19124   ac_status=$?
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); }; } &&
19127          { ac_try='test -s conftest.$ac_objext'
19128   { (case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_try") 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; }; then
19137   ac_cv_func_isnan_in_cmath=yes
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142         ac_cv_func_isnan_in_cmath=no
19143 fi
19144
19145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19146   ac_ext=c
19147 ac_cpp='$CPP $CPPFLAGS'
19148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19151
19152 fi
19153 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19154 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19155
19156 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19157
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE_ISNAN_IN_CMATH 1
19160 _ACEOF
19161
19162 fi
19163
19164 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19165 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19166 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19167   echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169   ac_ext=cpp
19170 ac_cpp='$CXXCPP $CPPFLAGS'
19171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19174
19175    cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h.  */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h.  */
19181 #include <cmath>
19182 int
19183 main ()
19184 {
19185 float f; std::isnan(f);
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194   *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197   (eval "$ac_compile") 2>conftest.er1
19198   ac_status=$?
19199   grep -v '^ *+' conftest.er1 >conftest.err
19200   rm -f conftest.er1
19201   cat conftest.err >&5
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); } &&
19204          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19205   { (case "(($ac_try" in
19206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207   *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210   (eval "$ac_try") 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; } &&
19214          { ac_try='test -s conftest.$ac_objext'
19215   { (case "(($ac_try" in
19216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217   *) ac_try_echo=$ac_try;;
19218 esac
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220   (eval "$ac_try") 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); }; }; then
19224   ac_cv_func_std_isnan_in_cmath=yes
19225 else
19226   echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229         ac_cv_func_std_isnan_in_cmath=no
19230 fi
19231
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233   ac_ext=c
19234 ac_cpp='$CPP $CPPFLAGS'
19235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19238
19239 fi
19240 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19241 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19242
19243 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19244
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE_STD_ISNAN_IN_CMATH 1
19247 _ACEOF
19248
19249 fi
19250
19251
19252 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19253 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19254 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19255   echo $ECHO_N "(cached) $ECHO_C" >&6
19256 else
19257   ac_ext=cpp
19258 ac_cpp='$CXXCPP $CPPFLAGS'
19259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19262
19263    cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h.  */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h.  */
19269 #include <math.h>
19270 int
19271 main ()
19272 {
19273 float f; isinf(f);
19274   ;
19275   return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext
19279 if { (ac_try="$ac_compile"
19280 case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_compile") 2>conftest.er1
19286   ac_status=$?
19287   grep -v '^ *+' conftest.er1 >conftest.err
19288   rm -f conftest.er1
19289   cat conftest.err >&5
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } &&
19292          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19293   { (case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_try") 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; } &&
19302          { ac_try='test -s conftest.$ac_objext'
19303   { (case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_try") 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   ac_cv_func_isinf_in_math_h=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317         ac_cv_func_isinf_in_math_h=no
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321   ac_ext=c
19322 ac_cpp='$CPP $CPPFLAGS'
19323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19326
19327 fi
19328 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19329 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19330
19331 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19332
19333 cat >>confdefs.h <<\_ACEOF
19334 #define HAVE_ISINF_IN_MATH_H 1
19335 _ACEOF
19336
19337 fi
19338
19339 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19340 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19341 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19342   echo $ECHO_N "(cached) $ECHO_C" >&6
19343 else
19344   ac_ext=cpp
19345 ac_cpp='$CXXCPP $CPPFLAGS'
19346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19349
19350    cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h.  */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h.  */
19356 #include <cmath>
19357 int
19358 main ()
19359 {
19360 float f; isinf(f);
19361   ;
19362   return 0;
19363 }
19364 _ACEOF
19365 rm -f conftest.$ac_objext
19366 if { (ac_try="$ac_compile"
19367 case "(($ac_try" in
19368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369   *) ac_try_echo=$ac_try;;
19370 esac
19371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372   (eval "$ac_compile") 2>conftest.er1
19373   ac_status=$?
19374   grep -v '^ *+' conftest.er1 >conftest.err
19375   rm -f conftest.er1
19376   cat conftest.err >&5
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); } &&
19379          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19380   { (case "(($ac_try" in
19381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382   *) ac_try_echo=$ac_try;;
19383 esac
19384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19385   (eval "$ac_try") 2>&5
19386   ac_status=$?
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); }; } &&
19389          { ac_try='test -s conftest.$ac_objext'
19390   { (case "(($ac_try" in
19391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392   *) ac_try_echo=$ac_try;;
19393 esac
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395   (eval "$ac_try") 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); }; }; then
19399   ac_cv_func_isinf_in_cmath=yes
19400 else
19401   echo "$as_me: failed program was:" >&5
19402 sed 's/^/| /' conftest.$ac_ext >&5
19403
19404         ac_cv_func_isinf_in_cmath=no
19405 fi
19406
19407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19408   ac_ext=c
19409 ac_cpp='$CPP $CPPFLAGS'
19410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413
19414 fi
19415 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19416 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19417
19418 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19419
19420 cat >>confdefs.h <<\_ACEOF
19421 #define HAVE_ISINF_IN_CMATH 1
19422 _ACEOF
19423
19424 fi
19425
19426 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19427 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19428 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19429   echo $ECHO_N "(cached) $ECHO_C" >&6
19430 else
19431   ac_ext=cpp
19432 ac_cpp='$CXXCPP $CPPFLAGS'
19433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19436
19437    cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h.  */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h.  */
19443 #include <cmath>
19444 int
19445 main ()
19446 {
19447 float f; std::isinf(f)}
19448   ;
19449   return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext
19453 if { (ac_try="$ac_compile"
19454 case "(($ac_try" in
19455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456   *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459   (eval "$ac_compile") 2>conftest.er1
19460   ac_status=$?
19461   grep -v '^ *+' conftest.er1 >conftest.err
19462   rm -f conftest.er1
19463   cat conftest.err >&5
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); } &&
19466          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19467   { (case "(($ac_try" in
19468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19469   *) ac_try_echo=$ac_try;;
19470 esac
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472   (eval "$ac_try") 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; } &&
19476          { ac_try='test -s conftest.$ac_objext'
19477   { (case "(($ac_try" in
19478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19479   *) ac_try_echo=$ac_try;;
19480 esac
19481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19482   (eval "$ac_try") 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; }; then
19486   ac_cv_func_std_isinf_in_cmath=yes
19487 else
19488   echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19490
19491         ac_cv_func_std_isinf_in_cmath=no
19492 fi
19493
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495   ac_ext=c
19496 ac_cpp='$CPP $CPPFLAGS'
19497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19500
19501 fi
19502 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19503 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19504
19505 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19506
19507 cat >>confdefs.h <<\_ACEOF
19508 #define HAVE_STD_ISINF_IN_CMATH 1
19509 _ACEOF
19510
19511 fi
19512
19513 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19514 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19515 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   ac_ext=cpp
19519 ac_cpp='$CXXCPP $CPPFLAGS'
19520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19523
19524    cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h.  */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h.  */
19530 #include <ieeefp.h>
19531 int
19532 main ()
19533 {
19534 float f; finite(f);
19535   ;
19536   return 0;
19537 }
19538 _ACEOF
19539 rm -f conftest.$ac_objext
19540 if { (ac_try="$ac_compile"
19541 case "(($ac_try" in
19542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543   *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546   (eval "$ac_compile") 2>conftest.er1
19547   ac_status=$?
19548   grep -v '^ *+' conftest.er1 >conftest.err
19549   rm -f conftest.er1
19550   cat conftest.err >&5
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); } &&
19553          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19554   { (case "(($ac_try" in
19555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556   *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559   (eval "$ac_try") 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); }; } &&
19563          { ac_try='test -s conftest.$ac_objext'
19564   { (case "(($ac_try" in
19565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566   *) ac_try_echo=$ac_try;;
19567 esac
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569   (eval "$ac_try") 2>&5
19570   ac_status=$?
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); }; }; then
19573   ac_cv_func_finite_in_ieeefp_h=yes
19574 else
19575   echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19577
19578         ac_cv_func_finite_in_ieeefp_h=no
19579 fi
19580
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582   ac_ext=c
19583 ac_cpp='$CPP $CPPFLAGS'
19584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19587
19588 fi
19589 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19590 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19591
19592 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19593
19594 cat >>confdefs.h <<\_ACEOF
19595 #define HAVE_FINITE_IN_IEEEFP_H 1
19596 _ACEOF
19597
19598 fi
19599
19600
19601
19602 if test "$llvm_cv_platform_type" = "Unix" ; then
19603
19604
19605 for ac_header in stdlib.h unistd.h
19606 do
19607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19609   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19612   echo $ECHO_N "(cached) $ECHO_C" >&6
19613 fi
19614 ac_res=`eval echo '${'$as_ac_Header'}'`
19615                { echo "$as_me:$LINENO: result: $ac_res" >&5
19616 echo "${ECHO_T}$ac_res" >&6; }
19617 else
19618   # Is the header compilable?
19619 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627 $ac_includes_default
19628 #include <$ac_header>
19629 _ACEOF
19630 rm -f conftest.$ac_objext
19631 if { (ac_try="$ac_compile"
19632 case "(($ac_try" in
19633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634   *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637   (eval "$ac_compile") 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } &&
19644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19645   { (case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650   (eval "$ac_try") 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; } &&
19654          { ac_try='test -s conftest.$ac_objext'
19655   { (case "(($ac_try" in
19656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657   *) ac_try_echo=$ac_try;;
19658 esac
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660   (eval "$ac_try") 2>&5
19661   ac_status=$?
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); }; }; then
19664   ac_header_compiler=yes
19665 else
19666   echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669         ac_header_compiler=no
19670 fi
19671
19672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19674 echo "${ECHO_T}$ac_header_compiler" >&6; }
19675
19676 # Is the header present?
19677 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h.  */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h.  */
19685 #include <$ac_header>
19686 _ACEOF
19687 if { (ac_try="$ac_cpp conftest.$ac_ext"
19688 case "(($ac_try" in
19689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690   *) ac_try_echo=$ac_try;;
19691 esac
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19694   ac_status=$?
19695   grep -v '^ *+' conftest.er1 >conftest.err
19696   rm -f conftest.er1
19697   cat conftest.err >&5
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); } >/dev/null; then
19700   if test -s conftest.err; then
19701     ac_cpp_err=$ac_c_preproc_warn_flag
19702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19703   else
19704     ac_cpp_err=
19705   fi
19706 else
19707   ac_cpp_err=yes
19708 fi
19709 if test -z "$ac_cpp_err"; then
19710   ac_header_preproc=yes
19711 else
19712   echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19714
19715   ac_header_preproc=no
19716 fi
19717
19718 rm -f conftest.err conftest.$ac_ext
19719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19720 echo "${ECHO_T}$ac_header_preproc" >&6; }
19721
19722 # So?  What about this header?
19723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19724   yes:no: )
19725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19729     ac_header_preproc=yes
19730     ;;
19731   no:yes:* )
19732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19734     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19735 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19736     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19738     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19739 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19742     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19744     ( cat <<\_ASBOX
19745 ## ----------------------------------- ##
19746 ## Report this to llvmbugs@cs.uiuc.edu ##
19747 ## ----------------------------------- ##
19748 _ASBOX
19749      ) | sed "s/^/$as_me: WARNING:     /" >&2
19750     ;;
19751 esac
19752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19755   echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757   eval "$as_ac_Header=\$ac_header_preproc"
19758 fi
19759 ac_res=`eval echo '${'$as_ac_Header'}'`
19760                { echo "$as_me:$LINENO: result: $ac_res" >&5
19761 echo "${ECHO_T}$ac_res" >&6; }
19762
19763 fi
19764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19765   cat >>confdefs.h <<_ACEOF
19766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19767 _ACEOF
19768
19769 fi
19770
19771 done
19772
19773
19774 for ac_func in getpagesize
19775 do
19776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19780   echo $ECHO_N "(cached) $ECHO_C" >&6
19781 else
19782   cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h.  */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h.  */
19788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19790 #define $ac_func innocuous_$ac_func
19791
19792 /* System header to define __stub macros and hopefully few prototypes,
19793     which can conflict with char $ac_func (); below.
19794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19795     <limits.h> exists even on freestanding compilers.  */
19796
19797 #ifdef __STDC__
19798 # include <limits.h>
19799 #else
19800 # include <assert.h>
19801 #endif
19802
19803 #undef $ac_func
19804
19805 /* Override any GCC internal prototype to avoid an error.
19806    Use char because int might match the return type of a GCC
19807    builtin and then its argument prototype would still apply.  */
19808 #ifdef __cplusplus
19809 extern "C"
19810 #endif
19811 char $ac_func ();
19812 /* The GNU C library defines this for functions which it implements
19813     to always fail with ENOSYS.  Some functions are actually named
19814     something starting with __ and the normal name is an alias.  */
19815 #if defined __stub_$ac_func || defined __stub___$ac_func
19816 choke me
19817 #endif
19818
19819 int
19820 main ()
19821 {
19822 return $ac_func ();
19823   ;
19824   return 0;
19825 }
19826 _ACEOF
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831   *) ac_try_echo=$ac_try;;
19832 esac
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834   (eval "$ac_link") 2>conftest.er1
19835   ac_status=$?
19836   grep -v '^ *+' conftest.er1 >conftest.err
19837   rm -f conftest.er1
19838   cat conftest.err >&5
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); } &&
19841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19842   { (case "(($ac_try" in
19843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844   *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847   (eval "$ac_try") 2>&5
19848   ac_status=$?
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); }; } &&
19851          { ac_try='test -s conftest$ac_exeext'
19852   { (case "(($ac_try" in
19853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854   *) ac_try_echo=$ac_try;;
19855 esac
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857   (eval "$ac_try") 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }; }; then
19861   eval "$as_ac_var=yes"
19862 else
19863   echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19865
19866         eval "$as_ac_var=no"
19867 fi
19868
19869 rm -f core conftest.err conftest.$ac_objext \
19870       conftest$ac_exeext conftest.$ac_ext
19871 fi
19872 ac_res=`eval echo '${'$as_ac_var'}'`
19873                { echo "$as_me:$LINENO: result: $ac_res" >&5
19874 echo "${ECHO_T}$ac_res" >&6; }
19875 if test `eval echo '${'$as_ac_var'}'` = yes; then
19876   cat >>confdefs.h <<_ACEOF
19877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19878 _ACEOF
19879
19880 fi
19881 done
19882
19883 { echo "$as_me:$LINENO: checking for working mmap" >&5
19884 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19885 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19886   echo $ECHO_N "(cached) $ECHO_C" >&6
19887 else
19888   if test "$cross_compiling" = yes; then
19889   ac_cv_func_mmap_fixed_mapped=no
19890 else
19891   cat >conftest.$ac_ext <<_ACEOF
19892 /* confdefs.h.  */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h.  */
19897 $ac_includes_default
19898 /* malloc might have been renamed as rpl_malloc. */
19899 #undef malloc
19900
19901 /* Thanks to Mike Haertel and Jim Avera for this test.
19902    Here is a matrix of mmap possibilities:
19903         mmap private not fixed
19904         mmap private fixed at somewhere currently unmapped
19905         mmap private fixed at somewhere already mapped
19906         mmap shared not fixed
19907         mmap shared fixed at somewhere currently unmapped
19908         mmap shared fixed at somewhere already mapped
19909    For private mappings, we should verify that changes cannot be read()
19910    back from the file, nor mmap's back from the file at a different
19911    address.  (There have been systems where private was not correctly
19912    implemented like the infamous i386 svr4.0, and systems where the
19913    VM page cache was not coherent with the file system buffer cache
19914    like early versions of FreeBSD and possibly contemporary NetBSD.)
19915    For shared mappings, we should conversely verify that changes get
19916    propagated back to all the places they're supposed to be.
19917
19918    Grep wants private fixed already mapped.
19919    The main things grep needs to know about mmap are:
19920    * does it exist and is it safe to write into the mmap'd area
19921    * how to use it (BSD variants)  */
19922
19923 #include <fcntl.h>
19924 #include <sys/mman.h>
19925
19926 #if !STDC_HEADERS && !HAVE_STDLIB_H
19927 char *malloc ();
19928 #endif
19929
19930 /* This mess was copied from the GNU getpagesize.h.  */
19931 #if !HAVE_GETPAGESIZE
19932 /* Assume that all systems that can run configure have sys/param.h.  */
19933 # if !HAVE_SYS_PARAM_H
19934 #  define HAVE_SYS_PARAM_H 1
19935 # endif
19936
19937 # ifdef _SC_PAGESIZE
19938 #  define getpagesize() sysconf(_SC_PAGESIZE)
19939 # else /* no _SC_PAGESIZE */
19940 #  if HAVE_SYS_PARAM_H
19941 #   include <sys/param.h>
19942 #   ifdef EXEC_PAGESIZE
19943 #    define getpagesize() EXEC_PAGESIZE
19944 #   else /* no EXEC_PAGESIZE */
19945 #    ifdef NBPG
19946 #     define getpagesize() NBPG * CLSIZE
19947 #     ifndef CLSIZE
19948 #      define CLSIZE 1
19949 #     endif /* no CLSIZE */
19950 #    else /* no NBPG */
19951 #     ifdef NBPC
19952 #      define getpagesize() NBPC
19953 #     else /* no NBPC */
19954 #      ifdef PAGESIZE
19955 #       define getpagesize() PAGESIZE
19956 #      endif /* PAGESIZE */
19957 #     endif /* no NBPC */
19958 #    endif /* no NBPG */
19959 #   endif /* no EXEC_PAGESIZE */
19960 #  else /* no HAVE_SYS_PARAM_H */
19961 #   define getpagesize() 8192   /* punt totally */
19962 #  endif /* no HAVE_SYS_PARAM_H */
19963 # endif /* no _SC_PAGESIZE */
19964
19965 #endif /* no HAVE_GETPAGESIZE */
19966
19967 int
19968 main ()
19969 {
19970   char *data, *data2, *data3;
19971   int i, pagesize;
19972   int fd;
19973
19974   pagesize = getpagesize ();
19975
19976   /* First, make a file with some known garbage in it. */
19977   data = (char *) malloc (pagesize);
19978   if (!data)
19979     return 1;
19980   for (i = 0; i < pagesize; ++i)
19981     *(data + i) = rand ();
19982   umask (0);
19983   fd = creat ("conftest.mmap", 0600);
19984   if (fd < 0)
19985     return 1;
19986   if (write (fd, data, pagesize) != pagesize)
19987     return 1;
19988   close (fd);
19989
19990   /* Next, try to mmap the file at a fixed address which already has
19991      something else allocated at it.  If we can, also make sure that
19992      we see the same garbage.  */
19993   fd = open ("conftest.mmap", O_RDWR);
19994   if (fd < 0)
19995     return 1;
19996   data2 = (char *) malloc (2 * pagesize);
19997   if (!data2)
19998     return 1;
19999   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20000   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20001                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20002     return 1;
20003   for (i = 0; i < pagesize; ++i)
20004     if (*(data + i) != *(data2 + i))
20005       return 1;
20006
20007   /* Finally, make sure that changes to the mapped area do not
20008      percolate back to the file as seen by read().  (This is a bug on
20009      some variants of i386 svr4.0.)  */
20010   for (i = 0; i < pagesize; ++i)
20011     *(data2 + i) = *(data2 + i) + 1;
20012   data3 = (char *) malloc (pagesize);
20013   if (!data3)
20014     return 1;
20015   if (read (fd, data3, pagesize) != pagesize)
20016     return 1;
20017   for (i = 0; i < pagesize; ++i)
20018     if (*(data + i) != *(data3 + i))
20019       return 1;
20020   close (fd);
20021   return 0;
20022 }
20023 _ACEOF
20024 rm -f conftest$ac_exeext
20025 if { (ac_try="$ac_link"
20026 case "(($ac_try" in
20027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028   *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031   (eval "$ac_link") 2>&5
20032   ac_status=$?
20033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20035   { (case "(($ac_try" in
20036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037   *) ac_try_echo=$ac_try;;
20038 esac
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040   (eval "$ac_try") 2>&5
20041   ac_status=$?
20042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043   (exit $ac_status); }; }; then
20044   ac_cv_func_mmap_fixed_mapped=yes
20045 else
20046   echo "$as_me: program exited with status $ac_status" >&5
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20049
20050 ( exit $ac_status )
20051 ac_cv_func_mmap_fixed_mapped=no
20052 fi
20053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20054 fi
20055
20056
20057 fi
20058 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20059 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20060 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20061
20062 cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_MMAP 1
20064 _ACEOF
20065
20066 fi
20067 rm -f conftest.mmap
20068
20069   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20070 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20071 if test "${ac_cv_func_mmap_file+set}" = set; then
20072   echo $ECHO_N "(cached) $ECHO_C" >&6
20073 else
20074    ac_ext=c
20075 ac_cpp='$CPP $CPPFLAGS'
20076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20079
20080   if test "$cross_compiling" = yes; then
20081   ac_cv_func_mmap_file=no
20082 else
20083   cat >conftest.$ac_ext <<_ACEOF
20084
20085     /* confdefs.h.  */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h.  */
20090
20091 #include <sys/types.h>
20092 #include <sys/mman.h>
20093 #include <fcntl.h>
20094
20095 int
20096 main ()
20097 {
20098
20099   int fd;
20100   fd = creat ("foo",0777);
20101   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20102   unlink ("foo");
20103   return (fd != (int) MAP_FAILED);
20104   ;
20105   return 0;
20106 }
20107 _ACEOF
20108 rm -f conftest$ac_exeext
20109 if { (ac_try="$ac_link"
20110 case "(($ac_try" in
20111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112   *) ac_try_echo=$ac_try;;
20113 esac
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115   (eval "$ac_link") 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20119   { (case "(($ac_try" in
20120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121   *) ac_try_echo=$ac_try;;
20122 esac
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124   (eval "$ac_try") 2>&5
20125   ac_status=$?
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); }; }; then
20128   ac_cv_func_mmap_file=yes
20129 else
20130   echo "$as_me: program exited with status $ac_status" >&5
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20133
20134 ( exit $ac_status )
20135 ac_cv_func_mmap_file=no
20136 fi
20137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20138 fi
20139
20140
20141   ac_ext=c
20142 ac_cpp='$CPP $CPPFLAGS'
20143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20146
20147
20148 fi
20149 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20150 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20151 if test "$ac_cv_func_mmap_file" = yes; then
20152
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE_MMAP_FILE
20155 _ACEOF
20156
20157    MMAP_FILE=yes
20158
20159 fi
20160
20161   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20162 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20163 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20164   echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20166   if test "$llvm_cv_os_type" = "Interix" ; then
20167    ac_cv_need_dev_zero_for_mmap=yes
20168  else
20169    ac_cv_need_dev_zero_for_mmap=no
20170  fi
20171
20172 fi
20173 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20174 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20175 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20176
20177 cat >>confdefs.h <<\_ACEOF
20178 #define NEED_DEV_ZERO_FOR_MMAP 1
20179 _ACEOF
20180
20181 fi
20182
20183   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20184   then
20185     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20186 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20187   fi
20188   if test "$ac_cv_func_mmap_file" = "no"
20189   then
20190     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20191 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20192   fi
20193 fi
20194
20195 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20196 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20197 ac_ext=cpp
20198 ac_cpp='$CXXCPP $CPPFLAGS'
20199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20202
20203 cat >conftest.$ac_ext <<_ACEOF
20204 /* confdefs.h.  */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h.  */
20209 int main() {
20210         volatile unsigned long val = 1;
20211         __sync_synchronize();
20212         __sync_val_compare_and_swap(&val, 1, 0);
20213         __sync_add_and_fetch(&val, 1);
20214         __sync_sub_and_fetch(&val, 1);
20215         return 0;
20216       }
20217
20218 _ACEOF
20219 rm -f conftest.$ac_objext conftest$ac_exeext
20220 if { (ac_try="$ac_link"
20221 case "(($ac_try" in
20222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223   *) ac_try_echo=$ac_try;;
20224 esac
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226   (eval "$ac_link") 2>conftest.er1
20227   ac_status=$?
20228   grep -v '^ *+' conftest.er1 >conftest.err
20229   rm -f conftest.er1
20230   cat conftest.err >&5
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); } &&
20233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20234   { (case "(($ac_try" in
20235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236   *) ac_try_echo=$ac_try;;
20237 esac
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239   (eval "$ac_try") 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; } &&
20243          { ac_try='test -s conftest$ac_exeext'
20244   { (case "(($ac_try" in
20245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246   *) ac_try_echo=$ac_try;;
20247 esac
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249   (eval "$ac_try") 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; }; then
20253   ac_ext=c
20254 ac_cpp='$CPP $CPPFLAGS'
20255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20258
20259   { echo "$as_me:$LINENO: result: yes" >&5
20260 echo "${ECHO_T}yes" >&6; }
20261
20262 cat >>confdefs.h <<\_ACEOF
20263 #define LLVM_MULTITHREADED 1
20264 _ACEOF
20265
20266 else
20267   echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270         { echo "$as_me:$LINENO: result: no" >&5
20271 echo "${ECHO_T}no" >&6; }
20272
20273 cat >>confdefs.h <<\_ACEOF
20274 #define LLVM_MULTITHREADED 0
20275 _ACEOF
20276
20277   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20278 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20279 fi
20280
20281 rm -f core conftest.err conftest.$ac_objext \
20282       conftest$ac_exeext conftest.$ac_ext
20283
20284 { echo "$as_me:$LINENO: checking for getsect()" >&5
20285 echo $ECHO_N "checking for getsect()... $ECHO_C" >&6; }
20286 cat >conftest.$ac_ext <<_ACEOF
20287 /* confdefs.h.  */
20288 _ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h.  */
20292 #include <mach-o/getsect.h>
20293       int main() {
20294         unsigned long p;
20295         return (int)getsect("__DATA","__pass_info", &p);
20296       }
20297
20298 _ACEOF
20299 rm -f conftest.$ac_objext
20300 if { (ac_try="$ac_compile"
20301 case "(($ac_try" in
20302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303   *) ac_try_echo=$ac_try;;
20304 esac
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306   (eval "$ac_compile") 2>conftest.er1
20307   ac_status=$?
20308   grep -v '^ *+' conftest.er1 >conftest.err
20309   rm -f conftest.er1
20310   cat conftest.err >&5
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } &&
20313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314   { (case "(($ac_try" in
20315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316   *) ac_try_echo=$ac_try;;
20317 esac
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319   (eval "$ac_try") 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); }; } &&
20323          { ac_try='test -s conftest.$ac_objext'
20324   { (case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_try") 2>&5
20330   ac_status=$?
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); }; }; then
20333   { echo "$as_me:$LINENO: result: yes" >&5
20334 echo "${ECHO_T}yes" >&6; }
20335
20336 cat >>confdefs.h <<\_ACEOF
20337 #define HAVE_GETSECT 1
20338 _ACEOF
20339
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344         { echo "$as_me:$LINENO: result: no" >&5
20345 echo "${ECHO_T}no" >&6; }
20346
20347 cat >>confdefs.h <<\_ACEOF
20348 #define HAVE_GETSECT 1
20349 _ACEOF
20350
20351
20352 fi
20353
20354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20355
20356
20357
20358 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20359   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20360 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20361 if test "${llvm_cv_linux_mixed+set}" = set; then
20362   echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364    ac_ext=c
20365 ac_cpp='$CPP $CPPFLAGS'
20366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20369
20370   cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h.  */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h.  */
20376 #ifndef __x86_64__
20377        error: Not x86-64 even if uname says so!
20378       #endif
20379
20380 int
20381 main ()
20382 {
20383
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 rm -f conftest.$ac_objext
20389 if { (ac_try="$ac_compile"
20390 case "(($ac_try" in
20391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392   *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395   (eval "$ac_compile") 2>conftest.er1
20396   ac_status=$?
20397   grep -v '^ *+' conftest.er1 >conftest.err
20398   rm -f conftest.er1
20399   cat conftest.err >&5
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); } &&
20402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20403   { (case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408   (eval "$ac_try") 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; } &&
20412          { ac_try='test -s conftest.$ac_objext'
20413   { (case "(($ac_try" in
20414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415   *) ac_try_echo=$ac_try;;
20416 esac
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418   (eval "$ac_try") 2>&5
20419   ac_status=$?
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); }; }; then
20422   llvm_cv_linux_mixed=no
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427         llvm_cv_linux_mixed=yes
20428 fi
20429
20430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431   ac_ext=c
20432 ac_cpp='$CPP $CPPFLAGS'
20433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20436
20437
20438 fi
20439 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20440 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20441
20442   if test "$llvm_cv_linux_mixed" = "yes"; then
20443     llvm_cv_target_arch="x86"
20444     ARCH="x86"
20445   fi
20446 fi
20447
20448
20449 for ac_func in __dso_handle
20450 do
20451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20455   echo $ECHO_N "(cached) $ECHO_C" >&6
20456 else
20457   cat >conftest.$ac_ext <<_ACEOF
20458 /* confdefs.h.  */
20459 _ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h.  */
20463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20465 #define $ac_func innocuous_$ac_func
20466
20467 /* System header to define __stub macros and hopefully few prototypes,
20468     which can conflict with char $ac_func (); below.
20469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20470     <limits.h> exists even on freestanding compilers.  */
20471
20472 #ifdef __STDC__
20473 # include <limits.h>
20474 #else
20475 # include <assert.h>
20476 #endif
20477
20478 #undef $ac_func
20479
20480 /* Override any GCC internal prototype to avoid an error.
20481    Use char because int might match the return type of a GCC
20482    builtin and then its argument prototype would still apply.  */
20483 #ifdef __cplusplus
20484 extern "C"
20485 #endif
20486 char $ac_func ();
20487 /* The GNU C library defines this for functions which it implements
20488     to always fail with ENOSYS.  Some functions are actually named
20489     something starting with __ and the normal name is an alias.  */
20490 #if defined __stub_$ac_func || defined __stub___$ac_func
20491 choke me
20492 #endif
20493
20494 int
20495 main ()
20496 {
20497 return $ac_func ();
20498   ;
20499   return 0;
20500 }
20501 _ACEOF
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (ac_try="$ac_link"
20504 case "(($ac_try" in
20505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506   *) ac_try_echo=$ac_try;;
20507 esac
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509   (eval "$ac_link") 2>conftest.er1
20510   ac_status=$?
20511   grep -v '^ *+' conftest.er1 >conftest.err
20512   rm -f conftest.er1
20513   cat conftest.err >&5
20514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); } &&
20516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20517   { (case "(($ac_try" in
20518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519   *) ac_try_echo=$ac_try;;
20520 esac
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522   (eval "$ac_try") 2>&5
20523   ac_status=$?
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); }; } &&
20526          { ac_try='test -s conftest$ac_exeext'
20527   { (case "(($ac_try" in
20528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529   *) ac_try_echo=$ac_try;;
20530 esac
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532   (eval "$ac_try") 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; }; then
20536   eval "$as_ac_var=yes"
20537 else
20538   echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20540
20541         eval "$as_ac_var=no"
20542 fi
20543
20544 rm -f core conftest.err conftest.$ac_objext \
20545       conftest$ac_exeext conftest.$ac_ext
20546 fi
20547 ac_res=`eval echo '${'$as_ac_var'}'`
20548                { echo "$as_me:$LINENO: result: $ac_res" >&5
20549 echo "${ECHO_T}$ac_res" >&6; }
20550 if test `eval echo '${'$as_ac_var'}'` = yes; then
20551   cat >>confdefs.h <<_ACEOF
20552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20553 _ACEOF
20554
20555 fi
20556 done
20557
20558
20559 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20560 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20561 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   llvm_cv_llvmgcc_sanity="no"
20565 if test -x "$LLVMGCC" ; then
20566   cp /dev/null conftest.c
20567   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20568       grep 'target datalayout =' > /dev/null 2>&1
20569   if test $? -eq 0 ; then
20570     llvm_cv_llvmgcc_sanity="yes"
20571   fi
20572   rm conftest.c
20573 fi
20574 fi
20575 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20576 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20577
20578 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20579   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20580 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20581   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20582   LLVMCC1=$llvmcc1path
20583
20584   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20585   LLVMCC1PLUS=$llvmcc1pluspath
20586
20587   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20588   LLVMGCCDIR=$llvmgccdir
20589
20590   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20591   LLVMGCC_LANGS=$llvmgcclangs
20592
20593   { echo "$as_me:$LINENO: result: ok" >&5
20594 echo "${ECHO_T}ok" >&6; }
20595 fi
20596
20597 SHLIBEXT=$libltdl_cv_shlibext
20598
20599
20600 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20601
20602
20603 # Translate the various configuration directories and other basic
20604 # information into substitutions that will end up in Makefile.config.in
20605 # that these configured values can be used by the makefiles
20606 if test "${prefix}" = "NONE" ; then
20607   prefix="/usr/local"
20608 fi
20609 eval LLVM_PREFIX="${prefix}";
20610 eval LLVM_BINDIR="${prefix}/bin";
20611 eval LLVM_LIBDIR="${prefix}/lib";
20612 eval LLVM_DATADIR="${prefix}/share/llvm";
20613 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20614 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20615 eval LLVM_INCLUDEDIR="${prefix}/include";
20616 eval LLVM_INFODIR="${prefix}/info";
20617 eval LLVM_MANDIR="${prefix}/man";
20618 LLVM_CONFIGTIME=`date`
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630 # Place the various directores into the config.h file as #defines so that we
20631 # can know about the installation paths within LLVM.
20632
20633 cat >>confdefs.h <<_ACEOF
20634 #define LLVM_PREFIX "$LLVM_PREFIX"
20635 _ACEOF
20636
20637
20638 cat >>confdefs.h <<_ACEOF
20639 #define LLVM_BINDIR "$LLVM_BINDIR"
20640 _ACEOF
20641
20642
20643 cat >>confdefs.h <<_ACEOF
20644 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20645 _ACEOF
20646
20647
20648 cat >>confdefs.h <<_ACEOF
20649 #define LLVM_DATADIR "$LLVM_DATADIR"
20650 _ACEOF
20651
20652
20653 cat >>confdefs.h <<_ACEOF
20654 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20655 _ACEOF
20656
20657
20658 cat >>confdefs.h <<_ACEOF
20659 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20660 _ACEOF
20661
20662
20663 cat >>confdefs.h <<_ACEOF
20664 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20665 _ACEOF
20666
20667
20668 cat >>confdefs.h <<_ACEOF
20669 #define LLVM_INFODIR "$LLVM_INFODIR"
20670 _ACEOF
20671
20672
20673 cat >>confdefs.h <<_ACEOF
20674 #define LLVM_MANDIR "$LLVM_MANDIR"
20675 _ACEOF
20676
20677
20678 cat >>confdefs.h <<_ACEOF
20679 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20680 _ACEOF
20681
20682
20683 cat >>confdefs.h <<_ACEOF
20684 #define LLVM_HOSTTRIPLE "$host"
20685 _ACEOF
20686
20687
20688 # Determine which bindings to build.
20689 if test "$BINDINGS_TO_BUILD" = auto ; then
20690   BINDINGS_TO_BUILD=""
20691   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20692     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20693   fi
20694 fi
20695 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20696
20697
20698 # This isn't really configurey, but it avoids having to repeat the list in
20699 # other files.
20700 ALL_BINDINGS=ocaml
20701
20702
20703 # Do any work necessary to ensure that bindings have what they need.
20704 binding_prereqs_failed=0
20705 for a_binding in $BINDINGS_TO_BUILD ; do
20706   case "$a_binding" in
20707   ocaml)
20708     if test "x$OCAMLC" = x ; then
20709       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20710 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20711       binding_prereqs_failed=1
20712     fi
20713     if test "x$OCAMLDEP" = x ; then
20714       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20715 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20716       binding_prereqs_failed=1
20717     fi
20718     if test "x$OCAMLOPT" = x ; then
20719       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20720 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20721           fi
20722     if test "x$with_ocaml_libdir" != xauto ; then
20723       OCAML_LIBDIR=$with_ocaml_libdir
20724
20725     else
20726       ocaml_stdlib="`"$OCAMLC" -where`"
20727       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20728       then
20729         # ocaml stdlib is beneath our prefix; use stdlib
20730         OCAML_LIBDIR=$ocaml_stdlib
20731
20732       else
20733         # ocaml stdlib is outside our prefix; use libdir/ocaml
20734         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20735
20736       fi
20737     fi
20738     ;;
20739   esac
20740 done
20741 if test "$binding_prereqs_failed" = 1 ; then
20742   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20743 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20744    { (exit 1); exit 1; }; }
20745 fi
20746
20747 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20748 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20749 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20750   echo $ECHO_N "(cached) $ECHO_C" >&6
20751 else
20752    ac_ext=cpp
20753 ac_cpp='$CXXCPP $CPPFLAGS'
20754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20757
20758   oldcxxflags="$CXXFLAGS"
20759   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20760   cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h.  */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h.  */
20766
20767 int
20768 main ()
20769 {
20770
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (ac_try="$ac_compile"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782   (eval "$ac_compile") 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } &&
20789          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20790   { (case "(($ac_try" in
20791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792   *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795   (eval "$ac_try") 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; } &&
20799          { ac_try='test -s conftest.$ac_objext'
20800   { (case "(($ac_try" in
20801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802   *) ac_try_echo=$ac_try;;
20803 esac
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805   (eval "$ac_try") 2>&5
20806   ac_status=$?
20807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808   (exit $ac_status); }; }; then
20809   llvm_cv_cxx_visibility_inlines_hidden=yes
20810 else
20811   echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814         llvm_cv_cxx_visibility_inlines_hidden=no
20815 fi
20816
20817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818   CXXFLAGS="$oldcxxflags"
20819   ac_ext=c
20820 ac_cpp='$CPP $CPPFLAGS'
20821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824
20825
20826 fi
20827 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20828 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20829 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20830   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20831
20832 else
20833   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20834
20835 fi
20836
20837
20838 if test "$llvm_cv_link_use_r" = "yes" ; then
20839   RPATH="-Wl,-R"
20840 else
20841   RPATH="-Wl,-rpath"
20842 fi
20843
20844
20845 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20846   RDYNAMIC="-Wl,-export-dynamic"
20847 else
20848   RDYNAMIC=""
20849 fi
20850
20851
20852
20853 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20854
20855
20856
20857
20858
20859
20860 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20861
20862 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20863
20864 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20865
20866 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20867
20868 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20869
20870
20871 ac_config_files="$ac_config_files Makefile.config"
20872
20873
20874 ac_config_files="$ac_config_files llvm.spec"
20875
20876
20877 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20878
20879
20880 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20881
20882
20883 ac_config_commands="$ac_config_commands setup"
20884
20885 ac_config_commands="$ac_config_commands Makefile"
20886
20887
20888 ac_config_commands="$ac_config_commands Makefile.common"
20889
20890
20891 ac_config_commands="$ac_config_commands examples/Makefile"
20892
20893
20894 ac_config_commands="$ac_config_commands lib/Makefile"
20895
20896
20897 ac_config_commands="$ac_config_commands runtime/Makefile"
20898
20899
20900 ac_config_commands="$ac_config_commands test/Makefile"
20901
20902
20903 ac_config_commands="$ac_config_commands test/Makefile.tests"
20904
20905
20906 ac_config_commands="$ac_config_commands unittests/Makefile"
20907
20908
20909 ac_config_commands="$ac_config_commands tools/Makefile"
20910
20911
20912 ac_config_commands="$ac_config_commands utils/Makefile"
20913
20914
20915 ac_config_commands="$ac_config_commands projects/Makefile"
20916
20917
20918 ac_config_commands="$ac_config_commands bindings/Makefile"
20919
20920
20921 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20922
20923
20924
20925 cat >confcache <<\_ACEOF
20926 # This file is a shell script that caches the results of configure
20927 # tests run on this system so they can be shared between configure
20928 # scripts and configure runs, see configure's option --config-cache.
20929 # It is not useful on other systems.  If it contains results you don't
20930 # want to keep, you may remove or edit it.
20931 #
20932 # config.status only pays attention to the cache file if you give it
20933 # the --recheck option to rerun configure.
20934 #
20935 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20936 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20937 # following values.
20938
20939 _ACEOF
20940
20941 # The following way of writing the cache mishandles newlines in values,
20942 # but we know of no workaround that is simple, portable, and efficient.
20943 # So, we kill variables containing newlines.
20944 # Ultrix sh set writes to stderr and can't be redirected directly,
20945 # and sets the high bit in the cache file unless we assign to the vars.
20946 (
20947   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20948     eval ac_val=\$$ac_var
20949     case $ac_val in #(
20950     *${as_nl}*)
20951       case $ac_var in #(
20952       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20953 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20954       esac
20955       case $ac_var in #(
20956       _ | IFS | as_nl) ;; #(
20957       *) $as_unset $ac_var ;;
20958       esac ;;
20959     esac
20960   done
20961
20962   (set) 2>&1 |
20963     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20964     *${as_nl}ac_space=\ *)
20965       # `set' does not quote correctly, so add quotes (double-quote
20966       # substitution turns \\\\ into \\, and sed turns \\ into \).
20967       sed -n \
20968         "s/'/'\\\\''/g;
20969           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20970       ;; #(
20971     *)
20972       # `set' quotes correctly as required by POSIX, so do not add quotes.
20973       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20974       ;;
20975     esac |
20976     sort
20977 ) |
20978   sed '
20979      /^ac_cv_env_/b end
20980      t clear
20981      :clear
20982      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20983      t end
20984      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20985      :end' >>confcache
20986 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20987   if test -w "$cache_file"; then
20988     test "x$cache_file" != "x/dev/null" &&
20989       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20990 echo "$as_me: updating cache $cache_file" >&6;}
20991     cat confcache >$cache_file
20992   else
20993     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20994 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20995   fi
20996 fi
20997 rm -f confcache
20998
20999 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21000 # Let make expand exec_prefix.
21001 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21002
21003 DEFS=-DHAVE_CONFIG_H
21004
21005 ac_libobjs=
21006 ac_ltlibobjs=
21007 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21008   # 1. Remove the extension, and $U if already installed.
21009   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21010   ac_i=`echo "$ac_i" | sed "$ac_script"`
21011   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21012   #    will be set to the directory where LIBOBJS objects are built.
21013   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21014   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21015 done
21016 LIBOBJS=$ac_libobjs
21017
21018 LTLIBOBJS=$ac_ltlibobjs
21019
21020
21021 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21022   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21023 Usually this means the macro was only invoked conditionally." >&5
21024 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21025 Usually this means the macro was only invoked conditionally." >&2;}
21026    { (exit 1); exit 1; }; }
21027 fi
21028 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21029   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21030 Usually this means the macro was only invoked conditionally." >&5
21031 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21032 Usually this means the macro was only invoked conditionally." >&2;}
21033    { (exit 1); exit 1; }; }
21034 fi
21035
21036 : ${CONFIG_STATUS=./config.status}
21037 ac_clean_files_save=$ac_clean_files
21038 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21039 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21040 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21041 cat >$CONFIG_STATUS <<_ACEOF
21042 #! $SHELL
21043 # Generated by $as_me.
21044 # Run this file to recreate the current configuration.
21045 # Compiler output produced by configure, useful for debugging
21046 # configure, is in config.log if it exists.
21047
21048 debug=false
21049 ac_cs_recheck=false
21050 ac_cs_silent=false
21051 SHELL=\${CONFIG_SHELL-$SHELL}
21052 _ACEOF
21053
21054 cat >>$CONFIG_STATUS <<\_ACEOF
21055 ## --------------------- ##
21056 ## M4sh Initialization.  ##
21057 ## --------------------- ##
21058
21059 # Be Bourne compatible
21060 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21061   emulate sh
21062   NULLCMD=:
21063   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21064   # is contrary to our usage.  Disable this feature.
21065   alias -g '${1+"$@"}'='"$@"'
21066   setopt NO_GLOB_SUBST
21067 else
21068   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21069 fi
21070 BIN_SH=xpg4; export BIN_SH # for Tru64
21071 DUALCASE=1; export DUALCASE # for MKS sh
21072
21073
21074 # PATH needs CR
21075 # Avoid depending upon Character Ranges.
21076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21079 as_cr_digits='0123456789'
21080 as_cr_alnum=$as_cr_Letters$as_cr_digits
21081
21082 # The user is always right.
21083 if test "${PATH_SEPARATOR+set}" != set; then
21084   echo "#! /bin/sh" >conf$$.sh
21085   echo  "exit 0"   >>conf$$.sh
21086   chmod +x conf$$.sh
21087   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21088     PATH_SEPARATOR=';'
21089   else
21090     PATH_SEPARATOR=:
21091   fi
21092   rm -f conf$$.sh
21093 fi
21094
21095 # Support unset when possible.
21096 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21097   as_unset=unset
21098 else
21099   as_unset=false
21100 fi
21101
21102
21103 # IFS
21104 # We need space, tab and new line, in precisely that order.  Quoting is
21105 # there to prevent editors from complaining about space-tab.
21106 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21107 # splitting by setting IFS to empty value.)
21108 as_nl='
21109 '
21110 IFS=" ""        $as_nl"
21111
21112 # Find who we are.  Look in the path if we contain no directory separator.
21113 case $0 in
21114   *[\\/]* ) as_myself=$0 ;;
21115   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21116 for as_dir in $PATH
21117 do
21118   IFS=$as_save_IFS
21119   test -z "$as_dir" && as_dir=.
21120   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21121 done
21122 IFS=$as_save_IFS
21123
21124      ;;
21125 esac
21126 # We did not find ourselves, most probably we were run as `sh COMMAND'
21127 # in which case we are not to be found in the path.
21128 if test "x$as_myself" = x; then
21129   as_myself=$0
21130 fi
21131 if test ! -f "$as_myself"; then
21132   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21133   { (exit 1); exit 1; }
21134 fi
21135
21136 # Work around bugs in pre-3.0 UWIN ksh.
21137 for as_var in ENV MAIL MAILPATH
21138 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21139 done
21140 PS1='$ '
21141 PS2='> '
21142 PS4='+ '
21143
21144 # NLS nuisances.
21145 for as_var in \
21146   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21147   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21148   LC_TELEPHONE LC_TIME
21149 do
21150   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21151     eval $as_var=C; export $as_var
21152   else
21153     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21154   fi
21155 done
21156
21157 # Required to use basename.
21158 if expr a : '\(a\)' >/dev/null 2>&1 &&
21159    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21160   as_expr=expr
21161 else
21162   as_expr=false
21163 fi
21164
21165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21166   as_basename=basename
21167 else
21168   as_basename=false
21169 fi
21170
21171
21172 # Name of the executable.
21173 as_me=`$as_basename -- "$0" ||
21174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21175          X"$0" : 'X\(//\)$' \| \
21176          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21177 echo X/"$0" |
21178     sed '/^.*\/\([^/][^/]*\)\/*$/{
21179             s//\1/
21180             q
21181           }
21182           /^X\/\(\/\/\)$/{
21183             s//\1/
21184             q
21185           }
21186           /^X\/\(\/\).*/{
21187             s//\1/
21188             q
21189           }
21190           s/.*/./; q'`
21191
21192 # CDPATH.
21193 $as_unset CDPATH
21194
21195
21196
21197   as_lineno_1=$LINENO
21198   as_lineno_2=$LINENO
21199   test "x$as_lineno_1" != "x$as_lineno_2" &&
21200   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21201
21202   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21203   # uniformly replaced by the line number.  The first 'sed' inserts a
21204   # line-number line after each line using $LINENO; the second 'sed'
21205   # does the real work.  The second script uses 'N' to pair each
21206   # line-number line with the line containing $LINENO, and appends
21207   # trailing '-' during substitution so that $LINENO is not a special
21208   # case at line end.
21209   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21210   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21211   # E. McMahon (1931-1989) for sed's syntax.  :-)
21212   sed -n '
21213     p
21214     /[$]LINENO/=
21215   ' <$as_myself |
21216     sed '
21217       s/[$]LINENO.*/&-/
21218       t lineno
21219       b
21220       :lineno
21221       N
21222       :loop
21223       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21224       t loop
21225       s/-\n.*//
21226     ' >$as_me.lineno &&
21227   chmod +x "$as_me.lineno" ||
21228     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21229    { (exit 1); exit 1; }; }
21230
21231   # Don't try to exec as it changes $[0], causing all sort of problems
21232   # (the dirname of $[0] is not the place where we might find the
21233   # original and so on.  Autoconf is especially sensitive to this).
21234   . "./$as_me.lineno"
21235   # Exit status is that of the last command.
21236   exit
21237 }
21238
21239
21240 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21241   as_dirname=dirname
21242 else
21243   as_dirname=false
21244 fi
21245
21246 ECHO_C= ECHO_N= ECHO_T=
21247 case `echo -n x` in
21248 -n*)
21249   case `echo 'x\c'` in
21250   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21251   *)   ECHO_C='\c';;
21252   esac;;
21253 *)
21254   ECHO_N='-n';;
21255 esac
21256
21257 if expr a : '\(a\)' >/dev/null 2>&1 &&
21258    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21259   as_expr=expr
21260 else
21261   as_expr=false
21262 fi
21263
21264 rm -f conf$$ conf$$.exe conf$$.file
21265 if test -d conf$$.dir; then
21266   rm -f conf$$.dir/conf$$.file
21267 else
21268   rm -f conf$$.dir
21269   mkdir conf$$.dir
21270 fi
21271 echo >conf$$.file
21272 if ln -s conf$$.file conf$$ 2>/dev/null; then
21273   as_ln_s='ln -s'
21274   # ... but there are two gotchas:
21275   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21276   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21277   # In both cases, we have to default to `cp -p'.
21278   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21279     as_ln_s='cp -p'
21280 elif ln conf$$.file conf$$ 2>/dev/null; then
21281   as_ln_s=ln
21282 else
21283   as_ln_s='cp -p'
21284 fi
21285 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21286 rmdir conf$$.dir 2>/dev/null
21287
21288 if mkdir -p . 2>/dev/null; then
21289   as_mkdir_p=:
21290 else
21291   test -d ./-p && rmdir ./-p
21292   as_mkdir_p=false
21293 fi
21294
21295 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21296 # systems may use methods other than mode bits to determine executability.
21297 cat >conf$$.file <<_ASEOF
21298 #! /bin/sh
21299 exit 0
21300 _ASEOF
21301 chmod +x conf$$.file
21302 if test -x conf$$.file >/dev/null 2>&1; then
21303   as_executable_p="test -x"
21304 else
21305   as_executable_p=:
21306 fi
21307 rm -f conf$$.file
21308
21309 # Sed expression to map a string onto a valid CPP name.
21310 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21311
21312 # Sed expression to map a string onto a valid variable name.
21313 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21314
21315
21316 exec 6>&1
21317
21318 # Save the log message, to keep $[0] and so on meaningful, and to
21319 # report actual input values of CONFIG_FILES etc. instead of their
21320 # values after options handling.
21321 ac_log="
21322 This file was extended by llvm $as_me 2.8svn, which was
21323 generated by GNU Autoconf 2.60.  Invocation command line was
21324
21325   CONFIG_FILES    = $CONFIG_FILES
21326   CONFIG_HEADERS  = $CONFIG_HEADERS
21327   CONFIG_LINKS    = $CONFIG_LINKS
21328   CONFIG_COMMANDS = $CONFIG_COMMANDS
21329   $ $0 $@
21330
21331 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21332 "
21333
21334 _ACEOF
21335
21336 cat >>$CONFIG_STATUS <<_ACEOF
21337 # Files that config.status was made for.
21338 config_files="$ac_config_files"
21339 config_headers="$ac_config_headers"
21340 config_commands="$ac_config_commands"
21341
21342 _ACEOF
21343
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21345 ac_cs_usage="\
21346 \`$as_me' instantiates files from templates according to the
21347 current configuration.
21348
21349 Usage: $0 [OPTIONS] [FILE]...
21350
21351   -h, --help       print this help, then exit
21352   -V, --version    print version number, then exit
21353   -q, --quiet      do not print progress messages
21354   -d, --debug      don't remove temporary files
21355       --recheck    update $as_me by reconfiguring in the same conditions
21356   --file=FILE[:TEMPLATE]
21357                    instantiate the configuration file FILE
21358   --header=FILE[:TEMPLATE]
21359                    instantiate the configuration header FILE
21360
21361 Configuration files:
21362 $config_files
21363
21364 Configuration headers:
21365 $config_headers
21366
21367 Configuration commands:
21368 $config_commands
21369
21370 Report bugs to <bug-autoconf@gnu.org>."
21371
21372 _ACEOF
21373 cat >>$CONFIG_STATUS <<_ACEOF
21374 ac_cs_version="\\
21375 llvm config.status 2.8svn
21376 configured by $0, generated by GNU Autoconf 2.60,
21377   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21378
21379 Copyright (C) 2006 Free Software Foundation, Inc.
21380 This config.status script is free software; the Free Software Foundation
21381 gives unlimited permission to copy, distribute and modify it."
21382
21383 ac_pwd='$ac_pwd'
21384 srcdir='$srcdir'
21385 INSTALL='$INSTALL'
21386 _ACEOF
21387
21388 cat >>$CONFIG_STATUS <<\_ACEOF
21389 # If no file are specified by the user, then we need to provide default
21390 # value.  By we need to know if files were specified by the user.
21391 ac_need_defaults=:
21392 while test $# != 0
21393 do
21394   case $1 in
21395   --*=*)
21396     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21397     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21398     ac_shift=:
21399     ;;
21400   *)
21401     ac_option=$1
21402     ac_optarg=$2
21403     ac_shift=shift
21404     ;;
21405   esac
21406
21407   case $ac_option in
21408   # Handling of the options.
21409   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21410     ac_cs_recheck=: ;;
21411   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21412     echo "$ac_cs_version"; exit ;;
21413   --debug | --debu | --deb | --de | --d | -d )
21414     debug=: ;;
21415   --file | --fil | --fi | --f )
21416     $ac_shift
21417     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21418     ac_need_defaults=false;;
21419   --header | --heade | --head | --hea )
21420     $ac_shift
21421     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21422     ac_need_defaults=false;;
21423   --he | --h)
21424     # Conflict between --help and --header
21425     { echo "$as_me: error: ambiguous option: $1
21426 Try \`$0 --help' for more information." >&2
21427    { (exit 1); exit 1; }; };;
21428   --help | --hel | -h )
21429     echo "$ac_cs_usage"; exit ;;
21430   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21431   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21432     ac_cs_silent=: ;;
21433
21434   # This is an error.
21435   -*) { echo "$as_me: error: unrecognized option: $1
21436 Try \`$0 --help' for more information." >&2
21437    { (exit 1); exit 1; }; } ;;
21438
21439   *) ac_config_targets="$ac_config_targets $1"
21440      ac_need_defaults=false ;;
21441
21442   esac
21443   shift
21444 done
21445
21446 ac_configure_extra_args=
21447
21448 if $ac_cs_silent; then
21449   exec 6>/dev/null
21450   ac_configure_extra_args="$ac_configure_extra_args --silent"
21451 fi
21452
21453 _ACEOF
21454 cat >>$CONFIG_STATUS <<_ACEOF
21455 if \$ac_cs_recheck; then
21456   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21457   CONFIG_SHELL=$SHELL
21458   export CONFIG_SHELL
21459   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21460 fi
21461
21462 _ACEOF
21463 cat >>$CONFIG_STATUS <<\_ACEOF
21464 exec 5>>config.log
21465 {
21466   echo
21467   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21468 ## Running $as_me. ##
21469 _ASBOX
21470   echo "$ac_log"
21471 } >&5
21472
21473 _ACEOF
21474 cat >>$CONFIG_STATUS <<_ACEOF
21475 #
21476 # INIT-COMMANDS
21477 #
21478 llvm_src="${srcdir}"
21479
21480 _ACEOF
21481
21482 cat >>$CONFIG_STATUS <<\_ACEOF
21483
21484 # Handling of arguments.
21485 for ac_config_target in $ac_config_targets
21486 do
21487   case $ac_config_target in
21488     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21489     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21490     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21491     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21492     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21493     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21494     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21495     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21496     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21497     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
21498     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21499     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21500     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21501     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21502     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21503     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21504     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21505     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21506     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21507     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21508     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21509     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21510     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21511     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21512     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21513
21514   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21515 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21516    { (exit 1); exit 1; }; };;
21517   esac
21518 done
21519
21520
21521 # If the user did not use the arguments to specify the items to instantiate,
21522 # then the envvar interface is used.  Set only those that are not.
21523 # We use the long form for the default assignment because of an extremely
21524 # bizarre bug on SunOS 4.1.3.
21525 if $ac_need_defaults; then
21526   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21527   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21528   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21529 fi
21530
21531 # Have a temporary directory for convenience.  Make it in the build tree
21532 # simply because there is no reason against having it here, and in addition,
21533 # creating and moving files from /tmp can sometimes cause problems.
21534 # Hook for its removal unless debugging.
21535 # Note that there is a small window in which the directory will not be cleaned:
21536 # after its creation but before its name has been assigned to `$tmp'.
21537 $debug ||
21538 {
21539   tmp=
21540   trap 'exit_status=$?
21541   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21542 ' 0
21543   trap '{ (exit 1); exit 1; }' 1 2 13 15
21544 }
21545 # Create a (secure) tmp directory for tmp files.
21546
21547 {
21548   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21549   test -n "$tmp" && test -d "$tmp"
21550 }  ||
21551 {
21552   tmp=./conf$$-$RANDOM
21553   (umask 077 && mkdir "$tmp")
21554 } ||
21555 {
21556    echo "$me: cannot create a temporary directory in ." >&2
21557    { (exit 1); exit 1; }
21558 }
21559
21560 #
21561 # Set up the sed scripts for CONFIG_FILES section.
21562 #
21563
21564 # No need to generate the scripts if there are no CONFIG_FILES.
21565 # This happens for instance when ./config.status config.h
21566 if test -n "$CONFIG_FILES"; then
21567
21568 _ACEOF
21569
21570
21571
21572 ac_delim='%!_!# '
21573 for ac_last_try in false false false false false :; do
21574   cat >conf$$subs.sed <<_ACEOF
21575 SHELL!$SHELL$ac_delim
21576 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21577 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21578 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21579 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21580 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21581 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21582 exec_prefix!$exec_prefix$ac_delim
21583 prefix!$prefix$ac_delim
21584 program_transform_name!$program_transform_name$ac_delim
21585 bindir!$bindir$ac_delim
21586 sbindir!$sbindir$ac_delim
21587 libexecdir!$libexecdir$ac_delim
21588 datarootdir!$datarootdir$ac_delim
21589 datadir!$datadir$ac_delim
21590 sysconfdir!$sysconfdir$ac_delim
21591 sharedstatedir!$sharedstatedir$ac_delim
21592 localstatedir!$localstatedir$ac_delim
21593 includedir!$includedir$ac_delim
21594 oldincludedir!$oldincludedir$ac_delim
21595 docdir!$docdir$ac_delim
21596 infodir!$infodir$ac_delim
21597 htmldir!$htmldir$ac_delim
21598 dvidir!$dvidir$ac_delim
21599 pdfdir!$pdfdir$ac_delim
21600 psdir!$psdir$ac_delim
21601 libdir!$libdir$ac_delim
21602 localedir!$localedir$ac_delim
21603 mandir!$mandir$ac_delim
21604 DEFS!$DEFS$ac_delim
21605 ECHO_C!$ECHO_C$ac_delim
21606 ECHO_N!$ECHO_N$ac_delim
21607 ECHO_T!$ECHO_T$ac_delim
21608 LIBS!$LIBS$ac_delim
21609 build_alias!$build_alias$ac_delim
21610 host_alias!$host_alias$ac_delim
21611 target_alias!$target_alias$ac_delim
21612 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21613 subdirs!$subdirs$ac_delim
21614 build!$build$ac_delim
21615 build_cpu!$build_cpu$ac_delim
21616 build_vendor!$build_vendor$ac_delim
21617 build_os!$build_os$ac_delim
21618 host!$host$ac_delim
21619 host_cpu!$host_cpu$ac_delim
21620 host_vendor!$host_vendor$ac_delim
21621 host_os!$host_os$ac_delim
21622 target!$target$ac_delim
21623 target_cpu!$target_cpu$ac_delim
21624 target_vendor!$target_vendor$ac_delim
21625 target_os!$target_os$ac_delim
21626 OS!$OS$ac_delim
21627 HOST_OS!$HOST_OS$ac_delim
21628 TARGET_OS!$TARGET_OS$ac_delim
21629 LINKALL!$LINKALL$ac_delim
21630 NOLINKALL!$NOLINKALL$ac_delim
21631 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21632 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21633 ARCH!$ARCH$ac_delim
21634 ENDIAN!$ENDIAN$ac_delim
21635 CC!$CC$ac_delim
21636 CFLAGS!$CFLAGS$ac_delim
21637 LDFLAGS!$LDFLAGS$ac_delim
21638 CPPFLAGS!$CPPFLAGS$ac_delim
21639 ac_ct_CC!$ac_ct_CC$ac_delim
21640 EXEEXT!$EXEEXT$ac_delim
21641 OBJEXT!$OBJEXT$ac_delim
21642 CPP!$CPP$ac_delim
21643 GREP!$GREP$ac_delim
21644 EGREP!$EGREP$ac_delim
21645 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21646 BUILD_CC!$BUILD_CC$ac_delim
21647 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21648 BUILD_CXX!$BUILD_CXX$ac_delim
21649 CVSBUILD!$CVSBUILD$ac_delim
21650 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21651 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21652 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21653 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21654 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21655 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21656 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21657 JIT!$JIT$ac_delim
21658 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21659 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21660 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21661 ENABLE_PIC!$ENABLE_PIC$ac_delim
21662 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21663 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21664 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21665 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21666 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21667 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21668 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21669 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21670 CLANGPATH!$CLANGPATH$ac_delim
21671 CLANGXXPATH!$CLANGXXPATH$ac_delim
21672 _ACEOF
21673
21674   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21675     break
21676   elif $ac_last_try; then
21677     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21678 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21679    { (exit 1); exit 1; }; }
21680   else
21681     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21682   fi
21683 done
21684
21685 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21686 if test -n "$ac_eof"; then
21687   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21688   ac_eof=`expr $ac_eof + 1`
21689 fi
21690
21691 cat >>$CONFIG_STATUS <<_ACEOF
21692 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21693 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21694 _ACEOF
21695 sed '
21696 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21697 s/^/s,@/; s/!/@,|#_!!_#|/
21698 :n
21699 t n
21700 s/'"$ac_delim"'$/,g/; t
21701 s/$/\\/; p
21702 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21703 ' >>$CONFIG_STATUS <conf$$subs.sed
21704 rm -f conf$$subs.sed
21705 cat >>$CONFIG_STATUS <<_ACEOF
21706 CEOF$ac_eof
21707 _ACEOF
21708
21709
21710 ac_delim='%!_!# '
21711 for ac_last_try in false false false false false :; do
21712   cat >conf$$subs.sed <<_ACEOF
21713 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21714 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21715 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21716 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21717 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21718 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21719 CXX!$CXX$ac_delim
21720 CXXFLAGS!$CXXFLAGS$ac_delim
21721 ac_ct_CXX!$ac_ct_CXX$ac_delim
21722 NM!$NM$ac_delim
21723 ifGNUmake!$ifGNUmake$ac_delim
21724 LN_S!$LN_S$ac_delim
21725 CMP!$CMP$ac_delim
21726 CP!$CP$ac_delim
21727 DATE!$DATE$ac_delim
21728 FIND!$FIND$ac_delim
21729 MKDIR!$MKDIR$ac_delim
21730 MV!$MV$ac_delim
21731 RANLIB!$RANLIB$ac_delim
21732 AR!$AR$ac_delim
21733 RM!$RM$ac_delim
21734 SED!$SED$ac_delim
21735 TAR!$TAR$ac_delim
21736 BINPWD!$BINPWD$ac_delim
21737 GRAPHVIZ!$GRAPHVIZ$ac_delim
21738 DOT!$DOT$ac_delim
21739 FDP!$FDP$ac_delim
21740 NEATO!$NEATO$ac_delim
21741 TWOPI!$TWOPI$ac_delim
21742 CIRCO!$CIRCO$ac_delim
21743 GV!$GV$ac_delim
21744 DOTTY!$DOTTY$ac_delim
21745 PERL!$PERL$ac_delim
21746 HAVE_PERL!$HAVE_PERL$ac_delim
21747 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21748 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21749 INSTALL_DATA!$INSTALL_DATA$ac_delim
21750 BZIP2!$BZIP2$ac_delim
21751 CAT!$CAT$ac_delim
21752 DOXYGEN!$DOXYGEN$ac_delim
21753 GROFF!$GROFF$ac_delim
21754 GZIP!$GZIP$ac_delim
21755 POD2HTML!$POD2HTML$ac_delim
21756 POD2MAN!$POD2MAN$ac_delim
21757 PDFROFF!$PDFROFF$ac_delim
21758 RUNTEST!$RUNTEST$ac_delim
21759 TCLSH!$TCLSH$ac_delim
21760 ZIP!$ZIP$ac_delim
21761 OCAMLC!$OCAMLC$ac_delim
21762 OCAMLOPT!$OCAMLOPT$ac_delim
21763 OCAMLDEP!$OCAMLDEP$ac_delim
21764 OCAMLDOC!$OCAMLDOC$ac_delim
21765 GAS!$GAS$ac_delim
21766 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21767 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21768 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21769 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21770 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21771 LIBADD_DL!$LIBADD_DL$ac_delim
21772 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21773 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21774 LLVMGCC!$LLVMGCC$ac_delim
21775 LLVMGXX!$LLVMGXX$ac_delim
21776 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21777 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21778 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21779 USE_UDIS86!$USE_UDIS86$ac_delim
21780 USE_OPROFILE!$USE_OPROFILE$ac_delim
21781 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21782 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21783 MMAP_FILE!$MMAP_FILE$ac_delim
21784 LLVMCC1!$LLVMCC1$ac_delim
21785 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21786 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21787 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21788 SHLIBEXT!$SHLIBEXT$ac_delim
21789 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21790 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21791 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21792 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21793 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21794 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21795 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21796 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21797 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21798 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21799 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21800 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21801 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21802 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21803 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21804 RPATH!$RPATH$ac_delim
21805 RDYNAMIC!$RDYNAMIC$ac_delim
21806 LIBOBJS!$LIBOBJS$ac_delim
21807 LTLIBOBJS!$LTLIBOBJS$ac_delim
21808 _ACEOF
21809
21810   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
21811     break
21812   elif $ac_last_try; then
21813     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21814 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21815    { (exit 1); exit 1; }; }
21816   else
21817     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21818   fi
21819 done
21820
21821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21822 if test -n "$ac_eof"; then
21823   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21824   ac_eof=`expr $ac_eof + 1`
21825 fi
21826
21827 cat >>$CONFIG_STATUS <<_ACEOF
21828 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21830 _ACEOF
21831 sed '
21832 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21833 s/^/s,@/; s/!/@,|#_!!_#|/
21834 :n
21835 t n
21836 s/'"$ac_delim"'$/,g/; t
21837 s/$/\\/; p
21838 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21839 ' >>$CONFIG_STATUS <conf$$subs.sed
21840 rm -f conf$$subs.sed
21841 cat >>$CONFIG_STATUS <<_ACEOF
21842 :end
21843 s/|#_!!_#|//g
21844 CEOF$ac_eof
21845 _ACEOF
21846
21847
21848 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21849 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21850 # trailing colons and then remove the whole line if VPATH becomes empty
21851 # (actually we leave an empty line to preserve line numbers).
21852 if test "x$srcdir" = x.; then
21853   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21854 s/:*\$(srcdir):*/:/
21855 s/:*\${srcdir}:*/:/
21856 s/:*@srcdir@:*/:/
21857 s/^\([^=]*=[     ]*\):*/\1/
21858 s/:*$//
21859 s/^[^=]*=[       ]*$//
21860 }'
21861 fi
21862
21863 cat >>$CONFIG_STATUS <<\_ACEOF
21864 fi # test -n "$CONFIG_FILES"
21865
21866
21867 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21868 do
21869   case $ac_tag in
21870   :[FHLC]) ac_mode=$ac_tag; continue;;
21871   esac
21872   case $ac_mode$ac_tag in
21873   :[FHL]*:*);;
21874   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21875 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21876    { (exit 1); exit 1; }; };;
21877   :[FH]-) ac_tag=-:-;;
21878   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21879   esac
21880   ac_save_IFS=$IFS
21881   IFS=:
21882   set x $ac_tag
21883   IFS=$ac_save_IFS
21884   shift
21885   ac_file=$1
21886   shift
21887
21888   case $ac_mode in
21889   :L) ac_source=$1;;
21890   :[FH])
21891     ac_file_inputs=
21892     for ac_f
21893     do
21894       case $ac_f in
21895       -) ac_f="$tmp/stdin";;
21896       *) # Look for the file first in the build tree, then in the source tree
21897          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21898          # because $ac_f cannot contain `:'.
21899          test -f "$ac_f" ||
21900            case $ac_f in
21901            [\\/$]*) false;;
21902            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21903            esac ||
21904            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21905 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21906    { (exit 1); exit 1; }; };;
21907       esac
21908       ac_file_inputs="$ac_file_inputs $ac_f"
21909     done
21910
21911     # Let's still pretend it is `configure' which instantiates (i.e., don't
21912     # use $as_me), people would be surprised to read:
21913     #    /* config.h.  Generated by config.status.  */
21914     configure_input="Generated from "`IFS=:
21915           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21916     if test x"$ac_file" != x-; then
21917       configure_input="$ac_file.  $configure_input"
21918       { echo "$as_me:$LINENO: creating $ac_file" >&5
21919 echo "$as_me: creating $ac_file" >&6;}
21920     fi
21921
21922     case $ac_tag in
21923     *:-:* | *:-) cat >"$tmp/stdin";;
21924     esac
21925     ;;
21926   esac
21927
21928   ac_dir=`$as_dirname -- "$ac_file" ||
21929 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21930          X"$ac_file" : 'X\(//\)[^/]' \| \
21931          X"$ac_file" : 'X\(//\)$' \| \
21932          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21933 echo X"$ac_file" |
21934     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21935             s//\1/
21936             q
21937           }
21938           /^X\(\/\/\)[^/].*/{
21939             s//\1/
21940             q
21941           }
21942           /^X\(\/\/\)$/{
21943             s//\1/
21944             q
21945           }
21946           /^X\(\/\).*/{
21947             s//\1/
21948             q
21949           }
21950           s/.*/./; q'`
21951   { as_dir="$ac_dir"
21952   case $as_dir in #(
21953   -*) as_dir=./$as_dir;;
21954   esac
21955   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21956     as_dirs=
21957     while :; do
21958       case $as_dir in #(
21959       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21960       *) as_qdir=$as_dir;;
21961       esac
21962       as_dirs="'$as_qdir' $as_dirs"
21963       as_dir=`$as_dirname -- "$as_dir" ||
21964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21965          X"$as_dir" : 'X\(//\)[^/]' \| \
21966          X"$as_dir" : 'X\(//\)$' \| \
21967          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21968 echo X"$as_dir" |
21969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21970             s//\1/
21971             q
21972           }
21973           /^X\(\/\/\)[^/].*/{
21974             s//\1/
21975             q
21976           }
21977           /^X\(\/\/\)$/{
21978             s//\1/
21979             q
21980           }
21981           /^X\(\/\).*/{
21982             s//\1/
21983             q
21984           }
21985           s/.*/./; q'`
21986       test -d "$as_dir" && break
21987     done
21988     test -z "$as_dirs" || eval "mkdir $as_dirs"
21989   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21990 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21991    { (exit 1); exit 1; }; }; }
21992   ac_builddir=.
21993
21994 case "$ac_dir" in
21995 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21996 *)
21997   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21998   # A ".." for each directory in $ac_dir_suffix.
21999   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22000   case $ac_top_builddir_sub in
22001   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22002   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22003   esac ;;
22004 esac
22005 ac_abs_top_builddir=$ac_pwd
22006 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22007 # for backward compatibility:
22008 ac_top_builddir=$ac_top_build_prefix
22009
22010 case $srcdir in
22011   .)  # We are building in place.
22012     ac_srcdir=.
22013     ac_top_srcdir=$ac_top_builddir_sub
22014     ac_abs_top_srcdir=$ac_pwd ;;
22015   [\\/]* | ?:[\\/]* )  # Absolute name.
22016     ac_srcdir=$srcdir$ac_dir_suffix;
22017     ac_top_srcdir=$srcdir
22018     ac_abs_top_srcdir=$srcdir ;;
22019   *) # Relative name.
22020     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22021     ac_top_srcdir=$ac_top_build_prefix$srcdir
22022     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22023 esac
22024 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22025
22026
22027   case $ac_mode in
22028   :F)
22029   #
22030   # CONFIG_FILE
22031   #
22032
22033   case $INSTALL in
22034   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22035   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22036   esac
22037 _ACEOF
22038
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22040 # If the template does not know about datarootdir, expand it.
22041 # FIXME: This hack should be removed a few years after 2.60.
22042 ac_datarootdir_hack=; ac_datarootdir_seen=
22043
22044 case `sed -n '/datarootdir/ {
22045   p
22046   q
22047 }
22048 /@datadir@/p
22049 /@docdir@/p
22050 /@infodir@/p
22051 /@localedir@/p
22052 /@mandir@/p
22053 ' $ac_file_inputs` in
22054 *datarootdir*) ac_datarootdir_seen=yes;;
22055 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22056   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22057 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22058 _ACEOF
22059 cat >>$CONFIG_STATUS <<_ACEOF
22060   ac_datarootdir_hack='
22061   s&@datadir@&$datadir&g
22062   s&@docdir@&$docdir&g
22063   s&@infodir@&$infodir&g
22064   s&@localedir@&$localedir&g
22065   s&@mandir@&$mandir&g
22066     s&\\\${datarootdir}&$datarootdir&g' ;;
22067 esac
22068 _ACEOF
22069
22070 # Neutralize VPATH when `$srcdir' = `.'.
22071 # Shell code in configure.ac might set extrasub.
22072 # FIXME: do we really want to maintain this feature?
22073 cat >>$CONFIG_STATUS <<_ACEOF
22074   sed "$ac_vpsub
22075 $extrasub
22076 _ACEOF
22077 cat >>$CONFIG_STATUS <<\_ACEOF
22078 :t
22079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22080 s&@configure_input@&$configure_input&;t t
22081 s&@top_builddir@&$ac_top_builddir_sub&;t t
22082 s&@srcdir@&$ac_srcdir&;t t
22083 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22084 s&@top_srcdir@&$ac_top_srcdir&;t t
22085 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22086 s&@builddir@&$ac_builddir&;t t
22087 s&@abs_builddir@&$ac_abs_builddir&;t t
22088 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22089 s&@INSTALL@&$ac_INSTALL&;t t
22090 $ac_datarootdir_hack
22091 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22092
22093 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22094   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22095   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22096   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22097 which seems to be undefined.  Please make sure it is defined." >&5
22098 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22099 which seems to be undefined.  Please make sure it is defined." >&2;}
22100
22101   rm -f "$tmp/stdin"
22102   case $ac_file in
22103   -) cat "$tmp/out"; rm -f "$tmp/out";;
22104   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22105   esac
22106  ;;
22107   :H)
22108   #
22109   # CONFIG_HEADER
22110   #
22111 _ACEOF
22112
22113 # Transform confdefs.h into a sed script `conftest.defines', that
22114 # substitutes the proper values into config.h.in to produce config.h.
22115 rm -f conftest.defines conftest.tail
22116 # First, append a space to every undef/define line, to ease matching.
22117 echo 's/$/ /' >conftest.defines
22118 # Then, protect against being on the right side of a sed subst, or in
22119 # an unquoted here document, in config.status.  If some macros were
22120 # called several times there might be several #defines for the same
22121 # symbol, which is useless.  But do not sort them, since the last
22122 # AC_DEFINE must be honored.
22123 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22124 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22125 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22126 # PARAMS is the parameter list in the macro definition--in most cases, it's
22127 # just an empty string.
22128 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22129 ac_dB='\\)[      (].*,\\1define\\2'
22130 ac_dC=' '
22131 ac_dD=' ,'
22132
22133 uniq confdefs.h |
22134   sed -n '
22135         t rset
22136         :rset
22137         s/^[     ]*#[    ]*define[       ][      ]*//
22138         t ok
22139         d
22140         :ok
22141         s/[\\&,]/\\&/g
22142         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22143         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22144   ' >>conftest.defines
22145
22146 # Remove the space that was appended to ease matching.
22147 # Then replace #undef with comments.  This is necessary, for
22148 # example, in the case of _POSIX_SOURCE, which is predefined and required
22149 # on some systems where configure will not decide to define it.
22150 # (The regexp can be short, since the line contains either #define or #undef.)
22151 echo 's/ $//
22152 s,^[     #]*u.*,/* & */,' >>conftest.defines
22153
22154 # Break up conftest.defines:
22155 ac_max_sed_lines=50
22156
22157 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22158 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22159 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22160 # et cetera.
22161 ac_in='$ac_file_inputs'
22162 ac_out='"$tmp/out1"'
22163 ac_nxt='"$tmp/out2"'
22164
22165 while :
22166 do
22167   # Write a here document:
22168     cat >>$CONFIG_STATUS <<_ACEOF
22169     # First, check the format of the line:
22170     cat >"\$tmp/defines.sed" <<\\CEOF
22171 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22172 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22173 b
22174 :def
22175 _ACEOF
22176   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22177   echo 'CEOF
22178     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22179   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22180   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22181   grep . conftest.tail >/dev/null || break
22182   rm -f conftest.defines
22183   mv conftest.tail conftest.defines
22184 done
22185 rm -f conftest.defines conftest.tail
22186
22187 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22188 cat >>$CONFIG_STATUS <<\_ACEOF
22189   if test x"$ac_file" != x-; then
22190     echo "/* $configure_input  */" >"$tmp/config.h"
22191     cat "$ac_result" >>"$tmp/config.h"
22192     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22193       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22194 echo "$as_me: $ac_file is unchanged" >&6;}
22195     else
22196       rm -f $ac_file
22197       mv "$tmp/config.h" $ac_file
22198     fi
22199   else
22200     echo "/* $configure_input  */"
22201     cat "$ac_result"
22202   fi
22203   rm -f "$tmp/out12"
22204  ;;
22205
22206   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22207 echo "$as_me: executing $ac_file commands" >&6;}
22208  ;;
22209   esac
22210
22211
22212   case $ac_file$ac_mode in
22213     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22214    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22215     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22216    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22217     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22218    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22219     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22220    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22221     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22222    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22223     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22224    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22225     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22226    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22227     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22228    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22229     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22230    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22231     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22232    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22233     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22234    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22235     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22236    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22237     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22238    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22239
22240   esac
22241 done # for ac_tag
22242
22243
22244 { (exit 0); exit 0; }
22245 _ACEOF
22246 chmod +x $CONFIG_STATUS
22247 ac_clean_files=$ac_clean_files_save
22248
22249
22250 # configure is writing to config.log, and then calls config.status.
22251 # config.status does its own redirection, appending to config.log.
22252 # Unfortunately, on DOS this fails, as config.log is still kept open
22253 # by configure, so config.status won't be able to write to it; its
22254 # output is simply discarded.  So we exec the FD to /dev/null,
22255 # effectively closing config.log, so it can be properly (re)opened and
22256 # appended to by config.status.  When coming back to configure, we
22257 # need to make the FD available again.
22258 if test "$no_create" != yes; then
22259   ac_cs_success=:
22260   ac_config_status_args=
22261   test "$silent" = yes &&
22262     ac_config_status_args="$ac_config_status_args --quiet"
22263   exec 5>/dev/null
22264   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22265   exec 5>>config.log
22266   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22267   # would make configure fail if this is the last instruction.
22268   $ac_cs_success || { (exit 1); exit 1; }
22269 fi
22270
22271 #
22272 # CONFIG_SUBDIRS section.
22273 #
22274 if test "$no_recursion" != yes; then
22275
22276   # Remove --cache-file and --srcdir arguments so they do not pile up.
22277   ac_sub_configure_args=
22278   ac_prev=
22279   eval "set x $ac_configure_args"
22280   shift
22281   for ac_arg
22282   do
22283     if test -n "$ac_prev"; then
22284       ac_prev=
22285       continue
22286     fi
22287     case $ac_arg in
22288     -cache-file | --cache-file | --cache-fil | --cache-fi \
22289     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22290       ac_prev=cache_file ;;
22291     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22292     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22293     | --c=*)
22294       ;;
22295     --config-cache | -C)
22296       ;;
22297     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22298       ac_prev=srcdir ;;
22299     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22300       ;;
22301     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22302       ac_prev=prefix ;;
22303     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22304       ;;
22305     *)
22306       case $ac_arg in
22307       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22308       esac
22309       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22310     esac
22311   done
22312
22313   # Always prepend --prefix to ensure using the same prefix
22314   # in subdir configurations.
22315   ac_arg="--prefix=$prefix"
22316   case $ac_arg in
22317   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22318   esac
22319   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22320
22321   ac_popdir=`pwd`
22322   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22323
22324     # Do not complain, so a configure script can configure whichever
22325     # parts of a large source tree are present.
22326     test -d "$srcdir/$ac_dir" || continue
22327
22328     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22329     echo "$as_me:$LINENO: $ac_msg" >&5
22330     echo "$ac_msg" >&6
22331     { as_dir="$ac_dir"
22332   case $as_dir in #(
22333   -*) as_dir=./$as_dir;;
22334   esac
22335   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22336     as_dirs=
22337     while :; do
22338       case $as_dir in #(
22339       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22340       *) as_qdir=$as_dir;;
22341       esac
22342       as_dirs="'$as_qdir' $as_dirs"
22343       as_dir=`$as_dirname -- "$as_dir" ||
22344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22345          X"$as_dir" : 'X\(//\)[^/]' \| \
22346          X"$as_dir" : 'X\(//\)$' \| \
22347          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22348 echo X"$as_dir" |
22349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22350             s//\1/
22351             q
22352           }
22353           /^X\(\/\/\)[^/].*/{
22354             s//\1/
22355             q
22356           }
22357           /^X\(\/\/\)$/{
22358             s//\1/
22359             q
22360           }
22361           /^X\(\/\).*/{
22362             s//\1/
22363             q
22364           }
22365           s/.*/./; q'`
22366       test -d "$as_dir" && break
22367     done
22368     test -z "$as_dirs" || eval "mkdir $as_dirs"
22369   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22370 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22371    { (exit 1); exit 1; }; }; }
22372     ac_builddir=.
22373
22374 case "$ac_dir" in
22375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22376 *)
22377   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22378   # A ".." for each directory in $ac_dir_suffix.
22379   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22380   case $ac_top_builddir_sub in
22381   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22382   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22383   esac ;;
22384 esac
22385 ac_abs_top_builddir=$ac_pwd
22386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22387 # for backward compatibility:
22388 ac_top_builddir=$ac_top_build_prefix
22389
22390 case $srcdir in
22391   .)  # We are building in place.
22392     ac_srcdir=.
22393     ac_top_srcdir=$ac_top_builddir_sub
22394     ac_abs_top_srcdir=$ac_pwd ;;
22395   [\\/]* | ?:[\\/]* )  # Absolute name.
22396     ac_srcdir=$srcdir$ac_dir_suffix;
22397     ac_top_srcdir=$srcdir
22398     ac_abs_top_srcdir=$srcdir ;;
22399   *) # Relative name.
22400     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22401     ac_top_srcdir=$ac_top_build_prefix$srcdir
22402     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22403 esac
22404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22405
22406
22407     cd "$ac_dir"
22408
22409     # Check for guested configure; otherwise get Cygnus style configure.
22410     if test -f "$ac_srcdir/configure.gnu"; then
22411       ac_sub_configure=$ac_srcdir/configure.gnu
22412     elif test -f "$ac_srcdir/configure"; then
22413       ac_sub_configure=$ac_srcdir/configure
22414     elif test -f "$ac_srcdir/configure.in"; then
22415       # This should be Cygnus configure.
22416       ac_sub_configure=$ac_aux_dir/configure
22417     else
22418       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22419 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22420       ac_sub_configure=
22421     fi
22422
22423     # The recursion is here.
22424     if test -n "$ac_sub_configure"; then
22425       # Make the cache file name correct relative to the subdirectory.
22426       case $cache_file in
22427       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22428       *) # Relative name.
22429         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22430       esac
22431
22432       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22433 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22434       # The eval makes quoting arguments work.
22435       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22436            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22437         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22438 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22439    { (exit 1); exit 1; }; }
22440     fi
22441
22442     cd "$ac_popdir"
22443   done
22444 fi
22445