Fix test.
[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.9svn.
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.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
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 ENABLE_POLLY
645 LLVM_HAS_POLLY
646 build
647 build_cpu
648 build_vendor
649 build_os
650 host
651 host_cpu
652 host_vendor
653 host_os
654 target
655 target_cpu
656 target_vendor
657 target_os
658 OS
659 HOST_OS
660 TARGET_OS
661 LINKALL
662 NOLINKALL
663 LLVM_ON_UNIX
664 LLVM_ON_WIN32
665 ARCH
666 ENDIAN
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CPP
675 GREP
676 EGREP
677 LLVM_CROSS_COMPILING
678 BUILD_CC
679 BUILD_EXEEXT
680 BUILD_CXX
681 CVSBUILD
682 ENABLE_OPTIMIZED
683 ENABLE_PROFILING
684 DISABLE_ASSERTIONS
685 ENABLE_EXPENSIVE_CHECKS
686 EXPENSIVE_CHECKS
687 DEBUG_RUNTIME
688 DEBUG_SYMBOLS
689 JIT
690 TARGET_HAS_JIT
691 ENABLE_DOXYGEN
692 ENABLE_THREADS
693 ENABLE_PIC
694 ENABLE_SHARED
695 ENABLE_TIMESTAMPS
696 TARGETS_TO_BUILD
697 LLVM_ENUM_TARGETS
698 LLVM_ENUM_ASM_PRINTERS
699 LLVM_ENUM_ASM_PARSERS
700 LLVM_ENUM_DISASSEMBLERS
701 ENABLE_CBE_PRINTF_A
702 CLANGPATH
703 CLANGXXPATH
704 ENABLE_BUILT_CLANG
705 OPTIMIZE_OPTION
706 EXTRA_OPTIONS
707 BINUTILS_INCDIR
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 XDOT_PY
735 PERL
736 HAVE_PERL
737 INSTALL_PROGRAM
738 INSTALL_SCRIPT
739 INSTALL_DATA
740 BZIP2
741 CAT
742 DOXYGEN
743 GROFF
744 GZIP
745 POD2HTML
746 POD2MAN
747 PDFROFF
748 RUNTEST
749 TCLSH
750 ZIP
751 OCAMLC
752 OCAMLOPT
753 OCAMLDEP
754 OCAMLDOC
755 GAS
756 HAVE_LINK_VERSION_SCRIPT
757 INSTALL_LTDL_TRUE
758 INSTALL_LTDL_FALSE
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
761 LIBADD_DL
762 LLVMGCCCOMMAND
763 LLVMGXXCOMMAND
764 LLVMGCC
765 LLVMGXX
766 LLVMCC_OPTION
767 NO_VARIADIC_MACROS
768 NO_MISSING_FIELD_INITIALIZERS
769 USE_UDIS86
770 USE_OPROFILE
771 HAVE_PTHREAD
772 HUGE_VAL_SANITY
773 MMAP_FILE
774 LLVMCC1
775 LLVMCC1PLUS
776 LLVMGCCDIR
777 LLVMGCC_LANGS
778 SHLIBEXT
779 SHLIBPATH_VAR
780 LLVM_PREFIX
781 LLVM_BINDIR
782 LLVM_LIBDIR
783 LLVM_DATADIR
784 LLVM_DOCSDIR
785 LLVM_ETCDIR
786 LLVM_INCLUDEDIR
787 LLVM_INFODIR
788 LLVM_MANDIR
789 LLVM_CONFIGTIME
790 BINDINGS_TO_BUILD
791 ALL_BINDINGS
792 OCAML_LIBDIR
793 ENABLE_VISIBILITY_INLINES_HIDDEN
794 RPATH
795 RDYNAMIC
796 LIBOBJS
797 LTLIBOBJS'
798 ac_subst_files=''
799       ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 CPPFLAGS
806 CPP
807 CXX
808 CXXFLAGS
809 CCC'
810 ac_subdirs_all='projects/llvm-gcc
811 projects/test-suite
812 projects/llvm-test
813 projects/poolalloc
814 projects/llvm-poolalloc
815 projects/sample
816 projects/privbracket
817 projects/llvm-stacker
818 projects/llvm-reopt
819 projects/llvm-java
820 projects/llvm-tv
821 projects/safecode
822 projects/llvm-kernel
823 tools/polly'
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875   # If the previous option needs an argument, assign it.
876   if test -n "$ac_prev"; then
877     eval $ac_prev=\$ac_option
878     ac_prev=
879     continue
880   fi
881
882   case $ac_option in
883   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884   *)    ac_optarg=yes ;;
885   esac
886
887   # Accept the important Cygnus configure options, so we can diagnose typos.
888
889   case $ac_dashdash$ac_option in
890   --)
891     ac_dashdash=yes ;;
892
893   -bindir | --bindir | --bindi | --bind | --bin | --bi)
894     ac_prev=bindir ;;
895   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896     bindir=$ac_optarg ;;
897
898   -build | --build | --buil | --bui | --bu)
899     ac_prev=build_alias ;;
900   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901     build_alias=$ac_optarg ;;
902
903   -cache-file | --cache-file | --cache-fil | --cache-fi \
904   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905     ac_prev=cache_file ;;
906   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908     cache_file=$ac_optarg ;;
909
910   --config-cache | -C)
911     cache_file=config.cache ;;
912
913   -datadir | --datadir | --datadi | --datad)
914     ac_prev=datadir ;;
915   -datadir=* | --datadir=* | --datadi=* | --datad=*)
916     datadir=$ac_optarg ;;
917
918   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919   | --dataroo | --dataro | --datar)
920     ac_prev=datarootdir ;;
921   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923     datarootdir=$ac_optarg ;;
924
925   -disable-* | --disable-*)
926     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930    { (exit 1); exit 1; }; }
931     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932     eval enable_$ac_feature=no ;;
933
934   -docdir | --docdir | --docdi | --doc | --do)
935     ac_prev=docdir ;;
936   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937     docdir=$ac_optarg ;;
938
939   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940     ac_prev=dvidir ;;
941   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942     dvidir=$ac_optarg ;;
943
944   -enable-* | --enable-*)
945     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949    { (exit 1); exit 1; }; }
950     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951     eval enable_$ac_feature=\$ac_optarg ;;
952
953   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955   | --exec | --exe | --ex)
956     ac_prev=exec_prefix ;;
957   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959   | --exec=* | --exe=* | --ex=*)
960     exec_prefix=$ac_optarg ;;
961
962   -gas | --gas | --ga | --g)
963     # Obsolete; use --with-gas.
964     with_gas=yes ;;
965
966   -help | --help | --hel | --he | -h)
967     ac_init_help=long ;;
968   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969     ac_init_help=recursive ;;
970   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971     ac_init_help=short ;;
972
973   -host | --host | --hos | --ho)
974     ac_prev=host_alias ;;
975   -host=* | --host=* | --hos=* | --ho=*)
976     host_alias=$ac_optarg ;;
977
978   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979     ac_prev=htmldir ;;
980   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981   | --ht=*)
982     htmldir=$ac_optarg ;;
983
984   -includedir | --includedir | --includedi | --included | --include \
985   | --includ | --inclu | --incl | --inc)
986     ac_prev=includedir ;;
987   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988   | --includ=* | --inclu=* | --incl=* | --inc=*)
989     includedir=$ac_optarg ;;
990
991   -infodir | --infodir | --infodi | --infod | --info | --inf)
992     ac_prev=infodir ;;
993   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994     infodir=$ac_optarg ;;
995
996   -libdir | --libdir | --libdi | --libd)
997     ac_prev=libdir ;;
998   -libdir=* | --libdir=* | --libdi=* | --libd=*)
999     libdir=$ac_optarg ;;
1000
1001   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002   | --libexe | --libex | --libe)
1003     ac_prev=libexecdir ;;
1004   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005   | --libexe=* | --libex=* | --libe=*)
1006     libexecdir=$ac_optarg ;;
1007
1008   -localedir | --localedir | --localedi | --localed | --locale)
1009     ac_prev=localedir ;;
1010   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011     localedir=$ac_optarg ;;
1012
1013   -localstatedir | --localstatedir | --localstatedi | --localstated \
1014   | --localstate | --localstat | --localsta | --localst | --locals)
1015     ac_prev=localstatedir ;;
1016   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018     localstatedir=$ac_optarg ;;
1019
1020   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021     ac_prev=mandir ;;
1022   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023     mandir=$ac_optarg ;;
1024
1025   -nfp | --nfp | --nf)
1026     # Obsolete; use --without-fp.
1027     with_fp=no ;;
1028
1029   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030   | --no-cr | --no-c | -n)
1031     no_create=yes ;;
1032
1033   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035     no_recursion=yes ;;
1036
1037   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039   | --oldin | --oldi | --old | --ol | --o)
1040     ac_prev=oldincludedir ;;
1041   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044     oldincludedir=$ac_optarg ;;
1045
1046   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047     ac_prev=prefix ;;
1048   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049     prefix=$ac_optarg ;;
1050
1051   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052   | --program-pre | --program-pr | --program-p)
1053     ac_prev=program_prefix ;;
1054   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056     program_prefix=$ac_optarg ;;
1057
1058   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059   | --program-suf | --program-su | --program-s)
1060     ac_prev=program_suffix ;;
1061   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063     program_suffix=$ac_optarg ;;
1064
1065   -program-transform-name | --program-transform-name \
1066   | --program-transform-nam | --program-transform-na \
1067   | --program-transform-n | --program-transform- \
1068   | --program-transform | --program-transfor \
1069   | --program-transfo | --program-transf \
1070   | --program-trans | --program-tran \
1071   | --progr-tra | --program-tr | --program-t)
1072     ac_prev=program_transform_name ;;
1073   -program-transform-name=* | --program-transform-name=* \
1074   | --program-transform-nam=* | --program-transform-na=* \
1075   | --program-transform-n=* | --program-transform-=* \
1076   | --program-transform=* | --program-transfor=* \
1077   | --program-transfo=* | --program-transf=* \
1078   | --program-trans=* | --program-tran=* \
1079   | --progr-tra=* | --program-tr=* | --program-t=*)
1080     program_transform_name=$ac_optarg ;;
1081
1082   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083     ac_prev=pdfdir ;;
1084   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085     pdfdir=$ac_optarg ;;
1086
1087   -psdir | --psdir | --psdi | --psd | --ps)
1088     ac_prev=psdir ;;
1089   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090     psdir=$ac_optarg ;;
1091
1092   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093   | -silent | --silent | --silen | --sile | --sil)
1094     silent=yes ;;
1095
1096   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097     ac_prev=sbindir ;;
1098   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099   | --sbi=* | --sb=*)
1100     sbindir=$ac_optarg ;;
1101
1102   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104   | --sharedst | --shareds | --shared | --share | --shar \
1105   | --sha | --sh)
1106     ac_prev=sharedstatedir ;;
1107   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110   | --sha=* | --sh=*)
1111     sharedstatedir=$ac_optarg ;;
1112
1113   -site | --site | --sit)
1114     ac_prev=site ;;
1115   -site=* | --site=* | --sit=*)
1116     site=$ac_optarg ;;
1117
1118   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119     ac_prev=srcdir ;;
1120   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121     srcdir=$ac_optarg ;;
1122
1123   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124   | --syscon | --sysco | --sysc | --sys | --sy)
1125     ac_prev=sysconfdir ;;
1126   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128     sysconfdir=$ac_optarg ;;
1129
1130   -target | --target | --targe | --targ | --tar | --ta | --t)
1131     ac_prev=target_alias ;;
1132   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133     target_alias=$ac_optarg ;;
1134
1135   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136     verbose=yes ;;
1137
1138   -version | --version | --versio | --versi | --vers | -V)
1139     ac_init_version=: ;;
1140
1141   -with-* | --with-*)
1142     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145       { echo "$as_me: error: invalid package name: $ac_package" >&2
1146    { (exit 1); exit 1; }; }
1147     ac_package=`echo $ac_package| sed 's/-/_/g'`
1148     eval with_$ac_package=\$ac_optarg ;;
1149
1150   -without-* | --without-*)
1151     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid package name: $ac_package" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_package=`echo $ac_package | sed 's/-/_/g'`
1157     eval with_$ac_package=no ;;
1158
1159   --x)
1160     # Obsolete; use --with-x.
1161     with_x=yes ;;
1162
1163   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164   | --x-incl | --x-inc | --x-in | --x-i)
1165     ac_prev=x_includes ;;
1166   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168     x_includes=$ac_optarg ;;
1169
1170   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172     ac_prev=x_libraries ;;
1173   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175     x_libraries=$ac_optarg ;;
1176
1177   -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179    { (exit 1); exit 1; }; }
1180     ;;
1181
1182   *=*)
1183     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187    { (exit 1); exit 1; }; }
1188     eval $ac_envvar=\$ac_optarg
1189     export $ac_envvar ;;
1190
1191   *)
1192     # FIXME: should be removed in autoconf 3.0.
1193     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197     ;;
1198
1199   esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204   { echo "$as_me: error: missing argument to $ac_option" >&2
1205    { (exit 1); exit 1; }; }
1206 fi
1207
1208 # Be sure to have absolute directory names.
1209 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210                 datadir sysconfdir sharedstatedir localstatedir includedir \
1211                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212                 libdir localedir mandir
1213 do
1214   eval ac_val=\$$ac_var
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220    { (exit 1); exit 1; }; }
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235     If a cross compiler is detected then cross compile mode will be used." >&2
1236   elif test "x$build_alias" != "x$host_alias"; then
1237     cross_compiling=yes
1238   fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250   { echo "$as_me: error: Working directory cannot be determined" >&2
1251    { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253   { echo "$as_me: error: pwd does not report name of working directory" >&2
1254    { (exit 1); exit 1; }; }
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$0" : 'X\(//\)[^/]' \| \
1264          X"$0" : 'X\(//\)$' \| \
1265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266 echo X"$0" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294    { (exit 1); exit 1; }; }
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299    { (exit 1); exit 1; }; }
1300         pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303   srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_env_${ac_var}_value=\$${ac_var}
1314   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322   # Omit some internal or obsolete options to make the list less imposing.
1323   # This message is too long to be a string in the A/UX 3.1 sh.
1324   cat <<_ACEOF
1325 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335   -h, --help              display this help and exit
1336       --help=short        display options specific to this package
1337       --help=recursive    display the short help of all the included packages
1338   -V, --version           display version information and exit
1339   -q, --quiet, --silent   do not print \`checking...' messages
1340       --cache-file=FILE   cache test results in FILE [disabled]
1341   -C, --config-cache      alias for \`--cache-file=config.cache'
1342   -n, --no-create         do not create output files
1343       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346   --prefix=PREFIX         install architecture-independent files in PREFIX
1347                           [$ac_default_prefix]
1348   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                           [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359   --bindir=DIR           user executables [EPREFIX/bin]
1360   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1361   --libexecdir=DIR       program executables [EPREFIX/libexec]
1362   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1363   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1364   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1365   --libdir=DIR           object code libraries [EPREFIX/lib]
1366   --includedir=DIR       C header files [PREFIX/include]
1367   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1368   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1369   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1370   --infodir=DIR          info documentation [DATAROOTDIR/info]
1371   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1372   --mandir=DIR           man documentation [DATAROOTDIR/man]
1373   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1374   --htmldir=DIR          html documentation [DOCDIR]
1375   --dvidir=DIR           dvi documentation [DOCDIR]
1376   --pdfdir=DIR           pdf documentation [DOCDIR]
1377   --psdir=DIR            ps documentation [DOCDIR]
1378 _ACEOF
1379
1380   cat <<\_ACEOF
1381
1382 System types:
1383   --build=BUILD     configure for building on BUILD [guessed]
1384   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1385   --target=TARGET   configure for building compilers for TARGET [HOST]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390   case $ac_init_help in
1391      short | recursive ) echo "Configuration of llvm 2.9svn:";;
1392    esac
1393   cat <<\_ACEOF
1394
1395 Optional Features:
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --enable-polly          Use polly if available (default is YES)
1399   --enable-optimized      Compile with optimizations enabled (default is NO)
1400   --enable-profiling      Compile with profiling enabled (default is NO)
1401   --enable-assertions     Compile with assertion checks enabled (default is
1402                           YES)
1403   --enable-expensive-checks
1404                           Compile with expensive debug checks enabled (default
1405                           is NO)
1406   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1407                           NO)
1408   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1409                           optimization is on and YES if it's off)
1410   --enable-jit            Enable Just In Time Compiling (default is YES)
1411   --enable-doxygen        Build doxygen documentation (default is NO)
1412   --enable-threads        Use threads if available (default is YES)
1413   --enable-pic            Build LLVM with Position Independent Code (default
1414                           is YES)
1415   --enable-shared         Build a shared library and link tools against it
1416                           (default is NO)
1417   --enable-timestamps     Enable embedding timestamp information in build
1418                           (default is YES)
1419   --enable-targets        Build specific host targets: all or
1420                           target1,target2,... Valid targets are: host, x86,
1421                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1422                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1423                           (default=all)
1424   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1425                           %a (default is YES)
1426   --enable-bindings       Build specific language bindings:
1427                           all,auto,none,{binding-name} (default=auto)
1428   --enable-libffi         Check for the presence of libffi (default is NO)
1429   --enable-ltdl-install   install libltdl
1430
1431 Optional Packages:
1432   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1433   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1434   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1435                           searches PATH)
1436   --with-llvmgcc          Specify location of llvm-gcc driver (default
1437                           searches PATH)
1438   --with-llvmgxx          Specify location of llvm-g++ driver (default
1439                           searches PATH)
1440   --with-clang            Specify location of clang compiler (default is
1441                           --with-built-clang)
1442   --with-built-clang      Use the compiled Clang as the LLVM compiler
1443                           (default=check)
1444   --with-optimize-option  Select the compiler options to use for optimized
1445                           builds
1446   --with-extra-options    Specify additional options to compile LLVM with
1447   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1448                           is stdlib)
1449   --with-clang-resource-dir
1450                           Relative directory from the Clang binary for
1451                           resource files
1452   --with-c-include-dirs   Colon separated list of directories clang will
1453                           search for headers
1454   --with-cxx-include-root Directory with the libstdc++ headers.
1455   --with-cxx-include-arch Architecture of the libstdc++ headers.
1456   --with-cxx-include-32bit-dir
1457                           32 bit multilib dir.
1458   --with-cxx-include-64bit-dir
1459                           64 bit multilib directory.
1460   --with-binutils-include Specify path to binutils/include/ containing
1461                           plugin-api.h file for gold plugin.
1462   --with-tclinclude       directory where tcl headers are
1463   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1464                           clang, or none; default=check)
1465   --with-udis86=<path>    Use udis86 external x86 disassembler library
1466   --with-oprofile=<prefix>
1467                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1468
1469 Some influential environment variables:
1470   CC          C compiler command
1471   CFLAGS      C compiler flags
1472   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1473               nonstandard directory <lib dir>
1474   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475               you have headers in a nonstandard directory <include dir>
1476   CPP         C preprocessor
1477   CXX         C++ compiler command
1478   CXXFLAGS    C++ compiler flags
1479
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1482
1483 Report bugs to <llvmbugs@cs.uiuc.edu>.
1484 _ACEOF
1485 ac_status=$?
1486 fi
1487
1488 if test "$ac_init_help" = "recursive"; then
1489   # If there are subdirs, report their specific --help.
1490   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491     test -d "$ac_dir" || continue
1492     ac_builddir=.
1493
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *)
1497   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1498   # A ".." for each directory in $ac_dir_suffix.
1499   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1500   case $ac_top_builddir_sub in
1501   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503   esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1509
1510 case $srcdir in
1511   .)  # We are building in place.
1512     ac_srcdir=.
1513     ac_top_srcdir=$ac_top_builddir_sub
1514     ac_abs_top_srcdir=$ac_pwd ;;
1515   [\\/]* | ?:[\\/]* )  # Absolute name.
1516     ac_srcdir=$srcdir$ac_dir_suffix;
1517     ac_top_srcdir=$srcdir
1518     ac_abs_top_srcdir=$srcdir ;;
1519   *) # Relative name.
1520     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521     ac_top_srcdir=$ac_top_build_prefix$srcdir
1522     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526     cd "$ac_dir" || { ac_status=$?; continue; }
1527     # Check for guested configure.
1528     if test -f "$ac_srcdir/configure.gnu"; then
1529       echo &&
1530       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531     elif test -f "$ac_srcdir/configure"; then
1532       echo &&
1533       $SHELL "$ac_srcdir/configure" --help=recursive
1534     else
1535       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536     fi || ac_status=$?
1537     cd "$ac_pwd" || { ac_status=$?; break; }
1538   done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543   cat <<\_ACEOF
1544 llvm configure 2.9svn
1545 generated by GNU Autoconf 2.60
1546
1547 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1548 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1551
1552 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1553 _ACEOF
1554   exit
1555 fi
1556 cat >config.log <<_ACEOF
1557 This file contains any messages produced by compilers while
1558 running configure, to aid debugging if configure makes a mistake.
1559
1560 It was created by llvm $as_me 2.9svn, which was
1561 generated by GNU Autoconf 2.60.  Invocation command line was
1562
1563   $ $0 $@
1564
1565 _ACEOF
1566 exec 5>>config.log
1567 {
1568 cat <<_ASUNAME
1569 ## --------- ##
1570 ## Platform. ##
1571 ## --------- ##
1572
1573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1578
1579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1580 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1581
1582 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1583 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1585 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1586 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1587 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1588 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1589
1590 _ASUNAME
1591
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595   IFS=$as_save_IFS
1596   test -z "$as_dir" && as_dir=.
1597   echo "PATH: $as_dir"
1598 done
1599 IFS=$as_save_IFS
1600
1601 } >&5
1602
1603 cat >&5 <<_ACEOF
1604
1605
1606 ## ----------- ##
1607 ## Core tests. ##
1608 ## ----------- ##
1609
1610 _ACEOF
1611
1612
1613 # Keep a trace of the command line.
1614 # Strip out --no-create and --no-recursion so they do not pile up.
1615 # Strip out --silent because we don't want to record it for future runs.
1616 # Also quote any args containing shell meta-characters.
1617 # Make two passes to allow for proper duplicate-argument suppression.
1618 ac_configure_args=
1619 ac_configure_args0=
1620 ac_configure_args1=
1621 ac_must_keep_next=false
1622 for ac_pass in 1 2
1623 do
1624   for ac_arg
1625   do
1626     case $ac_arg in
1627     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1628     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1629     | -silent | --silent | --silen | --sile | --sil)
1630       continue ;;
1631     *\'*)
1632       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1633     esac
1634     case $ac_pass in
1635     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1636     2)
1637       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1638       if test $ac_must_keep_next = true; then
1639         ac_must_keep_next=false # Got value, back to normal.
1640       else
1641         case $ac_arg in
1642           *=* | --config-cache | -C | -disable-* | --disable-* \
1643           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1644           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1645           | -with-* | --with-* | -without-* | --without-* | --x)
1646             case "$ac_configure_args0 " in
1647               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1648             esac
1649             ;;
1650           -* ) ac_must_keep_next=true ;;
1651         esac
1652       fi
1653       ac_configure_args="$ac_configure_args '$ac_arg'"
1654       ;;
1655     esac
1656   done
1657 done
1658 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1659 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1660
1661 # When interrupted or exit'd, cleanup temporary files, and complete
1662 # config.log.  We remove comments because anyway the quotes in there
1663 # would cause problems or look ugly.
1664 # WARNING: Use '\'' to represent an apostrophe within the trap.
1665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1666 trap 'exit_status=$?
1667   # Save into config.log some information that might help in debugging.
1668   {
1669     echo
1670
1671     cat <<\_ASBOX
1672 ## ---------------- ##
1673 ## Cache variables. ##
1674 ## ---------------- ##
1675 _ASBOX
1676     echo
1677     # The following way of writing the cache mishandles newlines in values,
1678 (
1679   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1680     eval ac_val=\$$ac_var
1681     case $ac_val in #(
1682     *${as_nl}*)
1683       case $ac_var in #(
1684       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1686       esac
1687       case $ac_var in #(
1688       _ | IFS | as_nl) ;; #(
1689       *) $as_unset $ac_var ;;
1690       esac ;;
1691     esac
1692   done
1693   (set) 2>&1 |
1694     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1695     *${as_nl}ac_space=\ *)
1696       sed -n \
1697         "s/'\''/'\''\\\\'\'''\''/g;
1698           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1699       ;; #(
1700     *)
1701       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1702       ;;
1703     esac |
1704     sort
1705 )
1706     echo
1707
1708     cat <<\_ASBOX
1709 ## ----------------- ##
1710 ## Output variables. ##
1711 ## ----------------- ##
1712 _ASBOX
1713     echo
1714     for ac_var in $ac_subst_vars
1715     do
1716       eval ac_val=\$$ac_var
1717       case $ac_val in
1718       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1719       esac
1720       echo "$ac_var='\''$ac_val'\''"
1721     done | sort
1722     echo
1723
1724     if test -n "$ac_subst_files"; then
1725       cat <<\_ASBOX
1726 ## ------------------- ##
1727 ## File substitutions. ##
1728 ## ------------------- ##
1729 _ASBOX
1730       echo
1731       for ac_var in $ac_subst_files
1732       do
1733         eval ac_val=\$$ac_var
1734         case $ac_val in
1735         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736         esac
1737         echo "$ac_var='\''$ac_val'\''"
1738       done | sort
1739       echo
1740     fi
1741
1742     if test -s confdefs.h; then
1743       cat <<\_ASBOX
1744 ## ----------- ##
1745 ## confdefs.h. ##
1746 ## ----------- ##
1747 _ASBOX
1748       echo
1749       cat confdefs.h
1750       echo
1751     fi
1752     test "$ac_signal" != 0 &&
1753       echo "$as_me: caught signal $ac_signal"
1754     echo "$as_me: exit $exit_status"
1755   } >&5
1756   rm -f core *.core core.conftest.* &&
1757     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1758     exit $exit_status
1759 ' 0
1760 for ac_signal in 1 2 13 15; do
1761   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1762 done
1763 ac_signal=0
1764
1765 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1766 rm -f -r conftest* confdefs.h
1767
1768 # Predefined preprocessor variables.
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_NAME "$PACKAGE_NAME"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1782 _ACEOF
1783
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_STRING "$PACKAGE_STRING"
1787 _ACEOF
1788
1789
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1792 _ACEOF
1793
1794
1795 # Let the site file select an alternate cache file if it wants to.
1796 # Prefer explicitly selected file to automatically selected ones.
1797 if test -n "$CONFIG_SITE"; then
1798   set x "$CONFIG_SITE"
1799 elif test "x$prefix" != xNONE; then
1800   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1801 else
1802   set x "$ac_default_prefix/share/config.site" \
1803         "$ac_default_prefix/etc/config.site"
1804 fi
1805 shift
1806 for ac_site_file
1807 do
1808   if test -r "$ac_site_file"; then
1809     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810 echo "$as_me: loading site script $ac_site_file" >&6;}
1811     sed 's/^/| /' "$ac_site_file" >&5
1812     . "$ac_site_file"
1813   fi
1814 done
1815
1816 if test -r "$cache_file"; then
1817   # Some versions of bash will fail to source /dev/null (special
1818   # files actually), so we avoid doing that.
1819   if test -f "$cache_file"; then
1820     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821 echo "$as_me: loading cache $cache_file" >&6;}
1822     case $cache_file in
1823       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1824       *)                      . "./$cache_file";;
1825     esac
1826   fi
1827 else
1828   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829 echo "$as_me: creating cache $cache_file" >&6;}
1830   >$cache_file
1831 fi
1832
1833 # Check that the precious variables saved in the cache have kept the same
1834 # value.
1835 ac_cache_corrupted=false
1836 for ac_var in $ac_precious_vars; do
1837   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838   eval ac_new_set=\$ac_env_${ac_var}_set
1839   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840   eval ac_new_val=\$ac_env_${ac_var}_value
1841   case $ac_old_set,$ac_new_set in
1842     set,)
1843       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1845       ac_cache_corrupted=: ;;
1846     ,set)
1847       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1849       ac_cache_corrupted=: ;;
1850     ,);;
1851     *)
1852       if test "x$ac_old_val" != "x$ac_new_val"; then
1853         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1856 echo "$as_me:   former value:  $ac_old_val" >&2;}
1857         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1858 echo "$as_me:   current value: $ac_new_val" >&2;}
1859         ac_cache_corrupted=:
1860       fi;;
1861   esac
1862   # Pass precious variables to config.status.
1863   if test "$ac_new_set" = set; then
1864     case $ac_new_val in
1865     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1866     *) ac_arg=$ac_var=$ac_new_val ;;
1867     esac
1868     case " $ac_configure_args " in
1869       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1870       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1871     esac
1872   fi
1873 done
1874 if $ac_cache_corrupted; then
1875   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1876 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1877   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1878 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1879    { (exit 1); exit 1; }; }
1880 fi
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906 ac_ext=c
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911
1912
1913
1914 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1915
1916
1917
1918
1919
1920
1921
1922 ac_aux_dir=
1923 for ac_dir in autoconf "$srcdir"/autoconf; do
1924   if test -f "$ac_dir/install-sh"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/install-sh -c"
1927     break
1928   elif test -f "$ac_dir/install.sh"; then
1929     ac_aux_dir=$ac_dir
1930     ac_install_sh="$ac_aux_dir/install.sh -c"
1931     break
1932   elif test -f "$ac_dir/shtool"; then
1933     ac_aux_dir=$ac_dir
1934     ac_install_sh="$ac_aux_dir/shtool install -c"
1935     break
1936   fi
1937 done
1938 if test -z "$ac_aux_dir"; then
1939   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1940 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1941    { (exit 1); exit 1; }; }
1942 fi
1943
1944 # These three variables are undocumented and unsupported,
1945 # and are intended to be withdrawn in a future Autoconf release.
1946 # They can cause serious problems if a builder's source tree is in a directory
1947 # whose full name contains unusual characters.
1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1950 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1951
1952
1953
1954 if test ${srcdir} != "." ; then
1955   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1956     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1957 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1958    { (exit 1); exit 1; }; }
1959   fi
1960 fi
1961
1962
1963
1964 if test -d ${srcdir}/projects/llvm-gcc ; then
1965   subdirs="$subdirs projects/llvm-gcc"
1966
1967 fi
1968
1969 if test -d ${srcdir}/projects/test-suite ; then
1970   subdirs="$subdirs projects/test-suite"
1971
1972 fi
1973
1974 if test -d ${srcdir}/projects/llvm-test ; then
1975   subdirs="$subdirs projects/llvm-test"
1976
1977 fi
1978
1979 if test -d ${srcdir}/projects/poolalloc ; then
1980   subdirs="$subdirs projects/poolalloc"
1981
1982 fi
1983
1984 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1985   subdirs="$subdirs projects/llvm-poolalloc"
1986
1987 fi
1988
1989 for i in `ls ${srcdir}/projects`
1990 do
1991   if test -d ${srcdir}/projects/${i} ; then
1992     case ${i} in
1993       sample)       subdirs="$subdirs projects/sample"
1994     ;;
1995       privbracket)  subdirs="$subdirs projects/privbracket"
1996  ;;
1997       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1998  ;;
1999       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
2000 ;;
2001       llvm-java)    subdirs="$subdirs projects/llvm-java"
2002  ;;
2003       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2004    ;;
2005       safecode)     subdirs="$subdirs projects/safecode"
2006  ;;
2007       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2008  ;;
2009       llvm-gcc)       ;;
2010       test-suite)     ;;
2011       llvm-test)      ;;
2012       poolalloc)      ;;
2013       llvm-poolalloc) ;;
2014       *)
2015         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2016 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2017         ;;
2018     esac
2019   fi
2020 done
2021
2022 # Check whether --enable-polly was given.
2023 if test "${enable_polly+set}" = set; then
2024   enableval=$enable_polly;
2025 else
2026   enableval=default
2027 fi
2028
2029 case "$enableval" in
2030   yes) ENABLE_POLLY=1
2031  ;;
2032   no)  ENABLE_POLLY=0
2033  ;;
2034   default) ENABLE_POLLY=1
2035  ;;
2036   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2037 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2038    { (exit 1); exit 1; }; } ;;
2039 esac
2040
2041
2042 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2043   LLVM_HAS_POLLY=1
2044
2045   subdirs="$subdirs tools/polly"
2046
2047 fi
2048
2049
2050 # Make sure we can run config.sub.
2051 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2052   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2053 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2054    { (exit 1); exit 1; }; }
2055
2056 { echo "$as_me:$LINENO: checking build system type" >&5
2057 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2058 if test "${ac_cv_build+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   ac_build_alias=$build_alias
2062 test "x$ac_build_alias" = x &&
2063   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2064 test "x$ac_build_alias" = x &&
2065   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2066 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2067    { (exit 1); exit 1; }; }
2068 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2069   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2070 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2071    { (exit 1); exit 1; }; }
2072
2073 fi
2074 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2075 echo "${ECHO_T}$ac_cv_build" >&6; }
2076 case $ac_cv_build in
2077 *-*-*) ;;
2078 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2079 echo "$as_me: error: invalid value of canonical build" >&2;}
2080    { (exit 1); exit 1; }; };;
2081 esac
2082 build=$ac_cv_build
2083 ac_save_IFS=$IFS; IFS='-'
2084 set x $ac_cv_build
2085 shift
2086 build_cpu=$1
2087 build_vendor=$2
2088 shift; shift
2089 # Remember, the first character of IFS is used to create $*,
2090 # except with old shells:
2091 build_os=$*
2092 IFS=$ac_save_IFS
2093 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2094
2095
2096 { echo "$as_me:$LINENO: checking host system type" >&5
2097 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2098 if test "${ac_cv_host+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   if test "x$host_alias" = x; then
2102   ac_cv_host=$ac_cv_build
2103 else
2104   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2105     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2106 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2107    { (exit 1); exit 1; }; }
2108 fi
2109
2110 fi
2111 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2112 echo "${ECHO_T}$ac_cv_host" >&6; }
2113 case $ac_cv_host in
2114 *-*-*) ;;
2115 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2116 echo "$as_me: error: invalid value of canonical host" >&2;}
2117    { (exit 1); exit 1; }; };;
2118 esac
2119 host=$ac_cv_host
2120 ac_save_IFS=$IFS; IFS='-'
2121 set x $ac_cv_host
2122 shift
2123 host_cpu=$1
2124 host_vendor=$2
2125 shift; shift
2126 # Remember, the first character of IFS is used to create $*,
2127 # except with old shells:
2128 host_os=$*
2129 IFS=$ac_save_IFS
2130 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2131
2132
2133 { echo "$as_me:$LINENO: checking target system type" >&5
2134 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2135 if test "${ac_cv_target+set}" = set; then
2136   echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138   if test "x$target_alias" = x; then
2139   ac_cv_target=$ac_cv_host
2140 else
2141   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2142     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2143 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2144    { (exit 1); exit 1; }; }
2145 fi
2146
2147 fi
2148 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2149 echo "${ECHO_T}$ac_cv_target" >&6; }
2150 case $ac_cv_target in
2151 *-*-*) ;;
2152 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2153 echo "$as_me: error: invalid value of canonical target" >&2;}
2154    { (exit 1); exit 1; }; };;
2155 esac
2156 target=$ac_cv_target
2157 ac_save_IFS=$IFS; IFS='-'
2158 set x $ac_cv_target
2159 shift
2160 target_cpu=$1
2161 target_vendor=$2
2162 shift; shift
2163 # Remember, the first character of IFS is used to create $*,
2164 # except with old shells:
2165 target_os=$*
2166 IFS=$ac_save_IFS
2167 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2168
2169
2170 # The aliases save the names the user supplied, while $host etc.
2171 # will get canonicalized.
2172 test -n "$target_alias" &&
2173   test "$program_prefix$program_suffix$program_transform_name" = \
2174     NONENONEs,x,x, &&
2175   program_prefix=${target_alias}-
2176
2177 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2178 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2179 if test "${llvm_cv_os_type+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   case $host in
2183   *-*-aix*)
2184     llvm_cv_link_all_option="-Wl,--whole-archive"
2185     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186     llvm_cv_os_type="AIX"
2187     llvm_cv_platform_type="Unix" ;;
2188   *-*-irix*)
2189     llvm_cv_link_all_option="-Wl,--whole-archive"
2190     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191     llvm_cv_os_type="IRIX"
2192     llvm_cv_platform_type="Unix" ;;
2193   *-*-cygwin*)
2194     llvm_cv_link_all_option="-Wl,--whole-archive"
2195     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196     llvm_cv_os_type="Cygwin"
2197     llvm_cv_platform_type="Unix" ;;
2198   *-*-darwin*)
2199     llvm_cv_link_all_option="-Wl,-all_load"
2200     llvm_cv_no_link_all_option="-Wl,-noall_load"
2201     llvm_cv_os_type="Darwin"
2202     llvm_cv_platform_type="Unix" ;;
2203   *-*-minix*)
2204     llvm_cv_link_all_option="-Wl,-all_load"
2205     llvm_cv_no_link_all_option="-Wl,-noall_load"
2206     llvm_cv_os_type="Minix"
2207     llvm_cv_platform_type="Unix" ;;
2208   *-*-freebsd*)
2209     llvm_cv_link_all_option="-Wl,--whole-archive"
2210     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2211     llvm_cv_os_type="FreeBSD"
2212     llvm_cv_platform_type="Unix" ;;
2213   *-*-openbsd*)
2214     llvm_cv_link_all_option="-Wl,--whole-archive"
2215     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2216     llvm_cv_os_type="OpenBSD"
2217     llvm_cv_platform_type="Unix" ;;
2218   *-*-netbsd*)
2219     llvm_cv_link_all_option="-Wl,--whole-archive"
2220     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221     llvm_cv_os_type="NetBSD"
2222     llvm_cv_platform_type="Unix" ;;
2223   *-*-dragonfly*)
2224     llvm_cv_link_all_option="-Wl,--whole-archive"
2225     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226     llvm_cv_os_type="DragonFly"
2227     llvm_cv_platform_type="Unix" ;;
2228   *-*-hpux*)
2229     llvm_cv_link_all_option="-Wl,--whole-archive"
2230     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231     llvm_cv_os_type="HP-UX"
2232     llvm_cv_platform_type="Unix" ;;
2233   *-*-interix*)
2234     llvm_cv_link_all_option="-Wl,--whole-archive"
2235     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236     llvm_cv_os_type="Interix"
2237     llvm_cv_platform_type="Unix" ;;
2238   *-*-linux*)
2239     llvm_cv_link_all_option="-Wl,--whole-archive"
2240     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241     llvm_cv_os_type="Linux"
2242     llvm_cv_platform_type="Unix" ;;
2243   *-*-solaris*)
2244     llvm_cv_link_all_option="-Wl,-z,allextract"
2245     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2246     llvm_cv_os_type="SunOS"
2247     llvm_cv_platform_type="Unix" ;;
2248   *-*-auroraux*)
2249     llvm_cv_link_all_option="-Wl,-z,allextract"
2250     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2251     llvm_cv_os_type="AuroraUX"
2252     llvm_cv_platform_type="Unix" ;;
2253   *-*-win32*)
2254     llvm_cv_link_all_option="-Wl,--whole-archive"
2255     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256     llvm_cv_os_type="Win32"
2257     llvm_cv_platform_type="Win32" ;;
2258   *-*-mingw*)
2259     llvm_cv_link_all_option="-Wl,--whole-archive"
2260     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261     llvm_cv_os_type="MingW"
2262     llvm_cv_platform_type="Win32" ;;
2263   *-*-haiku*)
2264     llvm_cv_link_all_option="-Wl,--whole-archive"
2265     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266     llvm_cv_os_type="Haiku"
2267     llvm_cv_platform_type="Unix" ;;
2268   *-unknown-eabi*)
2269     llvm_cv_link_all_option="-Wl,--whole-archive"
2270     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271     llvm_cv_os_type="Freestanding"
2272     llvm_cv_platform_type="Unix" ;;
2273   *-unknown-elf*)
2274     llvm_cv_link_all_option="-Wl,--whole-archive"
2275     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276     llvm_cv_os_type="Freestanding"
2277     llvm_cv_platform_type="Unix" ;;
2278   *)
2279     llvm_cv_link_all_option=""
2280     llvm_cv_no_link_all_option=""
2281     llvm_cv_os_type="Unknown"
2282     llvm_cv_platform_type="Unknown" ;;
2283 esac
2284 fi
2285 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2286 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2287
2288 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2289 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2290 if test "${llvm_cv_target_os_type+set}" = set; then
2291   echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293   case $target in
2294   *-*-aix*)
2295     llvm_cv_target_os_type="AIX" ;;
2296   *-*-irix*)
2297     llvm_cv_target_os_type="IRIX" ;;
2298   *-*-cygwin*)
2299     llvm_cv_target_os_type="Cygwin" ;;
2300   *-*-darwin*)
2301     llvm_cv_target_os_type="Darwin" ;;
2302   *-*-minix*)
2303     llvm_cv_target_os_type="Minix" ;;
2304   *-*-freebsd*)
2305     llvm_cv_target_os_type="FreeBSD" ;;
2306   *-*-openbsd*)
2307     llvm_cv_target_os_type="OpenBSD" ;;
2308   *-*-netbsd*)
2309     llvm_cv_target_os_type="NetBSD" ;;
2310   *-*-dragonfly*)
2311     llvm_cv_target_os_type="DragonFly" ;;
2312   *-*-hpux*)
2313     llvm_cv_target_os_type="HP-UX" ;;
2314   *-*-interix*)
2315     llvm_cv_target_os_type="Interix" ;;
2316   *-*-linux*)
2317     llvm_cv_target_os_type="Linux" ;;
2318   *-*-solaris*)
2319     llvm_cv_target_os_type="SunOS" ;;
2320   *-*-auroraux*)
2321     llvm_cv_target_os_type="AuroraUX" ;;
2322   *-*-win32*)
2323     llvm_cv_target_os_type="Win32" ;;
2324   *-*-mingw*)
2325     llvm_cv_target_os_type="MingW" ;;
2326   *-*-haiku*)
2327     llvm_cv_target_os_type="Haiku" ;;
2328   *-unknown-eabi*)
2329     llvm_cv_target_os_type="Freestanding" ;;
2330   *)
2331     llvm_cv_target_os_type="Unknown" ;;
2332 esac
2333 fi
2334 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2335 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2336
2337 if test "$llvm_cv_os_type" = "Unknown" ; then
2338   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2339 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2340    { (exit 1); exit 1; }; }
2341 fi
2342
2343 OS=$llvm_cv_os_type
2344
2345 HOST_OS=$llvm_cv_os_type
2346
2347 TARGET_OS=$llvm_cv_target_os_type
2348
2349
2350 LINKALL=$llvm_cv_link_all_option
2351
2352 NOLINKALL=$llvm_cv_no_link_all_option
2353
2354
2355 case $llvm_cv_platform_type in
2356   Unix)
2357
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_UNIX 1
2360 _ACEOF
2361
2362     LLVM_ON_UNIX=1
2363
2364     LLVM_ON_WIN32=0
2365
2366     ;;
2367   Win32)
2368
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_WIN32 1
2371 _ACEOF
2372
2373     LLVM_ON_UNIX=0
2374
2375     LLVM_ON_WIN32=1
2376
2377     ;;
2378 esac
2379
2380 { echo "$as_me:$LINENO: checking target architecture" >&5
2381 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2382 if test "${llvm_cv_target_arch+set}" = set; then
2383   echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385   case $target in
2386   i?86-*)                 llvm_cv_target_arch="x86" ;;
2387   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2388   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2389   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2390   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2391   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2392   mips-*)                 llvm_cv_target_arch="Mips" ;;
2393   xcore-*)                llvm_cv_target_arch="XCore" ;;
2394   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2395   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2396   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2397   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2398   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2399   *)                      llvm_cv_target_arch="Unknown" ;;
2400 esac
2401 fi
2402 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2403 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2404
2405 if test "$llvm_cv_target_arch" = "Unknown" ; then
2406   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2407 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2408 fi
2409
2410 # Determine the LLVM native architecture for the target
2411 case "$llvm_cv_target_arch" in
2412     x86)     LLVM_NATIVE_ARCH="X86" ;;
2413     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2414     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2415 esac
2416
2417 ARCH=$llvm_cv_target_arch
2418
2419
2420 ac_ext=c
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425 if test -n "$ac_tool_prefix"; then
2426   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$CC"; then
2434   ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 CC=$ac_cv_prog_CC
2454 if test -n "$CC"; then
2455   { echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6; }
2457 else
2458   { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2460 fi
2461
2462
2463 fi
2464 if test -z "$ac_cv_prog_CC"; then
2465   ac_ct_CC=$CC
2466   # Extract the first word of "gcc", so it can be a program name with args.
2467 set dummy gcc; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   if test -n "$ac_ct_CC"; then
2474   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479   IFS=$as_save_IFS
2480   test -z "$as_dir" && as_dir=.
2481   for ac_exec_ext in '' $ac_executable_extensions; do
2482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2483     ac_cv_prog_ac_ct_CC="gcc"
2484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485     break 2
2486   fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2494 if test -n "$ac_ct_CC"; then
2495   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2496 echo "${ECHO_T}$ac_ct_CC" >&6; }
2497 else
2498   { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2500 fi
2501
2502   if test "x$ac_ct_CC" = x; then
2503     CC=""
2504   else
2505     case $cross_compiling:$ac_tool_warned in
2506 yes:)
2507 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet.  If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&5
2510 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2511 whose name does not start with the host triplet.  If you think this
2512 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2513 ac_tool_warned=yes ;;
2514 esac
2515     CC=$ac_ct_CC
2516   fi
2517 else
2518   CC="$ac_cv_prog_CC"
2519 fi
2520
2521 if test -z "$CC"; then
2522           if test -n "$ac_tool_prefix"; then
2523     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2524 set dummy ${ac_tool_prefix}cc; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528   echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530   if test -n "$CC"; then
2531   ac_cv_prog_CC="$CC" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2535 do
2536   IFS=$as_save_IFS
2537   test -z "$as_dir" && as_dir=.
2538   for ac_exec_ext in '' $ac_executable_extensions; do
2539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2540     ac_cv_prog_CC="${ac_tool_prefix}cc"
2541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542     break 2
2543   fi
2544 done
2545 done
2546 IFS=$as_save_IFS
2547
2548 fi
2549 fi
2550 CC=$ac_cv_prog_CC
2551 if test -n "$CC"; then
2552   { echo "$as_me:$LINENO: result: $CC" >&5
2553 echo "${ECHO_T}$CC" >&6; }
2554 else
2555   { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2557 fi
2558
2559
2560   fi
2561 fi
2562 if test -z "$CC"; then
2563   # Extract the first word of "cc", so it can be a program name with args.
2564 set dummy cc; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   if test -n "$CC"; then
2571   ac_cv_prog_CC="$CC" # Let the user override the test.
2572 else
2573   ac_prog_rejected=no
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579   for ac_exec_ext in '' $ac_executable_extensions; do
2580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2581     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2582        ac_prog_rejected=yes
2583        continue
2584      fi
2585     ac_cv_prog_CC="cc"
2586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587     break 2
2588   fi
2589 done
2590 done
2591 IFS=$as_save_IFS
2592
2593 if test $ac_prog_rejected = yes; then
2594   # We found a bogon in the path, so make sure we never use it.
2595   set dummy $ac_cv_prog_CC
2596   shift
2597   if test $# != 0; then
2598     # We chose a different compiler from the bogus one.
2599     # However, it has the same basename, so the bogon will be chosen
2600     # first if we set CC to just the basename; use the full file name.
2601     shift
2602     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2603   fi
2604 fi
2605 fi
2606 fi
2607 CC=$ac_cv_prog_CC
2608 if test -n "$CC"; then
2609   { echo "$as_me:$LINENO: result: $CC" >&5
2610 echo "${ECHO_T}$CC" >&6; }
2611 else
2612   { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2614 fi
2615
2616
2617 fi
2618 if test -z "$CC"; then
2619   if test -n "$ac_tool_prefix"; then
2620   for ac_prog in cl.exe
2621   do
2622     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2626 if test "${ac_cv_prog_CC+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   if test -n "$CC"; then
2630   ac_cv_prog_CC="$CC" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635   IFS=$as_save_IFS
2636   test -z "$as_dir" && as_dir=.
2637   for ac_exec_ext in '' $ac_executable_extensions; do
2638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2639     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641     break 2
2642   fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648 fi
2649 CC=$ac_cv_prog_CC
2650 if test -n "$CC"; then
2651   { echo "$as_me:$LINENO: result: $CC" >&5
2652 echo "${ECHO_T}$CC" >&6; }
2653 else
2654   { echo "$as_me:$LINENO: result: no" >&5
2655 echo "${ECHO_T}no" >&6; }
2656 fi
2657
2658
2659     test -n "$CC" && break
2660   done
2661 fi
2662 if test -z "$CC"; then
2663   ac_ct_CC=$CC
2664   for ac_prog in cl.exe
2665 do
2666   # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   if test -n "$ac_ct_CC"; then
2674   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679   IFS=$as_save_IFS
2680   test -z "$as_dir" && as_dir=.
2681   for ac_exec_ext in '' $ac_executable_extensions; do
2682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2683     ac_cv_prog_ac_ct_CC="$ac_prog"
2684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685     break 2
2686   fi
2687 done
2688 done
2689 IFS=$as_save_IFS
2690
2691 fi
2692 fi
2693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2694 if test -n "$ac_ct_CC"; then
2695   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2696 echo "${ECHO_T}$ac_ct_CC" >&6; }
2697 else
2698   { echo "$as_me:$LINENO: result: no" >&5
2699 echo "${ECHO_T}no" >&6; }
2700 fi
2701
2702
2703   test -n "$ac_ct_CC" && break
2704 done
2705
2706   if test "x$ac_ct_CC" = x; then
2707     CC=""
2708   else
2709     case $cross_compiling:$ac_tool_warned in
2710 yes:)
2711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet.  If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&5
2714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2715 whose name does not start with the host triplet.  If you think this
2716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2717 ac_tool_warned=yes ;;
2718 esac
2719     CC=$ac_ct_CC
2720   fi
2721 fi
2722
2723 fi
2724
2725
2726 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2727 See \`config.log' for more details." >&5
2728 echo "$as_me: error: no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details." >&2;}
2730    { (exit 1); exit 1; }; }
2731
2732 # Provide some information about the compiler.
2733 echo "$as_me:$LINENO: checking for C compiler version" >&5
2734 ac_compiler=`set X $ac_compile; echo $2`
2735 { (ac_try="$ac_compiler --version >&5"
2736 case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_compiler --version >&5") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }
2745 { (ac_try="$ac_compiler -v >&5"
2746 case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_compiler -v >&5") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }
2755 { (ac_try="$ac_compiler -V >&5"
2756 case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761   (eval "$ac_compiler -V >&5") 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }
2765
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h.  */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h.  */
2772
2773 int
2774 main ()
2775 {
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 ac_clean_files_save=$ac_clean_files
2782 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2783 # Try to create an executable without -o first, disregard a.out.
2784 # It will help us diagnose broken compilers, and finding out an intuition
2785 # of exeext.
2786 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2787 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2788 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2789 #
2790 # List of possible output files, starting from the most likely.
2791 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2792 # only as a last resort.  b.out is created by i960 compilers.
2793 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2794 #
2795 # The IRIX 6 linker writes into existing files which may not be
2796 # executable, retaining their permissions.  Remove them first so a
2797 # subsequent execution test works.
2798 ac_rmfiles=
2799 for ac_file in $ac_files
2800 do
2801   case $ac_file in
2802     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2803     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2804   esac
2805 done
2806 rm -f $ac_rmfiles
2807
2808 if { (ac_try="$ac_link_default"
2809 case "(($ac_try" in
2810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811   *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814   (eval "$ac_link_default") 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; then
2818   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2819 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2820 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2821 # so that the user can short-circuit this test for compilers unknown to
2822 # Autoconf.
2823 for ac_file in $ac_files
2824 do
2825   test -f "$ac_file" || continue
2826   case $ac_file in
2827     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2828         ;;
2829     [ab].out )
2830         # We found the default executable, but exeext='' is most
2831         # certainly right.
2832         break;;
2833     *.* )
2834         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2835         then :; else
2836            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837         fi
2838         # We set ac_cv_exeext here because the later test for it is not
2839         # safe: cross compilers may not add the suffix if given an `-o'
2840         # argument, so we may need to know it at that point already.
2841         # Even if this section looks crufty: it has the advantage of
2842         # actually working.
2843         break;;
2844     * )
2845         break;;
2846   esac
2847 done
2848 test "$ac_cv_exeext" = no && ac_cv_exeext=
2849
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: C compiler cannot create executables
2857 See \`config.log' for more details." >&2;}
2858    { (exit 77); exit 77; }; }
2859 fi
2860
2861 ac_exeext=$ac_cv_exeext
2862 { echo "$as_me:$LINENO: result: $ac_file" >&5
2863 echo "${ECHO_T}$ac_file" >&6; }
2864
2865 # Check that the compiler produces executables we can run.  If not, either
2866 # the compiler is broken, or we cross compile.
2867 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2868 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2869 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2870 # If not cross compiling, check that we can run a simple program.
2871 if test "$cross_compiling" != yes; then
2872   if { ac_try='./$ac_file'
2873   { (case "(($ac_try" in
2874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875   *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878   (eval "$ac_try") 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882     cross_compiling=no
2883   else
2884     if test "$cross_compiling" = maybe; then
2885         cross_compiling=yes
2886     else
2887         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2888 If you meant to cross compile, use \`--host'.
2889 See \`config.log' for more details." >&5
2890 echo "$as_me: error: cannot run C compiled programs.
2891 If you meant to cross compile, use \`--host'.
2892 See \`config.log' for more details." >&2;}
2893    { (exit 1); exit 1; }; }
2894     fi
2895   fi
2896 fi
2897 { echo "$as_me:$LINENO: result: yes" >&5
2898 echo "${ECHO_T}yes" >&6; }
2899
2900 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2901 ac_clean_files=$ac_clean_files_save
2902 # Check that the compiler produces executables we can run.  If not, either
2903 # the compiler is broken, or we cross compile.
2904 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2905 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2906 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2907 echo "${ECHO_T}$cross_compiling" >&6; }
2908
2909 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2910 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2911 if { (ac_try="$ac_link"
2912 case "(($ac_try" in
2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914   *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917   (eval "$ac_link") 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; then
2921   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2922 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2923 # work properly (i.e., refer to `conftest.exe'), while it won't with
2924 # `rm'.
2925 for ac_file in conftest.exe conftest conftest.*; do
2926   test -f "$ac_file" || continue
2927   case $ac_file in
2928     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2929     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2930           break;;
2931     * ) break;;
2932   esac
2933 done
2934 else
2935   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2936 See \`config.log' for more details." >&5
2937 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2938 See \`config.log' for more details." >&2;}
2939    { (exit 1); exit 1; }; }
2940 fi
2941
2942 rm -f conftest$ac_cv_exeext
2943 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2944 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2945
2946 rm -f conftest.$ac_ext
2947 EXEEXT=$ac_cv_exeext
2948 ac_exeext=$EXEEXT
2949 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2950 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2951 if test "${ac_cv_objext+set}" = set; then
2952   echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954   cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h.  */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h.  */
2960
2961 int
2962 main ()
2963 {
2964
2965   ;
2966   return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.o conftest.obj
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_compile") 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; then
2980   for ac_file in conftest.o conftest.obj conftest.*; do
2981   test -f "$ac_file" || continue;
2982   case $ac_file in
2983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2984     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2985        break;;
2986   esac
2987 done
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2993 See \`config.log' for more details." >&5
2994 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2995 See \`config.log' for more details." >&2;}
2996    { (exit 1); exit 1; }; }
2997 fi
2998
2999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3000 fi
3001 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3002 echo "${ECHO_T}$ac_cv_objext" >&6; }
3003 OBJEXT=$ac_cv_objext
3004 ac_objext=$OBJEXT
3005 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3006 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3007 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3008   echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010   cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016
3017 int
3018 main ()
3019 {
3020 #ifndef __GNUC__
3021        choke me
3022 #endif
3023
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (ac_try="$ac_compile"
3030 case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_compile") 2>conftest.er1
3036   ac_status=$?
3037   grep -v '^ *+' conftest.er1 >conftest.err
3038   rm -f conftest.er1
3039   cat conftest.err >&5
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); } &&
3042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3043   { (case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_try") 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; } &&
3052          { ac_try='test -s conftest.$ac_objext'
3053   { (case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058   (eval "$ac_try") 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; }; then
3062   ac_compiler_gnu=yes
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067         ac_compiler_gnu=no
3068 fi
3069
3070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3072
3073 fi
3074 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3075 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3076 GCC=`test $ac_compiler_gnu = yes && echo yes`
3077 ac_test_CFLAGS=${CFLAGS+set}
3078 ac_save_CFLAGS=$CFLAGS
3079 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3080 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_cc_g+set}" = set; then
3082   echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084   ac_save_c_werror_flag=$ac_c_werror_flag
3085    ac_c_werror_flag=yes
3086    ac_cv_prog_cc_g=no
3087    CFLAGS="-g"
3088    cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094
3095 int
3096 main ()
3097 {
3098
3099   ;
3100   return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_compile") 2>conftest.er1
3111   ac_status=$?
3112   grep -v '^ *+' conftest.er1 >conftest.err
3113   rm -f conftest.er1
3114   cat conftest.err >&5
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } &&
3117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3118   { (case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_try") 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; } &&
3127          { ac_try='test -s conftest.$ac_objext'
3128   { (case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133   (eval "$ac_try") 2>&5
3134   ac_status=$?
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }; }; then
3137   ac_cv_prog_cc_g=yes
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142         CFLAGS=""
3143       cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149
3150 int
3151 main ()
3152 {
3153
3154   ;
3155   return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_compile") 2>conftest.er1
3166   ac_status=$?
3167   grep -v '^ *+' conftest.er1 >conftest.err
3168   rm -f conftest.er1
3169   cat conftest.err >&5
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); } &&
3172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3173   { (case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_try") 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; } &&
3182          { ac_try='test -s conftest.$ac_objext'
3183   { (case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_try") 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; }; then
3192   :
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197         ac_c_werror_flag=$ac_save_c_werror_flag
3198          CFLAGS="-g"
3199          cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h.  */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h.  */
3205
3206 int
3207 main ()
3208 {
3209
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_compile") 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } &&
3228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3229   { (case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234   (eval "$ac_try") 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; } &&
3238          { ac_try='test -s conftest.$ac_objext'
3239   { (case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244   (eval "$ac_try") 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); }; }; then
3248   ac_cv_prog_cc_g=yes
3249 else
3250   echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253
3254 fi
3255
3256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257 fi
3258
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 fi
3261
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263    ac_c_werror_flag=$ac_save_c_werror_flag
3264 fi
3265 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3266 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3267 if test "$ac_test_CFLAGS" = set; then
3268   CFLAGS=$ac_save_CFLAGS
3269 elif test $ac_cv_prog_cc_g = yes; then
3270   if test "$GCC" = yes; then
3271     CFLAGS="-g -O2"
3272   else
3273     CFLAGS="-g"
3274   fi
3275 else
3276   if test "$GCC" = yes; then
3277     CFLAGS="-O2"
3278   else
3279     CFLAGS=
3280   fi
3281 fi
3282 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3283 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3284 if test "${ac_cv_prog_cc_c89+set}" = set; then
3285   echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287   ac_cv_prog_cc_c89=no
3288 ac_save_CC=$CC
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h.  */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h.  */
3295 #include <stdarg.h>
3296 #include <stdio.h>
3297 #include <sys/types.h>
3298 #include <sys/stat.h>
3299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3300 struct buf { int x; };
3301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3302 static char *e (p, i)
3303      char **p;
3304      int i;
3305 {
3306   return p[i];
3307 }
3308 static char *f (char * (*g) (char **, int), char **p, ...)
3309 {
3310   char *s;
3311   va_list v;
3312   va_start (v,p);
3313   s = g (p, va_arg (v,int));
3314   va_end (v);
3315   return s;
3316 }
3317
3318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3319    function prototypes and stuff, but not '\xHH' hex character constants.
3320    These don't provoke an error unfortunately, instead are silently treated
3321    as 'x'.  The following induces an error, until -std is added to get
3322    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3323    array size at least.  It's necessary to write '\x00'==0 to get something
3324    that's true only with -std.  */
3325 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3326
3327 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3328    inside strings and character constants.  */
3329 #define FOO(x) 'x'
3330 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3331
3332 int test (int i, double x);
3333 struct s1 {int (*f) (int a);};
3334 struct s2 {int (*f) (double a);};
3335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3336 int argc;
3337 char **argv;
3338 int
3339 main ()
3340 {
3341 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3347         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3348 do
3349   CC="$ac_save_CC $ac_arg"
3350   rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357   (eval "$ac_compile") 2>conftest.er1
3358   ac_status=$?
3359   grep -v '^ *+' conftest.er1 >conftest.err
3360   rm -f conftest.er1
3361   cat conftest.err >&5
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } &&
3364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3365   { (case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_try") 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; } &&
3374          { ac_try='test -s conftest.$ac_objext'
3375   { (case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380   (eval "$ac_try") 2>&5
3381   ac_status=$?
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); }; }; then
3384   ac_cv_prog_cc_c89=$ac_arg
3385 else
3386   echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389
3390 fi
3391
3392 rm -f core conftest.err conftest.$ac_objext
3393   test "x$ac_cv_prog_cc_c89" != "xno" && break
3394 done
3395 rm -f conftest.$ac_ext
3396 CC=$ac_save_CC
3397
3398 fi
3399 # AC_CACHE_VAL
3400 case "x$ac_cv_prog_cc_c89" in
3401   x)
3402     { echo "$as_me:$LINENO: result: none needed" >&5
3403 echo "${ECHO_T}none needed" >&6; } ;;
3404   xno)
3405     { echo "$as_me:$LINENO: result: unsupported" >&5
3406 echo "${ECHO_T}unsupported" >&6; } ;;
3407   *)
3408     CC="$CC $ac_cv_prog_cc_c89"
3409     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3410 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3411 esac
3412
3413
3414 ac_ext=c
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419
3420
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3427 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3428 # On Suns, sometimes $CPP names a directory.
3429 if test -n "$CPP" && test -d "$CPP"; then
3430   CPP=
3431 fi
3432 if test -z "$CPP"; then
3433   if test "${ac_cv_prog_CPP+set}" = set; then
3434   echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436       # Double quotes because CPP needs to be expanded
3437     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3438     do
3439       ac_preproc_ok=false
3440 for ac_c_preproc_warn_flag in '' yes
3441 do
3442   # Use a header file that comes with gcc, so configuring glibc
3443   # with a fresh cross-compiler works.
3444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445   # <limits.h> exists even on freestanding compilers.
3446   # On the NeXT, cc -E runs the code through the compiler's parser,
3447   # not just through cpp. "Syntax error" is here to catch this case.
3448   cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h.  */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h.  */
3454 #ifdef __STDC__
3455 # include <limits.h>
3456 #else
3457 # include <assert.h>
3458 #endif
3459                      Syntax error
3460 _ACEOF
3461 if { (ac_try="$ac_cpp conftest.$ac_ext"
3462 case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3468   ac_status=$?
3469   grep -v '^ *+' conftest.er1 >conftest.err
3470   rm -f conftest.er1
3471   cat conftest.err >&5
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); } >/dev/null; then
3474   if test -s conftest.err; then
3475     ac_cpp_err=$ac_c_preproc_warn_flag
3476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3477   else
3478     ac_cpp_err=
3479   fi
3480 else
3481   ac_cpp_err=yes
3482 fi
3483 if test -z "$ac_cpp_err"; then
3484   :
3485 else
3486   echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489   # Broken: fails on valid input.
3490 continue
3491 fi
3492
3493 rm -f conftest.err conftest.$ac_ext
3494
3495   # OK, works on sane cases.  Now check whether nonexistent headers
3496   # can be detected and how.
3497   cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 #include <ac_nonexistent.h>
3504 _ACEOF
3505 if { (ac_try="$ac_cpp conftest.$ac_ext"
3506 case "(($ac_try" in
3507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508   *) ac_try_echo=$ac_try;;
3509 esac
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3512   ac_status=$?
3513   grep -v '^ *+' conftest.er1 >conftest.err
3514   rm -f conftest.er1
3515   cat conftest.err >&5
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } >/dev/null; then
3518   if test -s conftest.err; then
3519     ac_cpp_err=$ac_c_preproc_warn_flag
3520     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3521   else
3522     ac_cpp_err=
3523   fi
3524 else
3525   ac_cpp_err=yes
3526 fi
3527 if test -z "$ac_cpp_err"; then
3528   # Broken: success on invalid input.
3529 continue
3530 else
3531   echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534   # Passes both tests.
3535 ac_preproc_ok=:
3536 break
3537 fi
3538
3539 rm -f conftest.err conftest.$ac_ext
3540
3541 done
3542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3543 rm -f conftest.err conftest.$ac_ext
3544 if $ac_preproc_ok; then
3545   break
3546 fi
3547
3548     done
3549     ac_cv_prog_CPP=$CPP
3550
3551 fi
3552   CPP=$ac_cv_prog_CPP
3553 else
3554   ac_cv_prog_CPP=$CPP
3555 fi
3556 { echo "$as_me:$LINENO: result: $CPP" >&5
3557 echo "${ECHO_T}$CPP" >&6; }
3558 ac_preproc_ok=false
3559 for ac_c_preproc_warn_flag in '' yes
3560 do
3561   # Use a header file that comes with gcc, so configuring glibc
3562   # with a fresh cross-compiler works.
3563   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3564   # <limits.h> exists even on freestanding compilers.
3565   # On the NeXT, cc -E runs the code through the compiler's parser,
3566   # not just through cpp. "Syntax error" is here to catch this case.
3567   cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h.  */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h.  */
3573 #ifdef __STDC__
3574 # include <limits.h>
3575 #else
3576 # include <assert.h>
3577 #endif
3578                      Syntax error
3579 _ACEOF
3580 if { (ac_try="$ac_cpp conftest.$ac_ext"
3581 case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3587   ac_status=$?
3588   grep -v '^ *+' conftest.er1 >conftest.err
3589   rm -f conftest.er1
3590   cat conftest.err >&5
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); } >/dev/null; then
3593   if test -s conftest.err; then
3594     ac_cpp_err=$ac_c_preproc_warn_flag
3595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3596   else
3597     ac_cpp_err=
3598   fi
3599 else
3600   ac_cpp_err=yes
3601 fi
3602 if test -z "$ac_cpp_err"; then
3603   :
3604 else
3605   echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608   # Broken: fails on valid input.
3609 continue
3610 fi
3611
3612 rm -f conftest.err conftest.$ac_ext
3613
3614   # OK, works on sane cases.  Now check whether nonexistent headers
3615   # can be detected and how.
3616   cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h.  */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h.  */
3622 #include <ac_nonexistent.h>
3623 _ACEOF
3624 if { (ac_try="$ac_cpp conftest.$ac_ext"
3625 case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3631   ac_status=$?
3632   grep -v '^ *+' conftest.er1 >conftest.err
3633   rm -f conftest.er1
3634   cat conftest.err >&5
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); } >/dev/null; then
3637   if test -s conftest.err; then
3638     ac_cpp_err=$ac_c_preproc_warn_flag
3639     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3640   else
3641     ac_cpp_err=
3642   fi
3643 else
3644   ac_cpp_err=yes
3645 fi
3646 if test -z "$ac_cpp_err"; then
3647   # Broken: success on invalid input.
3648 continue
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653   # Passes both tests.
3654 ac_preproc_ok=:
3655 break
3656 fi
3657
3658 rm -f conftest.err conftest.$ac_ext
3659
3660 done
3661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662 rm -f conftest.err conftest.$ac_ext
3663 if $ac_preproc_ok; then
3664   :
3665 else
3666   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3667 See \`config.log' for more details." >&5
3668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3669 See \`config.log' for more details." >&2;}
3670    { (exit 1); exit 1; }; }
3671 fi
3672
3673 ac_ext=c
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678
3679
3680 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3681 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3682 if test "${ac_cv_path_GREP+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   # Extract the first word of "grep ggrep" to use in msg output
3686 if test -z "$GREP"; then
3687 set dummy grep ggrep; ac_prog_name=$2
3688 if test "${ac_cv_path_GREP+set}" = set; then
3689   echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691   ac_path_GREP_found=false
3692 # Loop through the user's path and test for each of PROGNAME-LIST
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3695 do
3696   IFS=$as_save_IFS
3697   test -z "$as_dir" && as_dir=.
3698   for ac_prog in grep ggrep; do
3699   for ac_exec_ext in '' $ac_executable_extensions; do
3700     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3701     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3702     # Check for GNU ac_path_GREP and select it if it is found.
3703   # Check for GNU $ac_path_GREP
3704 case `"$ac_path_GREP" --version 2>&1` in
3705 *GNU*)
3706   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3707 *)
3708   ac_count=0
3709   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3710   while :
3711   do
3712     cat "conftest.in" "conftest.in" >"conftest.tmp"
3713     mv "conftest.tmp" "conftest.in"
3714     cp "conftest.in" "conftest.nl"
3715     echo 'GREP' >> "conftest.nl"
3716     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3718     ac_count=`expr $ac_count + 1`
3719     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3720       # Best one so far, save it but keep looking for a better one
3721       ac_cv_path_GREP="$ac_path_GREP"
3722       ac_path_GREP_max=$ac_count
3723     fi
3724     # 10*(2^10) chars as input seems more than enough
3725     test $ac_count -gt 10 && break
3726   done
3727   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3728 esac
3729
3730
3731     $ac_path_GREP_found && break 3
3732   done
3733 done
3734
3735 done
3736 IFS=$as_save_IFS
3737
3738
3739 fi
3740
3741 GREP="$ac_cv_path_GREP"
3742 if test -z "$GREP"; then
3743   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3744 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3745    { (exit 1); exit 1; }; }
3746 fi
3747
3748 else
3749   ac_cv_path_GREP=$GREP
3750 fi
3751
3752
3753 fi
3754 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3755 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3756  GREP="$ac_cv_path_GREP"
3757
3758
3759 { echo "$as_me:$LINENO: checking for egrep" >&5
3760 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3761 if test "${ac_cv_path_EGREP+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3765    then ac_cv_path_EGREP="$GREP -E"
3766    else
3767      # Extract the first word of "egrep" to use in msg output
3768 if test -z "$EGREP"; then
3769 set dummy egrep; ac_prog_name=$2
3770 if test "${ac_cv_path_EGREP+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   ac_path_EGREP_found=false
3774 # Loop through the user's path and test for each of PROGNAME-LIST
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3777 do
3778   IFS=$as_save_IFS
3779   test -z "$as_dir" && as_dir=.
3780   for ac_prog in egrep; do
3781   for ac_exec_ext in '' $ac_executable_extensions; do
3782     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3783     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3784     # Check for GNU ac_path_EGREP and select it if it is found.
3785   # Check for GNU $ac_path_EGREP
3786 case `"$ac_path_EGREP" --version 2>&1` in
3787 *GNU*)
3788   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3789 *)
3790   ac_count=0
3791   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3792   while :
3793   do
3794     cat "conftest.in" "conftest.in" >"conftest.tmp"
3795     mv "conftest.tmp" "conftest.in"
3796     cp "conftest.in" "conftest.nl"
3797     echo 'EGREP' >> "conftest.nl"
3798     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3799     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3800     ac_count=`expr $ac_count + 1`
3801     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3802       # Best one so far, save it but keep looking for a better one
3803       ac_cv_path_EGREP="$ac_path_EGREP"
3804       ac_path_EGREP_max=$ac_count
3805     fi
3806     # 10*(2^10) chars as input seems more than enough
3807     test $ac_count -gt 10 && break
3808   done
3809   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3810 esac
3811
3812
3813     $ac_path_EGREP_found && break 3
3814   done
3815 done
3816
3817 done
3818 IFS=$as_save_IFS
3819
3820
3821 fi
3822
3823 EGREP="$ac_cv_path_EGREP"
3824 if test -z "$EGREP"; then
3825   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3826 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3827    { (exit 1); exit 1; }; }
3828 fi
3829
3830 else
3831   ac_cv_path_EGREP=$EGREP
3832 fi
3833
3834
3835    fi
3836 fi
3837 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3838 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3839  EGREP="$ac_cv_path_EGREP"
3840
3841
3842 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3844 if test "${ac_cv_header_stdc+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h.  */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h.  */
3853 #include <stdlib.h>
3854 #include <stdarg.h>
3855 #include <string.h>
3856 #include <float.h>
3857
3858 int
3859 main ()
3860 {
3861
3862   ;
3863   return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3868 case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873   (eval "$ac_compile") 2>conftest.er1
3874   ac_status=$?
3875   grep -v '^ *+' conftest.er1 >conftest.err
3876   rm -f conftest.er1
3877   cat conftest.err >&5
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); } &&
3880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3881   { (case "(($ac_try" in
3882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883   *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886   (eval "$ac_try") 2>&5
3887   ac_status=$?
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); }; } &&
3890          { ac_try='test -s conftest.$ac_objext'
3891   { (case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_try") 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); }; }; then
3900   ac_cv_header_stdc=yes
3901 else
3902   echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905         ac_cv_header_stdc=no
3906 fi
3907
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909
3910 if test $ac_cv_header_stdc = yes; then
3911   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3912   cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h.  */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h.  */
3918 #include <string.h>
3919
3920 _ACEOF
3921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3922   $EGREP "memchr" >/dev/null 2>&1; then
3923   :
3924 else
3925   ac_cv_header_stdc=no
3926 fi
3927 rm -f conftest*
3928
3929 fi
3930
3931 if test $ac_cv_header_stdc = yes; then
3932   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3933   cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939 #include <stdlib.h>
3940
3941 _ACEOF
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943   $EGREP "free" >/dev/null 2>&1; then
3944   :
3945 else
3946   ac_cv_header_stdc=no
3947 fi
3948 rm -f conftest*
3949
3950 fi
3951
3952 if test $ac_cv_header_stdc = yes; then
3953   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3954   if test "$cross_compiling" = yes; then
3955   :
3956 else
3957   cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h.  */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h.  */
3963 #include <ctype.h>
3964 #include <stdlib.h>
3965 #if ((' ' & 0x0FF) == 0x020)
3966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3968 #else
3969 # define ISLOWER(c) \
3970                    (('a' <= (c) && (c) <= 'i') \
3971                      || ('j' <= (c) && (c) <= 'r') \
3972                      || ('s' <= (c) && (c) <= 'z'))
3973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3974 #endif
3975
3976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3977 int
3978 main ()
3979 {
3980   int i;
3981   for (i = 0; i < 256; i++)
3982     if (XOR (islower (i), ISLOWER (i))
3983         || toupper (i) != TOUPPER (i))
3984       return 2;
3985   return 0;
3986 }
3987 _ACEOF
3988 rm -f conftest$ac_exeext
3989 if { (ac_try="$ac_link"
3990 case "(($ac_try" in
3991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992   *) ac_try_echo=$ac_try;;
3993 esac
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995   (eval "$ac_link") 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3999   { (case "(($ac_try" in
4000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001   *) ac_try_echo=$ac_try;;
4002 esac
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004   (eval "$ac_try") 2>&5
4005   ac_status=$?
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); }; }; then
4008   :
4009 else
4010   echo "$as_me: program exited with status $ac_status" >&5
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014 ( exit $ac_status )
4015 ac_cv_header_stdc=no
4016 fi
4017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4018 fi
4019
4020
4021 fi
4022 fi
4023 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4024 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4025 if test $ac_cv_header_stdc = yes; then
4026
4027 cat >>confdefs.h <<\_ACEOF
4028 #define STDC_HEADERS 1
4029 _ACEOF
4030
4031 fi
4032
4033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4044                   inttypes.h stdint.h unistd.h
4045 do
4046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058 $ac_includes_default
4059
4060 #include <$ac_header>
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (ac_try="$ac_compile"
4064 case "(($ac_try" in
4065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066   *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069   (eval "$ac_compile") 2>conftest.er1
4070   ac_status=$?
4071   grep -v '^ *+' conftest.er1 >conftest.err
4072   rm -f conftest.er1
4073   cat conftest.err >&5
4074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075   (exit $ac_status); } &&
4076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4077   { (case "(($ac_try" in
4078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079   *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082   (eval "$ac_try") 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; } &&
4086          { ac_try='test -s conftest.$ac_objext'
4087   { (case "(($ac_try" in
4088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089   *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092   (eval "$ac_try") 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; }; then
4096   eval "$as_ac_Header=yes"
4097 else
4098   echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101         eval "$as_ac_Header=no"
4102 fi
4103
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 fi
4106 ac_res=`eval echo '${'$as_ac_Header'}'`
4107                { echo "$as_me:$LINENO: result: $ac_res" >&5
4108 echo "${ECHO_T}$ac_res" >&6; }
4109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4110   cat >>confdefs.h <<_ACEOF
4111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4112 _ACEOF
4113
4114 fi
4115
4116 done
4117
4118
4119 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4120 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4121 if test "${ac_cv_c_bigendian+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   # See if sys/param.h defines the BYTE_ORDER macro.
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h.  */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h.  */
4131 #include <sys/types.h>
4132 #include <sys/param.h>
4133
4134 int
4135 main ()
4136 {
4137 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4138  bogus endian macros
4139 #endif
4140
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (ac_try="$ac_compile"
4147 case "(($ac_try" in
4148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149   *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152   (eval "$ac_compile") 2>conftest.er1
4153   ac_status=$?
4154   grep -v '^ *+' conftest.er1 >conftest.err
4155   rm -f conftest.er1
4156   cat conftest.err >&5
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160   { (case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_try") 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; } &&
4169          { ac_try='test -s conftest.$ac_objext'
4170   { (case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175   (eval "$ac_try") 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; }; then
4179   # It does; now see whether it defined to BIG_ENDIAN or not.
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #include <sys/types.h>
4187 #include <sys/param.h>
4188
4189 int
4190 main ()
4191 {
4192 #if BYTE_ORDER != BIG_ENDIAN
4193  not big endian
4194 #endif
4195
4196   ;
4197   return 0;
4198 }
4199 _ACEOF
4200 rm -f conftest.$ac_objext
4201 if { (ac_try="$ac_compile"
4202 case "(($ac_try" in
4203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204   *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207   (eval "$ac_compile") 2>conftest.er1
4208   ac_status=$?
4209   grep -v '^ *+' conftest.er1 >conftest.err
4210   rm -f conftest.er1
4211   cat conftest.err >&5
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); } &&
4214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4215   { (case "(($ac_try" in
4216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217   *) ac_try_echo=$ac_try;;
4218 esac
4219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220   (eval "$ac_try") 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; } &&
4224          { ac_try='test -s conftest.$ac_objext'
4225   { (case "(($ac_try" in
4226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227   *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230   (eval "$ac_try") 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; }; then
4234   ac_cv_c_bigendian=yes
4235 else
4236   echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239         ac_cv_c_bigendian=no
4240 fi
4241
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 else
4244   echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247         # It does not; compile a test program.
4248 if test "$cross_compiling" = yes; then
4249   # try to guess the endianness by grepping values into an object file
4250   ac_cv_c_bigendian=unknown
4251   cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4258 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4259 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4260 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4261 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4262 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4263 int
4264 main ()
4265 {
4266  _ascii (); _ebcdic ();
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (ac_try="$ac_compile"
4273 case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278   (eval "$ac_compile") 2>conftest.er1
4279   ac_status=$?
4280   grep -v '^ *+' conftest.er1 >conftest.err
4281   rm -f conftest.er1
4282   cat conftest.err >&5
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); } &&
4285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4286   { (case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291   (eval "$ac_try") 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; } &&
4295          { ac_try='test -s conftest.$ac_objext'
4296   { (case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301   (eval "$ac_try") 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4306   ac_cv_c_bigendian=yes
4307 fi
4308 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4309   if test "$ac_cv_c_bigendian" = unknown; then
4310     ac_cv_c_bigendian=no
4311   else
4312     # finding both strings is unlikely to happen, but who knows?
4313     ac_cv_c_bigendian=unknown
4314   fi
4315 fi
4316 else
4317   echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4319
4320
4321 fi
4322
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 else
4325   cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h.  */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h.  */
4331 $ac_includes_default
4332 int
4333 main ()
4334 {
4335
4336   /* Are we little or big endian?  From Harbison&Steele.  */
4337   union
4338   {
4339     long int l;
4340     char c[sizeof (long int)];
4341   } u;
4342   u.l = 1;
4343   return u.c[sizeof (long int) - 1] == 1;
4344
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 rm -f conftest$ac_exeext
4350 if { (ac_try="$ac_link"
4351 case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356   (eval "$ac_link") 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4360   { (case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365   (eval "$ac_try") 2>&5
4366   ac_status=$?
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); }; }; then
4369   ac_cv_c_bigendian=no
4370 else
4371   echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 ( exit $ac_status )
4376 ac_cv_c_bigendian=yes
4377 fi
4378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4379 fi
4380
4381
4382 fi
4383
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 fi
4386 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4387 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4388 case $ac_cv_c_bigendian in
4389   yes)
4390     ENDIAN=big
4391  ;;
4392   no)
4393     ENDIAN=little
4394  ;;
4395   *)
4396     { { echo "$as_me:$LINENO: error: unknown endianness
4397 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4398 echo "$as_me: error: unknown endianness
4399 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4400    { (exit 1); exit 1; }; } ;;
4401 esac
4402
4403
4404 if test "$cross_compiling" = yes; then
4405   LLVM_CROSS_COMPILING=1
4406
4407
4408 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4409 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4410 if test "${ac_cv_build_exeext+set}" = set; then
4411   echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4414   ac_cv_build_exeext=.exe
4415 else
4416   ac_build_prefix=${build_alias}-
4417
4418   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4419 set dummy ${ac_build_prefix}gcc; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   if test -n "$BUILD_CC"; then
4426   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4430 do
4431   IFS=$as_save_IFS
4432   test -z "$as_dir" && as_dir=.
4433   for ac_exec_ext in '' $ac_executable_extensions; do
4434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4435     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437     break 2
4438   fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4442
4443 fi
4444 fi
4445 BUILD_CC=$ac_cv_prog_BUILD_CC
4446 if test -n "$BUILD_CC"; then
4447   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4448 echo "${ECHO_T}$BUILD_CC" >&6; }
4449 else
4450   { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4452 fi
4453
4454
4455   if test -z "$BUILD_CC"; then
4456      # Extract the first word of "gcc", so it can be a program name with args.
4457 set dummy gcc; ac_word=$2
4458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4461   echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463   if test -n "$BUILD_CC"; then
4464   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469   IFS=$as_save_IFS
4470   test -z "$as_dir" && as_dir=.
4471   for ac_exec_ext in '' $ac_executable_extensions; do
4472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4473     ac_cv_prog_BUILD_CC="gcc"
4474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475     break 2
4476   fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481 fi
4482 fi
4483 BUILD_CC=$ac_cv_prog_BUILD_CC
4484 if test -n "$BUILD_CC"; then
4485   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4486 echo "${ECHO_T}$BUILD_CC" >&6; }
4487 else
4488   { echo "$as_me:$LINENO: result: no" >&5
4489 echo "${ECHO_T}no" >&6; }
4490 fi
4491
4492
4493      if test -z "$BUILD_CC"; then
4494        # Extract the first word of "cc", so it can be a program name with args.
4495 set dummy cc; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4499   echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501   if test -n "$BUILD_CC"; then
4502   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4503 else
4504   ac_prog_rejected=no
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510   for ac_exec_ext in '' $ac_executable_extensions; do
4511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4512     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4513        ac_prog_rejected=yes
4514        continue
4515      fi
4516     ac_cv_prog_BUILD_CC="cc"
4517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518     break 2
4519   fi
4520 done
4521 done
4522 IFS=$as_save_IFS
4523
4524 if test $ac_prog_rejected = yes; then
4525   # We found a bogon in the path, so make sure we never use it.
4526   set dummy $ac_cv_prog_BUILD_CC
4527   shift
4528   if test $# != 0; then
4529     # We chose a different compiler from the bogus one.
4530     # However, it has the same basename, so the bogon will be chosen
4531     # first if we set BUILD_CC to just the basename; use the full file name.
4532     shift
4533     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4534   fi
4535 fi
4536 fi
4537 fi
4538 BUILD_CC=$ac_cv_prog_BUILD_CC
4539 if test -n "$BUILD_CC"; then
4540   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4541 echo "${ECHO_T}$BUILD_CC" >&6; }
4542 else
4543   { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4545 fi
4546
4547
4548      fi
4549   fi
4550   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4551 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4552    { (exit 1); exit 1; }; }
4553   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4554   rm -f conftest*
4555   echo 'int main () { return 0; }' > conftest.$ac_ext
4556   ac_cv_build_exeext=
4557   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4558   (eval $ac_build_link) 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }; then
4562     for file in conftest.*; do
4563       case $file in
4564       *.c | *.o | *.obj | *.dSYM) ;;
4565       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4566       esac
4567     done
4568   else
4569     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4570 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4571    { (exit 1); exit 1; }; }
4572   fi
4573   rm -f conftest*
4574   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4575 fi
4576 fi
4577
4578 BUILD_EXEEXT=""
4579 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4580 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4581 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4582 ac_build_exeext=$BUILD_EXEEXT
4583
4584   ac_build_prefix=${build_alias}-
4585   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4586 set dummy ${ac_build_prefix}g++; ac_word=$2
4587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4589 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592   if test -n "$BUILD_CXX"; then
4593   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600   for ac_exec_ext in '' $ac_executable_extensions; do
4601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4602     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604     break 2
4605   fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4613 if test -n "$BUILD_CXX"; then
4614   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4615 echo "${ECHO_T}$BUILD_CXX" >&6; }
4616 else
4617   { echo "$as_me:$LINENO: result: no" >&5
4618 echo "${ECHO_T}no" >&6; }
4619 fi
4620
4621
4622   if test -z "$BUILD_CXX"; then
4623      # Extract the first word of "g++", so it can be a program name with args.
4624 set dummy g++; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   if test -n "$BUILD_CXX"; then
4631   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638   for ac_exec_ext in '' $ac_executable_extensions; do
4639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4640     ac_cv_prog_BUILD_CXX="g++"
4641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642     break 2
4643   fi
4644 done
4645 done
4646 IFS=$as_save_IFS
4647
4648 fi
4649 fi
4650 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4651 if test -n "$BUILD_CXX"; then
4652   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4653 echo "${ECHO_T}$BUILD_CXX" >&6; }
4654 else
4655   { echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6; }
4657 fi
4658
4659
4660      if test -z "$BUILD_CXX"; then
4661        # Extract the first word of "c++", so it can be a program name with args.
4662 set dummy c++; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   if test -n "$BUILD_CXX"; then
4669   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4670 else
4671   ac_prog_rejected=no
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675   IFS=$as_save_IFS
4676   test -z "$as_dir" && as_dir=.
4677   for ac_exec_ext in '' $ac_executable_extensions; do
4678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4679     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4680        ac_prog_rejected=yes
4681        continue
4682      fi
4683     ac_cv_prog_BUILD_CXX="c++"
4684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 if test $ac_prog_rejected = yes; then
4692   # We found a bogon in the path, so make sure we never use it.
4693   set dummy $ac_cv_prog_BUILD_CXX
4694   shift
4695   if test $# != 0; then
4696     # We chose a different compiler from the bogus one.
4697     # However, it has the same basename, so the bogon will be chosen
4698     # first if we set BUILD_CXX to just the basename; use the full file name.
4699     shift
4700     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4701   fi
4702 fi
4703 fi
4704 fi
4705 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4706 if test -n "$BUILD_CXX"; then
4707   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4708 echo "${ECHO_T}$BUILD_CXX" >&6; }
4709 else
4710   { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4712 fi
4713
4714
4715      fi
4716   fi
4717 else
4718   LLVM_CROSS_COMPILING=0
4719
4720 fi
4721
4722 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4723   cvsbuild="yes"
4724   optimize="no"
4725   CVSBUILD=CVSBUILD=1
4726
4727 else
4728   cvsbuild="no"
4729   optimize="yes"
4730 fi
4731
4732
4733 # Check whether --enable-optimized was given.
4734 if test "${enable_optimized+set}" = set; then
4735   enableval=$enable_optimized;
4736 else
4737   enableval=$optimize
4738 fi
4739
4740 if test ${enableval} = "no" ; then
4741   ENABLE_OPTIMIZED=
4742
4743 else
4744   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4745
4746 fi
4747
4748 # Check whether --enable-profiling was given.
4749 if test "${enable_profiling+set}" = set; then
4750   enableval=$enable_profiling;
4751 else
4752   enableval="no"
4753 fi
4754
4755 if test ${enableval} = "no" ; then
4756   ENABLE_PROFILING=
4757
4758 else
4759   ENABLE_PROFILING=ENABLE_PROFILING=1
4760
4761 fi
4762
4763 # Check whether --enable-assertions was given.
4764 if test "${enable_assertions+set}" = set; then
4765   enableval=$enable_assertions;
4766 else
4767   enableval="yes"
4768 fi
4769
4770 if test ${enableval} = "yes" ; then
4771   DISABLE_ASSERTIONS=
4772
4773 else
4774   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4775
4776 fi
4777
4778 # Check whether --enable-expensive-checks was given.
4779 if test "${enable_expensive_checks+set}" = set; then
4780   enableval=$enable_expensive_checks;
4781 else
4782   enableval="no"
4783 fi
4784
4785 if test ${enableval} = "yes" ; then
4786   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4787
4788   EXPENSIVE_CHECKS=yes
4789
4790 else
4791   ENABLE_EXPENSIVE_CHECKS=
4792
4793   EXPENSIVE_CHECKS=no
4794
4795 fi
4796
4797 # Check whether --enable-debug-runtime was given.
4798 if test "${enable_debug_runtime+set}" = set; then
4799   enableval=$enable_debug_runtime;
4800 else
4801   enableval=no
4802 fi
4803
4804 if test ${enableval} = "no" ; then
4805   DEBUG_RUNTIME=
4806
4807 else
4808   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4809
4810 fi
4811
4812 # Check whether --enable-debug-symbols was given.
4813 if test "${enable_debug_symbols+set}" = set; then
4814   enableval=$enable_debug_symbols;
4815 else
4816   enableval=no
4817 fi
4818
4819 if test ${enableval} = "no" ; then
4820   DEBUG_SYMBOLS=
4821
4822 else
4823   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4824
4825 fi
4826
4827 # Check whether --enable-jit was given.
4828 if test "${enable_jit+set}" = set; then
4829   enableval=$enable_jit;
4830 else
4831   enableval=default
4832 fi
4833
4834 if test ${enableval} = "no"
4835 then
4836   JIT=
4837
4838 else
4839   case "$llvm_cv_target_arch" in
4840     x86)         TARGET_HAS_JIT=1
4841  ;;
4842     Sparc)       TARGET_HAS_JIT=0
4843  ;;
4844     PowerPC)     TARGET_HAS_JIT=1
4845  ;;
4846     x86_64)      TARGET_HAS_JIT=1
4847  ;;
4848     Alpha)       TARGET_HAS_JIT=1
4849  ;;
4850     ARM)         TARGET_HAS_JIT=1
4851  ;;
4852     Mips)        TARGET_HAS_JIT=0
4853  ;;
4854     XCore)       TARGET_HAS_JIT=0
4855  ;;
4856     MSP430)      TARGET_HAS_JIT=0
4857  ;;
4858     SystemZ)     TARGET_HAS_JIT=0
4859  ;;
4860     Blackfin)    TARGET_HAS_JIT=0
4861  ;;
4862     MBlaze)      TARGET_HAS_JIT=0
4863  ;;
4864     PTX)         TARGET_HAS_JIT=0
4865  ;;
4866     *)           TARGET_HAS_JIT=0
4867  ;;
4868   esac
4869 fi
4870
4871 # Check whether --enable-doxygen was given.
4872 if test "${enable_doxygen+set}" = set; then
4873   enableval=$enable_doxygen;
4874 else
4875   enableval=default
4876 fi
4877
4878 case "$enableval" in
4879   yes) ENABLE_DOXYGEN=1
4880  ;;
4881   no)  ENABLE_DOXYGEN=0
4882  ;;
4883   default) ENABLE_DOXYGEN=0
4884  ;;
4885   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4886 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4887    { (exit 1); exit 1; }; } ;;
4888 esac
4889
4890 # Check whether --enable-threads was given.
4891 if test "${enable_threads+set}" = set; then
4892   enableval=$enable_threads;
4893 else
4894   enableval=default
4895 fi
4896
4897 case "$enableval" in
4898   yes) ENABLE_THREADS=1
4899  ;;
4900   no)  ENABLE_THREADS=0
4901  ;;
4902   default) ENABLE_THREADS=1
4903  ;;
4904   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4905 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4906    { (exit 1); exit 1; }; } ;;
4907 esac
4908
4909 cat >>confdefs.h <<_ACEOF
4910 #define ENABLE_THREADS $ENABLE_THREADS
4911 _ACEOF
4912
4913
4914 # Check whether --enable-pic was given.
4915 if test "${enable_pic+set}" = set; then
4916   enableval=$enable_pic;
4917 else
4918   enableval=default
4919 fi
4920
4921 case "$enableval" in
4922   yes) ENABLE_PIC=1
4923  ;;
4924   no)  ENABLE_PIC=0
4925  ;;
4926   default) ENABLE_PIC=1
4927  ;;
4928   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4929 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4930    { (exit 1); exit 1; }; } ;;
4931 esac
4932
4933 cat >>confdefs.h <<_ACEOF
4934 #define ENABLE_PIC $ENABLE_PIC
4935 _ACEOF
4936
4937
4938 # Check whether --enable-shared was given.
4939 if test "${enable_shared+set}" = set; then
4940   enableval=$enable_shared;
4941 else
4942   enableval=default
4943 fi
4944
4945 case "$enableval" in
4946   yes) ENABLE_SHARED=1
4947  ;;
4948   no)  ENABLE_SHARED=0
4949  ;;
4950   default) ENABLE_SHARED=0
4951  ;;
4952   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4953 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4954    { (exit 1); exit 1; }; } ;;
4955 esac
4956
4957 # Check whether --enable-timestamps was given.
4958 if test "${enable_timestamps+set}" = set; then
4959   enableval=$enable_timestamps;
4960 else
4961   enableval=default
4962 fi
4963
4964 case "$enableval" in
4965   yes) ENABLE_TIMESTAMPS=1
4966  ;;
4967   no)  ENABLE_TIMESTAMPS=0
4968  ;;
4969   default) ENABLE_TIMESTAMPS=1
4970  ;;
4971   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4972 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4973    { (exit 1); exit 1; }; } ;;
4974 esac
4975
4976 cat >>confdefs.h <<_ACEOF
4977 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4978 _ACEOF
4979
4980
4981 TARGETS_TO_BUILD=""
4982 # Check whether --enable-targets was given.
4983 if test "${enable_targets+set}" = set; then
4984   enableval=$enable_targets;
4985 else
4986   enableval=all
4987 fi
4988
4989 if test "$enableval" = host-only ; then
4990   enableval=host
4991 fi
4992 case "$enableval" in
4993   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4994   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4995       case "$a_target" in
4996         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4997         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4998         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4999         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5000         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5001         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5002         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5003         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5004         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5005         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5006         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5007         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5008         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5009         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5010         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5011         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5012         host) case "$llvm_cv_target_arch" in
5013             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5014             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5015             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5016             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5017             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5018             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5019             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5020             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5021             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5022             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5023             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5024             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5025             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5026             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5027             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5028 echo "$as_me: error: Can not set target to build" >&2;}
5029    { (exit 1); exit 1; }; } ;;
5030           esac ;;
5031         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5032 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5033    { (exit 1); exit 1; }; } ;;
5034       esac
5035   done
5036   ;;
5037 esac
5038 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5039
5040
5041 # Determine whether we are building LLVM support for the native architecture.
5042 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5043 for a_target in $TARGETS_TO_BUILD; do
5044   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5045
5046 cat >>confdefs.h <<_ACEOF
5047 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5048 _ACEOF
5049
5050     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5051     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5052     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5053
5054 cat >>confdefs.h <<_ACEOF
5055 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5056 _ACEOF
5057
5058
5059 cat >>confdefs.h <<_ACEOF
5060 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5061 _ACEOF
5062
5063
5064 cat >>confdefs.h <<_ACEOF
5065 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5066 _ACEOF
5067
5068   fi
5069 done
5070
5071 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5072 # target feature def files.
5073 LLVM_ENUM_TARGETS=""
5074 LLVM_ENUM_ASM_PRINTERS=""
5075 LLVM_ENUM_ASM_PARSERS=""
5076 LLVM_ENUM_DISASSEMBLERS=""
5077 for target_to_build in $TARGETS_TO_BUILD; do
5078   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5079   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5080     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5081   fi
5082   # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5083   if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5084     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5085   fi
5086   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5087     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5088   fi
5089   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5090     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5091   fi
5092 done
5093
5094
5095
5096
5097
5098 # Check whether --enable-cbe-printf-a was given.
5099 if test "${enable_cbe_printf_a+set}" = set; then
5100   enableval=$enable_cbe_printf_a;
5101 else
5102   enableval=default
5103 fi
5104
5105 case "$enableval" in
5106   yes) ENABLE_CBE_PRINTF_A=1
5107  ;;
5108   no)  ENABLE_CBE_PRINTF_A=0
5109  ;;
5110   default)  ENABLE_CBE_PRINTF_A=1
5111  ;;
5112   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5114    { (exit 1); exit 1; }; } ;;
5115 esac
5116
5117 cat >>confdefs.h <<_ACEOF
5118 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5119 _ACEOF
5120
5121
5122
5123 # Check whether --with-llvmgccdir was given.
5124 if test "${with_llvmgccdir+set}" = set; then
5125   withval=$with_llvmgccdir;
5126 else
5127   withval=default
5128 fi
5129
5130 case "$withval" in
5131   default) WITH_LLVMGCCDIR=default ;;
5132   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5133   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5134 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5135    { (exit 1); exit 1; }; } ;;
5136 esac
5137
5138
5139 # Check whether --with-llvmgcc was given.
5140 if test "${with_llvmgcc+set}" = set; then
5141   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5142       WITH_LLVMGCCDIR=""
5143 fi
5144
5145
5146
5147 # Check whether --with-llvmgxx was given.
5148 if test "${with_llvmgxx+set}" = set; then
5149   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5150     WITH_LLVMGCCDIR=""
5151 fi
5152
5153
5154 if test -n "$LLVMGCC"; then
5155    LLVMGCCCOMMAND="$LLVMGCC"
5156 fi
5157
5158 if test -n "$LLVMGXX"; then
5159    LLVMGXXCOMMAND="$LLVMGXX"
5160 fi
5161
5162 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5163    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5164 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5165    { (exit 1); exit 1; }; };
5166 fi
5167
5168 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5169    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5170 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5171    { (exit 1); exit 1; }; };
5172 fi
5173
5174
5175 # Check whether --with-clang was given.
5176 if test "${with_clang+set}" = set; then
5177   withval=$with_clang;
5178 else
5179   with_clang=default
5180 fi
5181
5182
5183
5184 # Check whether --with-built-clang was given.
5185 if test "${with_built_clang+set}" = set; then
5186   withval=$with_built_clang;
5187 else
5188   with_built_clang=check
5189 fi
5190
5191
5192 { echo "$as_me:$LINENO: checking clang compiler" >&5
5193 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5194 WITH_CLANGPATH=""
5195 WITH_BUILT_CLANG=0
5196 if test "$with_clang" != "default"; then
5197    WITH_CLANGPATH="$with_clang"
5198    if ! test -x "$WITH_CLANGPATH"; then
5199      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5200 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5201    { (exit 1); exit 1; }; }
5202    fi
5203 elif test "$with_built_clang" = "yes"; then
5204    WITH_BUILT_CLANG=1
5205 elif test "$with_built_clang" = "no"; then
5206    WITH_BUILT_CLANG=0
5207 else
5208    if test "$with_built_clang" != "check"; then
5209       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5210 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5211    { (exit 1); exit 1; }; }
5212    fi
5213
5214    if test -f ${srcdir}/tools/clang/README.txt; then
5215      WITH_BUILT_CLANG=1
5216    fi
5217 fi
5218
5219 if ! test -z "$WITH_CLANGPATH"; then
5220    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5221 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5222    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5223 elif test "$WITH_BUILT_CLANG" = "1"; then
5224    { echo "$as_me:$LINENO: result: built" >&5
5225 echo "${ECHO_T}built" >&6; }
5226 else
5227    { echo "$as_me:$LINENO: result: none" >&5
5228 echo "${ECHO_T}none" >&6; }
5229 fi
5230 CLANGPATH=$WITH_CLANGPATH
5231
5232 CLANGXXPATH=$WITH_CLANGXXPATH
5233
5234 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5235
5236
5237
5238 # Check whether --with-optimize-option was given.
5239 if test "${with_optimize_option+set}" = set; then
5240   withval=$with_optimize_option;
5241 else
5242   withval=default
5243 fi
5244
5245 { echo "$as_me:$LINENO: checking optimization flags" >&5
5246 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5247 case "$withval" in
5248   default)
5249     case "$llvm_cv_os_type" in
5250     FreeBSD) optimize_option=-O2 ;;
5251     MingW) optimize_option=-O2 ;;
5252     *)     optimize_option=-O3 ;;
5253     esac ;;
5254   *) optimize_option="$withval" ;;
5255 esac
5256 OPTIMIZE_OPTION=$optimize_option
5257
5258 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5259 echo "${ECHO_T}$optimize_option" >&6; }
5260
5261
5262 # Check whether --with-extra-options was given.
5263 if test "${with_extra_options+set}" = set; then
5264   withval=$with_extra_options;
5265 else
5266   withval=default
5267 fi
5268
5269 case "$withval" in
5270   default) EXTRA_OPTIONS= ;;
5271   *) EXTRA_OPTIONS=$withval ;;
5272 esac
5273 EXTRA_OPTIONS=$EXTRA_OPTIONS
5274
5275
5276 # Check whether --enable-bindings was given.
5277 if test "${enable_bindings+set}" = set; then
5278   enableval=$enable_bindings;
5279 else
5280   enableval=default
5281 fi
5282
5283 BINDINGS_TO_BUILD=""
5284 case "$enableval" in
5285   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5286   all ) BINDINGS_TO_BUILD="ocaml" ;;
5287   none | no) BINDINGS_TO_BUILD="" ;;
5288   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5289       case "$a_binding" in
5290         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5291         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5292 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5293    { (exit 1); exit 1; }; } ;;
5294       esac
5295   done
5296   ;;
5297 esac
5298
5299
5300 # Check whether --with-ocaml-libdir was given.
5301 if test "${with_ocaml_libdir+set}" = set; then
5302   withval=$with_ocaml_libdir;
5303 else
5304   withval=auto
5305 fi
5306
5307 case "$withval" in
5308   auto) with_ocaml_libdir="$withval" ;;
5309   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5310   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5311 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5312    { (exit 1); exit 1; }; } ;;
5313 esac
5314
5315
5316 # Check whether --with-clang-resource-dir was given.
5317 if test "${with_clang_resource_dir+set}" = set; then
5318   withval=$with_clang_resource_dir;
5319 else
5320   withval=""
5321 fi
5322
5323
5324 cat >>confdefs.h <<_ACEOF
5325 #define CLANG_RESOURCE_DIR "$withval"
5326 _ACEOF
5327
5328
5329
5330 # Check whether --with-c-include-dirs was given.
5331 if test "${with_c_include_dirs+set}" = set; then
5332   withval=$with_c_include_dirs;
5333 else
5334   withval=""
5335 fi
5336
5337
5338 cat >>confdefs.h <<_ACEOF
5339 #define C_INCLUDE_DIRS "$withval"
5340 _ACEOF
5341
5342
5343
5344 # Check whether --with-cxx-include-root was given.
5345 if test "${with_cxx_include_root+set}" = set; then
5346   withval=$with_cxx_include_root;
5347 else
5348   withval=""
5349 fi
5350
5351
5352 cat >>confdefs.h <<_ACEOF
5353 #define CXX_INCLUDE_ROOT "$withval"
5354 _ACEOF
5355
5356
5357
5358 # Check whether --with-cxx-include-arch was given.
5359 if test "${with_cxx_include_arch+set}" = set; then
5360   withval=$with_cxx_include_arch;
5361 else
5362   withval=""
5363 fi
5364
5365
5366 cat >>confdefs.h <<_ACEOF
5367 #define CXX_INCLUDE_ARCH "$withval"
5368 _ACEOF
5369
5370
5371
5372 # Check whether --with-cxx-include-32bit-dir was given.
5373 if test "${with_cxx_include_32bit_dir+set}" = set; then
5374   withval=$with_cxx_include_32bit_dir;
5375 else
5376   withval=""
5377 fi
5378
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define CXX_INCLUDE_32BIT_DIR "$withval"
5382 _ACEOF
5383
5384
5385
5386 # Check whether --with-cxx-include-64bit-dir was given.
5387 if test "${with_cxx_include_64bit_dir+set}" = set; then
5388   withval=$with_cxx_include_64bit_dir;
5389 else
5390   withval=""
5391 fi
5392
5393
5394 cat >>confdefs.h <<_ACEOF
5395 #define CXX_INCLUDE_64BIT_DIR "$withval"
5396 _ACEOF
5397
5398
5399
5400 # Check whether --with-binutils-include was given.
5401 if test "${with_binutils_include+set}" = set; then
5402   withval=$with_binutils_include;
5403 else
5404   withval=default
5405 fi
5406
5407 case "$withval" in
5408   default) WITH_BINUTILS_INCDIR=default ;;
5409   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5410   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5411 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5412    { (exit 1); exit 1; }; } ;;
5413 esac
5414 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5415   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5416
5417   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5418      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5419      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5420 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5421    { (exit 1); exit 1; }; };
5422   fi
5423 fi
5424
5425 # Check whether --enable-libffi was given.
5426 if test "${enable_libffi+set}" = set; then
5427   enableval=$enable_libffi; case "$enableval" in
5428     yes) llvm_cv_enable_libffi="yes" ;;
5429     no)  llvm_cv_enable_libffi="no"  ;;
5430     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5431 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5432    { (exit 1); exit 1; }; } ;;
5433   esac
5434 else
5435   llvm_cv_enable_libffi=no
5436 fi
5437
5438
5439
5440 ac_ext=c
5441 ac_cpp='$CPP $CPPFLAGS'
5442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5445 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5446 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5447 # On Suns, sometimes $CPP names a directory.
5448 if test -n "$CPP" && test -d "$CPP"; then
5449   CPP=
5450 fi
5451 if test -z "$CPP"; then
5452   if test "${ac_cv_prog_CPP+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455       # Double quotes because CPP needs to be expanded
5456     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5457     do
5458       ac_preproc_ok=false
5459 for ac_c_preproc_warn_flag in '' yes
5460 do
5461   # Use a header file that comes with gcc, so configuring glibc
5462   # with a fresh cross-compiler works.
5463   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5464   # <limits.h> exists even on freestanding compilers.
5465   # On the NeXT, cc -E runs the code through the compiler's parser,
5466   # not just through cpp. "Syntax error" is here to catch this case.
5467   cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473 #ifdef __STDC__
5474 # include <limits.h>
5475 #else
5476 # include <assert.h>
5477 #endif
5478                      Syntax error
5479 _ACEOF
5480 if { (ac_try="$ac_cpp conftest.$ac_ext"
5481 case "(($ac_try" in
5482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483   *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5487   ac_status=$?
5488   grep -v '^ *+' conftest.er1 >conftest.err
5489   rm -f conftest.er1
5490   cat conftest.err >&5
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); } >/dev/null; then
5493   if test -s conftest.err; then
5494     ac_cpp_err=$ac_c_preproc_warn_flag
5495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5496   else
5497     ac_cpp_err=
5498   fi
5499 else
5500   ac_cpp_err=yes
5501 fi
5502 if test -z "$ac_cpp_err"; then
5503   :
5504 else
5505   echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5507
5508   # Broken: fails on valid input.
5509 continue
5510 fi
5511
5512 rm -f conftest.err conftest.$ac_ext
5513
5514   # OK, works on sane cases.  Now check whether nonexistent headers
5515   # can be detected and how.
5516   cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 #include <ac_nonexistent.h>
5523 _ACEOF
5524 if { (ac_try="$ac_cpp conftest.$ac_ext"
5525 case "(($ac_try" in
5526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527   *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5531   ac_status=$?
5532   grep -v '^ *+' conftest.er1 >conftest.err
5533   rm -f conftest.er1
5534   cat conftest.err >&5
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); } >/dev/null; then
5537   if test -s conftest.err; then
5538     ac_cpp_err=$ac_c_preproc_warn_flag
5539     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5540   else
5541     ac_cpp_err=
5542   fi
5543 else
5544   ac_cpp_err=yes
5545 fi
5546 if test -z "$ac_cpp_err"; then
5547   # Broken: success on invalid input.
5548 continue
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553   # Passes both tests.
5554 ac_preproc_ok=:
5555 break
5556 fi
5557
5558 rm -f conftest.err conftest.$ac_ext
5559
5560 done
5561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5562 rm -f conftest.err conftest.$ac_ext
5563 if $ac_preproc_ok; then
5564   break
5565 fi
5566
5567     done
5568     ac_cv_prog_CPP=$CPP
5569
5570 fi
5571   CPP=$ac_cv_prog_CPP
5572 else
5573   ac_cv_prog_CPP=$CPP
5574 fi
5575 { echo "$as_me:$LINENO: result: $CPP" >&5
5576 echo "${ECHO_T}$CPP" >&6; }
5577 ac_preproc_ok=false
5578 for ac_c_preproc_warn_flag in '' yes
5579 do
5580   # Use a header file that comes with gcc, so configuring glibc
5581   # with a fresh cross-compiler works.
5582   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5583   # <limits.h> exists even on freestanding compilers.
5584   # On the NeXT, cc -E runs the code through the compiler's parser,
5585   # not just through cpp. "Syntax error" is here to catch this case.
5586   cat >conftest.$ac_ext <<_ACEOF
5587 /* confdefs.h.  */
5588 _ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h.  */
5592 #ifdef __STDC__
5593 # include <limits.h>
5594 #else
5595 # include <assert.h>
5596 #endif
5597                      Syntax error
5598 _ACEOF
5599 if { (ac_try="$ac_cpp conftest.$ac_ext"
5600 case "(($ac_try" in
5601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602   *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5606   ac_status=$?
5607   grep -v '^ *+' conftest.er1 >conftest.err
5608   rm -f conftest.er1
5609   cat conftest.err >&5
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } >/dev/null; then
5612   if test -s conftest.err; then
5613     ac_cpp_err=$ac_c_preproc_warn_flag
5614     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5615   else
5616     ac_cpp_err=
5617   fi
5618 else
5619   ac_cpp_err=yes
5620 fi
5621 if test -z "$ac_cpp_err"; then
5622   :
5623 else
5624   echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627   # Broken: fails on valid input.
5628 continue
5629 fi
5630
5631 rm -f conftest.err conftest.$ac_ext
5632
5633   # OK, works on sane cases.  Now check whether nonexistent headers
5634   # can be detected and how.
5635   cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h.  */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h.  */
5641 #include <ac_nonexistent.h>
5642 _ACEOF
5643 if { (ac_try="$ac_cpp conftest.$ac_ext"
5644 case "(($ac_try" in
5645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646   *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5650   ac_status=$?
5651   grep -v '^ *+' conftest.er1 >conftest.err
5652   rm -f conftest.er1
5653   cat conftest.err >&5
5654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655   (exit $ac_status); } >/dev/null; then
5656   if test -s conftest.err; then
5657     ac_cpp_err=$ac_c_preproc_warn_flag
5658     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5659   else
5660     ac_cpp_err=
5661   fi
5662 else
5663   ac_cpp_err=yes
5664 fi
5665 if test -z "$ac_cpp_err"; then
5666   # Broken: success on invalid input.
5667 continue
5668 else
5669   echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672   # Passes both tests.
5673 ac_preproc_ok=:
5674 break
5675 fi
5676
5677 rm -f conftest.err conftest.$ac_ext
5678
5679 done
5680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5681 rm -f conftest.err conftest.$ac_ext
5682 if $ac_preproc_ok; then
5683   :
5684 else
5685   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5686 See \`config.log' for more details." >&5
5687 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5688 See \`config.log' for more details." >&2;}
5689    { (exit 1); exit 1; }; }
5690 fi
5691
5692 ac_ext=c
5693 ac_cpp='$CPP $CPPFLAGS'
5694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697
5698 ac_ext=c
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703 if test -n "$ac_tool_prefix"; then
5704   for ac_prog in gcc
5705   do
5706     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5710 if test "${ac_cv_prog_CC+set}" = set; then
5711   echo $ECHO_N "(cached) $ECHO_C" >&6
5712 else
5713   if test -n "$CC"; then
5714   ac_cv_prog_CC="$CC" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721   for ac_exec_ext in '' $ac_executable_extensions; do
5722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5723     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 CC=$ac_cv_prog_CC
5734 if test -n "$CC"; then
5735   { echo "$as_me:$LINENO: result: $CC" >&5
5736 echo "${ECHO_T}$CC" >&6; }
5737 else
5738   { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5740 fi
5741
5742
5743     test -n "$CC" && break
5744   done
5745 fi
5746 if test -z "$CC"; then
5747   ac_ct_CC=$CC
5748   for ac_prog in gcc
5749 do
5750   # Extract the first word of "$ac_prog", so it can be a program name with args.
5751 set dummy $ac_prog; ac_word=$2
5752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 else
5757   if test -n "$ac_ct_CC"; then
5758   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763   IFS=$as_save_IFS
5764   test -z "$as_dir" && as_dir=.
5765   for ac_exec_ext in '' $ac_executable_extensions; do
5766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5767     ac_cv_prog_ac_ct_CC="$ac_prog"
5768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769     break 2
5770   fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi
5776 fi
5777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5778 if test -n "$ac_ct_CC"; then
5779   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5780 echo "${ECHO_T}$ac_ct_CC" >&6; }
5781 else
5782   { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5784 fi
5785
5786
5787   test -n "$ac_ct_CC" && break
5788 done
5789
5790   if test "x$ac_ct_CC" = x; then
5791     CC=""
5792   else
5793     case $cross_compiling:$ac_tool_warned in
5794 yes:)
5795 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5796 whose name does not start with the host triplet.  If you think this
5797 configuration is useful to you, please write to autoconf@gnu.org." >&5
5798 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5799 whose name does not start with the host triplet.  If you think this
5800 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5801 ac_tool_warned=yes ;;
5802 esac
5803     CC=$ac_ct_CC
5804   fi
5805 fi
5806
5807
5808 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5809 See \`config.log' for more details." >&5
5810 echo "$as_me: error: no acceptable C compiler found in \$PATH
5811 See \`config.log' for more details." >&2;}
5812    { (exit 1); exit 1; }; }
5813
5814 # Provide some information about the compiler.
5815 echo "$as_me:$LINENO: checking for C compiler version" >&5
5816 ac_compiler=`set X $ac_compile; echo $2`
5817 { (ac_try="$ac_compiler --version >&5"
5818 case "(($ac_try" in
5819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820   *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823   (eval "$ac_compiler --version >&5") 2>&5
5824   ac_status=$?
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); }
5827 { (ac_try="$ac_compiler -v >&5"
5828 case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833   (eval "$ac_compiler -v >&5") 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }
5837 { (ac_try="$ac_compiler -V >&5"
5838 case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_compiler -V >&5") 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }
5847
5848 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5849 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5850 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h.  */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h.  */
5859
5860 int
5861 main ()
5862 {
5863 #ifndef __GNUC__
5864        choke me
5865 #endif
5866
5867   ;
5868   return 0;
5869 }
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5873 case "(($ac_try" in
5874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875   *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878   (eval "$ac_compile") 2>conftest.er1
5879   ac_status=$?
5880   grep -v '^ *+' conftest.er1 >conftest.err
5881   rm -f conftest.er1
5882   cat conftest.err >&5
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } &&
5885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886   { (case "(($ac_try" in
5887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888   *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891   (eval "$ac_try") 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; } &&
5895          { ac_try='test -s conftest.$ac_objext'
5896   { (case "(($ac_try" in
5897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898   *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901   (eval "$ac_try") 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); }; }; then
5905   ac_compiler_gnu=yes
5906 else
5907   echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5909
5910         ac_compiler_gnu=no
5911 fi
5912
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5915
5916 fi
5917 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5918 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5919 GCC=`test $ac_compiler_gnu = yes && echo yes`
5920 ac_test_CFLAGS=${CFLAGS+set}
5921 ac_save_CFLAGS=$CFLAGS
5922 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5923 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5924 if test "${ac_cv_prog_cc_g+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   ac_save_c_werror_flag=$ac_c_werror_flag
5928    ac_c_werror_flag=yes
5929    ac_cv_prog_cc_g=no
5930    CFLAGS="-g"
5931    cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937
5938 int
5939 main ()
5940 {
5941
5942   ;
5943   return 0;
5944 }
5945 _ACEOF
5946 rm -f conftest.$ac_objext
5947 if { (ac_try="$ac_compile"
5948 case "(($ac_try" in
5949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950   *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953   (eval "$ac_compile") 2>conftest.er1
5954   ac_status=$?
5955   grep -v '^ *+' conftest.er1 >conftest.err
5956   rm -f conftest.er1
5957   cat conftest.err >&5
5958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959   (exit $ac_status); } &&
5960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5961   { (case "(($ac_try" in
5962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963   *) ac_try_echo=$ac_try;;
5964 esac
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966   (eval "$ac_try") 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); }; } &&
5970          { ac_try='test -s conftest.$ac_objext'
5971   { (case "(($ac_try" in
5972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973   *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976   (eval "$ac_try") 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); }; }; then
5980   ac_cv_prog_cc_g=yes
5981 else
5982   echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5984
5985         CFLAGS=""
5986       cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992
5993 int
5994 main ()
5995 {
5996
5997   ;
5998   return 0;
5999 }
6000 _ACEOF
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6003 case "(($ac_try" in
6004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005   *) ac_try_echo=$ac_try;;
6006 esac
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008   (eval "$ac_compile") 2>conftest.er1
6009   ac_status=$?
6010   grep -v '^ *+' conftest.er1 >conftest.err
6011   rm -f conftest.er1
6012   cat conftest.err >&5
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } &&
6015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6016   { (case "(($ac_try" in
6017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018   *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021   (eval "$ac_try") 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; } &&
6025          { ac_try='test -s conftest.$ac_objext'
6026   { (case "(($ac_try" in
6027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028   *) ac_try_echo=$ac_try;;
6029 esac
6030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031   (eval "$ac_try") 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }; }; then
6035   :
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040         ac_c_werror_flag=$ac_save_c_werror_flag
6041          CFLAGS="-g"
6042          cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h.  */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h.  */
6048
6049 int
6050 main ()
6051 {
6052
6053   ;
6054   return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (ac_try="$ac_compile"
6059 case "(($ac_try" in
6060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061   *) ac_try_echo=$ac_try;;
6062 esac
6063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064   (eval "$ac_compile") 2>conftest.er1
6065   ac_status=$?
6066   grep -v '^ *+' conftest.er1 >conftest.err
6067   rm -f conftest.er1
6068   cat conftest.err >&5
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); } &&
6071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072   { (case "(($ac_try" in
6073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074   *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077   (eval "$ac_try") 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }; } &&
6081          { ac_try='test -s conftest.$ac_objext'
6082   { (case "(($ac_try" in
6083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084   *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087   (eval "$ac_try") 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; }; then
6091   ac_cv_prog_cc_g=yes
6092 else
6093   echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096
6097 fi
6098
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 fi
6101
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 fi
6104
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106    ac_c_werror_flag=$ac_save_c_werror_flag
6107 fi
6108 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6109 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6110 if test "$ac_test_CFLAGS" = set; then
6111   CFLAGS=$ac_save_CFLAGS
6112 elif test $ac_cv_prog_cc_g = yes; then
6113   if test "$GCC" = yes; then
6114     CFLAGS="-g -O2"
6115   else
6116     CFLAGS="-g"
6117   fi
6118 else
6119   if test "$GCC" = yes; then
6120     CFLAGS="-O2"
6121   else
6122     CFLAGS=
6123   fi
6124 fi
6125 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6126 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6127 if test "${ac_cv_prog_cc_c89+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   ac_cv_prog_cc_c89=no
6131 ac_save_CC=$CC
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h.  */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h.  */
6138 #include <stdarg.h>
6139 #include <stdio.h>
6140 #include <sys/types.h>
6141 #include <sys/stat.h>
6142 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6143 struct buf { int x; };
6144 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6145 static char *e (p, i)
6146      char **p;
6147      int i;
6148 {
6149   return p[i];
6150 }
6151 static char *f (char * (*g) (char **, int), char **p, ...)
6152 {
6153   char *s;
6154   va_list v;
6155   va_start (v,p);
6156   s = g (p, va_arg (v,int));
6157   va_end (v);
6158   return s;
6159 }
6160
6161 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6162    function prototypes and stuff, but not '\xHH' hex character constants.
6163    These don't provoke an error unfortunately, instead are silently treated
6164    as 'x'.  The following induces an error, until -std is added to get
6165    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6166    array size at least.  It's necessary to write '\x00'==0 to get something
6167    that's true only with -std.  */
6168 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6169
6170 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6171    inside strings and character constants.  */
6172 #define FOO(x) 'x'
6173 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6174
6175 int test (int i, double x);
6176 struct s1 {int (*f) (int a);};
6177 struct s2 {int (*f) (double a);};
6178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6179 int argc;
6180 char **argv;
6181 int
6182 main ()
6183 {
6184 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6185   ;
6186   return 0;
6187 }
6188 _ACEOF
6189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6190         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6191 do
6192   CC="$ac_save_CC $ac_arg"
6193   rm -f conftest.$ac_objext
6194 if { (ac_try="$ac_compile"
6195 case "(($ac_try" in
6196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197   *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200   (eval "$ac_compile") 2>conftest.er1
6201   ac_status=$?
6202   grep -v '^ *+' conftest.er1 >conftest.err
6203   rm -f conftest.er1
6204   cat conftest.err >&5
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } &&
6207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6208   { (case "(($ac_try" in
6209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210   *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213   (eval "$ac_try") 2>&5
6214   ac_status=$?
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }; } &&
6217          { ac_try='test -s conftest.$ac_objext'
6218   { (case "(($ac_try" in
6219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220   *) ac_try_echo=$ac_try;;
6221 esac
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223   (eval "$ac_try") 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; }; then
6227   ac_cv_prog_cc_c89=$ac_arg
6228 else
6229   echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6231
6232
6233 fi
6234
6235 rm -f core conftest.err conftest.$ac_objext
6236   test "x$ac_cv_prog_cc_c89" != "xno" && break
6237 done
6238 rm -f conftest.$ac_ext
6239 CC=$ac_save_CC
6240
6241 fi
6242 # AC_CACHE_VAL
6243 case "x$ac_cv_prog_cc_c89" in
6244   x)
6245     { echo "$as_me:$LINENO: result: none needed" >&5
6246 echo "${ECHO_T}none needed" >&6; } ;;
6247   xno)
6248     { echo "$as_me:$LINENO: result: unsupported" >&5
6249 echo "${ECHO_T}unsupported" >&6; } ;;
6250   *)
6251     CC="$CC $ac_cv_prog_cc_c89"
6252     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6253 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6254 esac
6255
6256
6257 ac_ext=c
6258 ac_cpp='$CPP $CPPFLAGS'
6259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6262
6263 ac_ext=cpp
6264 ac_cpp='$CXXCPP $CPPFLAGS'
6265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6268 if test -z "$CXX"; then
6269   if test -n "$CCC"; then
6270     CXX=$CCC
6271   else
6272     if test -n "$ac_tool_prefix"; then
6273   for ac_prog in g++
6274   do
6275     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6279 if test "${ac_cv_prog_CXX+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282   if test -n "$CXX"; then
6283   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288   IFS=$as_save_IFS
6289   test -z "$as_dir" && as_dir=.
6290   for ac_exec_ext in '' $ac_executable_extensions; do
6291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6292     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294     break 2
6295   fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 CXX=$ac_cv_prog_CXX
6303 if test -n "$CXX"; then
6304   { echo "$as_me:$LINENO: result: $CXX" >&5
6305 echo "${ECHO_T}$CXX" >&6; }
6306 else
6307   { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6309 fi
6310
6311
6312     test -n "$CXX" && break
6313   done
6314 fi
6315 if test -z "$CXX"; then
6316   ac_ct_CXX=$CXX
6317   for ac_prog in g++
6318 do
6319   # Extract the first word of "$ac_prog", so it can be a program name with args.
6320 set dummy $ac_prog; ac_word=$2
6321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   if test -n "$ac_ct_CXX"; then
6327   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332   IFS=$as_save_IFS
6333   test -z "$as_dir" && as_dir=.
6334   for ac_exec_ext in '' $ac_executable_extensions; do
6335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6336     ac_cv_prog_ac_ct_CXX="$ac_prog"
6337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338     break 2
6339   fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
6346 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6347 if test -n "$ac_ct_CXX"; then
6348   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6349 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6350 else
6351   { echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6; }
6353 fi
6354
6355
6356   test -n "$ac_ct_CXX" && break
6357 done
6358
6359   if test "x$ac_ct_CXX" = x; then
6360     CXX="g++"
6361   else
6362     case $cross_compiling:$ac_tool_warned in
6363 yes:)
6364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6365 whose name does not start with the host triplet.  If you think this
6366 configuration is useful to you, please write to autoconf@gnu.org." >&5
6367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6368 whose name does not start with the host triplet.  If you think this
6369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372     CXX=$ac_ct_CXX
6373   fi
6374 fi
6375
6376   fi
6377 fi
6378 # Provide some information about the compiler.
6379 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6380 ac_compiler=`set X $ac_compile; echo $2`
6381 { (ac_try="$ac_compiler --version >&5"
6382 case "(($ac_try" in
6383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384   *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387   (eval "$ac_compiler --version >&5") 2>&5
6388   ac_status=$?
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); }
6391 { (ac_try="$ac_compiler -v >&5"
6392 case "(($ac_try" in
6393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394   *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397   (eval "$ac_compiler -v >&5") 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }
6401 { (ac_try="$ac_compiler -V >&5"
6402 case "(($ac_try" in
6403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404   *) ac_try_echo=$ac_try;;
6405 esac
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407   (eval "$ac_compiler -V >&5") 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }
6411
6412 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6413 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6414 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h.  */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h.  */
6423
6424 int
6425 main ()
6426 {
6427 #ifndef __GNUC__
6428        choke me
6429 #endif
6430
6431   ;
6432   return 0;
6433 }
6434 _ACEOF
6435 rm -f conftest.$ac_objext
6436 if { (ac_try="$ac_compile"
6437 case "(($ac_try" in
6438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439   *) ac_try_echo=$ac_try;;
6440 esac
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442   (eval "$ac_compile") 2>conftest.er1
6443   ac_status=$?
6444   grep -v '^ *+' conftest.er1 >conftest.err
6445   rm -f conftest.er1
6446   cat conftest.err >&5
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } &&
6449          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450   { (case "(($ac_try" in
6451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452   *) ac_try_echo=$ac_try;;
6453 esac
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455   (eval "$ac_try") 2>&5
6456   ac_status=$?
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); }; } &&
6459          { ac_try='test -s conftest.$ac_objext'
6460   { (case "(($ac_try" in
6461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462   *) ac_try_echo=$ac_try;;
6463 esac
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465   (eval "$ac_try") 2>&5
6466   ac_status=$?
6467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468   (exit $ac_status); }; }; then
6469   ac_compiler_gnu=yes
6470 else
6471   echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6473
6474         ac_compiler_gnu=no
6475 fi
6476
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6479
6480 fi
6481 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6482 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6483 GXX=`test $ac_compiler_gnu = yes && echo yes`
6484 ac_test_CXXFLAGS=${CXXFLAGS+set}
6485 ac_save_CXXFLAGS=$CXXFLAGS
6486 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6487 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6488 if test "${ac_cv_prog_cxx_g+set}" = set; then
6489   echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6492    ac_cxx_werror_flag=yes
6493    ac_cv_prog_cxx_g=no
6494    CXXFLAGS="-g"
6495    cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h.  */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h.  */
6501
6502 int
6503 main ()
6504 {
6505
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext
6511 if { (ac_try="$ac_compile"
6512 case "(($ac_try" in
6513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514   *) ac_try_echo=$ac_try;;
6515 esac
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517   (eval "$ac_compile") 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } &&
6524          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6525   { (case "(($ac_try" in
6526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527   *) ac_try_echo=$ac_try;;
6528 esac
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530   (eval "$ac_try") 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; } &&
6534          { ac_try='test -s conftest.$ac_objext'
6535   { (case "(($ac_try" in
6536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537   *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540   (eval "$ac_try") 2>&5
6541   ac_status=$?
6542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543   (exit $ac_status); }; }; then
6544   ac_cv_prog_cxx_g=yes
6545 else
6546   echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549         CXXFLAGS=""
6550       cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h.  */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h.  */
6556
6557 int
6558 main ()
6559 {
6560
6561   ;
6562   return 0;
6563 }
6564 _ACEOF
6565 rm -f conftest.$ac_objext
6566 if { (ac_try="$ac_compile"
6567 case "(($ac_try" in
6568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569   *) ac_try_echo=$ac_try;;
6570 esac
6571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572   (eval "$ac_compile") 2>conftest.er1
6573   ac_status=$?
6574   grep -v '^ *+' conftest.er1 >conftest.err
6575   rm -f conftest.er1
6576   cat conftest.err >&5
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } &&
6579          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6580   { (case "(($ac_try" in
6581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582   *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585   (eval "$ac_try") 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; } &&
6589          { ac_try='test -s conftest.$ac_objext'
6590   { (case "(($ac_try" in
6591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592   *) ac_try_echo=$ac_try;;
6593 esac
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595   (eval "$ac_try") 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); }; }; then
6599   :
6600 else
6601   echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6603
6604         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6605          CXXFLAGS="-g"
6606          cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h.  */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h.  */
6612
6613 int
6614 main ()
6615 {
6616
6617   ;
6618   return 0;
6619 }
6620 _ACEOF
6621 rm -f conftest.$ac_objext
6622 if { (ac_try="$ac_compile"
6623 case "(($ac_try" in
6624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625   *) ac_try_echo=$ac_try;;
6626 esac
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628   (eval "$ac_compile") 2>conftest.er1
6629   ac_status=$?
6630   grep -v '^ *+' conftest.er1 >conftest.err
6631   rm -f conftest.er1
6632   cat conftest.err >&5
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } &&
6635          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6636   { (case "(($ac_try" in
6637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638   *) ac_try_echo=$ac_try;;
6639 esac
6640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641   (eval "$ac_try") 2>&5
6642   ac_status=$?
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); }; } &&
6645          { ac_try='test -s conftest.$ac_objext'
6646   { (case "(($ac_try" in
6647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648   *) ac_try_echo=$ac_try;;
6649 esac
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651   (eval "$ac_try") 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); }; }; then
6655   ac_cv_prog_cxx_g=yes
6656 else
6657   echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660
6661 fi
6662
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 fi
6668
6669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6671 fi
6672 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6673 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6674 if test "$ac_test_CXXFLAGS" = set; then
6675   CXXFLAGS=$ac_save_CXXFLAGS
6676 elif test $ac_cv_prog_cxx_g = yes; then
6677   if test "$GXX" = yes; then
6678     CXXFLAGS="-g -O2"
6679   else
6680     CXXFLAGS="-g"
6681   fi
6682 else
6683   if test "$GXX" = yes; then
6684     CXXFLAGS="-O2"
6685   else
6686     CXXFLAGS=
6687   fi
6688 fi
6689 ac_ext=c
6690 ac_cpp='$CPP $CPPFLAGS'
6691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6694
6695
6696 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6697 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6698 if test "${lt_cv_path_NM+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   if test -n "$NM"; then
6702   # Let the user override the test.
6703   lt_cv_path_NM="$NM"
6704 else
6705   lt_nm_to_check="${ac_tool_prefix}nm"
6706   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6707     lt_nm_to_check="$lt_nm_to_check nm"
6708   fi
6709   for lt_tmp_nm in $lt_nm_to_check; do
6710     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6711     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6712       IFS="$lt_save_ifs"
6713       test -z "$ac_dir" && ac_dir=.
6714       tmp_nm="$ac_dir/$lt_tmp_nm"
6715       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6716         # Check to see if the nm accepts a BSD-compat flag.
6717         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6718         #   nm: unknown option "B" ignored
6719         # Tru64's nm complains that /dev/null is an invalid object file
6720         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6721         */dev/null* | *'Invalid file or object type'*)
6722           lt_cv_path_NM="$tmp_nm -B"
6723           break
6724           ;;
6725         *)
6726           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6727           */dev/null*)
6728             lt_cv_path_NM="$tmp_nm -p"
6729             break
6730             ;;
6731           *)
6732             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6733             continue # so that we can try to find one that supports BSD flags
6734             ;;
6735           esac
6736           ;;
6737         esac
6738       fi
6739     done
6740     IFS="$lt_save_ifs"
6741   done
6742   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6743 fi
6744 fi
6745 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6746 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6747 NM="$lt_cv_path_NM"
6748
6749
6750
6751 { echo "$as_me:$LINENO: checking for GNU make" >&5
6752 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6753 if test "${llvm_cv_gnu_make_command+set}" = set; then
6754   echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756   llvm_cv_gnu_make_command=''
6757  for a in "$MAKE" make gmake gnumake ; do
6758   if test -z "$a" ; then continue ; fi ;
6759   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6760   then
6761    llvm_cv_gnu_make_command=$a ;
6762    break;
6763   fi
6764  done
6765 fi
6766 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6767 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6768  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6769    ifGNUmake='' ;
6770  else
6771    ifGNUmake='#' ;
6772    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6773 echo "${ECHO_T}\"Not found\"" >&6; };
6774  fi
6775
6776
6777 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6779 LN_S=$as_ln_s
6780 if test "$LN_S" = "ln -s"; then
6781   { echo "$as_me:$LINENO: result: yes" >&5
6782 echo "${ECHO_T}yes" >&6; }
6783 else
6784   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6785 echo "${ECHO_T}no, using $LN_S" >&6; }
6786 fi
6787
6788 # Extract the first word of "cmp", so it can be a program name with args.
6789 set dummy cmp; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_CMP+set}" = set; then
6793   echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795   case $CMP in
6796   [\\/]* | ?:[\\/]*)
6797   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6798   ;;
6799   *)
6800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805   for ac_exec_ext in '' $ac_executable_extensions; do
6806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6807     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6816   ;;
6817 esac
6818 fi
6819 CMP=$ac_cv_path_CMP
6820 if test -n "$CMP"; then
6821   { echo "$as_me:$LINENO: result: $CMP" >&5
6822 echo "${ECHO_T}$CMP" >&6; }
6823 else
6824   { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6826 fi
6827
6828
6829 # Extract the first word of "cp", so it can be a program name with args.
6830 set dummy cp; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_CP+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   case $CP in
6837   [\\/]* | ?:[\\/]*)
6838   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6839   ;;
6840   *)
6841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846   for ac_exec_ext in '' $ac_executable_extensions; do
6847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6848     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6857   ;;
6858 esac
6859 fi
6860 CP=$ac_cv_path_CP
6861 if test -n "$CP"; then
6862   { echo "$as_me:$LINENO: result: $CP" >&5
6863 echo "${ECHO_T}$CP" >&6; }
6864 else
6865   { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6867 fi
6868
6869
6870 # Extract the first word of "date", so it can be a program name with args.
6871 set dummy date; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_path_DATE+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   case $DATE in
6878   [\\/]* | ?:[\\/]*)
6879   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6880   ;;
6881   *)
6882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 for as_dir in $PATH
6884 do
6885   IFS=$as_save_IFS
6886   test -z "$as_dir" && as_dir=.
6887   for ac_exec_ext in '' $ac_executable_extensions; do
6888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6889     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891     break 2
6892   fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6898   ;;
6899 esac
6900 fi
6901 DATE=$ac_cv_path_DATE
6902 if test -n "$DATE"; then
6903   { echo "$as_me:$LINENO: result: $DATE" >&5
6904 echo "${ECHO_T}$DATE" >&6; }
6905 else
6906   { echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6; }
6908 fi
6909
6910
6911 # Extract the first word of "find", so it can be a program name with args.
6912 set dummy find; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_path_FIND+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   case $FIND in
6919   [\\/]* | ?:[\\/]*)
6920   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6921   ;;
6922   *)
6923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6939   ;;
6940 esac
6941 fi
6942 FIND=$ac_cv_path_FIND
6943 if test -n "$FIND"; then
6944   { echo "$as_me:$LINENO: result: $FIND" >&5
6945 echo "${ECHO_T}$FIND" >&6; }
6946 else
6947   { echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6; }
6949 fi
6950
6951
6952 # Extract the first word of "grep", so it can be a program name with args.
6953 set dummy grep; ac_word=$2
6954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956 if test "${ac_cv_path_GREP+set}" = set; then
6957   echo $ECHO_N "(cached) $ECHO_C" >&6
6958 else
6959   case $GREP in
6960   [\\/]* | ?:[\\/]*)
6961   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6962   ;;
6963   *)
6964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967   IFS=$as_save_IFS
6968   test -z "$as_dir" && as_dir=.
6969   for ac_exec_ext in '' $ac_executable_extensions; do
6970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6971     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973     break 2
6974   fi
6975 done
6976 done
6977 IFS=$as_save_IFS
6978
6979   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6980   ;;
6981 esac
6982 fi
6983 GREP=$ac_cv_path_GREP
6984 if test -n "$GREP"; then
6985   { echo "$as_me:$LINENO: result: $GREP" >&5
6986 echo "${ECHO_T}$GREP" >&6; }
6987 else
6988   { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6990 fi
6991
6992
6993 # Extract the first word of "mkdir", so it can be a program name with args.
6994 set dummy mkdir; ac_word=$2
6995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6997 if test "${ac_cv_path_MKDIR+set}" = set; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   case $MKDIR in
7001   [\\/]* | ?:[\\/]*)
7002   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7003   ;;
7004   *)
7005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008   IFS=$as_save_IFS
7009   test -z "$as_dir" && as_dir=.
7010   for ac_exec_ext in '' $ac_executable_extensions; do
7011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7012     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014     break 2
7015   fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7021   ;;
7022 esac
7023 fi
7024 MKDIR=$ac_cv_path_MKDIR
7025 if test -n "$MKDIR"; then
7026   { echo "$as_me:$LINENO: result: $MKDIR" >&5
7027 echo "${ECHO_T}$MKDIR" >&6; }
7028 else
7029   { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7031 fi
7032
7033
7034 # Extract the first word of "mv", so it can be a program name with args.
7035 set dummy mv; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_MV+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $MV in
7042   [\\/]* | ?:[\\/]*)
7043   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7044   ;;
7045   *)
7046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7062   ;;
7063 esac
7064 fi
7065 MV=$ac_cv_path_MV
7066 if test -n "$MV"; then
7067   { echo "$as_me:$LINENO: result: $MV" >&5
7068 echo "${ECHO_T}$MV" >&6; }
7069 else
7070   { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7072 fi
7073
7074
7075 if test -n "$ac_tool_prefix"; then
7076   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7080 if test "${ac_cv_prog_RANLIB+set}" = set; then
7081   echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083   if test -n "$RANLIB"; then
7084   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091   for ac_exec_ext in '' $ac_executable_extensions; do
7092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7093     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 RANLIB=$ac_cv_prog_RANLIB
7104 if test -n "$RANLIB"; then
7105   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7106 echo "${ECHO_T}$RANLIB" >&6; }
7107 else
7108   { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7110 fi
7111
7112
7113 fi
7114 if test -z "$ac_cv_prog_RANLIB"; then
7115   ac_ct_RANLIB=$RANLIB
7116   # Extract the first word of "ranlib", so it can be a program name with args.
7117 set dummy ranlib; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   if test -n "$ac_ct_RANLIB"; then
7124   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131   for ac_exec_ext in '' $ac_executable_extensions; do
7132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133     ac_cv_prog_ac_ct_RANLIB="ranlib"
7134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7144 if test -n "$ac_ct_RANLIB"; then
7145   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7146 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7147 else
7148   { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7150 fi
7151
7152   if test "x$ac_ct_RANLIB" = x; then
7153     RANLIB=":"
7154   else
7155     case $cross_compiling:$ac_tool_warned in
7156 yes:)
7157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7158 whose name does not start with the host triplet.  If you think this
7159 configuration is useful to you, please write to autoconf@gnu.org." >&5
7160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7161 whose name does not start with the host triplet.  If you think this
7162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7163 ac_tool_warned=yes ;;
7164 esac
7165     RANLIB=$ac_ct_RANLIB
7166   fi
7167 else
7168   RANLIB="$ac_cv_prog_RANLIB"
7169 fi
7170
7171 if test -n "$ac_tool_prefix"; then
7172   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7173 set dummy ${ac_tool_prefix}ar; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_prog_AR+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   if test -n "$AR"; then
7180   ac_cv_prog_AR="$AR" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187   for ac_exec_ext in '' $ac_executable_extensions; do
7188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7189     ac_cv_prog_AR="${ac_tool_prefix}ar"
7190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197 fi
7198 fi
7199 AR=$ac_cv_prog_AR
7200 if test -n "$AR"; then
7201   { echo "$as_me:$LINENO: result: $AR" >&5
7202 echo "${ECHO_T}$AR" >&6; }
7203 else
7204   { echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6; }
7206 fi
7207
7208
7209 fi
7210 if test -z "$ac_cv_prog_AR"; then
7211   ac_ct_AR=$AR
7212   # Extract the first word of "ar", so it can be a program name with args.
7213 set dummy ar; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   if test -n "$ac_ct_AR"; then
7220   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7221 else
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225   IFS=$as_save_IFS
7226   test -z "$as_dir" && as_dir=.
7227   for ac_exec_ext in '' $ac_executable_extensions; do
7228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7229     ac_cv_prog_ac_ct_AR="ar"
7230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231     break 2
7232   fi
7233 done
7234 done
7235 IFS=$as_save_IFS
7236
7237 fi
7238 fi
7239 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7240 if test -n "$ac_ct_AR"; then
7241   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7242 echo "${ECHO_T}$ac_ct_AR" >&6; }
7243 else
7244   { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7246 fi
7247
7248   if test "x$ac_ct_AR" = x; then
7249     AR="false"
7250   else
7251     case $cross_compiling:$ac_tool_warned in
7252 yes:)
7253 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7254 whose name does not start with the host triplet.  If you think this
7255 configuration is useful to you, please write to autoconf@gnu.org." >&5
7256 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7257 whose name does not start with the host triplet.  If you think this
7258 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7259 ac_tool_warned=yes ;;
7260 esac
7261     AR=$ac_ct_AR
7262   fi
7263 else
7264   AR="$ac_cv_prog_AR"
7265 fi
7266
7267 # Extract the first word of "rm", so it can be a program name with args.
7268 set dummy rm; ac_word=$2
7269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7271 if test "${ac_cv_path_RM+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   case $RM in
7275   [\\/]* | ?:[\\/]*)
7276   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7277   ;;
7278   *)
7279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282   IFS=$as_save_IFS
7283   test -z "$as_dir" && as_dir=.
7284   for ac_exec_ext in '' $ac_executable_extensions; do
7285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7286     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288     break 2
7289   fi
7290 done
7291 done
7292 IFS=$as_save_IFS
7293
7294   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7295   ;;
7296 esac
7297 fi
7298 RM=$ac_cv_path_RM
7299 if test -n "$RM"; then
7300   { echo "$as_me:$LINENO: result: $RM" >&5
7301 echo "${ECHO_T}$RM" >&6; }
7302 else
7303   { echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6; }
7305 fi
7306
7307
7308 # Extract the first word of "sed", so it can be a program name with args.
7309 set dummy sed; ac_word=$2
7310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7312 if test "${ac_cv_path_SED+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   case $SED in
7316   [\\/]* | ?:[\\/]*)
7317   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7318   ;;
7319   *)
7320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323   IFS=$as_save_IFS
7324   test -z "$as_dir" && as_dir=.
7325   for ac_exec_ext in '' $ac_executable_extensions; do
7326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7327     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329     break 2
7330   fi
7331 done
7332 done
7333 IFS=$as_save_IFS
7334
7335   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7336   ;;
7337 esac
7338 fi
7339 SED=$ac_cv_path_SED
7340 if test -n "$SED"; then
7341   { echo "$as_me:$LINENO: result: $SED" >&5
7342 echo "${ECHO_T}$SED" >&6; }
7343 else
7344   { echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6; }
7346 fi
7347
7348
7349 # Extract the first word of "tar", so it can be a program name with args.
7350 set dummy tar; ac_word=$2
7351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353 if test "${ac_cv_path_TAR+set}" = set; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   case $TAR in
7357   [\\/]* | ?:[\\/]*)
7358   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7359   ;;
7360   *)
7361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366   for ac_exec_ext in '' $ac_executable_extensions; do
7367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373 done
7374 IFS=$as_save_IFS
7375
7376   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7377   ;;
7378 esac
7379 fi
7380 TAR=$ac_cv_path_TAR
7381 if test -n "$TAR"; then
7382   { echo "$as_me:$LINENO: result: $TAR" >&5
7383 echo "${ECHO_T}$TAR" >&6; }
7384 else
7385   { echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6; }
7387 fi
7388
7389
7390 # Extract the first word of "pwd", so it can be a program name with args.
7391 set dummy pwd; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_path_BINPWD+set}" = set; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397   case $BINPWD in
7398   [\\/]* | ?:[\\/]*)
7399   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7400   ;;
7401   *)
7402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407   for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7418   ;;
7419 esac
7420 fi
7421 BINPWD=$ac_cv_path_BINPWD
7422 if test -n "$BINPWD"; then
7423   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7424 echo "${ECHO_T}$BINPWD" >&6; }
7425 else
7426   { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7428 fi
7429
7430
7431
7432 # Extract the first word of "Graphviz", so it can be a program name with args.
7433 set dummy Graphviz; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   case $GRAPHVIZ in
7440   [\\/]* | ?:[\\/]*)
7441   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7442   ;;
7443   *)
7444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449   for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7460   ;;
7461 esac
7462 fi
7463 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7464 if test -n "$GRAPHVIZ"; then
7465   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7466 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7467 else
7468   { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7470 fi
7471
7472
7473 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7474
7475 cat >>confdefs.h <<\_ACEOF
7476 #define HAVE_GRAPHVIZ 1
7477 _ACEOF
7478
7479     if test "$llvm_cv_os_type" = "MingW" ; then
7480     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7481   fi
7482
7483 cat >>confdefs.h <<_ACEOF
7484 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7485 _ACEOF
7486
7487 fi
7488 # Extract the first word of "dot", so it can be a program name with args.
7489 set dummy dot; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_DOT+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   case $DOT in
7496   [\\/]* | ?:[\\/]*)
7497   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7498   ;;
7499   *)
7500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505   for ac_exec_ext in '' $ac_executable_extensions; do
7506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7516   ;;
7517 esac
7518 fi
7519 DOT=$ac_cv_path_DOT
7520 if test -n "$DOT"; then
7521   { echo "$as_me:$LINENO: result: $DOT" >&5
7522 echo "${ECHO_T}$DOT" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528
7529 if test "$DOT" != "echo dot" ; then
7530
7531 cat >>confdefs.h <<\_ACEOF
7532 #define HAVE_DOT 1
7533 _ACEOF
7534
7535     if test "$llvm_cv_os_type" = "MingW" ; then
7536     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7537   fi
7538
7539 cat >>confdefs.h <<_ACEOF
7540 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7541 _ACEOF
7542
7543 fi
7544 # Extract the first word of "fdp", so it can be a program name with args.
7545 set dummy fdp; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_FDP+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   case $FDP in
7552   [\\/]* | ?:[\\/]*)
7553   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7554   ;;
7555   *)
7556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7572   ;;
7573 esac
7574 fi
7575 FDP=$ac_cv_path_FDP
7576 if test -n "$FDP"; then
7577   { echo "$as_me:$LINENO: result: $FDP" >&5
7578 echo "${ECHO_T}$FDP" >&6; }
7579 else
7580   { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7582 fi
7583
7584
7585 if test "$FDP" != "echo fdp" ; then
7586
7587 cat >>confdefs.h <<\_ACEOF
7588 #define HAVE_FDP 1
7589 _ACEOF
7590
7591     if test "$llvm_cv_os_type" = "MingW" ; then
7592     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7593   fi
7594
7595 cat >>confdefs.h <<_ACEOF
7596 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7597 _ACEOF
7598
7599 fi
7600 # Extract the first word of "neato", so it can be a program name with args.
7601 set dummy neato; ac_word=$2
7602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7604 if test "${ac_cv_path_NEATO+set}" = set; then
7605   echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607   case $NEATO in
7608   [\\/]* | ?:[\\/]*)
7609   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7610   ;;
7611   *)
7612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615   IFS=$as_save_IFS
7616   test -z "$as_dir" && as_dir=.
7617   for ac_exec_ext in '' $ac_executable_extensions; do
7618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7619     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621     break 2
7622   fi
7623 done
7624 done
7625 IFS=$as_save_IFS
7626
7627   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7628   ;;
7629 esac
7630 fi
7631 NEATO=$ac_cv_path_NEATO
7632 if test -n "$NEATO"; then
7633   { echo "$as_me:$LINENO: result: $NEATO" >&5
7634 echo "${ECHO_T}$NEATO" >&6; }
7635 else
7636   { echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6; }
7638 fi
7639
7640
7641 if test "$NEATO" != "echo neato" ; then
7642
7643 cat >>confdefs.h <<\_ACEOF
7644 #define HAVE_NEATO 1
7645 _ACEOF
7646
7647     if test "$llvm_cv_os_type" = "MingW" ; then
7648     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7649   fi
7650
7651 cat >>confdefs.h <<_ACEOF
7652 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7653 _ACEOF
7654
7655 fi
7656 # Extract the first word of "twopi", so it can be a program name with args.
7657 set dummy twopi; ac_word=$2
7658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7660 if test "${ac_cv_path_TWOPI+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   case $TWOPI in
7664   [\\/]* | ?:[\\/]*)
7665   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7666   ;;
7667   *)
7668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671   IFS=$as_save_IFS
7672   test -z "$as_dir" && as_dir=.
7673   for ac_exec_ext in '' $ac_executable_extensions; do
7674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7675     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7677     break 2
7678   fi
7679 done
7680 done
7681 IFS=$as_save_IFS
7682
7683   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7684   ;;
7685 esac
7686 fi
7687 TWOPI=$ac_cv_path_TWOPI
7688 if test -n "$TWOPI"; then
7689   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7690 echo "${ECHO_T}$TWOPI" >&6; }
7691 else
7692   { echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6; }
7694 fi
7695
7696
7697 if test "$TWOPI" != "echo twopi" ; then
7698
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_TWOPI 1
7701 _ACEOF
7702
7703     if test "$llvm_cv_os_type" = "MingW" ; then
7704     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7705   fi
7706
7707 cat >>confdefs.h <<_ACEOF
7708 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7709 _ACEOF
7710
7711 fi
7712 # Extract the first word of "circo", so it can be a program name with args.
7713 set dummy circo; ac_word=$2
7714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7716 if test "${ac_cv_path_CIRCO+set}" = set; then
7717   echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719   case $CIRCO in
7720   [\\/]* | ?:[\\/]*)
7721   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7722   ;;
7723   *)
7724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725 for as_dir in $PATH
7726 do
7727   IFS=$as_save_IFS
7728   test -z "$as_dir" && as_dir=.
7729   for ac_exec_ext in '' $ac_executable_extensions; do
7730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7731     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733     break 2
7734   fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7740   ;;
7741 esac
7742 fi
7743 CIRCO=$ac_cv_path_CIRCO
7744 if test -n "$CIRCO"; then
7745   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7746 echo "${ECHO_T}$CIRCO" >&6; }
7747 else
7748   { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7750 fi
7751
7752
7753 if test "$CIRCO" != "echo circo" ; then
7754
7755 cat >>confdefs.h <<\_ACEOF
7756 #define HAVE_CIRCO 1
7757 _ACEOF
7758
7759     if test "$llvm_cv_os_type" = "MingW" ; then
7760     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7761   fi
7762
7763 cat >>confdefs.h <<_ACEOF
7764 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7765 _ACEOF
7766
7767 fi
7768 for ac_prog in gv gsview32
7769 do
7770   # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_path_GV+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   case $GV in
7778   [\\/]* | ?:[\\/]*)
7779   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7780   ;;
7781   *)
7782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785   IFS=$as_save_IFS
7786   test -z "$as_dir" && as_dir=.
7787   for ac_exec_ext in '' $ac_executable_extensions; do
7788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791     break 2
7792   fi
7793 done
7794 done
7795 IFS=$as_save_IFS
7796
7797   ;;
7798 esac
7799 fi
7800 GV=$ac_cv_path_GV
7801 if test -n "$GV"; then
7802   { echo "$as_me:$LINENO: result: $GV" >&5
7803 echo "${ECHO_T}$GV" >&6; }
7804 else
7805   { echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6; }
7807 fi
7808
7809
7810   test -n "$GV" && break
7811 done
7812 test -n "$GV" || GV="echo gv"
7813
7814 if test "$GV" != "echo gv" ; then
7815
7816 cat >>confdefs.h <<\_ACEOF
7817 #define HAVE_GV 1
7818 _ACEOF
7819
7820     if test "$llvm_cv_os_type" = "MingW" ; then
7821     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7822   fi
7823
7824 cat >>confdefs.h <<_ACEOF
7825 #define LLVM_PATH_GV "$GV${EXEEXT}"
7826 _ACEOF
7827
7828 fi
7829 # Extract the first word of "dotty", so it can be a program name with args.
7830 set dummy dotty; ac_word=$2
7831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7833 if test "${ac_cv_path_DOTTY+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836   case $DOTTY in
7837   [\\/]* | ?:[\\/]*)
7838   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7839   ;;
7840   *)
7841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7843 do
7844   IFS=$as_save_IFS
7845   test -z "$as_dir" && as_dir=.
7846   for ac_exec_ext in '' $ac_executable_extensions; do
7847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7848     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850     break 2
7851   fi
7852 done
7853 done
7854 IFS=$as_save_IFS
7855
7856   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7857   ;;
7858 esac
7859 fi
7860 DOTTY=$ac_cv_path_DOTTY
7861 if test -n "$DOTTY"; then
7862   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7863 echo "${ECHO_T}$DOTTY" >&6; }
7864 else
7865   { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7867 fi
7868
7869
7870 if test "$DOTTY" != "echo dotty" ; then
7871
7872 cat >>confdefs.h <<\_ACEOF
7873 #define HAVE_DOTTY 1
7874 _ACEOF
7875
7876     if test "$llvm_cv_os_type" = "MingW" ; then
7877     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7878   fi
7879
7880 cat >>confdefs.h <<_ACEOF
7881 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7882 _ACEOF
7883
7884 fi
7885 # Extract the first word of "xdot.py", so it can be a program name with args.
7886 set dummy xdot.py; ac_word=$2
7887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7889 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   case $XDOT_PY in
7893   [\\/]* | ?:[\\/]*)
7894   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7895   ;;
7896   *)
7897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7899 do
7900   IFS=$as_save_IFS
7901   test -z "$as_dir" && as_dir=.
7902   for ac_exec_ext in '' $ac_executable_extensions; do
7903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7904     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906     break 2
7907   fi
7908 done
7909 done
7910 IFS=$as_save_IFS
7911
7912   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7913   ;;
7914 esac
7915 fi
7916 XDOT_PY=$ac_cv_path_XDOT_PY
7917 if test -n "$XDOT_PY"; then
7918   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7919 echo "${ECHO_T}$XDOT_PY" >&6; }
7920 else
7921   { echo "$as_me:$LINENO: result: no" >&5
7922 echo "${ECHO_T}no" >&6; }
7923 fi
7924
7925
7926 if test "$XDOT_PY" != "echo xdot.py" ; then
7927
7928 cat >>confdefs.h <<\_ACEOF
7929 #define HAVE_XDOT_PY 1
7930 _ACEOF
7931
7932     if test "$llvm_cv_os_type" = "MingW" ; then
7933     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7934   fi
7935
7936 cat >>confdefs.h <<_ACEOF
7937 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7938 _ACEOF
7939
7940 fi
7941
7942
7943 # Extract the first word of "perl", so it can be a program name with args.
7944 set dummy perl; ac_word=$2
7945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7947 if test "${ac_cv_path_PERL+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950   case $PERL in
7951   [\\/]* | ?:[\\/]*)
7952   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7953   ;;
7954   *)
7955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960   for ac_exec_ext in '' $ac_executable_extensions; do
7961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7962     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7971   ;;
7972 esac
7973 fi
7974 PERL=$ac_cv_path_PERL
7975 if test -n "$PERL"; then
7976   { echo "$as_me:$LINENO: result: $PERL" >&5
7977 echo "${ECHO_T}$PERL" >&6; }
7978 else
7979   { echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6; }
7981 fi
7982
7983
7984 if test "$PERL" != "none"; then
7985   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7986 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7987   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7988     { echo "$as_me:$LINENO: result: yes" >&5
7989 echo "${ECHO_T}yes" >&6; }
7990   else
7991     PERL=none
7992     { echo "$as_me:$LINENO: result: not found" >&5
7993 echo "${ECHO_T}not found" >&6; }
7994   fi
7995 fi
7996
7997
7998 if test x"$PERL" = xnone; then
7999    HAVE_PERL=0
8000
8001    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8002 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8003    { (exit 1); exit 1; }; }
8004 else
8005    HAVE_PERL=1
8006
8007 fi
8008
8009 # Find a good install program.  We prefer a C program (faster),
8010 # so one script is as good as another.  But avoid the broken or
8011 # incompatible versions:
8012 # SysV /etc/install, /usr/sbin/install
8013 # SunOS /usr/etc/install
8014 # IRIX /sbin/install
8015 # AIX /bin/install
8016 # AmigaOS /C/install, which installs bootblocks on floppy discs
8017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8020 # OS/2's system install, which has a completely different semantic
8021 # ./install, which can be erroneously created by make from ./install.sh.
8022 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8024 if test -z "$INSTALL"; then
8025 if test "${ac_cv_path_install+set}" = set; then
8026   echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
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   # Account for people who put trailing slashes in PATH elements.
8034 case $as_dir/ in
8035   ./ | .// | /cC/* | \
8036   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8037   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8038   /usr/ucb/* ) ;;
8039   *)
8040     # OSF1 and SCO ODT 3.0 have their own names for install.
8041     # Don't use installbsd from OSF since it installs stuff as root
8042     # by default.
8043     for ac_prog in ginstall scoinst install; do
8044       for ac_exec_ext in '' $ac_executable_extensions; do
8045         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8046           if test $ac_prog = install &&
8047             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8048             # AIX install.  It has an incompatible calling convention.
8049             :
8050           elif test $ac_prog = install &&
8051             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8052             # program-specific install script used by HP pwplus--don't use.
8053             :
8054           else
8055             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8056             break 3
8057           fi
8058         fi
8059       done
8060     done
8061     ;;
8062 esac
8063 done
8064 IFS=$as_save_IFS
8065
8066
8067 fi
8068   if test "${ac_cv_path_install+set}" = set; then
8069     INSTALL=$ac_cv_path_install
8070   else
8071     # As a last resort, use the slow shell script.  Don't cache a
8072     # value for INSTALL within a source directory, because that will
8073     # break other packages using the cache if that directory is
8074     # removed, or if the value is a relative name.
8075     INSTALL=$ac_install_sh
8076   fi
8077 fi
8078 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8079 echo "${ECHO_T}$INSTALL" >&6; }
8080
8081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8082 # It thinks the first close brace ends the variable substitution.
8083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8084
8085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8086
8087 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8088
8089 case "$INSTALL" in
8090  [\\/$]* | ?:[\\/]* ) ;;
8091  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8092 esac
8093
8094 # Extract the first word of "bzip2", so it can be a program name with args.
8095 set dummy bzip2; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_path_BZIP2+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   case $BZIP2 in
8102   [\\/]* | ?:[\\/]*)
8103   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8104   ;;
8105   *)
8106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8108 do
8109   IFS=$as_save_IFS
8110   test -z "$as_dir" && as_dir=.
8111   for ac_exec_ext in '' $ac_executable_extensions; do
8112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8113     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115     break 2
8116   fi
8117 done
8118 done
8119 IFS=$as_save_IFS
8120
8121   ;;
8122 esac
8123 fi
8124 BZIP2=$ac_cv_path_BZIP2
8125 if test -n "$BZIP2"; then
8126   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8127 echo "${ECHO_T}$BZIP2" >&6; }
8128 else
8129   { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8131 fi
8132
8133
8134 # Extract the first word of "cat", so it can be a program name with args.
8135 set dummy cat; ac_word=$2
8136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138 if test "${ac_cv_path_CAT+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   case $CAT in
8142   [\\/]* | ?:[\\/]*)
8143   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8144   ;;
8145   *)
8146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8148 do
8149   IFS=$as_save_IFS
8150   test -z "$as_dir" && as_dir=.
8151   for ac_exec_ext in '' $ac_executable_extensions; do
8152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155     break 2
8156   fi
8157 done
8158 done
8159 IFS=$as_save_IFS
8160
8161   ;;
8162 esac
8163 fi
8164 CAT=$ac_cv_path_CAT
8165 if test -n "$CAT"; then
8166   { echo "$as_me:$LINENO: result: $CAT" >&5
8167 echo "${ECHO_T}$CAT" >&6; }
8168 else
8169   { echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6; }
8171 fi
8172
8173
8174 # Extract the first word of "doxygen", so it can be a program name with args.
8175 set dummy doxygen; ac_word=$2
8176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   case $DOXYGEN in
8182   [\\/]* | ?:[\\/]*)
8183   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8184   ;;
8185   *)
8186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189   IFS=$as_save_IFS
8190   test -z "$as_dir" && as_dir=.
8191   for ac_exec_ext in '' $ac_executable_extensions; do
8192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8193     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8195     break 2
8196   fi
8197 done
8198 done
8199 IFS=$as_save_IFS
8200
8201   ;;
8202 esac
8203 fi
8204 DOXYGEN=$ac_cv_path_DOXYGEN
8205 if test -n "$DOXYGEN"; then
8206   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8207 echo "${ECHO_T}$DOXYGEN" >&6; }
8208 else
8209   { echo "$as_me:$LINENO: result: no" >&5
8210 echo "${ECHO_T}no" >&6; }
8211 fi
8212
8213
8214 # Extract the first word of "groff", so it can be a program name with args.
8215 set dummy groff; ac_word=$2
8216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218 if test "${ac_cv_path_GROFF+set}" = set; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221   case $GROFF in
8222   [\\/]* | ?:[\\/]*)
8223   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8224   ;;
8225   *)
8226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8228 do
8229   IFS=$as_save_IFS
8230   test -z "$as_dir" && as_dir=.
8231   for ac_exec_ext in '' $ac_executable_extensions; do
8232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8233     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8235     break 2
8236   fi
8237 done
8238 done
8239 IFS=$as_save_IFS
8240
8241   ;;
8242 esac
8243 fi
8244 GROFF=$ac_cv_path_GROFF
8245 if test -n "$GROFF"; then
8246   { echo "$as_me:$LINENO: result: $GROFF" >&5
8247 echo "${ECHO_T}$GROFF" >&6; }
8248 else
8249   { echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6; }
8251 fi
8252
8253
8254 # Extract the first word of "gzip", so it can be a program name with args.
8255 set dummy gzip; ac_word=$2
8256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8258 if test "${ac_cv_path_GZIP+set}" = set; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   case $GZIP in
8262   [\\/]* | ?:[\\/]*)
8263   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8264   ;;
8265   *)
8266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269   IFS=$as_save_IFS
8270   test -z "$as_dir" && as_dir=.
8271   for ac_exec_ext in '' $ac_executable_extensions; do
8272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8273     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8275     break 2
8276   fi
8277 done
8278 done
8279 IFS=$as_save_IFS
8280
8281   ;;
8282 esac
8283 fi
8284 GZIP=$ac_cv_path_GZIP
8285 if test -n "$GZIP"; then
8286   { echo "$as_me:$LINENO: result: $GZIP" >&5
8287 echo "${ECHO_T}$GZIP" >&6; }
8288 else
8289   { echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6; }
8291 fi
8292
8293
8294 # Extract the first word of "pod2html", so it can be a program name with args.
8295 set dummy pod2html; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_path_POD2HTML+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   case $POD2HTML in
8302   [\\/]* | ?:[\\/]*)
8303   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8304   ;;
8305   *)
8306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309   IFS=$as_save_IFS
8310   test -z "$as_dir" && as_dir=.
8311   for ac_exec_ext in '' $ac_executable_extensions; do
8312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8313     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315     break 2
8316   fi
8317 done
8318 done
8319 IFS=$as_save_IFS
8320
8321   ;;
8322 esac
8323 fi
8324 POD2HTML=$ac_cv_path_POD2HTML
8325 if test -n "$POD2HTML"; then
8326   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8327 echo "${ECHO_T}$POD2HTML" >&6; }
8328 else
8329   { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8331 fi
8332
8333
8334 # Extract the first word of "pod2man", so it can be a program name with args.
8335 set dummy pod2man; ac_word=$2
8336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8338 if test "${ac_cv_path_POD2MAN+set}" = set; then
8339   echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341   case $POD2MAN in
8342   [\\/]* | ?:[\\/]*)
8343   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8344   ;;
8345   *)
8346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349   IFS=$as_save_IFS
8350   test -z "$as_dir" && as_dir=.
8351   for ac_exec_ext in '' $ac_executable_extensions; do
8352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8353     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8355     break 2
8356   fi
8357 done
8358 done
8359 IFS=$as_save_IFS
8360
8361   ;;
8362 esac
8363 fi
8364 POD2MAN=$ac_cv_path_POD2MAN
8365 if test -n "$POD2MAN"; then
8366   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8367 echo "${ECHO_T}$POD2MAN" >&6; }
8368 else
8369   { echo "$as_me:$LINENO: result: no" >&5
8370 echo "${ECHO_T}no" >&6; }
8371 fi
8372
8373
8374 # Extract the first word of "pdfroff", so it can be a program name with args.
8375 set dummy pdfroff; ac_word=$2
8376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8378 if test "${ac_cv_path_PDFROFF+set}" = set; then
8379   echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381   case $PDFROFF in
8382   [\\/]* | ?:[\\/]*)
8383   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8384   ;;
8385   *)
8386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 for as_dir in $PATH
8388 do
8389   IFS=$as_save_IFS
8390   test -z "$as_dir" && as_dir=.
8391   for ac_exec_ext in '' $ac_executable_extensions; do
8392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8393     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8395     break 2
8396   fi
8397 done
8398 done
8399 IFS=$as_save_IFS
8400
8401   ;;
8402 esac
8403 fi
8404 PDFROFF=$ac_cv_path_PDFROFF
8405 if test -n "$PDFROFF"; then
8406   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8407 echo "${ECHO_T}$PDFROFF" >&6; }
8408 else
8409   { echo "$as_me:$LINENO: result: no" >&5
8410 echo "${ECHO_T}no" >&6; }
8411 fi
8412
8413
8414 # Extract the first word of "runtest", so it can be a program name with args.
8415 set dummy runtest; ac_word=$2
8416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8418 if test "${ac_cv_path_RUNTEST+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   case $RUNTEST in
8422   [\\/]* | ?:[\\/]*)
8423   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8424   ;;
8425   *)
8426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429   IFS=$as_save_IFS
8430   test -z "$as_dir" && as_dir=.
8431   for ac_exec_ext in '' $ac_executable_extensions; do
8432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8433     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8435     break 2
8436   fi
8437 done
8438 done
8439 IFS=$as_save_IFS
8440
8441   ;;
8442 esac
8443 fi
8444 RUNTEST=$ac_cv_path_RUNTEST
8445 if test -n "$RUNTEST"; then
8446   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8447 echo "${ECHO_T}$RUNTEST" >&6; }
8448 else
8449   { echo "$as_me:$LINENO: result: no" >&5
8450 echo "${ECHO_T}no" >&6; }
8451 fi
8452
8453
8454
8455 no_itcl=true
8456 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8457 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8458
8459 # Check whether --with-tclinclude was given.
8460 if test "${with_tclinclude+set}" = set; then
8461   withval=$with_tclinclude; with_tclinclude=${withval}
8462 else
8463   with_tclinclude=''
8464 fi
8465
8466 if test "${ac_cv_path_tclsh+set}" = set; then
8467   echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469
8470 if test x"${with_tclinclude}" != x ; then
8471   if test -f ${with_tclinclude}/tclsh ; then
8472     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8473   elif test -f ${with_tclinclude}/src/tclsh ; then
8474     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8475   else
8476     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8477 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8478    { (exit 1); exit 1; }; }
8479   fi
8480 fi
8481 fi
8482
8483
8484 if test x"${ac_cv_path_tclsh}" = x ; then
8485   { echo "$as_me:$LINENO: result: none" >&5
8486 echo "${ECHO_T}none" >&6; }
8487   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
8488 do
8489   # Extract the first word of "$ac_prog", so it can be a program name with args.
8490 set dummy $ac_prog; ac_word=$2
8491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8493 if test "${ac_cv_path_TCLSH+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   case $TCLSH in
8497   [\\/]* | ?:[\\/]*)
8498   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8499   ;;
8500   *)
8501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8503 do
8504   IFS=$as_save_IFS
8505   test -z "$as_dir" && as_dir=.
8506   for ac_exec_ext in '' $ac_executable_extensions; do
8507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8508     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8510     break 2
8511   fi
8512 done
8513 done
8514 IFS=$as_save_IFS
8515
8516   ;;
8517 esac
8518 fi
8519 TCLSH=$ac_cv_path_TCLSH
8520 if test -n "$TCLSH"; then
8521   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8522 echo "${ECHO_T}$TCLSH" >&6; }
8523 else
8524   { echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6; }
8526 fi
8527
8528
8529   test -n "$TCLSH" && break
8530 done
8531
8532   if test x"${TCLSH}" = x ; then
8533     ac_cv_path_tclsh='';
8534   else
8535     ac_cv_path_tclsh="${TCLSH}";
8536   fi
8537 else
8538   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8539 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8540   TCLSH="${ac_cv_path_tclsh}"
8541
8542 fi
8543
8544 # Extract the first word of "zip", so it can be a program name with args.
8545 set dummy zip; ac_word=$2
8546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8548 if test "${ac_cv_path_ZIP+set}" = set; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   case $ZIP in
8552   [\\/]* | ?:[\\/]*)
8553   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8554   ;;
8555   *)
8556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8558 do
8559   IFS=$as_save_IFS
8560   test -z "$as_dir" && as_dir=.
8561   for ac_exec_ext in '' $ac_executable_extensions; do
8562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8563     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565     break 2
8566   fi
8567 done
8568 done
8569 IFS=$as_save_IFS
8570
8571   ;;
8572 esac
8573 fi
8574 ZIP=$ac_cv_path_ZIP
8575 if test -n "$ZIP"; then
8576   { echo "$as_me:$LINENO: result: $ZIP" >&5
8577 echo "${ECHO_T}$ZIP" >&6; }
8578 else
8579   { echo "$as_me:$LINENO: result: no" >&5
8580 echo "${ECHO_T}no" >&6; }
8581 fi
8582
8583
8584 for ac_prog in ocamlc
8585 do
8586   # Extract the first word of "$ac_prog", so it can be a program name with args.
8587 set dummy $ac_prog; ac_word=$2
8588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8590 if test "${ac_cv_path_OCAMLC+set}" = set; then
8591   echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593   case $OCAMLC in
8594   [\\/]* | ?:[\\/]*)
8595   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8596   ;;
8597   *)
8598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 for as_dir in $PATH
8600 do
8601   IFS=$as_save_IFS
8602   test -z "$as_dir" && as_dir=.
8603   for ac_exec_ext in '' $ac_executable_extensions; do
8604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8605     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8607     break 2
8608   fi
8609 done
8610 done
8611 IFS=$as_save_IFS
8612
8613   ;;
8614 esac
8615 fi
8616 OCAMLC=$ac_cv_path_OCAMLC
8617 if test -n "$OCAMLC"; then
8618   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8619 echo "${ECHO_T}$OCAMLC" >&6; }
8620 else
8621   { echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6; }
8623 fi
8624
8625
8626   test -n "$OCAMLC" && break
8627 done
8628
8629 for ac_prog in ocamlopt
8630 do
8631   # Extract the first word of "$ac_prog", so it can be a program name with args.
8632 set dummy $ac_prog; ac_word=$2
8633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8635 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8636   echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638   case $OCAMLOPT in
8639   [\\/]* | ?:[\\/]*)
8640   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8641   ;;
8642   *)
8643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646   IFS=$as_save_IFS
8647   test -z "$as_dir" && as_dir=.
8648   for ac_exec_ext in '' $ac_executable_extensions; do
8649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8650     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8652     break 2
8653   fi
8654 done
8655 done
8656 IFS=$as_save_IFS
8657
8658   ;;
8659 esac
8660 fi
8661 OCAMLOPT=$ac_cv_path_OCAMLOPT
8662 if test -n "$OCAMLOPT"; then
8663   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8664 echo "${ECHO_T}$OCAMLOPT" >&6; }
8665 else
8666   { echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6; }
8668 fi
8669
8670
8671   test -n "$OCAMLOPT" && break
8672 done
8673
8674 for ac_prog in ocamldep
8675 do
8676   # Extract the first word of "$ac_prog", so it can be a program name with args.
8677 set dummy $ac_prog; ac_word=$2
8678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8680 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683   case $OCAMLDEP in
8684   [\\/]* | ?:[\\/]*)
8685   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8686   ;;
8687   *)
8688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 for as_dir in $PATH
8690 do
8691   IFS=$as_save_IFS
8692   test -z "$as_dir" && as_dir=.
8693   for ac_exec_ext in '' $ac_executable_extensions; do
8694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8695     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8697     break 2
8698   fi
8699 done
8700 done
8701 IFS=$as_save_IFS
8702
8703   ;;
8704 esac
8705 fi
8706 OCAMLDEP=$ac_cv_path_OCAMLDEP
8707 if test -n "$OCAMLDEP"; then
8708   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8709 echo "${ECHO_T}$OCAMLDEP" >&6; }
8710 else
8711   { echo "$as_me:$LINENO: result: no" >&5
8712 echo "${ECHO_T}no" >&6; }
8713 fi
8714
8715
8716   test -n "$OCAMLDEP" && break
8717 done
8718
8719 for ac_prog in ocamldoc
8720 do
8721   # Extract the first word of "$ac_prog", so it can be a program name with args.
8722 set dummy $ac_prog; ac_word=$2
8723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8725 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   case $OCAMLDOC in
8729   [\\/]* | ?:[\\/]*)
8730   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8731   ;;
8732   *)
8733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8735 do
8736   IFS=$as_save_IFS
8737   test -z "$as_dir" && as_dir=.
8738   for ac_exec_ext in '' $ac_executable_extensions; do
8739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8740     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8742     break 2
8743   fi
8744 done
8745 done
8746 IFS=$as_save_IFS
8747
8748   ;;
8749 esac
8750 fi
8751 OCAMLDOC=$ac_cv_path_OCAMLDOC
8752 if test -n "$OCAMLDOC"; then
8753   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8754 echo "${ECHO_T}$OCAMLDOC" >&6; }
8755 else
8756   { echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6; }
8758 fi
8759
8760
8761   test -n "$OCAMLDOC" && break
8762 done
8763
8764 for ac_prog in gas as
8765 do
8766   # Extract the first word of "$ac_prog", so it can be a program name with args.
8767 set dummy $ac_prog; ac_word=$2
8768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8770 if test "${ac_cv_path_GAS+set}" = set; then
8771   echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773   case $GAS in
8774   [\\/]* | ?:[\\/]*)
8775   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8776   ;;
8777   *)
8778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8780 do
8781   IFS=$as_save_IFS
8782   test -z "$as_dir" && as_dir=.
8783   for ac_exec_ext in '' $ac_executable_extensions; do
8784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8785     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8787     break 2
8788   fi
8789 done
8790 done
8791 IFS=$as_save_IFS
8792
8793   ;;
8794 esac
8795 fi
8796 GAS=$ac_cv_path_GAS
8797 if test -n "$GAS"; then
8798   { echo "$as_me:$LINENO: result: $GAS" >&5
8799 echo "${ECHO_T}$GAS" >&6; }
8800 else
8801   { echo "$as_me:$LINENO: result: no" >&5
8802 echo "${ECHO_T}no" >&6; }
8803 fi
8804
8805
8806   test -n "$GAS" && break
8807 done
8808
8809
8810 { echo "$as_me:$LINENO: checking for linker version" >&5
8811 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8812 if test "${llvm_cv_link_version+set}" = set; then
8813   echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815
8816    version_string="$(ld -v 2>&1 | head -1)"
8817
8818    # Check for ld64.
8819    if (echo "$version_string" | grep -q "ld64"); then
8820      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8821    else
8822      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8823    fi
8824
8825 fi
8826 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8827 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8828
8829 cat >>confdefs.h <<_ACEOF
8830 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8831 _ACEOF
8832
8833
8834
8835 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8836 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8837 if test "${llvm_cv_link_use_r+set}" = set; then
8838   echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840    ac_ext=c
8841 ac_cpp='$CPP $CPPFLAGS'
8842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8845
8846   oldcflags="$CFLAGS"
8847   CFLAGS="$CFLAGS -Wl,-R."
8848   cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854
8855 int
8856 main ()
8857 {
8858
8859   ;
8860   return 0;
8861 }
8862 _ACEOF
8863 rm -f conftest.$ac_objext conftest$ac_exeext
8864 if { (ac_try="$ac_link"
8865 case "(($ac_try" in
8866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867   *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870   (eval "$ac_link") 2>conftest.er1
8871   ac_status=$?
8872   grep -v '^ *+' conftest.er1 >conftest.err
8873   rm -f conftest.er1
8874   cat conftest.err >&5
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); } &&
8877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8878   { (case "(($ac_try" in
8879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8880   *) ac_try_echo=$ac_try;;
8881 esac
8882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8883   (eval "$ac_try") 2>&5
8884   ac_status=$?
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); }; } &&
8887          { ac_try='test -s conftest$ac_exeext'
8888   { (case "(($ac_try" in
8889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890   *) ac_try_echo=$ac_try;;
8891 esac
8892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8893   (eval "$ac_try") 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); }; }; then
8897   llvm_cv_link_use_r=yes
8898 else
8899   echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8901
8902         llvm_cv_link_use_r=no
8903 fi
8904
8905 rm -f core conftest.err conftest.$ac_objext \
8906       conftest$ac_exeext conftest.$ac_ext
8907   CFLAGS="$oldcflags"
8908   ac_ext=c
8909 ac_cpp='$CPP $CPPFLAGS'
8910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8913
8914
8915 fi
8916 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8917 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8918 if test "$llvm_cv_link_use_r" = yes ; then
8919
8920 cat >>confdefs.h <<\_ACEOF
8921 #define HAVE_LINK_R 1
8922 _ACEOF
8923
8924   fi
8925
8926
8927 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8928 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8929 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8930   echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932    ac_ext=c
8933 ac_cpp='$CPP $CPPFLAGS'
8934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8937
8938   oldcflags="$CFLAGS"
8939   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8940   cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h.  */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h.  */
8946
8947 int
8948 main ()
8949 {
8950
8951   ;
8952   return 0;
8953 }
8954 _ACEOF
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (ac_try="$ac_link"
8957 case "(($ac_try" in
8958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959   *) ac_try_echo=$ac_try;;
8960 esac
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962   (eval "$ac_link") 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970   { (case "(($ac_try" in
8971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972   *) ac_try_echo=$ac_try;;
8973 esac
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975   (eval "$ac_try") 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); }; } &&
8979          { ac_try='test -s conftest$ac_exeext'
8980   { (case "(($ac_try" in
8981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982   *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985   (eval "$ac_try") 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   llvm_cv_link_use_export_dynamic=yes
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994         llvm_cv_link_use_export_dynamic=no
8995 fi
8996
8997 rm -f core conftest.err conftest.$ac_objext \
8998       conftest$ac_exeext conftest.$ac_ext
8999   CFLAGS="$oldcflags"
9000   ac_ext=c
9001 ac_cpp='$CPP $CPPFLAGS'
9002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9005
9006
9007 fi
9008 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9009 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9010 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9011
9012 cat >>confdefs.h <<\_ACEOF
9013 #define HAVE_LINK_EXPORT_DYNAMIC 1
9014 _ACEOF
9015
9016   fi
9017
9018
9019 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9020 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9021 if test "${llvm_cv_link_use_version_script+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024    ac_ext=c
9025 ac_cpp='$CPP $CPPFLAGS'
9026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9029
9030   oldcflags="$CFLAGS"
9031
9032   # The following code is from the autoconf manual,
9033   # "11.13: Limitations of Usual Tools".
9034   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9035   # Use mktemp if possible; otherwise fall back on mkdir,
9036   # with $RANDOM to make collisions less likely.
9037   : ${TMPDIR=/tmp}
9038   {
9039     tmp=`
9040       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9041     ` &&
9042     test -n "$tmp" && test -d "$tmp"
9043   } || {
9044     tmp=$TMPDIR/foo$$-$RANDOM
9045     (umask 077 && mkdir "$tmp")
9046   } || exit $?
9047
9048   echo "{" > "$tmp/export.map"
9049   echo "  global: main;" >> "$tmp/export.map"
9050   echo "  local: *;" >> "$tmp/export.map"
9051   echo "};" >> "$tmp/export.map"
9052
9053   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9054   cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h.  */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h.  */
9060
9061 int
9062 main ()
9063 {
9064
9065   ;
9066   return 0;
9067 }
9068 _ACEOF
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (ac_try="$ac_link"
9071 case "(($ac_try" in
9072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073   *) ac_try_echo=$ac_try;;
9074 esac
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076   (eval "$ac_link") 2>conftest.er1
9077   ac_status=$?
9078   grep -v '^ *+' conftest.er1 >conftest.err
9079   rm -f conftest.er1
9080   cat conftest.err >&5
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); } &&
9083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084   { (case "(($ac_try" in
9085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086   *) ac_try_echo=$ac_try;;
9087 esac
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089   (eval "$ac_try") 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; } &&
9093          { ac_try='test -s conftest$ac_exeext'
9094   { (case "(($ac_try" in
9095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096   *) ac_try_echo=$ac_try;;
9097 esac
9098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099   (eval "$ac_try") 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); }; }; then
9103   llvm_cv_link_use_version_script=yes
9104 else
9105   echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9107
9108         llvm_cv_link_use_version_script=no
9109 fi
9110
9111 rm -f core conftest.err conftest.$ac_objext \
9112       conftest$ac_exeext conftest.$ac_ext
9113   rm "$tmp/export.map"
9114   rmdir "$tmp"
9115   CFLAGS="$oldcflags"
9116   ac_ext=c
9117 ac_cpp='$CPP $CPPFLAGS'
9118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9121
9122
9123 fi
9124 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9125 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9126 if test "$llvm_cv_link_use_version_script" = yes ; then
9127   HAVE_LINK_VERSION_SCRIPT=1
9128
9129   fi
9130
9131
9132
9133
9134 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9135 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9136 if test "${ac_cv_c_const+set}" = set; then
9137   echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139   cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h.  */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h.  */
9145
9146 int
9147 main ()
9148 {
9149 /* FIXME: Include the comments suggested by Paul. */
9150 #ifndef __cplusplus
9151   /* Ultrix mips cc rejects this.  */
9152   typedef int charset[2];
9153   const charset x;
9154   /* SunOS 4.1.1 cc rejects this.  */
9155   char const *const *ccp;
9156   char **p;
9157   /* NEC SVR4.0.2 mips cc rejects this.  */
9158   struct point {int x, y;};
9159   static struct point const zero = {0,0};
9160   /* AIX XL C 1.02.0.0 rejects this.
9161      It does not let you subtract one const X* pointer from another in
9162      an arm of an if-expression whose if-part is not a constant
9163      expression */
9164   const char *g = "string";
9165   ccp = &g + (g ? g-g : 0);
9166   /* HPUX 7.0 cc rejects these. */
9167   ++ccp;
9168   p = (char**) ccp;
9169   ccp = (char const *const *) p;
9170   { /* SCO 3.2v4 cc rejects this.  */
9171     char *t;
9172     char const *s = 0 ? (char *) 0 : (char const *) 0;
9173
9174     *t++ = 0;
9175     if (s) return 0;
9176   }
9177   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9178     int x[] = {25, 17};
9179     const int *foo = &x[0];
9180     ++foo;
9181   }
9182   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9183     typedef const int *iptr;
9184     iptr p = 0;
9185     ++p;
9186   }
9187   { /* AIX XL C 1.02.0.0 rejects this saying
9188        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9189     struct s { int j; const int *ap[3]; };
9190     struct s *b; b->j = 5;
9191   }
9192   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9193     const int foo = 10;
9194     if (!foo) return 0;
9195   }
9196   return !x[0] && !zero.x;
9197 #endif
9198
9199   ;
9200   return 0;
9201 }
9202 _ACEOF
9203 rm -f conftest.$ac_objext
9204 if { (ac_try="$ac_compile"
9205 case "(($ac_try" in
9206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207   *) ac_try_echo=$ac_try;;
9208 esac
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210   (eval "$ac_compile") 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } &&
9217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218   { (case "(($ac_try" in
9219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220   *) ac_try_echo=$ac_try;;
9221 esac
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223   (eval "$ac_try") 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; } &&
9227          { ac_try='test -s conftest.$ac_objext'
9228   { (case "(($ac_try" in
9229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230   *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233   (eval "$ac_try") 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); }; }; then
9237   ac_cv_c_const=yes
9238 else
9239   echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9241
9242         ac_cv_c_const=no
9243 fi
9244
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246 fi
9247 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9248 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9249 if test $ac_cv_c_const = no; then
9250
9251 cat >>confdefs.h <<\_ACEOF
9252 #define const
9253 _ACEOF
9254
9255 fi
9256
9257
9258
9259
9260
9261
9262 ac_header_dirent=no
9263 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9264   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9265 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9266 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270   cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h.  */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h.  */
9276 #include <sys/types.h>
9277 #include <$ac_hdr>
9278
9279 int
9280 main ()
9281 {
9282 if ((DIR *) 0)
9283 return 0;
9284   ;
9285   return 0;
9286 }
9287 _ACEOF
9288 rm -f conftest.$ac_objext
9289 if { (ac_try="$ac_compile"
9290 case "(($ac_try" in
9291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292   *) ac_try_echo=$ac_try;;
9293 esac
9294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9295   (eval "$ac_compile") 2>conftest.er1
9296   ac_status=$?
9297   grep -v '^ *+' conftest.er1 >conftest.err
9298   rm -f conftest.er1
9299   cat conftest.err >&5
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } &&
9302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9303   { (case "(($ac_try" in
9304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305   *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308   (eval "$ac_try") 2>&5
9309   ac_status=$?
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); }; } &&
9312          { ac_try='test -s conftest.$ac_objext'
9313   { (case "(($ac_try" in
9314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315   *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318   (eval "$ac_try") 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; }; then
9322   eval "$as_ac_Header=yes"
9323 else
9324   echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327         eval "$as_ac_Header=no"
9328 fi
9329
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 ac_res=`eval echo '${'$as_ac_Header'}'`
9333                { echo "$as_me:$LINENO: result: $ac_res" >&5
9334 echo "${ECHO_T}$ac_res" >&6; }
9335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9336   cat >>confdefs.h <<_ACEOF
9337 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9338 _ACEOF
9339
9340 ac_header_dirent=$ac_hdr; break
9341 fi
9342
9343 done
9344 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9345 if test $ac_header_dirent = dirent.h; then
9346   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9347 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9348 if test "${ac_cv_search_opendir+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   ac_func_search_save_LIBS=$LIBS
9352 cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h.  */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h.  */
9358
9359 /* Override any GCC internal prototype to avoid an error.
9360    Use char because int might match the return type of a GCC
9361    builtin and then its argument prototype would still apply.  */
9362 #ifdef __cplusplus
9363 extern "C"
9364 #endif
9365 char opendir ();
9366 int
9367 main ()
9368 {
9369 return opendir ();
9370   ;
9371   return 0;
9372 }
9373 _ACEOF
9374 for ac_lib in '' dir; do
9375   if test -z "$ac_lib"; then
9376     ac_res="none required"
9377   else
9378     ac_res=-l$ac_lib
9379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9380   fi
9381   rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9383 case "(($ac_try" in
9384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385   *) ac_try_echo=$ac_try;;
9386 esac
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388   (eval "$ac_link") 2>conftest.er1
9389   ac_status=$?
9390   grep -v '^ *+' conftest.er1 >conftest.err
9391   rm -f conftest.er1
9392   cat conftest.err >&5
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); } &&
9395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9396   { (case "(($ac_try" in
9397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398   *) ac_try_echo=$ac_try;;
9399 esac
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401   (eval "$ac_try") 2>&5
9402   ac_status=$?
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); }; } &&
9405          { ac_try='test -s conftest$ac_exeext'
9406   { (case "(($ac_try" in
9407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408   *) ac_try_echo=$ac_try;;
9409 esac
9410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9411   (eval "$ac_try") 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; }; then
9415   ac_cv_search_opendir=$ac_res
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420
9421 fi
9422
9423 rm -f core conftest.err conftest.$ac_objext \
9424       conftest$ac_exeext
9425   if test "${ac_cv_search_opendir+set}" = set; then
9426   break
9427 fi
9428 done
9429 if test "${ac_cv_search_opendir+set}" = set; then
9430   :
9431 else
9432   ac_cv_search_opendir=no
9433 fi
9434 rm conftest.$ac_ext
9435 LIBS=$ac_func_search_save_LIBS
9436 fi
9437 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9438 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9439 ac_res=$ac_cv_search_opendir
9440 if test "$ac_res" != no; then
9441   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9442
9443 fi
9444
9445 else
9446   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9447 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9448 if test "${ac_cv_search_opendir+set}" = set; then
9449   echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451   ac_func_search_save_LIBS=$LIBS
9452 cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h.  */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h.  */
9458
9459 /* Override any GCC internal prototype to avoid an error.
9460    Use char because int might match the return type of a GCC
9461    builtin and then its argument prototype would still apply.  */
9462 #ifdef __cplusplus
9463 extern "C"
9464 #endif
9465 char opendir ();
9466 int
9467 main ()
9468 {
9469 return opendir ();
9470   ;
9471   return 0;
9472 }
9473 _ACEOF
9474 for ac_lib in '' x; do
9475   if test -z "$ac_lib"; then
9476     ac_res="none required"
9477   else
9478     ac_res=-l$ac_lib
9479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9480   fi
9481   rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (ac_try="$ac_link"
9483 case "(($ac_try" in
9484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485   *) ac_try_echo=$ac_try;;
9486 esac
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488   (eval "$ac_link") 2>conftest.er1
9489   ac_status=$?
9490   grep -v '^ *+' conftest.er1 >conftest.err
9491   rm -f conftest.er1
9492   cat conftest.err >&5
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } &&
9495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9496   { (case "(($ac_try" in
9497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498   *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501   (eval "$ac_try") 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); }; } &&
9505          { ac_try='test -s conftest$ac_exeext'
9506   { (case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_try") 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); }; }; then
9515   ac_cv_search_opendir=$ac_res
9516 else
9517   echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9519
9520
9521 fi
9522
9523 rm -f core conftest.err conftest.$ac_objext \
9524       conftest$ac_exeext
9525   if test "${ac_cv_search_opendir+set}" = set; then
9526   break
9527 fi
9528 done
9529 if test "${ac_cv_search_opendir+set}" = set; then
9530   :
9531 else
9532   ac_cv_search_opendir=no
9533 fi
9534 rm conftest.$ac_ext
9535 LIBS=$ac_func_search_save_LIBS
9536 fi
9537 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9538 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9539 ac_res=$ac_cv_search_opendir
9540 if test "$ac_res" != no; then
9541   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9542
9543 fi
9544
9545 fi
9546
9547
9548 for ac_header in dlfcn.h
9549 do
9550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9552   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9555   echo $ECHO_N "(cached) $ECHO_C" >&6
9556 fi
9557 ac_res=`eval echo '${'$as_ac_Header'}'`
9558                { echo "$as_me:$LINENO: result: $ac_res" >&5
9559 echo "${ECHO_T}$ac_res" >&6; }
9560 else
9561   # Is the header compilable?
9562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9564 cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 $ac_includes_default
9571 #include <$ac_header>
9572 _ACEOF
9573 rm -f conftest.$ac_objext
9574 if { (ac_try="$ac_compile"
9575 case "(($ac_try" in
9576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577   *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580   (eval "$ac_compile") 2>conftest.er1
9581   ac_status=$?
9582   grep -v '^ *+' conftest.er1 >conftest.err
9583   rm -f conftest.er1
9584   cat conftest.err >&5
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); } &&
9587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588   { (case "(($ac_try" in
9589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590   *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593   (eval "$ac_try") 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; } &&
9597          { ac_try='test -s conftest.$ac_objext'
9598   { (case "(($ac_try" in
9599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600   *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603   (eval "$ac_try") 2>&5
9604   ac_status=$?
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); }; }; then
9607   ac_header_compiler=yes
9608 else
9609   echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612         ac_header_compiler=no
9613 fi
9614
9615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9617 echo "${ECHO_T}$ac_header_compiler" >&6; }
9618
9619 # Is the header present?
9620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h.  */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h.  */
9628 #include <$ac_header>
9629 _ACEOF
9630 if { (ac_try="$ac_cpp conftest.$ac_ext"
9631 case "(($ac_try" in
9632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633   *) ac_try_echo=$ac_try;;
9634 esac
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9637   ac_status=$?
9638   grep -v '^ *+' conftest.er1 >conftest.err
9639   rm -f conftest.er1
9640   cat conftest.err >&5
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); } >/dev/null; then
9643   if test -s conftest.err; then
9644     ac_cpp_err=$ac_c_preproc_warn_flag
9645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9646   else
9647     ac_cpp_err=
9648   fi
9649 else
9650   ac_cpp_err=yes
9651 fi
9652 if test -z "$ac_cpp_err"; then
9653   ac_header_preproc=yes
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658   ac_header_preproc=no
9659 fi
9660
9661 rm -f conftest.err conftest.$ac_ext
9662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9663 echo "${ECHO_T}$ac_header_preproc" >&6; }
9664
9665 # So?  What about this header?
9666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9667   yes:no: )
9668     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9672     ac_header_preproc=yes
9673     ;;
9674   no:yes:* )
9675     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9677     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9678 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9679     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9681     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9682 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9685     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9687     ( cat <<\_ASBOX
9688 ## ----------------------------------- ##
9689 ## Report this to llvmbugs@cs.uiuc.edu ##
9690 ## ----------------------------------- ##
9691 _ASBOX
9692      ) | sed "s/^/$as_me: WARNING:     /" >&2
9693     ;;
9694 esac
9695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9698   echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700   eval "$as_ac_Header=\$ac_header_preproc"
9701 fi
9702 ac_res=`eval echo '${'$as_ac_Header'}'`
9703                { echo "$as_me:$LINENO: result: $ac_res" >&5
9704 echo "${ECHO_T}$ac_res" >&6; }
9705
9706 fi
9707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9708   cat >>confdefs.h <<_ACEOF
9709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9710 _ACEOF
9711
9712 fi
9713
9714 done
9715
9716 # Check whether --enable-ltdl-install was given.
9717 if test "${enable_ltdl_install+set}" = set; then
9718   enableval=$enable_ltdl_install;
9719 fi
9720
9721
9722
9723
9724 if test x"${enable_ltdl_install-no}" != xno; then
9725   INSTALL_LTDL_TRUE=
9726   INSTALL_LTDL_FALSE='#'
9727 else
9728   INSTALL_LTDL_TRUE='#'
9729   INSTALL_LTDL_FALSE=
9730 fi
9731
9732
9733
9734 if test x"${enable_ltdl_convenience-no}" != xno; then
9735   CONVENIENCE_LTDL_TRUE=
9736   CONVENIENCE_LTDL_FALSE='#'
9737 else
9738   CONVENIENCE_LTDL_TRUE='#'
9739   CONVENIENCE_LTDL_FALSE=
9740 fi
9741
9742
9743 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9744 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9745 library_names_spec=
9746 libname_spec='lib$name'
9747 soname_spec=
9748 shrext_cmds=".so"
9749 postinstall_cmds=
9750 postuninstall_cmds=
9751 finish_cmds=
9752 finish_eval=
9753 shlibpath_var=
9754 shlibpath_overrides_runpath=unknown
9755 version_type=none
9756 dynamic_linker="$host_os ld.so"
9757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9758 if test "$GCC" = yes; then
9759   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9760   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9761     # if the path contains ";" then we assume it to be the separator
9762     # otherwise default to the standard path separator (i.e. ":") - it is
9763     # assumed that no part of a normal pathname contains ";" but that should
9764     # okay in the real world where ";" in dirpaths is itself problematic.
9765     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9766   else
9767     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9768   fi
9769 else
9770   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9771 fi
9772 need_lib_prefix=unknown
9773 hardcode_into_libs=no
9774
9775 # when you set need_version to no, make sure it does not cause -set_version
9776 # flags to be left without arguments
9777 need_version=unknown
9778
9779 case $host_os in
9780 aix3*)
9781   version_type=linux
9782   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9783   shlibpath_var=LIBPATH
9784
9785   # AIX 3 has no versioning support, so we append a major version to the name.
9786   soname_spec='${libname}${release}${shared_ext}$major'
9787   ;;
9788
9789 aix4* | aix5*)
9790   version_type=linux
9791   need_lib_prefix=no
9792   need_version=no
9793   hardcode_into_libs=yes
9794   if test "$host_cpu" = ia64; then
9795     # AIX 5 supports IA64
9796     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9797     shlibpath_var=LD_LIBRARY_PATH
9798   else
9799     # With GCC up to 2.95.x, collect2 would create an import file
9800     # for dependence libraries.  The import file would start with
9801     # the line `#! .'.  This would cause the generated library to
9802     # depend on `.', always an invalid library.  This was fixed in
9803     # development snapshots of GCC prior to 3.0.
9804     case $host_os in
9805       aix4 | aix4.[01] | aix4.[01].*)
9806       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9807            echo ' yes '
9808            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9809         :
9810       else
9811         can_build_shared=no
9812       fi
9813       ;;
9814     esac
9815     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9816     # soname into executable. Probably we can add versioning support to
9817     # collect2, so additional links can be useful in future.
9818     if test "$aix_use_runtimelinking" = yes; then
9819       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9820       # instead of lib<name>.a to let people know that these are not
9821       # typical AIX shared libraries.
9822       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823     else
9824       # We preserve .a as extension for shared libraries through AIX4.2
9825       # and later when we are not doing run time linking.
9826       library_names_spec='${libname}${release}.a $libname.a'
9827       soname_spec='${libname}${release}${shared_ext}$major'
9828     fi
9829     shlibpath_var=LIBPATH
9830   fi
9831   ;;
9832
9833 amigaos*)
9834   library_names_spec='$libname.ixlibrary $libname.a'
9835   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9836   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'
9837   ;;
9838
9839 beos*)
9840   library_names_spec='${libname}${shared_ext}'
9841   dynamic_linker="$host_os ld.so"
9842   shlibpath_var=LIBRARY_PATH
9843   ;;
9844
9845 bsdi[45]*)
9846   version_type=linux
9847   need_version=no
9848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849   soname_spec='${libname}${release}${shared_ext}$major'
9850   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9851   shlibpath_var=LD_LIBRARY_PATH
9852   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9853   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9854   # the default ld.so.conf also contains /usr/contrib/lib and
9855   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9856   # libtool to hard-code these into programs
9857   ;;
9858
9859 cygwin* | mingw* | pw32*)
9860   version_type=windows
9861   shrext_cmds=".dll"
9862   need_version=no
9863   need_lib_prefix=no
9864
9865   case $GCC,$host_os in
9866   yes,cygwin* | yes,mingw* | yes,pw32*)
9867     library_names_spec='$libname.dll.a'
9868     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9869     postinstall_cmds='base_file=`basename \${file}`~
9870       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9871       dldir=$destdir/`dirname \$dlpath`~
9872       test -d \$dldir || mkdir -p \$dldir~
9873       $install_prog $dir/$dlname \$dldir/$dlname~
9874       chmod a+x \$dldir/$dlname'
9875     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9876       dlpath=$dir/\$dldll~
9877        $rm \$dlpath'
9878     shlibpath_overrides_runpath=yes
9879
9880     case $host_os in
9881     cygwin*)
9882       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9883       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9884       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9885       ;;
9886     mingw*)
9887       # MinGW DLLs use traditional 'lib' prefix
9888       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9889       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9890       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9891         # It is most probably a Windows format PATH printed by
9892         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9893         # path with ; separators, and with drive letters. We can handle the
9894         # drive letters (cygwin fileutils understands them), so leave them,
9895         # especially as we might pass files found there to a mingw objdump,
9896         # which wouldn't understand a cygwinified path. Ahh.
9897         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9898       else
9899         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9900       fi
9901       ;;
9902     pw32*)
9903       # pw32 DLLs use 'pw' prefix rather than 'lib'
9904       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9905       ;;
9906     esac
9907     ;;
9908
9909   *)
9910     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9911     ;;
9912   esac
9913   dynamic_linker='Win32 ld.exe'
9914   # FIXME: first we should search . and the directory the executable is in
9915   shlibpath_var=PATH
9916   ;;
9917
9918 darwin* | rhapsody*)
9919   dynamic_linker="$host_os dyld"
9920   version_type=darwin
9921   need_lib_prefix=no
9922   need_version=no
9923   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9924   soname_spec='${libname}${release}${major}$shared_ext'
9925   shlibpath_overrides_runpath=yes
9926   shlibpath_var=DYLD_LIBRARY_PATH
9927   shrext_cmds='.dylib'
9928   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9929   if test "$GCC" = yes; then
9930     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"`
9931   else
9932     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9933   fi
9934   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9935   ;;
9936
9937 dgux*)
9938   version_type=linux
9939   need_lib_prefix=no
9940   need_version=no
9941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9942   soname_spec='${libname}${release}${shared_ext}$major'
9943   shlibpath_var=LD_LIBRARY_PATH
9944   ;;
9945
9946 freebsd1*)
9947   dynamic_linker=no
9948   ;;
9949
9950 kfreebsd*-gnu)
9951   version_type=linux
9952   need_lib_prefix=no
9953   need_version=no
9954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9955   soname_spec='${libname}${release}${shared_ext}$major'
9956   shlibpath_var=LD_LIBRARY_PATH
9957   shlibpath_overrides_runpath=no
9958   hardcode_into_libs=yes
9959   dynamic_linker='GNU ld.so'
9960   ;;
9961
9962 freebsd* | dragonfly*)
9963   # DragonFly does not have aout.  When/if they implement a new
9964   # versioning mechanism, adjust this.
9965   if test -x /usr/bin/objformat; then
9966     objformat=`/usr/bin/objformat`
9967   else
9968     case $host_os in
9969     freebsd[123]*) objformat=aout ;;
9970     *) objformat=elf ;;
9971     esac
9972   fi
9973   version_type=freebsd-$objformat
9974   case $version_type in
9975     freebsd-elf*)
9976       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9977       need_version=no
9978       need_lib_prefix=no
9979       ;;
9980     freebsd-*)
9981       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9982       need_version=yes
9983       ;;
9984   esac
9985   shlibpath_var=LD_LIBRARY_PATH
9986   case $host_os in
9987   freebsd2*)
9988     shlibpath_overrides_runpath=yes
9989     ;;
9990   freebsd3.[01]* | freebsdelf3.[01]*)
9991     shlibpath_overrides_runpath=yes
9992     hardcode_into_libs=yes
9993     ;;
9994   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9995   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9996     shlibpath_overrides_runpath=no
9997     hardcode_into_libs=yes
9998     ;;
9999   freebsd*) # from 4.6 on
10000     shlibpath_overrides_runpath=yes
10001     hardcode_into_libs=yes
10002     ;;
10003   esac
10004   ;;
10005
10006 gnu*)
10007   version_type=linux
10008   need_lib_prefix=no
10009   need_version=no
10010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10011   soname_spec='${libname}${release}${shared_ext}$major'
10012   shlibpath_var=LD_LIBRARY_PATH
10013   hardcode_into_libs=yes
10014   ;;
10015
10016 hpux9* | hpux10* | hpux11*)
10017   # Give a soname corresponding to the major version so that dld.sl refuses to
10018   # link against other versions.
10019   version_type=sunos
10020   need_lib_prefix=no
10021   need_version=no
10022   case $host_cpu in
10023   ia64*)
10024     shrext_cmds='.so'
10025     hardcode_into_libs=yes
10026     dynamic_linker="$host_os dld.so"
10027     shlibpath_var=LD_LIBRARY_PATH
10028     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030     soname_spec='${libname}${release}${shared_ext}$major'
10031     if test "X$HPUX_IA64_MODE" = X32; then
10032       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10033     else
10034       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10035     fi
10036     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10037     ;;
10038    hppa*64*)
10039      shrext_cmds='.sl'
10040      hardcode_into_libs=yes
10041      dynamic_linker="$host_os dld.sl"
10042      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10043      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10044      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045      soname_spec='${libname}${release}${shared_ext}$major'
10046      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10047      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10048      ;;
10049    *)
10050     shrext_cmds='.sl'
10051     dynamic_linker="$host_os dld.sl"
10052     shlibpath_var=SHLIB_PATH
10053     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055     soname_spec='${libname}${release}${shared_ext}$major'
10056     ;;
10057   esac
10058   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10059   postinstall_cmds='chmod 555 $lib'
10060   ;;
10061
10062 interix3*)
10063   version_type=linux
10064   need_lib_prefix=no
10065   need_version=no
10066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10067   soname_spec='${libname}${release}${shared_ext}$major'
10068   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10069   shlibpath_var=LD_LIBRARY_PATH
10070   shlibpath_overrides_runpath=no
10071   hardcode_into_libs=yes
10072   ;;
10073
10074 irix5* | irix6* | nonstopux*)
10075   case $host_os in
10076     nonstopux*) version_type=nonstopux ;;
10077     *)
10078         if test "$lt_cv_prog_gnu_ld" = yes; then
10079                 version_type=linux
10080         else
10081                 version_type=irix
10082         fi ;;
10083   esac
10084   need_lib_prefix=no
10085   need_version=no
10086   soname_spec='${libname}${release}${shared_ext}$major'
10087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10088   case $host_os in
10089   irix5* | nonstopux*)
10090     libsuff= shlibsuff=
10091     ;;
10092   *)
10093     case $LD in # libtool.m4 will add one of these switches to LD
10094     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10095       libsuff= shlibsuff= libmagic=32-bit;;
10096     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10097       libsuff=32 shlibsuff=N32 libmagic=N32;;
10098     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10099       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10100     *) libsuff= shlibsuff= libmagic=never-match;;
10101     esac
10102     ;;
10103   esac
10104   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10105   shlibpath_overrides_runpath=no
10106   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10107   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10108   hardcode_into_libs=yes
10109   ;;
10110
10111 # No shared lib support for Linux oldld, aout, or coff.
10112 linux*oldld* | linux*aout* | linux*coff*)
10113   dynamic_linker=no
10114   ;;
10115
10116 # This must be Linux ELF.
10117 linux*)
10118   version_type=linux
10119   need_lib_prefix=no
10120   need_version=no
10121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122   soname_spec='${libname}${release}${shared_ext}$major'
10123   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10124   shlibpath_var=LD_LIBRARY_PATH
10125   shlibpath_overrides_runpath=no
10126   # This implies no fast_install, which is unacceptable.
10127   # Some rework will be needed to allow for fast_install
10128   # before this can be enabled.
10129   hardcode_into_libs=yes
10130
10131   # Append ld.so.conf contents to the search path
10132   if test -f /etc/ld.so.conf; then
10133     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' ' '`
10134     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10135   fi
10136
10137   # We used to test for /lib/ld.so.1 and disable shared libraries on
10138   # powerpc, because MkLinux only supported shared libraries with the
10139   # GNU dynamic linker.  Since this was broken with cross compilers,
10140   # most powerpc-linux boxes support dynamic linking these days and
10141   # people can always --disable-shared, the test was removed, and we
10142   # assume the GNU/Linux dynamic linker is in use.
10143   dynamic_linker='GNU/Linux ld.so'
10144   ;;
10145
10146 knetbsd*-gnu)
10147   version_type=linux
10148   need_lib_prefix=no
10149   need_version=no
10150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10151   soname_spec='${libname}${release}${shared_ext}$major'
10152   shlibpath_var=LD_LIBRARY_PATH
10153   shlibpath_overrides_runpath=no
10154   hardcode_into_libs=yes
10155   dynamic_linker='GNU ld.so'
10156   ;;
10157
10158 netbsd*)
10159   version_type=sunos
10160   need_lib_prefix=no
10161   need_version=no
10162   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10164     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10165     dynamic_linker='NetBSD (a.out) ld.so'
10166   else
10167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10168     soname_spec='${libname}${release}${shared_ext}$major'
10169     dynamic_linker='NetBSD ld.elf_so'
10170   fi
10171   shlibpath_var=LD_LIBRARY_PATH
10172   shlibpath_overrides_runpath=yes
10173   hardcode_into_libs=yes
10174   ;;
10175
10176 newsos6)
10177   version_type=linux
10178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179   shlibpath_var=LD_LIBRARY_PATH
10180   shlibpath_overrides_runpath=yes
10181   ;;
10182
10183 nto-qnx*)
10184   version_type=linux
10185   need_lib_prefix=no
10186   need_version=no
10187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188   soname_spec='${libname}${release}${shared_ext}$major'
10189   shlibpath_var=LD_LIBRARY_PATH
10190   shlibpath_overrides_runpath=yes
10191   ;;
10192
10193 openbsd*)
10194   version_type=sunos
10195   sys_lib_dlsearch_path_spec="/usr/lib"
10196   need_lib_prefix=no
10197   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10198   case $host_os in
10199     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10200     *)                         need_version=no  ;;
10201   esac
10202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10203   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10204   shlibpath_var=LD_LIBRARY_PATH
10205   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10206     case $host_os in
10207       openbsd2.[89] | openbsd2.[89].*)
10208         shlibpath_overrides_runpath=no
10209         ;;
10210       *)
10211         shlibpath_overrides_runpath=yes
10212         ;;
10213       esac
10214   else
10215     shlibpath_overrides_runpath=yes
10216   fi
10217   ;;
10218
10219 os2*)
10220   libname_spec='$name'
10221   shrext_cmds=".dll"
10222   need_lib_prefix=no
10223   library_names_spec='$libname${shared_ext} $libname.a'
10224   dynamic_linker='OS/2 ld.exe'
10225   shlibpath_var=LIBPATH
10226   ;;
10227
10228 osf3* | osf4* | osf5*)
10229   version_type=osf
10230   need_lib_prefix=no
10231   need_version=no
10232   soname_spec='${libname}${release}${shared_ext}$major'
10233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234   shlibpath_var=LD_LIBRARY_PATH
10235   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10236   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10237   ;;
10238
10239 solaris*)
10240   version_type=linux
10241   need_lib_prefix=no
10242   need_version=no
10243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244   soname_spec='${libname}${release}${shared_ext}$major'
10245   shlibpath_var=LD_LIBRARY_PATH
10246   shlibpath_overrides_runpath=yes
10247   hardcode_into_libs=yes
10248   # ldd complains unless libraries are executable
10249   postinstall_cmds='chmod +x $lib'
10250   ;;
10251
10252 sunos4*)
10253   version_type=sunos
10254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10256   shlibpath_var=LD_LIBRARY_PATH
10257   shlibpath_overrides_runpath=yes
10258   if test "$with_gnu_ld" = yes; then
10259     need_lib_prefix=no
10260   fi
10261   need_version=yes
10262   ;;
10263
10264 sysv4 | sysv4.3*)
10265   version_type=linux
10266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267   soname_spec='${libname}${release}${shared_ext}$major'
10268   shlibpath_var=LD_LIBRARY_PATH
10269   case $host_vendor in
10270     sni)
10271       shlibpath_overrides_runpath=no
10272       need_lib_prefix=no
10273       export_dynamic_flag_spec='${wl}-Blargedynsym'
10274       runpath_var=LD_RUN_PATH
10275       ;;
10276     siemens)
10277       need_lib_prefix=no
10278       ;;
10279     motorola)
10280       need_lib_prefix=no
10281       need_version=no
10282       shlibpath_overrides_runpath=no
10283       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10284       ;;
10285   esac
10286   ;;
10287
10288 sysv4*MP*)
10289   if test -d /usr/nec ;then
10290     version_type=linux
10291     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10292     soname_spec='$libname${shared_ext}.$major'
10293     shlibpath_var=LD_LIBRARY_PATH
10294   fi
10295   ;;
10296
10297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10298   version_type=freebsd-elf
10299   need_lib_prefix=no
10300   need_version=no
10301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10302   soname_spec='${libname}${release}${shared_ext}$major'
10303   shlibpath_var=LD_LIBRARY_PATH
10304   hardcode_into_libs=yes
10305   if test "$with_gnu_ld" = yes; then
10306     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10307     shlibpath_overrides_runpath=no
10308   else
10309     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10310     shlibpath_overrides_runpath=yes
10311     case $host_os in
10312       sco3.2v5*)
10313         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10314         ;;
10315     esac
10316   fi
10317   sys_lib_dlsearch_path_spec='/usr/lib'
10318   ;;
10319
10320 uts4*)
10321   version_type=linux
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323   soname_spec='${libname}${release}${shared_ext}$major'
10324   shlibpath_var=LD_LIBRARY_PATH
10325   ;;
10326
10327 *)
10328   dynamic_linker=no
10329   ;;
10330 esac
10331 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10332 echo "${ECHO_T}$dynamic_linker" >&6; }
10333 test "$dynamic_linker" = no && can_build_shared=no
10334
10335 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10336 if test "$GCC" = yes; then
10337   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10338 fi
10339
10340
10341 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10342 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10343 if test "${libltdl_cv_shlibext+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346
10347 module=yes
10348 eval libltdl_cv_shlibext=$shrext_cmds
10349
10350 fi
10351 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10352 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10353 if test -n "$libltdl_cv_shlibext"; then
10354
10355 cat >>confdefs.h <<_ACEOF
10356 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10357 _ACEOF
10358
10359 fi
10360
10361
10362 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10363 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10364 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367   libltdl_cv_shlibpath_var="$shlibpath_var"
10368 fi
10369 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10370 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10371 if test -n "$libltdl_cv_shlibpath_var"; then
10372
10373 cat >>confdefs.h <<_ACEOF
10374 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10375 _ACEOF
10376
10377 fi
10378
10379
10380 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10381 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10382 if test "${libltdl_cv_sys_search_path+set}" = set; then
10383   echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10386 fi
10387 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10388 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10389 if test -n "$libltdl_cv_sys_search_path"; then
10390   sys_search_path=
10391   for dir in $libltdl_cv_sys_search_path; do
10392     if test -z "$sys_search_path"; then
10393       sys_search_path="$dir"
10394     else
10395       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10396     fi
10397   done
10398
10399 cat >>confdefs.h <<_ACEOF
10400 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10401 _ACEOF
10402
10403 fi
10404
10405 { echo "$as_me:$LINENO: checking for objdir" >&5
10406 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10407 if test "${libltdl_cv_objdir+set}" = set; then
10408   echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410   libltdl_cv_objdir="$objdir"
10411   if test -n "$objdir"; then
10412     :
10413   else
10414     rm -f .libs 2>/dev/null
10415     mkdir .libs 2>/dev/null
10416     if test -d .libs; then
10417       libltdl_cv_objdir=.libs
10418     else
10419       # MS-DOS does not allow filenames that begin with a dot.
10420       libltdl_cv_objdir=_libs
10421     fi
10422   rmdir .libs 2>/dev/null
10423   fi
10424
10425 fi
10426 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10427 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10428
10429 cat >>confdefs.h <<_ACEOF
10430 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10431 _ACEOF
10432
10433
10434
10435
10436
10437
10438 # Check for command to grab the raw symbol name followed by C symbol from nm.
10439 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10440 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10441 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444
10445 # These are sane defaults that work on at least a few old systems.
10446 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10447
10448 # Character class describing NM global symbol codes.
10449 symcode='[BCDEGRST]'
10450
10451 # Regexp to match symbols that can be accessed directly from C.
10452 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10453
10454 # Transform an extracted symbol line into a proper C declaration
10455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10456
10457 # Transform an extracted symbol line into symbol name and symbol address
10458 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'"
10459
10460 # Define system-specific variables.
10461 case $host_os in
10462 aix*)
10463   symcode='[BCDT]'
10464   ;;
10465 cygwin* | mingw* | pw32*)
10466   symcode='[ABCDGISTW]'
10467   ;;
10468 hpux*) # Its linker distinguishes data from code symbols
10469   if test "$host_cpu" = ia64; then
10470     symcode='[ABCDEGRST]'
10471   fi
10472   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10473   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'"
10474   ;;
10475 linux*)
10476   if test "$host_cpu" = ia64; then
10477     symcode='[ABCDGIRSTW]'
10478     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10479     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'"
10480   fi
10481   ;;
10482 irix* | nonstopux*)
10483   symcode='[BCDEGRST]'
10484   ;;
10485 osf*)
10486   symcode='[BCDEGQRST]'
10487   ;;
10488 solaris*)
10489   symcode='[BDRT]'
10490   ;;
10491 sco3.2v5*)
10492   symcode='[DT]'
10493   ;;
10494 sysv4.2uw2*)
10495   symcode='[DT]'
10496   ;;
10497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10498   symcode='[ABDT]'
10499   ;;
10500 sysv4)
10501   symcode='[DFNSTU]'
10502   ;;
10503 esac
10504
10505 # Handle CRLF in mingw tool chain
10506 opt_cr=
10507 case $build_os in
10508 mingw*)
10509   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10510   ;;
10511 esac
10512
10513 # If we're using GNU nm, then use its standard symbol codes.
10514 case `$NM -V 2>&1` in
10515 *GNU* | *'with BFD'*)
10516   symcode='[ABCDGIRSTW]' ;;
10517 esac
10518
10519 # Try without a prefix undercore, then with it.
10520 for ac_symprfx in "" "_"; do
10521
10522   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10523   symxfrm="\\1 $ac_symprfx\\2 \\2"
10524
10525   # Write the raw and C identifiers.
10526   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10527
10528   # Check to see that the pipe works correctly.
10529   pipe_works=no
10530
10531   rm -f conftest*
10532   cat > conftest.$ac_ext <<EOF
10533 #ifdef __cplusplus
10534 extern "C" {
10535 #endif
10536 char nm_test_var;
10537 void nm_test_func(){}
10538 #ifdef __cplusplus
10539 }
10540 #endif
10541 int main(){nm_test_var='a';nm_test_func();return(0);}
10542 EOF
10543
10544   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10545   (eval $ac_compile) 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; then
10549     # Now try to grab the symbols.
10550     nlist=conftest.nm
10551     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10552   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } && test -s "$nlist"; then
10556       # Try sorting and uniquifying the output.
10557       if sort "$nlist" | uniq > "$nlist"T; then
10558         mv -f "$nlist"T "$nlist"
10559       else
10560         rm -f "$nlist"T
10561       fi
10562
10563       # Make sure that we snagged all the symbols we need.
10564       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10565         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10566           cat <<EOF > conftest.$ac_ext
10567 #ifdef __cplusplus
10568 extern "C" {
10569 #endif
10570
10571 EOF
10572           # Now generate the symbol file.
10573           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10574
10575           cat <<EOF >> conftest.$ac_ext
10576 #if defined (__STDC__) && __STDC__
10577 # define lt_ptr_t void *
10578 #else
10579 # define lt_ptr_t char *
10580 # define const
10581 #endif
10582
10583 /* The mapping between symbol names and symbols. */
10584 const struct {
10585   const char *name;
10586   lt_ptr_t address;
10587 }
10588 lt_preloaded_symbols[] =
10589 {
10590 EOF
10591           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10592           cat <<\EOF >> conftest.$ac_ext
10593   {0, (lt_ptr_t) 0}
10594 };
10595
10596 #ifdef __cplusplus
10597 }
10598 #endif
10599 EOF
10600           # Now try linking the two files.
10601           mv conftest.$ac_objext conftstm.$ac_objext
10602           lt_save_LIBS="$LIBS"
10603           lt_save_CFLAGS="$CFLAGS"
10604           LIBS="conftstm.$ac_objext"
10605           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10606           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10607   (eval $ac_link) 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10611             pipe_works=yes
10612           fi
10613           LIBS="$lt_save_LIBS"
10614           CFLAGS="$lt_save_CFLAGS"
10615         else
10616           echo "cannot find nm_test_func in $nlist" >&5
10617         fi
10618       else
10619         echo "cannot find nm_test_var in $nlist" >&5
10620       fi
10621     else
10622       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10623     fi
10624   else
10625     echo "$progname: failed program was:" >&5
10626     cat conftest.$ac_ext >&5
10627   fi
10628   rm -f conftest* conftst*
10629
10630   # Do not use the global_symbol_pipe unless it works.
10631   if test "$pipe_works" = yes; then
10632     break
10633   else
10634     lt_cv_sys_global_symbol_pipe=
10635   fi
10636 done
10637
10638 fi
10639
10640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10641   lt_cv_sys_global_symbol_to_cdecl=
10642 fi
10643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10644   { echo "$as_me:$LINENO: result: failed" >&5
10645 echo "${ECHO_T}failed" >&6; }
10646 else
10647   { echo "$as_me:$LINENO: result: ok" >&5
10648 echo "${ECHO_T}ok" >&6; }
10649 fi
10650
10651
10652 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10653 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10654 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10655   echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10658     libltdl_cv_preloaded_symbols=yes
10659   else
10660     libltdl_cv_preloaded_symbols=no
10661   fi
10662
10663 fi
10664 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10665 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10666 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10667
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_PRELOADED_SYMBOLS 1
10670 _ACEOF
10671
10672 fi
10673
10674 LIBADD_DL=
10675
10676 ac_ext=c
10677 ac_cpp='$CPP $CPPFLAGS'
10678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10681
10682
10683 { echo "$as_me:$LINENO: checking for shl_load" >&5
10684 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10685 if test "${ac_cv_func_shl_load+set}" = set; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688   cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h.  */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h.  */
10694 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10696 #define shl_load innocuous_shl_load
10697
10698 /* System header to define __stub macros and hopefully few prototypes,
10699     which can conflict with char shl_load (); below.
10700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10701     <limits.h> exists even on freestanding compilers.  */
10702
10703 #ifdef __STDC__
10704 # include <limits.h>
10705 #else
10706 # include <assert.h>
10707 #endif
10708
10709 #undef shl_load
10710
10711 /* Override any GCC internal prototype to avoid an error.
10712    Use char because int might match the return type of a GCC
10713    builtin and then its argument prototype would still apply.  */
10714 #ifdef __cplusplus
10715 extern "C"
10716 #endif
10717 char shl_load ();
10718 /* The GNU C library defines this for functions which it implements
10719     to always fail with ENOSYS.  Some functions are actually named
10720     something starting with __ and the normal name is an alias.  */
10721 #if defined __stub_shl_load || defined __stub___shl_load
10722 choke me
10723 #endif
10724
10725 int
10726 main ()
10727 {
10728 return shl_load ();
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (ac_try="$ac_link"
10735 case "(($ac_try" in
10736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737   *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740   (eval "$ac_link") 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } &&
10747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748   { (case "(($ac_try" in
10749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750   *) ac_try_echo=$ac_try;;
10751 esac
10752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753   (eval "$ac_try") 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; } &&
10757          { ac_try='test -s conftest$ac_exeext'
10758   { (case "(($ac_try" in
10759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760   *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763   (eval "$ac_try") 2>&5
10764   ac_status=$?
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); }; }; then
10767   ac_cv_func_shl_load=yes
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772         ac_cv_func_shl_load=no
10773 fi
10774
10775 rm -f core conftest.err conftest.$ac_objext \
10776       conftest$ac_exeext conftest.$ac_ext
10777 fi
10778 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10779 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10780 if test $ac_cv_func_shl_load = yes; then
10781
10782 cat >>confdefs.h <<\_ACEOF
10783 #define HAVE_SHL_LOAD 1
10784 _ACEOF
10785
10786 else
10787   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10788 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10789 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   ac_check_lib_save_LIBS=$LIBS
10793 LIBS="-ldld  $LIBS"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802    Use char because int might match the return type of a GCC
10803    builtin and then its argument prototype would still apply.  */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char shl_load ();
10808 int
10809 main ()
10810 {
10811 return shl_load ();
10812   ;
10813   return 0;
10814 }
10815 _ACEOF
10816 rm -f conftest.$ac_objext conftest$ac_exeext
10817 if { (ac_try="$ac_link"
10818 case "(($ac_try" in
10819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820   *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823   (eval "$ac_link") 2>conftest.er1
10824   ac_status=$?
10825   grep -v '^ *+' conftest.er1 >conftest.err
10826   rm -f conftest.er1
10827   cat conftest.err >&5
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); } &&
10830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10831   { (case "(($ac_try" in
10832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833   *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836   (eval "$ac_try") 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); }; } &&
10840          { ac_try='test -s conftest$ac_exeext'
10841   { (case "(($ac_try" in
10842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843   *) ac_try_echo=$ac_try;;
10844 esac
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846   (eval "$ac_try") 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; }; then
10850   ac_cv_lib_dld_shl_load=yes
10851 else
10852   echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10854
10855         ac_cv_lib_dld_shl_load=no
10856 fi
10857
10858 rm -f core conftest.err conftest.$ac_objext \
10859       conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10861 fi
10862 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10863 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10864 if test $ac_cv_lib_dld_shl_load = yes; then
10865
10866 cat >>confdefs.h <<\_ACEOF
10867 #define HAVE_SHL_LOAD 1
10868 _ACEOF
10869
10870         LIBADD_DL="$LIBADD_DL -ldld"
10871 else
10872   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10873 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10875   echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877   ac_check_lib_save_LIBS=$LIBS
10878 LIBS="-ldl  $LIBS"
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
10886 /* Override any GCC internal prototype to avoid an error.
10887    Use char because int might match the return type of a GCC
10888    builtin and then its argument prototype would still apply.  */
10889 #ifdef __cplusplus
10890 extern "C"
10891 #endif
10892 char dlopen ();
10893 int
10894 main ()
10895 {
10896 return dlopen ();
10897   ;
10898   return 0;
10899 }
10900 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (ac_try="$ac_link"
10903 case "(($ac_try" in
10904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905   *) ac_try_echo=$ac_try;;
10906 esac
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908   (eval "$ac_link") 2>conftest.er1
10909   ac_status=$?
10910   grep -v '^ *+' conftest.er1 >conftest.err
10911   rm -f conftest.er1
10912   cat conftest.err >&5
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); } &&
10915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10916   { (case "(($ac_try" in
10917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918   *) ac_try_echo=$ac_try;;
10919 esac
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921   (eval "$ac_try") 2>&5
10922   ac_status=$?
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); }; } &&
10925          { ac_try='test -s conftest$ac_exeext'
10926   { (case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931   (eval "$ac_try") 2>&5
10932   ac_status=$?
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); }; }; then
10935   ac_cv_lib_dl_dlopen=yes
10936 else
10937   echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10939
10940         ac_cv_lib_dl_dlopen=no
10941 fi
10942
10943 rm -f core conftest.err conftest.$ac_objext \
10944       conftest$ac_exeext conftest.$ac_ext
10945 LIBS=$ac_check_lib_save_LIBS
10946 fi
10947 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10949 if test $ac_cv_lib_dl_dlopen = yes; then
10950
10951 cat >>confdefs.h <<\_ACEOF
10952 #define HAVE_LIBDL 1
10953 _ACEOF
10954
10955                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10956 else
10957   cat >conftest.$ac_ext <<_ACEOF
10958 /* confdefs.h.  */
10959 _ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h.  */
10963 #if HAVE_DLFCN_H
10964 #  include <dlfcn.h>
10965 #endif
10966
10967 int
10968 main ()
10969 {
10970 dlopen(0, 0);
10971   ;
10972   return 0;
10973 }
10974 _ACEOF
10975 rm -f conftest.$ac_objext conftest$ac_exeext
10976 if { (ac_try="$ac_link"
10977 case "(($ac_try" in
10978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979   *) ac_try_echo=$ac_try;;
10980 esac
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982   (eval "$ac_link") 2>conftest.er1
10983   ac_status=$?
10984   grep -v '^ *+' conftest.er1 >conftest.err
10985   rm -f conftest.er1
10986   cat conftest.err >&5
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); } &&
10989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10990   { (case "(($ac_try" in
10991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992   *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995   (eval "$ac_try") 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); }; } &&
10999          { ac_try='test -s conftest$ac_exeext'
11000   { (case "(($ac_try" in
11001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002   *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005   (eval "$ac_try") 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); }; }; then
11009
11010 cat >>confdefs.h <<\_ACEOF
11011 #define HAVE_LIBDL 1
11012 _ACEOF
11013  libltdl_cv_func_dlopen="yes"
11014 else
11015   echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11019 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11020 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11021   echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023   ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-lsvld  $LIBS"
11025 cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h.  */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h.  */
11031
11032 /* Override any GCC internal prototype to avoid an error.
11033    Use char because int might match the return type of a GCC
11034    builtin and then its argument prototype would still apply.  */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char dlopen ();
11039 int
11040 main ()
11041 {
11042 return dlopen ();
11043   ;
11044   return 0;
11045 }
11046 _ACEOF
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (ac_try="$ac_link"
11049 case "(($ac_try" in
11050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051   *) ac_try_echo=$ac_try;;
11052 esac
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054   (eval "$ac_link") 2>conftest.er1
11055   ac_status=$?
11056   grep -v '^ *+' conftest.er1 >conftest.err
11057   rm -f conftest.er1
11058   cat conftest.err >&5
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } &&
11061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062   { (case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_try") 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; } &&
11071          { ac_try='test -s conftest$ac_exeext'
11072   { (case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077   (eval "$ac_try") 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   ac_cv_lib_svld_dlopen=yes
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086         ac_cv_lib_svld_dlopen=no
11087 fi
11088
11089 rm -f core conftest.err conftest.$ac_objext \
11090       conftest$ac_exeext conftest.$ac_ext
11091 LIBS=$ac_check_lib_save_LIBS
11092 fi
11093 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11094 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11095 if test $ac_cv_lib_svld_dlopen = yes; then
11096
11097 cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_LIBDL 1
11099 _ACEOF
11100
11101                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11102 else
11103   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11104 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11105 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11106   echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108   ac_check_lib_save_LIBS=$LIBS
11109 LIBS="-ldld  $LIBS"
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116
11117 /* Override any GCC internal prototype to avoid an error.
11118    Use char because int might match the return type of a GCC
11119    builtin and then its argument prototype would still apply.  */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 char dld_link ();
11124 int
11125 main ()
11126 {
11127 return dld_link ();
11128   ;
11129   return 0;
11130 }
11131 _ACEOF
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (ac_try="$ac_link"
11134 case "(($ac_try" in
11135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136   *) ac_try_echo=$ac_try;;
11137 esac
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139   (eval "$ac_link") 2>conftest.er1
11140   ac_status=$?
11141   grep -v '^ *+' conftest.er1 >conftest.err
11142   rm -f conftest.er1
11143   cat conftest.err >&5
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); } &&
11146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11147   { (case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_try") 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); }; } &&
11156          { ac_try='test -s conftest$ac_exeext'
11157   { (case "(($ac_try" in
11158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159   *) ac_try_echo=$ac_try;;
11160 esac
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162   (eval "$ac_try") 2>&5
11163   ac_status=$?
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); }; }; then
11166   ac_cv_lib_dld_dld_link=yes
11167 else
11168   echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11170
11171         ac_cv_lib_dld_dld_link=no
11172 fi
11173
11174 rm -f core conftest.err conftest.$ac_objext \
11175       conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_lib_save_LIBS
11177 fi
11178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11179 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11180 if test $ac_cv_lib_dld_dld_link = yes; then
11181
11182 cat >>confdefs.h <<\_ACEOF
11183 #define HAVE_DLD 1
11184 _ACEOF
11185
11186                 LIBADD_DL="$LIBADD_DL -ldld"
11187 else
11188   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11189 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11190 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11191   echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193   cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h.  */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h.  */
11199 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11201 #define _dyld_func_lookup innocuous__dyld_func_lookup
11202
11203 /* System header to define __stub macros and hopefully few prototypes,
11204     which can conflict with char _dyld_func_lookup (); below.
11205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11206     <limits.h> exists even on freestanding compilers.  */
11207
11208 #ifdef __STDC__
11209 # include <limits.h>
11210 #else
11211 # include <assert.h>
11212 #endif
11213
11214 #undef _dyld_func_lookup
11215
11216 /* Override any GCC internal prototype to avoid an error.
11217    Use char because int might match the return type of a GCC
11218    builtin and then its argument prototype would still apply.  */
11219 #ifdef __cplusplus
11220 extern "C"
11221 #endif
11222 char _dyld_func_lookup ();
11223 /* The GNU C library defines this for functions which it implements
11224     to always fail with ENOSYS.  Some functions are actually named
11225     something starting with __ and the normal name is an alias.  */
11226 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11227 choke me
11228 #endif
11229
11230 int
11231 main ()
11232 {
11233 return _dyld_func_lookup ();
11234   ;
11235   return 0;
11236 }
11237 _ACEOF
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (ac_try="$ac_link"
11240 case "(($ac_try" in
11241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242   *) ac_try_echo=$ac_try;;
11243 esac
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245   (eval "$ac_link") 2>conftest.er1
11246   ac_status=$?
11247   grep -v '^ *+' conftest.er1 >conftest.err
11248   rm -f conftest.er1
11249   cat conftest.err >&5
11250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251   (exit $ac_status); } &&
11252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11253   { (case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_try") 2>&5
11259   ac_status=$?
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); }; } &&
11262          { ac_try='test -s conftest$ac_exeext'
11263   { (case "(($ac_try" in
11264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265   *) ac_try_echo=$ac_try;;
11266 esac
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268   (eval "$ac_try") 2>&5
11269   ac_status=$?
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); }; }; then
11272   ac_cv_func__dyld_func_lookup=yes
11273 else
11274   echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277         ac_cv_func__dyld_func_lookup=no
11278 fi
11279
11280 rm -f core conftest.err conftest.$ac_objext \
11281       conftest$ac_exeext conftest.$ac_ext
11282 fi
11283 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11284 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11285 if test $ac_cv_func__dyld_func_lookup = yes; then
11286
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_DYLD 1
11289 _ACEOF
11290
11291 fi
11292
11293
11294 fi
11295
11296
11297 fi
11298
11299
11300 fi
11301
11302 rm -f core conftest.err conftest.$ac_objext \
11303       conftest$ac_exeext conftest.$ac_ext
11304
11305 fi
11306
11307
11308 fi
11309
11310
11311 fi
11312
11313
11314 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11315 then
11316   lt_save_LIBS="$LIBS"
11317   LIBS="$LIBS $LIBADD_DL"
11318
11319 for ac_func in dlerror
11320 do
11321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327   cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h.  */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h.  */
11333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11335 #define $ac_func innocuous_$ac_func
11336
11337 /* System header to define __stub macros and hopefully few prototypes,
11338     which can conflict with char $ac_func (); below.
11339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340     <limits.h> exists even on freestanding compilers.  */
11341
11342 #ifdef __STDC__
11343 # include <limits.h>
11344 #else
11345 # include <assert.h>
11346 #endif
11347
11348 #undef $ac_func
11349
11350 /* Override any GCC internal prototype to avoid an error.
11351    Use char because int might match the return type of a GCC
11352    builtin and then its argument prototype would still apply.  */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 char $ac_func ();
11357 /* The GNU C library defines this for functions which it implements
11358     to always fail with ENOSYS.  Some functions are actually named
11359     something starting with __ and the normal name is an alias.  */
11360 #if defined __stub_$ac_func || defined __stub___$ac_func
11361 choke me
11362 #endif
11363
11364 int
11365 main ()
11366 {
11367 return $ac_func ();
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (ac_try="$ac_link"
11374 case "(($ac_try" in
11375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376   *) ac_try_echo=$ac_try;;
11377 esac
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379   (eval "$ac_link") 2>conftest.er1
11380   ac_status=$?
11381   grep -v '^ *+' conftest.er1 >conftest.err
11382   rm -f conftest.er1
11383   cat conftest.err >&5
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); } &&
11386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11387   { (case "(($ac_try" in
11388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389   *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392   (eval "$ac_try") 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; } &&
11396          { ac_try='test -s conftest$ac_exeext'
11397   { (case "(($ac_try" in
11398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399   *) ac_try_echo=$ac_try;;
11400 esac
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402   (eval "$ac_try") 2>&5
11403   ac_status=$?
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); }; }; then
11406   eval "$as_ac_var=yes"
11407 else
11408   echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411         eval "$as_ac_var=no"
11412 fi
11413
11414 rm -f core conftest.err conftest.$ac_objext \
11415       conftest$ac_exeext conftest.$ac_ext
11416 fi
11417 ac_res=`eval echo '${'$as_ac_var'}'`
11418                { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11420 if test `eval echo '${'$as_ac_var'}'` = yes; then
11421   cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11423 _ACEOF
11424
11425 fi
11426 done
11427
11428   LIBS="$lt_save_LIBS"
11429 fi
11430 ac_ext=c
11431 ac_cpp='$CPP $CPPFLAGS'
11432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11435
11436
11437
11438 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11439 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11440 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 else
11443   ac_cv_sys_symbol_underscore=no
11444   cat > conftest.$ac_ext <<EOF
11445 void nm_test_func(){}
11446 int main(){nm_test_func;return 0;}
11447 EOF
11448   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449   (eval $ac_compile) 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); }; then
11453     # Now try to grab the symbols.
11454     ac_nlist=conftest.nm
11455     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11456   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); } && test -s "$ac_nlist"; then
11460       # See whether the symbols have a leading underscore.
11461       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11462         ac_cv_sys_symbol_underscore=yes
11463       else
11464         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11465           :
11466         else
11467           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11468         fi
11469       fi
11470     else
11471       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11472     fi
11473   else
11474     echo "configure: failed program was:" >&5
11475     cat conftest.c >&5
11476   fi
11477   rm -rf conftest*
11478
11479 fi
11480 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11481 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11482
11483
11484 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11485   if test x"$libltdl_cv_func_dlopen" = xyes ||
11486      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11487         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11488 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11489 if test "${libltdl_cv_need_uscore+set}" = set; then
11490   echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492   libltdl_cv_need_uscore=unknown
11493           save_LIBS="$LIBS"
11494           LIBS="$LIBS $LIBADD_DL"
11495           if test "$cross_compiling" = yes; then :
11496   libltdl_cv_need_uscore=cross
11497 else
11498   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11499   lt_status=$lt_dlunknown
11500   cat > conftest.$ac_ext <<EOF
11501 #line 11501 "configure"
11502 #include "confdefs.h"
11503
11504 #if HAVE_DLFCN_H
11505 #include <dlfcn.h>
11506 #endif
11507
11508 #include <stdio.h>
11509
11510 #ifdef RTLD_GLOBAL
11511 #  define LT_DLGLOBAL           RTLD_GLOBAL
11512 #else
11513 #  ifdef DL_GLOBAL
11514 #    define LT_DLGLOBAL         DL_GLOBAL
11515 #  else
11516 #    define LT_DLGLOBAL         0
11517 #  endif
11518 #endif
11519
11520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11521    find out it does not work in some platform. */
11522 #ifndef LT_DLLAZY_OR_NOW
11523 #  ifdef RTLD_LAZY
11524 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11525 #  else
11526 #    ifdef DL_LAZY
11527 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11528 #    else
11529 #      ifdef RTLD_NOW
11530 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11531 #      else
11532 #        ifdef DL_NOW
11533 #          define LT_DLLAZY_OR_NOW      DL_NOW
11534 #        else
11535 #          define LT_DLLAZY_OR_NOW      0
11536 #        endif
11537 #      endif
11538 #    endif
11539 #  endif
11540 #endif
11541
11542 #ifdef __cplusplus
11543 extern "C" void exit (int);
11544 #endif
11545
11546 void fnord() { int i=42;}
11547 int main ()
11548 {
11549   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11550   int status = $lt_dlunknown;
11551
11552   if (self)
11553     {
11554       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11555       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11556       /* dlclose (self); */
11557     }
11558   else
11559     puts (dlerror ());
11560
11561     exit (status);
11562 }
11563 EOF
11564   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11565   (eval $ac_link) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11569     (./conftest; exit; ) >&5 2>/dev/null
11570     lt_status=$?
11571     case x$lt_status in
11572       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11573       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11574       x$lt_dlunknown|x*)  ;;
11575     esac
11576   else :
11577     # compilation failed
11578
11579   fi
11580 fi
11581 rm -fr conftest*
11582
11583           LIBS="$save_LIBS"
11584
11585 fi
11586 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11587 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11588   fi
11589 fi
11590
11591 if test x"$libltdl_cv_need_uscore" = xyes; then
11592
11593 cat >>confdefs.h <<\_ACEOF
11594 #define NEED_USCORE 1
11595 _ACEOF
11596
11597 fi
11598
11599
11600 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11601 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11602 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11603   echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605   # PORTME does your system automatically load deplibs for dlopen?
11606   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11607   # For now, we just catch OSes we know something about -- in the
11608   # future, we'll try test this programmatically.
11609   libltdl_cv_sys_dlopen_deplibs=unknown
11610   case "$host_os" in
11611   aix3*|aix4.1.*|aix4.2.*)
11612     # Unknown whether this is true for these versions of AIX, but
11613     # we want this `case' here to explicitly catch those versions.
11614     libltdl_cv_sys_dlopen_deplibs=unknown
11615     ;;
11616   aix[45]*)
11617     libltdl_cv_sys_dlopen_deplibs=yes
11618     ;;
11619   darwin*)
11620     # Assuming the user has installed a libdl from somewhere, this is true
11621     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11622     libltdl_cv_sys_dlopen_deplibs=yes
11623     ;;
11624   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11625     # GNU and its variants, using gnu ld.so (Glibc)
11626     libltdl_cv_sys_dlopen_deplibs=yes
11627     ;;
11628   hpux10*|hpux11*)
11629     libltdl_cv_sys_dlopen_deplibs=yes
11630     ;;
11631   interix*)
11632     libltdl_cv_sys_dlopen_deplibs=yes
11633     ;;
11634   irix[12345]*|irix6.[01]*)
11635     # Catch all versions of IRIX before 6.2, and indicate that we don't
11636     # know how it worked for any of those versions.
11637     libltdl_cv_sys_dlopen_deplibs=unknown
11638     ;;
11639   irix*)
11640     # The case above catches anything before 6.2, and it's known that
11641     # at 6.2 and later dlopen does load deplibs.
11642     libltdl_cv_sys_dlopen_deplibs=yes
11643     ;;
11644   netbsd*)
11645     libltdl_cv_sys_dlopen_deplibs=yes
11646     ;;
11647   openbsd*)
11648     libltdl_cv_sys_dlopen_deplibs=yes
11649     ;;
11650   osf[1234]*)
11651     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11652     # it did *not* use an RPATH in a shared library to find objects the
11653     # library depends on, so we explictly say `no'.
11654     libltdl_cv_sys_dlopen_deplibs=no
11655     ;;
11656   osf5.0|osf5.0a|osf5.1)
11657     # dlopen *does* load deplibs and with the right loader patch applied
11658     # it even uses RPATH in a shared library to search for shared objects
11659     # that the library depends on, but there's no easy way to know if that
11660     # patch is installed.  Since this is the case, all we can really
11661     # say is unknown -- it depends on the patch being installed.  If
11662     # it is, this changes to `yes'.  Without it, it would be `no'.
11663     libltdl_cv_sys_dlopen_deplibs=unknown
11664     ;;
11665   osf*)
11666     # the two cases above should catch all versions of osf <= 5.1.  Read
11667     # the comments above for what we know about them.
11668     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11669     # is used to find them so we can finally say `yes'.
11670     libltdl_cv_sys_dlopen_deplibs=yes
11671     ;;
11672   solaris*)
11673     libltdl_cv_sys_dlopen_deplibs=yes
11674     ;;
11675   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11676     libltdl_cv_sys_dlopen_deplibs=yes
11677     ;;
11678   esac
11679
11680 fi
11681 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11682 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11683 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11684
11685 cat >>confdefs.h <<\_ACEOF
11686 #define LTDL_DLOPEN_DEPLIBS 1
11687 _ACEOF
11688
11689 fi
11690
11691
11692 for ac_header in argz.h
11693 do
11694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11696   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11699   echo $ECHO_N "(cached) $ECHO_C" >&6
11700 fi
11701 ac_res=`eval echo '${'$as_ac_Header'}'`
11702                { echo "$as_me:$LINENO: result: $ac_res" >&5
11703 echo "${ECHO_T}$ac_res" >&6; }
11704 else
11705   # Is the header compilable?
11706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11708 cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h.  */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h.  */
11714 $ac_includes_default
11715 #include <$ac_header>
11716 _ACEOF
11717 rm -f conftest.$ac_objext
11718 if { (ac_try="$ac_compile"
11719 case "(($ac_try" in
11720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721   *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724   (eval "$ac_compile") 2>conftest.er1
11725   ac_status=$?
11726   grep -v '^ *+' conftest.er1 >conftest.err
11727   rm -f conftest.er1
11728   cat conftest.err >&5
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); } &&
11731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11732   { (case "(($ac_try" in
11733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734   *) ac_try_echo=$ac_try;;
11735 esac
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737   (eval "$ac_try") 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); }; } &&
11741          { ac_try='test -s conftest.$ac_objext'
11742   { (case "(($ac_try" in
11743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744   *) ac_try_echo=$ac_try;;
11745 esac
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747   (eval "$ac_try") 2>&5
11748   ac_status=$?
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; }; then
11751   ac_header_compiler=yes
11752 else
11753   echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756         ac_header_compiler=no
11757 fi
11758
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11761 echo "${ECHO_T}$ac_header_compiler" >&6; }
11762
11763 # Is the header present?
11764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h.  */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h.  */
11772 #include <$ac_header>
11773 _ACEOF
11774 if { (ac_try="$ac_cpp conftest.$ac_ext"
11775 case "(($ac_try" in
11776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777   *) ac_try_echo=$ac_try;;
11778 esac
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } >/dev/null; then
11787   if test -s conftest.err; then
11788     ac_cpp_err=$ac_c_preproc_warn_flag
11789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11790   else
11791     ac_cpp_err=
11792   fi
11793 else
11794   ac_cpp_err=yes
11795 fi
11796 if test -z "$ac_cpp_err"; then
11797   ac_header_preproc=yes
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802   ac_header_preproc=no
11803 fi
11804
11805 rm -f conftest.err conftest.$ac_ext
11806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11807 echo "${ECHO_T}$ac_header_preproc" >&6; }
11808
11809 # So?  What about this header?
11810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11811   yes:no: )
11812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11816     ac_header_preproc=yes
11817     ;;
11818   no:yes:* )
11819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11831     ( cat <<\_ASBOX
11832 ## ----------------------------------- ##
11833 ## Report this to llvmbugs@cs.uiuc.edu ##
11834 ## ----------------------------------- ##
11835 _ASBOX
11836      ) | sed "s/^/$as_me: WARNING:     /" >&2
11837     ;;
11838 esac
11839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11842   echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844   eval "$as_ac_Header=\$ac_header_preproc"
11845 fi
11846 ac_res=`eval echo '${'$as_ac_Header'}'`
11847                { echo "$as_me:$LINENO: result: $ac_res" >&5
11848 echo "${ECHO_T}$ac_res" >&6; }
11849
11850 fi
11851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11852   cat >>confdefs.h <<_ACEOF
11853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11854 _ACEOF
11855
11856 fi
11857
11858 done
11859
11860
11861 { echo "$as_me:$LINENO: checking for error_t" >&5
11862 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11863 if test "${ac_cv_type_error_t+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h.  */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h.  */
11872 #if HAVE_ARGZ_H
11873 #  include <argz.h>
11874 #endif
11875
11876 typedef error_t ac__type_new_;
11877 int
11878 main ()
11879 {
11880 if ((ac__type_new_ *) 0)
11881   return 0;
11882 if (sizeof (ac__type_new_))
11883   return 0;
11884   ;
11885   return 0;
11886 }
11887 _ACEOF
11888 rm -f conftest.$ac_objext
11889 if { (ac_try="$ac_compile"
11890 case "(($ac_try" in
11891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892   *) ac_try_echo=$ac_try;;
11893 esac
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895   (eval "$ac_compile") 2>conftest.er1
11896   ac_status=$?
11897   grep -v '^ *+' conftest.er1 >conftest.err
11898   rm -f conftest.er1
11899   cat conftest.err >&5
11900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901   (exit $ac_status); } &&
11902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903   { (case "(($ac_try" in
11904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905   *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908   (eval "$ac_try") 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); }; } &&
11912          { ac_try='test -s conftest.$ac_objext'
11913   { (case "(($ac_try" in
11914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915   *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918   (eval "$ac_try") 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   ac_cv_type_error_t=yes
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927         ac_cv_type_error_t=no
11928 fi
11929
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 fi
11932 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11933 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11934 if test $ac_cv_type_error_t = yes; then
11935
11936 cat >>confdefs.h <<_ACEOF
11937 #define HAVE_ERROR_T 1
11938 _ACEOF
11939
11940
11941 else
11942
11943 cat >>confdefs.h <<\_ACEOF
11944 #define error_t int
11945 _ACEOF
11946
11947 fi
11948
11949
11950
11951
11952
11953
11954
11955 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11956 do
11957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11961   echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963   cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h.  */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h.  */
11969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11970    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11971 #define $ac_func innocuous_$ac_func
11972
11973 /* System header to define __stub macros and hopefully few prototypes,
11974     which can conflict with char $ac_func (); below.
11975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11976     <limits.h> exists even on freestanding compilers.  */
11977
11978 #ifdef __STDC__
11979 # include <limits.h>
11980 #else
11981 # include <assert.h>
11982 #endif
11983
11984 #undef $ac_func
11985
11986 /* Override any GCC internal prototype to avoid an error.
11987    Use char because int might match the return type of a GCC
11988    builtin and then its argument prototype would still apply.  */
11989 #ifdef __cplusplus
11990 extern "C"
11991 #endif
11992 char $ac_func ();
11993 /* The GNU C library defines this for functions which it implements
11994     to always fail with ENOSYS.  Some functions are actually named
11995     something starting with __ and the normal name is an alias.  */
11996 #if defined __stub_$ac_func || defined __stub___$ac_func
11997 choke me
11998 #endif
11999
12000 int
12001 main ()
12002 {
12003 return $ac_func ();
12004   ;
12005   return 0;
12006 }
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (ac_try="$ac_link"
12010 case "(($ac_try" in
12011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012   *) ac_try_echo=$ac_try;;
12013 esac
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015   (eval "$ac_link") 2>conftest.er1
12016   ac_status=$?
12017   grep -v '^ *+' conftest.er1 >conftest.err
12018   rm -f conftest.er1
12019   cat conftest.err >&5
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); } &&
12022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023   { (case "(($ac_try" in
12024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025   *) ac_try_echo=$ac_try;;
12026 esac
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028   (eval "$ac_try") 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); }; } &&
12032          { ac_try='test -s conftest$ac_exeext'
12033   { (case "(($ac_try" in
12034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035   *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038   (eval "$ac_try") 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   eval "$as_ac_var=yes"
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047         eval "$as_ac_var=no"
12048 fi
12049
12050 rm -f core conftest.err conftest.$ac_objext \
12051       conftest$ac_exeext conftest.$ac_ext
12052 fi
12053 ac_res=`eval echo '${'$as_ac_var'}'`
12054                { echo "$as_me:$LINENO: result: $ac_res" >&5
12055 echo "${ECHO_T}$ac_res" >&6; }
12056 if test `eval echo '${'$as_ac_var'}'` = yes; then
12057   cat >>confdefs.h <<_ACEOF
12058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12059 _ACEOF
12060
12061 fi
12062 done
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12092                   stdio.h unistd.h
12093 do
12094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099   echo $ECHO_N "(cached) $ECHO_C" >&6
12100 fi
12101 ac_res=`eval echo '${'$as_ac_Header'}'`
12102                { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12104 else
12105   # Is the header compilable?
12106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h.  */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h.  */
12114 $ac_includes_default
12115 #include <$ac_header>
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (ac_try="$ac_compile"
12119 case "(($ac_try" in
12120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121   *) ac_try_echo=$ac_try;;
12122 esac
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124   (eval "$ac_compile") 2>conftest.er1
12125   ac_status=$?
12126   grep -v '^ *+' conftest.er1 >conftest.err
12127   rm -f conftest.er1
12128   cat conftest.err >&5
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); } &&
12131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12132   { (case "(($ac_try" in
12133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134   *) ac_try_echo=$ac_try;;
12135 esac
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137   (eval "$ac_try") 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; } &&
12141          { ac_try='test -s conftest.$ac_objext'
12142   { (case "(($ac_try" in
12143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144   *) ac_try_echo=$ac_try;;
12145 esac
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147   (eval "$ac_try") 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); }; }; then
12151   ac_header_compiler=yes
12152 else
12153   echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12155
12156         ac_header_compiler=no
12157 fi
12158
12159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12161 echo "${ECHO_T}$ac_header_compiler" >&6; }
12162
12163 # Is the header present?
12164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12166 cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h.  */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h.  */
12172 #include <$ac_header>
12173 _ACEOF
12174 if { (ac_try="$ac_cpp conftest.$ac_ext"
12175 case "(($ac_try" in
12176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177   *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12181   ac_status=$?
12182   grep -v '^ *+' conftest.er1 >conftest.err
12183   rm -f conftest.er1
12184   cat conftest.err >&5
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); } >/dev/null; then
12187   if test -s conftest.err; then
12188     ac_cpp_err=$ac_c_preproc_warn_flag
12189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12190   else
12191     ac_cpp_err=
12192   fi
12193 else
12194   ac_cpp_err=yes
12195 fi
12196 if test -z "$ac_cpp_err"; then
12197   ac_header_preproc=yes
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202   ac_header_preproc=no
12203 fi
12204
12205 rm -f conftest.err conftest.$ac_ext
12206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12207 echo "${ECHO_T}$ac_header_preproc" >&6; }
12208
12209 # So?  What about this header?
12210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12211   yes:no: )
12212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12216     ac_header_preproc=yes
12217     ;;
12218   no:yes:* )
12219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12231     ( cat <<\_ASBOX
12232 ## ----------------------------------- ##
12233 ## Report this to llvmbugs@cs.uiuc.edu ##
12234 ## ----------------------------------- ##
12235 _ASBOX
12236      ) | sed "s/^/$as_me: WARNING:     /" >&2
12237     ;;
12238 esac
12239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12242   echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244   eval "$as_ac_Header=\$ac_header_preproc"
12245 fi
12246 ac_res=`eval echo '${'$as_ac_Header'}'`
12247                { echo "$as_me:$LINENO: result: $ac_res" >&5
12248 echo "${ECHO_T}$ac_res" >&6; }
12249
12250 fi
12251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12252   cat >>confdefs.h <<_ACEOF
12253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12254 _ACEOF
12255
12256 fi
12257
12258 done
12259
12260
12261
12262
12263
12264 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12265 do
12266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12268   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271   echo $ECHO_N "(cached) $ECHO_C" >&6
12272 fi
12273 ac_res=`eval echo '${'$as_ac_Header'}'`
12274                { echo "$as_me:$LINENO: result: $ac_res" >&5
12275 echo "${ECHO_T}$ac_res" >&6; }
12276 else
12277   # Is the header compilable?
12278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h.  */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h.  */
12286 $ac_includes_default
12287 #include <$ac_header>
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_compile") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } &&
12303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304   { (case "(($ac_try" in
12305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306   *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309   (eval "$ac_try") 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; } &&
12313          { ac_try='test -s conftest.$ac_objext'
12314   { (case "(($ac_try" in
12315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316   *) ac_try_echo=$ac_try;;
12317 esac
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319   (eval "$ac_try") 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); }; }; then
12323   ac_header_compiler=yes
12324 else
12325   echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12327
12328         ac_header_compiler=no
12329 fi
12330
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12333 echo "${ECHO_T}$ac_header_compiler" >&6; }
12334
12335 # Is the header present?
12336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12338 cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h.  */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h.  */
12344 #include <$ac_header>
12345 _ACEOF
12346 if { (ac_try="$ac_cpp conftest.$ac_ext"
12347 case "(($ac_try" in
12348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12349   *) ac_try_echo=$ac_try;;
12350 esac
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12353   ac_status=$?
12354   grep -v '^ *+' conftest.er1 >conftest.err
12355   rm -f conftest.er1
12356   cat conftest.err >&5
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } >/dev/null; then
12359   if test -s conftest.err; then
12360     ac_cpp_err=$ac_c_preproc_warn_flag
12361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12362   else
12363     ac_cpp_err=
12364   fi
12365 else
12366   ac_cpp_err=yes
12367 fi
12368 if test -z "$ac_cpp_err"; then
12369   ac_header_preproc=yes
12370 else
12371   echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374   ac_header_preproc=no
12375 fi
12376
12377 rm -f conftest.err conftest.$ac_ext
12378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12379 echo "${ECHO_T}$ac_header_preproc" >&6; }
12380
12381 # So?  What about this header?
12382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12383   yes:no: )
12384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12388     ac_header_preproc=yes
12389     ;;
12390   no:yes:* )
12391     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12393     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12394 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12395     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12397     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12398 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12401     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12403     ( cat <<\_ASBOX
12404 ## ----------------------------------- ##
12405 ## Report this to llvmbugs@cs.uiuc.edu ##
12406 ## ----------------------------------- ##
12407 _ASBOX
12408      ) | sed "s/^/$as_me: WARNING:     /" >&2
12409     ;;
12410 esac
12411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12414   echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416   eval "$as_ac_Header=\$ac_header_preproc"
12417 fi
12418 ac_res=`eval echo '${'$as_ac_Header'}'`
12419                { echo "$as_me:$LINENO: result: $ac_res" >&5
12420 echo "${ECHO_T}$ac_res" >&6; }
12421
12422 fi
12423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12424   cat >>confdefs.h <<_ACEOF
12425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12426 _ACEOF
12427
12428 fi
12429
12430 done
12431
12432
12433
12434 for ac_header in string.h strings.h
12435 do
12436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12438   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 fi
12443 ac_res=`eval echo '${'$as_ac_Header'}'`
12444                { echo "$as_me:$LINENO: result: $ac_res" >&5
12445 echo "${ECHO_T}$ac_res" >&6; }
12446 else
12447   # Is the header compilable?
12448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h.  */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h.  */
12456 $ac_includes_default
12457 #include <$ac_header>
12458 _ACEOF
12459 rm -f conftest.$ac_objext
12460 if { (ac_try="$ac_compile"
12461 case "(($ac_try" in
12462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463   *) ac_try_echo=$ac_try;;
12464 esac
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466   (eval "$ac_compile") 2>conftest.er1
12467   ac_status=$?
12468   grep -v '^ *+' conftest.er1 >conftest.err
12469   rm -f conftest.er1
12470   cat conftest.err >&5
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } &&
12473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12474   { (case "(($ac_try" in
12475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476   *) ac_try_echo=$ac_try;;
12477 esac
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479   (eval "$ac_try") 2>&5
12480   ac_status=$?
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); }; } &&
12483          { ac_try='test -s conftest.$ac_objext'
12484   { (case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489   (eval "$ac_try") 2>&5
12490   ac_status=$?
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); }; }; then
12493   ac_header_compiler=yes
12494 else
12495   echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12497
12498         ac_header_compiler=no
12499 fi
12500
12501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12503 echo "${ECHO_T}$ac_header_compiler" >&6; }
12504
12505 # Is the header present?
12506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h.  */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h.  */
12514 #include <$ac_header>
12515 _ACEOF
12516 if { (ac_try="$ac_cpp conftest.$ac_ext"
12517 case "(($ac_try" in
12518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519   *) ac_try_echo=$ac_try;;
12520 esac
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12523   ac_status=$?
12524   grep -v '^ *+' conftest.er1 >conftest.err
12525   rm -f conftest.er1
12526   cat conftest.err >&5
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } >/dev/null; then
12529   if test -s conftest.err; then
12530     ac_cpp_err=$ac_c_preproc_warn_flag
12531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12532   else
12533     ac_cpp_err=
12534   fi
12535 else
12536   ac_cpp_err=yes
12537 fi
12538 if test -z "$ac_cpp_err"; then
12539   ac_header_preproc=yes
12540 else
12541   echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12543
12544   ac_header_preproc=no
12545 fi
12546
12547 rm -f conftest.err conftest.$ac_ext
12548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12549 echo "${ECHO_T}$ac_header_preproc" >&6; }
12550
12551 # So?  What about this header?
12552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12553   yes:no: )
12554     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12558     ac_header_preproc=yes
12559     ;;
12560   no:yes:* )
12561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12563     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12564 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12565     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12567     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12568 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12571     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12573     ( cat <<\_ASBOX
12574 ## ----------------------------------- ##
12575 ## Report this to llvmbugs@cs.uiuc.edu ##
12576 ## ----------------------------------- ##
12577 _ASBOX
12578      ) | sed "s/^/$as_me: WARNING:     /" >&2
12579     ;;
12580 esac
12581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12584   echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586   eval "$as_ac_Header=\$ac_header_preproc"
12587 fi
12588 ac_res=`eval echo '${'$as_ac_Header'}'`
12589                { echo "$as_me:$LINENO: result: $ac_res" >&5
12590 echo "${ECHO_T}$ac_res" >&6; }
12591
12592 fi
12593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12594   cat >>confdefs.h <<_ACEOF
12595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12596 _ACEOF
12597  break
12598 fi
12599
12600 done
12601
12602
12603
12604
12605 for ac_func in strchr index
12606 do
12607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12611   echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613   cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h.  */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h.  */
12619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12621 #define $ac_func innocuous_$ac_func
12622
12623 /* System header to define __stub macros and hopefully few prototypes,
12624     which can conflict with char $ac_func (); below.
12625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12626     <limits.h> exists even on freestanding compilers.  */
12627
12628 #ifdef __STDC__
12629 # include <limits.h>
12630 #else
12631 # include <assert.h>
12632 #endif
12633
12634 #undef $ac_func
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637    Use char because int might match the return type of a GCC
12638    builtin and then its argument prototype would still apply.  */
12639 #ifdef __cplusplus
12640 extern "C"
12641 #endif
12642 char $ac_func ();
12643 /* The GNU C library defines this for functions which it implements
12644     to always fail with ENOSYS.  Some functions are actually named
12645     something starting with __ and the normal name is an alias.  */
12646 #if defined __stub_$ac_func || defined __stub___$ac_func
12647 choke me
12648 #endif
12649
12650 int
12651 main ()
12652 {
12653 return $ac_func ();
12654   ;
12655   return 0;
12656 }
12657 _ACEOF
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (ac_try="$ac_link"
12660 case "(($ac_try" in
12661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662   *) ac_try_echo=$ac_try;;
12663 esac
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665   (eval "$ac_link") 2>conftest.er1
12666   ac_status=$?
12667   grep -v '^ *+' conftest.er1 >conftest.err
12668   rm -f conftest.er1
12669   cat conftest.err >&5
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); } &&
12672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673   { (case "(($ac_try" in
12674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675   *) ac_try_echo=$ac_try;;
12676 esac
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678   (eval "$ac_try") 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); }; } &&
12682          { ac_try='test -s conftest$ac_exeext'
12683   { (case "(($ac_try" in
12684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685   *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688   (eval "$ac_try") 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; }; then
12692   eval "$as_ac_var=yes"
12693 else
12694   echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12696
12697         eval "$as_ac_var=no"
12698 fi
12699
12700 rm -f core conftest.err conftest.$ac_objext \
12701       conftest$ac_exeext conftest.$ac_ext
12702 fi
12703 ac_res=`eval echo '${'$as_ac_var'}'`
12704                { echo "$as_me:$LINENO: result: $ac_res" >&5
12705 echo "${ECHO_T}$ac_res" >&6; }
12706 if test `eval echo '${'$as_ac_var'}'` = yes; then
12707   cat >>confdefs.h <<_ACEOF
12708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12709 _ACEOF
12710  break
12711 fi
12712 done
12713
12714
12715
12716 for ac_func in strrchr rindex
12717 do
12718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12722   echo $ECHO_N "(cached) $ECHO_C" >&6
12723 else
12724   cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h.  */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h.  */
12730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12732 #define $ac_func innocuous_$ac_func
12733
12734 /* System header to define __stub macros and hopefully few prototypes,
12735     which can conflict with char $ac_func (); below.
12736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12737     <limits.h> exists even on freestanding compilers.  */
12738
12739 #ifdef __STDC__
12740 # include <limits.h>
12741 #else
12742 # include <assert.h>
12743 #endif
12744
12745 #undef $ac_func
12746
12747 /* Override any GCC internal prototype to avoid an error.
12748    Use char because int might match the return type of a GCC
12749    builtin and then its argument prototype would still apply.  */
12750 #ifdef __cplusplus
12751 extern "C"
12752 #endif
12753 char $ac_func ();
12754 /* The GNU C library defines this for functions which it implements
12755     to always fail with ENOSYS.  Some functions are actually named
12756     something starting with __ and the normal name is an alias.  */
12757 #if defined __stub_$ac_func || defined __stub___$ac_func
12758 choke me
12759 #endif
12760
12761 int
12762 main ()
12763 {
12764 return $ac_func ();
12765   ;
12766   return 0;
12767 }
12768 _ACEOF
12769 rm -f conftest.$ac_objext conftest$ac_exeext
12770 if { (ac_try="$ac_link"
12771 case "(($ac_try" in
12772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773   *) ac_try_echo=$ac_try;;
12774 esac
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776   (eval "$ac_link") 2>conftest.er1
12777   ac_status=$?
12778   grep -v '^ *+' conftest.er1 >conftest.err
12779   rm -f conftest.er1
12780   cat conftest.err >&5
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); } &&
12783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12784   { (case "(($ac_try" in
12785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786   *) ac_try_echo=$ac_try;;
12787 esac
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789   (eval "$ac_try") 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); }; } &&
12793          { ac_try='test -s conftest$ac_exeext'
12794   { (case "(($ac_try" in
12795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796   *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799   (eval "$ac_try") 2>&5
12800   ac_status=$?
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); }; }; then
12803   eval "$as_ac_var=yes"
12804 else
12805   echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808         eval "$as_ac_var=no"
12809 fi
12810
12811 rm -f core conftest.err conftest.$ac_objext \
12812       conftest$ac_exeext conftest.$ac_ext
12813 fi
12814 ac_res=`eval echo '${'$as_ac_var'}'`
12815                { echo "$as_me:$LINENO: result: $ac_res" >&5
12816 echo "${ECHO_T}$ac_res" >&6; }
12817 if test `eval echo '${'$as_ac_var'}'` = yes; then
12818   cat >>confdefs.h <<_ACEOF
12819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12820 _ACEOF
12821  break
12822 fi
12823 done
12824
12825
12826
12827 for ac_func in memcpy bcopy
12828 do
12829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12833   echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835   cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h.  */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h.  */
12841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12843 #define $ac_func innocuous_$ac_func
12844
12845 /* System header to define __stub macros and hopefully few prototypes,
12846     which can conflict with char $ac_func (); below.
12847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848     <limits.h> exists even on freestanding compilers.  */
12849
12850 #ifdef __STDC__
12851 # include <limits.h>
12852 #else
12853 # include <assert.h>
12854 #endif
12855
12856 #undef $ac_func
12857
12858 /* Override any GCC internal prototype to avoid an error.
12859    Use char because int might match the return type of a GCC
12860    builtin and then its argument prototype would still apply.  */
12861 #ifdef __cplusplus
12862 extern "C"
12863 #endif
12864 char $ac_func ();
12865 /* The GNU C library defines this for functions which it implements
12866     to always fail with ENOSYS.  Some functions are actually named
12867     something starting with __ and the normal name is an alias.  */
12868 #if defined __stub_$ac_func || defined __stub___$ac_func
12869 choke me
12870 #endif
12871
12872 int
12873 main ()
12874 {
12875 return $ac_func ();
12876   ;
12877   return 0;
12878 }
12879 _ACEOF
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
12882 case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_link") 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } &&
12894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895   { (case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_try") 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest$ac_exeext'
12905   { (case "(($ac_try" in
12906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907   *) ac_try_echo=$ac_try;;
12908 esac
12909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12910   (eval "$ac_try") 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   eval "$as_ac_var=yes"
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919         eval "$as_ac_var=no"
12920 fi
12921
12922 rm -f core conftest.err conftest.$ac_objext \
12923       conftest$ac_exeext conftest.$ac_ext
12924 fi
12925 ac_res=`eval echo '${'$as_ac_var'}'`
12926                { echo "$as_me:$LINENO: result: $ac_res" >&5
12927 echo "${ECHO_T}$ac_res" >&6; }
12928 if test `eval echo '${'$as_ac_var'}'` = yes; then
12929   cat >>confdefs.h <<_ACEOF
12930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12931 _ACEOF
12932  break
12933 fi
12934 done
12935
12936
12937
12938 for ac_func in memmove strcmp
12939 do
12940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12944   echo $ECHO_N "(cached) $ECHO_C" >&6
12945 else
12946   cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12954 #define $ac_func innocuous_$ac_func
12955
12956 /* System header to define __stub macros and hopefully few prototypes,
12957     which can conflict with char $ac_func (); below.
12958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12959     <limits.h> exists even on freestanding compilers.  */
12960
12961 #ifdef __STDC__
12962 # include <limits.h>
12963 #else
12964 # include <assert.h>
12965 #endif
12966
12967 #undef $ac_func
12968
12969 /* Override any GCC internal prototype to avoid an error.
12970    Use char because int might match the return type of a GCC
12971    builtin and then its argument prototype would still apply.  */
12972 #ifdef __cplusplus
12973 extern "C"
12974 #endif
12975 char $ac_func ();
12976 /* The GNU C library defines this for functions which it implements
12977     to always fail with ENOSYS.  Some functions are actually named
12978     something starting with __ and the normal name is an alias.  */
12979 #if defined __stub_$ac_func || defined __stub___$ac_func
12980 choke me
12981 #endif
12982
12983 int
12984 main ()
12985 {
12986 return $ac_func ();
12987   ;
12988   return 0;
12989 }
12990 _ACEOF
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995   *) ac_try_echo=$ac_try;;
12996 esac
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998   (eval "$ac_link") 2>conftest.er1
12999   ac_status=$?
13000   grep -v '^ *+' conftest.er1 >conftest.err
13001   rm -f conftest.er1
13002   cat conftest.err >&5
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } &&
13005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006   { (case "(($ac_try" in
13007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008   *) ac_try_echo=$ac_try;;
13009 esac
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011   (eval "$ac_try") 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; } &&
13015          { ac_try='test -s conftest$ac_exeext'
13016   { (case "(($ac_try" in
13017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018   *) ac_try_echo=$ac_try;;
13019 esac
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021   (eval "$ac_try") 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }; }; then
13025   eval "$as_ac_var=yes"
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030         eval "$as_ac_var=no"
13031 fi
13032
13033 rm -f core conftest.err conftest.$ac_objext \
13034       conftest$ac_exeext conftest.$ac_ext
13035 fi
13036 ac_res=`eval echo '${'$as_ac_var'}'`
13037                { echo "$as_me:$LINENO: result: $ac_res" >&5
13038 echo "${ECHO_T}$ac_res" >&6; }
13039 if test `eval echo '${'$as_ac_var'}'` = yes; then
13040   cat >>confdefs.h <<_ACEOF
13041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13042 _ACEOF
13043
13044 fi
13045 done
13046
13047
13048
13049
13050 for ac_func in closedir opendir readdir
13051 do
13052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13056   echo $ECHO_N "(cached) $ECHO_C" >&6
13057 else
13058   cat >conftest.$ac_ext <<_ACEOF
13059 /* confdefs.h.  */
13060 _ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h.  */
13064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13066 #define $ac_func innocuous_$ac_func
13067
13068 /* System header to define __stub macros and hopefully few prototypes,
13069     which can conflict with char $ac_func (); below.
13070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13071     <limits.h> exists even on freestanding compilers.  */
13072
13073 #ifdef __STDC__
13074 # include <limits.h>
13075 #else
13076 # include <assert.h>
13077 #endif
13078
13079 #undef $ac_func
13080
13081 /* Override any GCC internal prototype to avoid an error.
13082    Use char because int might match the return type of a GCC
13083    builtin and then its argument prototype would still apply.  */
13084 #ifdef __cplusplus
13085 extern "C"
13086 #endif
13087 char $ac_func ();
13088 /* The GNU C library defines this for functions which it implements
13089     to always fail with ENOSYS.  Some functions are actually named
13090     something starting with __ and the normal name is an alias.  */
13091 #if defined __stub_$ac_func || defined __stub___$ac_func
13092 choke me
13093 #endif
13094
13095 int
13096 main ()
13097 {
13098 return $ac_func ();
13099   ;
13100   return 0;
13101 }
13102 _ACEOF
13103 rm -f conftest.$ac_objext conftest$ac_exeext
13104 if { (ac_try="$ac_link"
13105 case "(($ac_try" in
13106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107   *) ac_try_echo=$ac_try;;
13108 esac
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110   (eval "$ac_link") 2>conftest.er1
13111   ac_status=$?
13112   grep -v '^ *+' conftest.er1 >conftest.err
13113   rm -f conftest.er1
13114   cat conftest.err >&5
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } &&
13117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13118   { (case "(($ac_try" in
13119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120   *) ac_try_echo=$ac_try;;
13121 esac
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123   (eval "$ac_try") 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; } &&
13127          { ac_try='test -s conftest$ac_exeext'
13128   { (case "(($ac_try" in
13129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130   *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133   (eval "$ac_try") 2>&5
13134   ac_status=$?
13135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136   (exit $ac_status); }; }; then
13137   eval "$as_ac_var=yes"
13138 else
13139   echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13141
13142         eval "$as_ac_var=no"
13143 fi
13144
13145 rm -f core conftest.err conftest.$ac_objext \
13146       conftest$ac_exeext conftest.$ac_ext
13147 fi
13148 ac_res=`eval echo '${'$as_ac_var'}'`
13149                { echo "$as_me:$LINENO: result: $ac_res" >&5
13150 echo "${ECHO_T}$ac_res" >&6; }
13151 if test `eval echo '${'$as_ac_var'}'` = yes; then
13152   cat >>confdefs.h <<_ACEOF
13153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13154 _ACEOF
13155
13156 fi
13157 done
13158
13159
13160
13161 if test "$WITH_LLVMGCCDIR" = "default" ; then
13162   LLVMGCC="llvm-gcc${EXEEXT}"
13163   LLVMGXX="llvm-g++${EXEEXT}"
13164   LLVMGCCCOMMAND="$LLVMGCC"
13165   LLVMGXXCOMMAND="$LLVMGXX"
13166   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13167
13168   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13169
13170   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13171 set dummy $LLVMGCC; ac_word=$2
13172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13174 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13175   echo $ECHO_N "(cached) $ECHO_C" >&6
13176 else
13177   case $LLVMGCC in
13178   [\\/]* | ?:[\\/]*)
13179   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13180   ;;
13181   *)
13182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13184 do
13185   IFS=$as_save_IFS
13186   test -z "$as_dir" && as_dir=.
13187   for ac_exec_ext in '' $ac_executable_extensions; do
13188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13189     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13191     break 2
13192   fi
13193 done
13194 done
13195 IFS=$as_save_IFS
13196
13197   ;;
13198 esac
13199 fi
13200 LLVMGCC=$ac_cv_path_LLVMGCC
13201 if test -n "$LLVMGCC"; then
13202   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13203 echo "${ECHO_T}$LLVMGCC" >&6; }
13204 else
13205   { echo "$as_me:$LINENO: result: no" >&5
13206 echo "${ECHO_T}no" >&6; }
13207 fi
13208
13209
13210   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13211 set dummy $LLVMGXX; ac_word=$2
13212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13214 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217   case $LLVMGXX in
13218   [\\/]* | ?:[\\/]*)
13219   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13220   ;;
13221   *)
13222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13224 do
13225   IFS=$as_save_IFS
13226   test -z "$as_dir" && as_dir=.
13227   for ac_exec_ext in '' $ac_executable_extensions; do
13228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13229     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13231     break 2
13232   fi
13233 done
13234 done
13235 IFS=$as_save_IFS
13236
13237   ;;
13238 esac
13239 fi
13240 LLVMGXX=$ac_cv_path_LLVMGXX
13241 if test -n "$LLVMGXX"; then
13242   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13243 echo "${ECHO_T}$LLVMGXX" >&6; }
13244 else
13245   { echo "$as_me:$LINENO: result: no" >&5
13246 echo "${ECHO_T}no" >&6; }
13247 fi
13248
13249
13250 else
13251   if test -z "$LLVMGCC"; then
13252     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13253     LLVMGCCCOMMAND="$LLVMGCC"
13254   fi
13255   if test -z "$LLVMGXX"; then
13256     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13257     LLVMGXXCOMMAND="$LLVMGXX"
13258   fi
13259
13260   LLVMGCC=$LLVMGCC
13261
13262   LLVMGXX=$LLVMGXX
13263
13264   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13265
13266   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13267
13268 fi
13269
13270
13271 # Check whether --with-llvmcc was given.
13272 if test "${with_llvmcc+set}" = set; then
13273   withval=$with_llvmcc;
13274 else
13275   with_llvmcc=check
13276 fi
13277
13278 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13279 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13280 if test "$with_llvmcc" != "check"; then
13281    if (test "$with_llvmcc" != "llvm-gcc" &&
13282        test "$with_llvmcc" != "clang" &&
13283        test "$with_llvmcc" != "none"); then
13284       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13285 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13286    { (exit 1); exit 1; }; }
13287    fi
13288    WITH_LLVMCC="$with_llvmcc"
13289 elif test -n "$LLVMGCC"; then
13290    WITH_LLVMCC=llvm-gcc
13291 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13292    WITH_LLVMCC=clang
13293 else
13294    WITH_LLVMCC=none
13295 fi
13296 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13297 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13298 LLVMCC_OPTION=$WITH_LLVMCC
13299
13300
13301 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13302 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13303
13304 ICC=no
13305 IXX=no
13306 case $CC in
13307   icc*|icpc*)
13308     ICC=yes
13309     IXX=yes
13310     ;;
13311    *)
13312     ;;
13313 esac
13314
13315 if test "$GCC" != "yes" && test "$ICC" != "yes"
13316 then
13317   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13318 echo "$as_me: error: gcc|icc required but not found" >&2;}
13319    { (exit 1); exit 1; }; }
13320 fi
13321
13322 if test "$GXX" != "yes" && test "$IXX" != "yes"
13323 then
13324   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13325 echo "$as_me: error: g++|icc required but not found" >&2;}
13326    { (exit 1); exit 1; }; }
13327 fi
13328
13329 if test "$GCC" = "yes"
13330 then
13331   cat >conftest.$ac_ext <<_ACEOF
13332 #if !defined(__GNUC__) || __GNUC__ < 3
13333 #error Unsupported GCC version
13334 #endif
13335
13336 _ACEOF
13337 rm -f conftest.$ac_objext
13338 if { (ac_try="$ac_compile"
13339 case "(($ac_try" in
13340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341   *) ac_try_echo=$ac_try;;
13342 esac
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344   (eval "$ac_compile") 2>conftest.er1
13345   ac_status=$?
13346   grep -v '^ *+' conftest.er1 >conftest.err
13347   rm -f conftest.er1
13348   cat conftest.err >&5
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); } &&
13351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13352   { (case "(($ac_try" in
13353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354   *) ac_try_echo=$ac_try;;
13355 esac
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357   (eval "$ac_try") 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); }; } &&
13361          { ac_try='test -s conftest.$ac_objext'
13362   { (case "(($ac_try" in
13363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364   *) ac_try_echo=$ac_try;;
13365 esac
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367   (eval "$ac_try") 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; }; then
13371   :
13372 else
13373   echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13375
13376         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13377 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13378    { (exit 1); exit 1; }; }
13379 fi
13380
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 fi
13383
13384 if test -z "$llvm_cv_gnu_make_command"
13385 then
13386   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13387 echo "$as_me: error: GNU Make required but not found" >&2;}
13388    { (exit 1); exit 1; }; }
13389 fi
13390
13391 { echo "$as_me:$LINENO: result: ok" >&5
13392 echo "${ECHO_T}ok" >&6; }
13393
13394 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13395 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13396 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13397
13398 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13399
13400 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13401 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13402
13403
13404
13405 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13406 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13407 if test "${ac_cv_lib_m_sin+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410   ac_check_lib_save_LIBS=$LIBS
13411 LIBS="-lm  $LIBS"
13412 cat >conftest.$ac_ext <<_ACEOF
13413 /* confdefs.h.  */
13414 _ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h.  */
13418
13419 /* Override any GCC internal prototype to avoid an error.
13420    Use char because int might match the return type of a GCC
13421    builtin and then its argument prototype would still apply.  */
13422 #ifdef __cplusplus
13423 extern "C"
13424 #endif
13425 char sin ();
13426 int
13427 main ()
13428 {
13429 return sin ();
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 rm -f conftest.$ac_objext conftest$ac_exeext
13435 if { (ac_try="$ac_link"
13436 case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_link") 2>conftest.er1
13442   ac_status=$?
13443   grep -v '^ *+' conftest.er1 >conftest.err
13444   rm -f conftest.er1
13445   cat conftest.err >&5
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } &&
13448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13449   { (case "(($ac_try" in
13450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451   *) ac_try_echo=$ac_try;;
13452 esac
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454   (eval "$ac_try") 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; } &&
13458          { ac_try='test -s conftest$ac_exeext'
13459   { (case "(($ac_try" in
13460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461   *) ac_try_echo=$ac_try;;
13462 esac
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464   (eval "$ac_try") 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468   ac_cv_lib_m_sin=yes
13469 else
13470   echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473         ac_cv_lib_m_sin=no
13474 fi
13475
13476 rm -f core conftest.err conftest.$ac_objext \
13477       conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13479 fi
13480 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13481 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13482 if test $ac_cv_lib_m_sin = yes; then
13483   cat >>confdefs.h <<_ACEOF
13484 #define HAVE_LIBM 1
13485 _ACEOF
13486
13487   LIBS="-lm $LIBS"
13488
13489 fi
13490
13491 if test "$llvm_cv_os_type" = "MingW" ; then
13492
13493 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13494 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13495 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13496   echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498   ac_check_lib_save_LIBS=$LIBS
13499 LIBS="-limagehlp  $LIBS"
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506
13507
13508 int
13509 main ()
13510 {
13511 return main ();
13512   ;
13513   return 0;
13514 }
13515 _ACEOF
13516 rm -f conftest.$ac_objext conftest$ac_exeext
13517 if { (ac_try="$ac_link"
13518 case "(($ac_try" in
13519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520   *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523   (eval "$ac_link") 2>conftest.er1
13524   ac_status=$?
13525   grep -v '^ *+' conftest.er1 >conftest.err
13526   rm -f conftest.er1
13527   cat conftest.err >&5
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); } &&
13530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13531   { (case "(($ac_try" in
13532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533   *) ac_try_echo=$ac_try;;
13534 esac
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536   (eval "$ac_try") 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); }; } &&
13540          { ac_try='test -s conftest$ac_exeext'
13541   { (case "(($ac_try" in
13542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543   *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546   (eval "$ac_try") 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; }; then
13550   ac_cv_lib_imagehlp_main=yes
13551 else
13552   echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13554
13555         ac_cv_lib_imagehlp_main=no
13556 fi
13557
13558 rm -f core conftest.err conftest.$ac_objext \
13559       conftest$ac_exeext conftest.$ac_ext
13560 LIBS=$ac_check_lib_save_LIBS
13561 fi
13562 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13563 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13564 if test $ac_cv_lib_imagehlp_main = yes; then
13565   cat >>confdefs.h <<_ACEOF
13566 #define HAVE_LIBIMAGEHLP 1
13567 _ACEOF
13568
13569   LIBS="-limagehlp $LIBS"
13570
13571 fi
13572
13573
13574 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13575 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13576 if test "${ac_cv_lib_psapi_main+set}" = set; then
13577   echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579   ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-lpsapi  $LIBS"
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h.  */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h.  */
13587
13588
13589 int
13590 main ()
13591 {
13592 return main ();
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (ac_try="$ac_link"
13599 case "(($ac_try" in
13600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601   *) ac_try_echo=$ac_try;;
13602 esac
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604   (eval "$ac_link") 2>conftest.er1
13605   ac_status=$?
13606   grep -v '^ *+' conftest.er1 >conftest.err
13607   rm -f conftest.er1
13608   cat conftest.err >&5
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } &&
13611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13612   { (case "(($ac_try" in
13613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614   *) ac_try_echo=$ac_try;;
13615 esac
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617   (eval "$ac_try") 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); }; } &&
13621          { ac_try='test -s conftest$ac_exeext'
13622   { (case "(($ac_try" in
13623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624   *) ac_try_echo=$ac_try;;
13625 esac
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627   (eval "$ac_try") 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); }; }; then
13631   ac_cv_lib_psapi_main=yes
13632 else
13633   echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13635
13636         ac_cv_lib_psapi_main=no
13637 fi
13638
13639 rm -f core conftest.err conftest.$ac_objext \
13640       conftest$ac_exeext conftest.$ac_ext
13641 LIBS=$ac_check_lib_save_LIBS
13642 fi
13643 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13644 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13645 if test $ac_cv_lib_psapi_main = yes; then
13646   cat >>confdefs.h <<_ACEOF
13647 #define HAVE_LIBPSAPI 1
13648 _ACEOF
13649
13650   LIBS="-lpsapi $LIBS"
13651
13652 fi
13653
13654 fi
13655
13656 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13657 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13658 if test "${ac_cv_search_dlopen+set}" = set; then
13659   echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661   ac_func_search_save_LIBS=$LIBS
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h.  */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h.  */
13668
13669 /* Override any GCC internal prototype to avoid an error.
13670    Use char because int might match the return type of a GCC
13671    builtin and then its argument prototype would still apply.  */
13672 #ifdef __cplusplus
13673 extern "C"
13674 #endif
13675 char dlopen ();
13676 int
13677 main ()
13678 {
13679 return dlopen ();
13680   ;
13681   return 0;
13682 }
13683 _ACEOF
13684 for ac_lib in '' dl; do
13685   if test -z "$ac_lib"; then
13686     ac_res="none required"
13687   else
13688     ac_res=-l$ac_lib
13689     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13690   fi
13691   rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695   *) ac_try_echo=$ac_try;;
13696 esac
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698   (eval "$ac_link") 2>conftest.er1
13699   ac_status=$?
13700   grep -v '^ *+' conftest.er1 >conftest.err
13701   rm -f conftest.er1
13702   cat conftest.err >&5
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); } &&
13705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13706   { (case "(($ac_try" in
13707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708   *) ac_try_echo=$ac_try;;
13709 esac
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711   (eval "$ac_try") 2>&5
13712   ac_status=$?
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); }; } &&
13715          { ac_try='test -s conftest$ac_exeext'
13716   { (case "(($ac_try" in
13717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718   *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721   (eval "$ac_try") 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; }; then
13725   ac_cv_search_dlopen=$ac_res
13726 else
13727   echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13729
13730
13731 fi
13732
13733 rm -f core conftest.err conftest.$ac_objext \
13734       conftest$ac_exeext
13735   if test "${ac_cv_search_dlopen+set}" = set; then
13736   break
13737 fi
13738 done
13739 if test "${ac_cv_search_dlopen+set}" = set; then
13740   :
13741 else
13742   ac_cv_search_dlopen=no
13743 fi
13744 rm conftest.$ac_ext
13745 LIBS=$ac_func_search_save_LIBS
13746 fi
13747 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13748 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13749 ac_res=$ac_cv_search_dlopen
13750 if test "$ac_res" != no; then
13751   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13752
13753 cat >>confdefs.h <<\_ACEOF
13754 #define HAVE_DLOPEN 1
13755 _ACEOF
13756
13757 else
13758   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13759 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13760 fi
13761
13762
13763 if test "$llvm_cv_enable_libffi" = "yes" ; then
13764   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13765 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13766 if test "${ac_cv_search_ffi_call+set}" = set; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   ac_func_search_save_LIBS=$LIBS
13770 cat >conftest.$ac_ext <<_ACEOF
13771 /* confdefs.h.  */
13772 _ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h.  */
13776
13777 /* Override any GCC internal prototype to avoid an error.
13778    Use char because int might match the return type of a GCC
13779    builtin and then its argument prototype would still apply.  */
13780 #ifdef __cplusplus
13781 extern "C"
13782 #endif
13783 char ffi_call ();
13784 int
13785 main ()
13786 {
13787 return ffi_call ();
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 for ac_lib in '' ffi; do
13793   if test -z "$ac_lib"; then
13794     ac_res="none required"
13795   else
13796     ac_res=-l$ac_lib
13797     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13798   fi
13799   rm -f conftest.$ac_objext conftest$ac_exeext
13800 if { (ac_try="$ac_link"
13801 case "(($ac_try" in
13802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803   *) ac_try_echo=$ac_try;;
13804 esac
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806   (eval "$ac_link") 2>conftest.er1
13807   ac_status=$?
13808   grep -v '^ *+' conftest.er1 >conftest.err
13809   rm -f conftest.er1
13810   cat conftest.err >&5
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); } &&
13813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13814   { (case "(($ac_try" in
13815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816   *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819   (eval "$ac_try") 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); }; } &&
13823          { ac_try='test -s conftest$ac_exeext'
13824   { (case "(($ac_try" in
13825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826   *) ac_try_echo=$ac_try;;
13827 esac
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829   (eval "$ac_try") 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); }; }; then
13833   ac_cv_search_ffi_call=$ac_res
13834 else
13835   echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13837
13838
13839 fi
13840
13841 rm -f core conftest.err conftest.$ac_objext \
13842       conftest$ac_exeext
13843   if test "${ac_cv_search_ffi_call+set}" = set; then
13844   break
13845 fi
13846 done
13847 if test "${ac_cv_search_ffi_call+set}" = set; then
13848   :
13849 else
13850   ac_cv_search_ffi_call=no
13851 fi
13852 rm conftest.$ac_ext
13853 LIBS=$ac_func_search_save_LIBS
13854 fi
13855 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13856 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13857 ac_res=$ac_cv_search_ffi_call
13858 if test "$ac_res" != no; then
13859   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13860
13861 cat >>confdefs.h <<\_ACEOF
13862 #define HAVE_FFI_CALL 1
13863 _ACEOF
13864
13865 else
13866   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13867 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13868    { (exit 1); exit 1; }; }
13869 fi
13870
13871 fi
13872
13873 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13874 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13875 if test "${ac_cv_search_mallinfo+set}" = set; then
13876   echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878   ac_func_search_save_LIBS=$LIBS
13879 cat >conftest.$ac_ext <<_ACEOF
13880 /* confdefs.h.  */
13881 _ACEOF
13882 cat confdefs.h >>conftest.$ac_ext
13883 cat >>conftest.$ac_ext <<_ACEOF
13884 /* end confdefs.h.  */
13885
13886 /* Override any GCC internal prototype to avoid an error.
13887    Use char because int might match the return type of a GCC
13888    builtin and then its argument prototype would still apply.  */
13889 #ifdef __cplusplus
13890 extern "C"
13891 #endif
13892 char mallinfo ();
13893 int
13894 main ()
13895 {
13896 return mallinfo ();
13897   ;
13898   return 0;
13899 }
13900 _ACEOF
13901 for ac_lib in '' malloc; do
13902   if test -z "$ac_lib"; then
13903     ac_res="none required"
13904   else
13905     ac_res=-l$ac_lib
13906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13907   fi
13908   rm -f conftest.$ac_objext conftest$ac_exeext
13909 if { (ac_try="$ac_link"
13910 case "(($ac_try" in
13911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912   *) ac_try_echo=$ac_try;;
13913 esac
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915   (eval "$ac_link") 2>conftest.er1
13916   ac_status=$?
13917   grep -v '^ *+' conftest.er1 >conftest.err
13918   rm -f conftest.er1
13919   cat conftest.err >&5
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); } &&
13922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13923   { (case "(($ac_try" in
13924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925   *) ac_try_echo=$ac_try;;
13926 esac
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928   (eval "$ac_try") 2>&5
13929   ac_status=$?
13930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931   (exit $ac_status); }; } &&
13932          { ac_try='test -s conftest$ac_exeext'
13933   { (case "(($ac_try" in
13934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935   *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938   (eval "$ac_try") 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); }; }; then
13942   ac_cv_search_mallinfo=$ac_res
13943 else
13944   echo "$as_me: failed program was:" >&5
13945 sed 's/^/| /' conftest.$ac_ext >&5
13946
13947
13948 fi
13949
13950 rm -f core conftest.err conftest.$ac_objext \
13951       conftest$ac_exeext
13952   if test "${ac_cv_search_mallinfo+set}" = set; then
13953   break
13954 fi
13955 done
13956 if test "${ac_cv_search_mallinfo+set}" = set; then
13957   :
13958 else
13959   ac_cv_search_mallinfo=no
13960 fi
13961 rm conftest.$ac_ext
13962 LIBS=$ac_func_search_save_LIBS
13963 fi
13964 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13965 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13966 ac_res=$ac_cv_search_mallinfo
13967 if test "$ac_res" != no; then
13968   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13969
13970 cat >>confdefs.h <<\_ACEOF
13971 #define HAVE_MALLINFO 1
13972 _ACEOF
13973
13974 fi
13975
13976
13977 if test "$ENABLE_THREADS" -eq 1 ; then
13978
13979 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13980 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13981 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13982   echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984   ac_check_lib_save_LIBS=$LIBS
13985 LIBS="-lpthread  $LIBS"
13986 cat >conftest.$ac_ext <<_ACEOF
13987 /* confdefs.h.  */
13988 _ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h.  */
13992
13993 /* Override any GCC internal prototype to avoid an error.
13994    Use char because int might match the return type of a GCC
13995    builtin and then its argument prototype would still apply.  */
13996 #ifdef __cplusplus
13997 extern "C"
13998 #endif
13999 char pthread_mutex_init ();
14000 int
14001 main ()
14002 {
14003 return pthread_mutex_init ();
14004   ;
14005   return 0;
14006 }
14007 _ACEOF
14008 rm -f conftest.$ac_objext conftest$ac_exeext
14009 if { (ac_try="$ac_link"
14010 case "(($ac_try" in
14011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14012   *) ac_try_echo=$ac_try;;
14013 esac
14014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14015   (eval "$ac_link") 2>conftest.er1
14016   ac_status=$?
14017   grep -v '^ *+' conftest.er1 >conftest.err
14018   rm -f conftest.er1
14019   cat conftest.err >&5
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); } &&
14022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14023   { (case "(($ac_try" in
14024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025   *) ac_try_echo=$ac_try;;
14026 esac
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028   (eval "$ac_try") 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; } &&
14032          { ac_try='test -s conftest$ac_exeext'
14033   { (case "(($ac_try" in
14034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035   *) ac_try_echo=$ac_try;;
14036 esac
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038   (eval "$ac_try") 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); }; }; then
14042   ac_cv_lib_pthread_pthread_mutex_init=yes
14043 else
14044   echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14046
14047         ac_cv_lib_pthread_pthread_mutex_init=no
14048 fi
14049
14050 rm -f core conftest.err conftest.$ac_objext \
14051       conftest$ac_exeext conftest.$ac_ext
14052 LIBS=$ac_check_lib_save_LIBS
14053 fi
14054 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14055 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14056 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14057   cat >>confdefs.h <<_ACEOF
14058 #define HAVE_LIBPTHREAD 1
14059 _ACEOF
14060
14061   LIBS="-lpthread $LIBS"
14062
14063 fi
14064
14065   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14066 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14067 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14068   echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070   ac_func_search_save_LIBS=$LIBS
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h.  */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h.  */
14077
14078 /* Override any GCC internal prototype to avoid an error.
14079    Use char because int might match the return type of a GCC
14080    builtin and then its argument prototype would still apply.  */
14081 #ifdef __cplusplus
14082 extern "C"
14083 #endif
14084 char pthread_mutex_lock ();
14085 int
14086 main ()
14087 {
14088 return pthread_mutex_lock ();
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 for ac_lib in '' pthread; do
14094   if test -z "$ac_lib"; then
14095     ac_res="none required"
14096   else
14097     ac_res=-l$ac_lib
14098     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14099   fi
14100   rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104   *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107   (eval "$ac_link") 2>conftest.er1
14108   ac_status=$?
14109   grep -v '^ *+' conftest.er1 >conftest.err
14110   rm -f conftest.er1
14111   cat conftest.err >&5
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); } &&
14114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115   { (case "(($ac_try" in
14116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117   *) ac_try_echo=$ac_try;;
14118 esac
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120   (eval "$ac_try") 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; } &&
14124          { ac_try='test -s conftest$ac_exeext'
14125   { (case "(($ac_try" in
14126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127   *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130   (eval "$ac_try") 2>&5
14131   ac_status=$?
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); }; }; then
14134   ac_cv_search_pthread_mutex_lock=$ac_res
14135 else
14136   echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14138
14139
14140 fi
14141
14142 rm -f core conftest.err conftest.$ac_objext \
14143       conftest$ac_exeext
14144   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14145   break
14146 fi
14147 done
14148 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14149   :
14150 else
14151   ac_cv_search_pthread_mutex_lock=no
14152 fi
14153 rm conftest.$ac_ext
14154 LIBS=$ac_func_search_save_LIBS
14155 fi
14156 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14157 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14158 ac_res=$ac_cv_search_pthread_mutex_lock
14159 if test "$ac_res" != no; then
14160   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14161
14162 cat >>confdefs.h <<\_ACEOF
14163 #define HAVE_PTHREAD_MUTEX_LOCK 1
14164 _ACEOF
14165
14166 fi
14167
14168   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14169 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14170 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14171   echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173   ac_func_search_save_LIBS=$LIBS
14174 cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180
14181 /* Override any GCC internal prototype to avoid an error.
14182    Use char because int might match the return type of a GCC
14183    builtin and then its argument prototype would still apply.  */
14184 #ifdef __cplusplus
14185 extern "C"
14186 #endif
14187 char pthread_rwlock_init ();
14188 int
14189 main ()
14190 {
14191 return pthread_rwlock_init ();
14192   ;
14193   return 0;
14194 }
14195 _ACEOF
14196 for ac_lib in '' pthread; do
14197   if test -z "$ac_lib"; then
14198     ac_res="none required"
14199   else
14200     ac_res=-l$ac_lib
14201     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14202   fi
14203   rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (ac_try="$ac_link"
14205 case "(($ac_try" in
14206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207   *) ac_try_echo=$ac_try;;
14208 esac
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210   (eval "$ac_link") 2>conftest.er1
14211   ac_status=$?
14212   grep -v '^ *+' conftest.er1 >conftest.err
14213   rm -f conftest.er1
14214   cat conftest.err >&5
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } &&
14217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14218   { (case "(($ac_try" in
14219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220   *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223   (eval "$ac_try") 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; } &&
14227          { ac_try='test -s conftest$ac_exeext'
14228   { (case "(($ac_try" in
14229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230   *) ac_try_echo=$ac_try;;
14231 esac
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233   (eval "$ac_try") 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }; then
14237   ac_cv_search_pthread_rwlock_init=$ac_res
14238 else
14239   echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14241
14242
14243 fi
14244
14245 rm -f core conftest.err conftest.$ac_objext \
14246       conftest$ac_exeext
14247   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14248   break
14249 fi
14250 done
14251 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14252   :
14253 else
14254   ac_cv_search_pthread_rwlock_init=no
14255 fi
14256 rm conftest.$ac_ext
14257 LIBS=$ac_func_search_save_LIBS
14258 fi
14259 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14260 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14261 ac_res=$ac_cv_search_pthread_rwlock_init
14262 if test "$ac_res" != no; then
14263   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14264
14265 cat >>confdefs.h <<\_ACEOF
14266 #define HAVE_PTHREAD_RWLOCK_INIT 1
14267 _ACEOF
14268
14269 fi
14270
14271   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14272 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14273 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14274   echo $ECHO_N "(cached) $ECHO_C" >&6
14275 else
14276   ac_func_search_save_LIBS=$LIBS
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h.  */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h.  */
14283
14284 /* Override any GCC internal prototype to avoid an error.
14285    Use char because int might match the return type of a GCC
14286    builtin and then its argument prototype would still apply.  */
14287 #ifdef __cplusplus
14288 extern "C"
14289 #endif
14290 char pthread_getspecific ();
14291 int
14292 main ()
14293 {
14294 return pthread_getspecific ();
14295   ;
14296   return 0;
14297 }
14298 _ACEOF
14299 for ac_lib in '' pthread; do
14300   if test -z "$ac_lib"; then
14301     ac_res="none required"
14302   else
14303     ac_res=-l$ac_lib
14304     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14305   fi
14306   rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (ac_try="$ac_link"
14308 case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313   (eval "$ac_link") 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } &&
14320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14321   { (case "(($ac_try" in
14322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323   *) ac_try_echo=$ac_try;;
14324 esac
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326   (eval "$ac_try") 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; } &&
14330          { ac_try='test -s conftest$ac_exeext'
14331   { (case "(($ac_try" in
14332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333   *) ac_try_echo=$ac_try;;
14334 esac
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336   (eval "$ac_try") 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); }; }; then
14340   ac_cv_search_pthread_getspecific=$ac_res
14341 else
14342   echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345
14346 fi
14347
14348 rm -f core conftest.err conftest.$ac_objext \
14349       conftest$ac_exeext
14350   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14351   break
14352 fi
14353 done
14354 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14355   :
14356 else
14357   ac_cv_search_pthread_getspecific=no
14358 fi
14359 rm conftest.$ac_ext
14360 LIBS=$ac_func_search_save_LIBS
14361 fi
14362 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14363 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14364 ac_res=$ac_cv_search_pthread_getspecific
14365 if test "$ac_res" != no; then
14366   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14367
14368 cat >>confdefs.h <<\_ACEOF
14369 #define HAVE_PTHREAD_GETSPECIFIC 1
14370 _ACEOF
14371
14372 fi
14373
14374 fi
14375
14376
14377 # Check whether --with-udis86 was given.
14378 if test "${with_udis86+set}" = set; then
14379   withval=$with_udis86;
14380       USE_UDIS86=1
14381
14382       case "$withval" in
14383         /usr/lib|yes) ;;
14384         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14385       esac
14386
14387 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14388 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14389 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14390   echo $ECHO_N "(cached) $ECHO_C" >&6
14391 else
14392   ac_check_lib_save_LIBS=$LIBS
14393 LIBS="-ludis86  $LIBS"
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h.  */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h.  */
14400
14401 /* Override any GCC internal prototype to avoid an error.
14402    Use char because int might match the return type of a GCC
14403    builtin and then its argument prototype would still apply.  */
14404 #ifdef __cplusplus
14405 extern "C"
14406 #endif
14407 char ud_init ();
14408 int
14409 main ()
14410 {
14411 return ud_init ();
14412   ;
14413   return 0;
14414 }
14415 _ACEOF
14416 rm -f conftest.$ac_objext conftest$ac_exeext
14417 if { (ac_try="$ac_link"
14418 case "(($ac_try" in
14419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420   *) ac_try_echo=$ac_try;;
14421 esac
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423   (eval "$ac_link") 2>conftest.er1
14424   ac_status=$?
14425   grep -v '^ *+' conftest.er1 >conftest.err
14426   rm -f conftest.er1
14427   cat conftest.err >&5
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); } &&
14430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14431   { (case "(($ac_try" in
14432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433   *) ac_try_echo=$ac_try;;
14434 esac
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436   (eval "$ac_try") 2>&5
14437   ac_status=$?
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); }; } &&
14440          { ac_try='test -s conftest$ac_exeext'
14441   { (case "(($ac_try" in
14442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443   *) ac_try_echo=$ac_try;;
14444 esac
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446   (eval "$ac_try") 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); }; }; then
14450   ac_cv_lib_udis86_ud_init=yes
14451 else
14452   echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14454
14455         ac_cv_lib_udis86_ud_init=no
14456 fi
14457
14458 rm -f core conftest.err conftest.$ac_objext \
14459       conftest$ac_exeext conftest.$ac_ext
14460 LIBS=$ac_check_lib_save_LIBS
14461 fi
14462 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14463 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14464 if test $ac_cv_lib_udis86_ud_init = yes; then
14465   cat >>confdefs.h <<_ACEOF
14466 #define HAVE_LIBUDIS86 1
14467 _ACEOF
14468
14469   LIBS="-ludis86 $LIBS"
14470
14471 else
14472
14473         echo "Error! You need to have libudis86 around."
14474         exit -1
14475
14476 fi
14477
14478
14479 else
14480   USE_UDIS86=0
14481
14482 fi
14483
14484
14485 cat >>confdefs.h <<_ACEOF
14486 #define USE_UDIS86 $USE_UDIS86
14487 _ACEOF
14488
14489
14490
14491 # Check whether --with-oprofile was given.
14492 if test "${with_oprofile+set}" = set; then
14493   withval=$with_oprofile;
14494       USE_OPROFILE=1
14495
14496       case "$withval" in
14497         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14498         no) llvm_cv_oppath=
14499             USE_OPROFILE=0
14500  ;;
14501         *) llvm_cv_oppath="${withval}/lib/oprofile"
14502            CPPFLAGS="-I${withval}/include";;
14503       esac
14504       if test -n "$llvm_cv_oppath" ; then
14505         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14506                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14507 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14508 if test "${ac_cv_search_bfd_init+set}" = set; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   ac_func_search_save_LIBS=$LIBS
14512 cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h.  */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h.  */
14518
14519 /* Override any GCC internal prototype to avoid an error.
14520    Use char because int might match the return type of a GCC
14521    builtin and then its argument prototype would still apply.  */
14522 #ifdef __cplusplus
14523 extern "C"
14524 #endif
14525 char bfd_init ();
14526 int
14527 main ()
14528 {
14529 return bfd_init ();
14530   ;
14531   return 0;
14532 }
14533 _ACEOF
14534 for ac_lib in '' bfd; do
14535   if test -z "$ac_lib"; then
14536     ac_res="none required"
14537   else
14538     ac_res=-l$ac_lib
14539     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14540   fi
14541   rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (ac_try="$ac_link"
14543 case "(($ac_try" in
14544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545   *) ac_try_echo=$ac_try;;
14546 esac
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548   (eval "$ac_link") 2>conftest.er1
14549   ac_status=$?
14550   grep -v '^ *+' conftest.er1 >conftest.err
14551   rm -f conftest.er1
14552   cat conftest.err >&5
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); } &&
14555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14556   { (case "(($ac_try" in
14557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558   *) ac_try_echo=$ac_try;;
14559 esac
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561   (eval "$ac_try") 2>&5
14562   ac_status=$?
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); }; } &&
14565          { ac_try='test -s conftest$ac_exeext'
14566   { (case "(($ac_try" in
14567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568   *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571   (eval "$ac_try") 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; }; then
14575   ac_cv_search_bfd_init=$ac_res
14576 else
14577   echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14579
14580
14581 fi
14582
14583 rm -f core conftest.err conftest.$ac_objext \
14584       conftest$ac_exeext
14585   if test "${ac_cv_search_bfd_init+set}" = set; then
14586   break
14587 fi
14588 done
14589 if test "${ac_cv_search_bfd_init+set}" = set; then
14590   :
14591 else
14592   ac_cv_search_bfd_init=no
14593 fi
14594 rm conftest.$ac_ext
14595 LIBS=$ac_func_search_save_LIBS
14596 fi
14597 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14598 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14599 ac_res=$ac_cv_search_bfd_init
14600 if test "$ac_res" != no; then
14601   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14602
14603 fi
14604
14605         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14606 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14607 if test "${ac_cv_search_op_open_agent+set}" = set; then
14608   echo $ECHO_N "(cached) $ECHO_C" >&6
14609 else
14610   ac_func_search_save_LIBS=$LIBS
14611 cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617
14618 /* Override any GCC internal prototype to avoid an error.
14619    Use char because int might match the return type of a GCC
14620    builtin and then its argument prototype would still apply.  */
14621 #ifdef __cplusplus
14622 extern "C"
14623 #endif
14624 char op_open_agent ();
14625 int
14626 main ()
14627 {
14628 return op_open_agent ();
14629   ;
14630   return 0;
14631 }
14632 _ACEOF
14633 for ac_lib in '' opagent; do
14634   if test -z "$ac_lib"; then
14635     ac_res="none required"
14636   else
14637     ac_res=-l$ac_lib
14638     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14639   fi
14640   rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (ac_try="$ac_link"
14642 case "(($ac_try" in
14643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644   *) ac_try_echo=$ac_try;;
14645 esac
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647   (eval "$ac_link") 2>conftest.er1
14648   ac_status=$?
14649   grep -v '^ *+' conftest.er1 >conftest.err
14650   rm -f conftest.er1
14651   cat conftest.err >&5
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); } &&
14654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14655   { (case "(($ac_try" in
14656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657   *) ac_try_echo=$ac_try;;
14658 esac
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660   (eval "$ac_try") 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; } &&
14664          { ac_try='test -s conftest$ac_exeext'
14665   { (case "(($ac_try" in
14666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667   *) ac_try_echo=$ac_try;;
14668 esac
14669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670   (eval "$ac_try") 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); }; }; then
14674   ac_cv_search_op_open_agent=$ac_res
14675 else
14676   echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679
14680 fi
14681
14682 rm -f core conftest.err conftest.$ac_objext \
14683       conftest$ac_exeext
14684   if test "${ac_cv_search_op_open_agent+set}" = set; then
14685   break
14686 fi
14687 done
14688 if test "${ac_cv_search_op_open_agent+set}" = set; then
14689   :
14690 else
14691   ac_cv_search_op_open_agent=no
14692 fi
14693 rm conftest.$ac_ext
14694 LIBS=$ac_func_search_save_LIBS
14695 fi
14696 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14697 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14698 ac_res=$ac_cv_search_op_open_agent
14699 if test "$ac_res" != no; then
14700   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14701
14702 else
14703
14704           echo "Error! You need to have libopagent around."
14705           exit -1
14706
14707 fi
14708
14709         if test "${ac_cv_header_opagent_h+set}" = set; then
14710   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14711 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14712 if test "${ac_cv_header_opagent_h+set}" = set; then
14713   echo $ECHO_N "(cached) $ECHO_C" >&6
14714 fi
14715 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14716 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14717 else
14718   # Is the header compilable?
14719 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14720 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14721 cat >conftest.$ac_ext <<_ACEOF
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727 $ac_includes_default
14728 #include <opagent.h>
14729 _ACEOF
14730 rm -f conftest.$ac_objext
14731 if { (ac_try="$ac_compile"
14732 case "(($ac_try" in
14733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734   *) ac_try_echo=$ac_try;;
14735 esac
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737   (eval "$ac_compile") 2>conftest.er1
14738   ac_status=$?
14739   grep -v '^ *+' conftest.er1 >conftest.err
14740   rm -f conftest.er1
14741   cat conftest.err >&5
14742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743   (exit $ac_status); } &&
14744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745   { (case "(($ac_try" in
14746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747   *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750   (eval "$ac_try") 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); }; } &&
14754          { ac_try='test -s conftest.$ac_objext'
14755   { (case "(($ac_try" in
14756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757   *) ac_try_echo=$ac_try;;
14758 esac
14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760   (eval "$ac_try") 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); }; }; then
14764   ac_header_compiler=yes
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769         ac_header_compiler=no
14770 fi
14771
14772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14774 echo "${ECHO_T}$ac_header_compiler" >&6; }
14775
14776 # Is the header present?
14777 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14778 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h.  */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h.  */
14785 #include <opagent.h>
14786 _ACEOF
14787 if { (ac_try="$ac_cpp conftest.$ac_ext"
14788 case "(($ac_try" in
14789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790   *) ac_try_echo=$ac_try;;
14791 esac
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14794   ac_status=$?
14795   grep -v '^ *+' conftest.er1 >conftest.err
14796   rm -f conftest.er1
14797   cat conftest.err >&5
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); } >/dev/null; then
14800   if test -s conftest.err; then
14801     ac_cpp_err=$ac_c_preproc_warn_flag
14802     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14803   else
14804     ac_cpp_err=
14805   fi
14806 else
14807   ac_cpp_err=yes
14808 fi
14809 if test -z "$ac_cpp_err"; then
14810   ac_header_preproc=yes
14811 else
14812   echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815   ac_header_preproc=no
14816 fi
14817
14818 rm -f conftest.err conftest.$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14820 echo "${ECHO_T}$ac_header_preproc" >&6; }
14821
14822 # So?  What about this header?
14823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14824   yes:no: )
14825     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14826 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14827     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14828 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14829     ac_header_preproc=yes
14830     ;;
14831   no:yes:* )
14832     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14833 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14834     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14835 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14836     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14837 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14838     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14839 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14840     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14841 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14842     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14843 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14844     ( cat <<\_ASBOX
14845 ## ----------------------------------- ##
14846 ## Report this to llvmbugs@cs.uiuc.edu ##
14847 ## ----------------------------------- ##
14848 _ASBOX
14849      ) | sed "s/^/$as_me: WARNING:     /" >&2
14850     ;;
14851 esac
14852 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14853 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14854 if test "${ac_cv_header_opagent_h+set}" = set; then
14855   echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857   ac_cv_header_opagent_h=$ac_header_preproc
14858 fi
14859 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14860 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14861
14862 fi
14863 if test $ac_cv_header_opagent_h = yes; then
14864   :
14865 else
14866
14867           echo "Error! You need to have opagent.h around."
14868           exit -1
14869
14870 fi
14871
14872
14873       fi
14874
14875 else
14876
14877       USE_OPROFILE=0
14878
14879
14880 fi
14881
14882
14883 cat >>confdefs.h <<_ACEOF
14884 #define USE_OPROFILE $USE_OPROFILE
14885 _ACEOF
14886
14887
14888
14889
14890
14891
14892
14893
14894 ac_header_dirent=no
14895 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14896   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14897 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14898 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14900   echo $ECHO_N "(cached) $ECHO_C" >&6
14901 else
14902   cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908 #include <sys/types.h>
14909 #include <$ac_hdr>
14910
14911 int
14912 main ()
14913 {
14914 if ((DIR *) 0)
14915 return 0;
14916   ;
14917   return 0;
14918 }
14919 _ACEOF
14920 rm -f conftest.$ac_objext
14921 if { (ac_try="$ac_compile"
14922 case "(($ac_try" in
14923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924   *) ac_try_echo=$ac_try;;
14925 esac
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927   (eval "$ac_compile") 2>conftest.er1
14928   ac_status=$?
14929   grep -v '^ *+' conftest.er1 >conftest.err
14930   rm -f conftest.er1
14931   cat conftest.err >&5
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); } &&
14934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14935   { (case "(($ac_try" in
14936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937   *) ac_try_echo=$ac_try;;
14938 esac
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940   (eval "$ac_try") 2>&5
14941   ac_status=$?
14942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943   (exit $ac_status); }; } &&
14944          { ac_try='test -s conftest.$ac_objext'
14945   { (case "(($ac_try" in
14946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947   *) ac_try_echo=$ac_try;;
14948 esac
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950   (eval "$ac_try") 2>&5
14951   ac_status=$?
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); }; }; then
14954   eval "$as_ac_Header=yes"
14955 else
14956   echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14958
14959         eval "$as_ac_Header=no"
14960 fi
14961
14962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14963 fi
14964 ac_res=`eval echo '${'$as_ac_Header'}'`
14965                { echo "$as_me:$LINENO: result: $ac_res" >&5
14966 echo "${ECHO_T}$ac_res" >&6; }
14967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14968   cat >>confdefs.h <<_ACEOF
14969 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14970 _ACEOF
14971
14972 ac_header_dirent=$ac_hdr; break
14973 fi
14974
14975 done
14976 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14977 if test $ac_header_dirent = dirent.h; then
14978   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14980 if test "${ac_cv_search_opendir+set}" = set; then
14981   echo $ECHO_N "(cached) $ECHO_C" >&6
14982 else
14983   ac_func_search_save_LIBS=$LIBS
14984 cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h.  */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h.  */
14990
14991 /* Override any GCC internal prototype to avoid an error.
14992    Use char because int might match the return type of a GCC
14993    builtin and then its argument prototype would still apply.  */
14994 #ifdef __cplusplus
14995 extern "C"
14996 #endif
14997 char opendir ();
14998 int
14999 main ()
15000 {
15001 return opendir ();
15002   ;
15003   return 0;
15004 }
15005 _ACEOF
15006 for ac_lib in '' dir; do
15007   if test -z "$ac_lib"; then
15008     ac_res="none required"
15009   else
15010     ac_res=-l$ac_lib
15011     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15012   fi
15013   rm -f conftest.$ac_objext conftest$ac_exeext
15014 if { (ac_try="$ac_link"
15015 case "(($ac_try" in
15016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017   *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020   (eval "$ac_link") 2>conftest.er1
15021   ac_status=$?
15022   grep -v '^ *+' conftest.er1 >conftest.err
15023   rm -f conftest.er1
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } &&
15027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028   { (case "(($ac_try" in
15029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030   *) ac_try_echo=$ac_try;;
15031 esac
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033   (eval "$ac_try") 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; } &&
15037          { ac_try='test -s conftest$ac_exeext'
15038   { (case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043   (eval "$ac_try") 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; }; then
15047   ac_cv_search_opendir=$ac_res
15048 else
15049   echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052
15053 fi
15054
15055 rm -f core conftest.err conftest.$ac_objext \
15056       conftest$ac_exeext
15057   if test "${ac_cv_search_opendir+set}" = set; then
15058   break
15059 fi
15060 done
15061 if test "${ac_cv_search_opendir+set}" = set; then
15062   :
15063 else
15064   ac_cv_search_opendir=no
15065 fi
15066 rm conftest.$ac_ext
15067 LIBS=$ac_func_search_save_LIBS
15068 fi
15069 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15070 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15071 ac_res=$ac_cv_search_opendir
15072 if test "$ac_res" != no; then
15073   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15074
15075 fi
15076
15077 else
15078   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15079 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15080 if test "${ac_cv_search_opendir+set}" = set; then
15081   echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083   ac_func_search_save_LIBS=$LIBS
15084 cat >conftest.$ac_ext <<_ACEOF
15085 /* confdefs.h.  */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h.  */
15090
15091 /* Override any GCC internal prototype to avoid an error.
15092    Use char because int might match the return type of a GCC
15093    builtin and then its argument prototype would still apply.  */
15094 #ifdef __cplusplus
15095 extern "C"
15096 #endif
15097 char opendir ();
15098 int
15099 main ()
15100 {
15101 return opendir ();
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 for ac_lib in '' x; do
15107   if test -z "$ac_lib"; then
15108     ac_res="none required"
15109   else
15110     ac_res=-l$ac_lib
15111     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15112   fi
15113   rm -f conftest.$ac_objext conftest$ac_exeext
15114 if { (ac_try="$ac_link"
15115 case "(($ac_try" in
15116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117   *) ac_try_echo=$ac_try;;
15118 esac
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120   (eval "$ac_link") 2>conftest.er1
15121   ac_status=$?
15122   grep -v '^ *+' conftest.er1 >conftest.err
15123   rm -f conftest.er1
15124   cat conftest.err >&5
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); } &&
15127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15128   { (case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133   (eval "$ac_try") 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; } &&
15137          { ac_try='test -s conftest$ac_exeext'
15138   { (case "(($ac_try" in
15139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140   *) ac_try_echo=$ac_try;;
15141 esac
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143   (eval "$ac_try") 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; }; then
15147   ac_cv_search_opendir=$ac_res
15148 else
15149   echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152
15153 fi
15154
15155 rm -f core conftest.err conftest.$ac_objext \
15156       conftest$ac_exeext
15157   if test "${ac_cv_search_opendir+set}" = set; then
15158   break
15159 fi
15160 done
15161 if test "${ac_cv_search_opendir+set}" = set; then
15162   :
15163 else
15164   ac_cv_search_opendir=no
15165 fi
15166 rm conftest.$ac_ext
15167 LIBS=$ac_func_search_save_LIBS
15168 fi
15169 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15170 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15171 ac_res=$ac_cv_search_opendir
15172 if test "$ac_res" != no; then
15173   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15174
15175 fi
15176
15177 fi
15178
15179 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15180 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15181 if test "${ac_cv_header_mmap_anon+set}" = set; then
15182   echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184    ac_ext=c
15185 ac_cpp='$CPP $CPPFLAGS'
15186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15189
15190   cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h.  */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h.  */
15196 #include <sys/mman.h>
15197 #include <unistd.h>
15198 #include <fcntl.h>
15199 int
15200 main ()
15201 {
15202 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15203   ;
15204   return 0;
15205 }
15206 _ACEOF
15207 rm -f conftest.$ac_objext
15208 if { (ac_try="$ac_compile"
15209 case "(($ac_try" in
15210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211   *) ac_try_echo=$ac_try;;
15212 esac
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214   (eval "$ac_compile") 2>conftest.er1
15215   ac_status=$?
15216   grep -v '^ *+' conftest.er1 >conftest.err
15217   rm -f conftest.er1
15218   cat conftest.err >&5
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); } &&
15221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15222   { (case "(($ac_try" in
15223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224   *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227   (eval "$ac_try") 2>&5
15228   ac_status=$?
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); }; } &&
15231          { ac_try='test -s conftest.$ac_objext'
15232   { (case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_try") 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; }; then
15241   ac_cv_header_mmap_anon=yes
15242 else
15243   echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246         ac_cv_header_mmap_anon=no
15247 fi
15248
15249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250   ac_ext=c
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15255
15256
15257 fi
15258 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15259 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15260 if test "$ac_cv_header_mmap_anon" = yes; then
15261
15262 cat >>confdefs.h <<\_ACEOF
15263 #define HAVE_MMAP_ANONYMOUS 1
15264 _ACEOF
15265
15266 fi
15267
15268 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15269 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15270 if test "${ac_cv_header_stat_broken+set}" = set; then
15271   echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273   cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279 #include <sys/types.h>
15280 #include <sys/stat.h>
15281
15282 #if defined S_ISBLK && defined S_IFDIR
15283 # if S_ISBLK (S_IFDIR)
15284 You lose.
15285 # endif
15286 #endif
15287
15288 #if defined S_ISBLK && defined S_IFCHR
15289 # if S_ISBLK (S_IFCHR)
15290 You lose.
15291 # endif
15292 #endif
15293
15294 #if defined S_ISLNK && defined S_IFREG
15295 # if S_ISLNK (S_IFREG)
15296 You lose.
15297 # endif
15298 #endif
15299
15300 #if defined S_ISSOCK && defined S_IFREG
15301 # if S_ISSOCK (S_IFREG)
15302 You lose.
15303 # endif
15304 #endif
15305
15306 _ACEOF
15307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15308   $EGREP "You lose" >/dev/null 2>&1; then
15309   ac_cv_header_stat_broken=yes
15310 else
15311   ac_cv_header_stat_broken=no
15312 fi
15313 rm -f conftest*
15314
15315 fi
15316 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15317 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15318 if test $ac_cv_header_stat_broken = yes; then
15319
15320 cat >>confdefs.h <<\_ACEOF
15321 #define STAT_MACROS_BROKEN 1
15322 _ACEOF
15323
15324 fi
15325
15326 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15327 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15328 if test "${ac_cv_header_stdc+set}" = set; then
15329   echo $ECHO_N "(cached) $ECHO_C" >&6
15330 else
15331   cat >conftest.$ac_ext <<_ACEOF
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337 #include <stdlib.h>
15338 #include <stdarg.h>
15339 #include <string.h>
15340 #include <float.h>
15341
15342 int
15343 main ()
15344 {
15345
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 rm -f conftest.$ac_objext
15351 if { (ac_try="$ac_compile"
15352 case "(($ac_try" in
15353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354   *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357   (eval "$ac_compile") 2>conftest.er1
15358   ac_status=$?
15359   grep -v '^ *+' conftest.er1 >conftest.err
15360   rm -f conftest.er1
15361   cat conftest.err >&5
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); } &&
15364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365   { (case "(($ac_try" in
15366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367   *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370   (eval "$ac_try") 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); }; } &&
15374          { ac_try='test -s conftest.$ac_objext'
15375   { (case "(($ac_try" in
15376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377   *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380   (eval "$ac_try") 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }; then
15384   ac_cv_header_stdc=yes
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389         ac_cv_header_stdc=no
15390 fi
15391
15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393
15394 if test $ac_cv_header_stdc = yes; then
15395   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15396   cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h.  */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h.  */
15402 #include <string.h>
15403
15404 _ACEOF
15405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15406   $EGREP "memchr" >/dev/null 2>&1; then
15407   :
15408 else
15409   ac_cv_header_stdc=no
15410 fi
15411 rm -f conftest*
15412
15413 fi
15414
15415 if test $ac_cv_header_stdc = yes; then
15416   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15417   cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h.  */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h.  */
15423 #include <stdlib.h>
15424
15425 _ACEOF
15426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15427   $EGREP "free" >/dev/null 2>&1; then
15428   :
15429 else
15430   ac_cv_header_stdc=no
15431 fi
15432 rm -f conftest*
15433
15434 fi
15435
15436 if test $ac_cv_header_stdc = yes; then
15437   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15438   if test "$cross_compiling" = yes; then
15439   :
15440 else
15441   cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h.  */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h.  */
15447 #include <ctype.h>
15448 #include <stdlib.h>
15449 #if ((' ' & 0x0FF) == 0x020)
15450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15452 #else
15453 # define ISLOWER(c) \
15454                    (('a' <= (c) && (c) <= 'i') \
15455                      || ('j' <= (c) && (c) <= 'r') \
15456                      || ('s' <= (c) && (c) <= 'z'))
15457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15458 #endif
15459
15460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15461 int
15462 main ()
15463 {
15464   int i;
15465   for (i = 0; i < 256; i++)
15466     if (XOR (islower (i), ISLOWER (i))
15467         || toupper (i) != TOUPPER (i))
15468       return 2;
15469   return 0;
15470 }
15471 _ACEOF
15472 rm -f conftest$ac_exeext
15473 if { (ac_try="$ac_link"
15474 case "(($ac_try" in
15475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476   *) ac_try_echo=$ac_try;;
15477 esac
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479   (eval "$ac_link") 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15483   { (case "(($ac_try" in
15484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485   *) ac_try_echo=$ac_try;;
15486 esac
15487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15488   (eval "$ac_try") 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); }; }; then
15492   :
15493 else
15494   echo "$as_me: program exited with status $ac_status" >&5
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15497
15498 ( exit $ac_status )
15499 ac_cv_header_stdc=no
15500 fi
15501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15502 fi
15503
15504
15505 fi
15506 fi
15507 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15508 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15509 if test $ac_cv_header_stdc = yes; then
15510
15511 cat >>confdefs.h <<\_ACEOF
15512 #define STDC_HEADERS 1
15513 _ACEOF
15514
15515 fi
15516
15517 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15518 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15519 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15520   echo $ECHO_N "(cached) $ECHO_C" >&6
15521 else
15522   cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h.  */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h.  */
15528 #include <sys/types.h>
15529 #include <sys/wait.h>
15530 #ifndef WEXITSTATUS
15531 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15532 #endif
15533 #ifndef WIFEXITED
15534 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15535 #endif
15536
15537 int
15538 main ()
15539 {
15540   int s;
15541   wait (&s);
15542   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
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_sys_wait_h=yes
15582 else
15583   echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15585
15586         ac_cv_header_sys_wait_h=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_sys_wait_h" >&5
15592 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15593 if test $ac_cv_header_sys_wait_h = yes; then
15594
15595 cat >>confdefs.h <<\_ACEOF
15596 #define HAVE_SYS_WAIT_H 1
15597 _ACEOF
15598
15599 fi
15600
15601 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15602 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15603 if test "${ac_cv_header_time+set}" = set; then
15604   echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606   cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h.  */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h.  */
15612 #include <sys/types.h>
15613 #include <sys/time.h>
15614 #include <time.h>
15615
15616 int
15617 main ()
15618 {
15619 if ((struct tm *) 0)
15620 return 0;
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext
15626 if { (ac_try="$ac_compile"
15627 case "(($ac_try" in
15628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629   *) ac_try_echo=$ac_try;;
15630 esac
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632   (eval "$ac_compile") 2>conftest.er1
15633   ac_status=$?
15634   grep -v '^ *+' conftest.er1 >conftest.err
15635   rm -f conftest.er1
15636   cat conftest.err >&5
15637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); } &&
15639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15640   { (case "(($ac_try" in
15641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642   *) ac_try_echo=$ac_try;;
15643 esac
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645   (eval "$ac_try") 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; } &&
15649          { ac_try='test -s conftest.$ac_objext'
15650   { (case "(($ac_try" in
15651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652   *) ac_try_echo=$ac_try;;
15653 esac
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655   (eval "$ac_try") 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; }; then
15659   ac_cv_header_time=yes
15660 else
15661   echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664         ac_cv_header_time=no
15665 fi
15666
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15668 fi
15669 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15670 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15671 if test $ac_cv_header_time = yes; then
15672
15673 cat >>confdefs.h <<\_ACEOF
15674 #define TIME_WITH_SYS_TIME 1
15675 _ACEOF
15676
15677 fi
15678
15679
15680
15681
15682
15683
15684
15685
15686 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15687 do
15688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15690   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693   echo $ECHO_N "(cached) $ECHO_C" >&6
15694 fi
15695 ac_res=`eval echo '${'$as_ac_Header'}'`
15696                { echo "$as_me:$LINENO: result: $ac_res" >&5
15697 echo "${ECHO_T}$ac_res" >&6; }
15698 else
15699   # Is the header compilable?
15700 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15702 cat >conftest.$ac_ext <<_ACEOF
15703 /* confdefs.h.  */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h.  */
15708 $ac_includes_default
15709 #include <$ac_header>
15710 _ACEOF
15711 rm -f conftest.$ac_objext
15712 if { (ac_try="$ac_compile"
15713 case "(($ac_try" in
15714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715   *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718   (eval "$ac_compile") 2>conftest.er1
15719   ac_status=$?
15720   grep -v '^ *+' conftest.er1 >conftest.err
15721   rm -f conftest.er1
15722   cat conftest.err >&5
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); } &&
15725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15726   { (case "(($ac_try" in
15727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728   *) ac_try_echo=$ac_try;;
15729 esac
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731   (eval "$ac_try") 2>&5
15732   ac_status=$?
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); }; } &&
15735          { ac_try='test -s conftest.$ac_objext'
15736   { (case "(($ac_try" in
15737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738   *) ac_try_echo=$ac_try;;
15739 esac
15740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741   (eval "$ac_try") 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745   ac_header_compiler=yes
15746 else
15747   echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750         ac_header_compiler=no
15751 fi
15752
15753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15755 echo "${ECHO_T}$ac_header_compiler" >&6; }
15756
15757 # Is the header present?
15758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15760 cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h.  */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h.  */
15766 #include <$ac_header>
15767 _ACEOF
15768 if { (ac_try="$ac_cpp conftest.$ac_ext"
15769 case "(($ac_try" in
15770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771   *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15775   ac_status=$?
15776   grep -v '^ *+' conftest.er1 >conftest.err
15777   rm -f conftest.er1
15778   cat conftest.err >&5
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); } >/dev/null; then
15781   if test -s conftest.err; then
15782     ac_cpp_err=$ac_c_preproc_warn_flag
15783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15784   else
15785     ac_cpp_err=
15786   fi
15787 else
15788   ac_cpp_err=yes
15789 fi
15790 if test -z "$ac_cpp_err"; then
15791   ac_header_preproc=yes
15792 else
15793   echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15795
15796   ac_header_preproc=no
15797 fi
15798
15799 rm -f conftest.err conftest.$ac_ext
15800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15801 echo "${ECHO_T}$ac_header_preproc" >&6; }
15802
15803 # So?  What about this header?
15804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15805   yes:no: )
15806     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15810     ac_header_preproc=yes
15811     ;;
15812   no:yes:* )
15813     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15815     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15816 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15817     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15819     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15820 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15823     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15825     ( cat <<\_ASBOX
15826 ## ----------------------------------- ##
15827 ## Report this to llvmbugs@cs.uiuc.edu ##
15828 ## ----------------------------------- ##
15829 _ASBOX
15830      ) | sed "s/^/$as_me: WARNING:     /" >&2
15831     ;;
15832 esac
15833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15836   echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838   eval "$as_ac_Header=\$ac_header_preproc"
15839 fi
15840 ac_res=`eval echo '${'$as_ac_Header'}'`
15841                { echo "$as_me:$LINENO: result: $ac_res" >&5
15842 echo "${ECHO_T}$ac_res" >&6; }
15843
15844 fi
15845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15846   cat >>confdefs.h <<_ACEOF
15847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15848 _ACEOF
15849
15850 fi
15851
15852 done
15853
15854
15855
15856
15857
15858
15859
15860 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15861 do
15862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15864   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867   echo $ECHO_N "(cached) $ECHO_C" >&6
15868 fi
15869 ac_res=`eval echo '${'$as_ac_Header'}'`
15870                { echo "$as_me:$LINENO: result: $ac_res" >&5
15871 echo "${ECHO_T}$ac_res" >&6; }
15872 else
15873   # Is the header compilable?
15874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15877 /* confdefs.h.  */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h.  */
15882 $ac_includes_default
15883 #include <$ac_header>
15884 _ACEOF
15885 rm -f conftest.$ac_objext
15886 if { (ac_try="$ac_compile"
15887 case "(($ac_try" in
15888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889   *) ac_try_echo=$ac_try;;
15890 esac
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892   (eval "$ac_compile") 2>conftest.er1
15893   ac_status=$?
15894   grep -v '^ *+' conftest.er1 >conftest.err
15895   rm -f conftest.er1
15896   cat conftest.err >&5
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } &&
15899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15900   { (case "(($ac_try" in
15901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902   *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905   (eval "$ac_try") 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); }; } &&
15909          { ac_try='test -s conftest.$ac_objext'
15910   { (case "(($ac_try" in
15911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912   *) ac_try_echo=$ac_try;;
15913 esac
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915   (eval "$ac_try") 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); }; }; then
15919   ac_header_compiler=yes
15920 else
15921   echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924         ac_header_compiler=no
15925 fi
15926
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15929 echo "${ECHO_T}$ac_header_compiler" >&6; }
15930
15931 # Is the header present?
15932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15934 cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h.  */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h.  */
15940 #include <$ac_header>
15941 _ACEOF
15942 if { (ac_try="$ac_cpp conftest.$ac_ext"
15943 case "(($ac_try" in
15944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945   *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15949   ac_status=$?
15950   grep -v '^ *+' conftest.er1 >conftest.err
15951   rm -f conftest.er1
15952   cat conftest.err >&5
15953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   (exit $ac_status); } >/dev/null; then
15955   if test -s conftest.err; then
15956     ac_cpp_err=$ac_c_preproc_warn_flag
15957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15958   else
15959     ac_cpp_err=
15960   fi
15961 else
15962   ac_cpp_err=yes
15963 fi
15964 if test -z "$ac_cpp_err"; then
15965   ac_header_preproc=yes
15966 else
15967   echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15969
15970   ac_header_preproc=no
15971 fi
15972
15973 rm -f conftest.err conftest.$ac_ext
15974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15975 echo "${ECHO_T}$ac_header_preproc" >&6; }
15976
15977 # So?  What about this header?
15978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15979   yes:no: )
15980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15984     ac_header_preproc=yes
15985     ;;
15986   no:yes:* )
15987     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15989     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15990 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15991     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15993     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15994 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15997     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15999     ( cat <<\_ASBOX
16000 ## ----------------------------------- ##
16001 ## Report this to llvmbugs@cs.uiuc.edu ##
16002 ## ----------------------------------- ##
16003 _ASBOX
16004      ) | sed "s/^/$as_me: WARNING:     /" >&2
16005     ;;
16006 esac
16007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010   echo $ECHO_N "(cached) $ECHO_C" >&6
16011 else
16012   eval "$as_ac_Header=\$ac_header_preproc"
16013 fi
16014 ac_res=`eval echo '${'$as_ac_Header'}'`
16015                { echo "$as_me:$LINENO: result: $ac_res" >&5
16016 echo "${ECHO_T}$ac_res" >&6; }
16017
16018 fi
16019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16020   cat >>confdefs.h <<_ACEOF
16021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16022 _ACEOF
16023
16024 fi
16025
16026 done
16027
16028
16029
16030 for ac_header in utime.h windows.h
16031 do
16032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037   echo $ECHO_N "(cached) $ECHO_C" >&6
16038 fi
16039 ac_res=`eval echo '${'$as_ac_Header'}'`
16040                { echo "$as_me:$LINENO: result: $ac_res" >&5
16041 echo "${ECHO_T}$ac_res" >&6; }
16042 else
16043   # Is the header compilable?
16044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16046 cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h.  */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h.  */
16052 $ac_includes_default
16053 #include <$ac_header>
16054 _ACEOF
16055 rm -f conftest.$ac_objext
16056 if { (ac_try="$ac_compile"
16057 case "(($ac_try" in
16058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059   *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062   (eval "$ac_compile") 2>conftest.er1
16063   ac_status=$?
16064   grep -v '^ *+' conftest.er1 >conftest.err
16065   rm -f conftest.er1
16066   cat conftest.err >&5
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); } &&
16069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070   { (case "(($ac_try" in
16071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072   *) ac_try_echo=$ac_try;;
16073 esac
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075   (eval "$ac_try") 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); }; } &&
16079          { ac_try='test -s conftest.$ac_objext'
16080   { (case "(($ac_try" in
16081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082   *) ac_try_echo=$ac_try;;
16083 esac
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085   (eval "$ac_try") 2>&5
16086   ac_status=$?
16087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088   (exit $ac_status); }; }; then
16089   ac_header_compiler=yes
16090 else
16091   echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16093
16094         ac_header_compiler=no
16095 fi
16096
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16099 echo "${ECHO_T}$ac_header_compiler" >&6; }
16100
16101 # Is the header present?
16102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h.  */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h.  */
16110 #include <$ac_header>
16111 _ACEOF
16112 if { (ac_try="$ac_cpp conftest.$ac_ext"
16113 case "(($ac_try" in
16114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115   *) ac_try_echo=$ac_try;;
16116 esac
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16119   ac_status=$?
16120   grep -v '^ *+' conftest.er1 >conftest.err
16121   rm -f conftest.er1
16122   cat conftest.err >&5
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); } >/dev/null; then
16125   if test -s conftest.err; then
16126     ac_cpp_err=$ac_c_preproc_warn_flag
16127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16128   else
16129     ac_cpp_err=
16130   fi
16131 else
16132   ac_cpp_err=yes
16133 fi
16134 if test -z "$ac_cpp_err"; then
16135   ac_header_preproc=yes
16136 else
16137   echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140   ac_header_preproc=no
16141 fi
16142
16143 rm -f conftest.err conftest.$ac_ext
16144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16145 echo "${ECHO_T}$ac_header_preproc" >&6; }
16146
16147 # So?  What about this header?
16148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16149   yes:no: )
16150     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16154     ac_header_preproc=yes
16155     ;;
16156   no:yes:* )
16157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16159     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16160 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16161     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16163     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16164 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16167     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16169     ( cat <<\_ASBOX
16170 ## ----------------------------------- ##
16171 ## Report this to llvmbugs@cs.uiuc.edu ##
16172 ## ----------------------------------- ##
16173 _ASBOX
16174      ) | sed "s/^/$as_me: WARNING:     /" >&2
16175     ;;
16176 esac
16177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180   echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182   eval "$as_ac_Header=\$ac_header_preproc"
16183 fi
16184 ac_res=`eval echo '${'$as_ac_Header'}'`
16185                { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16187
16188 fi
16189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16190   cat >>confdefs.h <<_ACEOF
16191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16192 _ACEOF
16193
16194 fi
16195
16196 done
16197
16198
16199
16200
16201
16202 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16203 do
16204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16206   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16209   echo $ECHO_N "(cached) $ECHO_C" >&6
16210 fi
16211 ac_res=`eval echo '${'$as_ac_Header'}'`
16212                { echo "$as_me:$LINENO: result: $ac_res" >&5
16213 echo "${ECHO_T}$ac_res" >&6; }
16214 else
16215   # Is the header compilable?
16216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h.  */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h.  */
16224 $ac_includes_default
16225 #include <$ac_header>
16226 _ACEOF
16227 rm -f conftest.$ac_objext
16228 if { (ac_try="$ac_compile"
16229 case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_compile") 2>conftest.er1
16235   ac_status=$?
16236   grep -v '^ *+' conftest.er1 >conftest.err
16237   rm -f conftest.er1
16238   cat conftest.err >&5
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); } &&
16241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16242   { (case "(($ac_try" in
16243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244   *) ac_try_echo=$ac_try;;
16245 esac
16246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247   (eval "$ac_try") 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; } &&
16251          { ac_try='test -s conftest.$ac_objext'
16252   { (case "(($ac_try" in
16253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254   *) ac_try_echo=$ac_try;;
16255 esac
16256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257   (eval "$ac_try") 2>&5
16258   ac_status=$?
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); }; }; then
16261   ac_header_compiler=yes
16262 else
16263   echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266         ac_header_compiler=no
16267 fi
16268
16269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16271 echo "${ECHO_T}$ac_header_compiler" >&6; }
16272
16273 # Is the header present?
16274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16276 cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h.  */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h.  */
16282 #include <$ac_header>
16283 _ACEOF
16284 if { (ac_try="$ac_cpp conftest.$ac_ext"
16285 case "(($ac_try" in
16286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287   *) ac_try_echo=$ac_try;;
16288 esac
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16291   ac_status=$?
16292   grep -v '^ *+' conftest.er1 >conftest.err
16293   rm -f conftest.er1
16294   cat conftest.err >&5
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); } >/dev/null; then
16297   if test -s conftest.err; then
16298     ac_cpp_err=$ac_c_preproc_warn_flag
16299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16300   else
16301     ac_cpp_err=
16302   fi
16303 else
16304   ac_cpp_err=yes
16305 fi
16306 if test -z "$ac_cpp_err"; then
16307   ac_header_preproc=yes
16308 else
16309   echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16311
16312   ac_header_preproc=no
16313 fi
16314
16315 rm -f conftest.err conftest.$ac_ext
16316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16317 echo "${ECHO_T}$ac_header_preproc" >&6; }
16318
16319 # So?  What about this header?
16320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16321   yes:no: )
16322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16326     ac_header_preproc=yes
16327     ;;
16328   no:yes:* )
16329     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16331     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16332 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16333     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16335     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16336 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16339     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16341     ( cat <<\_ASBOX
16342 ## ----------------------------------- ##
16343 ## Report this to llvmbugs@cs.uiuc.edu ##
16344 ## ----------------------------------- ##
16345 _ASBOX
16346      ) | sed "s/^/$as_me: WARNING:     /" >&2
16347     ;;
16348 esac
16349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16352   echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354   eval "$as_ac_Header=\$ac_header_preproc"
16355 fi
16356 ac_res=`eval echo '${'$as_ac_Header'}'`
16357                { echo "$as_me:$LINENO: result: $ac_res" >&5
16358 echo "${ECHO_T}$ac_res" >&6; }
16359
16360 fi
16361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16362   cat >>confdefs.h <<_ACEOF
16363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16364 _ACEOF
16365
16366 fi
16367
16368 done
16369
16370
16371
16372
16373
16374 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16375 do
16376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16381   echo $ECHO_N "(cached) $ECHO_C" >&6
16382 fi
16383 ac_res=`eval echo '${'$as_ac_Header'}'`
16384                { echo "$as_me:$LINENO: result: $ac_res" >&5
16385 echo "${ECHO_T}$ac_res" >&6; }
16386 else
16387   # Is the header compilable?
16388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16390 cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h.  */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h.  */
16396 $ac_includes_default
16397 #include <$ac_header>
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (ac_try="$ac_compile"
16401 case "(($ac_try" in
16402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403   *) ac_try_echo=$ac_try;;
16404 esac
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406   (eval "$ac_compile") 2>conftest.er1
16407   ac_status=$?
16408   grep -v '^ *+' conftest.er1 >conftest.err
16409   rm -f conftest.er1
16410   cat conftest.err >&5
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); } &&
16413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16414   { (case "(($ac_try" in
16415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416   *) ac_try_echo=$ac_try;;
16417 esac
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419   (eval "$ac_try") 2>&5
16420   ac_status=$?
16421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); }; } &&
16423          { ac_try='test -s conftest.$ac_objext'
16424   { (case "(($ac_try" in
16425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426   *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429   (eval "$ac_try") 2>&5
16430   ac_status=$?
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); }; }; then
16433   ac_header_compiler=yes
16434 else
16435   echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16437
16438         ac_header_compiler=no
16439 fi
16440
16441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16443 echo "${ECHO_T}$ac_header_compiler" >&6; }
16444
16445 # Is the header present?
16446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16448 cat >conftest.$ac_ext <<_ACEOF
16449 /* confdefs.h.  */
16450 _ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h.  */
16454 #include <$ac_header>
16455 _ACEOF
16456 if { (ac_try="$ac_cpp conftest.$ac_ext"
16457 case "(($ac_try" in
16458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459   *) ac_try_echo=$ac_try;;
16460 esac
16461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16463   ac_status=$?
16464   grep -v '^ *+' conftest.er1 >conftest.err
16465   rm -f conftest.er1
16466   cat conftest.err >&5
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); } >/dev/null; then
16469   if test -s conftest.err; then
16470     ac_cpp_err=$ac_c_preproc_warn_flag
16471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16472   else
16473     ac_cpp_err=
16474   fi
16475 else
16476   ac_cpp_err=yes
16477 fi
16478 if test -z "$ac_cpp_err"; then
16479   ac_header_preproc=yes
16480 else
16481   echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16483
16484   ac_header_preproc=no
16485 fi
16486
16487 rm -f conftest.err conftest.$ac_ext
16488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16489 echo "${ECHO_T}$ac_header_preproc" >&6; }
16490
16491 # So?  What about this header?
16492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16493   yes:no: )
16494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16498     ac_header_preproc=yes
16499     ;;
16500   no:yes:* )
16501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16513     ( cat <<\_ASBOX
16514 ## ----------------------------------- ##
16515 ## Report this to llvmbugs@cs.uiuc.edu ##
16516 ## ----------------------------------- ##
16517 _ASBOX
16518      ) | sed "s/^/$as_me: WARNING:     /" >&2
16519     ;;
16520 esac
16521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16524   echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526   eval "$as_ac_Header=\$ac_header_preproc"
16527 fi
16528 ac_res=`eval echo '${'$as_ac_Header'}'`
16529                { echo "$as_me:$LINENO: result: $ac_res" >&5
16530 echo "${ECHO_T}$ac_res" >&6; }
16531
16532 fi
16533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16534   cat >>confdefs.h <<_ACEOF
16535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16536 _ACEOF
16537
16538 fi
16539
16540 done
16541
16542
16543 for ac_header in valgrind/valgrind.h
16544 do
16545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16547   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550   echo $ECHO_N "(cached) $ECHO_C" >&6
16551 fi
16552 ac_res=`eval echo '${'$as_ac_Header'}'`
16553                { echo "$as_me:$LINENO: result: $ac_res" >&5
16554 echo "${ECHO_T}$ac_res" >&6; }
16555 else
16556   # Is the header compilable?
16557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16559 cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565 $ac_includes_default
16566 #include <$ac_header>
16567 _ACEOF
16568 rm -f conftest.$ac_objext
16569 if { (ac_try="$ac_compile"
16570 case "(($ac_try" in
16571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572   *) ac_try_echo=$ac_try;;
16573 esac
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575   (eval "$ac_compile") 2>conftest.er1
16576   ac_status=$?
16577   grep -v '^ *+' conftest.er1 >conftest.err
16578   rm -f conftest.er1
16579   cat conftest.err >&5
16580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581   (exit $ac_status); } &&
16582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16583   { (case "(($ac_try" in
16584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585   *) ac_try_echo=$ac_try;;
16586 esac
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588   (eval "$ac_try") 2>&5
16589   ac_status=$?
16590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591   (exit $ac_status); }; } &&
16592          { ac_try='test -s conftest.$ac_objext'
16593   { (case "(($ac_try" in
16594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595   *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598   (eval "$ac_try") 2>&5
16599   ac_status=$?
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); }; }; then
16602   ac_header_compiler=yes
16603 else
16604   echo "$as_me: failed program was:" >&5
16605 sed 's/^/| /' conftest.$ac_ext >&5
16606
16607         ac_header_compiler=no
16608 fi
16609
16610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16612 echo "${ECHO_T}$ac_header_compiler" >&6; }
16613
16614 # Is the header present?
16615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16617 cat >conftest.$ac_ext <<_ACEOF
16618 /* confdefs.h.  */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h.  */
16623 #include <$ac_header>
16624 _ACEOF
16625 if { (ac_try="$ac_cpp conftest.$ac_ext"
16626 case "(($ac_try" in
16627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628   *) ac_try_echo=$ac_try;;
16629 esac
16630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16632   ac_status=$?
16633   grep -v '^ *+' conftest.er1 >conftest.err
16634   rm -f conftest.er1
16635   cat conftest.err >&5
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); } >/dev/null; then
16638   if test -s conftest.err; then
16639     ac_cpp_err=$ac_c_preproc_warn_flag
16640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16641   else
16642     ac_cpp_err=
16643   fi
16644 else
16645   ac_cpp_err=yes
16646 fi
16647 if test -z "$ac_cpp_err"; then
16648   ac_header_preproc=yes
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653   ac_header_preproc=no
16654 fi
16655
16656 rm -f conftest.err conftest.$ac_ext
16657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16658 echo "${ECHO_T}$ac_header_preproc" >&6; }
16659
16660 # So?  What about this header?
16661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16662   yes:no: )
16663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16667     ac_header_preproc=yes
16668     ;;
16669   no:yes:* )
16670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16682     ( cat <<\_ASBOX
16683 ## ----------------------------------- ##
16684 ## Report this to llvmbugs@cs.uiuc.edu ##
16685 ## ----------------------------------- ##
16686 _ASBOX
16687      ) | sed "s/^/$as_me: WARNING:     /" >&2
16688     ;;
16689 esac
16690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16693   echo $ECHO_N "(cached) $ECHO_C" >&6
16694 else
16695   eval "$as_ac_Header=\$ac_header_preproc"
16696 fi
16697 ac_res=`eval echo '${'$as_ac_Header'}'`
16698                { echo "$as_me:$LINENO: result: $ac_res" >&5
16699 echo "${ECHO_T}$ac_res" >&6; }
16700
16701 fi
16702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16703   cat >>confdefs.h <<_ACEOF
16704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16705 _ACEOF
16706
16707 fi
16708
16709 done
16710
16711
16712 for ac_header in fenv.h
16713 do
16714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16716   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16719   echo $ECHO_N "(cached) $ECHO_C" >&6
16720 fi
16721 ac_res=`eval echo '${'$as_ac_Header'}'`
16722                { echo "$as_me:$LINENO: result: $ac_res" >&5
16723 echo "${ECHO_T}$ac_res" >&6; }
16724 else
16725   # Is the header compilable?
16726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h.  */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h.  */
16734 $ac_includes_default
16735 #include <$ac_header>
16736 _ACEOF
16737 rm -f conftest.$ac_objext
16738 if { (ac_try="$ac_compile"
16739 case "(($ac_try" in
16740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741   *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744   (eval "$ac_compile") 2>conftest.er1
16745   ac_status=$?
16746   grep -v '^ *+' conftest.er1 >conftest.err
16747   rm -f conftest.er1
16748   cat conftest.err >&5
16749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750   (exit $ac_status); } &&
16751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16752   { (case "(($ac_try" in
16753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754   *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757   (eval "$ac_try") 2>&5
16758   ac_status=$?
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); }; } &&
16761          { ac_try='test -s conftest.$ac_objext'
16762   { (case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_try") 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); }; }; then
16771   ac_header_compiler=yes
16772 else
16773   echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776         ac_header_compiler=no
16777 fi
16778
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16781 echo "${ECHO_T}$ac_header_compiler" >&6; }
16782
16783 # Is the header present?
16784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16786 cat >conftest.$ac_ext <<_ACEOF
16787 /* confdefs.h.  */
16788 _ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h.  */
16792 #include <$ac_header>
16793 _ACEOF
16794 if { (ac_try="$ac_cpp conftest.$ac_ext"
16795 case "(($ac_try" in
16796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797   *) ac_try_echo=$ac_try;;
16798 esac
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16801   ac_status=$?
16802   grep -v '^ *+' conftest.er1 >conftest.err
16803   rm -f conftest.er1
16804   cat conftest.err >&5
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); } >/dev/null; then
16807   if test -s conftest.err; then
16808     ac_cpp_err=$ac_c_preproc_warn_flag
16809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16810   else
16811     ac_cpp_err=
16812   fi
16813 else
16814   ac_cpp_err=yes
16815 fi
16816 if test -z "$ac_cpp_err"; then
16817   ac_header_preproc=yes
16818 else
16819   echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16821
16822   ac_header_preproc=no
16823 fi
16824
16825 rm -f conftest.err conftest.$ac_ext
16826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16827 echo "${ECHO_T}$ac_header_preproc" >&6; }
16828
16829 # So?  What about this header?
16830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16831   yes:no: )
16832     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16836     ac_header_preproc=yes
16837     ;;
16838   no:yes:* )
16839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16841     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16842 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16843     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16845     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16846 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16849     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16851     ( cat <<\_ASBOX
16852 ## ----------------------------------- ##
16853 ## Report this to llvmbugs@cs.uiuc.edu ##
16854 ## ----------------------------------- ##
16855 _ASBOX
16856      ) | sed "s/^/$as_me: WARNING:     /" >&2
16857     ;;
16858 esac
16859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16862   echo $ECHO_N "(cached) $ECHO_C" >&6
16863 else
16864   eval "$as_ac_Header=\$ac_header_preproc"
16865 fi
16866 ac_res=`eval echo '${'$as_ac_Header'}'`
16867                { echo "$as_me:$LINENO: result: $ac_res" >&5
16868 echo "${ECHO_T}$ac_res" >&6; }
16869
16870 fi
16871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16872   cat >>confdefs.h <<_ACEOF
16873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16874 _ACEOF
16875
16876 fi
16877
16878 done
16879
16880 if test "$ENABLE_THREADS" -eq 1 ; then
16881
16882 for ac_header in pthread.h
16883 do
16884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16886   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 fi
16891 ac_res=`eval echo '${'$as_ac_Header'}'`
16892                { echo "$as_me:$LINENO: result: $ac_res" >&5
16893 echo "${ECHO_T}$ac_res" >&6; }
16894 else
16895   # Is the header compilable?
16896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904 $ac_includes_default
16905 #include <$ac_header>
16906 _ACEOF
16907 rm -f conftest.$ac_objext
16908 if { (ac_try="$ac_compile"
16909 case "(($ac_try" in
16910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911   *) ac_try_echo=$ac_try;;
16912 esac
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914   (eval "$ac_compile") 2>conftest.er1
16915   ac_status=$?
16916   grep -v '^ *+' conftest.er1 >conftest.err
16917   rm -f conftest.er1
16918   cat conftest.err >&5
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); } &&
16921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922   { (case "(($ac_try" in
16923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924   *) ac_try_echo=$ac_try;;
16925 esac
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927   (eval "$ac_try") 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; } &&
16931          { ac_try='test -s conftest.$ac_objext'
16932   { (case "(($ac_try" in
16933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934   *) ac_try_echo=$ac_try;;
16935 esac
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937   (eval "$ac_try") 2>&5
16938   ac_status=$?
16939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); }; }; then
16941   ac_header_compiler=yes
16942 else
16943   echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16945
16946         ac_header_compiler=no
16947 fi
16948
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16951 echo "${ECHO_T}$ac_header_compiler" >&6; }
16952
16953 # Is the header present?
16954 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16956 cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h.  */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h.  */
16962 #include <$ac_header>
16963 _ACEOF
16964 if { (ac_try="$ac_cpp conftest.$ac_ext"
16965 case "(($ac_try" in
16966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967   *) ac_try_echo=$ac_try;;
16968 esac
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16971   ac_status=$?
16972   grep -v '^ *+' conftest.er1 >conftest.err
16973   rm -f conftest.er1
16974   cat conftest.err >&5
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } >/dev/null; then
16977   if test -s conftest.err; then
16978     ac_cpp_err=$ac_c_preproc_warn_flag
16979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16980   else
16981     ac_cpp_err=
16982   fi
16983 else
16984   ac_cpp_err=yes
16985 fi
16986 if test -z "$ac_cpp_err"; then
16987   ac_header_preproc=yes
16988 else
16989   echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992   ac_header_preproc=no
16993 fi
16994
16995 rm -f conftest.err conftest.$ac_ext
16996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16997 echo "${ECHO_T}$ac_header_preproc" >&6; }
16998
16999 # So?  What about this header?
17000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17001   yes:no: )
17002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17006     ac_header_preproc=yes
17007     ;;
17008   no:yes:* )
17009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17021     ( cat <<\_ASBOX
17022 ## ----------------------------------- ##
17023 ## Report this to llvmbugs@cs.uiuc.edu ##
17024 ## ----------------------------------- ##
17025 _ASBOX
17026      ) | sed "s/^/$as_me: WARNING:     /" >&2
17027     ;;
17028 esac
17029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17032   echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034   eval "$as_ac_Header=\$ac_header_preproc"
17035 fi
17036 ac_res=`eval echo '${'$as_ac_Header'}'`
17037                { echo "$as_me:$LINENO: result: $ac_res" >&5
17038 echo "${ECHO_T}$ac_res" >&6; }
17039
17040 fi
17041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17042   cat >>confdefs.h <<_ACEOF
17043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17044 _ACEOF
17045  HAVE_PTHREAD=1
17046
17047 else
17048   HAVE_PTHREAD=0
17049
17050 fi
17051
17052 done
17053
17054 else
17055   HAVE_PTHREAD=0
17056
17057 fi
17058
17059 if test "$llvm_cv_enable_libffi" = "yes" ; then
17060
17061
17062 for ac_header in ffi.h ffi/ffi.h
17063 do
17064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17066   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17069   echo $ECHO_N "(cached) $ECHO_C" >&6
17070 fi
17071 ac_res=`eval echo '${'$as_ac_Header'}'`
17072                { echo "$as_me:$LINENO: result: $ac_res" >&5
17073 echo "${ECHO_T}$ac_res" >&6; }
17074 else
17075   # Is the header compilable?
17076 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17078 cat >conftest.$ac_ext <<_ACEOF
17079 /* confdefs.h.  */
17080 _ACEOF
17081 cat confdefs.h >>conftest.$ac_ext
17082 cat >>conftest.$ac_ext <<_ACEOF
17083 /* end confdefs.h.  */
17084 $ac_includes_default
17085 #include <$ac_header>
17086 _ACEOF
17087 rm -f conftest.$ac_objext
17088 if { (ac_try="$ac_compile"
17089 case "(($ac_try" in
17090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091   *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094   (eval "$ac_compile") 2>conftest.er1
17095   ac_status=$?
17096   grep -v '^ *+' conftest.er1 >conftest.err
17097   rm -f conftest.er1
17098   cat conftest.err >&5
17099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100   (exit $ac_status); } &&
17101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17102   { (case "(($ac_try" in
17103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104   *) ac_try_echo=$ac_try;;
17105 esac
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107   (eval "$ac_try") 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; } &&
17111          { ac_try='test -s conftest.$ac_objext'
17112   { (case "(($ac_try" in
17113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114   *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117   (eval "$ac_try") 2>&5
17118   ac_status=$?
17119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120   (exit $ac_status); }; }; then
17121   ac_header_compiler=yes
17122 else
17123   echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17125
17126         ac_header_compiler=no
17127 fi
17128
17129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17131 echo "${ECHO_T}$ac_header_compiler" >&6; }
17132
17133 # Is the header present?
17134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h.  */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h.  */
17142 #include <$ac_header>
17143 _ACEOF
17144 if { (ac_try="$ac_cpp conftest.$ac_ext"
17145 case "(($ac_try" in
17146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147   *) ac_try_echo=$ac_try;;
17148 esac
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17151   ac_status=$?
17152   grep -v '^ *+' conftest.er1 >conftest.err
17153   rm -f conftest.er1
17154   cat conftest.err >&5
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); } >/dev/null; then
17157   if test -s conftest.err; then
17158     ac_cpp_err=$ac_c_preproc_warn_flag
17159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17160   else
17161     ac_cpp_err=
17162   fi
17163 else
17164   ac_cpp_err=yes
17165 fi
17166 if test -z "$ac_cpp_err"; then
17167   ac_header_preproc=yes
17168 else
17169   echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172   ac_header_preproc=no
17173 fi
17174
17175 rm -f conftest.err conftest.$ac_ext
17176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17177 echo "${ECHO_T}$ac_header_preproc" >&6; }
17178
17179 # So?  What about this header?
17180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17181   yes:no: )
17182     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17186     ac_header_preproc=yes
17187     ;;
17188   no:yes:* )
17189     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17191     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17192 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17193     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17195     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17196 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17199     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17201     ( cat <<\_ASBOX
17202 ## ----------------------------------- ##
17203 ## Report this to llvmbugs@cs.uiuc.edu ##
17204 ## ----------------------------------- ##
17205 _ASBOX
17206      ) | sed "s/^/$as_me: WARNING:     /" >&2
17207     ;;
17208 esac
17209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17212   echo $ECHO_N "(cached) $ECHO_C" >&6
17213 else
17214   eval "$as_ac_Header=\$ac_header_preproc"
17215 fi
17216 ac_res=`eval echo '${'$as_ac_Header'}'`
17217                { echo "$as_me:$LINENO: result: $ac_res" >&5
17218 echo "${ECHO_T}$ac_res" >&6; }
17219
17220 fi
17221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17222   cat >>confdefs.h <<_ACEOF
17223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17224 _ACEOF
17225
17226 fi
17227
17228 done
17229
17230 fi
17231
17232
17233 for ac_header in CrashReporterClient.h
17234 do
17235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17237   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17240   echo $ECHO_N "(cached) $ECHO_C" >&6
17241 fi
17242 ac_res=`eval echo '${'$as_ac_Header'}'`
17243                { echo "$as_me:$LINENO: result: $ac_res" >&5
17244 echo "${ECHO_T}$ac_res" >&6; }
17245 else
17246   # Is the header compilable?
17247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17249 cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h.  */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h.  */
17255 $ac_includes_default
17256 #include <$ac_header>
17257 _ACEOF
17258 rm -f conftest.$ac_objext
17259 if { (ac_try="$ac_compile"
17260 case "(($ac_try" in
17261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262   *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265   (eval "$ac_compile") 2>conftest.er1
17266   ac_status=$?
17267   grep -v '^ *+' conftest.er1 >conftest.err
17268   rm -f conftest.er1
17269   cat conftest.err >&5
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); } &&
17272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273   { (case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_try") 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; } &&
17282          { ac_try='test -s conftest.$ac_objext'
17283   { (case "(($ac_try" in
17284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285   *) ac_try_echo=$ac_try;;
17286 esac
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288   (eval "$ac_try") 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; }; then
17292   ac_header_compiler=yes
17293 else
17294   echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297         ac_header_compiler=no
17298 fi
17299
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17302 echo "${ECHO_T}$ac_header_compiler" >&6; }
17303
17304 # Is the header present?
17305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h.  */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h.  */
17313 #include <$ac_header>
17314 _ACEOF
17315 if { (ac_try="$ac_cpp conftest.$ac_ext"
17316 case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17322   ac_status=$?
17323   grep -v '^ *+' conftest.er1 >conftest.err
17324   rm -f conftest.er1
17325   cat conftest.err >&5
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } >/dev/null; then
17328   if test -s conftest.err; then
17329     ac_cpp_err=$ac_c_preproc_warn_flag
17330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17331   else
17332     ac_cpp_err=
17333   fi
17334 else
17335   ac_cpp_err=yes
17336 fi
17337 if test -z "$ac_cpp_err"; then
17338   ac_header_preproc=yes
17339 else
17340   echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343   ac_header_preproc=no
17344 fi
17345
17346 rm -f conftest.err conftest.$ac_ext
17347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17348 echo "${ECHO_T}$ac_header_preproc" >&6; }
17349
17350 # So?  What about this header?
17351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17352   yes:no: )
17353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17357     ac_header_preproc=yes
17358     ;;
17359   no:yes:* )
17360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17372     ( cat <<\_ASBOX
17373 ## ----------------------------------- ##
17374 ## Report this to llvmbugs@cs.uiuc.edu ##
17375 ## ----------------------------------- ##
17376 _ASBOX
17377      ) | sed "s/^/$as_me: WARNING:     /" >&2
17378     ;;
17379 esac
17380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17383   echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385   eval "$as_ac_Header=\$ac_header_preproc"
17386 fi
17387 ac_res=`eval echo '${'$as_ac_Header'}'`
17388                { echo "$as_me:$LINENO: result: $ac_res" >&5
17389 echo "${ECHO_T}$ac_res" >&6; }
17390
17391 fi
17392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17393   cat >>confdefs.h <<_ACEOF
17394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17395 _ACEOF
17396
17397 fi
17398
17399 done
17400
17401
17402
17403
17404
17405   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17406 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17407 if test "${ac_cv_huge_val_sanity+set}" = set; then
17408   echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410
17411     ac_ext=cpp
17412 ac_cpp='$CXXCPP $CPPFLAGS'
17413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17416
17417     ac_save_CXXFLAGS=$CXXFLAGS
17418     CXXFLAGS=-pedantic
17419     if test "$cross_compiling" = yes; then
17420   ac_cv_huge_val_sanity=yes
17421 else
17422   cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h.  */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h.  */
17428 #include <math.h>
17429 int
17430 main ()
17431 {
17432 double x = HUGE_VAL; return x != x;
17433   ;
17434   return 0;
17435 }
17436 _ACEOF
17437 rm -f conftest$ac_exeext
17438 if { (ac_try="$ac_link"
17439 case "(($ac_try" in
17440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441   *) ac_try_echo=$ac_try;;
17442 esac
17443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444   (eval "$ac_link") 2>&5
17445   ac_status=$?
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17448   { (case "(($ac_try" in
17449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450   *) ac_try_echo=$ac_try;;
17451 esac
17452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453   (eval "$ac_try") 2>&5
17454   ac_status=$?
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); }; }; then
17457   ac_cv_huge_val_sanity=yes
17458 else
17459   echo "$as_me: program exited with status $ac_status" >&5
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17462
17463 ( exit $ac_status )
17464 ac_cv_huge_val_sanity=no
17465 fi
17466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17467 fi
17468
17469
17470     CXXFLAGS=$ac_save_CXXFLAGS
17471     ac_ext=c
17472 ac_cpp='$CPP $CPPFLAGS'
17473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17476
17477
17478 fi
17479 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17480 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17481   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17482
17483
17484 { echo "$as_me:$LINENO: checking for pid_t" >&5
17485 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17486 if test "${ac_cv_type_pid_t+set}" = set; then
17487   echo $ECHO_N "(cached) $ECHO_C" >&6
17488 else
17489   cat >conftest.$ac_ext <<_ACEOF
17490 /* confdefs.h.  */
17491 _ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h.  */
17495 $ac_includes_default
17496 typedef pid_t ac__type_new_;
17497 int
17498 main ()
17499 {
17500 if ((ac__type_new_ *) 0)
17501   return 0;
17502 if (sizeof (ac__type_new_))
17503   return 0;
17504   ;
17505   return 0;
17506 }
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (ac_try="$ac_compile"
17510 case "(($ac_try" in
17511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512   *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515   (eval "$ac_compile") 2>conftest.er1
17516   ac_status=$?
17517   grep -v '^ *+' conftest.er1 >conftest.err
17518   rm -f conftest.er1
17519   cat conftest.err >&5
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); } &&
17522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17523   { (case "(($ac_try" in
17524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525   *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528   (eval "$ac_try") 2>&5
17529   ac_status=$?
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); }; } &&
17532          { ac_try='test -s conftest.$ac_objext'
17533   { (case "(($ac_try" in
17534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535   *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538   (eval "$ac_try") 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; }; then
17542   ac_cv_type_pid_t=yes
17543 else
17544   echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547         ac_cv_type_pid_t=no
17548 fi
17549
17550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17551 fi
17552 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17553 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17554 if test $ac_cv_type_pid_t = yes; then
17555   :
17556 else
17557
17558 cat >>confdefs.h <<_ACEOF
17559 #define pid_t int
17560 _ACEOF
17561
17562 fi
17563
17564 { echo "$as_me:$LINENO: checking for size_t" >&5
17565 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17566 if test "${ac_cv_type_size_t+set}" = set; then
17567   echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569   cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575 $ac_includes_default
17576 typedef size_t ac__type_new_;
17577 int
17578 main ()
17579 {
17580 if ((ac__type_new_ *) 0)
17581   return 0;
17582 if (sizeof (ac__type_new_))
17583   return 0;
17584   ;
17585   return 0;
17586 }
17587 _ACEOF
17588 rm -f conftest.$ac_objext
17589 if { (ac_try="$ac_compile"
17590 case "(($ac_try" in
17591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592   *) ac_try_echo=$ac_try;;
17593 esac
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595   (eval "$ac_compile") 2>conftest.er1
17596   ac_status=$?
17597   grep -v '^ *+' conftest.er1 >conftest.err
17598   rm -f conftest.er1
17599   cat conftest.err >&5
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } &&
17602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17603   { (case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608   (eval "$ac_try") 2>&5
17609   ac_status=$?
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); }; } &&
17612          { ac_try='test -s conftest.$ac_objext'
17613   { (case "(($ac_try" in
17614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615   *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618   (eval "$ac_try") 2>&5
17619   ac_status=$?
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); }; }; then
17622   ac_cv_type_size_t=yes
17623 else
17624   echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627         ac_cv_type_size_t=no
17628 fi
17629
17630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17631 fi
17632 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17633 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17634 if test $ac_cv_type_size_t = yes; then
17635   :
17636 else
17637
17638 cat >>confdefs.h <<_ACEOF
17639 #define size_t unsigned int
17640 _ACEOF
17641
17642 fi
17643
17644
17645 cat >>confdefs.h <<_ACEOF
17646 #define RETSIGTYPE void
17647 _ACEOF
17648
17649 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17650 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17651 if test "${ac_cv_struct_tm+set}" = set; then
17652   echo $ECHO_N "(cached) $ECHO_C" >&6
17653 else
17654   cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h.  */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h.  */
17660 #include <sys/types.h>
17661 #include <time.h>
17662
17663 int
17664 main ()
17665 {
17666 struct tm *tp; tp->tm_sec;
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_compile") 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } &&
17685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686   { (case "(($ac_try" in
17687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688   *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691   (eval "$ac_try") 2>&5
17692   ac_status=$?
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); }; } &&
17695          { ac_try='test -s conftest.$ac_objext'
17696   { (case "(($ac_try" in
17697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698   *) ac_try_echo=$ac_try;;
17699 esac
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701   (eval "$ac_try") 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; }; then
17705   ac_cv_struct_tm=time.h
17706 else
17707   echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17709
17710         ac_cv_struct_tm=sys/time.h
17711 fi
17712
17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714 fi
17715 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17716 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17717 if test $ac_cv_struct_tm = sys/time.h; then
17718
17719 cat >>confdefs.h <<\_ACEOF
17720 #define TM_IN_SYS_TIME 1
17721 _ACEOF
17722
17723 fi
17724
17725 { echo "$as_me:$LINENO: checking for int64_t" >&5
17726 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17727 if test "${ac_cv_type_int64_t+set}" = set; then
17728   echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730   cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h.  */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h.  */
17736 $ac_includes_default
17737 typedef int64_t ac__type_new_;
17738 int
17739 main ()
17740 {
17741 if ((ac__type_new_ *) 0)
17742   return 0;
17743 if (sizeof (ac__type_new_))
17744   return 0;
17745   ;
17746   return 0;
17747 }
17748 _ACEOF
17749 rm -f conftest.$ac_objext
17750 if { (ac_try="$ac_compile"
17751 case "(($ac_try" in
17752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753   *) ac_try_echo=$ac_try;;
17754 esac
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756   (eval "$ac_compile") 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764   { (case "(($ac_try" in
17765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766   *) ac_try_echo=$ac_try;;
17767 esac
17768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17769   (eval "$ac_try") 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; } &&
17773          { ac_try='test -s conftest.$ac_objext'
17774   { (case "(($ac_try" in
17775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776   *) ac_try_echo=$ac_try;;
17777 esac
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779   (eval "$ac_try") 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; }; then
17783   ac_cv_type_int64_t=yes
17784 else
17785   echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788         ac_cv_type_int64_t=no
17789 fi
17790
17791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792 fi
17793 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17794 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17795 if test $ac_cv_type_int64_t = yes; then
17796
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_INT64_T 1
17799 _ACEOF
17800
17801
17802 else
17803   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17804 echo "$as_me: error: Type int64_t required but not found" >&2;}
17805    { (exit 1); exit 1; }; }
17806 fi
17807
17808 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17809 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17810 if test "${ac_cv_type_uint64_t+set}" = set; then
17811   echo $ECHO_N "(cached) $ECHO_C" >&6
17812 else
17813   cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h.  */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h.  */
17819 $ac_includes_default
17820 typedef uint64_t ac__type_new_;
17821 int
17822 main ()
17823 {
17824 if ((ac__type_new_ *) 0)
17825   return 0;
17826 if (sizeof (ac__type_new_))
17827   return 0;
17828   ;
17829   return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest.$ac_objext
17833 if { (ac_try="$ac_compile"
17834 case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_compile") 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } &&
17846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17847   { (case "(($ac_try" in
17848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849   *) ac_try_echo=$ac_try;;
17850 esac
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852   (eval "$ac_try") 2>&5
17853   ac_status=$?
17854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855   (exit $ac_status); }; } &&
17856          { ac_try='test -s conftest.$ac_objext'
17857   { (case "(($ac_try" in
17858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859   *) ac_try_echo=$ac_try;;
17860 esac
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862   (eval "$ac_try") 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; }; then
17866   ac_cv_type_uint64_t=yes
17867 else
17868   echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871         ac_cv_type_uint64_t=no
17872 fi
17873
17874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875 fi
17876 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17877 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17878 if test $ac_cv_type_uint64_t = yes; then
17879
17880 cat >>confdefs.h <<_ACEOF
17881 #define HAVE_UINT64_T 1
17882 _ACEOF
17883
17884
17885 else
17886   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17887 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17888 if test "${ac_cv_type_u_int64_t+set}" = set; then
17889   echo $ECHO_N "(cached) $ECHO_C" >&6
17890 else
17891   cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h.  */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h.  */
17897 $ac_includes_default
17898 typedef u_int64_t ac__type_new_;
17899 int
17900 main ()
17901 {
17902 if ((ac__type_new_ *) 0)
17903   return 0;
17904 if (sizeof (ac__type_new_))
17905   return 0;
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext
17911 if { (ac_try="$ac_compile"
17912 case "(($ac_try" in
17913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914   *) ac_try_echo=$ac_try;;
17915 esac
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917   (eval "$ac_compile") 2>conftest.er1
17918   ac_status=$?
17919   grep -v '^ *+' conftest.er1 >conftest.err
17920   rm -f conftest.er1
17921   cat conftest.err >&5
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); } &&
17924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17925   { (case "(($ac_try" in
17926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927   *) ac_try_echo=$ac_try;;
17928 esac
17929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930   (eval "$ac_try") 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; } &&
17934          { ac_try='test -s conftest.$ac_objext'
17935   { (case "(($ac_try" in
17936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937   *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940   (eval "$ac_try") 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; }; then
17944   ac_cv_type_u_int64_t=yes
17945 else
17946   echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949         ac_cv_type_u_int64_t=no
17950 fi
17951
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953 fi
17954 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17955 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17956 if test $ac_cv_type_u_int64_t = yes; then
17957
17958 cat >>confdefs.h <<_ACEOF
17959 #define HAVE_U_INT64_T 1
17960 _ACEOF
17961
17962
17963 else
17964   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17965 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17966    { (exit 1); exit 1; }; }
17967 fi
17968
17969 fi
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17981 do
17982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17986   echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988   cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h.  */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h.  */
17994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17996 #define $ac_func innocuous_$ac_func
17997
17998 /* System header to define __stub macros and hopefully few prototypes,
17999     which can conflict with char $ac_func (); below.
18000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18001     <limits.h> exists even on freestanding compilers.  */
18002
18003 #ifdef __STDC__
18004 # include <limits.h>
18005 #else
18006 # include <assert.h>
18007 #endif
18008
18009 #undef $ac_func
18010
18011 /* Override any GCC internal prototype to avoid an error.
18012    Use char because int might match the return type of a GCC
18013    builtin and then its argument prototype would still apply.  */
18014 #ifdef __cplusplus
18015 extern "C"
18016 #endif
18017 char $ac_func ();
18018 /* The GNU C library defines this for functions which it implements
18019     to always fail with ENOSYS.  Some functions are actually named
18020     something starting with __ and the normal name is an alias.  */
18021 #if defined __stub_$ac_func || defined __stub___$ac_func
18022 choke me
18023 #endif
18024
18025 int
18026 main ()
18027 {
18028 return $ac_func ();
18029   ;
18030   return 0;
18031 }
18032 _ACEOF
18033 rm -f conftest.$ac_objext conftest$ac_exeext
18034 if { (ac_try="$ac_link"
18035 case "(($ac_try" in
18036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037   *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040   (eval "$ac_link") 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } &&
18047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18048   { (case "(($ac_try" in
18049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050   *) ac_try_echo=$ac_try;;
18051 esac
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053   (eval "$ac_try") 2>&5
18054   ac_status=$?
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); }; } &&
18057          { ac_try='test -s conftest$ac_exeext'
18058   { (case "(($ac_try" in
18059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060   *) ac_try_echo=$ac_try;;
18061 esac
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063   (eval "$ac_try") 2>&5
18064   ac_status=$?
18065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066   (exit $ac_status); }; }; then
18067   eval "$as_ac_var=yes"
18068 else
18069   echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18071
18072         eval "$as_ac_var=no"
18073 fi
18074
18075 rm -f core conftest.err conftest.$ac_objext \
18076       conftest$ac_exeext conftest.$ac_ext
18077 fi
18078 ac_res=`eval echo '${'$as_ac_var'}'`
18079                { echo "$as_me:$LINENO: result: $ac_res" >&5
18080 echo "${ECHO_T}$ac_res" >&6; }
18081 if test `eval echo '${'$as_ac_var'}'` = yes; then
18082   cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18084 _ACEOF
18085
18086 fi
18087 done
18088
18089
18090
18091
18092
18093 for ac_func in powf fmodf strtof round
18094 do
18095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18099   echo $ECHO_N "(cached) $ECHO_C" >&6
18100 else
18101   cat >conftest.$ac_ext <<_ACEOF
18102 /* confdefs.h.  */
18103 _ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h.  */
18107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18109 #define $ac_func innocuous_$ac_func
18110
18111 /* System header to define __stub macros and hopefully few prototypes,
18112     which can conflict with char $ac_func (); below.
18113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18114     <limits.h> exists even on freestanding compilers.  */
18115
18116 #ifdef __STDC__
18117 # include <limits.h>
18118 #else
18119 # include <assert.h>
18120 #endif
18121
18122 #undef $ac_func
18123
18124 /* Override any GCC internal prototype to avoid an error.
18125    Use char because int might match the return type of a GCC
18126    builtin and then its argument prototype would still apply.  */
18127 #ifdef __cplusplus
18128 extern "C"
18129 #endif
18130 char $ac_func ();
18131 /* The GNU C library defines this for functions which it implements
18132     to always fail with ENOSYS.  Some functions are actually named
18133     something starting with __ and the normal name is an alias.  */
18134 #if defined __stub_$ac_func || defined __stub___$ac_func
18135 choke me
18136 #endif
18137
18138 int
18139 main ()
18140 {
18141 return $ac_func ();
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (ac_try="$ac_link"
18148 case "(($ac_try" in
18149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150   *) ac_try_echo=$ac_try;;
18151 esac
18152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153   (eval "$ac_link") 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } &&
18160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18161   { (case "(($ac_try" in
18162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163   *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166   (eval "$ac_try") 2>&5
18167   ac_status=$?
18168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169   (exit $ac_status); }; } &&
18170          { ac_try='test -s conftest$ac_exeext'
18171   { (case "(($ac_try" in
18172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173   *) ac_try_echo=$ac_try;;
18174 esac
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176   (eval "$ac_try") 2>&5
18177   ac_status=$?
18178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179   (exit $ac_status); }; }; then
18180   eval "$as_ac_var=yes"
18181 else
18182   echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185         eval "$as_ac_var=no"
18186 fi
18187
18188 rm -f core conftest.err conftest.$ac_objext \
18189       conftest$ac_exeext conftest.$ac_ext
18190 fi
18191 ac_res=`eval echo '${'$as_ac_var'}'`
18192                { echo "$as_me:$LINENO: result: $ac_res" >&5
18193 echo "${ECHO_T}$ac_res" >&6; }
18194 if test `eval echo '${'$as_ac_var'}'` = yes; then
18195   cat >>confdefs.h <<_ACEOF
18196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18197 _ACEOF
18198
18199 fi
18200 done
18201
18202
18203
18204
18205
18206
18207 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18208 do
18209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18213   echo $ECHO_N "(cached) $ECHO_C" >&6
18214 else
18215   cat >conftest.$ac_ext <<_ACEOF
18216 /* confdefs.h.  */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h.  */
18221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18223 #define $ac_func innocuous_$ac_func
18224
18225 /* System header to define __stub macros and hopefully few prototypes,
18226     which can conflict with char $ac_func (); below.
18227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18228     <limits.h> exists even on freestanding compilers.  */
18229
18230 #ifdef __STDC__
18231 # include <limits.h>
18232 #else
18233 # include <assert.h>
18234 #endif
18235
18236 #undef $ac_func
18237
18238 /* Override any GCC internal prototype to avoid an error.
18239    Use char because int might match the return type of a GCC
18240    builtin and then its argument prototype would still apply.  */
18241 #ifdef __cplusplus
18242 extern "C"
18243 #endif
18244 char $ac_func ();
18245 /* The GNU C library defines this for functions which it implements
18246     to always fail with ENOSYS.  Some functions are actually named
18247     something starting with __ and the normal name is an alias.  */
18248 #if defined __stub_$ac_func || defined __stub___$ac_func
18249 choke me
18250 #endif
18251
18252 int
18253 main ()
18254 {
18255 return $ac_func ();
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (ac_try="$ac_link"
18262 case "(($ac_try" in
18263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264   *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267   (eval "$ac_link") 2>conftest.er1
18268   ac_status=$?
18269   grep -v '^ *+' conftest.er1 >conftest.err
18270   rm -f conftest.er1
18271   cat conftest.err >&5
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); } &&
18274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18275   { (case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_try") 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); }; } &&
18284          { ac_try='test -s conftest$ac_exeext'
18285   { (case "(($ac_try" in
18286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287   *) ac_try_echo=$ac_try;;
18288 esac
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290   (eval "$ac_try") 2>&5
18291   ac_status=$?
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); }; }; then
18294   eval "$as_ac_var=yes"
18295 else
18296   echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18298
18299         eval "$as_ac_var=no"
18300 fi
18301
18302 rm -f core conftest.err conftest.$ac_objext \
18303       conftest$ac_exeext conftest.$ac_ext
18304 fi
18305 ac_res=`eval echo '${'$as_ac_var'}'`
18306                { echo "$as_me:$LINENO: result: $ac_res" >&5
18307 echo "${ECHO_T}$ac_res" >&6; }
18308 if test `eval echo '${'$as_ac_var'}'` = yes; then
18309   cat >>confdefs.h <<_ACEOF
18310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18311 _ACEOF
18312
18313 fi
18314 done
18315
18316
18317
18318
18319 for ac_func in isatty mkdtemp mkstemp
18320 do
18321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18325   echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327   cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h.  */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h.  */
18333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18335 #define $ac_func innocuous_$ac_func
18336
18337 /* System header to define __stub macros and hopefully few prototypes,
18338     which can conflict with char $ac_func (); below.
18339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18340     <limits.h> exists even on freestanding compilers.  */
18341
18342 #ifdef __STDC__
18343 # include <limits.h>
18344 #else
18345 # include <assert.h>
18346 #endif
18347
18348 #undef $ac_func
18349
18350 /* Override any GCC internal prototype to avoid an error.
18351    Use char because int might match the return type of a GCC
18352    builtin and then its argument prototype would still apply.  */
18353 #ifdef __cplusplus
18354 extern "C"
18355 #endif
18356 char $ac_func ();
18357 /* The GNU C library defines this for functions which it implements
18358     to always fail with ENOSYS.  Some functions are actually named
18359     something starting with __ and the normal name is an alias.  */
18360 #if defined __stub_$ac_func || defined __stub___$ac_func
18361 choke me
18362 #endif
18363
18364 int
18365 main ()
18366 {
18367 return $ac_func ();
18368   ;
18369   return 0;
18370 }
18371 _ACEOF
18372 rm -f conftest.$ac_objext conftest$ac_exeext
18373 if { (ac_try="$ac_link"
18374 case "(($ac_try" in
18375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376   *) ac_try_echo=$ac_try;;
18377 esac
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379   (eval "$ac_link") 2>conftest.er1
18380   ac_status=$?
18381   grep -v '^ *+' conftest.er1 >conftest.err
18382   rm -f conftest.er1
18383   cat conftest.err >&5
18384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385   (exit $ac_status); } &&
18386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18387   { (case "(($ac_try" in
18388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389   *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392   (eval "$ac_try") 2>&5
18393   ac_status=$?
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); }; } &&
18396          { ac_try='test -s conftest$ac_exeext'
18397   { (case "(($ac_try" in
18398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399   *) ac_try_echo=$ac_try;;
18400 esac
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402   (eval "$ac_try") 2>&5
18403   ac_status=$?
18404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405   (exit $ac_status); }; }; then
18406   eval "$as_ac_var=yes"
18407 else
18408   echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18410
18411         eval "$as_ac_var=no"
18412 fi
18413
18414 rm -f core conftest.err conftest.$ac_objext \
18415       conftest$ac_exeext conftest.$ac_ext
18416 fi
18417 ac_res=`eval echo '${'$as_ac_var'}'`
18418                { echo "$as_me:$LINENO: result: $ac_res" >&5
18419 echo "${ECHO_T}$ac_res" >&6; }
18420 if test `eval echo '${'$as_ac_var'}'` = yes; then
18421   cat >>confdefs.h <<_ACEOF
18422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18423 _ACEOF
18424
18425 fi
18426 done
18427
18428
18429
18430
18431
18432
18433
18434 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18435 do
18436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18440   echo $ECHO_N "(cached) $ECHO_C" >&6
18441 else
18442   cat >conftest.$ac_ext <<_ACEOF
18443 /* confdefs.h.  */
18444 _ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h.  */
18448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18450 #define $ac_func innocuous_$ac_func
18451
18452 /* System header to define __stub macros and hopefully few prototypes,
18453     which can conflict with char $ac_func (); below.
18454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18455     <limits.h> exists even on freestanding compilers.  */
18456
18457 #ifdef __STDC__
18458 # include <limits.h>
18459 #else
18460 # include <assert.h>
18461 #endif
18462
18463 #undef $ac_func
18464
18465 /* Override any GCC internal prototype to avoid an error.
18466    Use char because int might match the return type of a GCC
18467    builtin and then its argument prototype would still apply.  */
18468 #ifdef __cplusplus
18469 extern "C"
18470 #endif
18471 char $ac_func ();
18472 /* The GNU C library defines this for functions which it implements
18473     to always fail with ENOSYS.  Some functions are actually named
18474     something starting with __ and the normal name is an alias.  */
18475 #if defined __stub_$ac_func || defined __stub___$ac_func
18476 choke me
18477 #endif
18478
18479 int
18480 main ()
18481 {
18482 return $ac_func ();
18483   ;
18484   return 0;
18485 }
18486 _ACEOF
18487 rm -f conftest.$ac_objext conftest$ac_exeext
18488 if { (ac_try="$ac_link"
18489 case "(($ac_try" in
18490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491   *) ac_try_echo=$ac_try;;
18492 esac
18493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494   (eval "$ac_link") 2>conftest.er1
18495   ac_status=$?
18496   grep -v '^ *+' conftest.er1 >conftest.err
18497   rm -f conftest.er1
18498   cat conftest.err >&5
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); } &&
18501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18502   { (case "(($ac_try" in
18503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504   *) ac_try_echo=$ac_try;;
18505 esac
18506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18507   (eval "$ac_try") 2>&5
18508   ac_status=$?
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); }; } &&
18511          { ac_try='test -s conftest$ac_exeext'
18512   { (case "(($ac_try" in
18513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514   *) ac_try_echo=$ac_try;;
18515 esac
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517   (eval "$ac_try") 2>&5
18518   ac_status=$?
18519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520   (exit $ac_status); }; }; then
18521   eval "$as_ac_var=yes"
18522 else
18523   echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.$ac_ext >&5
18525
18526         eval "$as_ac_var=no"
18527 fi
18528
18529 rm -f core conftest.err conftest.$ac_objext \
18530       conftest$ac_exeext conftest.$ac_ext
18531 fi
18532 ac_res=`eval echo '${'$as_ac_var'}'`
18533                { echo "$as_me:$LINENO: result: $ac_res" >&5
18534 echo "${ECHO_T}$ac_res" >&6; }
18535 if test `eval echo '${'$as_ac_var'}'` = yes; then
18536   cat >>confdefs.h <<_ACEOF
18537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18538 _ACEOF
18539
18540 fi
18541 done
18542
18543
18544
18545
18546
18547 for ac_func in strerror strerror_r strerror_s setenv
18548 do
18549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18553   echo $ECHO_N "(cached) $ECHO_C" >&6
18554 else
18555   cat >conftest.$ac_ext <<_ACEOF
18556 /* confdefs.h.  */
18557 _ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h.  */
18561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18563 #define $ac_func innocuous_$ac_func
18564
18565 /* System header to define __stub macros and hopefully few prototypes,
18566     which can conflict with char $ac_func (); below.
18567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18568     <limits.h> exists even on freestanding compilers.  */
18569
18570 #ifdef __STDC__
18571 # include <limits.h>
18572 #else
18573 # include <assert.h>
18574 #endif
18575
18576 #undef $ac_func
18577
18578 /* Override any GCC internal prototype to avoid an error.
18579    Use char because int might match the return type of a GCC
18580    builtin and then its argument prototype would still apply.  */
18581 #ifdef __cplusplus
18582 extern "C"
18583 #endif
18584 char $ac_func ();
18585 /* The GNU C library defines this for functions which it implements
18586     to always fail with ENOSYS.  Some functions are actually named
18587     something starting with __ and the normal name is an alias.  */
18588 #if defined __stub_$ac_func || defined __stub___$ac_func
18589 choke me
18590 #endif
18591
18592 int
18593 main ()
18594 {
18595 return $ac_func ();
18596   ;
18597   return 0;
18598 }
18599 _ACEOF
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (ac_try="$ac_link"
18602 case "(($ac_try" in
18603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604   *) ac_try_echo=$ac_try;;
18605 esac
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607   (eval "$ac_link") 2>conftest.er1
18608   ac_status=$?
18609   grep -v '^ *+' conftest.er1 >conftest.err
18610   rm -f conftest.er1
18611   cat conftest.err >&5
18612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613   (exit $ac_status); } &&
18614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615   { (case "(($ac_try" in
18616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617   *) ac_try_echo=$ac_try;;
18618 esac
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620   (eval "$ac_try") 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; } &&
18624          { ac_try='test -s conftest$ac_exeext'
18625   { (case "(($ac_try" in
18626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627   *) ac_try_echo=$ac_try;;
18628 esac
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630   (eval "$ac_try") 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; }; then
18634   eval "$as_ac_var=yes"
18635 else
18636   echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18638
18639         eval "$as_ac_var=no"
18640 fi
18641
18642 rm -f core conftest.err conftest.$ac_objext \
18643       conftest$ac_exeext conftest.$ac_ext
18644 fi
18645 ac_res=`eval echo '${'$as_ac_var'}'`
18646                { echo "$as_me:$LINENO: result: $ac_res" >&5
18647 echo "${ECHO_T}$ac_res" >&6; }
18648 if test `eval echo '${'$as_ac_var'}'` = yes; then
18649   cat >>confdefs.h <<_ACEOF
18650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18651 _ACEOF
18652
18653 fi
18654 done
18655
18656
18657
18658
18659
18660 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18661 do
18662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18666   echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668   cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18676 #define $ac_func innocuous_$ac_func
18677
18678 /* System header to define __stub macros and hopefully few prototypes,
18679     which can conflict with char $ac_func (); below.
18680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18681     <limits.h> exists even on freestanding compilers.  */
18682
18683 #ifdef __STDC__
18684 # include <limits.h>
18685 #else
18686 # include <assert.h>
18687 #endif
18688
18689 #undef $ac_func
18690
18691 /* Override any GCC internal prototype to avoid an error.
18692    Use char because int might match the return type of a GCC
18693    builtin and then its argument prototype would still apply.  */
18694 #ifdef __cplusplus
18695 extern "C"
18696 #endif
18697 char $ac_func ();
18698 /* The GNU C library defines this for functions which it implements
18699     to always fail with ENOSYS.  Some functions are actually named
18700     something starting with __ and the normal name is an alias.  */
18701 #if defined __stub_$ac_func || defined __stub___$ac_func
18702 choke me
18703 #endif
18704
18705 int
18706 main ()
18707 {
18708 return $ac_func ();
18709   ;
18710   return 0;
18711 }
18712 _ACEOF
18713 rm -f conftest.$ac_objext conftest$ac_exeext
18714 if { (ac_try="$ac_link"
18715 case "(($ac_try" in
18716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717   *) ac_try_echo=$ac_try;;
18718 esac
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720   (eval "$ac_link") 2>conftest.er1
18721   ac_status=$?
18722   grep -v '^ *+' conftest.er1 >conftest.err
18723   rm -f conftest.er1
18724   cat conftest.err >&5
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); } &&
18727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18728   { (case "(($ac_try" in
18729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730   *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733   (eval "$ac_try") 2>&5
18734   ac_status=$?
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); }; } &&
18737          { ac_try='test -s conftest$ac_exeext'
18738   { (case "(($ac_try" in
18739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740   *) ac_try_echo=$ac_try;;
18741 esac
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743   (eval "$ac_try") 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); }; }; then
18747   eval "$as_ac_var=yes"
18748 else
18749   echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18751
18752         eval "$as_ac_var=no"
18753 fi
18754
18755 rm -f core conftest.err conftest.$ac_objext \
18756       conftest$ac_exeext conftest.$ac_ext
18757 fi
18758 ac_res=`eval echo '${'$as_ac_var'}'`
18759                { echo "$as_me:$LINENO: result: $ac_res" >&5
18760 echo "${ECHO_T}$ac_res" >&6; }
18761 if test `eval echo '${'$as_ac_var'}'` = yes; then
18762   cat >>confdefs.h <<_ACEOF
18763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18764 _ACEOF
18765
18766 fi
18767 done
18768
18769
18770
18771
18772
18773 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18774 do
18775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18776 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781   cat >conftest.$ac_ext <<_ACEOF
18782 /* confdefs.h.  */
18783 _ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h.  */
18787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18789 #define $ac_func innocuous_$ac_func
18790
18791 /* System header to define __stub macros and hopefully few prototypes,
18792     which can conflict with char $ac_func (); below.
18793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18794     <limits.h> exists even on freestanding compilers.  */
18795
18796 #ifdef __STDC__
18797 # include <limits.h>
18798 #else
18799 # include <assert.h>
18800 #endif
18801
18802 #undef $ac_func
18803
18804 /* Override any GCC internal prototype to avoid an error.
18805    Use char because int might match the return type of a GCC
18806    builtin and then its argument prototype would still apply.  */
18807 #ifdef __cplusplus
18808 extern "C"
18809 #endif
18810 char $ac_func ();
18811 /* The GNU C library defines this for functions which it implements
18812     to always fail with ENOSYS.  Some functions are actually named
18813     something starting with __ and the normal name is an alias.  */
18814 #if defined __stub_$ac_func || defined __stub___$ac_func
18815 choke me
18816 #endif
18817
18818 int
18819 main ()
18820 {
18821 return $ac_func ();
18822   ;
18823   return 0;
18824 }
18825 _ACEOF
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830   *) ac_try_echo=$ac_try;;
18831 esac
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833   (eval "$ac_link") 2>conftest.er1
18834   ac_status=$?
18835   grep -v '^ *+' conftest.er1 >conftest.err
18836   rm -f conftest.er1
18837   cat conftest.err >&5
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); } &&
18840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841   { (case "(($ac_try" in
18842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843   *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846   (eval "$ac_try") 2>&5
18847   ac_status=$?
18848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849   (exit $ac_status); }; } &&
18850          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18857   ac_status=$?
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); }; }; then
18860   eval "$as_ac_var=yes"
18861 else
18862   echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18864
18865         eval "$as_ac_var=no"
18866 fi
18867
18868 rm -f core conftest.err conftest.$ac_objext \
18869       conftest$ac_exeext conftest.$ac_ext
18870 fi
18871 ac_res=`eval echo '${'$as_ac_var'}'`
18872                { echo "$as_me:$LINENO: result: $ac_res" >&5
18873 echo "${ECHO_T}$ac_res" >&6; }
18874 if test `eval echo '${'$as_ac_var'}'` = yes; then
18875   cat >>confdefs.h <<_ACEOF
18876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18877 _ACEOF
18878
18879 fi
18880 done
18881
18882 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18883 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18884 if test "${llvm_cv_c_printf_a+set}" = set; then
18885   echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887   ac_ext=c
18888 ac_cpp='$CPP $CPPFLAGS'
18889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892
18893  if test "$cross_compiling" = yes; then
18894   llvmac_cv_c_printf_a=no
18895 else
18896   cat >conftest.$ac_ext <<_ACEOF
18897
18898   /* confdefs.h.  */
18899 _ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h.  */
18903
18904 #include <stdio.h>
18905 #include <stdlib.h>
18906
18907 int
18908 main ()
18909 {
18910
18911 volatile double A, B;
18912 char Buffer[100];
18913 A = 1;
18914 A /= 10.0;
18915 sprintf(Buffer, "%a", A);
18916 B = atof(Buffer);
18917 if (A != B)
18918   return (1);
18919 if (A != 0x1.999999999999ap-4)
18920   return (1);
18921 return (0);
18922   ;
18923   return 0;
18924 }
18925 _ACEOF
18926 rm -f conftest$ac_exeext
18927 if { (ac_try="$ac_link"
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_link") 2>&5
18934   ac_status=$?
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18937   { (case "(($ac_try" in
18938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939   *) ac_try_echo=$ac_try;;
18940 esac
18941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942   (eval "$ac_try") 2>&5
18943   ac_status=$?
18944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); }; }; then
18946   llvm_cv_c_printf_a=yes
18947 else
18948   echo "$as_me: program exited with status $ac_status" >&5
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18951
18952 ( exit $ac_status )
18953 llvmac_cv_c_printf_a=no
18954 fi
18955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18956 fi
18957
18958
18959  ac_ext=c
18960 ac_cpp='$CPP $CPPFLAGS'
18961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18964
18965 fi
18966 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18967 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18968  if test "$llvm_cv_c_printf_a" = "yes"; then
18969
18970 cat >>confdefs.h <<\_ACEOF
18971 #define HAVE_PRINTF_A 1
18972 _ACEOF
18973
18974  fi
18975
18976
18977 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18978 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18979 if test "${ac_cv_func_rand48+set}" = set; then
18980   echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982   ac_ext=cpp
18983 ac_cpp='$CXXCPP $CPPFLAGS'
18984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18987
18988    cat >conftest.$ac_ext <<_ACEOF
18989 /* confdefs.h.  */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h.  */
18994 #include <stdlib.h>
18995 int
18996 main ()
18997 {
18998 srand48(0);lrand48();drand48();
18999   ;
19000   return 0;
19001 }
19002 _ACEOF
19003 rm -f conftest.$ac_objext
19004 if { (ac_try="$ac_compile"
19005 case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010   (eval "$ac_compile") 2>conftest.er1
19011   ac_status=$?
19012   grep -v '^ *+' conftest.er1 >conftest.err
19013   rm -f conftest.er1
19014   cat conftest.err >&5
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); } &&
19017          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19018   { (case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023   (eval "$ac_try") 2>&5
19024   ac_status=$?
19025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026   (exit $ac_status); }; } &&
19027          { ac_try='test -s conftest.$ac_objext'
19028   { (case "(($ac_try" in
19029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030   *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033   (eval "$ac_try") 2>&5
19034   ac_status=$?
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); }; }; then
19037   ac_cv_func_rand48=yes
19038 else
19039   echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19041
19042         ac_cv_func_rand48=no
19043 fi
19044
19045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19046   ac_ext=c
19047 ac_cpp='$CPP $CPPFLAGS'
19048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19051
19052 fi
19053 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19054 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19055
19056 if test "$ac_cv_func_rand48" = "yes" ; then
19057
19058 cat >>confdefs.h <<\_ACEOF
19059 #define HAVE_RAND48 1
19060 _ACEOF
19061
19062 fi
19063
19064
19065
19066 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19067 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19068 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19069   echo $ECHO_N "(cached) $ECHO_C" >&6
19070 else
19071   ac_ext=cpp
19072 ac_cpp='$CXXCPP $CPPFLAGS'
19073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19076
19077    cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h.  */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h.  */
19083 #include <math.h>
19084 int
19085 main ()
19086 {
19087 float f; isnan(f);
19088   ;
19089   return 0;
19090 }
19091 _ACEOF
19092 rm -f conftest.$ac_objext
19093 if { (ac_try="$ac_compile"
19094 case "(($ac_try" in
19095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096   *) ac_try_echo=$ac_try;;
19097 esac
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099   (eval "$ac_compile") 2>conftest.er1
19100   ac_status=$?
19101   grep -v '^ *+' conftest.er1 >conftest.err
19102   rm -f conftest.er1
19103   cat conftest.err >&5
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); } &&
19106          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19107   { (case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112   (eval "$ac_try") 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; } &&
19116          { ac_try='test -s conftest.$ac_objext'
19117   { (case "(($ac_try" in
19118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119   *) ac_try_echo=$ac_try;;
19120 esac
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122   (eval "$ac_try") 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); }; }; then
19126   ac_cv_func_isnan_in_math_h=yes
19127 else
19128   echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19130
19131         ac_cv_func_isnan_in_math_h=no
19132 fi
19133
19134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19135   ac_ext=c
19136 ac_cpp='$CPP $CPPFLAGS'
19137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19140
19141 fi
19142 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19143 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19144
19145
19146 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19147
19148 cat >>confdefs.h <<\_ACEOF
19149 #define HAVE_ISNAN_IN_MATH_H 1
19150 _ACEOF
19151
19152 fi
19153
19154 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19155 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19156 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   ac_ext=cpp
19160 ac_cpp='$CXXCPP $CPPFLAGS'
19161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19164
19165    cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h.  */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h.  */
19171 #include <cmath>
19172 int
19173 main ()
19174 {
19175 float f; isnan(f);
19176   ;
19177   return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184   *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187   (eval "$ac_compile") 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } &&
19194          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19195   { (case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_try") 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); }; } &&
19204          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19214   ac_cv_func_isnan_in_cmath=yes
19215 else
19216   echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219         ac_cv_func_isnan_in_cmath=no
19220 fi
19221
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223   ac_ext=c
19224 ac_cpp='$CPP $CPPFLAGS'
19225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19228
19229 fi
19230 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19231 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19232
19233 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19234
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_ISNAN_IN_CMATH 1
19237 _ACEOF
19238
19239 fi
19240
19241 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19242 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19243 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19244   echo $ECHO_N "(cached) $ECHO_C" >&6
19245 else
19246   ac_ext=cpp
19247 ac_cpp='$CXXCPP $CPPFLAGS'
19248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19251
19252    cat >conftest.$ac_ext <<_ACEOF
19253 /* confdefs.h.  */
19254 _ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h.  */
19258 #include <cmath>
19259 int
19260 main ()
19261 {
19262 float f; std::isnan(f);
19263   ;
19264   return 0;
19265 }
19266 _ACEOF
19267 rm -f conftest.$ac_objext
19268 if { (ac_try="$ac_compile"
19269 case "(($ac_try" in
19270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271   *) ac_try_echo=$ac_try;;
19272 esac
19273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274   (eval "$ac_compile") 2>conftest.er1
19275   ac_status=$?
19276   grep -v '^ *+' conftest.er1 >conftest.err
19277   rm -f conftest.er1
19278   cat conftest.err >&5
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); } &&
19281          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19282   { (case "(($ac_try" in
19283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284   *) ac_try_echo=$ac_try;;
19285 esac
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287   (eval "$ac_try") 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; } &&
19291          { ac_try='test -s conftest.$ac_objext'
19292   { (case "(($ac_try" in
19293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294   *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297   (eval "$ac_try") 2>&5
19298   ac_status=$?
19299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300   (exit $ac_status); }; }; then
19301   ac_cv_func_std_isnan_in_cmath=yes
19302 else
19303   echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19305
19306         ac_cv_func_std_isnan_in_cmath=no
19307 fi
19308
19309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19310   ac_ext=c
19311 ac_cpp='$CPP $CPPFLAGS'
19312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19315
19316 fi
19317 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19318 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19319
19320 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19321
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE_STD_ISNAN_IN_CMATH 1
19324 _ACEOF
19325
19326 fi
19327
19328
19329 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19330 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19331 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19332   echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334   ac_ext=cpp
19335 ac_cpp='$CXXCPP $CPPFLAGS'
19336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19339
19340    cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h.  */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h.  */
19346 #include <math.h>
19347 int
19348 main ()
19349 {
19350 float f; isinf(f);
19351   ;
19352   return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext
19356 if { (ac_try="$ac_compile"
19357 case "(($ac_try" in
19358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359   *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362   (eval "$ac_compile") 2>conftest.er1
19363   ac_status=$?
19364   grep -v '^ *+' conftest.er1 >conftest.err
19365   rm -f conftest.er1
19366   cat conftest.err >&5
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); } &&
19369          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19370   { (case "(($ac_try" in
19371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372   *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375   (eval "$ac_try") 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; } &&
19379          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19389   ac_cv_func_isinf_in_math_h=yes
19390 else
19391   echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19393
19394         ac_cv_func_isinf_in_math_h=no
19395 fi
19396
19397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19398   ac_ext=c
19399 ac_cpp='$CPP $CPPFLAGS'
19400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19403
19404 fi
19405 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19406 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19407
19408 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19409
19410 cat >>confdefs.h <<\_ACEOF
19411 #define HAVE_ISINF_IN_MATH_H 1
19412 _ACEOF
19413
19414 fi
19415
19416 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19417 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19418 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19419   echo $ECHO_N "(cached) $ECHO_C" >&6
19420 else
19421   ac_ext=cpp
19422 ac_cpp='$CXXCPP $CPPFLAGS'
19423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19426
19427    cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433 #include <cmath>
19434 int
19435 main ()
19436 {
19437 float f; isinf(f);
19438   ;
19439   return 0;
19440 }
19441 _ACEOF
19442 rm -f conftest.$ac_objext
19443 if { (ac_try="$ac_compile"
19444 case "(($ac_try" in
19445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446   *) ac_try_echo=$ac_try;;
19447 esac
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449   (eval "$ac_compile") 2>conftest.er1
19450   ac_status=$?
19451   grep -v '^ *+' conftest.er1 >conftest.err
19452   rm -f conftest.er1
19453   cat conftest.err >&5
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); } &&
19456          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19457   { (case "(($ac_try" in
19458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459   *) ac_try_echo=$ac_try;;
19460 esac
19461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19462   (eval "$ac_try") 2>&5
19463   ac_status=$?
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); }; } &&
19466          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19476   ac_cv_func_isinf_in_cmath=yes
19477 else
19478   echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19480
19481         ac_cv_func_isinf_in_cmath=no
19482 fi
19483
19484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19485   ac_ext=c
19486 ac_cpp='$CPP $CPPFLAGS'
19487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19490
19491 fi
19492 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19493 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19494
19495 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19496
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE_ISINF_IN_CMATH 1
19499 _ACEOF
19500
19501 fi
19502
19503 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19504 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19505 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19506   echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508   ac_ext=cpp
19509 ac_cpp='$CXXCPP $CPPFLAGS'
19510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19513
19514    cat >conftest.$ac_ext <<_ACEOF
19515 /* confdefs.h.  */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h.  */
19520 #include <cmath>
19521 int
19522 main ()
19523 {
19524 float f; std::isinf(f)}
19525   ;
19526   return 0;
19527 }
19528 _ACEOF
19529 rm -f conftest.$ac_objext
19530 if { (ac_try="$ac_compile"
19531 case "(($ac_try" in
19532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533   *) ac_try_echo=$ac_try;;
19534 esac
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536   (eval "$ac_compile") 2>conftest.er1
19537   ac_status=$?
19538   grep -v '^ *+' conftest.er1 >conftest.err
19539   rm -f conftest.er1
19540   cat conftest.err >&5
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); } &&
19543          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19544   { (case "(($ac_try" in
19545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546   *) ac_try_echo=$ac_try;;
19547 esac
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549   (eval "$ac_try") 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; } &&
19553          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19563   ac_cv_func_std_isinf_in_cmath=yes
19564 else
19565   echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19567
19568         ac_cv_func_std_isinf_in_cmath=no
19569 fi
19570
19571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572   ac_ext=c
19573 ac_cpp='$CPP $CPPFLAGS'
19574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19577
19578 fi
19579 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19580 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19581
19582 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19583
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE_STD_ISINF_IN_CMATH 1
19586 _ACEOF
19587
19588 fi
19589
19590 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19591 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19592 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19593   echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595   ac_ext=cpp
19596 ac_cpp='$CXXCPP $CPPFLAGS'
19597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600
19601    cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607 #include <ieeefp.h>
19608 int
19609 main ()
19610 {
19611 float f; finite(f);
19612   ;
19613   return 0;
19614 }
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620   *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623   (eval "$ac_compile") 2>conftest.er1
19624   ac_status=$?
19625   grep -v '^ *+' conftest.er1 >conftest.err
19626   rm -f conftest.er1
19627   cat conftest.err >&5
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } &&
19630          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631   { (case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636   (eval "$ac_try") 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }; } &&
19640          { ac_try='test -s conftest.$ac_objext'
19641   { (case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_try") 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; }; then
19650   ac_cv_func_finite_in_ieeefp_h=yes
19651 else
19652   echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655         ac_cv_func_finite_in_ieeefp_h=no
19656 fi
19657
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19659   ac_ext=c
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664
19665 fi
19666 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19667 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19668
19669 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19670
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_FINITE_IN_IEEEFP_H 1
19673 _ACEOF
19674
19675 fi
19676
19677
19678
19679 if test "$llvm_cv_platform_type" = "Unix" ; then
19680
19681
19682 for ac_header in stdlib.h unistd.h
19683 do
19684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19686   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19689   echo $ECHO_N "(cached) $ECHO_C" >&6
19690 fi
19691 ac_res=`eval echo '${'$as_ac_Header'}'`
19692                { echo "$as_me:$LINENO: result: $ac_res" >&5
19693 echo "${ECHO_T}$ac_res" >&6; }
19694 else
19695   # Is the header compilable?
19696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19698 cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704 $ac_includes_default
19705 #include <$ac_header>
19706 _ACEOF
19707 rm -f conftest.$ac_objext
19708 if { (ac_try="$ac_compile"
19709 case "(($ac_try" in
19710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711   *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714   (eval "$ac_compile") 2>conftest.er1
19715   ac_status=$?
19716   grep -v '^ *+' conftest.er1 >conftest.err
19717   rm -f conftest.er1
19718   cat conftest.err >&5
19719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720   (exit $ac_status); } &&
19721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19722   { (case "(($ac_try" in
19723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724   *) ac_try_echo=$ac_try;;
19725 esac
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727   (eval "$ac_try") 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); }; } &&
19731          { ac_try='test -s conftest.$ac_objext'
19732   { (case "(($ac_try" in
19733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734   *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737   (eval "$ac_try") 2>&5
19738   ac_status=$?
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); }; }; then
19741   ac_header_compiler=yes
19742 else
19743   echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19745
19746         ac_header_compiler=no
19747 fi
19748
19749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19751 echo "${ECHO_T}$ac_header_compiler" >&6; }
19752
19753 # Is the header present?
19754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19756 cat >conftest.$ac_ext <<_ACEOF
19757 /* confdefs.h.  */
19758 _ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h.  */
19762 #include <$ac_header>
19763 _ACEOF
19764 if { (ac_try="$ac_cpp conftest.$ac_ext"
19765 case "(($ac_try" in
19766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767   *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19771   ac_status=$?
19772   grep -v '^ *+' conftest.er1 >conftest.err
19773   rm -f conftest.er1
19774   cat conftest.err >&5
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); } >/dev/null; then
19777   if test -s conftest.err; then
19778     ac_cpp_err=$ac_c_preproc_warn_flag
19779     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19780   else
19781     ac_cpp_err=
19782   fi
19783 else
19784   ac_cpp_err=yes
19785 fi
19786 if test -z "$ac_cpp_err"; then
19787   ac_header_preproc=yes
19788 else
19789   echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792   ac_header_preproc=no
19793 fi
19794
19795 rm -f conftest.err conftest.$ac_ext
19796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19797 echo "${ECHO_T}$ac_header_preproc" >&6; }
19798
19799 # So?  What about this header?
19800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19801   yes:no: )
19802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19806     ac_header_preproc=yes
19807     ;;
19808   no:yes:* )
19809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19821     ( cat <<\_ASBOX
19822 ## ----------------------------------- ##
19823 ## Report this to llvmbugs@cs.uiuc.edu ##
19824 ## ----------------------------------- ##
19825 _ASBOX
19826      ) | sed "s/^/$as_me: WARNING:     /" >&2
19827     ;;
19828 esac
19829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19832   echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834   eval "$as_ac_Header=\$ac_header_preproc"
19835 fi
19836 ac_res=`eval echo '${'$as_ac_Header'}'`
19837                { echo "$as_me:$LINENO: result: $ac_res" >&5
19838 echo "${ECHO_T}$ac_res" >&6; }
19839
19840 fi
19841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19842   cat >>confdefs.h <<_ACEOF
19843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19844 _ACEOF
19845
19846 fi
19847
19848 done
19849
19850
19851 for ac_func in getpagesize
19852 do
19853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19857   echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859   cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h.  */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h.  */
19865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19867 #define $ac_func innocuous_$ac_func
19868
19869 /* System header to define __stub macros and hopefully few prototypes,
19870     which can conflict with char $ac_func (); below.
19871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19872     <limits.h> exists even on freestanding compilers.  */
19873
19874 #ifdef __STDC__
19875 # include <limits.h>
19876 #else
19877 # include <assert.h>
19878 #endif
19879
19880 #undef $ac_func
19881
19882 /* Override any GCC internal prototype to avoid an error.
19883    Use char because int might match the return type of a GCC
19884    builtin and then its argument prototype would still apply.  */
19885 #ifdef __cplusplus
19886 extern "C"
19887 #endif
19888 char $ac_func ();
19889 /* The GNU C library defines this for functions which it implements
19890     to always fail with ENOSYS.  Some functions are actually named
19891     something starting with __ and the normal name is an alias.  */
19892 #if defined __stub_$ac_func || defined __stub___$ac_func
19893 choke me
19894 #endif
19895
19896 int
19897 main ()
19898 {
19899 return $ac_func ();
19900   ;
19901   return 0;
19902 }
19903 _ACEOF
19904 rm -f conftest.$ac_objext conftest$ac_exeext
19905 if { (ac_try="$ac_link"
19906 case "(($ac_try" in
19907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908   *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911   (eval "$ac_link") 2>conftest.er1
19912   ac_status=$?
19913   grep -v '^ *+' conftest.er1 >conftest.err
19914   rm -f conftest.er1
19915   cat conftest.err >&5
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); } &&
19918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19919   { (case "(($ac_try" in
19920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921   *) ac_try_echo=$ac_try;;
19922 esac
19923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924   (eval "$ac_try") 2>&5
19925   ac_status=$?
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); }; } &&
19928          { ac_try='test -s conftest$ac_exeext'
19929   { (case "(($ac_try" in
19930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931   *) ac_try_echo=$ac_try;;
19932 esac
19933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934   (eval "$ac_try") 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); }; }; then
19938   eval "$as_ac_var=yes"
19939 else
19940   echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19942
19943         eval "$as_ac_var=no"
19944 fi
19945
19946 rm -f core conftest.err conftest.$ac_objext \
19947       conftest$ac_exeext conftest.$ac_ext
19948 fi
19949 ac_res=`eval echo '${'$as_ac_var'}'`
19950                { echo "$as_me:$LINENO: result: $ac_res" >&5
19951 echo "${ECHO_T}$ac_res" >&6; }
19952 if test `eval echo '${'$as_ac_var'}'` = yes; then
19953   cat >>confdefs.h <<_ACEOF
19954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19955 _ACEOF
19956
19957 fi
19958 done
19959
19960 { echo "$as_me:$LINENO: checking for working mmap" >&5
19961 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19962 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   if test "$cross_compiling" = yes; then
19966   ac_cv_func_mmap_fixed_mapped=no
19967 else
19968   cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h.  */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h.  */
19974 $ac_includes_default
19975 /* malloc might have been renamed as rpl_malloc. */
19976 #undef malloc
19977
19978 /* Thanks to Mike Haertel and Jim Avera for this test.
19979    Here is a matrix of mmap possibilities:
19980         mmap private not fixed
19981         mmap private fixed at somewhere currently unmapped
19982         mmap private fixed at somewhere already mapped
19983         mmap shared not fixed
19984         mmap shared fixed at somewhere currently unmapped
19985         mmap shared fixed at somewhere already mapped
19986    For private mappings, we should verify that changes cannot be read()
19987    back from the file, nor mmap's back from the file at a different
19988    address.  (There have been systems where private was not correctly
19989    implemented like the infamous i386 svr4.0, and systems where the
19990    VM page cache was not coherent with the file system buffer cache
19991    like early versions of FreeBSD and possibly contemporary NetBSD.)
19992    For shared mappings, we should conversely verify that changes get
19993    propagated back to all the places they're supposed to be.
19994
19995    Grep wants private fixed already mapped.
19996    The main things grep needs to know about mmap are:
19997    * does it exist and is it safe to write into the mmap'd area
19998    * how to use it (BSD variants)  */
19999
20000 #include <fcntl.h>
20001 #include <sys/mman.h>
20002
20003 #if !STDC_HEADERS && !HAVE_STDLIB_H
20004 char *malloc ();
20005 #endif
20006
20007 /* This mess was copied from the GNU getpagesize.h.  */
20008 #if !HAVE_GETPAGESIZE
20009 /* Assume that all systems that can run configure have sys/param.h.  */
20010 # if !HAVE_SYS_PARAM_H
20011 #  define HAVE_SYS_PARAM_H 1
20012 # endif
20013
20014 # ifdef _SC_PAGESIZE
20015 #  define getpagesize() sysconf(_SC_PAGESIZE)
20016 # else /* no _SC_PAGESIZE */
20017 #  if HAVE_SYS_PARAM_H
20018 #   include <sys/param.h>
20019 #   ifdef EXEC_PAGESIZE
20020 #    define getpagesize() EXEC_PAGESIZE
20021 #   else /* no EXEC_PAGESIZE */
20022 #    ifdef NBPG
20023 #     define getpagesize() NBPG * CLSIZE
20024 #     ifndef CLSIZE
20025 #      define CLSIZE 1
20026 #     endif /* no CLSIZE */
20027 #    else /* no NBPG */
20028 #     ifdef NBPC
20029 #      define getpagesize() NBPC
20030 #     else /* no NBPC */
20031 #      ifdef PAGESIZE
20032 #       define getpagesize() PAGESIZE
20033 #      endif /* PAGESIZE */
20034 #     endif /* no NBPC */
20035 #    endif /* no NBPG */
20036 #   endif /* no EXEC_PAGESIZE */
20037 #  else /* no HAVE_SYS_PARAM_H */
20038 #   define getpagesize() 8192   /* punt totally */
20039 #  endif /* no HAVE_SYS_PARAM_H */
20040 # endif /* no _SC_PAGESIZE */
20041
20042 #endif /* no HAVE_GETPAGESIZE */
20043
20044 int
20045 main ()
20046 {
20047   char *data, *data2, *data3;
20048   int i, pagesize;
20049   int fd;
20050
20051   pagesize = getpagesize ();
20052
20053   /* First, make a file with some known garbage in it. */
20054   data = (char *) malloc (pagesize);
20055   if (!data)
20056     return 1;
20057   for (i = 0; i < pagesize; ++i)
20058     *(data + i) = rand ();
20059   umask (0);
20060   fd = creat ("conftest.mmap", 0600);
20061   if (fd < 0)
20062     return 1;
20063   if (write (fd, data, pagesize) != pagesize)
20064     return 1;
20065   close (fd);
20066
20067   /* Next, try to mmap the file at a fixed address which already has
20068      something else allocated at it.  If we can, also make sure that
20069      we see the same garbage.  */
20070   fd = open ("conftest.mmap", O_RDWR);
20071   if (fd < 0)
20072     return 1;
20073   data2 = (char *) malloc (2 * pagesize);
20074   if (!data2)
20075     return 1;
20076   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20077   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20078                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20079     return 1;
20080   for (i = 0; i < pagesize; ++i)
20081     if (*(data + i) != *(data2 + i))
20082       return 1;
20083
20084   /* Finally, make sure that changes to the mapped area do not
20085      percolate back to the file as seen by read().  (This is a bug on
20086      some variants of i386 svr4.0.)  */
20087   for (i = 0; i < pagesize; ++i)
20088     *(data2 + i) = *(data2 + i) + 1;
20089   data3 = (char *) malloc (pagesize);
20090   if (!data3)
20091     return 1;
20092   if (read (fd, data3, pagesize) != pagesize)
20093     return 1;
20094   for (i = 0; i < pagesize; ++i)
20095     if (*(data + i) != *(data3 + i))
20096       return 1;
20097   close (fd);
20098   return 0;
20099 }
20100 _ACEOF
20101 rm -f conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105   *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108   (eval "$ac_link") 2>&5
20109   ac_status=$?
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20112   { (case "(($ac_try" in
20113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114   *) ac_try_echo=$ac_try;;
20115 esac
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117   (eval "$ac_try") 2>&5
20118   ac_status=$?
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); }; }; then
20121   ac_cv_func_mmap_fixed_mapped=yes
20122 else
20123   echo "$as_me: program exited with status $ac_status" >&5
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20126
20127 ( exit $ac_status )
20128 ac_cv_func_mmap_fixed_mapped=no
20129 fi
20130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20131 fi
20132
20133
20134 fi
20135 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20136 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20137 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20138
20139 cat >>confdefs.h <<\_ACEOF
20140 #define HAVE_MMAP 1
20141 _ACEOF
20142
20143 fi
20144 rm -f conftest.mmap
20145
20146   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20147 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20148 if test "${ac_cv_func_mmap_file+set}" = set; then
20149   echo $ECHO_N "(cached) $ECHO_C" >&6
20150 else
20151    ac_ext=c
20152 ac_cpp='$CPP $CPPFLAGS'
20153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20156
20157   if test "$cross_compiling" = yes; then
20158   ac_cv_func_mmap_file=no
20159 else
20160   cat >conftest.$ac_ext <<_ACEOF
20161
20162     /* confdefs.h.  */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h.  */
20167
20168 #include <sys/types.h>
20169 #include <sys/mman.h>
20170 #include <fcntl.h>
20171
20172 int
20173 main ()
20174 {
20175
20176   int fd;
20177   fd = creat ("foo",0777);
20178   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20179   unlink ("foo");
20180   return (fd != (int) MAP_FAILED);
20181   ;
20182   return 0;
20183 }
20184 _ACEOF
20185 rm -f conftest$ac_exeext
20186 if { (ac_try="$ac_link"
20187 case "(($ac_try" in
20188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189   *) ac_try_echo=$ac_try;;
20190 esac
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192   (eval "$ac_link") 2>&5
20193   ac_status=$?
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20196   { (case "(($ac_try" in
20197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198   *) ac_try_echo=$ac_try;;
20199 esac
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201   (eval "$ac_try") 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); }; }; then
20205   ac_cv_func_mmap_file=yes
20206 else
20207   echo "$as_me: program exited with status $ac_status" >&5
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20210
20211 ( exit $ac_status )
20212 ac_cv_func_mmap_file=no
20213 fi
20214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20215 fi
20216
20217
20218   ac_ext=c
20219 ac_cpp='$CPP $CPPFLAGS'
20220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20223
20224
20225 fi
20226 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20227 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20228 if test "$ac_cv_func_mmap_file" = yes; then
20229
20230 cat >>confdefs.h <<\_ACEOF
20231 #define HAVE_MMAP_FILE
20232 _ACEOF
20233
20234    MMAP_FILE=yes
20235
20236 fi
20237
20238   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20239 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20240 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20241   echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243   if test "$llvm_cv_os_type" = "Interix" ; then
20244    ac_cv_need_dev_zero_for_mmap=yes
20245  else
20246    ac_cv_need_dev_zero_for_mmap=no
20247  fi
20248
20249 fi
20250 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20251 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20252 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20253
20254 cat >>confdefs.h <<\_ACEOF
20255 #define NEED_DEV_ZERO_FOR_MMAP 1
20256 _ACEOF
20257
20258 fi
20259
20260   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20261   then
20262     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20263 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20264   fi
20265   if test "$ac_cv_func_mmap_file" = "no"
20266   then
20267     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20268 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20269   fi
20270 fi
20271
20272 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20273 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20274 ac_ext=cpp
20275 ac_cpp='$CXXCPP $CPPFLAGS'
20276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20279
20280 cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286 int main() {
20287         volatile unsigned long val = 1;
20288         __sync_synchronize();
20289         __sync_val_compare_and_swap(&val, 1, 0);
20290         __sync_add_and_fetch(&val, 1);
20291         __sync_sub_and_fetch(&val, 1);
20292         return 0;
20293       }
20294
20295 _ACEOF
20296 rm -f conftest.$ac_objext conftest$ac_exeext
20297 if { (ac_try="$ac_link"
20298 case "(($ac_try" in
20299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300   *) ac_try_echo=$ac_try;;
20301 esac
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303   (eval "$ac_link") 2>conftest.er1
20304   ac_status=$?
20305   grep -v '^ *+' conftest.er1 >conftest.err
20306   rm -f conftest.er1
20307   cat conftest.err >&5
20308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309   (exit $ac_status); } &&
20310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20311   { (case "(($ac_try" in
20312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313   *) ac_try_echo=$ac_try;;
20314 esac
20315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316   (eval "$ac_try") 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; } &&
20320          { ac_try='test -s conftest$ac_exeext'
20321   { (case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_try") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; }; then
20330   ac_ext=c
20331 ac_cpp='$CPP $CPPFLAGS'
20332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20335
20336   { echo "$as_me:$LINENO: result: yes" >&5
20337 echo "${ECHO_T}yes" >&6; }
20338
20339 cat >>confdefs.h <<\_ACEOF
20340 #define LLVM_MULTITHREADED 1
20341 _ACEOF
20342
20343 else
20344   echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346
20347         { echo "$as_me:$LINENO: result: no" >&5
20348 echo "${ECHO_T}no" >&6; }
20349
20350 cat >>confdefs.h <<\_ACEOF
20351 #define LLVM_MULTITHREADED 0
20352 _ACEOF
20353
20354   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20355 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20356 fi
20357
20358 rm -f core conftest.err conftest.$ac_objext \
20359       conftest$ac_exeext conftest.$ac_ext
20360
20361
20362 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20363   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20364 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20365 if test "${llvm_cv_linux_mixed+set}" = set; then
20366   echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368    ac_ext=c
20369 ac_cpp='$CPP $CPPFLAGS'
20370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20373
20374   cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380 #ifndef __x86_64__
20381        error: Not x86-64 even if uname says so!
20382       #endif
20383
20384 int
20385 main ()
20386 {
20387
20388   ;
20389   return 0;
20390 }
20391 _ACEOF
20392 rm -f conftest.$ac_objext
20393 if { (ac_try="$ac_compile"
20394 case "(($ac_try" in
20395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396   *) ac_try_echo=$ac_try;;
20397 esac
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399   (eval "$ac_compile") 2>conftest.er1
20400   ac_status=$?
20401   grep -v '^ *+' conftest.er1 >conftest.err
20402   rm -f conftest.er1
20403   cat conftest.err >&5
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); } &&
20406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20407   { (case "(($ac_try" in
20408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409   *) ac_try_echo=$ac_try;;
20410 esac
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412   (eval "$ac_try") 2>&5
20413   ac_status=$?
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); }; } &&
20416          { ac_try='test -s conftest.$ac_objext'
20417   { (case "(($ac_try" in
20418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419   *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422   (eval "$ac_try") 2>&5
20423   ac_status=$?
20424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425   (exit $ac_status); }; }; then
20426   llvm_cv_linux_mixed=no
20427 else
20428   echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20430
20431         llvm_cv_linux_mixed=yes
20432 fi
20433
20434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435   ac_ext=c
20436 ac_cpp='$CPP $CPPFLAGS'
20437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20440
20441
20442 fi
20443 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20444 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20445
20446   if test "$llvm_cv_linux_mixed" = "yes"; then
20447     llvm_cv_target_arch="x86"
20448     ARCH="x86"
20449   fi
20450 fi
20451
20452
20453 for ac_func in __dso_handle
20454 do
20455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20459   echo $ECHO_N "(cached) $ECHO_C" >&6
20460 else
20461   cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h.  */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h.  */
20467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20469 #define $ac_func innocuous_$ac_func
20470
20471 /* System header to define __stub macros and hopefully few prototypes,
20472     which can conflict with char $ac_func (); below.
20473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20474     <limits.h> exists even on freestanding compilers.  */
20475
20476 #ifdef __STDC__
20477 # include <limits.h>
20478 #else
20479 # include <assert.h>
20480 #endif
20481
20482 #undef $ac_func
20483
20484 /* Override any GCC internal prototype to avoid an error.
20485    Use char because int might match the return type of a GCC
20486    builtin and then its argument prototype would still apply.  */
20487 #ifdef __cplusplus
20488 extern "C"
20489 #endif
20490 char $ac_func ();
20491 /* The GNU C library defines this for functions which it implements
20492     to always fail with ENOSYS.  Some functions are actually named
20493     something starting with __ and the normal name is an alias.  */
20494 #if defined __stub_$ac_func || defined __stub___$ac_func
20495 choke me
20496 #endif
20497
20498 int
20499 main ()
20500 {
20501 return $ac_func ();
20502   ;
20503   return 0;
20504 }
20505 _ACEOF
20506 rm -f conftest.$ac_objext conftest$ac_exeext
20507 if { (ac_try="$ac_link"
20508 case "(($ac_try" in
20509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510   *) ac_try_echo=$ac_try;;
20511 esac
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513   (eval "$ac_link") 2>conftest.er1
20514   ac_status=$?
20515   grep -v '^ *+' conftest.er1 >conftest.err
20516   rm -f conftest.er1
20517   cat conftest.err >&5
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); } &&
20520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20521   { (case "(($ac_try" in
20522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523   *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526   (eval "$ac_try") 2>&5
20527   ac_status=$?
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); }; } &&
20530          { ac_try='test -s conftest$ac_exeext'
20531   { (case "(($ac_try" in
20532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533   *) ac_try_echo=$ac_try;;
20534 esac
20535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536   (eval "$ac_try") 2>&5
20537   ac_status=$?
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); }; }; then
20540   eval "$as_ac_var=yes"
20541 else
20542   echo "$as_me: failed program was:" >&5
20543 sed 's/^/| /' conftest.$ac_ext >&5
20544
20545         eval "$as_ac_var=no"
20546 fi
20547
20548 rm -f core conftest.err conftest.$ac_objext \
20549       conftest$ac_exeext conftest.$ac_ext
20550 fi
20551 ac_res=`eval echo '${'$as_ac_var'}'`
20552                { echo "$as_me:$LINENO: result: $ac_res" >&5
20553 echo "${ECHO_T}$ac_res" >&6; }
20554 if test `eval echo '${'$as_ac_var'}'` = yes; then
20555   cat >>confdefs.h <<_ACEOF
20556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20557 _ACEOF
20558
20559 fi
20560 done
20561
20562
20563 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20564 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20565 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20566   echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568   llvm_cv_llvmgcc_sanity="no"
20569 if test -x "$LLVMGCC" ; then
20570   cp /dev/null conftest.c
20571   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20572       grep 'target datalayout =' > /dev/null 2>&1
20573   if test $? -eq 0 ; then
20574     llvm_cv_llvmgcc_sanity="yes"
20575   fi
20576   rm conftest.c
20577 fi
20578 fi
20579 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20580 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20581
20582 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20583   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20584 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20585   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20586   LLVMCC1=$llvmcc1path
20587
20588   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20589   LLVMCC1PLUS=$llvmcc1pluspath
20590
20591   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20592   LLVMGCCDIR=$llvmgccdir
20593
20594   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20595   LLVMGCC_LANGS=$llvmgcclangs
20596
20597   { echo "$as_me:$LINENO: result: ok" >&5
20598 echo "${ECHO_T}ok" >&6; }
20599 fi
20600
20601 SHLIBEXT=$libltdl_cv_shlibext
20602
20603
20604 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20605
20606
20607 # Translate the various configuration directories and other basic
20608 # information into substitutions that will end up in Makefile.config.in
20609 # that these configured values can be used by the makefiles
20610 if test "${prefix}" = "NONE" ; then
20611   prefix="/usr/local"
20612 fi
20613 eval LLVM_PREFIX="${prefix}";
20614 eval LLVM_BINDIR="${prefix}/bin";
20615 eval LLVM_LIBDIR="${prefix}/lib";
20616 eval LLVM_DATADIR="${prefix}/share/llvm";
20617 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20618 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20619 eval LLVM_INCLUDEDIR="${prefix}/include";
20620 eval LLVM_INFODIR="${prefix}/info";
20621 eval LLVM_MANDIR="${prefix}/man";
20622 LLVM_CONFIGTIME=`date`
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634 # Place the various directores into the config.h file as #defines so that we
20635 # can know about the installation paths within LLVM.
20636
20637 cat >>confdefs.h <<_ACEOF
20638 #define LLVM_PREFIX "$LLVM_PREFIX"
20639 _ACEOF
20640
20641
20642 cat >>confdefs.h <<_ACEOF
20643 #define LLVM_BINDIR "$LLVM_BINDIR"
20644 _ACEOF
20645
20646
20647 cat >>confdefs.h <<_ACEOF
20648 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20649 _ACEOF
20650
20651
20652 cat >>confdefs.h <<_ACEOF
20653 #define LLVM_DATADIR "$LLVM_DATADIR"
20654 _ACEOF
20655
20656
20657 cat >>confdefs.h <<_ACEOF
20658 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20659 _ACEOF
20660
20661
20662 cat >>confdefs.h <<_ACEOF
20663 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20664 _ACEOF
20665
20666
20667 cat >>confdefs.h <<_ACEOF
20668 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20669 _ACEOF
20670
20671
20672 cat >>confdefs.h <<_ACEOF
20673 #define LLVM_INFODIR "$LLVM_INFODIR"
20674 _ACEOF
20675
20676
20677 cat >>confdefs.h <<_ACEOF
20678 #define LLVM_MANDIR "$LLVM_MANDIR"
20679 _ACEOF
20680
20681
20682 cat >>confdefs.h <<_ACEOF
20683 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20684 _ACEOF
20685
20686
20687 cat >>confdefs.h <<_ACEOF
20688 #define LLVM_HOSTTRIPLE "$host"
20689 _ACEOF
20690
20691
20692 # Determine which bindings to build.
20693 if test "$BINDINGS_TO_BUILD" = auto ; then
20694   BINDINGS_TO_BUILD=""
20695   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20696     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20697   fi
20698 fi
20699 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20700
20701
20702 # This isn't really configurey, but it avoids having to repeat the list in
20703 # other files.
20704 ALL_BINDINGS=ocaml
20705
20706
20707 # Do any work necessary to ensure that bindings have what they need.
20708 binding_prereqs_failed=0
20709 for a_binding in $BINDINGS_TO_BUILD ; do
20710   case "$a_binding" in
20711   ocaml)
20712     if test "x$OCAMLC" = x ; then
20713       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20714 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20715       binding_prereqs_failed=1
20716     fi
20717     if test "x$OCAMLDEP" = x ; then
20718       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20719 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20720       binding_prereqs_failed=1
20721     fi
20722     if test "x$OCAMLOPT" = x ; then
20723       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20724 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20725           fi
20726     if test "x$with_ocaml_libdir" != xauto ; then
20727       OCAML_LIBDIR=$with_ocaml_libdir
20728
20729     else
20730       ocaml_stdlib="`"$OCAMLC" -where`"
20731       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20732       then
20733         # ocaml stdlib is beneath our prefix; use stdlib
20734         OCAML_LIBDIR=$ocaml_stdlib
20735
20736       else
20737         # ocaml stdlib is outside our prefix; use libdir/ocaml
20738         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20739
20740       fi
20741     fi
20742     ;;
20743   esac
20744 done
20745 if test "$binding_prereqs_failed" = 1 ; then
20746   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20747 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20748    { (exit 1); exit 1; }; }
20749 fi
20750
20751 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20752 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20753 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20754   echo $ECHO_N "(cached) $ECHO_C" >&6
20755 else
20756    ac_ext=cpp
20757 ac_cpp='$CXXCPP $CPPFLAGS'
20758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20761
20762   oldcxxflags="$CXXFLAGS"
20763   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20764   cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h.  */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h.  */
20770
20771 int
20772 main ()
20773 {
20774
20775   ;
20776   return 0;
20777 }
20778 _ACEOF
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783   *) ac_try_echo=$ac_try;;
20784 esac
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786   (eval "$ac_compile") 2>conftest.er1
20787   ac_status=$?
20788   grep -v '^ *+' conftest.er1 >conftest.err
20789   rm -f conftest.er1
20790   cat conftest.err >&5
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); } &&
20793          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20794   { (case "(($ac_try" in
20795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796   *) ac_try_echo=$ac_try;;
20797 esac
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799   (eval "$ac_try") 2>&5
20800   ac_status=$?
20801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802   (exit $ac_status); }; } &&
20803          { ac_try='test -s conftest.$ac_objext'
20804   { (case "(($ac_try" in
20805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806   *) ac_try_echo=$ac_try;;
20807 esac
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809   (eval "$ac_try") 2>&5
20810   ac_status=$?
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); }; }; then
20813   llvm_cv_cxx_visibility_inlines_hidden=yes
20814 else
20815   echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20817
20818         llvm_cv_cxx_visibility_inlines_hidden=no
20819 fi
20820
20821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822   CXXFLAGS="$oldcxxflags"
20823   ac_ext=c
20824 ac_cpp='$CPP $CPPFLAGS'
20825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20828
20829
20830 fi
20831 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20832 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20833 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20834   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20835
20836 else
20837   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20838
20839 fi
20840
20841
20842 if test "$llvm_cv_link_use_r" = "yes" ; then
20843   RPATH="-Wl,-R"
20844 else
20845   RPATH="-Wl,-rpath"
20846 fi
20847
20848
20849 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20850   RDYNAMIC="-Wl,-export-dynamic"
20851 else
20852   RDYNAMIC=""
20853 fi
20854
20855
20856
20857 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20858
20859
20860
20861
20862
20863
20864 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20865
20866 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20867
20868 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20869
20870 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20871
20872 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20873
20874
20875 ac_config_files="$ac_config_files Makefile.config"
20876
20877
20878 ac_config_files="$ac_config_files llvm.spec"
20879
20880
20881 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20882
20883
20884 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20885
20886
20887 ac_config_commands="$ac_config_commands setup"
20888
20889 ac_config_commands="$ac_config_commands Makefile"
20890
20891
20892 ac_config_commands="$ac_config_commands Makefile.common"
20893
20894
20895 ac_config_commands="$ac_config_commands examples/Makefile"
20896
20897
20898 ac_config_commands="$ac_config_commands lib/Makefile"
20899
20900
20901 ac_config_commands="$ac_config_commands runtime/Makefile"
20902
20903
20904 ac_config_commands="$ac_config_commands test/Makefile"
20905
20906
20907 ac_config_commands="$ac_config_commands test/Makefile.tests"
20908
20909
20910 ac_config_commands="$ac_config_commands unittests/Makefile"
20911
20912
20913 ac_config_commands="$ac_config_commands tools/Makefile"
20914
20915
20916 ac_config_commands="$ac_config_commands utils/Makefile"
20917
20918
20919 ac_config_commands="$ac_config_commands projects/Makefile"
20920
20921
20922 ac_config_commands="$ac_config_commands bindings/Makefile"
20923
20924
20925 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20926
20927
20928
20929 cat >confcache <<\_ACEOF
20930 # This file is a shell script that caches the results of configure
20931 # tests run on this system so they can be shared between configure
20932 # scripts and configure runs, see configure's option --config-cache.
20933 # It is not useful on other systems.  If it contains results you don't
20934 # want to keep, you may remove or edit it.
20935 #
20936 # config.status only pays attention to the cache file if you give it
20937 # the --recheck option to rerun configure.
20938 #
20939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20941 # following values.
20942
20943 _ACEOF
20944
20945 # The following way of writing the cache mishandles newlines in values,
20946 # but we know of no workaround that is simple, portable, and efficient.
20947 # So, we kill variables containing newlines.
20948 # Ultrix sh set writes to stderr and can't be redirected directly,
20949 # and sets the high bit in the cache file unless we assign to the vars.
20950 (
20951   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20952     eval ac_val=\$$ac_var
20953     case $ac_val in #(
20954     *${as_nl}*)
20955       case $ac_var in #(
20956       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20957 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20958       esac
20959       case $ac_var in #(
20960       _ | IFS | as_nl) ;; #(
20961       *) $as_unset $ac_var ;;
20962       esac ;;
20963     esac
20964   done
20965
20966   (set) 2>&1 |
20967     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20968     *${as_nl}ac_space=\ *)
20969       # `set' does not quote correctly, so add quotes (double-quote
20970       # substitution turns \\\\ into \\, and sed turns \\ into \).
20971       sed -n \
20972         "s/'/'\\\\''/g;
20973           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20974       ;; #(
20975     *)
20976       # `set' quotes correctly as required by POSIX, so do not add quotes.
20977       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20978       ;;
20979     esac |
20980     sort
20981 ) |
20982   sed '
20983      /^ac_cv_env_/b end
20984      t clear
20985      :clear
20986      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20987      t end
20988      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20989      :end' >>confcache
20990 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20991   if test -w "$cache_file"; then
20992     test "x$cache_file" != "x/dev/null" &&
20993       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20994 echo "$as_me: updating cache $cache_file" >&6;}
20995     cat confcache >$cache_file
20996   else
20997     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20998 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20999   fi
21000 fi
21001 rm -f confcache
21002
21003 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21004 # Let make expand exec_prefix.
21005 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21006
21007 DEFS=-DHAVE_CONFIG_H
21008
21009 ac_libobjs=
21010 ac_ltlibobjs=
21011 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21012   # 1. Remove the extension, and $U if already installed.
21013   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21014   ac_i=`echo "$ac_i" | sed "$ac_script"`
21015   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21016   #    will be set to the directory where LIBOBJS objects are built.
21017   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21018   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21019 done
21020 LIBOBJS=$ac_libobjs
21021
21022 LTLIBOBJS=$ac_ltlibobjs
21023
21024
21025 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21026   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21027 Usually this means the macro was only invoked conditionally." >&5
21028 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21029 Usually this means the macro was only invoked conditionally." >&2;}
21030    { (exit 1); exit 1; }; }
21031 fi
21032 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21033   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21034 Usually this means the macro was only invoked conditionally." >&5
21035 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21036 Usually this means the macro was only invoked conditionally." >&2;}
21037    { (exit 1); exit 1; }; }
21038 fi
21039
21040 : ${CONFIG_STATUS=./config.status}
21041 ac_clean_files_save=$ac_clean_files
21042 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21043 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21044 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21045 cat >$CONFIG_STATUS <<_ACEOF
21046 #! $SHELL
21047 # Generated by $as_me.
21048 # Run this file to recreate the current configuration.
21049 # Compiler output produced by configure, useful for debugging
21050 # configure, is in config.log if it exists.
21051
21052 debug=false
21053 ac_cs_recheck=false
21054 ac_cs_silent=false
21055 SHELL=\${CONFIG_SHELL-$SHELL}
21056 _ACEOF
21057
21058 cat >>$CONFIG_STATUS <<\_ACEOF
21059 ## --------------------- ##
21060 ## M4sh Initialization.  ##
21061 ## --------------------- ##
21062
21063 # Be Bourne compatible
21064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21065   emulate sh
21066   NULLCMD=:
21067   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21068   # is contrary to our usage.  Disable this feature.
21069   alias -g '${1+"$@"}'='"$@"'
21070   setopt NO_GLOB_SUBST
21071 else
21072   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21073 fi
21074 BIN_SH=xpg4; export BIN_SH # for Tru64
21075 DUALCASE=1; export DUALCASE # for MKS sh
21076
21077
21078 # PATH needs CR
21079 # Avoid depending upon Character Ranges.
21080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21083 as_cr_digits='0123456789'
21084 as_cr_alnum=$as_cr_Letters$as_cr_digits
21085
21086 # The user is always right.
21087 if test "${PATH_SEPARATOR+set}" != set; then
21088   echo "#! /bin/sh" >conf$$.sh
21089   echo  "exit 0"   >>conf$$.sh
21090   chmod +x conf$$.sh
21091   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21092     PATH_SEPARATOR=';'
21093   else
21094     PATH_SEPARATOR=:
21095   fi
21096   rm -f conf$$.sh
21097 fi
21098
21099 # Support unset when possible.
21100 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21101   as_unset=unset
21102 else
21103   as_unset=false
21104 fi
21105
21106
21107 # IFS
21108 # We need space, tab and new line, in precisely that order.  Quoting is
21109 # there to prevent editors from complaining about space-tab.
21110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21111 # splitting by setting IFS to empty value.)
21112 as_nl='
21113 '
21114 IFS=" ""        $as_nl"
21115
21116 # Find who we are.  Look in the path if we contain no directory separator.
21117 case $0 in
21118   *[\\/]* ) as_myself=$0 ;;
21119   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21120 for as_dir in $PATH
21121 do
21122   IFS=$as_save_IFS
21123   test -z "$as_dir" && as_dir=.
21124   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21125 done
21126 IFS=$as_save_IFS
21127
21128      ;;
21129 esac
21130 # We did not find ourselves, most probably we were run as `sh COMMAND'
21131 # in which case we are not to be found in the path.
21132 if test "x$as_myself" = x; then
21133   as_myself=$0
21134 fi
21135 if test ! -f "$as_myself"; then
21136   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21137   { (exit 1); exit 1; }
21138 fi
21139
21140 # Work around bugs in pre-3.0 UWIN ksh.
21141 for as_var in ENV MAIL MAILPATH
21142 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21143 done
21144 PS1='$ '
21145 PS2='> '
21146 PS4='+ '
21147
21148 # NLS nuisances.
21149 for as_var in \
21150   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21151   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21152   LC_TELEPHONE LC_TIME
21153 do
21154   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21155     eval $as_var=C; export $as_var
21156   else
21157     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21158   fi
21159 done
21160
21161 # Required to use basename.
21162 if expr a : '\(a\)' >/dev/null 2>&1 &&
21163    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21164   as_expr=expr
21165 else
21166   as_expr=false
21167 fi
21168
21169 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21170   as_basename=basename
21171 else
21172   as_basename=false
21173 fi
21174
21175
21176 # Name of the executable.
21177 as_me=`$as_basename -- "$0" ||
21178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21179          X"$0" : 'X\(//\)$' \| \
21180          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21181 echo X/"$0" |
21182     sed '/^.*\/\([^/][^/]*\)\/*$/{
21183             s//\1/
21184             q
21185           }
21186           /^X\/\(\/\/\)$/{
21187             s//\1/
21188             q
21189           }
21190           /^X\/\(\/\).*/{
21191             s//\1/
21192             q
21193           }
21194           s/.*/./; q'`
21195
21196 # CDPATH.
21197 $as_unset CDPATH
21198
21199
21200
21201   as_lineno_1=$LINENO
21202   as_lineno_2=$LINENO
21203   test "x$as_lineno_1" != "x$as_lineno_2" &&
21204   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21205
21206   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21207   # uniformly replaced by the line number.  The first 'sed' inserts a
21208   # line-number line after each line using $LINENO; the second 'sed'
21209   # does the real work.  The second script uses 'N' to pair each
21210   # line-number line with the line containing $LINENO, and appends
21211   # trailing '-' during substitution so that $LINENO is not a special
21212   # case at line end.
21213   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21214   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21215   # E. McMahon (1931-1989) for sed's syntax.  :-)
21216   sed -n '
21217     p
21218     /[$]LINENO/=
21219   ' <$as_myself |
21220     sed '
21221       s/[$]LINENO.*/&-/
21222       t lineno
21223       b
21224       :lineno
21225       N
21226       :loop
21227       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21228       t loop
21229       s/-\n.*//
21230     ' >$as_me.lineno &&
21231   chmod +x "$as_me.lineno" ||
21232     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21233    { (exit 1); exit 1; }; }
21234
21235   # Don't try to exec as it changes $[0], causing all sort of problems
21236   # (the dirname of $[0] is not the place where we might find the
21237   # original and so on.  Autoconf is especially sensitive to this).
21238   . "./$as_me.lineno"
21239   # Exit status is that of the last command.
21240   exit
21241 }
21242
21243
21244 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21245   as_dirname=dirname
21246 else
21247   as_dirname=false
21248 fi
21249
21250 ECHO_C= ECHO_N= ECHO_T=
21251 case `echo -n x` in
21252 -n*)
21253   case `echo 'x\c'` in
21254   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21255   *)   ECHO_C='\c';;
21256   esac;;
21257 *)
21258   ECHO_N='-n';;
21259 esac
21260
21261 if expr a : '\(a\)' >/dev/null 2>&1 &&
21262    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21263   as_expr=expr
21264 else
21265   as_expr=false
21266 fi
21267
21268 rm -f conf$$ conf$$.exe conf$$.file
21269 if test -d conf$$.dir; then
21270   rm -f conf$$.dir/conf$$.file
21271 else
21272   rm -f conf$$.dir
21273   mkdir conf$$.dir
21274 fi
21275 echo >conf$$.file
21276 if ln -s conf$$.file conf$$ 2>/dev/null; then
21277   as_ln_s='ln -s'
21278   # ... but there are two gotchas:
21279   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21280   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21281   # In both cases, we have to default to `cp -p'.
21282   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21283     as_ln_s='cp -p'
21284 elif ln conf$$.file conf$$ 2>/dev/null; then
21285   as_ln_s=ln
21286 else
21287   as_ln_s='cp -p'
21288 fi
21289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21290 rmdir conf$$.dir 2>/dev/null
21291
21292 if mkdir -p . 2>/dev/null; then
21293   as_mkdir_p=:
21294 else
21295   test -d ./-p && rmdir ./-p
21296   as_mkdir_p=false
21297 fi
21298
21299 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21300 # systems may use methods other than mode bits to determine executability.
21301 cat >conf$$.file <<_ASEOF
21302 #! /bin/sh
21303 exit 0
21304 _ASEOF
21305 chmod +x conf$$.file
21306 if test -x conf$$.file >/dev/null 2>&1; then
21307   as_executable_p="test -x"
21308 else
21309   as_executable_p=:
21310 fi
21311 rm -f conf$$.file
21312
21313 # Sed expression to map a string onto a valid CPP name.
21314 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21315
21316 # Sed expression to map a string onto a valid variable name.
21317 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21318
21319
21320 exec 6>&1
21321
21322 # Save the log message, to keep $[0] and so on meaningful, and to
21323 # report actual input values of CONFIG_FILES etc. instead of their
21324 # values after options handling.
21325 ac_log="
21326 This file was extended by llvm $as_me 2.9svn, which was
21327 generated by GNU Autoconf 2.60.  Invocation command line was
21328
21329   CONFIG_FILES    = $CONFIG_FILES
21330   CONFIG_HEADERS  = $CONFIG_HEADERS
21331   CONFIG_LINKS    = $CONFIG_LINKS
21332   CONFIG_COMMANDS = $CONFIG_COMMANDS
21333   $ $0 $@
21334
21335 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21336 "
21337
21338 _ACEOF
21339
21340 cat >>$CONFIG_STATUS <<_ACEOF
21341 # Files that config.status was made for.
21342 config_files="$ac_config_files"
21343 config_headers="$ac_config_headers"
21344 config_commands="$ac_config_commands"
21345
21346 _ACEOF
21347
21348 cat >>$CONFIG_STATUS <<\_ACEOF
21349 ac_cs_usage="\
21350 \`$as_me' instantiates files from templates according to the
21351 current configuration.
21352
21353 Usage: $0 [OPTIONS] [FILE]...
21354
21355   -h, --help       print this help, then exit
21356   -V, --version    print version number, then exit
21357   -q, --quiet      do not print progress messages
21358   -d, --debug      don't remove temporary files
21359       --recheck    update $as_me by reconfiguring in the same conditions
21360   --file=FILE[:TEMPLATE]
21361                    instantiate the configuration file FILE
21362   --header=FILE[:TEMPLATE]
21363                    instantiate the configuration header FILE
21364
21365 Configuration files:
21366 $config_files
21367
21368 Configuration headers:
21369 $config_headers
21370
21371 Configuration commands:
21372 $config_commands
21373
21374 Report bugs to <bug-autoconf@gnu.org>."
21375
21376 _ACEOF
21377 cat >>$CONFIG_STATUS <<_ACEOF
21378 ac_cs_version="\\
21379 llvm config.status 2.9svn
21380 configured by $0, generated by GNU Autoconf 2.60,
21381   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21382
21383 Copyright (C) 2006 Free Software Foundation, Inc.
21384 This config.status script is free software; the Free Software Foundation
21385 gives unlimited permission to copy, distribute and modify it."
21386
21387 ac_pwd='$ac_pwd'
21388 srcdir='$srcdir'
21389 INSTALL='$INSTALL'
21390 _ACEOF
21391
21392 cat >>$CONFIG_STATUS <<\_ACEOF
21393 # If no file are specified by the user, then we need to provide default
21394 # value.  By we need to know if files were specified by the user.
21395 ac_need_defaults=:
21396 while test $# != 0
21397 do
21398   case $1 in
21399   --*=*)
21400     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21401     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21402     ac_shift=:
21403     ;;
21404   *)
21405     ac_option=$1
21406     ac_optarg=$2
21407     ac_shift=shift
21408     ;;
21409   esac
21410
21411   case $ac_option in
21412   # Handling of the options.
21413   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21414     ac_cs_recheck=: ;;
21415   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21416     echo "$ac_cs_version"; exit ;;
21417   --debug | --debu | --deb | --de | --d | -d )
21418     debug=: ;;
21419   --file | --fil | --fi | --f )
21420     $ac_shift
21421     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21422     ac_need_defaults=false;;
21423   --header | --heade | --head | --hea )
21424     $ac_shift
21425     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21426     ac_need_defaults=false;;
21427   --he | --h)
21428     # Conflict between --help and --header
21429     { echo "$as_me: error: ambiguous option: $1
21430 Try \`$0 --help' for more information." >&2
21431    { (exit 1); exit 1; }; };;
21432   --help | --hel | -h )
21433     echo "$ac_cs_usage"; exit ;;
21434   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21435   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21436     ac_cs_silent=: ;;
21437
21438   # This is an error.
21439   -*) { echo "$as_me: error: unrecognized option: $1
21440 Try \`$0 --help' for more information." >&2
21441    { (exit 1); exit 1; }; } ;;
21442
21443   *) ac_config_targets="$ac_config_targets $1"
21444      ac_need_defaults=false ;;
21445
21446   esac
21447   shift
21448 done
21449
21450 ac_configure_extra_args=
21451
21452 if $ac_cs_silent; then
21453   exec 6>/dev/null
21454   ac_configure_extra_args="$ac_configure_extra_args --silent"
21455 fi
21456
21457 _ACEOF
21458 cat >>$CONFIG_STATUS <<_ACEOF
21459 if \$ac_cs_recheck; then
21460   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21461   CONFIG_SHELL=$SHELL
21462   export CONFIG_SHELL
21463   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21464 fi
21465
21466 _ACEOF
21467 cat >>$CONFIG_STATUS <<\_ACEOF
21468 exec 5>>config.log
21469 {
21470   echo
21471   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21472 ## Running $as_me. ##
21473 _ASBOX
21474   echo "$ac_log"
21475 } >&5
21476
21477 _ACEOF
21478 cat >>$CONFIG_STATUS <<_ACEOF
21479 #
21480 # INIT-COMMANDS
21481 #
21482 llvm_src="${srcdir}"
21483
21484 _ACEOF
21485
21486 cat >>$CONFIG_STATUS <<\_ACEOF
21487
21488 # Handling of arguments.
21489 for ac_config_target in $ac_config_targets
21490 do
21491   case $ac_config_target in
21492     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21493     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21494     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21495     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21496     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21497     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21498     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21499     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21500     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21501     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21502     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21503     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21504     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21505     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21506     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21507     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21508     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21509     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21510     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21511     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21512     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21513     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21514     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21515     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21516     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21517
21518   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21519 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21520    { (exit 1); exit 1; }; };;
21521   esac
21522 done
21523
21524
21525 # If the user did not use the arguments to specify the items to instantiate,
21526 # then the envvar interface is used.  Set only those that are not.
21527 # We use the long form for the default assignment because of an extremely
21528 # bizarre bug on SunOS 4.1.3.
21529 if $ac_need_defaults; then
21530   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21531   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21532   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21533 fi
21534
21535 # Have a temporary directory for convenience.  Make it in the build tree
21536 # simply because there is no reason against having it here, and in addition,
21537 # creating and moving files from /tmp can sometimes cause problems.
21538 # Hook for its removal unless debugging.
21539 # Note that there is a small window in which the directory will not be cleaned:
21540 # after its creation but before its name has been assigned to `$tmp'.
21541 $debug ||
21542 {
21543   tmp=
21544   trap 'exit_status=$?
21545   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21546 ' 0
21547   trap '{ (exit 1); exit 1; }' 1 2 13 15
21548 }
21549 # Create a (secure) tmp directory for tmp files.
21550
21551 {
21552   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21553   test -n "$tmp" && test -d "$tmp"
21554 }  ||
21555 {
21556   tmp=./conf$$-$RANDOM
21557   (umask 077 && mkdir "$tmp")
21558 } ||
21559 {
21560    echo "$me: cannot create a temporary directory in ." >&2
21561    { (exit 1); exit 1; }
21562 }
21563
21564 #
21565 # Set up the sed scripts for CONFIG_FILES section.
21566 #
21567
21568 # No need to generate the scripts if there are no CONFIG_FILES.
21569 # This happens for instance when ./config.status config.h
21570 if test -n "$CONFIG_FILES"; then
21571
21572 _ACEOF
21573
21574
21575
21576 ac_delim='%!_!# '
21577 for ac_last_try in false false false false false :; do
21578   cat >conf$$subs.sed <<_ACEOF
21579 SHELL!$SHELL$ac_delim
21580 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21581 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21582 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21583 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21584 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21585 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21586 exec_prefix!$exec_prefix$ac_delim
21587 prefix!$prefix$ac_delim
21588 program_transform_name!$program_transform_name$ac_delim
21589 bindir!$bindir$ac_delim
21590 sbindir!$sbindir$ac_delim
21591 libexecdir!$libexecdir$ac_delim
21592 datarootdir!$datarootdir$ac_delim
21593 datadir!$datadir$ac_delim
21594 sysconfdir!$sysconfdir$ac_delim
21595 sharedstatedir!$sharedstatedir$ac_delim
21596 localstatedir!$localstatedir$ac_delim
21597 includedir!$includedir$ac_delim
21598 oldincludedir!$oldincludedir$ac_delim
21599 docdir!$docdir$ac_delim
21600 infodir!$infodir$ac_delim
21601 htmldir!$htmldir$ac_delim
21602 dvidir!$dvidir$ac_delim
21603 pdfdir!$pdfdir$ac_delim
21604 psdir!$psdir$ac_delim
21605 libdir!$libdir$ac_delim
21606 localedir!$localedir$ac_delim
21607 mandir!$mandir$ac_delim
21608 DEFS!$DEFS$ac_delim
21609 ECHO_C!$ECHO_C$ac_delim
21610 ECHO_N!$ECHO_N$ac_delim
21611 ECHO_T!$ECHO_T$ac_delim
21612 LIBS!$LIBS$ac_delim
21613 build_alias!$build_alias$ac_delim
21614 host_alias!$host_alias$ac_delim
21615 target_alias!$target_alias$ac_delim
21616 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21617 subdirs!$subdirs$ac_delim
21618 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21619 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21620 build!$build$ac_delim
21621 build_cpu!$build_cpu$ac_delim
21622 build_vendor!$build_vendor$ac_delim
21623 build_os!$build_os$ac_delim
21624 host!$host$ac_delim
21625 host_cpu!$host_cpu$ac_delim
21626 host_vendor!$host_vendor$ac_delim
21627 host_os!$host_os$ac_delim
21628 target!$target$ac_delim
21629 target_cpu!$target_cpu$ac_delim
21630 target_vendor!$target_vendor$ac_delim
21631 target_os!$target_os$ac_delim
21632 OS!$OS$ac_delim
21633 HOST_OS!$HOST_OS$ac_delim
21634 TARGET_OS!$TARGET_OS$ac_delim
21635 LINKALL!$LINKALL$ac_delim
21636 NOLINKALL!$NOLINKALL$ac_delim
21637 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21638 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21639 ARCH!$ARCH$ac_delim
21640 ENDIAN!$ENDIAN$ac_delim
21641 CC!$CC$ac_delim
21642 CFLAGS!$CFLAGS$ac_delim
21643 LDFLAGS!$LDFLAGS$ac_delim
21644 CPPFLAGS!$CPPFLAGS$ac_delim
21645 ac_ct_CC!$ac_ct_CC$ac_delim
21646 EXEEXT!$EXEEXT$ac_delim
21647 OBJEXT!$OBJEXT$ac_delim
21648 CPP!$CPP$ac_delim
21649 GREP!$GREP$ac_delim
21650 EGREP!$EGREP$ac_delim
21651 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21652 BUILD_CC!$BUILD_CC$ac_delim
21653 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21654 BUILD_CXX!$BUILD_CXX$ac_delim
21655 CVSBUILD!$CVSBUILD$ac_delim
21656 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21657 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21658 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21659 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21660 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21661 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21662 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21663 JIT!$JIT$ac_delim
21664 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21665 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21666 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21667 ENABLE_PIC!$ENABLE_PIC$ac_delim
21668 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21669 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21670 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21671 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21672 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21673 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21674 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21675 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21676 _ACEOF
21677
21678   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21679     break
21680   elif $ac_last_try; then
21681     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21682 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21683    { (exit 1); exit 1; }; }
21684   else
21685     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21686   fi
21687 done
21688
21689 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21690 if test -n "$ac_eof"; then
21691   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21692   ac_eof=`expr $ac_eof + 1`
21693 fi
21694
21695 cat >>$CONFIG_STATUS <<_ACEOF
21696 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21698 _ACEOF
21699 sed '
21700 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21701 s/^/s,@/; s/!/@,|#_!!_#|/
21702 :n
21703 t n
21704 s/'"$ac_delim"'$/,g/; t
21705 s/$/\\/; p
21706 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21707 ' >>$CONFIG_STATUS <conf$$subs.sed
21708 rm -f conf$$subs.sed
21709 cat >>$CONFIG_STATUS <<_ACEOF
21710 CEOF$ac_eof
21711 _ACEOF
21712
21713
21714 ac_delim='%!_!# '
21715 for ac_last_try in false false false false false :; do
21716   cat >conf$$subs.sed <<_ACEOF
21717 CLANGPATH!$CLANGPATH$ac_delim
21718 CLANGXXPATH!$CLANGXXPATH$ac_delim
21719 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21720 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21721 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21722 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21723 CXX!$CXX$ac_delim
21724 CXXFLAGS!$CXXFLAGS$ac_delim
21725 ac_ct_CXX!$ac_ct_CXX$ac_delim
21726 NM!$NM$ac_delim
21727 ifGNUmake!$ifGNUmake$ac_delim
21728 LN_S!$LN_S$ac_delim
21729 CMP!$CMP$ac_delim
21730 CP!$CP$ac_delim
21731 DATE!$DATE$ac_delim
21732 FIND!$FIND$ac_delim
21733 MKDIR!$MKDIR$ac_delim
21734 MV!$MV$ac_delim
21735 RANLIB!$RANLIB$ac_delim
21736 AR!$AR$ac_delim
21737 RM!$RM$ac_delim
21738 SED!$SED$ac_delim
21739 TAR!$TAR$ac_delim
21740 BINPWD!$BINPWD$ac_delim
21741 GRAPHVIZ!$GRAPHVIZ$ac_delim
21742 DOT!$DOT$ac_delim
21743 FDP!$FDP$ac_delim
21744 NEATO!$NEATO$ac_delim
21745 TWOPI!$TWOPI$ac_delim
21746 CIRCO!$CIRCO$ac_delim
21747 GV!$GV$ac_delim
21748 DOTTY!$DOTTY$ac_delim
21749 XDOT_PY!$XDOT_PY$ac_delim
21750 PERL!$PERL$ac_delim
21751 HAVE_PERL!$HAVE_PERL$ac_delim
21752 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21753 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21754 INSTALL_DATA!$INSTALL_DATA$ac_delim
21755 BZIP2!$BZIP2$ac_delim
21756 CAT!$CAT$ac_delim
21757 DOXYGEN!$DOXYGEN$ac_delim
21758 GROFF!$GROFF$ac_delim
21759 GZIP!$GZIP$ac_delim
21760 POD2HTML!$POD2HTML$ac_delim
21761 POD2MAN!$POD2MAN$ac_delim
21762 PDFROFF!$PDFROFF$ac_delim
21763 RUNTEST!$RUNTEST$ac_delim
21764 TCLSH!$TCLSH$ac_delim
21765 ZIP!$ZIP$ac_delim
21766 OCAMLC!$OCAMLC$ac_delim
21767 OCAMLOPT!$OCAMLOPT$ac_delim
21768 OCAMLDEP!$OCAMLDEP$ac_delim
21769 OCAMLDOC!$OCAMLDOC$ac_delim
21770 GAS!$GAS$ac_delim
21771 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21772 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21773 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21774 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21775 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21776 LIBADD_DL!$LIBADD_DL$ac_delim
21777 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21778 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21779 LLVMGCC!$LLVMGCC$ac_delim
21780 LLVMGXX!$LLVMGXX$ac_delim
21781 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21782 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21783 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21784 USE_UDIS86!$USE_UDIS86$ac_delim
21785 USE_OPROFILE!$USE_OPROFILE$ac_delim
21786 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21787 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21788 MMAP_FILE!$MMAP_FILE$ac_delim
21789 LLVMCC1!$LLVMCC1$ac_delim
21790 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21791 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21792 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21793 SHLIBEXT!$SHLIBEXT$ac_delim
21794 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21795 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21796 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21797 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21798 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21799 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21800 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21801 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21802 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21803 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21804 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21805 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21806 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21807 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21808 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21809 RPATH!$RPATH$ac_delim
21810 RDYNAMIC!$RDYNAMIC$ac_delim
21811 LIBOBJS!$LIBOBJS$ac_delim
21812 LTLIBOBJS!$LTLIBOBJS$ac_delim
21813 _ACEOF
21814
21815   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
21816     break
21817   elif $ac_last_try; then
21818     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21819 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21820    { (exit 1); exit 1; }; }
21821   else
21822     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21823   fi
21824 done
21825
21826 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21827 if test -n "$ac_eof"; then
21828   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21829   ac_eof=`expr $ac_eof + 1`
21830 fi
21831
21832 cat >>$CONFIG_STATUS <<_ACEOF
21833 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21835 _ACEOF
21836 sed '
21837 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21838 s/^/s,@/; s/!/@,|#_!!_#|/
21839 :n
21840 t n
21841 s/'"$ac_delim"'$/,g/; t
21842 s/$/\\/; p
21843 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21844 ' >>$CONFIG_STATUS <conf$$subs.sed
21845 rm -f conf$$subs.sed
21846 cat >>$CONFIG_STATUS <<_ACEOF
21847 CEOF$ac_eof
21848 _ACEOF
21849
21850
21851 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21852 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21853 # trailing colons and then remove the whole line if VPATH becomes empty
21854 # (actually we leave an empty line to preserve line numbers).
21855 if test "x$srcdir" = x.; then
21856   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21857 s/:*\$(srcdir):*/:/
21858 s/:*\${srcdir}:*/:/
21859 s/:*@srcdir@:*/:/
21860 s/^\([^=]*=[     ]*\):*/\1/
21861 s/:*$//
21862 s/^[^=]*=[       ]*$//
21863 }'
21864 fi
21865
21866 cat >>$CONFIG_STATUS <<\_ACEOF
21867 fi # test -n "$CONFIG_FILES"
21868
21869
21870 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21871 do
21872   case $ac_tag in
21873   :[FHLC]) ac_mode=$ac_tag; continue;;
21874   esac
21875   case $ac_mode$ac_tag in
21876   :[FHL]*:*);;
21877   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21878 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21879    { (exit 1); exit 1; }; };;
21880   :[FH]-) ac_tag=-:-;;
21881   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21882   esac
21883   ac_save_IFS=$IFS
21884   IFS=:
21885   set x $ac_tag
21886   IFS=$ac_save_IFS
21887   shift
21888   ac_file=$1
21889   shift
21890
21891   case $ac_mode in
21892   :L) ac_source=$1;;
21893   :[FH])
21894     ac_file_inputs=
21895     for ac_f
21896     do
21897       case $ac_f in
21898       -) ac_f="$tmp/stdin";;
21899       *) # Look for the file first in the build tree, then in the source tree
21900          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21901          # because $ac_f cannot contain `:'.
21902          test -f "$ac_f" ||
21903            case $ac_f in
21904            [\\/$]*) false;;
21905            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21906            esac ||
21907            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21908 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21909    { (exit 1); exit 1; }; };;
21910       esac
21911       ac_file_inputs="$ac_file_inputs $ac_f"
21912     done
21913
21914     # Let's still pretend it is `configure' which instantiates (i.e., don't
21915     # use $as_me), people would be surprised to read:
21916     #    /* config.h.  Generated by config.status.  */
21917     configure_input="Generated from "`IFS=:
21918           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21919     if test x"$ac_file" != x-; then
21920       configure_input="$ac_file.  $configure_input"
21921       { echo "$as_me:$LINENO: creating $ac_file" >&5
21922 echo "$as_me: creating $ac_file" >&6;}
21923     fi
21924
21925     case $ac_tag in
21926     *:-:* | *:-) cat >"$tmp/stdin";;
21927     esac
21928     ;;
21929   esac
21930
21931   ac_dir=`$as_dirname -- "$ac_file" ||
21932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21933          X"$ac_file" : 'X\(//\)[^/]' \| \
21934          X"$ac_file" : 'X\(//\)$' \| \
21935          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21936 echo X"$ac_file" |
21937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21938             s//\1/
21939             q
21940           }
21941           /^X\(\/\/\)[^/].*/{
21942             s//\1/
21943             q
21944           }
21945           /^X\(\/\/\)$/{
21946             s//\1/
21947             q
21948           }
21949           /^X\(\/\).*/{
21950             s//\1/
21951             q
21952           }
21953           s/.*/./; q'`
21954   { as_dir="$ac_dir"
21955   case $as_dir in #(
21956   -*) as_dir=./$as_dir;;
21957   esac
21958   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21959     as_dirs=
21960     while :; do
21961       case $as_dir in #(
21962       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21963       *) as_qdir=$as_dir;;
21964       esac
21965       as_dirs="'$as_qdir' $as_dirs"
21966       as_dir=`$as_dirname -- "$as_dir" ||
21967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21968          X"$as_dir" : 'X\(//\)[^/]' \| \
21969          X"$as_dir" : 'X\(//\)$' \| \
21970          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21971 echo X"$as_dir" |
21972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21973             s//\1/
21974             q
21975           }
21976           /^X\(\/\/\)[^/].*/{
21977             s//\1/
21978             q
21979           }
21980           /^X\(\/\/\)$/{
21981             s//\1/
21982             q
21983           }
21984           /^X\(\/\).*/{
21985             s//\1/
21986             q
21987           }
21988           s/.*/./; q'`
21989       test -d "$as_dir" && break
21990     done
21991     test -z "$as_dirs" || eval "mkdir $as_dirs"
21992   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21993 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21994    { (exit 1); exit 1; }; }; }
21995   ac_builddir=.
21996
21997 case "$ac_dir" in
21998 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21999 *)
22000   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22001   # A ".." for each directory in $ac_dir_suffix.
22002   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22003   case $ac_top_builddir_sub in
22004   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22005   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22006   esac ;;
22007 esac
22008 ac_abs_top_builddir=$ac_pwd
22009 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22010 # for backward compatibility:
22011 ac_top_builddir=$ac_top_build_prefix
22012
22013 case $srcdir in
22014   .)  # We are building in place.
22015     ac_srcdir=.
22016     ac_top_srcdir=$ac_top_builddir_sub
22017     ac_abs_top_srcdir=$ac_pwd ;;
22018   [\\/]* | ?:[\\/]* )  # Absolute name.
22019     ac_srcdir=$srcdir$ac_dir_suffix;
22020     ac_top_srcdir=$srcdir
22021     ac_abs_top_srcdir=$srcdir ;;
22022   *) # Relative name.
22023     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22024     ac_top_srcdir=$ac_top_build_prefix$srcdir
22025     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22026 esac
22027 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22028
22029
22030   case $ac_mode in
22031   :F)
22032   #
22033   # CONFIG_FILE
22034   #
22035
22036   case $INSTALL in
22037   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22038   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22039   esac
22040 _ACEOF
22041
22042 cat >>$CONFIG_STATUS <<\_ACEOF
22043 # If the template does not know about datarootdir, expand it.
22044 # FIXME: This hack should be removed a few years after 2.60.
22045 ac_datarootdir_hack=; ac_datarootdir_seen=
22046
22047 case `sed -n '/datarootdir/ {
22048   p
22049   q
22050 }
22051 /@datadir@/p
22052 /@docdir@/p
22053 /@infodir@/p
22054 /@localedir@/p
22055 /@mandir@/p
22056 ' $ac_file_inputs` in
22057 *datarootdir*) ac_datarootdir_seen=yes;;
22058 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22059   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22060 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22061 _ACEOF
22062 cat >>$CONFIG_STATUS <<_ACEOF
22063   ac_datarootdir_hack='
22064   s&@datadir@&$datadir&g
22065   s&@docdir@&$docdir&g
22066   s&@infodir@&$infodir&g
22067   s&@localedir@&$localedir&g
22068   s&@mandir@&$mandir&g
22069     s&\\\${datarootdir}&$datarootdir&g' ;;
22070 esac
22071 _ACEOF
22072
22073 # Neutralize VPATH when `$srcdir' = `.'.
22074 # Shell code in configure.ac might set extrasub.
22075 # FIXME: do we really want to maintain this feature?
22076 cat >>$CONFIG_STATUS <<_ACEOF
22077   sed "$ac_vpsub
22078 $extrasub
22079 _ACEOF
22080 cat >>$CONFIG_STATUS <<\_ACEOF
22081 :t
22082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22083 s&@configure_input@&$configure_input&;t t
22084 s&@top_builddir@&$ac_top_builddir_sub&;t t
22085 s&@srcdir@&$ac_srcdir&;t t
22086 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22087 s&@top_srcdir@&$ac_top_srcdir&;t t
22088 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22089 s&@builddir@&$ac_builddir&;t t
22090 s&@abs_builddir@&$ac_abs_builddir&;t t
22091 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22092 s&@INSTALL@&$ac_INSTALL&;t t
22093 $ac_datarootdir_hack
22094 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
22095
22096 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22097   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22098   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22099   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22100 which seems to be undefined.  Please make sure it is defined." >&5
22101 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22102 which seems to be undefined.  Please make sure it is defined." >&2;}
22103
22104   rm -f "$tmp/stdin"
22105   case $ac_file in
22106   -) cat "$tmp/out"; rm -f "$tmp/out";;
22107   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22108   esac
22109  ;;
22110   :H)
22111   #
22112   # CONFIG_HEADER
22113   #
22114 _ACEOF
22115
22116 # Transform confdefs.h into a sed script `conftest.defines', that
22117 # substitutes the proper values into config.h.in to produce config.h.
22118 rm -f conftest.defines conftest.tail
22119 # First, append a space to every undef/define line, to ease matching.
22120 echo 's/$/ /' >conftest.defines
22121 # Then, protect against being on the right side of a sed subst, or in
22122 # an unquoted here document, in config.status.  If some macros were
22123 # called several times there might be several #defines for the same
22124 # symbol, which is useless.  But do not sort them, since the last
22125 # AC_DEFINE must be honored.
22126 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22127 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22128 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22129 # PARAMS is the parameter list in the macro definition--in most cases, it's
22130 # just an empty string.
22131 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22132 ac_dB='\\)[      (].*,\\1define\\2'
22133 ac_dC=' '
22134 ac_dD=' ,'
22135
22136 uniq confdefs.h |
22137   sed -n '
22138         t rset
22139         :rset
22140         s/^[     ]*#[    ]*define[       ][      ]*//
22141         t ok
22142         d
22143         :ok
22144         s/[\\&,]/\\&/g
22145         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22146         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22147   ' >>conftest.defines
22148
22149 # Remove the space that was appended to ease matching.
22150 # Then replace #undef with comments.  This is necessary, for
22151 # example, in the case of _POSIX_SOURCE, which is predefined and required
22152 # on some systems where configure will not decide to define it.
22153 # (The regexp can be short, since the line contains either #define or #undef.)
22154 echo 's/ $//
22155 s,^[     #]*u.*,/* & */,' >>conftest.defines
22156
22157 # Break up conftest.defines:
22158 ac_max_sed_lines=50
22159
22160 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22161 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22162 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22163 # et cetera.
22164 ac_in='$ac_file_inputs'
22165 ac_out='"$tmp/out1"'
22166 ac_nxt='"$tmp/out2"'
22167
22168 while :
22169 do
22170   # Write a here document:
22171     cat >>$CONFIG_STATUS <<_ACEOF
22172     # First, check the format of the line:
22173     cat >"\$tmp/defines.sed" <<\\CEOF
22174 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22175 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22176 b
22177 :def
22178 _ACEOF
22179   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22180   echo 'CEOF
22181     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22182   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22183   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22184   grep . conftest.tail >/dev/null || break
22185   rm -f conftest.defines
22186   mv conftest.tail conftest.defines
22187 done
22188 rm -f conftest.defines conftest.tail
22189
22190 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22191 cat >>$CONFIG_STATUS <<\_ACEOF
22192   if test x"$ac_file" != x-; then
22193     echo "/* $configure_input  */" >"$tmp/config.h"
22194     cat "$ac_result" >>"$tmp/config.h"
22195     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22196       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22197 echo "$as_me: $ac_file is unchanged" >&6;}
22198     else
22199       rm -f $ac_file
22200       mv "$tmp/config.h" $ac_file
22201     fi
22202   else
22203     echo "/* $configure_input  */"
22204     cat "$ac_result"
22205   fi
22206   rm -f "$tmp/out12"
22207  ;;
22208
22209   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22210 echo "$as_me: executing $ac_file commands" >&6;}
22211  ;;
22212   esac
22213
22214
22215   case $ac_file$ac_mode in
22216     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22217    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22218     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22219    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22220     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22221    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22222     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22223    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22224     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22225    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22226     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22227    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22228     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22229    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22230     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22231    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22232     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22233    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22234     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22235    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22236     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22237    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22238     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22239    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22240     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22241    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22242
22243   esac
22244 done # for ac_tag
22245
22246
22247 { (exit 0); exit 0; }
22248 _ACEOF
22249 chmod +x $CONFIG_STATUS
22250 ac_clean_files=$ac_clean_files_save
22251
22252
22253 # configure is writing to config.log, and then calls config.status.
22254 # config.status does its own redirection, appending to config.log.
22255 # Unfortunately, on DOS this fails, as config.log is still kept open
22256 # by configure, so config.status won't be able to write to it; its
22257 # output is simply discarded.  So we exec the FD to /dev/null,
22258 # effectively closing config.log, so it can be properly (re)opened and
22259 # appended to by config.status.  When coming back to configure, we
22260 # need to make the FD available again.
22261 if test "$no_create" != yes; then
22262   ac_cs_success=:
22263   ac_config_status_args=
22264   test "$silent" = yes &&
22265     ac_config_status_args="$ac_config_status_args --quiet"
22266   exec 5>/dev/null
22267   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22268   exec 5>>config.log
22269   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22270   # would make configure fail if this is the last instruction.
22271   $ac_cs_success || { (exit 1); exit 1; }
22272 fi
22273
22274 #
22275 # CONFIG_SUBDIRS section.
22276 #
22277 if test "$no_recursion" != yes; then
22278
22279   # Remove --cache-file and --srcdir arguments so they do not pile up.
22280   ac_sub_configure_args=
22281   ac_prev=
22282   eval "set x $ac_configure_args"
22283   shift
22284   for ac_arg
22285   do
22286     if test -n "$ac_prev"; then
22287       ac_prev=
22288       continue
22289     fi
22290     case $ac_arg in
22291     -cache-file | --cache-file | --cache-fil | --cache-fi \
22292     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22293       ac_prev=cache_file ;;
22294     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22295     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22296     | --c=*)
22297       ;;
22298     --config-cache | -C)
22299       ;;
22300     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22301       ac_prev=srcdir ;;
22302     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22303       ;;
22304     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22305       ac_prev=prefix ;;
22306     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22307       ;;
22308     *)
22309       case $ac_arg in
22310       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22311       esac
22312       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22313     esac
22314   done
22315
22316   # Always prepend --prefix to ensure using the same prefix
22317   # in subdir configurations.
22318   ac_arg="--prefix=$prefix"
22319   case $ac_arg in
22320   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22321   esac
22322   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22323
22324   ac_popdir=`pwd`
22325   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22326
22327     # Do not complain, so a configure script can configure whichever
22328     # parts of a large source tree are present.
22329     test -d "$srcdir/$ac_dir" || continue
22330
22331     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22332     echo "$as_me:$LINENO: $ac_msg" >&5
22333     echo "$ac_msg" >&6
22334     { as_dir="$ac_dir"
22335   case $as_dir in #(
22336   -*) as_dir=./$as_dir;;
22337   esac
22338   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22339     as_dirs=
22340     while :; do
22341       case $as_dir in #(
22342       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22343       *) as_qdir=$as_dir;;
22344       esac
22345       as_dirs="'$as_qdir' $as_dirs"
22346       as_dir=`$as_dirname -- "$as_dir" ||
22347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22348          X"$as_dir" : 'X\(//\)[^/]' \| \
22349          X"$as_dir" : 'X\(//\)$' \| \
22350          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22351 echo X"$as_dir" |
22352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22353             s//\1/
22354             q
22355           }
22356           /^X\(\/\/\)[^/].*/{
22357             s//\1/
22358             q
22359           }
22360           /^X\(\/\/\)$/{
22361             s//\1/
22362             q
22363           }
22364           /^X\(\/\).*/{
22365             s//\1/
22366             q
22367           }
22368           s/.*/./; q'`
22369       test -d "$as_dir" && break
22370     done
22371     test -z "$as_dirs" || eval "mkdir $as_dirs"
22372   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22373 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22374    { (exit 1); exit 1; }; }; }
22375     ac_builddir=.
22376
22377 case "$ac_dir" in
22378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22379 *)
22380   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22381   # A ".." for each directory in $ac_dir_suffix.
22382   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22383   case $ac_top_builddir_sub in
22384   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22385   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22386   esac ;;
22387 esac
22388 ac_abs_top_builddir=$ac_pwd
22389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22390 # for backward compatibility:
22391 ac_top_builddir=$ac_top_build_prefix
22392
22393 case $srcdir in
22394   .)  # We are building in place.
22395     ac_srcdir=.
22396     ac_top_srcdir=$ac_top_builddir_sub
22397     ac_abs_top_srcdir=$ac_pwd ;;
22398   [\\/]* | ?:[\\/]* )  # Absolute name.
22399     ac_srcdir=$srcdir$ac_dir_suffix;
22400     ac_top_srcdir=$srcdir
22401     ac_abs_top_srcdir=$srcdir ;;
22402   *) # Relative name.
22403     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22404     ac_top_srcdir=$ac_top_build_prefix$srcdir
22405     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22406 esac
22407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22408
22409
22410     cd "$ac_dir"
22411
22412     # Check for guested configure; otherwise get Cygnus style configure.
22413     if test -f "$ac_srcdir/configure.gnu"; then
22414       ac_sub_configure=$ac_srcdir/configure.gnu
22415     elif test -f "$ac_srcdir/configure"; then
22416       ac_sub_configure=$ac_srcdir/configure
22417     elif test -f "$ac_srcdir/configure.in"; then
22418       # This should be Cygnus configure.
22419       ac_sub_configure=$ac_aux_dir/configure
22420     else
22421       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22422 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22423       ac_sub_configure=
22424     fi
22425
22426     # The recursion is here.
22427     if test -n "$ac_sub_configure"; then
22428       # Make the cache file name correct relative to the subdirectory.
22429       case $cache_file in
22430       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22431       *) # Relative name.
22432         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22433       esac
22434
22435       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22436 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22437       # The eval makes quoting arguments work.
22438       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22439            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22440         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22441 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22442    { (exit 1); exit 1; }; }
22443     fi
22444
22445     cd "$ac_popdir"
22446   done
22447 fi
22448